On 7/23/19 2:30 AM, Martin Liška 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? > > gcc/ChangeLog: > > 2019-07-23 Martin Liska <mli...@suse.cz> > > * doc/invoke.texi: Document the new option value. > * lto-wrapper.c (cpuset_popcount): New function > is a copy of libgomp/config/linux/proc.c. > (init_num_threads): Likewise. > (run_gcc): Support -flto=auto. OK. I won't be at all surprised if this causes headaches on some hosts, so please watch for Solaris, AIX, etc etc issues.
Jeff