From: Tobias Burnus Date: Tue, 13 Oct 2020 13:56:58 +0000 (+0200) Subject: lto-wrapper: Use nontemp filename with -save-temps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca;p=gcc.git 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);