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

[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


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