[Bug tree-optimization/21734] [4.1 regression] ICE: -ftree-vectorize, segfault
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 24 14:24:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-24 14:21 -------
Here is a C testcase:
struct a
{
int aa[4];
};
struct b
{
struct a aa;
};
void foo(struct b *bb)
{
int i;
for (i=0; i<4; ++i)
{
struct a *aa = &bb->aa;
struct a *aa1 = aa;
struct a *aa2 = aa1;
int *d = &aa2->aa[i];
*d = 0;
}
}
I think this is caused by the forwprop changes. (Notice the extra variables to reproduce this bug).
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21734
More information about the Gcc-bugs
mailing list