aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2013-01-16 08:10:21 +0100
committerUros Bizjak <uros@gcc.gnu.org>2013-01-16 08:10:21 +0100
commit88e784e6c2430ffebd0afd3a31ab6b1f0f5f3ab0 (patch)
tree9477e573e8737008d7fa38034cbb5298d49d4610 /gcc/emit-rtl.c
parent5147bf6a236993578d316dfe7c7e7182da1cdf90 (diff)
downloadgcc-88e784e6c2430ffebd0afd3a31ab6b1f0f5f3ab0.zip
gcc-88e784e6c2430ffebd0afd3a31ab6b1f0f5f3ab0.tar.gz
gcc-88e784e6c2430ffebd0afd3a31ab6b1f0f5f3ab0.tar.bz2
emit-rtl.c (need_atomic_barrier_p): Mask memory model argument with MEMMODEL_MASK before comparing with MEMMODEL_*...
* 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. From-SVN: r195228
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 2987bc9..f997e5d 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: