On x86_64-apple-darwin10, the gcc.dg/lto/20090126-1 c_lto_20090126-1_0.o-c_lto_20090126-1_0.o link testcase fails with a compiler ICE... /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/ c_lto_20090126-1_0.o -O0 -fwhopr -v -r -nostdlib -O2 -fwhopr -o gcc-dg-lto-20090126-1-01 Reading specs from /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/specs COLLECT_GCC=/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc COLLECT_LTO_WRAPPER=/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto-wrapper Target: x86_64-apple-darwin10.4.0 Configured with: ../gcc-4.6-20100522/configure --prefix=/sw --prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.6 --enable-lto --enable-checking=release Thread model: posix gcc version 4.6.0 20100523 (experimental) [trunk revision 159699] (GCC) COMPILER_PATH=/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/ LIBRARY_PATH=/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/:/usr/lib/ COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.4' '-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/' '-O0' '-v' '-r' '-nostdlib' '-O2' '-fwhopr' '-o' 'gcc-dg-lto-20090126-1-01' '-mtune=generic' /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/collect2 -dynamic -arch x86_64 -macosx_version_min 10.6.4 -weak_reference_mismatches non-weak -r -o gcc-dg-lto-20090126-1-01 -L/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc c_lto_20090126-1_0.o -fwhopr collect2 version 4.6.0 20100523 (experimental) [trunk revision 159699] (x86_64 Darwin) /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/collect-ld -dynamic -arch x86_64 -macosx_version_min 10.6.4 -weak_reference_mismatches non-weak -r -o gcc-dg-lto-20090126-1-01 -L/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc c_lto_20090126-1_0.o /sw/bin/gnm -n c_lto_20090126-1_0.o /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto-wrapper c_lto_20090126-1_0.o /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccQIPqGP.args Reading specs from /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/specs COLLECT_GCC=/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc COLLECT_LTO_WRAPPER=/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto-wrapper Target: x86_64-apple-darwin10.4.0 Configured with: ../gcc-4.6-20100522/configure --prefix=/sw --prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.6 --enable-lto --enable-checking=release Thread model: posix gcc version 4.6.0 20100523 (experimental) [trunk revision 159699] (GCC) COLLECT_GCC_OPTIONS='-c' '-mmacosx-version-min=10.6.4' '-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/' '-O0' '-v' '-r' '-nostdlib' '-O2' '-mtune=generic' '-dumpdir' './' '-dumpbase' 'gcc-dg-lto-20090126-1-01.wpa' '-fltrans-output-list=/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccDEr7Qb.ltrans.out' '-fwpa' '-combine' /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto1 -fPIC -quiet -dumpdir ./ -dumpbase gcc-dg-lto-20090126-1-01.wpa -mmacosx-version-min=10.6.4 -mtune=generic -auxbase c_lto_20090126-1_0 -O0 -O2 -version -fltrans-output-list=/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccDEr7Qb.ltrans.out -fwpa @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccOIV9pE GNU GIMPLE (GCC) version 4.6.0 20100523 (experimental) [trunk revision 159699] (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100523 (experimental) [trunk revision 159699], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (GCC) version 4.6.0 20100523 (experimental) [trunk revision 159699] (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100523 (experimental) [trunk revision 159699], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 lto1: 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. lto-wrapper: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc returned 1 exit status collect2: lto-wrapper returned 1 exit status
I am not having any luck trying to run this testcase through gdb to get a backtrace... gdb /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto1 .... (gdb) r -fPIC -quiet -dumpdir ./ -dumpbase gcc-dg-lto-20090126-1-01.wpa -mmacosx-version-min=10.6.4 -mtune=generic -auxbase c_lto_20090126-1_0 -O0 -O2 -version -fltrans-output-list=/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccDEr7Qb.ltrans.out -fwpa @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccOIV9pE Starting program: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto1 -fPIC -quiet -dumpdir ./ -dumpbase gcc-dg-lto-20090126-1-01.wpa -mmacosx-version-min=10.6.4 -mtune=generic -auxbase c_lto_20090126-1_0 -O0 -O2 -version -fltrans-output-list=/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccDEr7Qb.ltrans.out -fwpa @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccOIV9pE Reading symbols for shared libraries .++++++++++++..... done GNU GIMPLE (GCC) version 4.6.0 20100523 (experimental) [trunk revision 159699] (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100523 (experimental) [trunk revision 159699], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 lto1: fatal error: command line option file '@/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccOIV9pE' does not exist compilation terminated. Program exited with code 01. (gdb)
gdb /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto1 ... (gdb) r -fPIC -quiet -dumpdir ./ -dumpbase gcc-dg-lto-20090126-1-01.wpa -mmacosx-version-min=10.6.4 -mtune=generic -auxbase c_lto_20090126-1_0 -O0 -O2 -version -fltrans-output-list=/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccmKvMKm.ltrans.out -fwpa @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccwJglxe Starting program: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/lto1 -fPIC -quiet -dumpdir ./ -dumpbase gcc-dg-lto-20090126-1-01.wpa -mmacosx-version-min=10.6.4 -mtune=generic -auxbase c_lto_20090126-1_0 -O0 -O2 -version -fltrans-output-list=/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccmKvMKm.ltrans.out -fwpa @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccwJglxe Reading symbols for shared libraries .++++++++++++..... done GNU GIMPLE (GCC) version 4.6.0 20100523 (experimental) [trunk revision 159699] (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100523 (experimental) [trunk revision 159699], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (GCC) version 4.6.0 20100523 (experimental) [trunk revision 159699] (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100523 (experimental) [trunk revision 159699], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 propagate () at ../../gcc-4.6-20100522/gcc/ipa-pure-const.c:104 104 DEF_VEC_P (funct_state); (gdb) bt #0 propagate () at ../../gcc-4.6-20100522/gcc/ipa-pure-const.c:104 #1 0x000000010048e59a in execute_one_pass (pass=0x1009ced80) at ../../gcc-4.6-20100522/gcc/passes.c:1588 #2 0x000000010048ec62 in execute_ipa_pass_list (pass=0x1009ced80) at ../../gcc-4.6-20100522/gcc/passes.c:1922 #3 0x0000000100016ece in lto_main (debug_p=<value temporarily unavailable, due to optimizations>) at ../../gcc-4.6-20100522/gcc/lto/lto.c:1811 #4 0x00000001005404c5 in toplev_main (argc=17, argv=0x14150f540) at ../../gcc-4.6-20100522/gcc/toplev.c:1049 #5 0x0000000100000ad4 in start () (gdb)
*** This bug has been marked as a duplicate of 43853 ***