diff options
author | Richard Guenther <rguenther@suse.de> | 2007-10-28 16:14:44 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-10-28 16:14:44 +0000 |
commit | eee717aa54264d9a11d842c4545384620227f0e4 (patch) | |
tree | ad9578908d462a27a5795ed5dbda0412a831ec1b /gcc/tree-ssa-structalias.c | |
parent | e85b4fa7b56003e26a98c54247d79365b740bb6d (diff) | |
download | gcc-eee717aa54264d9a11d842c4545384620227f0e4.zip gcc-eee717aa54264d9a11d842c4545384620227f0e4.tar.gz gcc-eee717aa54264d9a11d842c4545384620227f0e4.tar.bz2 |
tree-flow.h (subvar_t): Make it a VEC.
2007-10-28 Richard Guenther <rguenther@suse.de>
* tree-flow.h (subvar_t): Make it a VEC.
(struct subvar): Remove.
(struct var_ann_d): Use VEC(tree,gc) to store subvars.
* tree-flow-inline.h (get_subvar_at): Adjust iterators over
variable subvars.
* tree-into-ssa.c (mark_sym_for_renaming): Likewise.
* tree-nrv.c (dest_safe_for_nrv_p): Likewise.
* tree-ssa-alias.c (mark_aliases_call_clobbered): Likewise.
(set_initial_properties): Likewise.
(setup_pointers_and_addressables): Likewise.
(new_type_alias): Likewise.
(create_overlap_variables_for): Likewise.
* tree-dfa.c (dump_subvars_for): Likewise.
* tree-ssa-operands.c (add_vars_for_offset): Likewise.
(get_expr_operands): Likewise.
(add_to_addressable_set): Likewise.
* tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
* gcc.dg/tree-ssa/alias-15.c: Adjust pattern.
From-SVN: r129699
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index a99839c..0212499 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4702,7 +4702,6 @@ set_uids_in_ptset (tree ptr, bitmap into, bitmap from, bool is_derefed, { unsigned int i; bitmap_iterator bi; - subvar_t sv; alias_set_type ptr_alias_set = get_alias_set (TREE_TYPE (ptr)); EXECUTE_IF_SET_IN_BITMAP (from, 0, i, bi) @@ -4717,10 +4716,14 @@ set_uids_in_ptset (tree ptr, bitmap into, bitmap from, bool is_derefed, if (vi->has_union && get_subvars_for_var (vi->decl) != NULL) { + unsigned int i; + tree subvar; + subvar_t sv = get_subvars_for_var (vi->decl); + /* Variables containing unions may need to be converted to their SFT's, because SFT's can have unions and we cannot. */ - for (sv = get_subvars_for_var (vi->decl); sv; sv = sv->next) - bitmap_set_bit (into, DECL_UID (sv->var)); + for (i = 0; VEC_iterate (tree, sv, i, subvar); ++i) + bitmap_set_bit (into, DECL_UID (subvar)); } else if (TREE_CODE (vi->decl) == VAR_DECL || TREE_CODE (vi->decl) == PARM_DECL |