[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-04-06 Thread ccoutant at gcc dot gnu dot org
--- Comment #13 from ccoutant at gcc dot gnu dot org 2010-04-06 22:00 --- gold patch committed -- ccoutant at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-04-01 Thread rwild at gcc dot gnu dot org
--- Comment #12 from rwild at gcc dot gnu dot org 2010-04-01 18:21 --- (In reply to comment #11) This patch works for me. Thanks for looking into this! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42757

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-31 Thread ccoutant at gcc dot gnu dot org
--- Comment #11 from ccoutant at gcc dot gnu dot org 2010-04-01 06:32 --- Created an attachment (id=20269) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20269&action=view) Updated gold patch to fix common symbol handling Sorry, I forgot to include the updated testsuite/Makefile.*

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-31 Thread ccoutant at gcc dot gnu dot org
--- Comment #10 from ccoutant at gcc dot gnu dot org 2010-03-31 23:40 --- Created an attachment (id=20267) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20267&action=view) Gold patch to fix common symbol handling This gold patch ought to fix the problem. Please verify and I'll se

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-31 Thread ccoutant at gcc dot gnu dot org
-- ccoutant at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |ccoutant at gcc dot gnu dot |dot org

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-30 Thread rwild at gcc dot gnu dot org
--- Comment #9 from rwild at gcc dot gnu dot org 2010-03-30 16:39 --- (In reply to comment #2) > Works when linking in comm.o main.o order. FWIW one can construct test cases where neither order works, e.g., cat >main.c <<\EOF extern int i; int j; int main(void) { i = 0; return

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-26 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-03-26 14:40 --- Cary, can you give advice and/or fix gold and/or the linker plugin? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42757

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-13 Thread espindola at gcc dot gnu dot org
--- Comment #7 from espindola at gcc dot gnu dot org 2010-03-13 18:10 --- The llvm change is http://llvm.org/viewvc/llvm-project?view=rev&revision=64616 so I still don't know why gold is not returning LDPR_PREVAILING_DEF for the common symbol definition. -- http://gcc.gnu.org/bug

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-13 Thread espindola at gcc dot gnu dot org
--- Comment #6 from espindola at gcc dot gnu dot org 2010-03-13 18:02 --- It works with the llvm plugin for gold. I also find the gold output funny. What the llvm plugin does is if (I->syms[i].resolution == LDPR_PREVAILING_DEF || (I->syms[i].def == LDPK_COMMON &&

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-13 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-13 13:01 --- Ian? What's gold up to here? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-03-13 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-03-13 13:00 --- *** Bug 43355 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-15 14:34 --- I see 2 main.o 2 78 PREVAILING_DEF main 81 RESOLVED_IR i comm.o 1 78 RESOLVED_IR i which is obviously bogus for comm.o. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42757

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin

2010-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-01-15 13:37 --- Works when linking in comm.o main.o order. I guess the linker resolution handling is bogus. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added