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
This commit is contained in:
Daniel Berlin 2006-01-07 02:26:54 +00:00 committed by Daniel Berlin
parent b184f89b8a
commit 2784076858
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-01-06 Daniel Berlin <dberlin@dberlin.org>
* tree.c (iterative_hash_expr): Hash decls based on UID.
2006-01-06 Eric Christopher <echristo@apple.com>
* doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.

View File

@ -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
{