[plugins] [patch] Initial implementation of GCC plugin support

Diego Novillo dnovillo@google.com
Tue Feb 24 22:03:00 GMT 2009


On Tue, Feb 24, 2009 at 15:05, Le-Chun Wu <lcwu@google.com> wrote:

> if I have to use some special flags/options when running 'autoconf'?
> Or do people actually massage the files after they are generated?

No.  Just run autoconf and commit what comes out of it.


> Yes, I agree that the current set of plugin events is very small and
> believe that there will be more events added in the future. But I
> think we should leave it to the people who need the new events to add
> them in later patches.

Agreed.

> register_callback (plugin_name, PLUGIN_GGC_ROOTS_SETUP, NULL, roots_table);
>
> But I think we should leave it to later patches.

Yes.


> I do have a sample plugin (which I sent out a while back ago) doing
> exactly that. I am still trying to figure out how to hook this example
> into the GCC dejagnu test infrastructure. (Does anybody know of
> similar tests I can look at?) Once I know how to do it, I will send
> another patch for the example (as a testcase).

I think adding them to 'dg' is the best way, but I'm not quite sure
what would be the best way of doing this.  Janis?  Any ideas?


Diego.



More information about the Gcc-patches mailing list