diff options
Diffstat (limited to 'gcc/config/sparc/sparc.c')
| -rw-r--r-- | gcc/config/sparc/sparc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 7df4df6..c9cad9f 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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; } |
