diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2005-12-19 20:13:21 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2005-12-19 19:13:21 +0000 |
commit | 780e37d3707df53431bda25acc03a29dd9ae9a0b (patch) | |
tree | 0c8732c81e7c0d6f68cff04366bf2a4b0314e4d3 /gcc/tree-ssa-operands.c | |
parent | b214e1e755e5cf41850818e8b214f5985c3209b4 (diff) | |
download | gcc-780e37d3707df53431bda25acc03a29dd9ae9a0b.zip gcc-780e37d3707df53431bda25acc03a29dd9ae9a0b.tar.gz gcc-780e37d3707df53431bda25acc03a29dd9ae9a0b.tar.bz2 |
tree-flow.h (struct var_ann_d): Change type of may_aliases field to VEC(tree, gc) *.
* 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.
From-SVN: r108804
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 674e9ce..236db30 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); } } } |