gcc-2.95.2 ICE in `fixup_var_refs_1' with inline asm

Arnd Bergmann arnd@itreff.de
Tue Jul 4 13:24:00 GMT 2000


Hi! 
I just encountered an ICE with gcc-2.95.2 (from MandrakeSoft).
It occurs with any optimization Level greater than -O0, when   
the asm instruction is supplied with a reference to a local
variable.
I was able to reproduce this on an Ultrasparc system with 2.95.2
as well.

Arnd <><

$ gcc -Wall test.c -S -O0
$ gcc -Wall test.c -S -O1
test.c: In function `test':
test.c:3: warning: asm operand 0 probably doesn't match constraints
test.c:4: Internal compiler error in `fixup_var_refs_1', at function.c:2071

=test.c============================
void test (int i)
{
        __asm__ ( "" : : "m"(&i));
}
===================================


More information about the Gcc-bugs mailing list