This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change in preprocessor behavior


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]