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, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index e9cd6eb..cbe46dd 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -4408,7 +4408,8 @@ store_constructor (exp, target, align, cleared, size)
#endif
store_constructor_field (to_rtx, bitsize, bitpos, mode,
TREE_VALUE (elt), type, align, cleared,
- DECL_NONADDRESSABLE_P (field)
+ (DECL_NONADDRESSABLE_P (field)
+ && GET_CODE (to_rtx) == MEM)
? MEM_ALIAS_SET (to_rtx)
: get_alias_set (TREE_TYPE (field)));
}