diff options
author | Jason Merrill <jason@redhat.com> | 2004-03-05 17:38:24 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2004-03-05 17:38:24 -0500 |
commit | fd917e0dc4d6488074c5c8b84664a941fedf6052 (patch) | |
tree | 9d36ad37b0e9bce1412800770f06296f53a67ce6 /gcc/except.c | |
parent | 822e895cafce43ff26bab0d4a0e5ed7166a10488 (diff) | |
download | gcc-fd917e0dc4d6488074c5c8b84664a941fedf6052.tar.gz |
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/except.c')
-rw-r--r-- | gcc/except.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/except.c b/gcc/except.c index 70eb3b17d7f..d290a60ea5b 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1411,7 +1411,7 @@ static hashval_t t2r_hash (const void *pentry) { tree entry = (tree) pentry; - return TYPE_HASH (TREE_PURPOSE (entry)); + return TREE_HASH (TREE_PURPOSE (entry)); } static void @@ -1420,7 +1420,7 @@ add_type_for_runtime (tree type) tree *slot; slot = (tree *) htab_find_slot_with_hash (type_to_runtime_map, type, - TYPE_HASH (type), INSERT); + TREE_HASH (type), INSERT); if (*slot == NULL) { tree runtime = (*lang_eh_runtime_type) (type); @@ -1434,7 +1434,7 @@ lookup_type_for_runtime (tree type) tree *slot; slot = (tree *) htab_find_slot_with_hash (type_to_runtime_map, type, - TYPE_HASH (type), NO_INSERT); + TREE_HASH (type), NO_INSERT); /* We should have always inserted the data earlier. */ return TREE_VALUE (*slot); @@ -1465,7 +1465,7 @@ static hashval_t ttypes_filter_hash (const void *pentry) { const struct ttypes_filter *entry = (const struct ttypes_filter *) pentry; - return TYPE_HASH (entry->t); + return TREE_HASH (entry->t); } /* Compare ENTRY with DATA (both struct ttypes_filter) for a @TTypes @@ -1492,12 +1492,12 @@ ehspec_filter_hash (const void *pentry) tree list; for (list = entry->t; list ; list = TREE_CHAIN (list)) - h = (h << 5) + (h >> 27) + TYPE_HASH (TREE_VALUE (list)); + h = (h << 5) + (h >> 27) + TREE_HASH (TREE_VALUE (list)); return h; } -/* Add TYPE to cfun->eh->ttype_data, using TYPES_HASH to speed - up the search. Return the filter value to be used. */ +/* Add TYPE (which may be NULL) to cfun->eh->ttype_data, using TYPES_HASH + to speed up the search. Return the filter value to be used. */ static int add_ttypes_entry (htab_t ttypes_hash, tree type) @@ -1505,7 +1505,7 @@ add_ttypes_entry (htab_t ttypes_hash, tree type) struct ttypes_filter **slot, *n; slot = (struct ttypes_filter **) - htab_find_slot_with_hash (ttypes_hash, type, TYPE_HASH (type), INSERT); + htab_find_slot_with_hash (ttypes_hash, type, TREE_HASH (type), INSERT); if ((n = *slot) == NULL) { |