On Sun, 2017-07-16 at 09:47 +0000, Branko wrote: > Eh, nevermind. I've found the link with hints how to do it properly. It > seems to be building OK now. With graphite, LTO and PGO. When following up, it would be useful to add the link you found so that it becomes part of the public record, for anyone else with a similar problem, who finds this thread through a search. -- Brian > On 14. 07. 2017 05:15, Branko wrote: > > I have adapted existing gcc-7.1.0 ebuild and flag-o-matic eclass so > > that it allows me to build gcc with my flags without filtering them. > > > > It works fine, when built with prefiltered flags, but I wanted to > > compile it with flto and pgo steps ( and later do same with binutils) > > to see if that would shorten long compile times. ... > > > > Has anyone tried to compile gcc-7 with such combination ? > > > > I used gcc-7.1.0 for compilation, along with binutils-2.28 > >