[Bug libstdc++/65033] C++11 atomics: is_lock_free result does not always match the real lock-free property
rth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 26 18:47:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65033
--- Comment #7 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Thu Mar 26 18:31:11 2015
New Revision: 221701
URL: https://gcc.gnu.org/viewcvs?rev=221701&root=gcc&view=rev
Log:
PR libstdc++/65033
* include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
a fake pointer indicating type alignment.
(__atomic_base<T *>::is_lock_free): Likewise.
* include/std/atomic (atomic<T>::is_lock_free): Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/atomic_base.h
trunk/libstdc++-v3/include/std/atomic
More information about the Gcc-bugs
mailing list