(mark_all_temps_used): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 26 Aug 1996 02:27:04 +0000 (22:27 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 26 Aug 1996 02:27:04 +0000 (22:27 -0400)
From-SVN: r12671

gcc/function.c

index 7950e1e2a43dd010a5615643fcde3f622aa2614b..244d6fb4027237c48b4f279f5dbba82344470161 100644 (file)
@@ -1227,6 +1227,21 @@ free_temps_for_rtl_expr (t)
   combine_temp_slots ();
 }
 
+/* Mark all temporaries ever allocated in this functon as not suitable
+   for reuse until the current level is exited.  */
+
+void
+mark_all_temps_used ()
+{
+  struct temp_slot *p;
+
+  for (p = temp_slots; p; p = p->next)
+    {
+      p->in_use = 1;
+      p->level = temp_slot_level;
+    }
+}
+
 /* Push deeper into the nesting level for stack temporaries.  */
 
 void