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]
Other format: [Raw text]

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



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