GCC4 x86_64 pushfl / pop %eax inline asm ?

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

 





How do I do this with GCC 4 ? This works with GCC3 on i386, but not on GCC4 on x86_64. Any advise on what #ifdef to put in place or if there is one way that works with both GCC versions ?

From the output of GCC test.c => test.s

#APP

       pushfl
       popl %eax

#NO_APP

Yeilds errors on GCC4 x86_64:

test.s:2287: Error: suffix or operands invalid for `pushf'
test.s:2288: Error: suffix or operands invalid for `pop'


Thanks

Darryl


[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