h8300.h (FUNCTION_VALUE): Use R0_REG.
* config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG. (FUNCTION_VALUE_REGNO_P): Likewise. * config/h8300/h8300.md: Define R0_REG. From-SVN: r73998
This commit is contained in:
parent
80e585192e
commit
ef3b9941e9
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -609,7 +609,7 @@ enum reg_class {
|
|||
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. */
|
||||
|
@ -622,7 +622,7 @@ enum reg_class {
|
|||
/* 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. */
|
||||
|
|
|
@ -53,7 +53,8 @@
|
|||
(UNSPEC_MONITOR 1)])
|
||||
|
||||
(define_constants
|
||||
[(SC_REG 3)
|
||||
[(R0_REG 0)
|
||||
(SC_REG 3)
|
||||
(FP_REG 6)
|
||||
(SP_REG 7)
|
||||
(MAC_REG 8)
|
||||
|
|
Loading…
Reference in New Issue