On Wed, Oct 17, 2012 at 11:02 AM, Basile Starynkevitch
<bas...@starynkevitch.net> wrote:
>
> Hello All,
>
> While coding (in MELT) 
> https://github.com/bstarynk/melt-examples/tree/master/ex06
> (which is essentially a MELT extension using the MELT 0.9.7 plugin from 
> http://gcc-melt.org/ )
> I noticed that the char_type_node tree from gcc/tree.h is not available
> (i.e. is still NULL) when the plugin_init function of a plugin is called.
>
> Perhaps we should add a comment in gcc/tree.h explaining that, and state more 
> precisely when is char_type_node really usable.

No, we should document that in plugin_init the plugin may not expect
anything from the GCC side apart from the plugin.h API, thus should only perform
init things.  Which looks obvious from the name of the hook.

Richard.

> 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} ***

Reply via email to