OSDN Git Service

Correctly define PUSH_ARGS_REVERSED.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Mar 1993 23:13:22 +0000 (23:13 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Mar 1993 23:13:22 +0000 (23:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3728 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/calls.c
gcc/expr.c

index 0ba935d..0942c49 100644 (file)
@@ -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.  */
index fb66fa8..6242fe6 100644 (file)
@@ -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