Re: [gentoo-user] Is "-flto" supported by Gentoo?

2017-03-22 Thread Stroller

> On 22 Mar 2017, at 02:20, P Levine  wrote:
> 
> Lately, I have been trying to fix some GCC-6 related bugs and have come 
> across some bug reports that seem possibly more "-flto" related than GCC-6 
> related.  Doing a search for "-flto", Gentoo bugtracker, a number of open 
> bugreports clearly show them to be "-flto" bugs in their titles.

Are you trying to fix these bugs upstream with the gcc devs? 

That would be my first stop, if I wanted to wade in. Then when you know what's 
going on there, you can update the Gentoo tracker.

I wrote last month about how helpful I found the gcc devs: 
https://archives.gentoo.org/gentoo-user/message/f5a5ae94fb59945d1eeb2093aab24a1c
 


Stroller.



Re: [gentoo-user] Is "-flto" supported by Gentoo?

2017-03-22 Thread Bob Wya
On 22 March 2017 at 02:20, P Levine  wrote:

> A while back I decided to try my hand at including " -flto" in my
> C{XX}FLAGS and do `emerge -e @world`.  Needless to say, by the end of it my
> "/etc/portage/package.env" was filled with a list of packages that had to
> disable the flag either because it failed to build or broke other builds.
> I never reported them as bugs because I always assumed the flag was unsafe
> and unsupported by Gentoo.
>
> Lately, I have been trying to fix some GCC-6 related bugs and have come
> across some bug reports that seem possibly more "-flto" related than GCC-6
> related.  Doing a search for "-flto", Gentoo bugtracker, a number of open
> bugreports clearly show them to be "-flto" bugs in their titles.
>
> Does Gentoo support the "-flto" flag and are "-flto" related bugreports
> valid?
>

See this Gentoo forum thread on the subject that I've read/followed with
interest ... https://forums.gentoo.org/viewtopic-t-1052716.html
I haven't tried any LTO building since gcc 4.9.x - it was a bit of pain in
the bum as I recall :-)

Bob


Re: [gentoo-user] Is "-flto" supported by Gentoo?

2017-03-22 Thread P Levine
On Tue, Mar 21, 2017 at 11:22 PM, Michael Orlitzky  wrote:
>
> On 03/21/2017 10:20 PM, P Levine wrote:
>>
>>
>> Does Gentoo support the "-flto" flag and are "-flto" related bugreports
>> valid?
>
>
> Sure. If the upstream package needs major changes, then the report probably 
> won't go anywhere, but it's still nice to have a record of the problem. Maybe 
> start a [TRACKER] bug for them?

OK. Thanks.



Re: [gentoo-user] Is "-flto" supported by Gentoo?

2017-03-21 Thread Michael Orlitzky

On 03/21/2017 10:20 PM, P Levine wrote:


Does Gentoo support the "-flto" flag and are "-flto" related bugreports
valid?


Sure. If the upstream package needs major changes, then the report 
probably won't go anywhere, but it's still nice to have a record of the 
problem. Maybe start a [TRACKER] bug for them?


We have the same problem with every new compiler feature, like PIC/PIE, 
stack-smashing protection, format-security, and so on. They all get 
fixed eventually if the upstream package is maintained.