diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |