[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 ksquirrel.iv at gmail dot com changed: What|Removed |Added CC||ksquirrel.iv at

[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 xunxun1982 at gmail dot com 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

[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 xunxun1982 at gmail dot com 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

[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 xunxun1982 at gmail dot com 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

[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 xunxun1982 at gmail dot com 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:

[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

[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 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

[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 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

[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 hjl.tools at gmail dot com changed: What|Removed |Added Status|RESOLVED|REOPENED

[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 amodra at gmail dot com changed: What|Removed |Added CC||amodra at gmail

[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 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

[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 amodra at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED

[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 steve at sk2 dot org changed: What|Removed |Added CC||steve at sk2 dot

[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 properly

[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 nickc at redhat dot com 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.

[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 amodra at gmail dot com changed: What|Removed |Added Status|ASSIGNED|NEW

[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 nickc at redhat dot com 2011-08-01 14:50:23 UTC --- Created attachment 5869 -- http://sourceware.org/bugzilla/attachment.cgi?id=5869 Possible patch -- Configure bugmail:

[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 xunxun1982 at gmail dot com 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

[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 xunxun1982 at gmail dot com 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 amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12762 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|WAITING |NEW --- Comment

[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 amodra at gmail dot com changed: What|Removed |Added AssignedTo|unassigned at sources dot |amodra at gmail

[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 amodra at gmail dot com changed: What|Removed |Added Status|NEW |ASSIGNED

[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 xunxun1982 at gmail dot com changed: What|Removed |Added CC||xunxun1982 at gmail

[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

[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