This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: LTO on newlib targets w/o Gold
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: Joel Sherrill <joel dot sherrill at oarcorp dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 1 Feb 2011 11:40:48 +0100
- Subject: Re: LTO on newlib targets w/o Gold
- References: <4D4770EC.2050800@oarcorp.com> <4D47E65A.70103@gmail.com>
On Tue, Feb 1, 2011 at 11:54 AM, Dave Korn <dave.korn.cygwin@gmail.com> wrote:
> On 01/02/2011 02:33, Joel Sherrill wrote:
>> Hi,
>>
>> There are ~100 failures on each *-rtems* target
>> in the latest test runs when various lto related
>> flags are on. ?The symbols in questions are in the
>> RTEMS libraries which are picked up via the
>> -B... argument. ?Other symbols from the same
>> library are resolved.
>
> ?These have all cropped up since -fuse-linker-plugin became the default.
But it should not be the default for your build unless you have either
gold or recent binutils. You can verify this by looking at the
collect2 invocations and see if there are -plugin args.
Richard.
>> Should LTO work with a target not using gold?
>
> ?Yes, it should, but some work is needed at the binutils end. ?I am testing
> the attached two patches at the moment; the idea is to have fully-debugged
> support for LTO+plugin in the 2.20.1 release, to support 4.6.0 when it comes out.
>
> ? ?cheers,
> ? ? ?DaveK
> --
> Apologies if dup - ENOPATCH first time I hit send.
>
>
>