diff options
author | Martin Liska <mliska@suse.cz> | 2019-08-02 11:23:56 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-08-02 09:23:56 +0000 |
commit | e006ead5230560030c44856952967ca0cfea4db2 (patch) | |
tree | 1036c571824eb7e7daa673d13ab75084ac68003c /gcc/gcc.h | |
parent | c0cc62604f163289afaa37ba45f729ae31a45e71 (diff) | |
download | gcc-e006ead5230560030c44856952967ca0cfea4db2.zip gcc-e006ead5230560030c44856952967ca0cfea4db2.tar.gz gcc-e006ead5230560030c44856952967ca0cfea4db2.tar.bz2 |
Properly detect working jobserver in gcc driver.
2019-08-02 Martin Liska <mliska@suse.cz>
PR lto/91313
* gcc.c (driver::maybe_run_linker): Call detect_jobserver
to detect working job server.
(driver::detect_jobserver): Test whether jobserver
is active from GCC driver. That will prevent situation where
GCC is invoked from a LD plugin and the linker already uses
file descriptors suggested by make. That leads to a wrong
detection.
* gcc.h (driver): Add detect_jobserver.
* lto-wrapper.c (jobserver_active_p): Simplify sscanf by
not scanning for --jobserver-auth prefix.
From-SVN: r274003
Diffstat (limited to 'gcc/gcc.h')
-rw-r--r-- | gcc/gcc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -51,6 +51,7 @@ class driver void do_spec_on_infiles () const; void maybe_run_linker (const char *argv0) const; void final_actions () const; + void detect_jobserver () const; int get_exit_code () const; private: |