From a594a19c2a352d53de842809678db0171e99878b Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 7 Oct 2003 19:48:23 +0000 Subject: function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account when aligning arguments. 2003-10-07 Geoffrey Keating * 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 * gcc.dg/darwin-abi-2.c: New file. * gcc.c-torture/execute/va-arg-24.c: New file. From-SVN: r72199 --- gcc/defaults.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/defaults.h') diff --git a/gcc/defaults.h b/gcc/defaults.h index 34e9f7b..f2595b0b 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -679,4 +679,8 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! #define MOVE_MAX_PIECES MOVE_MAX #endif +#ifndef STACK_POINTER_OFFSET +#define STACK_POINTER_OFFSET 0 +#endif + #endif /* ! GCC_DEFAULTS_H */ -- cgit v1.1