Commit ea2e5dbe by Richard Henderson Committed by Richard Henderson

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
parent 5d64361b
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> 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
* regmove.c (combine_stack_adjustments_for_block): Check that * regmove.c (combine_stack_adjustments_for_block): Check that
......
...@@ -3697,10 +3697,15 @@ function_arg(cum, mode, type, named) ...@@ -3697,10 +3697,15 @@ function_arg(cum, mode, type, named)
{ {
int basereg; int basereg;
if (cum >= 6 || MUST_PASS_IN_STACK (mode, type)) if (cum >= 6)
return NULL_RTX; 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; basereg = 16;
else if (TARGET_FPREGS else if (TARGET_FPREGS
&& (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT && (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT
......
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