summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index a352adfe948..34807231bc8 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -290,7 +290,7 @@ tree_entry_hasher::equal (const value_type *e1, const compare_type *e2)
return (e1->key == e2->key);
}
-static hash_table <tree_hash_entry> tree_htab;
+static hash_table<tree_hash_entry> *tree_htab;
#endif
/* Initialization common to the LTO reader and writer. */
@@ -305,7 +305,7 @@ lto_streamer_init (void)
streamer_check_handled_ts_structures ();
#ifdef LTO_STREAMER_DEBUG
- tree_htab.create (31);
+ tree_htab = new hash_table<tree_hash_entry> (31);
#endif
}
@@ -340,7 +340,7 @@ lto_orig_address_map (tree t, intptr_t orig_t)
ent.key = t;
ent.value = orig_t;
- slot = tree_htab.find_slot (&ent, INSERT);
+ slot = tree_htab->find_slot (&ent, INSERT);
gcc_assert (!*slot);
*slot = XNEW (struct tree_hash_entry);
**slot = ent;
@@ -357,7 +357,7 @@ lto_orig_address_get (tree t)
struct tree_hash_entry **slot;
ent.key = t;
- slot = tree_htab.find_slot (&ent, NO_INSERT);
+ slot = tree_htab->find_slot (&ent, NO_INSERT);
return (slot ? (*slot)->value : 0);
}
@@ -371,10 +371,10 @@ lto_orig_address_remove (tree t)
struct tree_hash_entry **slot;
ent.key = t;
- slot = tree_htab.find_slot (&ent, NO_INSERT);
+ slot = tree_htab->find_slot (&ent, NO_INSERT);
gcc_assert (slot);
free (*slot);
- tree_htab.clear_slot (slot);
+ tree_htab->clear_slot (slot);
}
#endif