------- Comment #4 from pinskia at gcc dot gnu dot org 2010-06-29 22:04 ------- Reduced even further: int DrawChunk(int *tabSize, int x) { const int numEnds = 10; int ends[numEnds + 2]; if (*tabSize > 0) { x -= 5; x = (x + *tabSize) / *tabSize; } } --- CUT ---
Compile with -O2 -fstack-check -fnon-call-exceptions -ftrapv -fexceptions (the last option is needed for C front-end). As far as I can tell the reassoication pass causes the ICE. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Keywords| |ice-on-valid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44545