This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53038] cfi_restore for cr before cr is actually restored
- From: "amodra at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 May 2012 04:03:25 +0000
- Subject: [Bug target/53038] cfi_restore for cr before cr is actually restored
- Auto-submitted: auto-generated
- References: <bug-53038-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
--- Comment #3 from Alan Modra <amodra at gcc dot gnu.org> 2012-05-01 04:03:25 UTC ---
Author: amodra
Date: Tue May 1 04:03:21 2012
New Revision: 187010
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187010
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c