diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2016-04-28 13:38:18 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2016-04-28 13:38:18 +0000 |
commit | 208b85bb9135f1e59ed79855001439948a2b5a74 (patch) | |
tree | 97fbc889e2e1cb2a36163410fb2b482504b5b669 /gcc | |
parent | 31ae5117dde03c3069598da1d92ba61127b6e4fe (diff) | |
download | gcc-208b85bb9135f1e59ed79855001439948a2b5a74.zip gcc-208b85bb9135f1e59ed79855001439948a2b5a74.tar.gz gcc-208b85bb9135f1e59ed79855001439948a2b5a74.tar.bz2 |
[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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/internal-fn.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b3dc010..b7237c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. + 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler. diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index c07b538..e70c73a 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 |