http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60740
Bug ID: 60740 Summary: ICE in extract_affine w/ -O2 -ftree-loop-linear Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com At least gcc 4.8.2 and and 4.9.0-alpha20140330 fail to compile the following code snippet w/ -O2 -ftree-loop-linear on x86_64-pc-linux-gnu: int **db6 = 0; void k26(void) { static int geb = 0; int *a22 = &geb; int **l30 = &a22; int *c4b; int ndf; for (ndf = 0; ndf <= 1; ++ndf) *c4b = (db6 == l30) && (*a22)--; } % gcc-4.9.0-alpha20140330 -c -O2 -ftree-loop-linear testcase.c crash1.c: In function 'k26': crash1.c:4:1: internal compiler error: in extract_affine, at graphite-sese-to-poly.c:846 k26(void) ^ % gcc-4.8.2 -c -O2 -ftree-loop-linear testcase.c crash1.c: In function 'k26': crash1.c:4:1: internal compiler error: in extract_affine, at graphite-sese-to-poly.c:827 k26(void) ^ % gcc-4.7.3 -c -O2 -ftree-loop-linear testcase.c % echo $? I failed to reduce the testcase any further.