aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2024-09-02 10:28:29 +0200
committerTobias Burnus <tburnus@baylibre.com>2024-09-02 10:28:29 +0200
commit6640a59fed48ed4e485d4a970f3ca9ed9e908640 (patch)
tree85800347e534e48d187cf5772f8689f894049638 /gcc
parent571d0450b294af66338c911c5205b4cbf20902ad (diff)
downloadgcc-6640a59fed48ed4e485d4a970f3ca9ed9e908640.zip
gcc-6640a59fed48ed4e485d4a970f3ca9ed9e908640.tar.gz
gcc-6640a59fed48ed4e485d4a970f3ca9ed9e908640.tar.bz2
lto-wrapper: Honor -save-temps for ltrans' makefile
gcc/ChangeLog: * lto-wrapper.cc (run_gcc): Honor -save-temps for makefile name.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/lto-wrapper.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc
index 6bfc965..c07765b 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);
}