From ac065b9ff03054a450b665b8efb3108335ba263b Mon Sep 17 00:00:00 2001 From: grahams Date: Thu, 23 Nov 2000 20:15:36 +0000 Subject: [PATCH] * expr.c (store_constructor): If a field is non addressable and the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37700 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8eb3705398..df496a0fe73 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-23 Graham Stott + + * expr.c (store_constructor): If a field is non addressable and + the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set. + 2000-11-23 Bernd Schmidt * flow.c (print_rtl_and_abort): New function. diff --git a/gcc/expr.c b/gcc/expr.c index e9cd6eb9002..cbe46dd9558 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))); } -- 2.11.4.GIT