This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: More memory reductions on PR c++/12850
We have function that gets compiled, its body released and later the
DECL_ARGUMENTS are accessed by use_thunk that gets to the structure by
THUNK_TARGET.
It's probably possible to have use_thunk not touch DECL_ARGUMENTS by
recreating them from first principles.
However, that's not easy, and certainly not appropriate for 3.4.
So, I think you should revert your patch for now.
These argument lists should not be terribly big, really. If they
reference lots of other stuff via their DECL_RTL fields that might be a
problem -- but you could then probably clear just DECL_RTL, since it
doesn't look like that is examined by use_thunk.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com