summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-04 00:20:31 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-04 00:20:31 +0000
commit2b02580fd35fe2f9d9b124e2867eb6c7f3228683 (patch)
treec955f6935acd1dde2f9a2c0e759835c083b1cd04 /gcc/emit-rtl.c
parenta8d2b0c84dad195a2652a8edd7f68cac0ddf183e (diff)
downloadlinaro-gcc-2b02580fd35fe2f9d9b124e2867eb6c7f3228683.tar.gz
linaro-gcc-2b02580fd35fe2f9d9b124e2867eb6c7f3228683.tar.bz2
linaro-gcc-2b02580fd35fe2f9d9b124e2867eb6c7f3228683.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91712 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c6
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. */