aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2013-01-16 07:10:21 +0000
committerUros Bizjak <ubizjak@gmail.com>2013-01-16 07:10:21 +0000
commit60b23681216238ac6ff72bf3aff574b5afc41e02 (patch)
tree9477e573e8737008d7fa38034cbb5298d49d4610 /gcc/emit-rtl.c
parent3b6c9e8be870c941053d4d082edd4f40f950cf44 (diff)
* emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
with MEMMODEL_MASK before comparing with MEMMODEL_* memory types. * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto. (expand_mem_thread_fence): Ditto. (expand_mem_signal_fence): Ditto. (expand_atomic_load): Ditto. (expand_atomic_store): Ditto. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@195228 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 2987bc9bb88..f997e5d319b 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -6019,7 +6019,7 @@ insn_file (const_rtx insn)
bool
need_atomic_barrier_p (enum memmodel model, bool pre)
{
- switch (model)
+ switch (model & MEMMODEL_MASK)
{
case MEMMODEL_RELAXED:
case MEMMODEL_CONSUME: