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.
This commit is contained in:
Tobias Burnus 2020-10-13 15:56:58 +02:00
parent f694a0d2ed
commit 8311899edd

View File

@ -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);