Align passed structures with double alignment correctly.
From-SVN: r2558
This commit is contained in:
parent
51bdc4d3b8
commit
df7fef57d1
|
@ -2529,8 +2529,14 @@ function_arg (cum, mode, type, named)
|
|||
: FP_ARG_FIRST;
|
||||
break;
|
||||
|
||||
case VOIDmode:
|
||||
case BLKmode:
|
||||
if (type != (tree)0 && TYPE_ALIGN (type) > BITS_PER_WORD)
|
||||
cum->arg_words += (cum->arg_words & 1);
|
||||
|
||||
regbase = GP_ARG_FIRST;
|
||||
break;
|
||||
|
||||
case VOIDmode:
|
||||
case QImode:
|
||||
case HImode:
|
||||
case SImode:
|
||||
|
|
Loading…
Reference in New Issue