C++ PATCH: Reduce memory usage when inlining

Mark Mitchell mark@codesourcery.com
Fri Apr 28 13:37:00 GMT 2000


>>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:

    Jason> I would expect this to break things that try to take the
    Jason> address of the variable in question.  I prefer the patch I
    Jason> sent you earlier; rather than trying to do away the
    Jason> VAR_DECLs entirely, it would treat them as initialized
    Jason> const variables, subject to decl_constant_value.

I think you're right -- the patch is broken.  It should check
TREE_ADDRESSABLE, too, for the inlined parameter.  Wouldn't that
resolve that issue?  Removing these VAR_DECLs is a big win for memory
usage

I remember your other patch -- but not how it worked.  If you have it
handy, would you post it again?  I think maybe it does something
orthogonal: that both patches are good ideas.  Or do you think mine is
a bad idea, assuming the TREE_ADDRESSABLE thing gets fixed?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Gcc-patches mailing list