* tree.c (iterative_hash_expr): Hash decls based on UID.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109448
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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
{