This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Don't quietly skip unrecognized -Wblah-blah options, avoid duplication on command line


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]