aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2006-01-07 02:26:54 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2006-01-07 02:26:54 +0000
commit2784076858a053092d1a712678d89cbb5cbd67ba (patch)
tree918b820672bd4684cf46ff40765b02d176dc772e /gcc/tree.c
parentb184f89b8a53e9b69016d4661e0181aa1400e3e0 (diff)
downloadgcc-2784076858a053092d1a712678d89cbb5cbd67ba.zip
gcc-2784076858a053092d1a712678d89cbb5cbd67ba.tar.gz
gcc-2784076858a053092d1a712678d89cbb5cbd67ba.tar.bz2
tree.c (iterative_hash_expr): Hash decls based on UID.
2006-01-06 Daniel Berlin <dberlin@dberlin.org> * tree.c (iterative_hash_expr): Hash decls based on UID. From-SVN: r109448
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index b9f7391..574e73b 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4718,8 +4718,8 @@ iterative_hash_expr (tree t, hashval_t val)
if (class == tcc_declaration)
{
- /* Otherwise, we can just compare decls by pointer. */
- val = iterative_hash_pointer (t, val);
+ /* DECL's have a unique ID */
+ val = iterative_hash_host_wide_int (DECL_UID (t), val);
}
else
{