This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch][plugin] Add PLUGIN_START_UNIT
- From: Rafael Espindola <espindola at google dot com>
- To: Olatunji Ruwase <tjruwase at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Diego Novillo <dnovillo at google dot com>
- Date: Thu, 25 Jun 2009 13:41:38 +0100
- Subject: Re: [patch][plugin] Add PLUGIN_START_UNIT
- References: <fe7fd8170906221614l1edeee53p3e0ec651f247de05@mail.gmail.com>
2009/6/23 Olatunji Ruwase <tjruwase@google.com>:
> Hello,
> ÂThis patch adds PLUGIN_START_UNIT callbacks.
>
> ÂPLUGIN_START_UNIT callbacks allow plugins to initialize state for
> each translation unit, before it is compiled.
> ÂFor example, plugins like mudflap create artificial variables/types
> and expect type trees (*_type_node) have been created.
> ÂTherefore PLUGIN_START_UNIT callbacks are invoked after all the
> frontend initialization but before code compilation.
I like the patch. Would you mind just adding a small test for it?
Anything that uses one of the _type_node nodes should be enough.
> ÂThe patch bootstraps on x86_64-unknown-linux-gnu target and has no
> test suite regressions.
> ÂThank you
>
> tunji
>
Thanks,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047