This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Come up with -flto=auto option.
- From: Jeff Law <law at redhat dot com>
- To: Martin Liška <mliska at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <hubicka at ucw dot cz>, Michael Matz <matz at suse dot de>, Richard Biener <richard dot guenther at gmail dot com>
- Date: Wed, 24 Jul 2019 09:44:41 -0600
- Subject: Re: [PATCH] Come up with -flto=auto option.
- References: <95f20c0a-81a3-2319-326b-3c5baf71e2d1@suse.cz>
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 <mliska@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