Commit bbc8a071 by Richard Kenner

Correctly define PUSH_ARGS_REVERSED.

From-SVN: r3728
parent 45586a95
...@@ -25,12 +25,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -25,12 +25,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "insn-flags.h" #include "insn-flags.h"
/* Decide whether a function's arguments should be processed /* 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 #ifdef PUSH_ROUNDING
#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNARD)
#define PUSH_ARGS_REVERSED /* If it's last to first */ #define PUSH_ARGS_REVERSED /* If it's last to first */
#endif #endif
#endif #endif
/* Like STACK_BOUNDARY but in units of bytes, not bits. */ /* 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. */ ...@@ -35,12 +35,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CEIL(x,y) (((x) + (y) - 1) / (y)) #define CEIL(x,y) (((x) + (y) - 1) / (y))
/* Decide whether a function's arguments should be processed /* 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 #ifdef PUSH_ROUNDING
#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNARD)
#define PUSH_ARGS_REVERSED /* If it's last to first */ #define PUSH_ARGS_REVERSED /* If it's last to first */
#endif #endif
#endif #endif
#ifndef STACK_PUSH_CODE #ifndef STACK_PUSH_CODE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment