(function_arg): When soft-float, don't add bias for
second SFmode argument. From-SVN: r6489
This commit is contained in:
parent
704a7f6e54
commit
dc55be0e84
@ -2819,13 +2819,16 @@ function_arg (cum, mode, type, named)
|
|||||||
switch (mode)
|
switch (mode)
|
||||||
{
|
{
|
||||||
case SFmode:
|
case SFmode:
|
||||||
if (cum->gp_reg_found || cum->arg_number >= 2)
|
if (cum->gp_reg_found || cum->arg_number >= 2 || TARGET_SOFT_FLOAT)
|
||||||
regbase = GP_ARG_FIRST;
|
regbase = GP_ARG_FIRST;
|
||||||
else {
|
else
|
||||||
regbase = (TARGET_SOFT_FLOAT) ? GP_ARG_FIRST : FP_ARG_FIRST;
|
{
|
||||||
if (cum->arg_words == 1) /* first arg was float */
|
regbase = FP_ARG_FIRST;
|
||||||
bias = 1; /* use correct reg */
|
/* If the first arg was a float in a floating point register,
|
||||||
}
|
then set bias to align this float arg properly. */
|
||||||
|
if (cum->arg_words == 1)
|
||||||
|
bias = 1;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user