rx.c (rx_get_stack_layout): Fix allocation of second register to push into the stack frame when...

* config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
        register to push into the stack frame when the accumulator has to
        be saved during interrupts.

From-SVN: r155652
This commit is contained in:
Nick Clifton 2010-01-05 15:43:43 +00:00 committed by Nick Clifton
parent 653f6dc599
commit 105249d140
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-01-05 Nick Clifton <nickc@redhat.com>
* config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
register to push into the stack frame when the accumulator has to
be saved during interrupts.
2010-01-05 Eric Fisher <joefoxreal@gmail.com>
* doc/invoke.texi: Remove the documentation about option

View File

@ -1072,8 +1072,8 @@ rx_get_stack_layout (unsigned int * lowest,
save_mask |= (1 << 13) | (1 << 14);
if (low == 0)
low = 13;
if (high == 0)
high = 14;
if (high == 0 || low == high)
high = low + 1;
}
/* Decide if it would be faster fill in the call-saved area of the stack