[Bug c++/44256] When using -flto and -fwhole-program the compiler/linker crash

ttsiodras at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun May 23 20:48:00 GMT 2010



------- Comment #6 from ttsiodras at gmail dot com  2010-05-23 20:48 -------
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.


-- 


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



More information about the Gcc-bugs mailing list