aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-05-04 21:45:08 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-05-04 21:45:08 +0000
commit1fecc2668c2982329d6bdf5cee24604043f0a1e0 (patch)
treee48ce1ebe01be6799ef97562b1ff7846da8bf592 /gcc/doc
parenta8eb6044a9468a56cab63890820e17101ce8fd64 (diff)
downloadgcc-1fecc2668c2982329d6bdf5cee24604043f0a1e0.zip
gcc-1fecc2668c2982329d6bdf5cee24604043f0a1e0.tar.gz
gcc-1fecc2668c2982329d6bdf5cee24604043f0a1e0.tar.bz2
* doc/cppopts.texi: Enhance -Wtrigraphs documentation
From-SVN: r66462
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/cppopts.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi
index 490905a..46f2226 100644
--- a/gcc/doc/cppopts.texi
+++ b/gcc/doc/cppopts.texi
@@ -87,12 +87,16 @@ comment, or whenever a backslash-newline appears in a @samp{//} comment.
@item -Wtrigraphs
@opindex Wtrigraphs
@anchor{Wtrigraphs}
-Warn if any trigraphs that may change the meaning of a program are
-encountered. This option is in effect unless trigraphs are turned on,
-and is implied by @option{-Wall}. With the exception of a trigraph
-that would form an escaped newline, warnings are not given for
-trigraphs within comments as they do not affect the meaning of the
-program.
+Most trigraphs in comments cannot affect the meaning of the program.
+However, a trigraph that would form an escaped newline (@samp{??/} at
+the end of a line) can, by changing where the comment begins or ends.
+Therefore, only trigraphs that would form escaped newlines produce
+warnings inside a comment.
+
+This option is implied by @option{-Wall}. If @option{-Wall} is not
+given, this option is still enabled unless trigraphs are enabled. To
+get trigraph conversion without warnings, but get the other
+@option{-Wall} warnings, use @samp{-trigraphs -Wall -Wno-trigraphs}.
@item -Wtraditional
@opindex Wtraditional