http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60785
Bug ID: 60785 Summary: ICE in gsi_for_stmt w/ -O2 -ftree-loop-linear Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com gcc-4.9.0-alpha20140406 segfaults on x86_64 when compiling the following code w/ -O2 -ftree-loop-linear: static int aqc(void) { return 1; } void gkd(void) { int wu0; static int b1y; static int gw2; static int *ydw = &gw2; static int **m3l = &ydw; **m3l = 0; for (b1y = 0; b1y < 1; ++b1y) { int *cpj = &gw2; if (*ydw |= aqc()) { *cpj = 0; *ydw = wu0; } } } Stack trace from cc1 is not fully usable, but here are top 5 frames anyway: #0 0x000000000072c22c in gsi_for_stmt(gimple_statement_base*) () #1 0x0000000000ce708b in ?? () #2 0x0000000000ce780f in ?? () #3 0x0000000000ceed3e in build_poly_scop(scop*) () #4 0x0000000000cd8417 in graphite_transform_loops() () This is a regression from previous branches, 4.7.3 and 4.8.2 don't fail here.