This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/18906] Assembler complains about previously acceptable code
- From: "orion at cora dot nwra dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2004 16:49:52 -0000
- Subject: [Bug regression/18906] Assembler complains about previously acceptable code
- References: <20041209163215.18906.orion@cora.nwra.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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