aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index eefb952..7b0115d 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -73,7 +73,7 @@ static vec<complex_lattice_t> complex_lattice_values;
/* For each complex variable, a pair of variables for the components exists in
the hashtable. */
-static int_tree_htab_type complex_variable_components;
+static int_tree_htab_type *complex_variable_components;
/* For each complex SSA_NAME, a pair of ssa names for the components. */
static vec<tree> complex_ssa_name_components;
@@ -85,7 +85,7 @@ cvc_lookup (unsigned int uid)
{
struct int_tree_map *h, in;
in.uid = uid;
- h = complex_variable_components.find_with_hash (&in, uid);
+ h = complex_variable_components->find_with_hash (&in, uid);
return h ? h->to : NULL;
}
@@ -100,7 +100,7 @@ cvc_insert (unsigned int uid, tree to)
h = XNEW (struct int_tree_map);
h->uid = uid;
h->to = to;
- loc = complex_variable_components.find_slot_with_hash (h, uid, INSERT);
+ loc = complex_variable_components->find_slot_with_hash (h, uid, INSERT);
*loc = h;
}
@@ -1629,7 +1629,7 @@ tree_lower_complex (void)
init_parameter_lattice_values ();
ssa_propagate (complex_visit_stmt, complex_visit_phi);
- complex_variable_components.create (10);
+ complex_variable_components = new int_tree_htab_type (10);
complex_ssa_name_components.create (2 * num_ssa_names);
complex_ssa_name_components.safe_grow_cleared (2 * num_ssa_names);
@@ -1650,7 +1650,8 @@ tree_lower_complex (void)
gsi_commit_edge_inserts ();
- complex_variable_components.dispose ();
+ delete complex_variable_components;
+ complex_variable_components = NULL;
complex_ssa_name_components.release ();
complex_lattice_values.release ();
return 0;