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]

gcc-2.95.2 ICE in `fixup_var_refs_1' with inline asm


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));
}
===================================

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