patch trunk: seek plugin also in a language specific directory when given a short name

Basile Starynkevitch basile@starynkevitch.net
Mon Jun 6 05:40:00 GMT 2011


Hello All,

Sorry I incorrectly sent that to gcc@ not to gcc-patches@

Front-end functions (e.g. pragma-related) are not available to all
plugins (e.g. not to plugins fired from lto1). See the
http://gcc.gnu.org/ml/gcc/2011-05/msg00321.html discussion.

This patch document a little bit that, and search short plugins like 
-fplugin=name in both `gcc -print-file-name=plugin`/name.so  and  
`gcc -print-file-name=plugin`/cc1/name.so or 
`gcc -print-file-name=plugin`/cc1plus/name.so or 
`gcc -print-file-name=plugin`/lto1/name.so .... etc ......
 
############# gcc/ChangeLog entries ################
2011-06-06  Basile Starynkevitch  <basile@starynkevitch.net>

	* doc/plugins.texi (Loading plugins): Plugins are also 
	seeked in a front-end specific subdirectory.
	(Plugin callbacks): lto1 plugins can't register pragma handlers.

	* plugin.c: Update copyright year.
	(PLUGIN_FILE_SUFFIX): New constant macro.
	(add_new_plugin): Search short plugins also in a front-end specific 
	subdirectory.
#####################################################

Attaching patch to trunk 174684

Comments are welcome. 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: langplugin-r174684.diff
Type: text/x-diff
Size: 4541 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110606/5f8da450/attachment.bin>


More information about the Gcc-patches mailing list