From 8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Tue, 13 Oct 2020 15:56:58 +0200 Subject: [PATCH] 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. --- gcc/lto-wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2