From: Alan Modra Date: Tue, 2 Aug 2011 05:12:37 +0000 (+0930) Subject: rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE note for save_LR_around_toc_setu... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=390fa58886e1151f7844702ad2525febc18cfbf1;p=gcc.git rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE note for save_LR_around_toc_setup sequence. * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE note for save_LR_around_toc_setup sequence. From-SVN: r177084 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 25ad12dc14d..f8e25c0de74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-02 Alan Modra + + * 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 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index dcf78567068..29965138de6 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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