[lto][patch] Add a debug option to the plugin

Rafael Espindola espindola@google.com
Mon Dec 8 13:32:00 GMT 2008


This patch adds a debug option to the linker plugin. This is similar
to the collect2 one. For now it just prints the call to lto-wrapper.
To use it, one should pass -Wl,-plugin-opt=-debug to gcc.

2008-12-08  Rafael Avila de Espindola  <espindola@google.com>

	* lto-plugin.c (debug): New.
	(exec_lto_wrapper): Print argv if debug is true.
	(process_option): Process the -debug command line option.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.patch
Type: text/x-diff
Size: 1732 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081208/4a702011/attachment.bin>


More information about the Gcc-patches mailing list