diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-06 10:43:09 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-06 10:43:09 +0000 |
commit | 15ebb6001024723a2b2ec5d6281950ac5fa23485 (patch) | |
tree | df009ee8984411f034373abb688e8fab5d3abd85 /gcc/ada/usage.adb | |
parent | 6340e5ccdbe8addbcc54aacd5d8c0507a6be8b03 (diff) | |
download | gcc-15ebb6001024723a2b2ec5d6281950ac5fa23485.tar.gz |
2007-04-20 Robert Dewar <dewar@adacore.com>
Arnaud Charlet <charlet@adacore.com>
* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
Check for restriction No_Implementation_Attributes if in Ada 95 mode.
(Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
(Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
message when using a VM, since this attribute is not supported.
(Analyze_Record_Representation_Clause): Give unrepped component warnings
* usage.adb: Add new warning for renaming of function return objects
Indicate that -gnatwp and -gnatwP concern front-end inlining
Add line for -gnatyg
Add usage information for -gnatw.c/C
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/usage.adb')
-rw-r--r-- | gcc/ada/usage.adb | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/gcc/ada/usage.adb b/gcc/ada/usage.adb index 1da60acdee8..037c6b1905a 100644 --- a/gcc/ada/usage.adb +++ b/gcc/ada/usage.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -24,11 +24,12 @@ -- -- ------------------------------------------------------------------------------ -with Hostparm; -with Namet; use Namet; -with Opt; use Opt; -with Osint; use Osint; -with Output; use Output; +with Targparm; use Targparm; +with Namet; use Namet; +with Opt; use Opt; +with Osint; use Osint; +with Output; use Output; + with System.WCh_Con; use System.WCh_Con; procedure Usage is @@ -40,6 +41,10 @@ procedure Usage is -- than 5 characters, the maximum allowed, Write_Switch_Char will -- always output exactly 12 characters. + ----------------------- + -- Write_Switch_Char -- + ----------------------- + procedure Write_Switch_Char (Sw : String; Prefix : String := "gnat") is begin Write_Str (" -"); @@ -84,9 +89,9 @@ begin Write_Eol; - -- Common GCC switches not available in JGNAT + -- Common GCC switches not available in JGNAT/MGNAT - if not Hostparm.Java_VM then + if VM_Target = No_VM then Write_Switch_Char ("fstack-check ", ""); Write_Line ("Generate stack checking code"); @@ -361,6 +366,8 @@ begin "(not multiple of small)"); Write_Line (" c turn on warnings for constant conditional"); Write_Line (" C* turn off warnings for constant conditional"); + Write_Line (" .c turn on warnings for unrepped components"); + Write_Line (" .C* turn off warnings for unrepped components"); Write_Line (" d turn on warnings for implicit dereference"); Write_Line (" D* turn off warnings for implicit dereference"); Write_Line (" e treat all warnings as errors"); @@ -389,14 +396,18 @@ begin Write_Line (" n* normal warning mode (cancels -gnatws/-gnatwe)"); Write_Line (" o* turn on warnings for address clause overlay"); Write_Line (" O turn off warnings for address clause overlay"); - Write_Line (" p turn on warnings for ineffective pragma Inline"); - Write_Line (" P* turn off warnings for ineffective pragma Inline"); + Write_Line (" p turn on warnings for ineffective pragma " & + "Inline in frontend"); + Write_Line (" P* turn off warnings for ineffective pragma " & + "Inline in frontend"); Write_Line (" q* turn on warnings for questionable " & "missing parentheses"); Write_Line (" Q turn off warnings for questionable " & "missing parentheses"); Write_Line (" r turn on warnings for redundant construct"); Write_Line (" R* turn off warnings for redundant construct"); + Write_Line (" .r turn on warnings for object renaming function"); + Write_Line (" .R* turn off warnings for object renaming function"); Write_Line (" s suppress all warnings"); Write_Line (" t turn on warnings for tracking deleted code"); Write_Line (" T* turn off warnings for tracking deleted code"); @@ -460,6 +471,7 @@ begin Write_Line (" d check no DOS line terminators"); Write_Line (" e check end/exit labels present"); Write_Line (" f check no form feeds/vertical tabs in source"); + Write_Line (" g check standard GNAT style rules"); Write_Line (" h check no horizontal tabs in source"); Write_Line (" i check if-then layout"); Write_Line (" I check mode in"); |