diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-13 15:20:40 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-13 15:20:40 +0000 |
commit | 18346ecd861dc66e71dafe48ff216cfa4dc95a21 (patch) | |
tree | b04ec56bade931807b6ed40c6d251c05aa588f0b /gcc/tree-flow.h | |
parent | 62e369b3a7e2a62037d4b22f55f96530b76bb9f8 (diff) | |
download | gcc-18346ecd861dc66e71dafe48ff216cfa4dc95a21.tar.gz |
pr 33870
* tree.h (strcut tree_memory_tag): add field unpartitionable.
remove field in_nested_struct.
(struct tree_struct_field_tag): add field nesting_level.
(sft_in_nested_struct): remove.
(sft_nesting_level): define.
(sft_unpartitionable_p): define.
* tree-ssa-alias.c (mem_sym_score): if mp->var is not
partitionable, return long_max.
(compute_memory_partitions): do not partition sfts marked
unpartitionable.
(create_sft): add argument nesting_level. set
sft_nesting_level with it. update all users.
(create_overlap_variables_for): show nesting level.
* tree-dfa.c (dump_subvars_for): likewise.
(dump_variable): likewise.
show whether the sft is partitionable or not.
* tree-flow.h (struct fieldoff): remove field
in_nested_struct.
add field nesting_level.
* tree-ssa-structalias.c (struct variable_info): remove
field in_nested_struct.
(push_fields_onto_fieldstack): add argument
nesting_level. update all users.
update documentation.
update pair->nesting_level with nesting_level.
make recursive calls with nesting_level + 1.
(set_uids_in_ptset): if an sft is added to the points-to
set, mark it as unpartitionable.
* tree-ssa-operands.c (ref_nesting_level): new.
(add_vars_for_offset): call it.
add argument full_ref. update
callers.
if var is inside a nested structure and the nesting level
of full_ref is lower than the nesting level of var,
adjust offset by the offset of var.
testsuite/ChangeLog
PR 33870
* gcc.c-torture/execute/pr33870-1.c: New test.
* gcc.dg/tree-ssa/alias-16.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130141 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r-- | gcc/tree-flow.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 02e9543dd68..83761951859 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -1159,9 +1159,9 @@ struct fieldoff /* Field. */ tree decl; - /* True if this field is inside a structure nested inside the base - containing object. */ - unsigned int in_nested_struct : 1; + /* Nesting level. This number represents how many structures are + wrapping this field. */ + unsigned nesting_level; /* Offset from the base of the base containing object to this field. */ HOST_WIDE_INT offset; @@ -1173,8 +1173,8 @@ 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); +int push_fields_onto_fieldstack (tree, VEC(fieldoff_s,heap) **, HOST_WIDE_INT, + bool *, tree, unsigned); void sort_fieldstack (VEC(fieldoff_s,heap) *); void init_alias_heapvars (void); |