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

error while preprocessing on x86 with -std


bug or feature ? :)

regardless of value passed to -std, this error crops up ... yet if i dont 
use -std, it works just peachy

$ cat foo.S 
#define FOO(sym,type) __##sym,##type
FOO(myfunc,@function)

$ gcc -S foo.S
# 1 "foo.S"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "foo.S"

__myfunc,@function

$ gcc -S foo.S -std=gnu99
# 1 "foo.S"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "foo.S"

foo.S:2:1: error: pasting "," and "@" does not give a valid preprocessing 
token
__myfunc,@function
-mike

Attachment: pgp00000.pgp
Description: PGP signature


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