From fd917e0dc4d6488074c5c8b84664a941fedf6052 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 5 Mar 2004 17:38:24 -0500 Subject: 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 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/tree.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'gcc/cp') 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 + + * tree.c (list_hash_pieces): s/TYPE_HASH/TREE_HASH/. + 2004-03-04 Geoffrey Keating * 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; -- cgit v1.1