This patch fixes a compile-time regression that was originally introduced by the...
authorCaroline Tice <cmtice@google.com>
Fri, 23 Oct 2015 23:22:42 +0000 (16:22 -0700)
committerCaroline Tice <ctice@gcc.gnu.org>
Fri, 23 Oct 2015 23:22:42 +0000 (16:22 -0700)
This patch fixes a compile-time regression that was originally
introduced by the fix for PR64111, in GCC 4.9.3.
gcc/ChangeLog:

2015-10-23  Caroline Tice  <cmtice@google.com>

        (from Richard Biener)
        * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
        call to iterative_hash_host_wide_int.

From-SVN: r229277

gcc/ChangeLog
gcc/tree.c

index 4b37e02db0173cc555dee32f3837b52582568387..97748bdf551c545745ef83c0ebef0ef07f84d10e 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-23  Caroline Tice  <cmtice@google.com>
+
+       (from Richard Biener
+       * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
+       call to iterative_hash_host_wide_int.
+
 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
 
        * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
index 79bbd0752c8112ee8e7e62d59f331c23fdc9cd93..e77d4b88ab5951ab3c8d4a2c50b41a59c48c798f 100644 (file)
@@ -1364,7 +1364,7 @@ int_cst_hasher::hash (tree x)
   int i;
 
   for (i = 0; i < TREE_INT_CST_NUNITS (t); i++)
-    code ^= TREE_INT_CST_ELT (t, i);
+    code = iterative_hash_host_wide_int (TREE_INT_CST_ELT(t, i), code);
 
   return code;
 }