------- 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