From a94e4054a98fd89e90b00da440ce288d202fd834 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 25 Aug 1996 22:27:04 -0400 Subject: (mark_all_temps_used): New function. From-SVN: r12671 --- gcc/function.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gcc') 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 -- cgit v1.1