http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52506
Bug #: 52506 Summary: [avr]: XMEGA: Wrong order of save/restore of RAMPX/Y/Z/D SFRs in ISR pro-/epilogue Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: g...@gcc.gnu.org For XMEGA devices with more than 64 KiB of RAM, the RAMPX, RAMPY, RAMPZ, RAMPD special function registers are saved/restored in ISR if they might be used or have an effect on the ISR code's memory accesses. These save/restores are in the wrong order.