diff options
author | Richard Guenther <rguenther@suse.de> | 2008-05-09 09:32:51 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-05-09 09:32:51 +0000 |
commit | 31de5b771a7621f2e331e2839e8634dad0c6ee70 (patch) | |
tree | ba1aff86aaec6d938b63ca9a5e6aba055221e3b1 /gcc/tree-flow.h | |
parent | 3ee6cb3f69311ba36ca1faf2a25bb536e0acc038 (diff) | |
download | gcc-31de5b771a7621f2e331e2839e8634dad0c6ee70.zip gcc-31de5b771a7621f2e331e2839e8634dad0c6ee70.tar.gz gcc-31de5b771a7621f2e331e2839e8634dad0c6ee70.tar.bz2 |
tree-flow-inline.h (var_can_have_subvars): Move ...
2008-05-08 Richard Guenther <rguenther@suse.de>
* tree-flow-inline.h (var_can_have_subvars): Move ...
* tree-ssa-structalias.c (var_can_have_subvars): ... here.
* tree-flow.h (var_can_have_subvars): Remove.
(push_fields_onto_fieldstack): Remove.
(sort_fieldstack): Likewise.
(struct fieldoff): Move ...
* tree-ssa-structalias.c (struct fieldoff): ... here. Remove
alias_set and base_for_components fields.
(sort_fieldstack): Make static.
(push_fields_onto_fieldstack): Likewise. Remove code that
handles anything but RECORD_TYPEs. Remove alias_set and
base_for_components handling.
(create_variable_info_for): Adjust.
From-SVN: r135110
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r-- | gcc/tree-flow.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index fa1522b..848a9d9 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -854,7 +854,6 @@ static inline bool ref_contains_array_ref (const_tree); static inline bool array_ref_contains_indirect_ref (const_tree); extern tree get_ref_base_and_extent (tree, HOST_WIDE_INT *, HOST_WIDE_INT *, HOST_WIDE_INT *); -static inline bool var_can_have_subvars (const_tree); extern tree create_tag_raw (enum tree_code, tree, const char *); extern void delete_mem_ref_stats (struct function *); extern void dump_mem_ref_stats (FILE *); @@ -1169,39 +1168,6 @@ rtx addr_for_mem_ref (struct mem_address *, bool); void get_address_description (tree, struct mem_address *); tree maybe_fold_tmr (tree); -/* This structure is used during pushing fields onto the fieldstack - to track the offset of the field, since bitpos_of_field gives it - relative to its immediate containing type, and we want it relative - to the ultimate containing object. */ - -struct fieldoff -{ - /* Type of the field. */ - tree type; - - /* Size, in bits, of the field. */ - tree size; - - /* Field. */ - tree decl; - - /* Offset from the base of the base containing object to this field. */ - HOST_WIDE_INT offset; - - /* Alias set for the field. */ - alias_set_type alias_set; - - /* True, if this offset can be a base for further component accesses. */ - unsigned base_for_components : 1; -}; -typedef struct fieldoff fieldoff_s; - -DEF_VEC_O(fieldoff_s); -DEF_VEC_ALLOC_O(fieldoff_s,heap); -int push_fields_onto_fieldstack (tree, VEC(fieldoff_s,heap) **, - HOST_WIDE_INT, bool *, tree); -void sort_fieldstack (VEC(fieldoff_s,heap) *); - void init_alias_heapvars (void); void delete_alias_heapvars (void); unsigned int execute_fixup_cfg (void); |