diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-04 21:45:08 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-04 21:45:08 +0000 |
commit | b4db1af89ef7607e747f1d151a353ef12a360db9 (patch) | |
tree | e48ce1ebe01be6799ef97562b1ff7846da8bf592 /gcc/doc/cppopts.texi | |
parent | 3078f2b2bfb8aba10e9b59dd1012fbfa55abbcab (diff) | |
download | gcc-b4db1af89ef7607e747f1d151a353ef12a360db9.tar.gz |
* doc/cppopts.texi: Enhance -Wtrigraphs documentation
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66462 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/cppopts.texi')
-rw-r--r-- | gcc/doc/cppopts.texi | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi index 490905a065c..46f2226722e 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 |