* config/alpha/alpha.c (function_arg): Check for void_type_node
before using MUST_PASS_IN_STACK.
From-SVN: r32692
+2000-03-21 Richard Henderson <rth@cygnus.com>
+
+ * config/alpha/alpha.c (function_arg): Check for void_type_node
+ before using MUST_PASS_IN_STACK.
+
2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
* regmove.c (combine_stack_adjustments_for_block): Check that
{
int basereg;
- if (cum >= 6 || MUST_PASS_IN_STACK (mode, type))
+ if (cum >= 6)
return NULL_RTX;
- if (FUNCTION_ARG_PASS_BY_REFERENCE (cum, mode, type, named))
+ /* VOID is passed as a special flag for "last argument". */
+ if (type == void_type_node)
+ basereg = 16;
+ else if (MUST_PASS_IN_STACK (mode, type))
+ return NULL_RTX;
+ else if (FUNCTION_ARG_PASS_BY_REFERENCE (cum, mode, type, named))
basereg = 16;
else if (TARGET_FPREGS
&& (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT