invoke.texi (Wall): List the options enabled by Wall.

2007-09-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* doc/invoke.texi (Wall): List the options enabled by Wall.
	(Wstrict-aliasing): Add missing @option.

From-SVN: r128895
parent 3d30741b
2007-09-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* doc/invoke.texi (Wall): List the options enabled by Wall.
(Wstrict-aliasing): Add missing @option.
2007-09-30 Richard Sandiford <rsandifo@nildram.co.uk> 2007-09-30 Richard Sandiford <rsandifo@nildram.co.uk>
* config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset * config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset
...@@ -2592,6 +2592,45 @@ warnings. ...@@ -2592,6 +2592,45 @@ warnings.
@opindex w @opindex w
Inhibit all warning messages. Inhibit all warning messages.
@item -Wall
@opindex Wall
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}.
@option{-Wall} turns on the following warning flags:
@gccoptlist{
-Waddress @gol
-Warray-bounds (only with @option{-O2}) @gol
-Wc++0x-compat @gol
-Wchar-subscripts @gol
-Wimplicit-int @gol
-Wimplicit-function-declaration @gol
-Wcomment @gol
-Wformat @gol
-Wmain (only for C/ObjC and unless @option{-ffreestanding}) @gol
-Wmissing-braces @gol
-Wnonnull @gol
-Wparentheses @gol
-Wpointer-sign
-Wreorder @gol
-Wreturn-type @gol
-Wsequence-point @gol
-Wsign-compare (only in C++) @gol
-Wstrict-aliasing @gol
-Wstrict-overflow @gol
-Wswitch @gol
-Wtrigraphs @gol
-Wuninitialized (only with @option{-O1}, @option{-O2} or @option{-O3}) @gol
-Wunknown-pragmas @gol
-Wunused-function @gol
-Wunused-label @gol
-Wunused-value @gol
-Wunused-variable @gol
}
@item -Wno-import @item -Wno-import
@opindex Wno-import @opindex Wno-import
Inhibit warning messages about the use of @samp{#import}. Inhibit warning messages about the use of @samp{#import}.
...@@ -3073,7 +3112,7 @@ It warns about code which might break the strict aliasing rules that the ...@@ -3073,7 +3112,7 @@ It warns about code which might break the strict aliasing rules that the
compiler is using for optimization. The warning does not catch all compiler is using for optimization. The warning does not catch all
cases, but does attempt to catch the more common pitfalls. It is cases, but does attempt to catch the more common pitfalls. It is
included in @option{-Wall}. included in @option{-Wall}.
It is equivalent to -Wstrict-aliasing=3 It is equivalent to @option{-Wstrict-aliasing=3}
@item -Wstrict-aliasing=n @item -Wstrict-aliasing=n
@opindex Wstrict-aliasing=n @opindex Wstrict-aliasing=n
...@@ -3168,14 +3207,6 @@ This option is only active when @option{-ftree-vrp} is active ...@@ -3168,14 +3207,6 @@ This option is only active when @option{-ftree-vrp} is active
(default for -O2 and above). It warns about subscripts to arrays (default for -O2 and above). It warns about subscripts to arrays
that are always out of bounds. This warning is enabled by @option{-Wall}. that are always out of bounds. This warning is enabled by @option{-Wall}.
@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}.
@end table @end table
The following @option{-W@dots{}} options are not implied by @option{-Wall}. The following @option{-W@dots{}} options are not implied by @option{-Wall}.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment