From f7dfb654e7f51f14bc2480913fcae649b929219e Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sun, 11 Oct 2015 00:48:28 +0000 Subject: [PATCH] always define REVERSE_CONDITION gcc/ChangeLog: 2015-10-10 Trevor Saunders * defaults.h (REVERSE_CONDITION): New default definition. * jump.c (reversed_comparison_code_parts): Adjust. From-SVN: r228690 --- gcc/ChangeLog | 5 +++++ gcc/defaults.h | 4 ++++ gcc/jump.c | 8 +------- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4bf73e465bf..05994817e59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-10 Trevor Saunders + + * defaults.h (REVERSE_CONDITION): New default definition. + * jump.c (reversed_comparison_code_parts): Adjust. + 2015-10-10 Trevor Saunders * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to diff --git a/gcc/defaults.h b/gcc/defaults.h index eb16fc85e64..cee799d8590 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1293,6 +1293,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define FRAME_ADDR_RTX(x) (x) #endif +#ifndef REVERSE_CONDITION +#define REVERSE_CONDITION(code, mode) reverse_condition (code) +#endif + #ifdef GCC_INSN_FLAGS_H /* Dependent default target macro definitions diff --git a/gcc/jump.c b/gcc/jump.c index 21324cd0741..f0d2af0d28a 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -389,13 +389,7 @@ reversed_comparison_code_parts (enum rtx_code code, const_rtx arg0, machine description to do tricks. */ if (GET_MODE_CLASS (mode) == MODE_CC && REVERSIBLE_CC_MODE (mode)) - { -#ifdef REVERSE_CONDITION - return REVERSE_CONDITION (code, mode); -#else - return reverse_condition (code); -#endif - } + return REVERSE_CONDITION (code, mode); /* Try a few special cases based on the comparison code. */ switch (code) -- 2.30.2