function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account when aligni...
authorGeoffrey Keating <geoffk@apple.com>
Tue, 7 Oct 2003 19:48:23 +0000 (19:48 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 7 Oct 2003 19:48:23 +0000 (19:48 +0000)
commita594a19c2a352d53de842809678db0171e99878b
treec53a7e4a83374635bd98d065b41f34892f94f167
parentda61a073057aea7ae3441f077bfd3a8d822e4d08
function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account when aligning arguments.

2003-10-07  Geoffrey Keating  <geoffk@apple.com>

* function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
account when aligning arguments.
* calls.c (STACK_POINTER_OFFSET): Move default from here ...
* defaults.h (STACK_POINTER_OFFSET): ... to here.
* config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
(SPARC_STACK_BOUNDARY_HACK): Define.
* config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
arrange for vector parameters to varargs functions to be passed
in both memory and GPRs when appropriate.
(rs6000_va_arg): Vector arguments passed in memory are 16-byte
aligned.

Index: testsuite/ChangeLog
2003-10-07  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/darwin-abi-2.c: New file.
* gcc.c-torture/execute/va-arg-24.c: New file.

From-SVN: r72199
gcc/ChangeLog
gcc/calls.c
gcc/config/rs6000/rs6000.c
gcc/config/sparc/sparc.h
gcc/defaults.h
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/va-arg-24.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-abi-2.c [new file with mode: 0644]