Commit f79c7a76 by Jason Merrill Committed by Richard Kenner

(cplus_expand_expr): Don't mess with temp slots.

From-SVN: r10075
parent f7522313
...@@ -132,8 +132,6 @@ cplus_expand_expr (exp, target, tmode, modifier) ...@@ -132,8 +132,6 @@ cplus_expand_expr (exp, target, tmode, modifier)
} }
if (call_target) if (call_target)
{ {
preserve_temp_slots (call_target);
/* Make this a valid memory address now. The code below assumes /* Make this a valid memory address now. The code below assumes
that it can compare rtx and make assumptions based on the that it can compare rtx and make assumptions based on the
result. The assumptions are true only if the address was result. The assumptions are true only if the address was
...@@ -141,11 +139,9 @@ cplus_expand_expr (exp, target, tmode, modifier) ...@@ -141,11 +139,9 @@ cplus_expand_expr (exp, target, tmode, modifier)
call_target = validize_mem (call_target); call_target = validize_mem (call_target);
} }
preserve_temp_slots (DECL_RTL (slot));
call_exp = build (CALL_EXPR, type, func, args, 0); call_exp = build (CALL_EXPR, type, func, args, 0);
TREE_SIDE_EFFECTS (call_exp) = 1; TREE_SIDE_EFFECTS (call_exp) = 1;
return_target = expand_call (call_exp, call_target, ignore); return_target = expand_call (call_exp, call_target, ignore);
free_temp_slots ();
if (call_target == 0) if (call_target == 0)
{ {
if (pcc_struct_return) if (pcc_struct_return)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment