• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

GCC with patches for OS216


コミットメタ情報

リビジョン9486636608eb9db2f223c120951d8b528a9ca4df (tree)
日時2020-05-20 00:54:03
作者Giuliano Belinassi <giuliano.belinassi@usp....>
コミッターGiuliano Belinassi

ログメッセージ

Fix compilation with multiple -c

Previous commit had an issue when calling

gcc -c file1.c file2.c

the expected result would be one .o file for each .c file. Previously
we were merging the object files.

gcc/ChangeLog
2020-05-18 Giuliano Belinassi <giuliano.belinassi@usp.br>

* gcc.c (append_split_outputs): Truncate temp_obj vector for the
next compilation.

変更サマリ

差分

--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
11 2020-05-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
22
3+ * gcc.c (append_split_outputs): Truncate temp_obj vector for the
4+ next compilation.
5+
6+2020-05-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
7+
38 * gcc.c (EMPTY_CMD): New macro.
49 (temp_object_files): New variable.
510 (get_path_to_ld): New function.
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3400,6 +3400,8 @@ static void append_split_outputs (extra_arg_storer *storer,
34003400
34013401 additional_ld->prog = path_to_ld;
34023402 additional_ld->argv = argv;
3403+
3404+ temp_object_files.truncate (0);
34033405 }
34043406
34053407 additional_asm_files.release ();
@@ -3829,7 +3831,6 @@ execute (void)
38293831
38303832 if (!have_S)
38313833 append_split_outputs (&storer, &additional_ld, &commands, &n_commands);
3832-
38333834
38343835 if (!wrapper_string)
38353836 {