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

            Bug ID: 92241
           Summary: ice in vect_mark_pattern_st mts, at
                    tree-vect-patterns.c:5175
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

This C code:

int a, b;
char c[2];
void d() {
  char e;
  for (; b; b--) {
    e = 0;
    for (; e <= 8; e++)
      a &= c[b + e] && 1;
  }
}

when compiled by recent gcc trunk and compiler flag -O3, does this:

during GIMPLE pass: vect
destDir/testFile.7849.c: In function ‘func_16.isra’:
destDir/testFile.7849.c:651:17: internal compiler error: in
vect_mark_pattern_st
mts, at tree-vect-patterns.c:5175
  651 | static int8_t * func_16(uint32_t  p_17)
      |                 ^~~~~~~
0x7e7446 vect_mark_pattern_stmts
        ../../trunk/gcc/tree-vect-patterns.c:5175
0x7e7446 vect_pattern_recog_1
        ../../trunk/gcc/tree-vect-patterns.c:5249
0x18defde vect_pattern_recog(vec_info*)
        ../../trunk/gcc/tree-vect-patterns.c:5369
0x1109078 vect_analyze_loop_2
        ../../trunk/gcc/tree-vect-loop.c:1925

The bug first seems to appear sometime between revision 277400 and 277450.

Reply via email to