This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't quietly skip unrecognized -Wblah-blah options, avoid duplication on command line
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 28 Jan 2002 08:14:36 -0800
- Subject: Re: [PATCH] Don't quietly skip unrecognized -Wblah-blah options, avoid duplication on command line
- References: <20020128120143.B1527@sunsite.ms.mff.cuni.cz>
On Mon, Jan 28, 2002 at 12:01:43PM +0100, Jakub Jelinek wrote:
> Hi!
>
> Although cpp should ignore unrecognized -W options, cc1/cc1plus/... IMHO
> shouldn't (they didn't used to do this before integrated cpp and we issue
> error about other unrecognized options too).
> After writing this, I've noticed gcc -Wabcde foo.c would error twice, not
> once on it (similarly to e.g. gcc -std=c54 foo.c issues 2 identical errors).
> The issue seems to be that some options like -W* or -std* are both in
> cpp_options and cc1_options, which means that the options are passed twice
> on the command line when using integrated preprocessor).
> Fix below, ok to commit?
The preprocessor bits of this look fine to me.
zw