value-prof.c (tree_divmod_fixed_value_transform): Fix arguments to build_int_cst_wide.
authorRichard Sandiford <rsandifo@redhat.com>
Sun, 10 Apr 2005 06:23:08 +0000 (06:23 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 10 Apr 2005 06:23:08 +0000 (06:23 +0000)
* value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
to build_int_cst_wide.

From-SVN: r97940

gcc/ChangeLog
gcc/value-prof.c

index 872e432d37a9fc92a1774a34296e277c2e12dd65..8cb7b427bc3db6461d011ab223443d8cede44a35 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
+
+       * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
+       to build_int_cst_wide.
+
 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
 
        PR target/20126
index 26034092dd30427de862461e250b12d8f8c4f46a..0a3b26bff1cbe0cbace4c2da7211fea7203c33f0 100644 (file)
@@ -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;