Be nice, this is my first attempt at filing a bug report ever :) gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.6.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ./configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --prefix=/home/suigintou/usr --enable-lto --with-mpfr=/home/suigintou/usr --with-gmp=/home/suigintou/usr --with-mpc=/home/suigintou/usr --with-ppl=/home/suigintou/usr --with-cloog=/home/suigintou/usr --with-libelf=/home/suigintou/usr --enable-__cxa_atexit --enable-threads=posix --enable-languages=c,c++ --disable-libstdcxx-pch --disable-bootstrap --enable-clocale=gnu --disable-multilib Thread model: posix gcc version 4.6.0 20100824 (experimental) (GCC)
In coreutils-8.5/src, I type "make head", but this happens: CC head.o head.c: In function 'string_to_integer': head.c:870:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make: *** [head.o] Error 1 Verbose... make head V=2 /home/suigintou/bin/gcc -B /home/suigintou/lib -L/home/suigintou/lib -I /home/suigintou/include -I /home/suigintou/usr/include -std=gnu99 -I. -I../lib -I../lib -pipe -U_FORTIFY_SOURCE -fno-stack-protector -Os -march=native -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -mssse3 -mtune=core2 -fomit-frame-pointer -funroll-loops -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all -ftree-parallelize-loops=4 -MT head.o -MD -MP -MF .deps/head.Tpo -c -o head.o head.c head.c: In function 'string_to_integer': I was experimenting with graphite and other optimizations. Silly CFLAGS settings aside, I narrowed the cause down to that "-Os" flag. Gets the same problem if I use -O2 or -O3, but not if I use -O1 or -O0. -- Summary: compiler segfault when building coreutils-8.5 "head" program with -Os, -O2 or -O3 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nemykal at mercurylampe dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45647