This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: memory is not free


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]