diff options
| author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-05 15:43:43 +0000 |
|---|---|---|
| committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-05 15:43:43 +0000 |
| commit | bc9bb9679e6da20ea9316e4f63aeabb022bacea8 (patch) | |
| tree | 3b0a9a03e62fc6a728b6931e07215c33bb7e3194 | |
| parent | a7bdd7744ccef35a997fc94ac10ff3f204caca59 (diff) | |
| download | ppe42-gcc-bc9bb9679e6da20ea9316e4f63aeabb022bacea8.tar.gz ppe42-gcc-bc9bb9679e6da20ea9316e4f63aeabb022bacea8.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155652 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/config/rx/rx.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db624b919e9..b62bd1af766 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 3fb8b320e52..ce13217df11 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -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 |

