[Bug c/84803] ice from ifcvt_memrefs_wont_trap with -O3

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sat Mar 10 09:41:00 GMT 2018


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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Reduced C code:

a;
*b;
c(d) {
  if (a)
    *b = d;
}
e() { f(e, c); }
f(int d, int *g) { h(d, g, ""); }
h(int d, int g(), char *j, char *k) {
  int i;
  h(0, g, j + 1, 1);
  while (--i)
    g(*j);
}


More information about the Gcc-bugs mailing list