This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/34329] New: ICE/segfault with -O2 -msse -ftree-vectorize on very simple code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]