diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-22 01:03:42 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-22 01:03:42 +0000 |
commit | 3764c94e801b39ba6d3f999cdd44374e2cfb496f (patch) | |
tree | 630391313f613c55a9c731eebd34c669d6065b62 /gcc/sched-deps.c | |
parent | 2b785411c459a847a59e1b980134e8f71e8dbd85 (diff) | |
download | gcc-3764c94e801b39ba6d3f999cdd44374e2cfb496f.tar.gz |
remove most ifdef STACK_GROWS_DOWNWARD
gcc/c-family/ChangeLog:
2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
STACK_GROWS_DOWNWARD.
gcc/ChangeLog:
2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
sched-deps.c: Use if instead of preprocessor checks with
STACK_GROWS_DOWNWARD.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223514 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 206da5a55f2..c1cfc1f3b70 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -4734,11 +4734,10 @@ parse_add_or_inc (struct mem_inc_info *mii, rtx_insn *insn, bool before_mem) if (regs_equal && REGNO (SET_DEST (pat)) == STACK_POINTER_REGNUM) { /* Note that the sign has already been reversed for !before_mem. */ -#if STACK_GROWS_DOWNWARD - return mii->inc_constant > 0; -#else - return mii->inc_constant < 0; -#endif + if (STACK_GROWS_DOWNWARD) + return mii->inc_constant > 0; + else + return mii->inc_constant < 0; } return true; } |