Commit df7fef57 by Michael Meissner

Align passed structures with double alignment correctly.

From-SVN: r2558
parent 51bdc4d3
...@@ -2529,8 +2529,14 @@ function_arg (cum, mode, type, named) ...@@ -2529,8 +2529,14 @@ function_arg (cum, mode, type, named)
: FP_ARG_FIRST; : FP_ARG_FIRST;
break; break;
case VOIDmode:
case BLKmode: 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 QImode:
case HImode: case HImode:
case SImode: case SImode:
......
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