[gcc r15-3374] lto-wrapper: Honor -save-temps for ltrans' makefile
Tobias Burnus
burnus@gcc.gnu.org
Mon Sep 2 08:29:12 GMT 2024
https://gcc.gnu.org/g:6640a59fed48ed4e485d4a970f3ca9ed9e908640
commit r15-3374-g6640a59fed48ed4e485d4a970f3ca9ed9e908640
Author: Tobias Burnus <tburnus@baylibre.com>
Date: Mon Sep 2 10:28:29 2024 +0200
lto-wrapper: Honor -save-temps for ltrans' makefile
gcc/ChangeLog:
* lto-wrapper.cc (run_gcc): Honor -save-temps for
makefile name.
Diff:
---
gcc/lto-wrapper.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc
index 6bfc96590a5a..c07765b37a28 100644
--- a/gcc/lto-wrapper.cc
+++ b/gcc/lto-wrapper.cc
@@ -1994,7 +1994,10 @@ cont:
if (parallel)
{
- makefile = make_temp_file (".mk");
+ if (save_temps)
+ makefile = concat (dumppfx, "ltrans.mk", NULL);
+ else
+ makefile = make_temp_file (".mk");
mstream = fopen (makefile, "w");
qsort (ltrans_priorities, nr, sizeof (int) * 2, cmp_priority);
}
More information about the Gcc-cvs
mailing list