Commit b2df7d08 by Aldy Hernandez Committed by Aldy Hernandez

rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only available for TARGET_FPRS.

	* config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
	available for TARGET_FPRS.
	(FUNCTION_VALUE_REGNO_P): Same.

From-SVN: r89112
parent 7088c6e4
2004-10-15 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
available for TARGET_FPRS.
(FUNCTION_VALUE_REGNO_P): Same.
2004-10-15 Geoffrey Keating <geoffk@apple.com> 2004-10-15 Geoffrey Keating <geoffk@apple.com>
* doc/invoke.texi (RS/6000 and PowerPC Options): Document * doc/invoke.texi (RS/6000 and PowerPC Options): Document
......
...@@ -1622,7 +1622,7 @@ extern enum rs6000_abi rs6000_current_abi; /* available for use by subtarget */ ...@@ -1622,7 +1622,7 @@ extern enum rs6000_abi rs6000_current_abi; /* available for use by subtarget */
On RS/6000, this is r3, fp1, and v2 (for AltiVec). */ On RS/6000, this is r3, fp1, and v2 (for AltiVec). */
#define FUNCTION_VALUE_REGNO_P(N) \ #define FUNCTION_VALUE_REGNO_P(N) \
((N) == GP_ARG_RETURN \ ((N) == GP_ARG_RETURN \
|| ((N) == FP_ARG_RETURN && TARGET_HARD_FLOAT) \ || ((N) == FP_ARG_RETURN && TARGET_HARD_FLOAT && TARGET_FPRS) \
|| ((N) == ALTIVEC_ARG_RETURN && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI)) || ((N) == ALTIVEC_ARG_RETURN && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI))
/* 1 if N is a possible register number for function argument passing. /* 1 if N is a possible register number for function argument passing.
...@@ -1633,7 +1633,7 @@ extern enum rs6000_abi rs6000_current_abi; /* available for use by subtarget */ ...@@ -1633,7 +1633,7 @@ extern enum rs6000_abi rs6000_current_abi; /* available for use by subtarget */
|| ((unsigned) (N) - ALTIVEC_ARG_MIN_REG < ALTIVEC_ARG_NUM_REG \ || ((unsigned) (N) - ALTIVEC_ARG_MIN_REG < ALTIVEC_ARG_NUM_REG \
&& TARGET_ALTIVEC && TARGET_ALTIVEC_ABI) \ && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI) \
|| ((unsigned) (N) - FP_ARG_MIN_REG < FP_ARG_NUM_REG \ || ((unsigned) (N) - FP_ARG_MIN_REG < FP_ARG_NUM_REG \
&& TARGET_HARD_FLOAT)) && TARGET_HARD_FLOAT && TARGET_FPRS))
/* A C structure for machine-specific, per-function data. /* A C structure for machine-specific, per-function data.
This is added to the cfun structure. */ This is added to the cfun structure. */
......
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