+2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
+
+ * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
+ (FUNCTION_VALUE_REGNO_P): Likewise.
+ * config/h8300/h8300.md: Define R0_REG.
+
2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c: Fix formatting.
On the H8 the return value is in R0/R1. */
#define FUNCTION_VALUE(VALTYPE, FUNC) \
- gen_rtx_REG (TYPE_MODE (VALTYPE), 0)
+ gen_rtx_REG (TYPE_MODE (VALTYPE), R0_REG)
/* Define how to find the value returned by a library function
assuming the value has mode MODE. */
/* 1 if N is a possible register number for a function value.
On the H8, R0 is the only register thus used. */
-#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
+#define FUNCTION_VALUE_REGNO_P(N) ((N) == R0_REG)
/* Define this if PCC uses the nonreentrant convention for returning
structure and union values. */