[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2012-09-06 Thread ksquirrel.iv at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Dmitry changed: What|Removed |Added CC||ksquirrel.iv at gmail dot |

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-09-20 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #27 from xunxun 2011-09-20 23:09:04 UTC --- I use gcc -flto -fuse-linker-plugin main.c libm1.a merr.o -save-temps to save some intermediate files, and this can generate a .s called ccJ5043j.ltrans0.s. I use the command: gcc -flto

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-09-18 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #26 from xunxun 2011-09-18 22:30:42 UTC --- (In reply to comment #25) > Created attachment 5936 [details] > mingw64-testcase > > ar cru libm1.a sin.o sinl_internal.o > It's very strange that if I don't use libm1.a, and use the o

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-09-18 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #25 from xunxun 2011-09-18 22:26:00 UTC --- Created attachment 5936 --> http://sourceware.org/bugzilla/attachment.cgi?id=5936 mingw64-testcase Add mingw64 testcase, the source is from mingw64 CRT source. You can build the sourc

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-09-17 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #24 from PcX 2011-09-17 17:32:33 UTC --- (In reply to comment #23) > Created attachment 5912 [details] > Qt uic.exe link failure output > > Hmm, the test case passes, but LTO still can't link an executable: > > See log for output

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-25 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #23 from vanboxem.ruben at gmail dot com 2011-08-25 14:28:01 UTC --- Created attachment 5912 --> http://sourceware.org/bugzilla/attachment.cgi?id=5912 Qt uic.exe link failure output Hmm, the test case passes, but LTO still can't l

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-16 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #22 from cvs-commit at gcc dot gnu.org 2011-08-17 00:39:45 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2011-08-17 00:39:41 Modified files: bfd: ChangeLog bfd-in.h coff-al

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-09 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #21 from cvs-commit at gcc dot gnu.org 2011-08-09 09:27:38 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2011-08-09 09:27:34 Modified files: ld : ChangeLog plugin.c Log m

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-08 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Blocks|

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-04 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-04 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #18 from cvs-commit at gcc dot gnu.org 2011-08-05 03:17:15 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2011-08-05 03:17:12 Modified files: bfd: ChangeLog elflink.c linker

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-04 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #17 f

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-03 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #16 from vanboxem.ruben at gmail dot com 2011-08-03 18:04:23 UTC --- (In reply to comment #15) > I don't have a mingw gcc to compile with, so, no I haven't tried the > testcase. > I suppose I should build a cross-compiler to proper

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-03 Thread steve at sk2 dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Stephen Kitt changed: What|Removed |Added CC||steve at sk2 dot org -- Configure bugm

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-02 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra changed: What|Removed |Added Status|ASSIGNED|NEW AssignedTo|amodra at gmail do

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-02 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #14 from Nick Clifton 2011-08-02 10:56:35 UTC --- Hi Alan, > Nick, I reckon your patch is covering a bug elsewhere. Oh, definitely. > Symbols in discarded sections are supposed to be treated as undefined. But these sections ar

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra changed: What|Removed |Added Status|NEW |ASSIGNED CC|amodra at gma

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra changed: What|Removed |Added AssignedTo|unassigned at sources dot |amodra at gmail dot com

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra changed: What|Removed |Added Status|WAITING |NEW --- Comment #12 from Alan Modra 2011

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #11 from PcX 2011-08-01 20:58:52 UTC --- (In reply to comment #8) > Created attachment 5869 [details] > Possible patch I test the patch using ruben's testcase, and it seems to work very well. -

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #10 from PcX 2011-08-01 14:57:09 UTC --- (In reply to comment #9) > Hi, > > As a workaround have you tried adding -Wl,-allow-multiple-definition to the > final gcc command line ? > > I have uploaded a patch that *might* solve thi

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Nick Clifton changed: What|Removed |Added Status|NEW |WAITING CC|

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-08-01 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 --- Comment #8 from Nick Clifton 2011-08-01 14:50:23 UTC --- Created attachment 5869 --> http://sourceware.org/bugzilla/attachment.cgi?id=5869 Possible patch -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-07-28 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 PcX changed: What|Removed |Added CC||xunxun1982 at gmail dot com --- Comment #7 from

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-05-17 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 vanboxem.ruben at gmail dot com changed: What|Removed |Added CC||ktietz70 at googlemail

[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++

2011-05-17 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 vanboxem.ruben at gmail dot com changed: What|Removed |Added Summary|lto produces multiple |lto produces multiple