summaryrefslogtreecommitdiffstats
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-23 23:28:17 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-23 23:28:17 +0000
commit02ebfa52aa2daa4ff1063537a872303400e4b6d9 (patch)
tree3b24405bdbc98bfccda73944703c58621ce54fc3 /gcc/emit-rtl.c
parentd3f3c700da63e0b5ed7b394d81bbc433e614dfb8 (diff)
downloadppe42-gcc-02ebfa52aa2daa4ff1063537a872303400e4b6d9.tar.gz
ppe42-gcc-02ebfa52aa2daa4ff1063537a872303400e4b6d9.zip
* rtl.h (init_virtual_regs): New function.
* emit-rtl.c (init_virtual_regs): Define. (insn_emit): Use it. * integrate.c (save_for_inline_copying): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22563 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index e5510a6dbeb..e6e0e609e54 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -3297,6 +3297,18 @@ gen_sequence ()
return result;
}
+/* Put the various virtual registers into REGNO_REG_RTX. */
+
+void
+init_virtual_regs ()
+{
+ regno_reg_rtx[VIRTUAL_INCOMING_ARGS_REGNUM] = virtual_incoming_args_rtx;
+ regno_reg_rtx[VIRTUAL_STACK_VARS_REGNUM] = virtual_stack_vars_rtx;
+ regno_reg_rtx[VIRTUAL_STACK_DYNAMIC_REGNUM] = virtual_stack_dynamic_rtx;
+ regno_reg_rtx[VIRTUAL_OUTGOING_ARGS_REGNUM] = virtual_outgoing_args_rtx;
+ regno_reg_rtx[VIRTUAL_CFA_REGNUM] = virtual_cfa_rtx;
+}
+
/* Initialize data structures and variables in this file
before generating rtl for each function. */
@@ -3339,11 +3351,7 @@ init_emit ()
bzero ((char *) regno_reg_rtx, regno_pointer_flag_length * sizeof (rtx));
/* Put copies of all the virtual register rtx into regno_reg_rtx. */
- regno_reg_rtx[VIRTUAL_INCOMING_ARGS_REGNUM] = virtual_incoming_args_rtx;
- regno_reg_rtx[VIRTUAL_STACK_VARS_REGNUM] = virtual_stack_vars_rtx;
- regno_reg_rtx[VIRTUAL_STACK_DYNAMIC_REGNUM] = virtual_stack_dynamic_rtx;
- regno_reg_rtx[VIRTUAL_OUTGOING_ARGS_REGNUM] = virtual_outgoing_args_rtx;
- regno_reg_rtx[VIRTUAL_CFA_REGNUM] = virtual_cfa_rtx;
+ init_virtual_regs ();
/* Indicate that the virtual registers and stack locations are
all pointers. */
OpenPOWER on IntegriCloud