This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor improvement to gcc -Wall doc
- From: Ian Lance Taylor <ian at airs dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 01 May 2006 23:21:46 -0700
- Subject: Minor improvement to gcc -Wall doc
>From an idea by Tobias Ulmer.
Tested by running "make info".
OK for mainline?
Ian
2006-05-01 Ian Lance Taylor <ian@airs.com>
* doc/invoke.texi (Warning Options): Add note to -Wall that some
warnings are only emitted when optimizing.
Index: invoke.texi
===================================================================
--- invoke.texi (revision 113430)
+++ invoke.texi (working copy)
@@ -2795,11 +2795,13 @@ cases that are safe.
@item -Wall
@opindex Wall
All of the above @samp{-W} options combined. This enables all the
-warnings about constructions that some users consider questionable, and
-that are easy to avoid (or modify to prevent the warning), even in
-conjunction with macros. This also enables some language-specific
-warnings described in @ref{C++ Dialect Options} and
-@ref{Objective-C and Objective-C++ Dialect Options}.
+warnings about constructions that some users consider questionable,
+and that are easy to avoid (or modify to prevent the warning), even in
+conjunction with macros. Note that some of the warnings will only be
+emitted when optimizing, as they require expensive analyses of the
+source code. This also enables some language-specific warnings
+described in @ref{C++ Dialect Options} and @ref{Objective-C and
+Objective-C++ Dialect Options}.
@end table
The following @option{-W@dots{}} options are not implied by @option{-Wall}.