This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enable -fuse-linker-plugin by default when possible, take 2
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, Richard Guenther <rguenther at suse dot de>, "H.J. Lu" <hjl dot tools at gmail dot com>, gcc-patches at gcc dot gnu dot org, bonzini at gnu dot org, aoliva at redhat dot com
- Date: Wed, 1 Dec 2010 14:31:28 +0100
- Subject: Re: Enable -fuse-linker-plugin by default when possible, take 2
- References: <AANLkTinnsPtf=roRUDTL5r_7y-vMp9xghg1KbpDjhs2X@mail.gmail.com> <20101129152307.GC8909@kam.mff.cuni.cz> <20101129170144.GD8909@kam.mff.cuni.cz> <alpine.LNX.2.00.1011301121220.23074@zhemvz.fhfr.qr> <20101130182334.GC15323@kam.mff.cuni.cz> <4CF54C1B.4050107@gmail.com> <20101201121730.GA32438@kam.mff.cuni.cz> <alpine.LNX.2.00.1012011318450.23074@zhemvz.fhfr.qr> <20101201131926.GB32438@kam.mff.cuni.cz> <4CF65303.2090003@gmail.com>
> On 01/12/2010 13:19, Jan Hubicka wrote:
>
> > To make lto-symtab possible, I think we need new hook
> > targetm.mangle_assembler_name that will take char * and return identifier
> > (or string buffer) containing the actual symbol name.
> >
> > The default definition calling targetm.strip_name_encoding and prepending
> > user_label_prefix (if any) should work well enough for ELF targets and for
> > cygwin we will define custom hook.
> >
> > For stage3 we will use it only for lto-symtab and lto-streamer-out
> > purposes. In the next release we should work towards getting real symbol
> > table everywhere
>
> This sounds like a good plan. Did anyone volunteer to get started on it
> during the IRC discussion? Otherwise I could do it.
I implicitely added it to my TODO (at least adding the target hook and making
lto-symtab and streamer-out to do the translation), but if you will do so, you
are very, very welcome. I am somewhat swamped in the LTO issues at the moment
:)
Honza
>
> cheers,
> DaveK