This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, DOC] PR 30330: index both -Wfoo and -Wno-foo
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Feb 2008 01:49:49 +0100 (CET)
- Subject: Re: [PATCH, DOC] PR 30330: index both -Wfoo and -Wno-foo
- References: <20080203231818.GA26504@ins.uni-bonn.de>
On Mon, 4 Feb 2008, Ralf Wildenhues wrote:
> this patch indexes both -Wfoo and -Wno-foo where it makes sense to do
> so, addressing half of PR 30330 (-fno-foo being the other, more
> complicated half).
I reviewed all of it and experimentally verified that all these
additional options indeed are supported (and have a look at the
various language annotations).
> 2008-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
>
> PR documentation/30330
> * doc/invoke.texi (C++ Dialect Options)
> (Objective-C and Objective-C++ Dialect Options, Warning Options):
> For each warning option -Wfoo that allows -Wno-foo, ensure both
> -Wfoo and -Wno-foo are listed in the option index. Fix index
> entry of -Wswitch-default, index -Wnormalized= including the
> `=', and -Wlarger-than-@var{len} including @var{len}.
I am going to apply this patch after a round of testing over night in
my regular test cycle.
And since you seem to be attentive and interested in this level of
detail, here is some more stuff in case you are interested. ;-)
The compiler issues the following warnings, but the respective options
are not annotated accordingly in invoke.texi:
cc1plus: warning: command line option "-Wno-assign-intercept" is valid
for ObjC/ObjC++ but not for C++
Wno-protocol, Wno-selector, Wno-strict-selector-match,
Wno-undeclared-selector -- ditto.
cc1plus: warning: command line option "-Wformat-zero-length" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-nonnull" is valid for
C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-implicit-int" is valid for
C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-traditional" is valid for
C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-traditional-conversion" is
valid for C/ObjC but not for C++
cc1plus: warning: command line option
"-Wno-declaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-bad-function-cast" is
valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-strict-prototypes" is
valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-override-init" is valid
for C/ObjC but not for C++
(Some of those labled C/ObjC strikingly look like ObjC only, not plain C.)
Gerald