diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 2603409..0a3b26b 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1243,7 +1243,8 @@ tree_divmod_fixed_value_transform (tree stmt) prob = (count * REG_BR_PROB_BASE + all / 2) / all; tree_val = build_int_cst_wide (get_gcov_type (), - val & 0xffffffffull, val >> 32); + (unsigned HOST_WIDE_INT) val, + val >> (HOST_BITS_PER_WIDE_INT - 1) >> 1); result = tree_divmod_fixed_value (stmt, op, op1, op2, tree_val, prob, count, all); TREE_OPERAND (modify, 1) = result; |