------- Comment #8 from rguenth at gcc dot gnu dot org 2010-05-24 12:18 ------- (In reply to comment #6) > Well, I added "nostdlib" and removed all libraries from the cmd line, but > still: > > bash$ g++ -r -nostdlib -O3 -g -Wall -Wextra -fomit-frame-pointer -ffast-math > -funsafe-math-optimizations -mtune=native -flto -msse -mrecip -mfpmath=sse > -msse2 -mssse3 -DNDEBUG -o renderer renderer-renderer.o renderer-Algebra.o > renderer-Camera.o renderer-Keyboard.o renderer-Light.o renderer-Object3D.o > renderer-Scene.o renderer-Screen.o renderer-Base3d.o -fwhole-program > lto1: internal compiler error: in gimple_register_type, at gimple.c:3820 > Please submit a full bug report, > with preprocessed source if appropriate. > See <http://gcc.gnu.org/bugs.html> for instructions. > lto-wrapper: /usr/bin/g++ returned 1 exit status > collect2: lto-wrapper returned 1 exit status > > In fact, it crashes even when I remove -fwhole-program. > It only works if I remove the -flto.
Yes, now with the above command-line remove .o files one-by one and figure out the minimal set of *.o files that make it crash. For those files please attach pre-processed source. (I expect it will be a single file) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44256