diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
commit | a926878ddbd5a98b272c22171ce58663fc04c3e0 (patch) | |
tree | 86af256e5d9a9c06263c00adc90e5fe348008c43 /gcc/jobserver.cc | |
parent | 542730f087133690b47e036dfd43eb0db8a650ce (diff) | |
parent | 07cbaed8ba7d1b6e4ab3a9f44175502a4e1ecdb1 (diff) | |
download | gcc-devel/autopar_devel.zip gcc-devel/autopar_devel.tar.gz gcc-devel/autopar_devel.tar.bz2 |
Merge branch 'autopar_rebase2' into autopar_develdevel/autopar_devel
Quickly commit changes in the rebase branch.
Diffstat (limited to 'gcc/jobserver.cc')
-rw-r--r-- | gcc/jobserver.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/jobserver.cc b/gcc/jobserver.cc index 1a266c9..8cb374d 100644 --- a/gcc/jobserver.cc +++ b/gcc/jobserver.cc @@ -26,7 +26,8 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic.h" #include "errno.h" -#define JOBSERVER_MAKE_TOKEN '+' /* Token which make sent when invoking GCC. */ +/* Token which make sent when invoking GCC. */ +#define JOBSERVER_MAKE_TOKEN '+' bool jobserver_initialized = false; bool nonblock_mode = false; @@ -42,11 +43,8 @@ jobserver_token_t jobserver_curr_token = JOBSERVER_NULL_TOKEN; thing. */ static void jobserver_crash () { - error ("-fparallel-jobs=jobserver, but Make jobserver pipe is closed"); - inform (UNKNOWN_LOCATION, - "GCC must be invoked with a prepended `+' in the Makefile rule's command " - "to use the jobserver parallel mode"); - exit (1); + fatal_error (UNKNOWN_LOCATION, + "-fparallel-jobs=jobserver, but Make jobserver pipe is closed"); } /* Initialize this interface. We try to find whether the Jobserver is active @@ -124,7 +122,7 @@ void jobserver_return_token (jobserver_token_t c) /* TODO: Check if select if available in our system. */ #define HAVE_SELECT -/* Retrieve a token from the Jobserver. We have two cases, in which we must be +/* Retrieve a token from the Jobserver. We have two cases, in which we must be careful. First is when the function pselect is available in our system, as Make will set the read fd as nonblocking and will expect that we use select. (see posixos.c in GNU Make sourcecode). @@ -152,8 +150,8 @@ char jobserver_get_token () gcc_assert (r > 0); #else - internal_error ("Make set Jobserver pipe to nonblock mode, but select " - "is not supported in your system"); + internal_error ("Make set Jobserver pipe to nonblock mode, but " + " select is not supported in your system"); #endif } |