[Bug middle-end/70199] Crash at -O2 when using labels.

2016-03-12 Thread sce196 at icloud dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70199

--- Comment #2 from Sam Ellis  ---
Yes, I have made an attempt at reducing the original code to a small subset
that still reproduces the crash. Now that you mention it, it is possible I
reduced it too far to the extent that it won't compile or run as expected.
Nonetheless, crashing the compiler isn't so good. If there is a need for the
non-reduced code then I can attach that as well.

[Bug middle-end/70199] Crash at -O2 when using labels.

2016-03-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70199

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
  Component|c   |middle-end

--- Comment #1 from Andrew Pinski  ---
Is this reduced from some other code because this code seems undefined.

That is :
uint16_t lfsr = 0xACE1u;

...

  goto *labels[lfsr & mask];


Will be 0x11 for the inner most loop always and labels has only three elements.