This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Further option handling bugs
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: gcc at gcc dot gnu dot org
- Cc: Neil Booth <neil at daikokuya dot co dot uk>
- Date: Tue, 6 May 2003 18:08:32 +0200 (CEST)
- Subject: Further option handling bugs
I'm afraid the option handling rewrite introduced some further bugs
in addition to the -Wsigned problem noted last week:
% cat x.c
void f() { }
% cat x.cc
void f() { }
% /sw/gcc-current/bin/gcc -Wmissing-prototypes -c x.c
x.c:1: warning: no previous prototype for `f'
% /sw/gcc-current/bin/g++ -Wmissing-prototypes -c x.cc
%
-Wmissing-prototypes is documented as a C-only option in doc/invoke.texi
and is not implemented in g++, but g++ fails to complain.
Likewise for -Wstrict-prototypes.
Neil, would you mind having a look? I'm sure it'll take you less time
to fix than it took me to spot and track it down. ;-)
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.pfeifer.com/gerald/