(init_temp_slots): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 15 Dec 1995 13:09:24 +0000 (08:09 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 15 Dec 1995 13:09:24 +0000 (08:09 -0500)
(init_function_start): Code moved to new function and called here.

From-SVN: r10733

gcc/function.c

index 3433e19..6fd2bb7 100644 (file)
@@ -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;
+}
 \f
 /* 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++;