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.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.c')
-rw-r--r-- | gcc/tree-ssa.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index 2cd6412..f6924b3 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -381,15 +381,14 @@ verify_flow_insensitive_alias_info (void) { size_t j; var_ann_t ann; - varray_type may_aliases; + VEC(tree,gc) *may_aliases; + tree alias; ann = var_ann (var); may_aliases = ann->may_aliases; - for (j = 0; may_aliases && j < VARRAY_ACTIVE_SIZE (may_aliases); j++) + for (j = 0; VEC_iterate (tree, may_aliases, j, alias); j++) { - tree alias = VARRAY_TREE (may_aliases, j); - bitmap_set_bit (visited, DECL_UID (alias)); if (!may_be_aliased (alias)) @@ -545,13 +544,12 @@ verify_name_tags (void) if (tmt) { size_t i; - varray_type aliases = var_ann (tmt)->may_aliases; + VEC(tree,gc) *aliases = var_ann (tmt)->may_aliases; + tree alias; + bitmap_clear (type_aliases); - for (i = 0; aliases && i < VARRAY_ACTIVE_SIZE (aliases); i++) - { - tree alias = VARRAY_TREE (aliases, i); - bitmap_set_bit (type_aliases, DECL_UID (alias)); - } + for (i = 0; VEC_iterate (tree, aliases, i, alias); i++) + bitmap_set_bit (type_aliases, DECL_UID (alias)); /* When grouping, we may have added PTR's type tag into the alias set of PTR's name tag. To prevent a false |