From b91522ff0eee271bef59f9e73ea5c1a4ef5c59c7 Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 12 Oct 2003 20:49:45 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72407 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/config/h8300/h8300.c | 2 +- gcc/config/h8300/h8300.h | 5 +++-- 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 + + * 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 * 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. */ -- 2.7.4