aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-10-28 16:14:44 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-10-28 16:14:44 +0000
commiteee717aa54264d9a11d842c4545384620227f0e4 (patch)
treead9578908d462a27a5795ed5dbda0412a831ec1b /gcc/tree-flow.h
parente85b4fa7b56003e26a98c54247d79365b740bb6d (diff)
downloadgcc-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-flow.h')
-rw-r--r--gcc/tree-flow.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h
index 1d6808b..6e7b88b 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -308,18 +308,7 @@ enum noalias_state {
};
-struct subvar;
-typedef struct subvar *subvar_t;
-
-/* This structure represents a fake sub-variable for a structure field. */
-struct subvar GTY(())
-{
- /* Fake variable. */
- tree var;
-
- /* Next subvar for this structure. */
- subvar_t next;
-};
+typedef VEC(tree,gc) *subvar_t;
struct var_ann_d GTY(())
{
@@ -384,9 +373,9 @@ struct var_ann_d GTY(())
current version of this variable (an SSA_NAME). */
tree current_def;
- /* If this variable is a structure, this fields holds a list of
- symbols representing each of the fields of the structure. */
- subvar_t subvars;
+ /* If this variable is a structure, this fields holds an array
+ of symbols representing each of the fields of the structure. */
+ VEC(tree,gc) *subvars;
/* Mask of values saying the reasons why this variable has escaped
the function. */