[Bug c/87065] ice in trunc_int_for_mode

2018-08-22 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

--- Comment #2 from David Binderman  ---
It also seems to have been going wrong since sometime before 
revision 262835.

[Bug c/87065] ice in trunc_int_for_mode

2018-08-22 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

--- Comment #1 from David Binderman  ---
Reduced C code is this:

a, b, c, d, e;
f() {
  short *g = b;
  int h = 1;
  for (; h <= 1; h++)
g = &c;
  unsigned i;
  for (; c; c++) {
for (; i <= 1; i++)
  ;
a ^= (a > 0 <= i) + ((e += d) == 0 ?: (*g = 8));
  }
}