delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2013/11/23/09:27:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Message-ID: <5290BB33.1080806@iki.fi>
Date: Sat, 23 Nov 2013 16:26:59 +0200
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Binutils and LTO in GCC
References: <5290666B DOT 6030906 AT iki DOT fi> <5290B287 DOT 9070607 AT gmx DOT de>
In-Reply-To: <5290B287.9070607@gmx.de>
Reply-To: djgpp-workers AT delorie DOT com

On 11/23/2013 03:49 PM, Juan Manuel Guerrero wrote:
> Am 23.11.2013 09:25, schrieb Andris Pavenis:
>> We should discard .gnu.lto_* sections in linker similarly as it
>> is done for Linux
>>
>> /DISCARD/: { *(gnu.lto_*) }
>>
>> Now that at least for current development version of GCC (4.9)
>> one can with some additional modifications enable LTO it would
>> be nice to have support for it also in binutils
>>
>> The related source file is ld/scripttempl/i386go32.sc
>>
>> Andris
>>
>
> Do you need a new release of bnu2232 with the linker script that has the
> DISCARD line added?
>
>
I guess, it is not urgent. We do not yet have released version of GCC
for DJGPP which supports LTO. It is not critical problem like broken
debugging info support, so it can wait. gcc-4.8.3 or gcc-4.9.0 release
is not expected very soon also.

I could also build binutils myself if needed (although I would perhaps
do it under Linux using cross-compiling instead of native build for DJGPP)

Also if one likes to check out, then build of snapshot with LTO support
enabled can be found at:

http://ap1.pp.fi/djgpp/gcc/test/4.9.0-20131121/

I have not done much testing with it. Build bash-2.0.5b using it and
specified CFLAGS="-O2 -g -flto" for building. All seemed to work.

Andris




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019