diff options
author | Martin Liska <mliska@suse.cz> | 2019-08-08 09:50:28 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-08-08 07:50:28 +0000 |
commit | 0fddb1847019ceb570c6e0aea0ea779f1f9988cf (patch) | |
tree | 8b7110505306ba08d399f18bc2af2f9037284603 /gcc/gcc.c | |
parent | fe8e21fd730f01815bf6533289d2b3e33033a250 (diff) | |
download | gcc-0fddb1847019ceb570c6e0aea0ea779f1f9988cf.zip gcc-0fddb1847019ceb570c6e0aea0ea779f1f9988cf.tar.gz gcc-0fddb1847019ceb570c6e0aea0ea779f1f9988cf.tar.bz2 |
Fix file descriptor existence of MinGW.
2019-08-08 Martin Liska <mliska@suse.cz>
PR bootstrap/91352
* gcc.c (driver::detect_jobserver): Use is_valid_fd.
* lto-wrapper.c (jobserver_active_p): Likewise.
2019-08-08 Martin Liska <mliska@suse.cz>
PR bootstrap/91352
* libiberty.h (is_valid_fd): New function.
2019-08-08 Martin Liska <mliska@suse.cz>
PR bootstrap/91352
* lrealpath.c (is_valid_fd): New function.
From-SVN: r274208
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8380,8 +8380,8 @@ driver::detect_jobserver () const = (sscanf (n + strlen (needle), "%d,%d", &rfd, &wfd) == 2 && rfd > 0 && wfd > 0 - && fcntl (rfd, F_GETFD) >= 0 - && fcntl (wfd, F_GETFD) >= 0); + && is_valid_fd (rfd) + && is_valid_fd (wfd)); /* Drop the jobserver if it's not working now. */ if (!jobserver) |