Commit e2a17f6e by Eric Botcazou Committed by Eric Botcazou

sparc.c (function_arg_pass_by_reference): Return 1 for all modes whose size is…

sparc.c (function_arg_pass_by_reference): Return 1 for all modes whose size is greater than 8 bytes if ARCH32.

	* config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
	for all modes whose size is greater than 8 bytes if ARCH32.
	(sparc_va_arg): Handle all modes whose size is greater than 8 bytes
	by reference if ARCH32.

From-SVN: r77262
parent e530f370
2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
for all modes whose size is greater than 8 bytes if ARCH32.
(sparc_va_arg): Handle all modes whose size is greater than 8 bytes
by reference if ARCH32.
2004-02-04 Aldy Hernandez <aldyh@redhat.com> 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
* cgraphunit.c (cgraph_postorder): Fix typo in comment. * cgraphunit.c (cgraph_postorder): Fix typo in comment.
......
...@@ -5672,10 +5672,8 @@ function_arg_pass_by_reference (const struct sparc_args *cum ATTRIBUTE_UNUSED, ...@@ -5672,10 +5672,8 @@ function_arg_pass_by_reference (const struct sparc_args *cum ATTRIBUTE_UNUSED,
if (TARGET_ARCH32) if (TARGET_ARCH32)
{ {
return ((type && AGGREGATE_TYPE_P (type)) return ((type && AGGREGATE_TYPE_P (type))
|| mode == TFmode
|| mode == SCmode || mode == SCmode
|| mode == DCmode || GET_MODE_SIZE (mode) > 8);
|| mode == TCmode);
} }
else else
{ {
...@@ -5886,10 +5884,8 @@ sparc_va_arg (tree valist, tree type) ...@@ -5886,10 +5884,8 @@ sparc_va_arg (tree valist, tree type)
else else
{ {
if (AGGREGATE_TYPE_P (type) if (AGGREGATE_TYPE_P (type)
|| TYPE_MODE (type) == TFmode
|| TYPE_MODE (type) == SCmode || TYPE_MODE (type) == SCmode
|| TYPE_MODE (type) == DCmode || GET_MODE_SIZE (TYPE_MODE (type)) > 8)
|| TYPE_MODE (type) == TCmode)
{ {
indirect = 1; indirect = 1;
size = rsize = UNITS_PER_WORD; 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