On 01/15/2013 12:09 AM, Uros Bizjak wrote:
2013-01-15 Uros Bizjak
* 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
Uros Bizjak writes:
>
> 2013-01-15 Uros Bizjak
>
> * 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_f
Hello!
Attached fairly mechanical patch adds missing memory model argument
masks when comparing comparing with various MEMMODEL_* types. Please
note that we can modify the memory model with target flags, IX86_HLE_*
in case of x86.
Also, please note that this patch doesn't touch tsan.c.
2013-01-1