From bc0ebdf9ee04dc9af3f893e0380852b54ac94164 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 15 Dec 1995 08:09:24 -0500 Subject: (init_temp_slots): New function. (init_function_start): Code moved to new function and called here. From-SVN: r10733 --- gcc/function.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 3433e19..6fd2bb7 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1207,6 +1207,17 @@ pop_temp_slots () 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. This is done when an address-reference to the variable is seen. */ @@ -4826,10 +4837,8 @@ init_function_start (subr, filename, line) /* No RTL_EXPRs in this function yet. */ rtl_expr_chain = 0; - /* We have not allocated any temporaries yet. */ - temp_slots = 0; - temp_slot_level = 0; - target_temp_slot_level = 0; + /* Set up to allocate temporaries. */ + init_temp_slots (); /* Within function body, compute a type's size as soon it is laid out. */ immediate_size_expand++; -- cgit v1.1