This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA:] cpplib, c-opts: Don't warn on dollars in builtin macro definitions.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: neil at daikokuya dot co dot uk
- Cc: hans-peter dot nilsson at axis dot com, gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 08:02:25 +0200
- Subject: Re: [RFA:] cpplib, c-opts: Don't warn on dollars in builtin macro definitions.
> Date: Thu, 12 Jun 2003 06:56:11 +0100
> From: Neil Booth <neil@daikokuya.co.uk>
> Hans-Peter Nilsson wrote:-
> > Ok to commit?
> Yes, this is great, thanks a lot for looking into this.
No worries: all ends well; thanks for the review.
> [ I'm still confused by how this warning arises, since cris.h only
> puts the '$' in a string literal, but one day when I have time I'll
> build a cross and see. ]
I think I can answer that: it's a string literal in the port tm.h
(REGISTER_PREFIX), but for cpplib to see it as a string literal
at __REGISTER_PREFIX__ define time, it'd had to be "\"$\"", not
just "$".
brgds, H-P