aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
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;
}