This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44256] When using -flto and -fwhole-program the compiler/linker crash
- From: "ttsiodras at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2010 20:11:58 -0000
- Subject: [Bug c++/44256] When using -flto and -fwhole-program the compiler/linker crash
- References: <bug-44256-19226@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ttsiodras at gmail dot com 2010-05-23 20:11 -------
To Richard:
Under my Arch Linux, the linker cmd (that triggers the bug) is:
bash$ g++ -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 -L/usr/lib
-lSDL -lpthread -fopenmp ../lib3ds-1.3.0/lib3ds/.libs/lib3ds.a -lstdc++
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
So I tried to add "-r" , but...
bash$ g++ -r -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 -L/usr/lib
-lSDL -lpthread -fopenmp ../lib3ds-1.3.0/lib3ds/.libs/lib3ds.a -lstdc++
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
Anything else to try?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44256