• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revision0fa420a2d29e761371cf1a9b0807a5e967058f69 (tree)
Time2020-05-08 06:20:03
AuthorGiuliano Belinassi <giuliano.belinassi@usp....>
CommiterGiuliano Belinassi

Log Message

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.

Change Summary

Incremental Difference

--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
11 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
22
3+ * gcc.c (execute): Don't call append_arg_storer if -S is provided.
4+ (have_S): New variable.
5+
6+2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
7+
38 * common.opt (fsplit-output=): New option.
49 * gcc.c (execute): Call append_split_outputs.
510 (is_compiler): New function.
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1955,6 +1955,9 @@ static int have_o = 0;
19551955 /* Was the option -E passed. */
19561956 static int have_E = 0;
19571957
1958+/* Was the option -S passes. */
1959+static int have_S = 0;
1960+
19581961 /* Pointer to output file name passed in with -o. */
19591962 static const char *output_file = 0;
19601963
@@ -3326,7 +3329,8 @@ execute (void)
33263329 }
33273330 #endif
33283331
3329- append_split_outputs (&extra_args, commands, n_commands);
3332+ if (!have_S)
3333+ append_split_outputs (&extra_args, commands, n_commands);
33303334
33313335 /* Run each piped subprocess. */
33323336
@@ -4688,6 +4692,9 @@ process_command (unsigned int decoded_options_count,
46884692 switch (decoded_options[j].opt_index)
46894693 {
46904694 case OPT_S:
4695+ have_S = 1;
4696+ have_c = 1;
4697+ break;
46914698 case OPT_c:
46924699 case OPT_E:
46934700 have_c = 1;