PATCH: adding invoking_program to plugin_gcc_version

Basile Starynkevitch basile@starynkevitch.net
Wed Jun 1 05:53:00 GMT 2011


Hello All,

The attached patch to trunk 174518 adds a field invoking_program to the
plugin_gcc_version structure. It informs the plugin about the program
"cc1", "cc1plus", "lto1" using them.

######### gcc/ChangeLog entry ##########
2011-06-01  Basile Starynkevitch  <basile@starynkevitch.net>

	* gcc-plugin.h (struct plugin_gcc_version): Add invoking_program field.

	* toplev.c (general_init): Fill invoking_program field of gcc_version.

	* configure.ac: Ditto.

	* configure: Regenerate.
########################################

See http://gcc.gnu.org/ml/gcc/2011-06/msg00000.html & 
http://gcc.gnu.org/ml/gcc/2011-05/msg00324.html for why I believe it is useful.

Ok for trunk?

Regards.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_invokingprog_r174518.diff
Type: text/x-diff
Size: 2315 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110601/b94d94ab/attachment.bin>


More information about the Gcc-patches mailing list