Commit bc0ebdf9 by Richard Kenner

(init_temp_slots): New function.

(init_function_start): Code moved to new function and called here.

From-SVN: r10733
parent 1d269b0c
...@@ -1207,6 +1207,17 @@ pop_temp_slots () ...@@ -1207,6 +1207,17 @@ pop_temp_slots ()
temp_slot_level--; temp_slot_level--;
} }
/* Initialize temporary slots. */
void
init_temp_slots ()
{
/* We have not allocated any temporaries yet. */
temp_slots = 0;
temp_slot_level = 0;
target_temp_slot_level = 0;
}
/* Retroactively move an auto variable from a register to a stack slot. /* Retroactively move an auto variable from a register to a stack slot.
This is done when an address-reference to the variable is seen. */ This is done when an address-reference to the variable is seen. */
...@@ -4826,10 +4837,8 @@ init_function_start (subr, filename, line) ...@@ -4826,10 +4837,8 @@ init_function_start (subr, filename, line)
/* No RTL_EXPRs in this function yet. */ /* No RTL_EXPRs in this function yet. */
rtl_expr_chain = 0; rtl_expr_chain = 0;
/* We have not allocated any temporaries yet. */ /* Set up to allocate temporaries. */
temp_slots = 0; init_temp_slots ();
temp_slot_level = 0;
target_temp_slot_level = 0;
/* Within function body, compute a type's size as soon it is laid out. */ /* Within function body, compute a type's size as soon it is laid out. */
immediate_size_expand++; immediate_size_expand++;
......
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