Commit 69cdf050 by Joseph Myers Committed by Joseph Myers

re PR other/7549 (gcc3.1: Documentation glitches in info-files)

	PR other/7549
	* doc/invoke.texi: Mention for each option included in -Wall that
	it is included in -Wall.
	* doc/gcc.texi: Update copyright and last modification date.

From-SVN: r94682
parent 3520b745
2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
PR other/7549
* doc/invoke.texi: Mention for each option included in -Wall that
it is included in -Wall.
* doc/gcc.texi: Update copyright and last modification date.
2005-02-06 Zdenek Dvorak <dvorakz@suse.cz> 2005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
@copying @copying
Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or under the terms of the GNU Free Documentation License, Version 1.2 or
...@@ -79,7 +79,7 @@ This file documents the use of the GNU compilers. ...@@ -79,7 +79,7 @@ This file documents the use of the GNU compilers.
@sp 2 @sp 2
@center by Richard M. Stallman and the GCC Developer Community @center by Richard M. Stallman and the GCC Developer Community
@sp 3 @sp 3
@center Last updated 23 May 2004 @center Last updated 6 February 2005
@sp 1 @sp 1
@center for GCC @value{version-GCC} @center for GCC @value{version-GCC}
......
...@@ -2166,11 +2166,13 @@ Inhibit warning messages about the use of @samp{#import}. ...@@ -2166,11 +2166,13 @@ Inhibit warning messages about the use of @samp{#import}.
Warn if an array subscript has type @code{char}. This is a common cause Warn if an array subscript has type @code{char}. This is a common cause
of error, as programmers often forget that this type is signed on some of error, as programmers often forget that this type is signed on some
machines. machines.
This warning is enabled by @option{-Wall}.
@item -Wcomment @item -Wcomment
@opindex Wcomment @opindex Wcomment
Warn whenever a comment-start sequence @samp{/*} appears in a @samp{/*} Warn whenever a comment-start sequence @samp{/*} appears in a @samp{/*}
comment, or whenever a Backslash-Newline appears in a @samp{//} comment. comment, or whenever a Backslash-Newline appears in a @samp{//} comment.
This warning is enabled by @option{-Wall}.
@item -Wfatal-errors @item -Wfatal-errors
@opindex Wfatal-errors @opindex Wfatal-errors
...@@ -2291,6 +2293,7 @@ int f() ...@@ -2291,6 +2293,7 @@ int f()
@item -Wimplicit-int @item -Wimplicit-int
@opindex Wimplicit-int @opindex Wimplicit-int
Warn when a declaration does not specify a type. Warn when a declaration does not specify a type.
This warning is enabled by @option{-Wall}.
@item -Wimplicit-function-declaration @item -Wimplicit-function-declaration
@itemx -Werror-implicit-function-declaration @itemx -Werror-implicit-function-declaration
...@@ -2299,16 +2302,19 @@ Warn when a declaration does not specify a type. ...@@ -2299,16 +2302,19 @@ Warn when a declaration does not specify a type.
Give a warning (or error) whenever a function is used before being Give a warning (or error) whenever a function is used before being
declared. The form @option{-Wno-error-implicit-function-declaration} declared. The form @option{-Wno-error-implicit-function-declaration}
is not supported. is not supported.
This warning is enabled by @option{-Wall} (as a warning, not an error).
@item -Wimplicit @item -Wimplicit
@opindex Wimplicit @opindex Wimplicit
Same as @option{-Wimplicit-int} and @option{-Wimplicit-function-declaration}. Same as @option{-Wimplicit-int} and @option{-Wimplicit-function-declaration}.
This warning is enabled by @option{-Wall}.
@item -Wmain @item -Wmain
@opindex Wmain @opindex Wmain
Warn if the type of @samp{main} is suspicious. @samp{main} should be a Warn if the type of @samp{main} is suspicious. @samp{main} should be a
function with external linkage, returning int, taking either zero function with external linkage, returning int, taking either zero
arguments, two, or three arguments of appropriate types. arguments, two, or three arguments of appropriate types.
This warning is enabled by @option{-Wall}.
@item -Wmissing-braces @item -Wmissing-braces
@opindex Wmissing-braces @opindex Wmissing-braces
...@@ -2321,6 +2327,8 @@ int a[2][2] = @{ 0, 1, 2, 3 @}; ...@@ -2321,6 +2327,8 @@ int a[2][2] = @{ 0, 1, 2, 3 @};
int b[2][2] = @{ @{ 0, 1 @}, @{ 2, 3 @} @}; int b[2][2] = @{ @{ 0, 1 @}, @{ 2, 3 @} @};
@end smallexample @end smallexample
This warning is enabled by @option{-Wall}.
@item -Wmissing-include-dirs @r{(C, C++, Objective-C and Objective-C++ only)} @item -Wmissing-include-dirs @r{(C, C++, Objective-C and Objective-C++ only)}
@opindex Wmissing-include-dirs @opindex Wmissing-include-dirs
Warn if a user-supplied include directory does not exist. Warn if a user-supplied include directory does not exist.
...@@ -2377,6 +2385,8 @@ the enclosing @code{if}. The resulting code would look like this: ...@@ -2377,6 +2385,8 @@ the enclosing @code{if}. The resulting code would look like this:
@end group @end group
@end smallexample @end smallexample
This warning is enabled by @option{-Wall}.
@item -Wsequence-point @item -Wsequence-point
@opindex Wsequence-point @opindex Wsequence-point
Warn about code that may have undefined semantics because of violations Warn about code that may have undefined semantics because of violations
...@@ -2423,6 +2433,8 @@ Links to discussions of the problem, including proposed formal ...@@ -2423,6 +2433,8 @@ Links to discussions of the problem, including proposed formal
definitions, may be found on the GCC readings page, at definitions, may be found on the GCC readings page, at
@w{@uref{http://gcc.gnu.org/readings.html}}. @w{@uref{http://gcc.gnu.org/readings.html}}.
This warning is enabled by @option{-Wall}.
@item -Wreturn-type @item -Wreturn-type
@opindex Wreturn-type @opindex Wreturn-type
Warn whenever a function is defined with a return-type that defaults to Warn whenever a function is defined with a return-type that defaults to
...@@ -2439,6 +2451,8 @@ For C++, a function without return type always produces a diagnostic ...@@ -2439,6 +2451,8 @@ For C++, a function without return type always produces a diagnostic
message, even when @option{-Wno-return-type} is specified. The only message, even when @option{-Wno-return-type} is specified. The only
exceptions are @samp{main} and functions defined in system headers. exceptions are @samp{main} and functions defined in system headers.
This warning is enabled by @option{-Wall}.
@item -Wswitch @item -Wswitch
@opindex Wswitch @opindex Wswitch
Warn whenever a @code{switch} statement has an index of enumerated type Warn whenever a @code{switch} statement has an index of enumerated type
...@@ -2446,6 +2460,7 @@ and lacks a @code{case} for one or more of the named codes of that ...@@ -2446,6 +2460,7 @@ and lacks a @code{case} for one or more of the named codes of that
enumeration. (The presence of a @code{default} label prevents this enumeration. (The presence of a @code{default} label prevents this
warning.) @code{case} labels outside the enumeration range also warning.) @code{case} labels outside the enumeration range also
provoke warnings when this option is used. provoke warnings when this option is used.
This warning is enabled by @option{-Wall}.
@item -Wswitch-default @item -Wswitch-default
@opindex Wswitch-switch @opindex Wswitch-switch
...@@ -2463,15 +2478,18 @@ provoke warnings when this option is used. ...@@ -2463,15 +2478,18 @@ provoke warnings when this option is used.
@opindex Wtrigraphs @opindex Wtrigraphs
Warn if any trigraphs are encountered that might change the meaning of Warn if any trigraphs are encountered that might change the meaning of
the program (trigraphs within comments are not warned about). the program (trigraphs within comments are not warned about).
This warning is enabled by @option{-Wall}.
@item -Wunused-function @item -Wunused-function
@opindex Wunused-function @opindex Wunused-function
Warn whenever a static function is declared but not defined or a Warn whenever a static function is declared but not defined or a
non\-inline static function is unused. non\-inline static function is unused.
This warning is enabled by @option{-Wall}.
@item -Wunused-label @item -Wunused-label
@opindex Wunused-label @opindex Wunused-label
Warn whenever a label is declared but not used. Warn whenever a label is declared but not used.
This warning is enabled by @option{-Wall}.
To suppress this warning use the @samp{unused} attribute To suppress this warning use the @samp{unused} attribute
(@pxref{Variable Attributes}). (@pxref{Variable Attributes}).
...@@ -2487,6 +2505,7 @@ To suppress this warning use the @samp{unused} attribute ...@@ -2487,6 +2505,7 @@ To suppress this warning use the @samp{unused} attribute
@opindex Wunused-variable @opindex Wunused-variable
Warn whenever a local variable or non-constant static variable is unused Warn whenever a local variable or non-constant static variable is unused
aside from its declaration aside from its declaration
This warning is enabled by @option{-Wall}.
To suppress this warning use the @samp{unused} attribute To suppress this warning use the @samp{unused} attribute
(@pxref{Variable Attributes}). (@pxref{Variable Attributes}).
...@@ -2494,6 +2513,7 @@ To suppress this warning use the @samp{unused} attribute ...@@ -2494,6 +2513,7 @@ To suppress this warning use the @samp{unused} attribute
@item -Wunused-value @item -Wunused-value
@opindex Wunused-value @opindex Wunused-value
Warn whenever a statement computes a result that is explicitly not used. Warn whenever a statement computes a result that is explicitly not used.
This warning is enabled by @option{-Wall}.
To suppress this warning cast the expression to @samp{void}. To suppress this warning cast the expression to @samp{void}.
...@@ -2583,6 +2603,8 @@ Some spurious warnings can be avoided if you declare all the functions ...@@ -2583,6 +2603,8 @@ Some spurious warnings can be avoided if you declare all the functions
you use that never return as @code{noreturn}. @xref{Function you use that never return as @code{noreturn}. @xref{Function
Attributes}. Attributes}.
This warning is enabled by @option{-Wall}.
@item -Wunknown-pragmas @item -Wunknown-pragmas
@opindex Wunknown-pragmas @opindex Wunknown-pragmas
@cindex warning for unknown pragmas @cindex warning for unknown pragmas
......
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