]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (iterative_hash_expr): Hash decls based on UID.
authorDaniel Berlin <dberlin@dberlin.org>
Sat, 7 Jan 2006 02:26:54 +0000 (02:26 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Sat, 7 Jan 2006 02:26:54 +0000 (02:26 +0000)
2006-01-06  Daniel Berlin  <dberlin@dberlin.org>

* tree.c (iterative_hash_expr): Hash decls based on UID.

From-SVN: r109448

gcc/ChangeLog
gcc/tree.c

index 98373329a69f21dbc0a763ebc2542b5bf5b3b8f5..428c5230ab4e91dba153f6647a1bc2d766ae8f61 100644 (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.
index b9f73919b25115b2359256f9ba61005577fbce2f..574e73b31a2edc5655b756a3542febfe57431364 100644 (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
        {