This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/10165: [3.2.2] insn - jsdtoa.c from mozilla with -O2 -march=pentium4
- From: bangerth at dealii dot org
- To: auke dot kok at planet dot nl, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 20 Mar 2003 16:23:58 -0000
- Subject: Re: optimization/10165: [3.2.2] insn - jsdtoa.c from mozilla with -O2 -march=pentium4
- Reply-to: bangerth at dealii dot org, auke dot kok at planet dot nl, 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
Synopsis: [3.2.2] insn - jsdtoa.c from mozilla with -O2 -march=pentium4
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Mar 20 16:23:58 2003
State-Changed-Why:
Confirmed. Here's a much smaller testcase:
-----------------------
typedef union {
double value;
struct {
int lsw;
int msw;
} parts;
} X;
void foo()
{
int e1;
double rv;
if (e1 < 0) {
undfl:
e1 = 1;
goto undfl;
}
if (((__extension__ ({ X x;
x.value = (rv); x.parts.lsw; }))
& 1))
goto undfl;
if ((__extension__ ({ X x;
x.value = (rv); x.parts.lsw; }))
||
(__extension__ ({ X x;
x.value = (rv); x.parts.msw; }))
& 0xfffff)
{}
}
-----------------------------
It fails for 3.2, but is fixed in 3.3 and mainline.
3.0 didn't have -march=pentium4, so this is not a
regression and has already been fixed, which is why
I will close the report.
Thanks anyway
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10165