error while preprocessing on x86 with -std

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgpXo0MfAfzwn.pgp
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux