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

--- Comment #3 from ktkachov at gcc dot gnu.org ---
Another testcase that started ICEing with r235842.

int a, b;
int
fn1 (int p1)
{
  return p1 < 0 ? p1 : a;
}

void
fn2 ()
{
lbl_100:
  b = 1;
  for (; b != 21; b = fn1 (b))
    ;
  goto lbl_100;
}

with -Ofast with a different backtrace:
ice.c:9:1: internal compiler error: in combine_blocks, at tree-if-conv.c:2219
 fn2 ()
 ^~~
0xb49a15 combine_blocks
        $SRC/gcc/tree-if-conv.c:2219
0xb4b17b tree_if_conversion
        $SRC/gcc/tree-if-conv.c:2741
0xb4b17b execute
        $SRC/gcc/tree-if-conv.c:2829
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to