aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2004-03-05 17:38:24 -0500
committerJason Merrill <jason@gcc.gnu.org>2004-03-05 17:38:24 -0500
commitfd917e0dc4d6488074c5c8b84664a941fedf6052 (patch)
tree9d36ad37b0e9bce1412800770f06296f53a67ce6 /gcc/cp
parent822e895cafce43ff26bab0d4a0e5ed7166a10488 (diff)
downloadgcc-fd917e0dc4d6488074c5c8b84664a941fedf6052.zip
gcc-fd917e0dc4d6488074c5c8b84664a941fedf6052.tar.gz
gcc-fd917e0dc4d6488074c5c8b84664a941fedf6052.tar.bz2
tree.h (TYPE_HASH): Use TYPE_UID.
* tree.h (TYPE_HASH): Use TYPE_UID. (TREE_HASH): New macro with old definition of TYPE_HASH. * tree.c (build_type_attribute_variant): Use iterative_hash_object. (build_array_type, build_function_type): Likewise. (build_method_type_directly): Likewise. (build_offset_type, build_complex_type): Likewise. (type_hash_list, attribute_hash_list): Likewise. Now static. * except.c: s/TYPE_HASH/TREE_HASH/. * cp/tree.c (list_hash_pieces): s/TYPE_HASH/TREE_HASH/. From-SVN: r78993
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/tree.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ff86869..ae6da10 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-05 Jason Merrill <jason@redhat.com>
+
+ * tree.c (list_hash_pieces): s/TYPE_HASH/TREE_HASH/.
+
2004-03-04 Geoffrey Keating <geoffk@apple.com>
* decl.c (grokfndecl): Update old incorrect comment.
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 89ead78..290317e 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -692,14 +692,14 @@ list_hash_pieces (tree purpose, tree value, tree chain)
hashval_t hashcode = 0;
if (chain)
- hashcode += TYPE_HASH (chain);
+ hashcode += TREE_HASH (chain);
if (value)
- hashcode += TYPE_HASH (value);
+ hashcode += TREE_HASH (value);
else
hashcode += 1007;
if (purpose)
- hashcode += TYPE_HASH (purpose);
+ hashcode += TREE_HASH (purpose);
else
hashcode += 1009;
return hashcode;