Hello All,
I feel that the current plugin hooks, that is the set of plugin events
enumerated in the enum plugin_event of gcc/gcc-plugin.h and the
associated API in gcc/plugin.h (e.g. register_attribute) is perhaps
still incomplete.
My feeling is that adding plugin events (at least those for which
invoke_plugin_callbacks is not called a lot of times) is a negligible
addition that fits well in the current stage 3 of the trunk.
What do you think about that?
The point is that some plugins will need a lot more hooks, and that
waiting for 4.6 or 5.0 (i.e. the next release after 4.5 from current
trunk) will delay them possibly for at least a year. And adding these
additional hooks seems easy and reasonable now. And perhaps adding new
functions (I am thinking of register_plugin_builtin) to facilitate
plugin extensions.
I started adding a new wiki page http://gcc.gnu.org/wiki/plugin%20hooks
to list the possible addition that should go into trunk
Comments are welcome.
Should I try to propose some patches to gcc-patches@ about that, or is
it impossible in the current stage3 of the 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 mines, sont seulement les miennes} ***