From: Kazu Hirata Date: Sun, 12 Oct 2003 20:49:45 +0000 (+0000) Subject: h8300.c (WORD_REG_USED): Use SP_REG instead of a literal. X-Git-Tag: releases/gcc-3.4.0~3073 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d60004eecf62e69a63dae2a66f4688e003ca3a62;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cc19538dfc0..be5de235254b 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 5f21a0a03a08..18ee4c6e0036 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 b31bdf59dc8b..055a32542e16 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. */