* emit-rtl.c (need_atomic_barrier_p): Mask model with
MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
From-SVN: r224410
+2015-06-12 Uros Bizjak <ubizjak@gmail.com>
+
+ * emit-rtl.c (need_atomic_barrier_p): Mask model with
+ MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
+
2015-06-11 David Edelsohn <dje.gcc@gmail.com>
* dbxout.c (xcoff_debug_hooks): Provide a function for
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 ();