aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/invoke.texi
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2006-03-15 07:03:20 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2006-03-15 07:03:20 +0000
commit3fbab5492684265b58f60d6b6a89cb1eb6773e34 (patch)
treef0438c5e38002a3e8f61d3718b731d9ba71ee0b6 /gcc/fortran/invoke.texi
parent8a03ad9e3419fe3cc0289bd50b1cbdbc2225e984 (diff)
downloadgcc-3fbab5492684265b58f60d6b6a89cb1eb6773e34.zip
gcc-3fbab5492684265b58f60d6b6a89cb1eb6773e34.tar.gz
gcc-3fbab5492684265b58f60d6b6a89cb1eb6773e34.tar.bz2
re PR fortran/19101 (missing & in character continuation not caught)
2006-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19101 * gfortran.h: Add warn_ampersand. * invoke.texi: Add documentation for new option. * lang.opt: Add Wampersand. * options.c (gfc_init_options): Initialize warn_ampersand. (gfc_post_options): Set the warn if pedantic. (set_Wall): Set warn_ampersand. (gfc_handle_option: Add Wampersand for itself, -std=f95, and -std=f2003. * scanner.c (gfc_next_char_literal): Add test for missing '&' in continued character constant and give warning if missing. From-SVN: r112078
Diffstat (limited to 'gcc/fortran/invoke.texi')
-rw-r--r--gcc/fortran/invoke.texi23
1 files changed, 18 insertions, 5 deletions
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi
index a65fbff..627d778 100644
--- a/gcc/fortran/invoke.texi
+++ b/gcc/fortran/invoke.texi
@@ -128,7 +128,7 @@ by type. Explanations are in the following sections.
@xref{Warning Options,,Options to Request or Suppress Warnings}.
@gccoptlist{
-fsyntax-only -pedantic -pedantic-errors @gol
--w -Wall -Waliasing -Wconversion -Wimplicit-interface @gol
+-w -Wall -Waliasing -Wampersand -Wconversion -Wimplicit-interface @gol
-Wtabs -Wnonstd-intrinsics -Wsurprising -Wunderflow @gol
-Wunused-labels -Wline-truncation -W}
@@ -375,11 +375,11 @@ Inhibit all warning messages.
@item -Wall
@cindex all warnings
@cindex warnings, all
-Enables commonly used warning options that which pertain to usage that
-we recommend avoiding and that we believe is easy to avoid.
+Enables commonly used warning options pertaining to usage that
+we recommend avoiding and that we believe are easy to avoid.
This currently includes @option{-Wunused-labels}, @option{-Waliasing},
-@option{-Wsurprising}, @option{-Wnonstd-intrinsic}, @option{-Wno-tabs},
-and @option{-Wline-truncation}.
+@option{-Wampersand}, @option{-Wsurprising}, @option{-Wnonstd-intrinsic},
+@option{-Wno-tabs}, and @option{-Wline-truncation}.
@cindex -Waliasing option
@@ -405,6 +405,17 @@ The following example will trigger the warning.
@end smallexample
+@cindex -Wampersand option
+@cindex options, -Wampersand
+@item -Wampersand
+@cindex ampersand
+Warn about missing ampersand in continued character constants. The warning is
+given with @option{-Wampersand}, @option{-pedantic}, @option{-std=f95}, and
+@option{-std=f2003}. Note: With no ampersand given in a continued character
+constant, gfortran assumes continuation at the first non-comment,
+non-whitespace character after the ampersand that initiated the continuation.
+
+
@cindex -Wconversion option
@cindex options, -Wconversion
@item -Wconversion
@@ -445,6 +456,7 @@ lower value is greater than its upper value.
A LOGICAL SELECT construct has three CASE statements.
@end itemize
+
@cindex -Wtabs
@cindex options, -Wtabs
@item -Wtabs
@@ -454,6 +466,7 @@ of the Fortran Character Set. @option{-Wno-tabs} will cause a warning
to be issued if a tab is encountered. Note, @option{-Wno-tabs} is active
for @option{-pedantic}, @option{-std=f95}, and @option{-Wall}.
+
@cindex -Wunderflow
@cindex options, -Wunderflow
@item -Wunderflow