From bbc8a07104bc1863ca9550cc27b942c21f009a1e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 13 Mar 1993 18:13:22 -0500 Subject: [PATCH] Correctly define PUSH_ARGS_REVERSED. From-SVN: r3728 --- gcc/calls.c | 9 +++++++-- gcc/expr.c | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gcc/calls.c b/gcc/calls.c index 0ba935d5ba8..0942c4996f6 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -25,12 +25,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "insn-flags.h" /* Decide whether a function's arguments should be processed - from first to last or from last to first. */ + from first to last or from last to first. + + They should if the stack and args grow in opposite directions, but + only if we have push insns. */ -#ifdef STACK_GROWS_DOWNWARD #ifdef PUSH_ROUNDING + +#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNARD) #define PUSH_ARGS_REVERSED /* If it's last to first */ #endif + #endif /* Like STACK_BOUNDARY but in units of bytes, not bits. */ diff --git a/gcc/expr.c b/gcc/expr.c index fb66fa84154..6242fe6607f 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -35,12 +35,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define CEIL(x,y) (((x) + (y) - 1) / (y)) /* Decide whether a function's arguments should be processed - from first to last or from last to first. */ + from first to last or from last to first. + + They should if the stack and args grow in opposite directions, but + only if we have push insns. */ -#ifdef STACK_GROWS_DOWNWARD #ifdef PUSH_ROUNDING + +#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNARD) #define PUSH_ARGS_REVERSED /* If it's last to first */ #endif + #endif #ifndef STACK_PUSH_CODE -- 2.30.2