This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34329] New: ICE/segfault with -O2 -msse -ftree-vectorize on very simple code
- From: "christophe at saout dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2007 21:18:59 -0000
- Subject: [Bug middle-end/34329] New: ICE/segfault with -O2 -msse -ftree-vectorize on very simple code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc -O2 -msse -ftree-vectorize -c broken.c -o broken.o
on the code snippet below gives a "broken.c:4: internal compiler error:
Segmentation fault".
extern int array[2][7][6];
void test(int type, int *eq, int idx)
{
int i;
int v = type ? 0 : 1;
for (i = 0; i < 6; i++)
eq[i] = array[v][idx][i];
}
--
Summary: ICE/segfault with -O2 -msse -ftree-vectorize on very
simple code
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christophe at saout dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34329