diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2015-06-12 11:06:27 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2015-06-12 11:06:27 +0200 |
commit | 40ad260d6c729000531186ed0ae7f572f11052b6 (patch) | |
tree | 42d9c6e3b36a2c57729b2d76137ca82d0b2b70d8 /gcc/emit-rtl.c | |
parent | 44c42705d0210d2759aa76de325fbfede5905d53 (diff) | |
download | gcc-40ad260d6c729000531186ed0ae7f572f11052b6.zip gcc-40ad260d6c729000531186ed0ae7f572f11052b6.tar.gz gcc-40ad260d6c729000531186ed0ae7f572f11052b6.tar.bz2 |
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
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 7d3feb1..e064d4e 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 (); |