]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rx.c (rx_get_stack_layout): Fix allocation of second register to push into the stack...
authorNick Clifton <nickc@redhat.com>
Tue, 5 Jan 2010 15:43:43 +0000 (15:43 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 5 Jan 2010 15:43:43 +0000 (15:43 +0000)
        * 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

gcc/ChangeLog
gcc/config/rx/rx.c

index db624b919e9ac155bba2fdc6c44d6ecdfe017b48..b62bd1af76641802a9c8120f68d31ac5f04af788 100644 (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
index 3fb8b320e525f71ff9b6510343c340890661cf28..ce13217df1127ce792166cdcde705223102daa49 100644 (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