r271202 - in /trunk/lto-plugin: ChangeLog lto-p...

iains@gcc.gnu.org iains@gcc.gnu.org
Wed May 15 09:12:00 GMT 2019


Author: iains
Date: Wed May 15 09:12:21 2019
New Revision: 271202

URL: https://gcc.gnu.org/viewcvs?rev=271202&root=gcc&view=rev
Log:
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.


Modified:
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/lto-plugin.c



More information about the Gcc-cvs mailing list