]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
h8300.c (WORD_REG_USED): Use SP_REG instead of a literal.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 12 Oct 2003 20:49:45 +0000 (20:49 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 12 Oct 2003 20:49:45 +0000 (20:49 +0000)
* config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
a literal.
* config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
instead of a literal.

From-SVN: r72407

gcc/ChangeLog
gcc/config/h8300/h8300.c
gcc/config/h8300/h8300.h

index 8cc19538dfc0adbb7be63a817a4d7132688b8647..be5de235254b1fe608952a5df6c5dbd0a8605bf8 100644 (file)
@@ -1,3 +1,10 @@
+2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
+       a literal.
+       * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
+       instead of a literal.
+
 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
index 5f21a0a03a08adffde83df1b8d5f25866886ba69..18ee4c6e0036bafaf5bfc2da431962866d088ccc 100644 (file)
@@ -343,7 +343,7 @@ byte_reg (rtx x, int b)
 /* REGNO must be saved/restored across calls if this macro is true.  */
 
 #define WORD_REG_USED(regno)                                           \
-  (regno < 7                                                           \
+  (regno < SP_REG                                                      \
    /* No need to save registers if this function will not return.  */  \
    && ! TREE_THIS_VOLATILE (current_function_decl)                     \
    && (pragma_saveall                                                  \
index b31bdf59dc8b161d260a0eb06d1529942e07aca9..055a32542e16352e611077313cfa1cc3eb962e48 100644 (file)
@@ -785,8 +785,9 @@ struct cum_arg
 
 #define REGNO_OK_FOR_INDEX_P(regno) 0
 
-#define REGNO_OK_FOR_BASE_P(regno) \
-  (((regno) < FIRST_PSEUDO_REGISTER && regno != 8) || reg_renumber[regno] >= 0)
+#define REGNO_OK_FOR_BASE_P(regno)                             \
+  (((regno) < FIRST_PSEUDO_REGISTER && regno != MAC_REG)       \
+   || reg_renumber[regno] >= 0)
 \f
 /* Maximum number of registers that can appear in a valid memory address.  */