ia64: Issue REG_CFA_REGISTER for ar.pfs at alloc insn.
authorRichard Henderson <rth@redhat.com>
Tue, 5 Jul 2011 17:05:04 +0000 (10:05 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 5 Jul 2011 17:05:04 +0000 (10:05 -0700)
        * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
        for ar.pfs save at alloc insn.

From-SVN: r175871

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 31ca36d17843c98fd408b3e6b11541caa5b879f3..f696e9b00d44d7d44d6bbad774012a33d05f5c3b 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-05  Richard Henderson  <rth@redhat.com>
+
+       * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
+       for ar.pfs save at alloc insn.
+
 2011-07-05  Richard Henderson  <rth@redhat.com>
 
        * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
index c06903d869f95911ab897711c97fe61a4a5ac8fc..0a6f2e62216616d8f655b10acb390389f8a19256 100644 (file)
@@ -3249,7 +3249,14 @@ ia64_expand_prologue (void)
                                   GEN_INT (current_frame_info.n_local_regs),
                                   GEN_INT (current_frame_info.n_output_regs),
                                   GEN_INT (current_frame_info.n_rotate_regs)));
-      RTX_FRAME_RELATED_P (insn) = (current_frame_info.r[reg_save_ar_pfs] != 0);
+      if (current_frame_info.r[reg_save_ar_pfs])
+       {
+         RTX_FRAME_RELATED_P (insn) = 1;
+         add_reg_note (insn, REG_CFA_REGISTER,
+                       gen_rtx_SET (VOIDmode,
+                                    ar_pfs_save_reg,
+                                    gen_rtx_REG (DImode, AR_PFS_REGNUM)));
+       }
     }
 
   /* Set up frame pointer, stack pointer, and spill iterators.  */