(save_for_inline_copying): Put virtual regs into new regno_reg_rtx copy.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 12 Feb 1996 12:22:11 +0000 (07:22 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 12 Feb 1996 12:22:11 +0000 (07:22 -0500)
From-SVN: r11208

gcc/integrate.c

index 199fcd95816ca2738f50236289ccc526ff309c94..01644b5ce9900c675586ab0d81ab44958856b742 100644 (file)
@@ -478,6 +478,12 @@ save_for_inline_copying (fndecl)
 
   regno_reg_rtx = reg_map;
 
+  /* Put copies of all the virtual register rtx into the new 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;
+
   /* Likewise each label rtx must have a unique rtx as its copy.  */
 
   label_map = (rtx *)alloca ((max_labelno - min_labelno) * sizeof (rtx));