Compiling an attached test program on AMD64 using gcc-4.1.0 with '-O -ftree-vectorize' produces a code which segfaults, eg.
[EMAIL PROTECTED] ~ $ gcc -O -ftree-vectorize test.c -o test [EMAIL PROTECTED] ~ $ ./test Segmentation fault Compiling it using any -O flags doesn't produce code which segfaults, eg: [EMAIL PROTECTED] ~ $ gcc -O3 test.c -o test [EMAIL PROTECTED] ~ $ ./test [EMAIL PROTECTED] ~ $ I'm using glibc-2.4-r1 (Gentoo) and kernel 2.6.16-beyond2. -- Summary: gcc 4.1 produces bad code -ftree-vectorize option Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gringo at slonko dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27299