From 40ad260d6c729000531186ed0ae7f572f11052b6 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 12 Jun 2015 11:06:27 +0200 Subject: [PATCH] emit-rtl.c (need_atomic_barrier_p): Mask model with MEMMODEL_BASE_MASK. * emit-rtl.c (need_atomic_barrier_p): Mask model with MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases. From-SVN: r224410 --- gcc/ChangeLog | 5 +++++ gcc/emit-rtl.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3504194eca4..9949703612e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-12 Uros Bizjak + + * emit-rtl.c (need_atomic_barrier_p): Mask model with + MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases. + 2015-06-11 David Edelsohn * dbxout.c (xcoff_debug_hooks): Provide a function for diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 7d3feb13b1d..e064d4ece10 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -6315,20 +6315,17 @@ insn_location (const rtx_insn *insn) bool need_atomic_barrier_p (enum memmodel model, bool pre) { - switch (model & MEMMODEL_MASK) + switch (model & MEMMODEL_BASE_MASK) { case MEMMODEL_RELAXED: case MEMMODEL_CONSUME: return false; case MEMMODEL_RELEASE: - case MEMMODEL_SYNC_RELEASE: return pre; case MEMMODEL_ACQUIRE: - case MEMMODEL_SYNC_ACQUIRE: return !pre; case MEMMODEL_ACQ_REL: case MEMMODEL_SEQ_CST: - case MEMMODEL_SYNC_SEQ_CST: return true; default: gcc_unreachable (); -- 2.30.2