aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2016-06-08 14:22:25 +0200
committerYvan Roux <yvan.roux@linaro.org>2016-06-14 14:48:01 +0200
commit8e06192d9530e513e0b5e7d9d9f7f4642ffbdcb2 (patch)
tree94009db5b39d23500a7f20eda1b07427405b68cf
parentacdd6bf6830b070d373b7bf4e4969eb03731aded (diff)
gcc/
Backport from trunk r235569. 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * internal-fn.c (expand_arith_overflow): Convert preprocessor check for WORD_REGISTER_OPERATIONS to runtime check. Change-Id: I5990208a49b9edc58e04bf14c3876459a42dbb80
-rw-r--r--gcc/internal-fn.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c
index c07b5389382..e70c73aba8a 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