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: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2010 12:18:38 -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 #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