This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][plugin] Add PLUGIN_START_UNIT


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]