This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21734] [4.1 regression] ICE: -ftree-vectorize, segfault
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2005 14:21:27 -0000
- Subject: [Bug tree-optimization/21734] [4.1 regression] ICE: -ftree-vectorize, segfault
- References: <20050524080015.21734.stefaandr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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