diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-05-15 09:12:21 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-05-15 09:12:21 +0000 |
commit | c101cff86ea770fe29f18e5c955e85ce9830b029 (patch) | |
tree | 4933779deed5857c82376f5f285e54de1998ce29 /lto-plugin/ChangeLog | |
parent | debe1ba0190b1cf61499533ef01b0bdb51bf581e (diff) | |
download | gcc-c101cff86ea770fe29f18e5c955e85ce9830b029.zip gcc-c101cff86ea770fe29f18e5c955e85ce9830b029.tar.gz gcc-c101cff86ea770fe29f18e5c955e85ce9830b029.tar.bz2 |
lto-plugin - support -save-temps, -v, --version.
This patch makes the lto-plugin follow the same approach
to save-temps as collect2.
-save-temps causes the temp file to be named meaningfully,
and for the relevant input files to be saved in CWD.
-v, —version causes the save actions to be output to stderr.
one can get this to happen by just putting -save-temps, -v on
the regular link line or (for compatibility with the way the
-debug flag works) by appending -plugin-opt=-save-temps, etc.
lto-plugin/
2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
* lto-plugin.c (exec_lto_wrapper): Make the wrapper
arguments filename more user-friendly.
(file_exists, maybe_unlink): New.
(cleanup_handler): Use maybe unlink to handle the
case when temps should be saved.
(process_option): Look for -v, —-version, -save-temps.
(onload): Record the linker output file name.
Check for -v, —-version, -save-temps in the GCC collect
options environment.
From-SVN: r271202
Diffstat (limited to 'lto-plugin/ChangeLog')
-rw-r--r-- | lto-plugin/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index 8ddccbe..16faa56 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,15 @@ +2019-05-15 Iain Sandoe <iain@sandoe.co.uk> + + * lto-plugin.c (exec_lto_wrapper): Make the wrapper + arguments filename more user-friendly. + (file_exists, maybe_unlink): New. + (cleanup_handler): Use maybe unlink to handle the + case when temps should be saved. + (process_option): Look for -v, —-version, -save-temps. + (onload): Record the linker output file name. + Check for -v, —-version, -save-temps in the GCC collect + options environment. + 2019-02-26 Martin Liska <mliska@suse.cz> * lto-symtab.c: Remove. |