re PR libstdc++/54005 (Use __atomic_always_lock_free in libstdc++ is_lock_free instea...
authorHans-Peter Nilsson <hp@axis.com>
Sun, 11 Nov 2018 22:20:19 +0000 (22:20 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sun, 11 Nov 2018 22:20:19 +0000 (22:20 +0000)
commit63100c54335ac179337b6efff89243c75124b1a3
treeab9e784bb5df4f4654a2660d7fc40012ea892d22
parent6157c37500dd889e46ded9a8eb357de9a71de0eb
re PR libstdc++/54005 (Use __atomic_always_lock_free in libstdc++ is_lock_free instead of __atomic_is_lock_free)

PR libstdc++-v3/54005
* include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
__atomic_base<_PTp*>::is_lock_free()): Call __atomic_always_lock_free
with the type-derived _S_alignment instead of __alignof the object.
* include/std/atomic (atomic<T>::is_lock_free()): Likewise.

From-SVN: r266018
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_base.h
libstdc++-v3/include/std/atomic