From: ctice Date: Fri, 23 Oct 2015 23:22:42 +0000 (+0000) Subject: This patch fixes a compile-time regression that was originally X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45e9a90e4c82dd6fd751203aecf598966853b43c;p=thirdparty%2Fgcc.git 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 (from Richard Biener) * tree.c (int_cst_hasher::hash): Replace XOR with more efficient call to iterative_hash_host_wide_int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229277 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b37e02db017..97748bdf551c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-10-23 Caroline Tice + + (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 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]: diff --git a/gcc/tree.c b/gcc/tree.c index 79bbd0752c81..e77d4b88ab59 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; }