diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2005-04-10 06:23:08 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2005-04-10 06:23:08 +0000 |
commit | f1ac52cd09a623f1f6f9894b10b0cf5337d8491b (patch) | |
tree | 4f63443cfa92cd872534004b0783caa367d42bf0 /gcc/value-prof.c | |
parent | 46382283d57b72ccb117f1b2f3735c7e0c252870 (diff) | |
download | gcc-f1ac52cd09a623f1f6f9894b10b0cf5337d8491b.zip gcc-f1ac52cd09a623f1f6f9894b10b0cf5337d8491b.tar.gz gcc-f1ac52cd09a623f1f6f9894b10b0cf5337d8491b.tar.bz2 |
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
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; |