Subject: Re: __STDC__ in cdefs_elf.h
To: Jason Thorpe <thorpej@shagadelic.org>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: tech-kern
Date: 09/08/2006 16:57:43
On Fri, Sep 08, 2006 at 01:44:11PM -0700, Jason Thorpe wrote:
>
> On Sep 8, 2006, at 1:24 PM, Thor Lancelot Simon wrote:
>
> >This is because of one of my least-favorite bogosities about the GNU
> >compilers: they implement C token pasting and stringification in the
> >C language frontend instead of in the C preprocessor. This has
> >annoyed me periodically for about a decade now; I wish it would annoy
> >someone with more GCC clue sufficiently to fix it! :-)
>
> What? Nonsense. Back when it had a separate C preprocessor, it was
> certainly implemented there.
Nope. I've been flummoxed by this problem with the GCC C preprocessor
since approximately 1995. Ask erh if you don't believe me, we spent
most of a day scratching our heads until we suddenly realized why the
header files for our C-like (but with a different actual compiler)
language weren't being handled properly by GCC's cpp.
Get an old version of GCC and try it, if you want -- cc will get pasting
and stringification, but no other user of cpp does, which is because the
code to do it is not _in_ cpp, AFAICT.
Thor