From dfed69615791ca818d1286ea3e8fe3758c59d7bb Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Fri, 22 May 2015 01:03:51 +0000 Subject: [PATCH] move default for STACK_PUSH_CODE to defaults.h gcc/ChangeLog: 2015-05-20 Trevor Saunders * defaults.h: Add default for STACK_PUSH_CODE. * expr.c: Don't redefine STACK_PUSH_CODE. * recog.c: Likewise. From-SVN: r223515 --- gcc/ChangeLog | 6 ++++++ gcc/defaults.h | 8 ++++++++ gcc/expr.c | 8 -------- gcc/recog.c | 8 -------- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad68d6c0931..74ac8f4f1c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-20 Trevor Saunders + + * defaults.h: Add default for STACK_PUSH_CODE. + * expr.c: Don't redefine STACK_PUSH_CODE. + * recog.c: Likewise. + 2015-05-20 Trevor Saunders * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c, diff --git a/gcc/defaults.h b/gcc/defaults.h index a01969a4829..e7bbcb8e8aa 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1233,6 +1233,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define STACK_GROWS_DOWNWARD 0 #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 /* Dependent default target macro definitions diff --git a/gcc/expr.c b/gcc/expr.c index 09fc69473e2..275c636a4db 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -98,14 +98,6 @@ along with GCC; see the file COPYING3. If not see #include "rtl-chkp.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 around volatile memory references, and we are willing to diff --git a/gcc/recog.c b/gcc/recog.c index 524be673f02..39a5d1f89ff 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -68,14 +68,6 @@ along with GCC; see the file COPYING3. If not see #include "df.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 #if STACK_GROWS_DOWNWARD #define STACK_POP_CODE POST_INC -- 2.30.2