aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-08-13 09:30:57 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-08-13 07:30:57 +0000
commite75c29e7c8be4ae62f2ab68eb1e18e22dca06a88 (patch)
treebb7a674df32ebaeb61b9b4c78882c0940898f4cd /gcc
parentf15c7bd140d7e9d99c5c0220284fef1cc5e42710 (diff)
downloadgcc-e75c29e7c8be4ae62f2ab68eb1e18e22dca06a88.zip
gcc-e75c29e7c8be4ae62f2ab68eb1e18e22dca06a88.tar.gz
gcc-e75c29e7c8be4ae62f2ab68eb1e18e22dca06a88.tar.bz2
Automatically detect GNU jobserver with -flto.
2019-08-13 Martin Liska <mliska@suse.cz> * doc/invoke.texi: Document automatic detection of jobserver. * lto-wrapper.c (run_gcc): Detect jobserver always. From-SVN: r274329
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi3
-rw-r--r--gcc/lto-wrapper.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 082ebe7..684c30e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-08-13 Martin Liska <mliska@suse.cz>
+
+ * doc/invoke.texi: Document automatic detection of jobserver.
+ * lto-wrapper.c (run_gcc): Detect jobserver always.
+
2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (ix86_expand_vector_set) <case E_V2SImode>:
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 5b6b824..0000d35 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -10422,7 +10422,8 @@ job server mode to determine the number of parallel jobs. This
is useful when the Makefile calling GCC is already executing in parallel.
You must prepend a @samp{+} to the command recipe in the parent Makefile
for this to work. This option likely only works if @env{MAKE} is
-GNU make.
+GNU make. Even without the option value, GCC tries to automatically
+detect a running GNU make's job server.
Use @option{-flto=auto} to use GNU make's job server, if available,
or otherwise fall back to autodetection of the number of CPU threads
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index c88b8ec..68f63da 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -1423,7 +1423,7 @@ run_gcc (unsigned argc, char *argv[])
auto_parallel = 0;
parallel = 0;
}
- else if (!jobserver && auto_parallel)
+ else if (!jobserver)
jobserver = jobserver_active_p ();
if (linker_output)