https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69173

            Bug ID: 69173
           Summary: [6 Regression] ICE (segfault) in vinfo_for_stmt
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

trunk r232077, powerpc64le-linux-gnu, works with -O2

reduced test case:

unsigned a;
unsigned *b;
void fn1() {
  char c;
  while (b < (unsigned *)fn1) {
    a += b[2] + c;
    b++;
  }
}

$ gcc -c -g -O3 woff.i
woff.i: In function 'fn1':
woff.i:3:6: internal compiler error: Segmentation fault
 void fn1() {
      ^~~

0x106c33b3 crash_signal
        ../../src/gcc/toplev.c:334
0x108e9adc vinfo_for_stmt
        ../../src/gcc/tree-vectorizer.h:704
0x108e9adc vect_fixup_reduc_chain
        ../../src/gcc/tree-vect-loop.c:966
0x108e9adc vect_fixup_scalar_cycles_with_patterns
        ../../src/gcc/tree-vect-loop.c:988
0x108e9adc vect_analyze_loop_2
        ../../src/gcc/tree-vect-loop.c:1836
0x108e9adc vect_analyze_loop(loop*)
        ../../src/gcc/tree-vect-loop.c:2251
0x1090002f vectorize_loops()
        ../../src/gcc/tree-vectorizer.c:532
0x108167eb execute
        ../../src/gcc/tree-ssa-loop.c:420
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to