summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-31 22:33:27 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-31 22:33:27 +0000
commitbd1da57219ac371290d66a58c94684dab603f8c9 (patch)
tree7a54f68f40da5d4089bf05ab977f9c2efd916da1 /gcc
parent1ec025e4c46cd472228d777d78efdb49b9511505 (diff)
downloadppe42-gcc-bd1da57219ac371290d66a58c94684dab603f8c9.tar.gz
ppe42-gcc-bd1da57219ac371290d66a58c94684dab603f8c9.zip
* config/s390/s390.c (init_alignment_context): Set
ALIAS_SET_MEMORY_BARRIER on the MEM. * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110451 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/s390/s390.c1
-rw-r--r--gcc/config/sparc/sparc.c1
3 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ba74dcb3332..91058eaa8a5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-31 Jakub Jelinek <jakub@redhat.com>
+
+ * config/s390/s390.c (init_alignment_context): Set
+ ALIAS_SET_MEMORY_BARRIER on the MEM.
+ * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
+
2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
PR middle-end/25933
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 37a038d3205..5d80d50383f 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -4035,6 +4035,7 @@ init_alignment_context (struct alignment_context *ac, rtx mem,
/* Generate MEM. */
ac->memsi = gen_rtx_MEM (SImode, align);
MEM_VOLATILE_P (ac->memsi) = MEM_VOLATILE_P (mem);
+ set_mem_alias_set (ac->memsi, ALIAS_SET_MEMORY_BARRIER);
set_mem_align (ac->memsi, GET_MODE_BITSIZE (SImode));
/* Calculate shiftcount. */
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index ee75e2007d6..f311247c8f6 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -8736,6 +8736,7 @@ sparc_expand_compare_and_swap_12 (rtx result, rtx mem, rtx oldval, rtx newval)
gen_rtx_AND (SImode, addr1, GEN_INT (3))));
memsi = gen_rtx_MEM (SImode, addr);
+ set_mem_alias_set (memsi, ALIAS_SET_MEMORY_BARRIER);
MEM_VOLATILE_P (memsi) = MEM_VOLATILE_P (mem);
val = force_reg (SImode, memsi);
OpenPOWER on IntegriCloud