diff options
| author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-19 22:47:55 +0000 |
|---|---|---|
| committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-19 22:47:55 +0000 |
| commit | dfb1ee390b244652bcfdcbbebcade5741904cc36 (patch) | |
| tree | 310800560c2d56240298d18712cd2147a03cd10c /gcc/function.c | |
| parent | 757eb99e9b9eb885fb7a6a63f9b920844ab324f6 (diff) | |
| download | ppe42-gcc-dfb1ee390b244652bcfdcbbebcade5741904cc36.tar.gz ppe42-gcc-dfb1ee390b244652bcfdcbbebcade5741904cc36.zip | |
* expr.c (STACK_BYTES): Delete unused macro.
* calls.c: Provide default for PREFERRED_STACK_BOUNDARY.
(STACK_BYTES): Use PREFERRED_STACK_BOUNDARY, not STACK_BOUNDARY.
(expand_call): Likewise.
(emit_library_call): Likewise.
(emit_library_call_value): Likewise.
* function.c: Provide default for PREFERRED_STACK_BOUNDARY.
(STACK_BYTES): Use PREFERRED_STACK_BOUNDARY, not STACK_BOUNDARY.
* explow.c: Provide default for PREFERRED_STACK_BOUNDARY.
(round_push): Use PREFERRED_STACK_BOUNDARY, not STACK_BOUNDARY.
(allocate_dynamic_stack_space): Likewise.
* tm.texi (PREFERRED_STACK_BOUNDARY): Document new macro.
(STACK_BOUNDARY): Update description to reflect the new situation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
| -rw-r--r-- | gcc/function.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/function.c b/gcc/function.c index 3f4784896da..fa8b14ae1c2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -57,6 +57,10 @@ Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "toplev.h" +#if !defined PREFERRED_STACK_BOUNDARY && defined STACK_BOUNDARY +#define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY +#endif + #ifndef TRAMPOLINE_ALIGNMENT #define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY #endif @@ -669,7 +673,7 @@ void pop_function_context () /* Allocate fixed slots in the stack frame of the current function. */ /* Return size needed for stack frame based on slots so far allocated. - This size counts from zero. It is not rounded to STACK_BOUNDARY; + This size counts from zero. It is not rounded to PREFERRED_STACK_BOUNDARY; the caller may have to do that. */ HOST_WIDE_INT @@ -4645,8 +4649,8 @@ assign_parms (fndecl, second_time) #endif #endif -#ifdef STACK_BOUNDARY -#define STACK_BYTES (STACK_BOUNDARY / BITS_PER_UNIT) +#ifdef PREFERRED_STACK_BOUNDARY +#define STACK_BYTES (PREFERRED_STACK_BOUNDARY / BITS_PER_UNIT) current_function_args_size = ((current_function_args_size + STACK_BYTES - 1) |

