On 10/13/20 2:56 PM, Richard Biener wrote:
On Tue, 13 Oct 2020, Tobias Burnus wrote:
This patch generates (for a.out and -save-temps)
the file a.crtoffloadtable.o.
I missed a misused of concat in my patch :-(
Committed as obvious.
Tobias
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander
Walter
commit 8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca
Author: Tobias Burnus <tob...@codesourcery.com>
Date: Tue Oct 13 15:56:58 2020 +0200
lto-wrapper: Use nontemp filename with -save-temps
gcc/ChangeLog:
* lto-wrapper.c (find_crtoffloadtable): Fix last commit
by adding NULL as last argument to concat.
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 4d3cd7a56f2..4d93313241d 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -1043,7 +1043,7 @@ find_crtoffloadtable (int save_temps, const char *dumppfx)
if (!save_temps)
crtoffloadtable = make_temp_file (".crtoffloadtable.o");
else
- crtoffloadtable = concat (dumppfx, "crtoffloadtable.o");
+ crtoffloadtable = concat (dumppfx, "crtoffloadtable.o", NULL);
copy_file (crtoffloadtable, paths[i]);
printf ("%s\n", crtoffloadtable);
XDELETEVEC (crtoffloadtable);