[Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 10 13:17:36 GMT 2020


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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Here is another test case which demonstrates the fault:

int a, b, c, e;
int *d;
void f() {
  if (0) {
    for (; b;) {
      c = f;
    g:
      for (; e;)
        ;
    }
    c |= a ?: 1;
    if (*d)
      d = e;
  }
  goto g;
}

Flag -O2 required.


More information about the Gcc-bugs mailing list