]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
defaults.h (PUSH_ARGS_REVERSED): Define default here.
authorJason Merrill <jason@redhat.com>
Mon, 30 Jun 2003 13:16:26 +0000 (09:16 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 30 Jun 2003 13:16:26 +0000 (09:16 -0400)
        * defaults.h (PUSH_ARGS_REVERSED): Define default here.
        * calls.c: Not here.

From-SVN: r68701

gcc/ChangeLog
gcc/calls.c
gcc/defaults.h
gcc/doc/tm.texi

index 1f2777f911f10468791cf9d7ff71be17b7ee7d4c..9b559e5fb9f3c10ba8e1866fb3c30fd116bfe67c 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-30  Jason Merrill  <jason@redhat.com>
+
+       * defaults.h (PUSH_ARGS_REVERSED): Define default here.
+       * calls.c: Not here.
+
 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
 
        * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
index f220a6d7817e247c0bede847f3e34d8f872d1083..c15cb5532f31d16c50886340c68d9c4b760ca975 100644 (file)
@@ -40,26 +40,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "cgraph.h"
 #include "except.h"
 
-/* Decide whether a function's arguments should be processed
-   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 PUSH_ROUNDING
-
-#ifndef PUSH_ARGS_REVERSED
-#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
-#define PUSH_ARGS_REVERSED  PUSH_ARGS
-#endif
-#endif
-
-#endif
-
-#ifndef PUSH_ARGS_REVERSED
-#define PUSH_ARGS_REVERSED 0
-#endif
-
 #ifndef STACK_POINTER_OFFSET
 #define STACK_POINTER_OFFSET    0
 #endif
index eb3e78cae1348dddbb6cf9d0779ba4cb27aeceb6..20dc172faa43f629c2994f8cf6294d9a80d6ed5c 100644 (file)
@@ -411,6 +411,26 @@ do { fputs (integer_asm_op (POINTER_SIZE / UNITS_PER_WORD, TRUE), FILE); \
 #endif
 #endif
 
+/* Decide whether a function's arguments should be processed
+   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 PUSH_ROUNDING
+
+#ifndef PUSH_ARGS_REVERSED
+#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
+#define PUSH_ARGS_REVERSED  PUSH_ARGS
+#endif
+#endif
+
+#endif
+
+#ifndef PUSH_ARGS_REVERSED
+#define PUSH_ARGS_REVERSED 0
+#endif
+
 /* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
    STACK_BOUNDARY is required.  */
 #ifndef PREFERRED_STACK_BOUNDARY
index 1f52fcbd89d6c6e78dea24858149a4e440a5e02a..cbc40ffc460b8319558a493c98fe61db366cc71a 100644 (file)
@@ -3374,6 +3374,13 @@ allocate the entire argument block and then store the arguments into
 it.  When @code{PUSH_ARGS} is nonzero, @code{PUSH_ROUNDING} must be defined too.
 @end defmac
 
+@defmac PUSH_ARGS_REVERSED
+A C expression.  If nonzero, function arguments will be evaluated from
+last to first, rather than from first to last.  If this macro is not
+defined, it defaults to @code{PUSH_ARGS} on targets where the stack
+and args grow in opposite directions, and 0 otherwise.
+@end defmac
+
 @defmac PUSH_ROUNDING (@var{npushed})
 A C expression that is the number of bytes actually pushed onto the
 stack when an instruction attempts to push @var{npushed} bytes.