aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-12-03 16:20:31 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-12-03 16:20:31 -0800
commit2039d7aaea51db1bcfabe7b8f7b3fda6f198f605 (patch)
treec955f6935acd1dde2f9a2c0e759835c083b1cd04 /gcc/expr.c
parent1b68ae543cfdc2819d365dc59c759e67e34ff4a3 (diff)
downloadgcc-2039d7aaea51db1bcfabe7b8f7b3fda6f198f605.zip
gcc-2039d7aaea51db1bcfabe7b8f7b3fda6f198f605.tar.gz
gcc-2039d7aaea51db1bcfabe7b8f7b3fda6f198f605.tar.bz2
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/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index ec25713..1a43145 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -3810,8 +3810,7 @@ expand_assignment (tree to, tree from)
done for MEM. Also set MEM_KEEP_ALIAS_SET_P if needed. */
if (volatilep)
MEM_VOLATILE_P (to_rtx) = 1;
-
- if (!can_address_p (to))
+ if (component_uses_parent_alias_set (to))
MEM_KEEP_ALIAS_SET_P (to_rtx) = 1;
}