This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
When is char_type_node available in plugins?
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Oct 2012 11:02:46 +0200
- Subject: When is char_type_node available in plugins?
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.
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} ***