Commit 2da4124d by H.J. Lu Committed by H.J. Lu

calls.c (PUSH_ARGS_REVERSED): Define only if not defined.

2002-11-10  H.J. Lu <hjl@gnu.org>

	* calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
	* expr.c (PUSH_ARGS_REVERSED): Likewise.

	* config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.

From-SVN: r59002
parent 06315871
2002-11-10 H.J. Lu <hjl@gnu.org>
* calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
* expr.c (PUSH_ARGS_REVERSED): Likewise.
* config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
2002-11-10 Zack Weinberg <zack@codesourcery.com> 2002-11-10 Zack Weinberg <zack@codesourcery.com>
* config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here... * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
......
...@@ -48,9 +48,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -48,9 +48,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifdef PUSH_ROUNDING #ifdef PUSH_ROUNDING
#ifndef PUSH_ARGS_REVERSED
#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD) #if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
#define PUSH_ARGS_REVERSED PUSH_ARGS #define PUSH_ARGS_REVERSED PUSH_ARGS
#endif #endif
#endif
#endif #endif
......
...@@ -1574,6 +1574,10 @@ enum reg_class ...@@ -1574,6 +1574,10 @@ enum reg_class
#define PUSH_ARGS (TARGET_PUSH_ARGS && !ACCUMULATE_OUTGOING_ARGS) #define PUSH_ARGS (TARGET_PUSH_ARGS && !ACCUMULATE_OUTGOING_ARGS)
/* We want the stack and args grow in opposite directions, even if
PUSH_ARGS is 0. */
#define PUSH_ARGS_REVERSED 1
/* Offset of first parameter from the argument pointer register value. */ /* Offset of first parameter from the argument pointer register value. */
#define FIRST_PARM_OFFSET(FNDECL) 0 #define FIRST_PARM_OFFSET(FNDECL) 0
......
...@@ -54,9 +54,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -54,9 +54,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifdef PUSH_ROUNDING #ifdef PUSH_ROUNDING
#ifndef PUSH_ARGS_REVERSED
#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD) #if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
#define PUSH_ARGS_REVERSED /* If it's last to first. */ #define PUSH_ARGS_REVERSED /* If it's last to first. */
#endif #endif
#endif
#endif #endif
......
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