summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-08 15:07:23 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-08 15:07:23 +0000
commit7bb16fae6b1fcd8e64f4472909613cec82d190be (patch)
treec2beba32b4a6c9a75f36f059d8cc836dc81b2cee /gcc/tree-ssa.c
parented4c3ffea0a6298f863b8b3f8e165d178560e8c1 (diff)
downloadgcc-7bb16fae6b1fcd8e64f4472909613cec82d190be.tar.gz
* tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
instead of VARRAY. * tree-flow.h (num_referenced_var, referenced_var): Likewise. * tree-into-ssa.c (mark_def_site_blocks): Likewise. * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise. * tree-tailcall.c (suitable_for_tail_opt_p): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99393 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index ac4e2335359..e4a5ba1d8a3 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -786,7 +786,7 @@ err:
void
init_tree_ssa (void)
{
- VARRAY_TREE_INIT (referenced_vars, 20, "referenced_vars");
+ referenced_vars = VEC_alloc (tree, gc, 20);
call_clobbered_vars = BITMAP_ALLOC (NULL);
addressable_vars = BITMAP_ALLOC (NULL);
init_ssanames ();
@@ -827,16 +827,13 @@ delete_tree_ssa (void)
}
/* Remove annotations from every referenced variable. */
- if (referenced_vars)
+ for (i = 0; i < num_referenced_vars; i++)
{
- for (i = 0; i < num_referenced_vars; i++)
- {
- tree var = referenced_var (i);
- ggc_free (var->common.ann);
- var->common.ann = NULL;
- }
- referenced_vars = NULL;
+ tree var = referenced_var (i);
+ ggc_free (var->common.ann);
+ var->common.ann = NULL;
}
+ VEC_free (tree, gc, referenced_vars);
fini_ssanames ();
fini_phinodes ();