This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: plugin: Don't use -pass-through for gold >= 1.11


On Mon, Jan 24, 2011 at 11:36 PM, Ian Lance Taylor <iant@google.com> wrote:
> With the patches I just committed to gold, it is no longer necessary for
> the plugin to honor the -pass-through option when using gold 1.11 or
> later. ?This patch implements that in the LTO plugin.
>
> Background: the plugin -pass-through option exists to tell the linker to
> re-search archives such as libc.a and libgcc.a in case the LTO pass of
> gcc added some new function references, not previously seen, due to
> optimizations. ?I just changed gold so that when using a plugin it will
> automatically re-search any previous archives when a file added by a
> plugin introduces new undefined references. ?So the plugin's
> -pass-through option is no longer necessary when using this version of
> gold.
>
> Bootstrapped and ran lto.exp tests on x86_64-unknown-linux-gnu.
>
> OK for mainline?

Ok.

Thanks,
Richard.

> Ian
>
>
> 2011-01-24 ?Ian Lance Taylor ?<iant@google.com>
>
> ? ? ? ?* lto-plugin.c (gold_version): New static variable.
> ? ? ? ?(all_symbols_read_handler): Don't check pass_through_items if
> ? ? ? ?using gold 1.11 or later.
> ? ? ? ?(onload): Set gold_version if we see LDPT_GOLD_VERSION.
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]