]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-wrapper: Honor -save-temps for ltrans' makefile
authorTobias Burnus <tburnus@baylibre.com>
Mon, 2 Sep 2024 08:28:29 +0000 (10:28 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Mon, 2 Sep 2024 08:28:29 +0000 (10:28 +0200)
gcc/ChangeLog:

* lto-wrapper.cc (run_gcc): Honor -save-temps for
makefile name.

gcc/lto-wrapper.cc

index 6bfc96590a5aa47cb4a1695218bc04fd6409ac81..c07765b37a2863c81c63cc9bfd9c0f212861ad9b 100644 (file)
@@ -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);
        }