Commit dfed6961 by Trevor Saunders Committed by Trevor Saunders

move default for STACK_PUSH_CODE to defaults.h

gcc/ChangeLog:

2015-05-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* defaults.h: Add default for STACK_PUSH_CODE.
	* expr.c: Don't redefine STACK_PUSH_CODE.
	* recog.c: Likewise.

From-SVN: r223515
parent 581edfa3
2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* defaults.h: Add default for STACK_PUSH_CODE.
* expr.c: Don't redefine STACK_PUSH_CODE.
* recog.c: Likewise.
2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c, * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
sched-deps.c: Use if instead of preprocessor checks with sched-deps.c: Use if instead of preprocessor checks with
STACK_GROWS_DOWNWARD. STACK_GROWS_DOWNWARD.
......
...@@ -1233,6 +1233,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -1233,6 +1233,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define STACK_GROWS_DOWNWARD 0 #define STACK_GROWS_DOWNWARD 0
#endif #endif
#ifndef STACK_PUSH_CODE
#if STACK_GROWS_DOWNWARD
#define STACK_PUSH_CODE PRE_DEC
#else
#define STACK_PUSH_CODE PRE_INC
#endif
#endif
#ifdef GCC_INSN_FLAGS_H #ifdef GCC_INSN_FLAGS_H
/* Dependent default target macro definitions /* Dependent default target macro definitions
......
...@@ -98,14 +98,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -98,14 +98,6 @@ along with GCC; see the file COPYING3. If not see
#include "rtl-chkp.h" #include "rtl-chkp.h"
#include "ccmp.h" #include "ccmp.h"
#ifndef STACK_PUSH_CODE
#if STACK_GROWS_DOWNWARD
#define STACK_PUSH_CODE PRE_DEC
#else
#define STACK_PUSH_CODE PRE_INC
#endif
#endif
/* If this is nonzero, we do not bother generating VOLATILE /* If this is nonzero, we do not bother generating VOLATILE
around volatile memory references, and we are willing to around volatile memory references, and we are willing to
......
...@@ -68,14 +68,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -68,14 +68,6 @@ along with GCC; see the file COPYING3. If not see
#include "df.h" #include "df.h"
#include "insn-codes.h" #include "insn-codes.h"
#ifndef STACK_PUSH_CODE
#if STACK_GROWS_DOWNWARD
#define STACK_PUSH_CODE PRE_DEC
#else
#define STACK_PUSH_CODE PRE_INC
#endif
#endif
#ifndef STACK_POP_CODE #ifndef STACK_POP_CODE
#if STACK_GROWS_DOWNWARD #if STACK_GROWS_DOWNWARD
#define STACK_POP_CODE POST_INC #define STACK_POP_CODE POST_INC
......
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