http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53373
Bug #: 53373 Summary: [4.8 regression] ICE on valid code with -march-native Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: mar...@mpa-garching.mpg.de Created attachment 27417 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27417 Preprocessed testcase When compiling the attached testcase on an Intel Core i3-2120 with a recent trunk version of gcc, the compiler segfaults: /scratch/martin/mysvn/libpsht3>gcc -v -O2 -march=native -c bug.i Using built-in specs. COLLECT_GCC=gcc Target: x86_64-unknown-linux-gnu Configured with: /scratch/martin/gccgit/configure --disable-graphite --enable-gold --enable-plugins --prefix=/afs/mpa/data/martin/ugcc --with-libelf=/afs/mpa/data/martin/numlibs64 --enable-languages=c++,fortran --enable-target=all --enable-checking=release --enable-build-with-cxx Thread model: posix gcc version 4.8.0 20120516 (experimental) [trunk revision a756f44:a2ddc2d:669c9ede91a14c0cc74b38c1ab923146ac3919b2] (GCC) COLLECT_GCC_OPTIONS='-v' '-O2' '-march=native' '-c' /afs/mpa/data/martin/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1 -fpreprocessed bug.i -march=corei7-avx -mcx16 -msahf -mno-movbe -mno-aes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=corei7-avx -quiet -dumpbase bug.i -auxbase bug -O2 -version -o /tmp/ccLcgfAs.s GNU C (GCC) version 4.8.0 20120516 (experimental) [trunk revision a756f44:a2ddc2d:669c9ede91a14c0cc74b38c1ab923146ac3919b2] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.0 20120516 (experimental) [trunk revision a756f44:a2ddc2d:669c9ede91a14c0cc74b38c1ab923146ac3919b2], GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C (GCC) version 4.8.0 20120516 (experimental) [trunk revision a756f44:a2ddc2d:669c9ede91a14c0cc74b38c1ab923146ac3919b2] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.0 20120516 (experimental) [trunk revision a756f44:a2ddc2d:669c9ede91a14c0cc74b38c1ab923146ac3919b2], GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 03c904a1dcafbbea3957ffe55a6c30c7 libfftpack/fftpack.c: In function 'rfftf': libfftpack/fftpack.c:799:3: internal compiler error: Segmentation fault { if(n!=1) rfftf1(n, r, wsave, wsave+n,(size_t*)(wsave+2*n)); } ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. This ICE seems to have been introduced fairly recently. I didn't encounter it a few days ago.