[Bug regression/18906] Assembler complains about previously acceptable code
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-09 16:51 --- Still not a gcc bug, I cannot be as it is complaining about the inline asm and not what gcc produces. -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18906
[Bug regression/18906] Assembler complains about previously acceptable code
--- Additional Comments From orion at cora dot nwra dot com 2004-12-09 16:49 --- Changed to: static inline int cpuid_edx(int op) { int eax, ecx, edx; __asm__("pushl %%ebx\n\tcpuid\n\tpopl %%ebx" : "=a" (eax), "=c" (ecx), "=d" (edx) : "a" (op)); return edx; } int RIGHT_CPU(void) { return cpuid_edx(1); } Still get the same error: # gcc4 -c sse2-cpuid.c /tmp/ccAQFD0o.s: Assembler messages: /tmp/ccAQFD0o.s:27: Error: suffix or operands invalid for `push' /tmp/ccAQFD0o.s:29: Error: suffix or operands invalid for `pop' -- What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18906
[Bug regression/18906] Assembler complains about previously acceptable code
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-09 16:38 --- Not a bug, you want pushl and popl instead. -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18906