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

            Bug ID: 97496
           Summary: ice during during GIMPLE pass: cddce
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C code:

int a;
int b[];
void c(unsigned g) {
  if (a) {
    long e = g, d = e;
    int f = 0;
    for (; f < 4; f++) {
      b[f] = d;
      d >>= 8;
    }
  }
}

with compiler flag -O3, does this:

during GIMPLE pass: cddce
bug657.c: In function ā€˜cā€™:
bug657.c:3:6: internal compiler error: in mark_operand_necessary, at
tree-ssa-dce.c:173
    3 | void c(unsigned g) {
      |      ^
0x5e63bd mark_operand_necessary
        ../../trunk.git/gcc/tree-ssa-dce.c:173
0x5e63bd propagate_necessity
        ../../trunk.git/gcc/tree-ssa-dce.c:775

The problem first seems to occur sometime between 20201016 and 20201017.

Reply via email to