aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGiuliano Belinassi <giuliano.belinassi@usp.br>2020-05-07 18:20:03 -0300
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-05-07 18:20:03 -0300
commit0fa420a2d29e761371cf1a9b0807a5e967058f69 (patch)
tree80dc742ca4df807424437e7bcdcab520818e7278 /gcc
parentd523422175bfa695b646c9f9835fcb022e3c47c4 (diff)
downloadgcc-0fa420a2d29e761371cf1a9b0807a5e967058f69.zip
gcc-0fa420a2d29e761371cf1a9b0807a5e967058f69.tar.gz
gcc-0fa420a2d29e761371cf1a9b0807a5e967058f69.tar.bz2
Do not call append_arg_storer if -S is provided
The flag -fsplit-outputs= should not be appended to cc1 if -S is provided, as there is no easy way to do parallelism here. gcc/ChangeLog 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br> * gcc.c (execute): Don't call append_arg_storer if -S is provided. (have_S): New variable.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcc.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 40a525e..a7b152e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
+ * gcc.c (execute): Don't call append_arg_storer if -S is provided.
+ (have_S): New variable.
+
+2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
+
* common.opt (fsplit-output=): New option.
* gcc.c (execute): Call append_split_outputs.
(is_compiler): New function.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 98752e5..0e2972f 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1955,6 +1955,9 @@ static int have_o = 0;
/* Was the option -E passed. */
static int have_E = 0;
+/* Was the option -S passes. */
+static int have_S = 0;
+
/* Pointer to output file name passed in with -o. */
static const char *output_file = 0;
@@ -3326,7 +3329,8 @@ execute (void)
}
#endif
- append_split_outputs (&extra_args, commands, n_commands);
+ if (!have_S)
+ append_split_outputs (&extra_args, commands, n_commands);
/* Run each piped subprocess. */
@@ -4688,6 +4692,9 @@ process_command (unsigned int decoded_options_count,
switch (decoded_options[j].opt_index)
{
case OPT_S:
+ have_S = 1;
+ have_c = 1;
+ break;
case OPT_c:
case OPT_E:
have_c = 1;