On Mon, Oct 13, 2008 at 7:23 AM, Basile STARYNKEVITCH <[EMAIL PROTECTED]> wrote: > Hello All, > > Andrew Pinski wrote: >> >> On Sun, Oct 12, 2008 at 1:15 PM, Basile STARYNKEVITCH >> <[EMAIL PROTECTED]> wrote: >>> >>> Hello All, >>> >>> I am sometimes wishing to be able to scan some few local variables in GCC >>> garbage collector, GGC. >> >> The only time I can think of when you want to do that is when the pass >> creates lots of garbage. The only pass I can think of that might >> cause that much garbage is the inliner but even then it would only be >> make stuff dead rather than creating new data structures which are >> dead. >> >> Can you give a more concrete example of why you want this? > > Yes, the MELT branch. There is some incomplete documentation on the wiki, > and in the MELT branch itself, file gcc/doc/melt.texi. [...] > In addition, I also do think that a ggc_collect_with_local would be useful > to plugins.
It looks like the MELT scheme of garbage collection is simply incompatible with the GCC one. And I don't see a reason to complicate GCC GGC by introducing a possibility to scan the stack (you would have to register all stack objects as (temporary) roots, otherwise GGCs precise nature would break). Richard.