$ cat a.c void foo(void) { static int irows[50000]; int i; for (i = 1; i < 1000; i++) irows[i-1] = i; }
$ gcc -c -O1 -march=athlon-xp -ftree-vectorize a.c a.c: In function foo: a.c:8: internal compiler error: in expand_simple_binop, at optabs.c:1192 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. $ gcc -v Using built-in specs. Target: i386-pc-linux-gnu Configured with: /home/fxcoudert/gfortran_nightbuild/trunk/configure --prefix=/home/fxcoudert/gfortran_nightbuild/irun-20070209 --enable-languages=c,fortran --host=i386-pc-linux-gnu --enable-checking=release --with-gmp=/home/fxcoudert/gfortran_nightbuild/software Thread model: posix gcc version 4.3.0 20070209 (experimental) The original bug report (http://gcc.gnu.org/ml/fortran/2007-02/msg00288.html) was about the follow Fortran code: subroutine gaussj2_cvb(n) dimension irows(n) do 100 i=1,n 100 irows(i)=i end When someone fixes this, can you verify that the ICE is also gone on the Fortran code (same optimization options)? -- Summary: ICE on loop vectorization (-O1 -march=athlon-xp -ftree- vectorize) Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org GCC build triplet: i386-pc-linux-gnu GCC host triplet: i386-pc-linux-gnu GCC target triplet: i386-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30784