This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jun 2007 21:52:54 -0000
- Subject: [Bug tree-optimization/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing
- References: <bug-30840-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from reichelt at gcc dot gnu dot org 2007-06-07 21:52 -------
The following simplified testcase still crashes on mainline when compiled
with "-O2":
==============================
struct A
{
int i, *p;
A* a;
void foo()
{
if (p)
p++;
else
{
if (i)
i = 1;
i++;
}
}
A();
};
A::A()
{
int j;
A* q;
while (j)
{
j--;
while (j--)
{
q = this;
a->foo();
a->foo();
}
q->a++;
a->foo();
a->foo();
}
A b;
}
==============================
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30840