2011/4/11 Basile Starynkevitch <bas...@starynkevitch.net>: > On Fri, 8 Apr 2011 19:55:51 +0200 > Basile Starynkevitch <bas...@starynkevitch.net> wrote: > >> Committed revision 172203 (on trunk). >> >> Actually, the above committed patch is better than nothing, but not >> perfect. It happens to generate ggc_alloc macros for things which are >> not defined in the plugin (however, this is not a big deal in practice, >> since it generates some macros in common with those inside >> gtype-desc.h). >> >> I have no clear idea on how to improve it. We could for instance write >> the ggc_alloc macros only for struct & typedefs defined in the plugin >> files. We then would need a way to know if a file is a plugin file or >> not. What do you think? > > The attached file improves the situation, by flagging input files and > generating ggc_alloc macros only relevant to plugin files.
What about include files in plugins? Are these marked as input files? -- Laurynas