[Bug debug/50279] [4.7 Regression] ICE while building the go front-end with LTO enabled

2011-10-10 Thread jpfoley2 at verizon dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279

--- Comment #9 from Peter Foley jpfoley2 at verizon dot net 2011-10-10 
20:34:01 UTC ---
(In reply to comment #8)
 (In reply to comment #7)
  I've attached a reduced testcase that reproduces the ICE with the 
  commandline
  g++ -nostdlib -flto -g test.i
 
 This test case doesn't trigger the ICE on x86_64-apple-darwin11...
 
 howarth% g++-fsf-4.7 -nostdlib -flto -g -c test.ii
 howarth% 
 
 Note on darwin '-c' is required, else the test case fails with...
 
 howarth% g++-fsf-4.7 -nostdlib -flto -g test.ii
 ld: warning: symbol dyld_stub_binder not found, normally in libSystem.dylib
 ld: entry point (start) undefined.  Usually in crt1.o for architecture x86_64
 collect2: error: ld returned 1 exit status

-c prevents the test case from triggering the ICE on x86_64-pc-linux-gnu for me
as well. Try removing -nostdlib from the commandline.


[Bug debug/50279] [4.7 Regression] ICE while building the go front-end with LTO enabled

2011-10-05 Thread jpfoley2 at verizon dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279

--- Comment #6 from Peter Foley jpfoley2 at verizon dot net 2011-10-06 
00:09:03 UTC ---
Created attachment 25426
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25426
reduced testcase


[Bug debug/50279] [4.7 Regression] ICE while building the go front-end with LTO enabled

2011-10-05 Thread jpfoley2 at verizon dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279

--- Comment #7 from Peter Foley jpfoley2 at verizon dot net 2011-10-06 
00:11:08 UTC ---
I've attached a reduced testcase that reproduces the ICE with the commandline
g++ -nostdlib -flto -g test.i


[Bug debug/50279] [4.7 Regression] ICE while building the go front-end with LTO enabled

2011-10-01 Thread jpfoley2 at verizon dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279

--- Comment #5 from Peter Foley jpfoley2 at verizon dot net 2011-10-01 
14:59:16 UTC ---
I still get this with fc393cf

/root/gcc/lto/./prev-gcc/g++ -B/root/gcc/lto/./prev-gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/root/gcc/libstdc++-v3/libsupc++
-L/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs   -g
-O2 -flto=jobserver -frandom-seed=1 -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common 
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o go1 \
  go/ast-dump.o go/dataflow.o go/export.o go/expressions.o go/go-backend.o
go/go-dump.o go/go-gcc.o go/go-lang.o go/go-optimize.o go/go.o go/gogo-tree.o
go/gogo.o go/import.o go/import-archive.o go/lex.o go/parse.o go/runtime.o
go/statements.o go/types.o go/unsafe.o attribs.o main.o tree-browser.o
libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lppl_c -lppl 
-lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
In member function '_M_insert_aux':
lto1: internal compiler error: in splice_child_die, at dwarf2out.c:5007
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make[4]: *** [/tmp/ccOGb3DK.ltrans2.ltrans.o] Error 1
lto-wrapper: make returned 2 exit status
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [go1] Error 1


[Bug bootstrap/50279] New: go bootstrap fails with lto

2011-09-02 Thread jpfoley2 at verizon dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279

 Bug #: 50279
   Summary: go bootstrap fails with lto
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jpfol...@verizon.net


A git checkout of gcc trunk at 982ffd8d9a1d9df5d91298d89d38293f4f3c86b4
configured with --with-build-config=bootstrap-lto
--enable-languages=all,obj-c++,go
on a gentoo linux x86_64 system with a gcc 4.5.3 bootstrap compiler
gives this error:

/root/gcc/lto/./prev-gcc/g++ -B/root/gcc/lto/./prev-gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/root/gcc/libstdc++-v3/libsupc++
-L/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs   -g
-O2 -flto=jobserver -frandom-seed=1 -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common 
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o go1 \
  go/ast-dump.o go/dataflow.o go/export.o go/expressions.o go/go-backend.o
go/go-dump.o go/go-gcc.o go/go-lang.o go/go-optimize.o go/go.o go/gogo-tree.o
go/gogo.o go/import.o go/import-archive.o go/lex.o go/parse.o go/runtime.o
go/statements.o go/types.o go/unsafe.o attribs.o main.o tree-browser.o
libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lppl_c -lppl 
-lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
In file included from ../../gcc/tree-ssa-address.c:1020:0,
 from ../../gcc/coretypes.h:63,
 from :4410:
../../gcc/go/gofrontend/gogo-tree.cc: In function 'sort':
../../gcc/go/gofrontend/gogo-tree.cc:205:32: internal compiler error: in
splice_child_die, at dwarf2out.c:5007
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make[3]: *** [/tmp/ccgXj2ab.ltrans1.ltrans.o] Error 1
lto-wrapper: make returned 2 exit status
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [go1] Error 1