summaryrefslogtreecommitdiff
path: root/gcc/internal-fn.c
diff options
context:
space:
mode:
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-28 13:38:18 +0000
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-28 13:38:18 +0000
commit70e170e3dd1b94eb581bb6f8e7ce7e049bea7ab5 (patch)
tree97fbc889e2e1cb2a36163410fb2b482504b5b669 /gcc/internal-fn.c
parentf43a70e269d05ece81a8aeaf83adb63157d8068a (diff)
downloadgcc-70e170e3dd1b94eb581bb6f8e7ce7e049bea7ab5.tar.gz
[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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235569 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/internal-fn.c')
-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