aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-10-23 16:22:42 -0700
committerCaroline Tice <ctice@gcc.gnu.org>2015-10-23 16:22:42 -0700
commit9145a539410f8b27c91875e5be057f12ab812dea (patch)
treefd19bccd7d865a1b21d3cced1193ebd1e4510344 /gcc/tree.c
parentb9584cb56b0488414776e77dc70dedd569af9b48 (diff)
downloadgcc-9145a539410f8b27c91875e5be057f12ab812dea.zip
gcc-9145a539410f8b27c91875e5be057f12ab812dea.tar.gz
gcc-9145a539410f8b27c91875e5be057f12ab812dea.tar.bz2
This patch fixes a compile-time regression that was originally introduced by the fix for PR64111, in GCC 4.9.3.
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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 79bbd07..e77d4b8 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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;
}