This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/42628] ICE during bootstrap when compiling several libsupc++ files: original tree changed by fold
- From: "matt at use dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 20:05:01 -0000
- Subject: [Bug bootstrap/42628] ICE during bootstrap when compiling several libsupc++ files: original tree changed by fold
- References: <bug-42628-8137@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from matt at use dot net 2010-01-14 20:05 -------
The configure command:
../gcc-trunk/configure --prefix=/home/matt --enable-gold
--enable-build-with-cxx --enable-lto --enable-stage1-checking=all
--disable-werror --enable-bootstrap --enable-languages=c,c++,lto
I then adjust the HAVE_DECL_BASENAME define to be "1" in the config.h files to
work around the documented limitation in autotools' detection of the overloaded
basename() declaration in the headers.
The make command:
make profiledbootstrap
The compilation command that fails (run from the
x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++ directory):
/home/matt/src/gcc-obj/./gcc/xgcc -shared-libgcc -B/home/matt/src/gcc-obj/./gcc
-nostdinc++ -L/home/matt/src/gcc-obj/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/home/matt/src/gcc-obj/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/matt/x86_64-unknown-linux-gnu/bin/
-B/home/matt/x86_64-unknown-linux-gnu/lib/ -isystem
/home/matt/x86_64-unknown-linux-gnu/include -isystem
/home/matt/x86_64-unknown-linux-gnu/sys-include
-I/home/matt/src/gcc-trunk/libstdc++-v3/../gcc
-I/home/matt/src/gcc-obj/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/matt/src/gcc-obj/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/matt/src/gcc-trunk/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -c
../../../../gcc-trunk/libstdc++-v3/libsupc++/eh_alloc.cc -fPIC -DPIC -o
eh_alloc.o
How it fails:
../../../../gcc-trunk/libstdc++-v3/libsupc++/eh_call.cc: In function ?void
__cxa_call_terminate(_Unwind_Exception*)?:
../../../../gcc-trunk/libstdc++-v3/libsupc++/eh_call.cc:60:1: internal compiler
error: fold check: original tree changed by fold
Potential reductions:
In the failing commandline above, the crash does not happen at -O0; the crash
starts happening at -O1. Configuring with --disable-bootstrap instead of
--enable-bootstrap, with all other options being the same, also avoids the
crash.
This still happens with r155867.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42628