[Patch,AVR]: Fix PR52506

2012-03-06 Thread Georg-Johann Lay
The problem is that RAMPD/X/Y/Z are restored in the wrong order in ISR epilogue. Ok for trunk? Johann 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 e

Re: [Patch,AVR]: Fix PR52506

2012-03-06 Thread Denis Chertykov
2012/3/6 Georg-Johann Lay : > The problem is that RAMPD/X/Y/Z are restored in the wrong order in ISR > epilogue. > > Ok for trunk? > > Johann > >        PR target/52506 >        * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration >        to: RAMPZ, RAMPY, RAMPX, RAMPD. >        (ex