From 6dab804dc7d7245828d565f19ae540e158def1c1 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 24 Feb 2014 23:58:44 +0100 Subject: [PATCH] re PR lto/60295 (Too many lto1-wpa-stream processes are forked) PR lto/60295 * lto.c (stream_out): Avoid parallel streaming with -flto=jobserver until we are able to throttle it down resonably. From-SVN: r208097 --- gcc/lto/ChangeLog | 7 +++++++ gcc/lto/lto.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index b1a40553f5a..815d0c174c5 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,10 @@ +2014-02-14 Jan Hubicka + + PR lto/60295 + * lto.c (stream_out): Avoid parallel streaming with + -flto=jobserver until we are able to throttle it down + resonably. + 2014-02-14 Jan Hubicka * lto-partition.c (add_symbol_to_partition_1, diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index c676d791266..91b43d9455b 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -2498,7 +2498,7 @@ stream_out (char *temp_filename, lto_symtab_encoder_t encoder, bool last) #ifdef HAVE_WORKING_FORK static int nruns; - if (!lto_parallelism || lto_parallelism == 1) + if (lto_parallelism <= 1) { do_stream_out (temp_filename, encoder); return; -- 2.30.2