This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Enable parallel ltrans stage with -fwhopr=N
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Diego Novillo <dnovillo at google dot com>, Jan Hubicka <jh at suse dot de>
- Date: Thu, 20 May 2010 20:24:41 +0200
- Subject: Re: [PATCH] Enable parallel ltrans stage with -fwhopr=N
- References: <alpine.LNX.2.00.1005191253180.1429@zhemvz.fhfr.qr>
Hello Richard,
* Richard Guenther wrote on Wed, May 19, 2010 at 12:56:58PM CEST:
> This implements parallel execution of the ltrans stage with N
> parallel jobs scheduled by make. -fwhopr gets an optional
> argument specifying the number of parallel jobs, passed as -jN
> to make. Specifying -fwhopr without N or with N == 1 will
> continue to invoke the ltrans phase serially directly from
> lto-wrapper without using a make tool (good for debugging and
> when you do not have make installed).
How can we know that 'make' is a make program that accepts -j?
It may not be GNU make, and gmake may exist as well. I suggest
we could accept $MAKE as an override to plain 'make', and maybe
the default could be chosen at GCC build time.
If a build process causes this to be invoked which contains a parallel
GNU make, your inner make may complain about --jobserver-fds= arguments
in $MAKEFLAGS that don't correspond to working FDs. Other things like
-i in $MAKEFLAGS could be problematic, too, so it might be safer to
unset that variable.
Since this patch is already approved, I can work on this if desirable.
Cheers,
Ralf