This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: LTO with cross compiler and static linking
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 19 Mar 2013 09:42:11 -0700
- Subject: Re: LTO with cross compiler and static linking
- References: <51483E4D dot 3000103 at embedded-brains dot de> <CA+=Sn1nmwwFLAKYMFA58BG2v7W06edD0gxR+mGP=iYqn6ho4tg at mail dot gmail dot com> <51489244 dot 5000006 at embedded-brains dot de>
On Tue, Mar 19, 2013 at 9:28 AM, Sebastian Huber
<sebastian.huber@embedded-brains.de> wrote:
> On 03/19/2013 04:50 PM, Andrew Pinski wrote:
>>
>> On Tue, Mar 19, 2013 at 3:30 AM, Sebastian Huber
>> <sebastian.huber@embedded-brains.de> wrote:
>>>
>>> >Hello,
>>> >
>>> >I test currently the GCC 4.8 release candidate. Some GCC LTO tests fail
>>> > for
>>> >me since the introduction of LTO in GCC. I use Binutils 2.23.1 for
>>> > PowerPC
>>> >EABI (powerpc-rtems4.11 target) configured with:
>>> >
>>> >/scratch/archive/binutils-2.23.1/configure --target=powerpc-rtems4.11
>>> >--prefix=/scratch/install-4.8.0-RC-20130316 --disable-werror
>>> > --enable-lto
>>> >
>>> >For GCC I use:
>>> >
>>> >/scratch/archive/gcc-4.8.0-RC-20130316/configure --disable-werror
>>> >--enable-threads=rtems --with-gnu-as --disable-multilib --enable-lto
>>> >--enable-newlib-mb --enable-newlib-iconv --with-gnu-ld --with-newlib
>>> >--verbose --with-system-zlib --disable-nls
>>> >--enable-version-specific-runtime-libs --enable-languages=c,c++
>>> >--target=powerpc-rtems4.11 --prefix=/scratch/install-4.8.0-RC-20130316
>>
>>
>> The easiest fix is inside the GCC testsuite itself. In
>> testsuite/gcc.c-torture/execute/builtins/builtins.exp change:
>> if { [istarget *-*-eabi*]
>> || [istarget *-*-elf] } {
>> lappend additional_flags "-Wl,--allow-multiple-definition"
>> }
>> To:
>> if { [istarget *-*-eabi*]
>> || [istarget *-*-elf]
>> || [istarget *-*-rtems*]} {
>> lappend additional_flags "-Wl,--allow-multiple-definition"
>> }
>
>
> Ok, so you say that this multiple definition with LTO is intentional for
> statically linked applications?
For this set of testcases yes. They are explicitly having multiple
defined symbols.
Thanks,
Andrew
>
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail : sebastian.huber@embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschÃftliche Mitteilung im Sinne des EHUG.