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
This commit is contained in:
Richard Henderson 2002-03-26 00:59:39 -08:00 committed by Richard Henderson
parent 43f2b30807
commit f36dea3c92
2 changed files with 10 additions and 3 deletions

View File

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

View File

@ -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;