From f1ac52cd09a623f1f6f9894b10b0cf5337d8491b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 10 Apr 2005 06:23:08 +0000 Subject: [PATCH] value-prof.c (tree_divmod_fixed_value_transform): Fix arguments to build_int_cst_wide. * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments to build_int_cst_wide. From-SVN: r97940 --- gcc/ChangeLog | 5 +++++ gcc/value-prof.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 872e432d37a..8cb7b427bc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-10 Richard Sandiford + + * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments + to build_int_cst_wide. + 2005-04-09 Alexandre Oliva PR target/20126 diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 26034092dd3..0a3b26bff1c 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;