From: Tobias Burnus Date: Mon, 2 Sep 2024 08:28:29 +0000 (+0200) Subject: lto-wrapper: Honor -save-temps for ltrans' makefile X-Git-Tag: basepoints/gcc-16~6179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6640a59fed48ed4e485d4a970f3ca9ed9e908640;p=thirdparty%2Fgcc.git lto-wrapper: Honor -save-temps for ltrans' makefile gcc/ChangeLog: * lto-wrapper.cc (run_gcc): Honor -save-temps for makefile name. --- diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc index 6bfc96590a5..c07765b37a2 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); }