Deduce automatically number of cores for -flto option.
authorMartin Liska <mliska@suse.cz>
Tue, 30 Jul 2019 13:45:11 +0000 (15:45 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 30 Jul 2019 13:45:11 +0000 (13:45 +0000)
commit200b0e7e82c8dce95aa9afeec23579b8a7e19dce
treea5efa797445792b12e8b6eead11a19bb753419bc
parent029ca38849484689c7cea5757f6eb646404264ec
Deduce automatically number of cores for -flto option.

2019-07-30  Martin Liska  <mliska@suse.cz>

* doc/invoke.texi: Document new behavior.
* lto-wrapper.c (cpuset_popcount): New function
is a copy of libgomp/config/linux/proc.c.
(init_num_threads): Likewise.
(run_gcc): Automatically detect core count for -flto.
(jobserver_active_p): New function.

From-SVN: r273908
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/lto-wrapper.c