aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2020-10-13 15:56:58 +0200
committerTobias Burnus <tobias@codesourcery.com>2020-10-13 15:56:58 +0200
commit8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca (patch)
tree5c3bf1d56c41becb6b2d4feb418fd6954711d8de /gcc/lto-wrapper.c
parentf694a0d2edc025cb54657cb804960f97a31fbda2 (diff)
downloadgcc-8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca.zip
gcc-8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca.tar.gz
gcc-8311899eddf91d0d3e3ad931c6bbf2d5a1b445ca.tar.bz2
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.
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 4d3cd7a..4d93313 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);