From: Daniel Berlin Date: Sat, 7 Jan 2006 02:26:54 +0000 (+0000) Subject: tree.c (iterative_hash_expr): Hash decls based on UID. X-Git-Tag: releases/gcc-4.2.0~4988 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2784076858a053092d1a712678d89cbb5cbd67ba;p=thirdparty%2Fgcc.git tree.c (iterative_hash_expr): Hash decls based on UID. 2006-01-06 Daniel Berlin * tree.c (iterative_hash_expr): Hash decls based on UID. From-SVN: r109448 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 98373329a69f..428c5230ab4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-01-06 Daniel Berlin + + * tree.c (iterative_hash_expr): Hash decls based on UID. + 2006-01-06 Eric Christopher * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document. diff --git a/gcc/tree.c b/gcc/tree.c index b9f73919b251..574e73b31a2e 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 {