[Bug lto/44724] LTO segfault with -fuse-linker-plugin

2010-07-06 Thread moonshine at kapsi dot fi
--- Comment #7 from moonshine at kapsi dot fi 2010-07-06 12:57 --- This issue is now fixed in trunk. I have no obligation to push it for 4.5 series as I am now able to build whole VICE successfully with 4.6 so I am closing the ticket. -- moonshine at kapsi dot fi changed:

[Bug lto/44724] LTO segfault with -fuse-linker-plugin

2010-07-01 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-01 11:40 --- On trunk with the original testcase we fail with /abuild/rguenther/trunk-g/gcc> ./xgcc -B. -r -nostdlib -O -march=pentium4 -flto -fuse-linker-plugin sid.ii wave.ii -m32 -B ../lto-plugin/.libs lto1: out of memory al

[Bug lto/44724] LTO segfault with -fuse-linker-plugin

2010-07-01 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-07-01 11:35 --- Confirmed. Works without -fuse-linker-plugin. Reduced testcases: wave.ii --- typedef unsigned int reg8; typedef unsigned int reg12; class WaveformGenerator { public: reg8 readOSC(); inline reg12 output

[Bug lto/44724] LTO segfault

2010-07-01 Thread moonshine at kapsi dot fi
--- Comment #4 from moonshine at kapsi dot fi 2010-07-01 11:18 --- In the meantime I also built gcc trunk revision 161601 and this also fails with: lto1: internal compiler error: vector VEC(cgraph_node_ptr,base) index domain error, in lto_cgraph_encoder_deref at lto-cgraph.c:141 --

[Bug lto/44724] LTO segfault

2010-07-01 Thread moonshine at kapsi dot fi
--- Comment #3 from moonshine at kapsi dot fi 2010-07-01 10:47 --- Created an attachment (id=21055) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21055&action=view) Preprocessed source files to reproduce this problem I was able to reduce this to two (2) source files. Quite an impr

[Bug lto/44724] LTO segfault

2010-06-30 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-30 12:59 --- On the link command-line add -r -nostdlib and start removing as many objects and libraries from the command-line as possible (preserving the crash of course). If static libraries remain, open them up and add/remove i

[Bug lto/44724] LTO segfault

2010-06-30 Thread moonshine at kapsi dot fi
--- Comment #1 from moonshine at kapsi dot fi 2010-06-30 12:27 --- (In reply to comment #0) I forgot to add that I configured VICE with a following command: CFLAGS='-flto -fuse-linker-plugin -O3 -fomit-frame-pointer -march=pentium4' CXXFLAGS='-O3 -fomit-frame-pointer -funroll-loops -ma