diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-03-13 18:13:22 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-03-13 18:13:22 -0500 |
commit | bbc8a07104bc1863ca9550cc27b942c21f009a1e (patch) | |
tree | 4ac0b2dd1df0a199d0a7e89adb1754af352d307a | |
parent | 45586a95c2454499681930fd87a5e7d3db6bbc34 (diff) | |
download | gcc-bbc8a07104bc1863ca9550cc27b942c21f009a1e.zip gcc-bbc8a07104bc1863ca9550cc27b942c21f009a1e.tar.gz gcc-bbc8a07104bc1863ca9550cc27b942c21f009a1e.tar.bz2 |
Correctly define PUSH_ARGS_REVERSED.
From-SVN: r3728
-rw-r--r-- | gcc/calls.c | 9 | ||||
-rw-r--r-- | gcc/expr.c | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 0ba935d..0942c49 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. */ @@ -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 |