This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Change in preprocessor behavior
- From: Zack Weinberg <zackw at panix dot com>
- To: Stephen Lindholm <lindholm at CS dot Stanford dot EDU>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 4 Jan 2003 15:12:41 -0500
- Subject: Re: Change in preprocessor behavior
- References: <Pine.GSO.4.21.0212301419040.17036-100000@Xenon.Stanford.EDU>
On Mon, Dec 30, 2002 at 02:38:50PM -0800, Stephen Lindholm wrote:
>
> The stringize and token-pasting operators seem to no longer work in the
> "cpp" phases of compilation, but they worked in "cpp" in early versions of
> gcc (2.95.3). I can't find it written that those operations must occur in
> phases 1-4, but # and ## are "preprocessing-op-or-punc" and it would seem
> that they should therefore be processed in phase 4.
Others have addressed why "cpp" on Mac OS X isn't behaving as you expect;
I would only like to add that "cc -E" or "gcc -E" should do what you want
with all versions of GCC and with a number of other Unix compilers as well.
zw