[PATCH] Deduce automatically number of cores for -flto option.

Martin Liška mliska@suse.cz
Tue Jul 23 10:34:00 GMT 2019


On 7/23/19 11:20 AM, Jan Hubicka wrote:
> Hi,
> great you found time to make this. It should become the default for
> -flto IMO.

Works for me. Then I'm suggesting to not come up with -flto=auto and
only document that -flto passed during linking will automatically detect
number of cores. It's the same what clang does.

> 
> I think we also should auto-detect the case where jobserver is available
> and in that case let make to connect to the outer jobserver.  (We should
> also really convince make developers to invent way to connect to it w/o
> the extra + role)

Good idea, however, I don't have any experience with make and I'm leaving that
to you as a follow up improvement.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Deduce-automatically-number-of-cores-for-flto-option.patch
Type: text/x-patch
Size: 5875 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190723/b358aa28/attachment.bin>


More information about the Gcc-patches mailing list