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
This commit is contained in:
parent
31956228bd
commit
014c0998cb
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
|
||||
|
|
|
@ -4950,6 +4950,10 @@ sparc_va_arg (valist, type)
|
|||
indirect = 1;
|
||||
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
|
||||
size = rsize;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue