gcc fails to rename inline asm registers

Ghadi Shayban ghad@triad.rr.com
Tue Jan 2 12:56:00 GMT 2001


When compiling Linux-2.4.0-prerelease configured for an Athlon, gcc 
fails to convert %%mm0 to %mm0 in some cases, according to the 
linux-kernel list.  I have no idea what the heck that means, but they 
said it's a recent regression and that I should post it here, since no 
one else has noticed it.  Here's where I choke:

linux/arch/i386/lib/mmx.c:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -pipe 
-mpreferred-stack-boundary=2 -march=athlon   -c -o mmx.o mmx.c
{standard input}: Assembler messages:
{standard input}:139: Error: bad register name `%%mm0'


I thought maybe it would be a binutils problem, but I've checked it 
against a few versions including the CVS one. Please cc me as I'm not on 
the list.

Regards,
Ghadi Shayban



More information about the Gcc-bugs mailing list