This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: other/8919: ICE with (possibly invalid) extended asm.
- From: reichelt at igpm dot rwth-aachen dot de
- To: carlo at alinoe dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 13 Dec 2002 11:24:48 -0000
- Subject: Re: other/8919: ICE with (possibly invalid) extended asm.
- Reply-to: reichelt at igpm dot rwth-aachen dot de, carlo at alinoe dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: Internal Compiler Error with (possibly invalid) extended asm.
New Synopsis: ICE with (possibly invalid) extended asm.
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Fri Dec 13 03:24:47 2002
State-Changed-Why:
Confirmed.
gcc 2.95.x and 3.0.x issue parse errors.
The 3.2-branchs issues an ICE.
Mainline compiles the code.
(Well, that's not exactly true, since we get assembler errors, but they are
not related to the problem. There's something wrong with the
"movl (%[M_bitset_ptr],%[M_digit],4), %[tmp]\n\t"
lines in the function find1.)
A reduced testcase is the following:
------------------------------snip here----------------------------------
template <int n> struct A
{
int m;
void foo()
{
int i;
asm ( "testl %[m], %[m]" : [m] "=r" (m), [i] "=r" (i) : );
}
};
void bar()
{
A<0> a;
a.foo();
}
------------------------------snip here----------------------------------
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8919