This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: adding ability to scan few local variables in GGC?
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Basile STARYNKEVITCH" <basile at starynkevitch dot net>
- Cc: gcc at gnu dot org
- Date: Sun, 12 Oct 2008 14:17:17 -0700
- Subject: Re: adding ability to scan few local variables in GGC?
- References: <48F25AE2.1060308@starynkevitch.net>
On Sun, Oct 12, 2008 at 1:15 PM, Basile STARYNKEVITCH
<basile@starynkevitch.net> 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? I would
say stay away from using the GC for internal pass data structures,
this is what most passes do (PRE is a good example of where it stays
away from the GC for internal data structures).
Thanks,
Andrew Pinski