]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid nonconst memmodels in libitm's local outdated copy of <atomic> too
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Mar 2013 00:23:20 +0000 (00:23 +0000)
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Mar 2013 00:23:20 +0000 (00:23 +0000)
commit07cd3fe762c92eaab389729e2a8b74525f5346f0
tree9e5d5cde21eb5d22f37f3b5dee6ea682b2f1f929
parente411626fc6e4e9b5e3367f40e88be6bb34b32d09
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197018 138bc75d-0d04-0410-961f-82ee72b054a4
libitm/local_atomic