diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-04-17 11:22:07 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-04-17 11:22:07 +0000 |
commit | fc6f94f567e2a982dcba31dab027a49c196febf3 (patch) | |
tree | e92c611aff1949568c16e22a343380f90a7e4aeb /gcc/tree-streamer.c | |
parent | 070edbc29c4f4a716cc6f4d9b038c9f38f9300a0 (diff) | |
download | gcc-fc6f94f567e2a982dcba31dab027a49c196febf3.zip gcc-fc6f94f567e2a982dcba31dab027a49c196febf3.tar.gz gcc-fc6f94f567e2a982dcba31dab027a49c196febf3.tar.bz2 |
tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
* tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
(decl_refs_may_alias_p): Add REF1 and REF2 parameters.
Use nonoverlapping_component_refs_of_decl_p to disambiguate component
references.
(refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
* tree-streamer.c (record_common_node): Adjust reference in comment.
From-SVN: r198024
Diffstat (limited to 'gcc/tree-streamer.c')
-rw-r--r-- | gcc/tree-streamer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-streamer.c b/gcc/tree-streamer.c index f491c4e..f29690f 100644 --- a/gcc/tree-streamer.c +++ b/gcc/tree-streamer.c @@ -267,10 +267,10 @@ record_common_node (struct streamer_tree_cache_d *cache, tree node) /* The FIELD_DECLs of structures should be shared, so that every COMPONENT_REF uses the same tree node when referencing a field. Pointer equality between FIELD_DECLs is used by the alias - machinery to compute overlapping memory references (See - nonoverlapping_component_refs_p). */ - tree f; - for (f = TYPE_FIELDS (node); f; f = TREE_CHAIN (f)) + machinery to compute overlapping component references (see + nonoverlapping_component_refs_p and + nonoverlapping_component_refs_of_decl_p). */ + for (tree f = TYPE_FIELDS (node); f; f = TREE_CHAIN (f)) record_common_node (cache, f); } } |