diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2006-01-07 02:26:54 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2006-01-07 02:26:54 +0000 |
commit | 2784076858a053092d1a712678d89cbb5cbd67ba (patch) | |
tree | 918b820672bd4684cf46ff40765b02d176dc772e /gcc/tree.c | |
parent | b184f89b8a53e9b69016d4661e0181aa1400e3e0 (diff) | |
download | gcc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |