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]
Other format: [Raw text]

Re: C++ PATCH: Fix inlining bug


>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:

> The tree-based inliner built a new VAR_DECL for the parameter, and
> then used an INIT_EXPR to initialize it.  In this case, the right-hand
> side would be a TARGET_EXPR.  We never build a clean-up for the new
> VAR_DECL because it was the caller's responsibility to clean up the
> parameter, so the cleanup was already there in the function we were
> going to inline.

> But, now, it's not.  Jason, would you mind confirming that this sounds
> sane to you?

Makes sense.

> 	* expr.c (expand_expr): Tidy.

This changes the semantics of the case where DECL_RTL (slot) is set but
TREE_OPERAND (exp, 1) has not been cleared.  I'm not sure if that would
affect anything now, but it could.

Jason


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