Avoid nonconst memmodels in libitm's local outdated copy of <atomic> too
authorAndi Kleen <ak@gcc.gnu.org>
Sun, 24 Mar 2013 00:23:20 +0000 (00:23 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Sun, 24 Mar 2013 00:23:20 +0000 (00:23 +0000)
commitb01819be5d7c47c4682dbb250c124e58bd2c1c9e
tree9e5d5cde21eb5d22f37f3b5dee6ea682b2f1f929
parent94f3ccc8d92b9225626e1f69c31b8cc9d109f74d
Avoid nonconst memmodels in libitm's local outdated copy of <atomic> too

This avoids warnings in libitm for non constant memory models,
fixing the bootstrap with -Werror

Passed bootstrap and test on x86_64-linux.

libitm/:

2013-03-23  Andi Kleen  <andi@my.domain.org>

* local_atomic (__always_inline): Add.
(__calculate_memory_order, atomic_thread_fence,
 atomic_signal_fence, test_and_set, clear, store, load,
         exchange, compare_exchange_weak, compare_exchange_strong,
         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
Add __always_inline to force inlining.

From-SVN: r197018
libitm/local_atomic