This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: memory is not free
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: memory is not free
- From: Per Bothner <per at bothner dot com>
- Date: 30 Nov 1999 14:42:44 -0800
- References: <199911302223.OAA16724@kankakee.wrs.com>
Mike made me curious enough to (for the first time) look at
ggc.h and ggc-common.c. We basically have mutual recursion
between the macro ggc_mark_rtx and the function ggc_mark_rtx_children.
However, ggc_mark_rtx_children is only called from ggc_mark_rtx.
If we ggc_mark_rtx into a function rather than a macro, then we
can inline ggc_mark_rtx_children into ggc_mark_rtx. My hunch
is that would be cleaner *and* make it easier to do the kind of
optimizations that Mike did.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/