* tree.c (iterative_hash_expr): Use real_hash.

From-SVN: r82720
This commit is contained in:
J"orn Rennecke 2004-06-07 20:46:40 +00:00 committed by Joern Rennecke
parent 2435e0362d
commit f29b9db93e
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
* tree.c (iterative_hash_expr): Use real_hash.
2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
PR c/14765

View file

@ -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);