aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-10-12 20:49:45 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-10-12 20:49:45 +0000
commitd60004eecf62e69a63dae2a66f4688e003ca3a62 (patch)
tree9405eeec527c210743941354e9a36a6166627af4 /gcc
parent0606ef8525b9bd5cf737507725f5f64dfcf568c4 (diff)
downloadgcc-d60004eecf62e69a63dae2a66f4688e003ca3a62.zip
gcc-d60004eecf62e69a63dae2a66f4688e003ca3a62.tar.gz
gcc-d60004eecf62e69a63dae2a66f4688e003ca3a62.tar.bz2
h8300.c (WORD_REG_USED): Use SP_REG instead of a literal.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/h8300/h8300.c2
-rw-r--r--gcc/config/h8300/h8300.h5
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8cc1953..be5de23 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 5f21a0a..18ee4c6 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -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 \
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index b31bdf5..055a325 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -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)
/* Maximum number of registers that can appear in a valid memory address. */