rl78.c (rl78_expand_prologue): In G10 mode push the BC, DE and HL registers directly...
authorNick Clifton <nickc@redhat.com>
Tue, 27 Jan 2015 11:37:08 +0000 (11:37 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 27 Jan 2015 11:37:08 +0000 (11:37 +0000)
commiteb42aba984cee3983ebbd6df099ecceef8a837f2
tree2aeda64f12a06169a583feb4a026145ea8d20aa7
parent8410904a77b9238a1b65798a0fcd92f340ffe0ca
rl78.c (rl78_expand_prologue): In G10 mode push the BC, DE and HL registers directly, not via AX.

* config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
BC, DE and HL registers directly, not via AX.
When decrementing the stack pointer by a large amount, transfer SP
into AX and perform the subtraction there.
(rl78_expand_epilogue): Perform the inverse of the above
enhancements.

From-SVN: r220163
gcc/ChangeLog
gcc/config/rl78/rl78.c