This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] use --gc-sections if possible
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 16 Jan 2006 17:06:02 +1030
- Subject: Re: [v3] use --gc-sections if possible
- References: <20060111203434.56a9c55b.bkoz@redhat.com>
On Wed, Jan 11, 2006 at 08:34:34PM -0600, Benjamin Kosnik wrote:
> Hey Mr. Joy-and-bunnyrabbits:
:-) Actually, that would be Phil Edwards. I just liked the comment so
much I used it as an email subject.
> Here's how the gc-sections bits can be enabled by default. I haven't
> done the instrumentation to the testsuite to see if there is a
> significant advantage or any change to enabling this. I don't think it
> would be to difficult to do more elaborate testing.
>
> However, I'm curious: do you think this is a good idea? Do you think it
> would be a good idea to flip this on for wider testing for this flag?
My testing showed only marginal improvement in the size of libstdc++.so,
but yes, I'd like to see this GNU ld flag used.
--
Alan Modra
IBM OzLabs - Linux Technology Centre