------- Comment #1 from fierevere at mail dot ru  2010-05-12 07:01 -------
Created an attachment (id=20640)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20640&action=view)
this file triggers ICE in cc1plus

i have exactly the same, affects 4.5.0 release and current gcc-4_5-branch

../${SRCDIR}/configure --prefix=/usr/local/gcc-4.5 --host=i586-sylvia-linux
--build=i586-sylvia-linux --with-pkgversion=/argenta/ --disable-nls
--with-cpu=pentium4 --with-arch=pentium4 --enable-languages=c,c++
--enable-threads --enable-tls
--with-host-libstdcxx='/usr/local/gcc-4.5/lib/libstdc++.a -lm'
--with-gmp=/var/tmp --with-mpfr=/var/tmp --with-ppl=/var/tmp
--with-cloog=/var/tmp --with-mpc=/var/tmp --with-libelf=/var/tmp --enable-lto
--with-fpmath=sse

libtool: compile:  /var/tmp/gccbuild/./gcc/xgcc -shared-libgcc
-B/var/tmp/gccbuild/./gcc -nostdinc++
-L/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src
-L/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src/.libs
-B/usr/local/gcc-4.5/i586-sylvia-linux/bin/
-B/usr/local/gcc-4.5/i586-sylvia-linux/lib/ -isystem
/usr/local/gcc-4.5/i586-sylvia-linux/include -isystem
/usr/local/gcc-4.5/i586-sylvia-linux/sys-include
-I/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/i586-sylvia-linux
-I/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include
-I/var/tmp/gcc-4.5.1pre_100512_r159302/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -g
-march=pentium4 -D_GNU_SOURCE -c
../../../../gcc-4.5.1pre_100512_r159302/libstdc++-v3/src/pool_allocator.cc 
-fPIC -DPIC -o .libs/pool_allocator.o
In file included from
../../../../gcc-4.5.1pre_100512_r159302/libstdc++-v3/src/pool_allocator.cc:31:0:
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:
In constructor '__gnu_cxx::__pool_alloc<_Tp>::__pool_alloc() [with _Tp =
char]':
../../../../gcc-4.5.1pre_100512_r159302/libstdc++-v3/src/pool_allocator.cc:171:18:
  instantiated from here
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:140:30:
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[4]: *** [pool_allocator.lo] Error 1
make[4]: Leaving directory
`/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/gccbuild'
make: *** [profiledbootstrap] Error 2

line 171: pool_allocator.cc 
  template class __pool_alloc<char>;

line 140: pool_allocator.h
      __pool_alloc() throw() { }


backtrace:
(gdb) set args -fpreprocessed pool_allocator.ii -quiet -dumpbase
pool_allocator.ii -march=pentium4 -auxbase pool_allocator -g -O2 -Wall -Wextra
-Wwrite-strings -Wcast-qual -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -o
assembl.s
(gdb) show args
Argument list to give program being debugged when it is started is
"-fpreprocessed pool_allocator.ii -quiet -dumpbase pool_allocator.ii
-march=pentium4 -auxbase pool_allocator -g -O2 -Wall -Wextra -Wwrite-strings
-Wcast-qual -version -fno-implicit-templates -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -o assembl.s".
(gdb) run
Starting program: /tmp/cc1plus -fpreprocessed pool_allocator.ii -quiet
-dumpbase pool_allocator.ii -march=pentium4 -auxbase pool_allocator -g -O2
-Wall -Wextra -Wwrite-strings -Wcast-qual -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -o
assembl.s
GNU C++ /argenta/ version 4.5.1 (i586-sylvia-linux)
        compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ /argenta/ version 4.5.1 (i586-sylvia-linux)
        compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4b0d4a6436cff7650a243477151f465b

Program received signal SIGSEGV, Segmentation fault.
0x083b5d5a in build_new_method_call.clone.3 ()
(gdb) bt
#0  0x083b5d5a in build_new_method_call.clone.3 ()
#1  0x00000000 in ?? ()
(gdb) 
not very long because on my gentoo system everything has been compiled with
-fomit-frame-pointer, but this GCC build which is "-O2 -g -march=pentium4",
with any other flags there is same ICE too


-- 


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

Reply via email to