diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-19 19:13:21 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-19 19:13:21 +0000 |
commit | 2fd737226122c501a151ebe377ce177be944b205 (patch) | |
tree | 0c8732c81e7c0d6f68cff04366bf2a4b0314e4d3 /gcc/tree-ssa-operands.c | |
parent | e22cc0b9603656362f81fdf8af1d311c2f39b853 (diff) | |
download | gcc-2fd737226122c501a151ebe377ce177be944b205.tar.gz |
* tree-flow.h (struct var_ann_d): Change type of
may_aliases field to VEC(tree, gc) *.
(may_aliases): Declaration changed.
* tree-ssa-alias.c (group_aliases, add_may_alias,
replace_may_alias, dump_may_aliases_for,
is_aliased_with, add_type_alias, new_type_alias):
Work with VEC(tree, gc) * instead of varray.
* tree-flow-inline.h (may_aliases): Ditto.
* tree-ssa.c (verify_flow_insensitive_alias_info,
verify_name_tags): Ditto.
* tree-ssa-operands.c (add_stmt_operand): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 674e9ce773d..236db303ffc 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -1601,7 +1601,7 @@ add_stmt_operand (tree *var_p, stmt_ann_t s_ann, int flags) } else { - varray_type aliases; + VEC(tree,gc) *aliases; /* The variable is not a GIMPLE register. Add it (or its aliases) to virtual operands, unless the caller has specifically requested @@ -1639,11 +1639,12 @@ add_stmt_operand (tree *var_p, stmt_ann_t s_ann, int flags) } else { - size_t i; + unsigned i; + tree al; /* The variable is aliased. Add its aliases to the virtual operands. */ - gcc_assert (VARRAY_ACTIVE_SIZE (aliases) != 0); + gcc_assert (VEC_length (tree, aliases) != 0); if (flags & opf_is_def) { @@ -1654,8 +1655,8 @@ add_stmt_operand (tree *var_p, stmt_ann_t s_ann, int flags) if (v_ann->is_alias_tag) append_v_may_def (var); - for (i = 0; i < VARRAY_ACTIVE_SIZE (aliases); i++) - append_v_may_def (VARRAY_TREE (aliases, i)); + for (i = 0; VEC_iterate (tree, aliases, i, al); i++) + append_v_may_def (al); } else { @@ -1664,8 +1665,8 @@ add_stmt_operand (tree *var_p, stmt_ann_t s_ann, int flags) if (v_ann->is_alias_tag) append_vuse (var); - for (i = 0; i < VARRAY_ACTIVE_SIZE (aliases); i++) - append_vuse (VARRAY_TREE (aliases, i)); + for (i = 0; VEC_iterate (tree, aliases, i, al); i++) + append_vuse (al); } } } |