summaryrefslogtreecommitdiffstats
path: root/gcc/except.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-05 22:38:24 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-05 22:38:24 +0000
commit908e5f417508446d520f696446e2301c45170962 (patch)
tree9d36ad37b0e9bce1412800770f06296f53a67ce6 /gcc/except.c
parent9276fdffb46d3694bb0bed1c0fd08892b19d2a7b (diff)
downloadppe42-gcc-908e5f417508446d520f696446e2301c45170962.tar.gz
ppe42-gcc-908e5f417508446d520f696446e2301c45170962.zip
* 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/. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78993 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c16
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)
{
OpenPOWER on IntegriCloud