http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53393
Bug #: 53393 Summary: [4.8] ICE in building gcc ( in in save_call_clobbered_regs () at ../../gcc-trunk/gcc/caller-save.c:876) Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch since yesterday /home/data/newsoft/gcc-build/./gcc/xgcc -shared-libgcc -B/home/data/newsoft/gcc-build/./gcc -nostdinc++ -L/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/bin/ -B/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/lib/ -isystem /afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/include -isystem /afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/sys-include -I/home/data/newsoft/gcc-trunk/libstdc++-v3/../libgcc -I/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/data/newsoft/gcc-trunk/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=strstream.lo -O2 -fPIC -ftree-vectorize -fvisibility-inlines-hidden -march=native -D_GNU_SOURCE -I/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/backward -Wno-deprecated -c /home/data/newsoft/gcc-trunk/libstdc++-v3/src/c++98/strstream.cc -fPIC -DPIC -o strstream.o -I/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98 -save-temps -v Reading specs from /home/data/newsoft/gcc-build/./gcc/specs COLLECT_GCC=/home/data/newsoft/gcc-build/./gcc/xgcc Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/afs/cern.ch/user/i/innocent/w2 --enable-languages=c,c++,fortran -enable-gold=yes --enable-lto --with-build-config=bootstrap-lto --with-gmp-lib=/usr/local/lib64 --with-mpfr-lib=/usr/local/lib64 -with-mpc-lib=/usr/local/lib64 --enable-cloog-backend=isl --with-cloog=/usr/local --with-ppl-lib=/usr/local/lib64 CFLAGS='-O2 -ftree-vectorize -fPIC' CXXFLAGS='-O2 -fPIC -ftree-vectorize -fvisibility-inlines-hidden -march=native' -enable-libitm -disable-multilib Thread model: posix gcc version 4.8.0 20120518 (experimental) [trunk revision 187647] (GCC) COLLECT_GCC_OPTIONS='-shared-libgcc' '-B' '/home/data/newsoft/gcc-build/./gcc' '-nostdinc++' '-L/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src' '-L/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs' '-B' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/bin/' '-B' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/lib/' '-isystem' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/include' '-isystem' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/sys-include' '-I' '/home/data/newsoft/gcc-trunk/libstdc++-v3/../libgcc' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include' '-I' '/home/data/newsoft/gcc-trunk/libstdc++-v3/libsupc++' '-fno-implicit-templates' '-Wall' '-Wextra' '-Wwrite-strings' '-Wcast-qual' '-Wabi' '-fdiagnostics-show-location=once' '-ffunction-sections' '-fdata-sections' '-frandom-seed=strstream.lo' '-O2' '-ftree-vectorize' '-fvisibility-inlines-hidden' '-march=native' '-D' '_GNU_SOURCE' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/backward' '-Wno-deprecated' '-c' '-fPIC' '-D' 'PIC' '-o' 'strstream.o' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98' '-save-temps' '-v' /home/data/newsoft/gcc-build/./gcc/cc1plus -E -quiet -nostdinc++ -v -I /home/data/newsoft/gcc-trunk/libstdc++-v3/../libgcc -I /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I /home/data/newsoft/gcc-trunk/libstdc++-v3/libsupc++ -I /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/backward -I /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98 -iprefix /home/data/newsoft/gcc-build/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/ -isystem /home/data/newsoft/gcc-build/./gcc/include -isystem /home/data/newsoft/gcc-build/./gcc/include-fixed -D_GNU_SOURCE -D _GNU_SOURCE -D PIC -isystem /afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/include -isystem /afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/sys-include /home/data/newsoft/gcc-trunk/libstdc++-v3/src/c++98/strstream.cc -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -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=8192 -mtune=corei7-avx -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -Wno-deprecated -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=strstream.lo -ftree-vectorize -fvisibility-inlines-hidden -fPIC -O2 -fpch-preprocess -o strstream.ii ignoring nonexistent directory "/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/include" ignoring nonexistent directory "/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/sys-include" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/include" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/../../include" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed" ignoring nonexistent directory "/home/data/newsoft/gcc-build/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/data/newsoft/gcc-trunk/libstdc++-v3/../libgcc /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include /home/data/newsoft/gcc-trunk/libstdc++-v3/libsupc++ /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/backward /home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98 /home/data/newsoft/gcc-build/./gcc/include /home/data/newsoft/gcc-build/./gcc/include-fixed /usr/local/include /usr/include End of search list. COLLECT_GCC_OPTIONS='-shared-libgcc' '-B' '/home/data/newsoft/gcc-build/./gcc' '-nostdinc++' '-L/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src' '-L/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs' '-B' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/bin/' '-B' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/lib/' '-isystem' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/include' '-isystem' '/afs/cern.ch/user/i/innocent/w2/x86_64-unknown-linux-gnu/sys-include' '-I' '/home/data/newsoft/gcc-trunk/libstdc++-v3/../libgcc' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include' '-I' '/home/data/newsoft/gcc-trunk/libstdc++-v3/libsupc++' '-fno-implicit-templates' '-Wall' '-Wextra' '-Wwrite-strings' '-Wcast-qual' '-Wabi' '-fdiagnostics-show-location=once' '-ffunction-sections' '-fdata-sections' '-frandom-seed=strstream.lo' '-O2' '-ftree-vectorize' '-fvisibility-inlines-hidden' '-march=native' '-D' '_GNU_SOURCE' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/backward' '-Wno-deprecated' '-c' '-fPIC' '-D' 'PIC' '-o' 'strstream.o' '-I' '/home/data/newsoft/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98' '-save-temps' '-v' /home/data/newsoft/gcc-build/./gcc/cc1plus -fpreprocessed strstream.ii -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -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=8192 -mtune=corei7-avx -quiet -dumpbase strstream.cc -auxbase-strip strstream.o -O2 -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -Wno-deprecated -version -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=strstream.lo -ftree-vectorize -fvisibility-inlines-hidden -fPIC -o strstream.s GNU C++ (GCC) version 4.8.0 20120518 (experimental) [trunk revision 187647] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.0 20120509 (experimental) [trunk revision 187326], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.8.0 20120518 (experimental) [trunk revision 187647] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.0 20120509 (experimental) [trunk revision 187326], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 85657bbcf7f02ae9e14f0727481bde7f /home/data/newsoft/gcc-trunk/libstdc++-v3/src/c++98/strstream.cc: In member function 'virtual std::basic_streambuf<char>::int_type std::strstreambuf::overflow(std::basic_streambuf<char>::int_type)': /home/data/newsoft/gcc-trunk/libstdc++-v3/src/c++98/strstream.cc:183:3: 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. [innocent@vinavx0 gccCrash]$ ls strstream.ii strstream.s[innocent@vinavx0 gccCrash]$ gdb /home/data/newsoft/gcc-build/./gcc/cc1plusGNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)Copyright (C) 2010 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/data/newsoft/gcc-build/gcc/cc1plus...done. (gdb) run -fpreprocessed strstream.ii -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -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=8192 -mtune=corei7-avx -quiet -dumpbase strstream.cc -auxbase-strip strstream.o -O2 -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -Wno-deprecated -version -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=strstream.lo -ftree-vectorize -fvisibility-inlines-hidden -fPIC -o strstream.s Starting program: /home/data/newsoft/gcc-build/gcc/cc1plus -fpreprocessed strstream.ii -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -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=8192 -mtune=corei7-avx -quiet -dumpbase strstream.cc -auxbase-strip strstream.o -O2 -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -Wno-deprecated -version -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=strstream.lo -ftree-vectorize -fvisibility-inlines-hidden -fPIC -o strstream.s reading VI .tcshrc tty resize: Command not found. GNU C++ (GCC) version 4.8.0 20120518 (experimental) [trunk revision 187647] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.0 20120509 (experimental) [trunk revision 187326], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.8.0 20120518 (experimental) [trunk revision 187647] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.0 20120509 (experimental) [trunk revision 187326], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 85657bbcf7f02ae9e14f0727481bde7f Program received signal SIGSEGV, Segmentation fault. 0x0000000000dc935f in save_call_clobbered_regs () at ../../gcc-trunk/gcc/caller-save.c:876 876 rtx dest = SET_DEST (call_set); Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.x86_64 (gdb) where #0 0x0000000000dc935f in save_call_clobbered_regs () at ../../gcc-trunk/gcc/caller-save.c:876 #1 0x0000000001d92c1c in reload (first=0x7ffff510b880, global=1) at ../../gcc-trunk/gcc/reload1.c:939 #2 0x00000000017a4466 in do_reload () at ../../gcc-trunk/gcc/ira.c:4261 #3 0x00000000017a4615 in rest_of_handle_reload () at ../../gcc-trunk/gcc/ira.c:4352 #4 0x0000000001bb6057 in execute_one_pass (pass=0x5351f80) at ../../gcc-trunk/gcc/passes.c:2184 #5 0x0000000001bb623d in execute_pass_list (pass=0x5351f80) at ../../gcc-trunk/gcc/passes.c:2239 #6 0x0000000001bb625e in execute_pass_list (pass=0x5352740) at ../../gcc-trunk/gcc/passes.c:2240 #7 0x000000000101e1c5 in expand_function (node=0x7ffff4d98af8) at ../../gcc-trunk/gcc/cgraphunit.c:1610 #8 0x000000000101e8ae in expand_all_functions () at ../../gcc-trunk/gcc/cgraphunit.c:1715 #9 0x000000000101f432 in compile () at ../../gcc-trunk/gcc/cgraphunit.c:2014 #10 0x000000000101f59a in finalize_compilation_unit () at ../../gcc-trunk/gcc/cgraphunit.c:2092 #11 0x000000000073ea37 in cp_write_global_declarations () at ../../gcc-trunk/gcc/cp/decl2.c:4029 #12 0x0000000001fdb6e6 in compile_file () at ../../gcc-trunk/gcc/toplev.c:568 #13 0x0000000001fdd517 in do_compile () at ../../gcc-trunk/gcc/toplev.c:1874 #14 0x0000000001fdd682 in toplev_main (argc=55, argv=0x7fffffffd7c8) at ../../gcc-trunk/gcc/toplev.c:1950 #15 0x0000000003cf1d7e in main (argc=55, argv=0x7fffffffd7c8) at ../../gcc-trunk/gcc/main.c:36