aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/usage.adb
diff options
context:
space:
mode:
authorVincent Celier <celier@adacore.com>2008-04-08 08:57:10 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-04-08 08:57:10 +0200
commit1a5f40e1b81b0e5306d41773faf5f77197fbfe04 (patch)
treee5090f510857d9b1a09deb5b01c340087bebfb34 /gcc/ada/usage.adb
parentdaa5998b841124471f0a514209f1468f28c2e448 (diff)
downloadgcc-1a5f40e1b81b0e5306d41773faf5f77197fbfe04.zip
gcc-1a5f40e1b81b0e5306d41773faf5f77197fbfe04.tar.gz
gcc-1a5f40e1b81b0e5306d41773faf5f77197fbfe04.tar.bz2
vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when AAMP_On_Target is set.
2008-04-08 Vincent Celier <celier@adacore.com> Robert Dewar <dewar@adacore.com> * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when AAMP_On_Target is set. * vms_data.ads: Add NOxxx to style check switch list Add entry COMPONENTS for -gnatVe Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs= (/SUBDIRS=). (GCC_Switches): Add /ALL_BACK_END_WARNINGS. Add qualifiers for gnatmetric coupling options Add note that -gnata enables all checks Add entries [NO]PARAMETER_ORDER for -gnatw.p[P] Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option New warning flag -gnatw.e * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy Add entry for -gnatyN (forgotten before) Line for new warning switch -gnatw.p New warning flag -gnatw.e * gnat_ugn.texi: Add documentation fpr project file switch -aP Document -gnaty - + y Replace occurences of "package specification" with "package spec" Define preprocessing symbols in documentation of gnatprep Clarify reason for distinguishing overflow checking Add documentation for project-aware tool switches -eL and --subdirs= Complete list of configuration pragmas Specify that, even when gnatmake switch -x is used, mains on the command line need to be sources of project files. Editing of gnatcheck/gnatmetric doc. Add documentation for -gnatw.p/-gnatw.P Add missing documentation for -fno-inline-functions. Add documentation for -gnatw.e * gnat_rm.texi: Add documentation for No_Default_Initialization Replace occurences of "package specification" with "package spec" Document use of * in Warnings Off string Update documentation of alignment/component clauses. Add documentation for Invalid_Value Document new consistency rule for Optimize_Alignment Add documentation for Precondition and Postcondition pragmas Add documentation for Check and Check_Policy pragmas Document new Enum_Val attribute Remove requirement for static string in pragma Assert Add documentation on GNAT.Time_Stamp * ug_words: add entry for -gnatVe Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER Add entry for -gnatw.e * debug.adb: Add missing documentation for d.a flag Document new -gnatd.a switch. Add documentation for new gnatmake debug switch -df From-SVN: r134060
Diffstat (limited to 'gcc/ada/usage.adb')
-rw-r--r--gcc/ada/usage.adb19
1 files changed, 16 insertions, 3 deletions
diff --git a/gcc/ada/usage.adb b/gcc/ada/usage.adb
index f64188e..0d131e1 100644
--- a/gcc/ada/usage.adb
+++ b/gcc/ada/usage.adb
@@ -23,6 +23,9 @@
-- --
------------------------------------------------------------------------------
+-- Warning: the output of this usage for warnings is duplicated in the GNAT
+-- reference manual. Be sure to update that if you change the warning list.
+
with Targparm; use Targparm;
with Namet; use Namet;
with Opt; use Opt;
@@ -362,7 +365,8 @@ begin
Write_Switch_Char ("wxx");
Write_Line ("Enable selected warning modes, xx = list of parameters:");
- Write_Line (" a turn on all optional warnings (except dhl.o.w)");
+ Write_Line (" a turn on all optional warnings " &
+ "(except dhl.ot.w)");
Write_Line (" A turn off all optional warnings");
Write_Line (" .a* turn on warnings for failing assertions");
Write_Line (" .A turn off warnings for failing assertions");
@@ -377,6 +381,7 @@ begin
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");
+ Write_Line (" .e turn on every optional warning (no exceptions)");
Write_Line (" f turn on warnings for unreferenced formal");
Write_Line (" F* turn off warnings for unreferenced formal");
Write_Line (" g* turn on warnings for unrecognized pragma");
@@ -407,9 +412,13 @@ begin
Write_Line (" .O* turn off warnings for out parameters assigned " &
"but not read");
Write_Line (" p turn on warnings for ineffective pragma " &
- "Inline in frontend");
+ "Inline in frontend");
Write_Line (" P* turn off warnings for ineffective pragma " &
- "Inline in frontend");
+ "Inline in frontend");
+ Write_Line (" .p turn on warnings for suspicious parameter " &
+ "order");
+ Write_Line (" .P* turn off warnings for suspicious parameter " &
+ "order");
Write_Line (" q* turn on warnings for questionable " &
"missing parentheses");
Write_Line (" Q turn off warnings for questionable " &
@@ -493,6 +502,7 @@ begin
Write_Line (" m check line length <= 79 characters");
Write_Line (" n check casing of package Standard identifiers");
Write_Line (" Mnn check line length <= nn characters");
+ Write_Line (" N turn off all checks");
Write_Line (" o check subprogram bodies in alphabetical order");
Write_Line (" p check pragma casing");
Write_Line (" r check casing for identifier references");
@@ -501,6 +511,9 @@ begin
Write_Line (" t check token separation rules");
Write_Line (" u check no unnecessary blank lines");
Write_Line (" x check extra parentheses around conditionals");
+ Write_Line (" y turn on default style checks");
+ Write_Line (" - subtract (turn off) subsequent checks");
+ Write_Line (" + add (turn on) subsequent checks");
-- Lines for -gnatyN switch