summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-15 13:09:24 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-15 13:09:24 +0000
commit1ce98abeddc05eb2f7fdf6758379b62aee0165d5 (patch)
tree0c608aebfe350011f73e8ba5694f616b54921155 /gcc/function.c
parentf89c23799c3a6651ef9bc4c552bbd82f5d14bff5 (diff)
downloadgcc-1ce98abeddc05eb2f7fdf6758379b62aee0165d5.tar.gz
(init_temp_slots): New function.
(init_function_start): Code moved to new function and called here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 3433e19a364..6fd2bb77d80 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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;
+}
/* 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++;