diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-07-26 12:13:14 +0000 |
---|---|---|
committer | Richard Earnshaw <Richard.Earnshaw@arm.com> | 2018-08-01 14:23:10 +0100 |
commit | 50320b1d4a1dd06db70aeea485e0ffd9871548e0 (patch) | |
tree | 989746aec38b2b02a23672dedaf33b7b5594efc2 /include/libiberty.h | |
parent | a67ae9b01af7eb2b1f8e5c517338a4b12167ce40 (diff) | |
download | binutils-50320b1d4a1dd06db70aeea485e0ffd9871548e0.zip binutils-50320b1d4a1dd06db70aeea485e0ffd9871548e0.tar.gz binutils-50320b1d4a1dd06db70aeea485e0ffd9871548e0.tar.bz2 |
Copy from GCC: Add linker_output as prefix for LTO temps (PR lto/86548).
2018-07-26 Martin Liska <mliska@suse.cz>
PR lto/86548
* libiberty.h (make_temp_file_with_prefix): New function.
2018-07-26 Martin Liska <mliska@suse.cz>
PR lto/86548
* make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
(make_temp_file): Call make_temp_file_with_prefix with
first argument set to NULL.
(make_temp_file_with_prefix): Support also prefix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262999 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index dc09e79..0823614 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -239,6 +239,11 @@ extern char *choose_temp_base (void) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL; extern char *make_temp_file (const char *) ATTRIBUTE_MALLOC; +/* Return a temporary file name with given PREFIX and SUFFIX + or NULL if unable to create one. */ + +extern char *make_temp_file_with_prefix (const char *, const char *) ATTRIBUTE_MALLOC; + /* Remove a link to a file unless it is special. */ extern int unlink_if_ordinary (const char *); |