Commit e9cf9523 by Aldy Hernandez Committed by Aldy Hernandez

(FUNCTION_VALUE): Change hardcoded 33 and 3 to macros.

LIBCALL_VALUE: Likewise.

From-SVN: r45849
parent e922f978
2001-09-27 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
to macros.
(LIBCALL_VALUE): Likewise.
2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk> 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
* cpphash.h: Update comment. * cpphash.h: Update comment.
......
...@@ -1292,14 +1292,16 @@ typedef struct rs6000_stack { ...@@ -1292,14 +1292,16 @@ typedef struct rs6000_stack {
&& TYPE_PRECISION (VALTYPE) < BITS_PER_WORD) \ && TYPE_PRECISION (VALTYPE) < BITS_PER_WORD) \
|| POINTER_TYPE_P (VALTYPE) \ || POINTER_TYPE_P (VALTYPE) \
? word_mode : TYPE_MODE (VALTYPE), \ ? word_mode : TYPE_MODE (VALTYPE), \
TREE_CODE (VALTYPE) == REAL_TYPE && TARGET_HARD_FLOAT ? 33 : 3) TREE_CODE (VALTYPE) == REAL_TYPE && TARGET_HARD_FLOAT \
? FP_ARG_RETURN : GP_ARG_RETURN)
/* Define how to find the value returned by a library function /* Define how to find the value returned by a library function
assuming the value has mode MODE. */ assuming the value has mode MODE. */
#define LIBCALL_VALUE(MODE) \ #define LIBCALL_VALUE(MODE) \
gen_rtx_REG (MODE, (GET_MODE_CLASS (MODE) == MODE_FLOAT \ gen_rtx_REG (MODE, (GET_MODE_CLASS (MODE) == MODE_FLOAT \
&& TARGET_HARD_FLOAT ? 33 : 3)) && TARGET_HARD_FLOAT \
? FP_ARG_RETURN : GP_ARG_RETURN))
/* The definition of this macro implies that there are cases where /* The definition of this macro implies that there are cases where
a scalar value cannot be returned in registers. a scalar value cannot be returned in registers.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment