alpha.c (function_arg): Check for void_type_node before using MUST_PASS_IN_STACK.

* config/alpha/alpha.c (function_arg): Check for void_type_node
        before using MUST_PASS_IN_STACK.

From-SVN: r32692
This commit is contained in:
Richard Henderson 2000-03-22 15:09:29 -08:00 committed by Richard Henderson
parent 5d64361bdc
commit ea2e5dbeca
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -3697,10 +3697,15 @@ function_arg(cum, mode, type, named)
{
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