rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE note for save_LR_around_toc_setu...
authorAlan Modra <amodra@gmail.com>
Tue, 2 Aug 2011 05:12:37 +0000 (14:42 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 2 Aug 2011 05:12:37 +0000 (14:42 +0930)
* config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
note for save_LR_around_toc_setup sequence.

From-SVN: r177084

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 25ad12dc14d1751544b8fe710d62df08c5d75ad4..f8e25c0de7412865c37cc69cba3ef2b6ff6d814a 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-02  Alan Modra  <amodra@gmail.com>
+
+       * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
+       note for save_LR_around_toc_setup sequence.
+
 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/i386/lzcntintrin.h (__lzcnt64): Replace long with
index dcf78567068bcb8df469541a7b0d23e6ad13f5b8..29965138de6b48c6ca16b1f4eff04f8b31329794 100644 (file)
@@ -20505,6 +20505,7 @@ rs6000_emit_prologue (void)
          rs6000_emit_load_toc_table (TRUE);
 
          insn = emit_move_insn (lr, frame_ptr_rtx);
+         add_reg_note (insn, REG_CFA_RESTORE, lr);
          RTX_FRAME_RELATED_P (insn) = 1;
        }
       else