Commit f36dea3c by Richard Henderson Committed by Richard Henderson

sparc.c (function_arg_pass_by_reference): Pass variable sized objects by reference.

        * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
        variable sized objects by reference.
        (sparc_va_arg): Receive them by reference too.

From-SVN: r51378
parent 43f2b308
2002-03-26 Richard Henderson <rth@redhat.com>
* config/sparc/sparc.c (function_arg_pass_by_reference): Pass
variable sized objects by reference.
(sparc_va_arg): Receive them by reference too.
2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
* config/s390/s390.c (s390_emit_epilogue): Change epilogue
......
......@@ -4736,8 +4736,9 @@ function_arg_pass_by_reference (cum, mode, type, named)
return ((type && TREE_CODE (type) == ARRAY_TYPE)
/* Consider complex values as aggregates, so care for TCmode. */
|| GET_MODE_SIZE (mode) > 16
|| (type && AGGREGATE_TYPE_P (type)
&& int_size_in_bytes (type) > 16));
|| (type
&& AGGREGATE_TYPE_P (type)
&& (unsigned HOST_WIDE_INT) int_size_in_bytes (type) > 16));
}
}
......@@ -4938,7 +4939,7 @@ sparc_va_arg (valist, type)
if (AGGREGATE_TYPE_P (type))
{
if (size > 16)
if ((unsigned HOST_WIDE_INT) size > 16)
{
indirect = 1;
size = rsize = UNITS_PER_WORD;
......
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