Two tests in SPEC CPU2000 ICE in build build2_stat when compiled for
powerpc-linux with "-O2 -mtree-vectorize -maltivec".  Here's a minimized
testcase:

extern char *reg_names[];
extern int target_flags;

void foo ()
{
  int i;
  if (target_flags)
     for (i = 0; i < 64; i++)
       reg_names[i]--;
}

Here's test output:

bug0620_1.c: In function 'foo':
bug0620_1.c:5: internal compiler error: in build2_stat, at tree.c:3080
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

A regression hunt identified the following patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=125755

    r125755 | pinskia | 2007-06-16 05:42:36 +0000 (Sat, 16 Jun 2007)


-- 
           Summary: ICE in build2_stat for -O2 -ftree-vectorize -maltivec
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32435

Reply via email to