[Bug lto/41376] collect2 does not handle static libraries

2010-05-24 Thread rguenther at suse dot de
--- Comment #11 from rguenther at suse dot de 2010-05-24 17:27 --- Subject: Re: collect2 does not handle static libraries On Mon, 24 May 2010, bmei at broadcom dot com wrote: > --- Comment #10 from bmei at broadcom dot com 2010-05-24 13:29 --- > annotating functions with exte

[Bug lto/41376] collect2 does not handle static libraries

2010-05-24 Thread bmei at broadcom dot com
--- Comment #10 from bmei at broadcom dot com 2010-05-24 13:29 --- annotating functions with externally_visible sounds a bit difficult to maintain. Programmer needs to know whether a function is used outside of LTO objects. This can change over time and extra efforts are needed to keep i

[Bug lto/41376] collect2 does not handle static libraries

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:15 --- (In reply to comment #8) > I integrated Dave's patch into LD with some modification (only emit those with > LTO sections) and hacked collect2 to support that. The size gain of LTO, our > main concern, is quite limite

[Bug lto/41376] collect2 does not handle static libraries

2010-05-24 Thread bmei at broadcom dot com
--- Comment #8 from bmei at broadcom dot com 2010-05-24 09:31 --- I integrated Dave's patch into LD with some modification (only emit those with LTO sections) and hacked collect2 to support that. The size gain of LTO, our main concern, is quite limited for our application. Large amount o

[Bug lto/41376] collect2 does not handle static libraries

2010-05-05 Thread rguenther at suse dot de
--- Comment #7 from rguenther at suse dot de 2010-05-05 08:55 --- Subject: Re: collect2 does not handle static libraries On Tue, 4 May 2010, bmei at broadcom dot com wrote: > --- Comment #6 from bmei at broadcom dot com 2010-05-04 16:54 --- > > So this is a rough first draft

[Bug lto/41376] collect2 does not handle static libraries

2010-05-04 Thread bmei at broadcom dot com
--- Comment #6 from bmei at broadcom dot com 2010-05-04 16:54 --- > So this is a rough first draft of the-kind-of-thing-i-was-thinking-of. We get > collect2 to run a dummy link early, and extract the output from the > --lto-assist flag to get a list of archive members that we need lto t

[Bug lto/41376] collect2 does not handle static libraries

2010-04-29 Thread rguenther at suse dot de
--- Comment #5 from rguenther at suse dot de 2010-04-29 08:29 --- Subject: Re: collect2 does not handle static libraries On Thu, 29 Apr 2010, davek at gcc dot gnu dot org wrote: > --- Comment #4 from davek at gcc dot gnu dot org 2010-04-29 05:28 --- > Created an attachment (i

[Bug lto/41376] collect2 does not handle static libraries

2010-04-28 Thread davek at gcc dot gnu dot org
--- Comment #4 from davek at gcc dot gnu dot org 2010-04-29 05:28 --- Created an attachment (id=20512) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20512&action=view) Extends GNU LD to parse archives for LTO. (In reply to comment #3) > Ow. I think we need to get LD to help us

[Bug lto/41376] collect2 does not handle static libraries

2010-04-28 Thread davek at gcc dot gnu dot org
--- Comment #3 from davek at gcc dot gnu dot org 2010-04-28 23:49 --- (In reply to comment #2) > Quoting RG from the gcc list: > > "[ ... ] Or you fix collect2 to do processing of archives and hand > lto1 the required information (it expects archive components > with LTO bytecode like a

[Bug lto/41376] collect2 does not handle static libraries

2010-04-28 Thread davek at gcc dot gnu dot org
--- Comment #2 from davek at gcc dot gnu dot org 2010-04-28 13:38 --- Quoting RG from the gcc list: "[ ... ] Or you fix collect2 to do processing of archives and hand lto1 the required information (it expects archive components with LTO bytecode like archiv...@offset with offset being t