This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessors & GCC plugins
- From: Rafael Espindola <espindola at google dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: gcc at gnu dot org
- Date: Tue, 7 Jul 2009 15:03:24 +0100
- Subject: Re: preprocessors & GCC plugins
- References: <4A5211A5.4020707@starynkevitch.net>
2009/7/6 Basile STARYNKEVITCH <basile@starynkevitch.net>:
> Hello All
>
> I would suppose that the preprocessor (ie libcpp) might be enhanced to use
> plugins. I can see several scenarii for them:
>
> 1. a plugin could enhance the way #include directives are processed
>
> 2. a plugin could add additional builtin macros, like __COUNTER__, which
> would be specific to the plugin.
>
> 3. a plugin could add extra CPP directives (like #ident)
>
> What do you think? Probably 1 is harder to implement than 2 or 3, but I am
> not very familiar with libcpp/
>
> The http://gcc.gnu.org/ml/gcc/2009-07/msg00009.html mail suggested me the
> plugins could be useful in the preprocessor.
>
> Currently, there is no plugin specific code inside libcpp/
It might be useful, but I would wait a bit before implementing it if
is not critical. Lets first see how plugins get used. For example,
whether the linux distributions will ship a 4.5 with plugins support.
> Regards.
>
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047