On Tue, Jul 23, 2019 at 3:09 PM Jeff Law <l...@redhat.com> wrote: > > On 7/23/19 3:20 AM, Jan Hubicka wrote: > >> Hi. > >> > >> As we as openSUSE started using -flto, I see it very handy to have > >> an option value that will automatically detect number of cores > >> that can be used for parallel LTRANS phase. > >> > >> Thoughts? > > Hi, > > great you found time to make this. It should become the default for > > -flto IMO. > I was going to hack it into the rpm configury bits since we have access > to the # cores there. But an auto-selector within GCC is even better. > > BTW, isn't this all going to wreck havoc with reproducible builds since > partitioning can affect code generation? That's one of our open > questions...
Partitioning is independent on N in -flto=N it's just dependent on the LTO partitioning --params. Richard. > Jeff