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

2010-05-25 Thread reichelt at gcc dot gnu dot org
--- Comment #16 from reichelt at gcc dot gnu dot org 2010-05-25 08:41 --- *** Bug 44264 has been marked as a duplicate of this bug. *** -- reichelt at gcc dot gnu dot org changed: What|Removed |Added

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

2010-05-24 Thread ttsiodras at gmail dot com
--- Comment #7 from ttsiodras at gmail dot com 2010-05-24 07:24 --- From my two tests in FreeBSD and Arch Linux, it appears that the -flto bug that is triggered on my renderer, has occured with the 20100520 (prerelease) commits. I hope this helps Is there anything else I can

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

2010-05-24 Thread rguenth 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

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

2010-05-24 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2010-05-24 12:24 --- Btw, it reccurs to me that the issue will be fixed by http://gcc.gnu.org/viewcvs/trunk/gcc/lto/lto.c?r1=158729r2=158728pathrev=158729 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44256

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

2010-05-24 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2010-05-24 12:34 --- Subject: Bug 44256 Author: rguenth Date: Mon May 24 12:34:34 2010 New Revision: 159779 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159779 Log: 2010-05-24 Richard Guenther rguent...@suse.de PR

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

2010-05-24 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2010-05-24 12:35 --- The next snapshot will pick up this fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44256

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

2010-05-24 Thread ttsiodras at gmail dot com
--- Comment #12 from ttsiodras at gmail dot com 2010-05-24 13:41 --- I am at work, so I did a fresh compilation of GCC4.5 from the 20050520 snapshot under my Debian stable using: ../configure --prefix=/opt/gcc45 --enable-languages=c,c++ --enable-lto The bug still happens, even if I

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

2010-05-24 Thread ttsiodras at gmail dot com
--- Comment #13 from ttsiodras at gmail dot com 2010-05-24 13:44 --- I meant 20100520, obviously, not 20050520 (no flto back then! :-) Anyway, if I understood correctly, I should wait for the next snapshot... ETA? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44256

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

2010-05-24 Thread ttsiodras at gmail dot com
--- Comment #14 from ttsiodras at gmail dot com 2010-05-24 13:47 --- And now that we see that it happens even with one object file, here is the preprocessed (.ii) for the code behind this object file: http://users.softlab.ntua.gr/~ttsiod/renderer.ii.gz --

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

2010-05-24 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2010-05-24 18:02 --- Thanks. With the preprocessed source I can confirm the crash and also confirm that the fix I just committed fixes the crash. Snapshots are generated every week, so the next is due on May 29th. -- rguenth at

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

2010-05-23 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2010-05-23 18:13 --- Did you build with --enable-checking=release? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44256

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

2010-05-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-23 20:05 --- Can you add -r to the linker line and bisect the object files needed to produce the ICE and then attach preprocessed source of them? Thanks. -- rguenth at gcc dot gnu dot org changed: What

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

2010-05-23 Thread ttsiodras at gmail dot com
--- Comment #3 from ttsiodras at gmail dot com 2010-05-23 20:09 --- To Steven: I am assuming you are asking about the building of GCC - I did it through the ports system of FreeBSD, using the latest update of the gcc45 port. Additionally, I just did an update in my Arch Linux, which

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

2010-05-23 Thread ttsiodras at gmail dot com
--- 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

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

2010-05-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-05-23 20:36 --- (In reply to comment #4) 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

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

2010-05-23 Thread ttsiodras at gmail dot com
--- 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