Commit 014c0998 by Jakub Jelinek Committed by Jakub Jelinek

sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates.

	* config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
	UNITS_PER_WORD for zero sized aggregates.

From-SVN: r51853
parent 31956228
2002-04-04 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
UNITS_PER_WORD for zero sized aggregates.
2002-04-03 David S. Miller <davem@redhat.com> 2002-04-03 David S. Miller <davem@redhat.com>
* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
......
...@@ -4950,6 +4950,10 @@ sparc_va_arg (valist, type) ...@@ -4950,6 +4950,10 @@ sparc_va_arg (valist, type)
indirect = 1; indirect = 1;
size = rsize = UNITS_PER_WORD; size = rsize = UNITS_PER_WORD;
} }
/* SPARC v9 ABI states that structures up to 8 bytes in size are
given one 8 byte slot. */
else if (size == 0)
size = rsize = UNITS_PER_WORD;
else else
size = rsize; size = rsize;
} }
......
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