diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-08-26 02:27:04 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-08-26 02:27:04 +0000 |
commit | 6aa5373cc568fa292e93e1eb1dfaaeb6744780f4 (patch) | |
tree | 2067dfc0014bf37de8fcb66ee043170c90b30121 /gcc/function.c | |
parent | a2cbf5505c46157a2e3cc566c8ad18055d661c16 (diff) | |
download | gcc-6aa5373cc568fa292e93e1eb1dfaaeb6744780f4.tar.gz |
(mark_all_temps_used): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12671 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index 7950e1e2a43..244d6fb4027 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 |