This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: inline-asm/9181: [3.2.1/3.3/3.4 regression] ICE with inline assemblyin instantiate_virtual_regs_1, at function.c:3974
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org,gcc-prs at gcc dot gnu dot org, mtaylor at fit dot edu
- Date: Mon, 24 Mar 2003 20:48:47 +0100
- Subject: Re: inline-asm/9181: [3.2.1/3.3/3.4 regression] ICE with inline assemblyin instantiate_virtual_regs_1, at function.c:3974
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9181
The smaller test case:
int
get_lsb (long long bb)
{
int index;
asm ("": "=%al" (index): "d" (&bb):"%ecx");
return index;
}
now gives us:
# gcc-3.3 -c 9181.c
9181.c: In function `get_lsb':
9181.c:5: error: impossible constraint in `asm'
# gcc-3.3 -c 9181.c -O
# gcc-3.3 -c 9181.c -O2
So at optimize > 0, the whole thing is optimized away.
At -O0, we used to ICE, that appears to be fixed now.
Honza (again ;-), is this the expected behavior?
Greetz
Steven