[Bug lto/60295] [4.9 Regression] Too many lto1-wpa-stream processes are forked
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 24 22:27:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60295
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jan Hubicka from comment #4)
> I think this is better variant
> $ svn diff ~/trunk/gcc/lto/lto.c
> Index: /aux/hubicka/trunk/gcc/lto/lto.c
> ===================================================================
> --- /aux/hubicka/trunk/gcc/lto/lto.c (revision 207702)
> +++ /aux/hubicka/trunk/gcc/lto/lto.c (working copy)
> @@ -2491,7 +2491,7 @@ stream_out (char *temp_filename, lto_sym
> #ifdef HAVE_WORKING_FORK
> static int nruns;
>
> - if (!lto_parallelism || lto_parallelism == 1)
> + if (lto_parallelism <= 1)
> {
> do_stream_out (temp_filename, encoder);
> return;
>
> I basically wanted to have simple jobserver client with lto_parallelism=-1,
> but
> I did not have time to implement it. (after glancing over GNU Make's
> implementation
> it seems actually bit non-trivial)
>
This works for me. Can you check it in?
More information about the Gcc-bugs
mailing list