This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.2 ICE in `fixup_var_refs_1' with inline asm
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-2.95.2 ICE in `fixup_var_refs_1' with inline asm
- From: Arnd Bergmann <arnd at itreff dot de>
- Date: Tue, 04 Jul 2000 22:25:42 +0200
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));
}
===================================