re PR target/53038 (cfi_restore for cr before cr is actually restored)
commit56ca756cd95ffa1e2dadabd88a0b31380b84be64
authorAlan Modra <amodra@gmail.com>
Tue, 1 May 2012 04:03:21 +0000 (1 13:33 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 1 May 2012 04:03:21 +0000 (1 13:33 +0930)
treeaab96b5745cd4e454f1277fed88da99e30005fcf
parentf8e4c7e6649ea9357aa63d9c18d3d4c2198bf224
re PR target/53038 (cfi_restore for cr before cr is actually restored)

PR target/53038
* config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
load_cr_save, add_crlr_cfa_restore): New functions.
(rs6000_restore_saved_cr): Rename to..
(restore_saved_cr): ..this.  Add cfa_restore notes for cr.
(rs6000_emit_epilogue): Use new functions.  Adjust condition
for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
regs when using out-of-line restore only when shrink wrapping.

From-SVN: r187010
gcc/ChangeLog
gcc/config/rs6000/rs6000.c