On x86_64-apple-darwin10, since the the g++.dg/lto/20100723-1_0.C testcase was
added, it has failed ICE'd the compiler with the failures...

FAIL: g++.dg/lto/20100723-1 cp_lto_20100723-1_0.o-cp_lto_20100723-1_0.o link,
-fcompare-debug -flto (internal compiler error)
FAIL: g++.dg/lto/20100723-1 cp_lto_20100723-1_0.o-cp_lto_20100723-1_0.o link,
-fcompare-debug -fwhopr (internal compiler error)

at both -m32. This appears as...

Executing on host: /Users/howarth/build-trunk/gcc/testsuite/g++/../../g++
-B/Users/howarth/build-trunk/gcc/testsuite/g++/../../ cp_lto_20100723-1_0.o 
-nostdinc++
-I/Users/howarth/build-trunk/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/include/x86_64-apple-darwin10.5.0
-I/Users/howarth/build-trunk/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/include
-I/Users/howarth/gcc-trunk/libstdc++-v3/libsupc++
-I/Users/howarth/gcc-trunk/libstdc++-v3/include/backward
-I/Users/howarth/gcc-trunk/libstdc++-v3/testsuite/util -fmessage-length=0
-fcompare-debug -flto    
-L/Users/howarth/build-trunk/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/src/.libs

-B/Users/howarth/build-trunk/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/src/.libs

-L/Users/howarth/build-trunk/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/src/.libs
-L/Users/howarth/build-trunk/x86_64-apple-darwin10.5.0/i386/libiberty 
-multiply_defined suppress     -m32 -o g++-dg-lto-20100723-1-01    (timeout =
300)
In file included from
/Users/howarth/gcc-trunk/gcc/testsuite/g++.dg/lto/20100723-1_0.C:14:0,
                 from :1:
/Users/howarth/gcc-trunk/gcc/testsuite/g++.dg/lto/20100723-1_0.C: In member
function 'f':
/Users/howarth/gcc-trunk/gcc/testsuite/g++.dg/lto/20100723-1_0.C:5:24: 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.
g++: error: during -fcompare-debug recompilation
g++: error: cp_lto_20100723-1_0.o: -fcompare-debug failure (length)
lto-wrapper: /Users/howarth/build-trunk/gcc/testsuite/g++/../../g++ returned 1
exit status
collect2: lto-wrapper returned 1 exit status
compiler exited with status 1

and backtraces as...

gdb /Users/howarth/build-trunk/gcc/testsuite/g++/../../lto1
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May  5 04:36:56 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries ............. done

(gdb) r -fPIC -quiet -dumpdir ./ -dumpbase g++-dg-lto-20100723-1-01
-mmacosx-version-min=10.6.5 -m32 -mtune=generic -auxbase-strip
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccQ6pvn8.lto.o -gtoggle -w
-version -fmessage-length=0 -fcompare-debug=-gtoggle -fcompare-debug-second -o
/dev/null @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//cccqmDPY
-frandom-seed=0x7d9c35c1 -fdump-final-insns=cp_lto_20100723-1_0.gk.gkd
Starting program: /Users/howarth/build-trunk/gcc/lto1 -fPIC -quiet -dumpdir ./
-dumpbase g++-dg-lto-20100723-1-01 -mmacosx-version-min=10.6.5 -m32
-mtune=generic -auxbase-strip
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccQ6pvn8.lto.o -gtoggle -w
-version -fmessage-length=0 -fcompare-debug=-gtoggle -fcompare-debug-second -o
/dev/null @/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//cccqmDPY
-frandom-seed=0x7d9c35c1 -fdump-final-insns=cp_lto_20100723-1_0.gk.gkd
Reading symbols for shared libraries .++++++++++++..... done
GNU GIMPLE (GCC) version 4.6.0 20100816 (experimental)
(x86_64-apple-darwin10.5.0)
        compiled by GNU C version 4.6.0 20100816 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 4.6.0 20100816 (experimental)
(x86_64-apple-darwin10.5.0)
        compiled by GNU C version 4.6.0 20100816 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
gen_tagged_type_die (type=<value temporarily unavailable, due to
optimizations>, context_die=<value temporarily unavailable, due to
optimizations>, usage=<value temporarily unavailable, due to optimizations>) at
../../gcc-trunk/gcc/dwarf2out.c:7869
7869      return TYPE_SYMTAB_DIE (type);
(gdb) bt
#0  gen_tagged_type_die (type=<value temporarily unavailable, due to
optimizations>, context_die=<value temporarily unavailable, due to
optimizations>, usage=<value temporarily unavailable, due to optimizations>) at
../../gcc-trunk/gcc/dwarf2out.c:7869
#1  0x00000001002f9f9b in gen_type_die_with_usage (type=0x14251e3f0,
context_die=0x14251b000, usage=DINFO_USAGE_DIR_USE) at
../../gcc-trunk/gcc/dwarf2out.c:20035
(gdb)


-- 
           Summary: g++.dg/lto/20100723-1 cp_lto_20100723-1_0.o-
                    cp_lto_20100723-1_0.o link, -fcompare-debug -flto/-
                    fwhopr ICE
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45302

Reply via email to