This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52506] [avr]: XMEGA: Wrong order of save/restore of RAMPX/Y/Z/D SFRs in ISR pro-/epilogue
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Mar 2012 10:38:28 +0000
- Subject: [Bug target/52506] [avr]: XMEGA: Wrong order of save/restore of RAMPX/Y/Z/D SFRs in ISR pro-/epilogue
- Auto-submitted: auto-generated
- References: <bug-52506-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52506
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-07 10:38:28 UTC ---
Author: gjl
Date: Wed Mar 7 10:38:25 2012
New Revision: 185032
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185032
Log:
PR target/52506
* gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
to: RAMPZ, RAMPY, RAMPX, RAMPD.
(expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr.c