This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: should we use -Werror? (& sample patch to do it)
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: RFC: should we use -Werror? (& sample patch to do it)
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Wed, 5 Sep 2001 23:05:30 +0100
- Cc: zack at codesourcery dot com, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- References: <200109051951.PAA27543@caip.rutgers.edu>
Kaveh R. Ghazi wrote:-
> > No, the error issues from the tokenizer, which doesn't know anything
> > about __extension__, nor should it (it would have to understand the
> > expression grammar then).
>
> Er, I just tried it and it works...
Well, only sort of. You miss strings that appear only to the
preprocessor, like those in #defines that don't get used, #include
etc.
String handling will be moving closer to cpplib and out of the parser
sometime soon, so we really don't want it to rely on something in the
front ends.
Neil.