From 208b85bb9135f1e59ed79855001439948a2b5a74 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Thu, 28 Apr 2016 13:38:18 +0000 Subject: [PATCH] [internal-fn.c][committed] Convert conditional compilation on WORD_REGISTER_OPERATIONS * internal-fn.c (expand_arith_overflow): Convert preprocessor check for WORD_REGISTER_OPERATIONS to runtime check. From-SVN: r235569 --- gcc/ChangeLog | 5 +++++ gcc/internal-fn.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b3dc01096c19..b7237c2f7f3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-28 Kyrylo Tkachov + + * internal-fn.c (expand_arith_overflow): Convert preprocessor check + for WORD_REGISTER_OPERATIONS to runtime check. + 2016-04-28 Claudiu Zissulescu * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler. diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index c07b53893820..e70c73aba8a7 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -1807,11 +1807,7 @@ expand_arith_overflow (enum tree_code code, gimple *stmt) /* For sub-word operations, retry with a wider type first. */ if (orig_precres == precres && precop <= BITS_PER_WORD) { -#if WORD_REGISTER_OPERATIONS - int p = BITS_PER_WORD; -#else - int p = precop; -#endif + int p = WORD_REGISTER_OPERATIONS ? BITS_PER_WORD : precop; enum machine_mode m = smallest_mode_for_size (p, MODE_INT); tree optype = build_nonstandard_integer_type (GET_MODE_PRECISION (m), uns0_p && uns1_p -- 2.47.2