aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-08-25 22:27:04 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-08-25 22:27:04 -0400
commita94e4054a98fd89e90b00da440ce288d202fd834 (patch)
tree2067dfc0014bf37de8fcb66ee043170c90b30121 /gcc/function.c
parent3201f6d9f3f76c18706b159f3e615ded69ec7439 (diff)
downloadgcc-a94e4054a98fd89e90b00da440ce288d202fd834.zip
gcc-a94e4054a98fd89e90b00da440ce288d202fd834.tar.gz
gcc-a94e4054a98fd89e90b00da440ce288d202fd834.tar.bz2
(mark_all_temps_used): New function.
From-SVN: r12671
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 7950e1e..244d6fb 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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