avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
authorAnatoly Sokolov <aesok@post.ru>
Sat, 31 May 2008 15:01:16 +0000 (19:01 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Sat, 31 May 2008 15:01:16 +0000 (19:01 +0400)
commit794cb45e0be66af6533262e255dd276a1cfb3bd8
tree73ff27f3d67fad9fc3708299409936b8bb768ea0
parent39f8a3b00c99fff50a211449cd10e326eabca8f4
avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.

* config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
(UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
(movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
* config/avr/avr.c (expand_prologue, expand_epilogue): Use
movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
stack pointer register.
(output_movhi): Remove code for interrupt specific writing to the
stack pointer register.

From-SVN: r136238
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.md