This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/5177: Problem with gcc-3.0.2 CPP and #define
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Chris Adams <cmadams at hiwaay dot net>
- Cc: Richard Henderson <rth at redhat dot com>, neil at gcc dot gnu dot org,gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org,gcc-gnats at gcc dot gnu dot org
- Date: Tue, 1 Jan 2002 11:15:03 -0800
- Subject: Re: preprocessor/5177: Problem with gcc-3.0.2 CPP and #define
- References: <20011223161812.8384.qmail@sources.redhat.com> <20011223140146.A5039@redhat.com> <20011223181414.B18276@HiWAAY.net>
On Sun, Dec 23, 2001 at 06:14:14PM -0600, Chris Adams wrote:
> > Basically, we'd have to do some extremely ugly fixincludery to
> > get this transformed to something that works properly wth gcc.
>
> I can't really see how it could be done other than to either support the
> DEC/Compaq "#pragma extern_prefix" extension (and detecting it and
> changing the #if around it)
You might want to talk to Martin Loewis, this sounds rather similar to
Sun's #pragma redefine_extname, which he was adding to GCC. In
general I think it's a good idea for GCC to recognize and do something
sensible with #pragmas used in system headers.
zw