Commit f283f66b by Jason Merrill

(expand_expr, CLEANUP_POINT_EXPR): Force the operand out

        of memory before running cleanups.

From-SVN: r9117
parent f7393e85
...@@ -4980,7 +4980,10 @@ expand_expr (exp, target, tmode, modifier) ...@@ -4980,7 +4980,10 @@ expand_expr (exp, target, tmode, modifier)
int old_temp_level = target_temp_slot_level; int old_temp_level = target_temp_slot_level;
push_temp_slots (); push_temp_slots ();
target_temp_slot_level = temp_slot_level; target_temp_slot_level = temp_slot_level;
op0 = expand_expr (TREE_OPERAND (exp, 0), target, VOIDmode, modifier); op0 = expand_expr (TREE_OPERAND (exp, 0), target, tmode, modifier);
/* If we're going to use this value, load it up now. */
if (! ignore)
op0 = force_not_mem (op0);
expand_cleanups_to (old_cleanups); expand_cleanups_to (old_cleanups);
preserve_temp_slots (op0); preserve_temp_slots (op0);
free_temp_slots (); free_temp_slots ();
......
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