The following gets an ICE with -O3 -ftree-loop-linear: int x[6][5][4]; int y[6][5][4]; void initx(void) { int a,b,c; int index = 0; for(a = 5; a >=2; a--) for (b = (a - 1); b >=1; b--) for (c = (b - 1); c >=0; c--) x[a][b][c] = index++; } void inity(void) { int d,e,f; int index = 0; for(d = 5; d >=2; d--) for (e = (d - 1); e >=1; e--) for (f = (e - 1); f >=0; f--) y[d][e][f] = index++; } void foo() { initx(); inity(); }
-- Summary: ICE with -ftree-loop-linear Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dalej at apple dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin8.0.0 GCC host triplet: powerpc-apple-darwin8.0.0 GCC target triplet: powerpc-apple-darwin8.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19910