summaryrefslogtreecommitdiff
path: root/gcc/ada/gnat_ugn.texi
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2005-03-29 18:14:20 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2005-03-29 18:14:20 +0200
commitdebe0ab674d54dbe2df6358be39f56143e00ca8e (patch)
treebcdecf2cbba892fbd44f1149051ea028d0d1c515 /gcc/ada/gnat_ugn.texi
parentd127f91b1d4b99d53d31a80076bf178ceb4053df (diff)
downloadgcc-debe0ab674d54dbe2df6358be39f56143e00ca8e.tar.gz
errutil.adb, errout.adb: Minor comment updates on Line_Terminator references
2005-03-29 Robert Dewar <dewar@adacore.com> * errutil.adb, errout.adb: Minor comment updates on Line_Terminator references * par-ch10.adb: Add ??? comment about line terminator * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd (check dos line terminator). (Check_Line_Max_Length): New procedure, split off from the existing Check_Line_Terminator routine. Separating this out allows -gnatyf to be properly recognized. * styleg.adb: Add ??? comment for line terminator reference * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators) * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd (check dos line terminator). (Check_Line_Max_Length): New procedure, split off from the existing Check_Line_Terminator routine. Separating this out allows -gnatyf to be properly recognized. * stylesw.ads, stylesw.adb: Add handling for new -gnatyd switch (check dos line terminator) * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator) Recognize -gnatwb/-gnatwB switches Include Warn_On_Bad_Fixed_Value for -gnatg * usage.adb: Add line for new -gnatyd switch (check dos line terminator) * usage.adb: Add lines for -gnatwb/-gnatwB * vms_data.ads: Add entry for NOCRLF (-gnatyd) * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB * gnat_ugn.texi: Fix overlong lines Document new -gnatyd switch Document new -gnatwb/-gnatwB switches From-SVN: r97169
Diffstat (limited to 'gcc/ada/gnat_ugn.texi')
-rw-r--r--gcc/ada/gnat_ugn.texi34
1 files changed, 31 insertions, 3 deletions
diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
index 246c9103112..1952011001c 100644
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -4567,6 +4567,26 @@ This switch suppresses all optional warning messages, see remaining list
in this section for details on optional warning messages that can be
individually controlled.
+@item -gnatwb
+@emph{Activate warnings on bad fixed values.}
+@cindex @option{-gnatwb} (@command{gcc})
+@cindex Bad fixed values
+@cindex Fixed-point Small value
+@cindex Small value
+This switch activates warnings for static fixed-point expressions whose
+value is not an exact multiple of Small. Such values are implementation
+dependent, since an implementation is free to choose either of the multiples
+that surround the value. GNAT always chooses the closer one, but this is not
+required behavior, and it is better to specify a value that is an exact
+multiple, ensuring predictable execution. The default is that such warnings
+are not generated.
+
+@item -gnatwB
+@emph{Suppress warnings on bad fixed values.}
+@cindex @option{-gnatwB} (@command{gcc})
+This switch suppresses warnings for static fixed-point expressions whose
+value is not an exact multiple of Small.
+
@item -gnatwc
@emph{Activate warnings on conditionals.}
@cindex @option{-gnatwc} (@command{gcc})
@@ -5341,6 +5361,12 @@ example:
@end smallexample
@end itemize
+@item ^d^DOS_LINE_ENDINGS^
+@emph{Check no DOS line terminators present.}
+If the ^letter d^word NOCRLF^ appears in the string after @option{-gnaty}
+then all lines must be terminated by a single ASCII.LF character (in
+particular the DOS line terminator sequence CR/LF is not allowed).
+
@item ^e^END^
@emph{Check end/exit labels.}
If the ^letter e^word END^ appears in the string after @option{-gnaty} then
@@ -14646,7 +14672,8 @@ Align @code{:=} in assignment statements
Align @code{=>} in associations
@item ^-A5^/ALIGN=COMPONENT_CLAUSES^
-Align @code{at} keywords in the component clauses in record representation clauses
+Align @code{at} keywords in the component clauses in record
+representation clauses
@end table
@noindent
@@ -15420,8 +15447,9 @@ the casing defined by the dictionary; no subwords are checked for this word
@item
for every subword @command{gnatpp} checks if the dictionary contains the
-corresponding string of the form @code{*@var{simple_identifier}*}, and if it does, the
-casing of this @var{simple_identifier} is used for this subword
+corresponding string of the form @code{*@var{simple_identifier}*},
+and if it does, the casing of this @var{simple_identifier} is used
+for this subword
@item
if the whole name does not contain any ``_'' inside, and if for this name