This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Enable parallel ltrans stage with -fwhopr=N


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]