This is the mail archive of the gcc-bugs@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]

Re: gcc -E -traditional broken


Andreas Jaeger wrote:-

> t.c:1: Invalid token in expression
> # 1 "t.c"
[...]

> t.c is just the following small fragment:

> #if defined REGPARMS
> # warning "quark"
> #endif

It looks to me like traditional cpp has never accepted this syntax.
You need to use the "defined (symbol)" syntax; it then works.

Is this intentional, Zack?

Neil.

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