Re: LTO vs static library archives [was Re: lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:549]

2010-04-29 Thread Steven Bosscher
On Thu, Apr 29, 2010 at 10:57 AM, Richard Guenther richard.guent...@gmail.com wrote: Yes - that would be basically a linker plugin without plugin support. And I'd go even further and have LD provide a complete symbol resolution set like we get from the gold linker-plugin. That wouldn't help

Re: LTO vs static library archives [was Re: lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:549]

2010-04-29 Thread Richard Guenther
On Thu, Apr 29, 2010 at 11:19 AM, Steven Bosscher stevenb@gmail.com wrote: On Thu, Apr 29, 2010 at 10:57 AM, Richard Guenther richard.guent...@gmail.com wrote: Yes - that would be basically a linker plugin without plugin support. And I'd go even further and have LD provide a complete

Re: LTO vs static library archives [was Re: lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:549]

2010-04-29 Thread Jan Hubicka
Well, we'd then need to re-architect the symbol merging and LTO unit read-in to properly honor linking semantics (drop a LTO unit from an archive if it doesn't resolve any unresolved symbols). I don't know how easy that will be, but it shouldn't be impossible at least. We also should keep

Re: LTO vs static library archives [was Re: lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:549]

2010-04-29 Thread Ian Lance Taylor
Richard Guenther richard.guent...@gmail.com writes: Well, we'd then need to re-architect the symbol merging and LTO unit read-in to properly honor linking semantics (drop a LTO unit from an archive if it doesn't resolve any unresolved symbols). I don't know how easy that will be, but it

Re: LTO vs static library archives [was Re: lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:549]

2010-04-29 Thread Richard Guenther
2010/4/29 Jan Hubicka hubi...@ucw.cz: Well, we'd then need to re-architect the symbol merging and LTO unit read-in to properly honor linking semantics (drop a LTO unit from an archive if it doesn't resolve any unresolved symbols).  I don't know how easy that will be, but it shouldn't be

Re: LTO vs static library archives [was Re: lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:549]

2010-04-29 Thread Jan Hubicka
2010/4/29 Jan Hubicka hubi...@ucw.cz: Well, we'd then need to re-architect the symbol merging and LTO unit read-in to properly honor linking semantics (drop a LTO unit from an archive if it doesn't resolve any unresolved symbols).  I don't know how easy that will be, but it shouldn't be