From: J"orn Rennecke Date: Mon, 7 Jun 2004 20:46:40 +0000 (+0000) Subject: * tree.c (iterative_hash_expr): Use real_hash. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f29b9db93eb2f3508d2376103af158675f1ee2b0;p=gcc.git * tree.c (iterative_hash_expr): Use real_hash. From-SVN: r82720 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a5323007be..d15e179fa3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-06-07 J"orn Rennecke + + * tree.c (iterative_hash_expr): Use real_hash. + 2004-06-07 Joseph S. Myers PR c/14765 diff --git a/gcc/tree.c b/gcc/tree.c index f8b677926b5..045959c5c01 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3846,8 +3846,11 @@ iterative_hash_expr (tree t, hashval_t val) val = iterative_hash_object (TREE_INT_CST_HIGH (t), val); } else if (code == REAL_CST) - val = iterative_hash (TREE_REAL_CST_PTR (t), - sizeof (REAL_VALUE_TYPE), val); + { + unsigned int val2 = real_hash (TREE_REAL_CST_PTR (t)); + + val = iterative_hash (&val2, sizeof (unsigned int), val); + } else if (code == STRING_CST) val = iterative_hash (TREE_STRING_POINTER (t), TREE_STRING_LENGTH (t), val);