aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGraham Stott <grahams@redhat.com>2000-11-23 20:15:36 +0000
committerGraham Stott <grahams@gcc.gnu.org>2000-11-23 20:15:36 +0000
commit963a2a84a43944cc439ac9a6955333f9e2a3f289 (patch)
treebdd8754acec1cef658e924d91de6211b38ed0d93 /gcc
parentf9b697bfa12e6916716d10c0c842ff2007dae213 (diff)
downloadgcc-963a2a84a43944cc439ac9a6955333f9e2a3f289.zip
gcc-963a2a84a43944cc439ac9a6955333f9e2a3f289.tar.gz
gcc-963a2a84a43944cc439ac9a6955333f9e2a3f289.tar.bz2
expr.c (store_constructor): If a field is non addressable and the target is a MEM use MEM_ALIAS_SET...
* 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. From-SVN: r37700
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b8eb370..df496a0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-23 Graham Stott <grahams@redhat.com>
+
+ * 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 <bernds@redhat.co.uk>
* flow.c (print_rtl_and_abort): New function.
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)));
}