Hi, With this simple testcase: int buffer[256*256]; int main(void) { int *dest = buffer; int x, y; for(x = 0; x < 256; x++) for(y = 0; y < 256; y++) *dest++ = 0; return 0; } We get an ICE: % gcc-4.4 -O1 -floop-block foo.c -o foo foo.c: In function ‘main’: foo.c:2: internal compiler error: in expand_scalar_variables_expr, at graphite.c:4295 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions. Thanks.
Not a regression, -floop-block is new.
This problem is fixed in the Graphite branch. I guess that the problem comes from the fact that in GCC4.4 we did not handled INDIRECT_REF in expand_scalar_variables_expr. Should I back-port that code? Thanks, Sebastian
a patch would be appreciated, even if it's not applied directly in the 4.4 branch. Matthias
I do not intend to backport all the changes from graphite GCC4.5 to GCC4.4. This testcase is now part of the graphite testsuite and works with -floop-block in the graphite branch. Sebastian