diff options
author | Richard Henderson <rth@redhat.com> | 2004-12-03 16:20:31 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-12-03 16:20:31 -0800 |
commit | 2039d7aaea51db1bcfabe7b8f7b3fda6f198f605 (patch) | |
tree | c955f6935acd1dde2f9a2c0e759835c083b1cd04 /gcc/emit-rtl.c | |
parent | 1b68ae543cfdc2819d365dc59c759e67e34ff4a3 (diff) | |
download | gcc-2039d7aaea51db1bcfabe7b8f7b3fda6f198f605.tar.gz |
alias.c (component_uses_parent_alias_set): Rename from can_address_p.
* alias.c (component_uses_parent_alias_set): Rename from
can_address_p. Return bool. Reverse the sense of the result.
Reinstate the check for alias set zero.
(get_alias_set): Update to match.
* alias.h (component_uses_parent_alias_set): Likewise.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
* expr.c (expand_assignment): Likewise.
* expr.h: Remove commented out prototypes that were moved to alias.h.
From-SVN: r91712
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index d722f90ad69..6858f987ad6 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1546,9 +1546,9 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, || TREE_CODE (t) == SAVE_EXPR) t = TREE_OPERAND (t, 0); - /* If this expression can't be addressed (e.g., it contains a reference - to a non-addressable field), show we don't change its alias set. */ - if (! can_address_p (t)) + /* If this expression uses it's parent's alias set, mark it such + that we won't change it. */ + if (component_uses_parent_alias_set (t)) MEM_KEEP_ALIAS_SET_P (ref) = 1; /* If this is a decl, set the attributes of the MEM from it. */ |