diff options
author | Jonathan Wakely <redi@gcc.gnu.org> | 2015-09-17 16:46:04 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-09-17 16:46:04 +0100 |
commit | 310055e7b481eb86318dc75dcf67f4091e395757 (patch) | |
tree | 1f0c51ea5f77e0d267433e5aeeec1b8ac770b3b8 /libbacktrace/posix.c | |
parent | 308fbc42903ba2f97c29eea52928802686a917f1 (diff) | |
download | gcc-310055e7b481eb86318dc75dcf67f4091e395757.zip gcc-310055e7b481eb86318dc75dcf67f4091e395757.tar.gz gcc-310055e7b481eb86318dc75dcf67f4091e395757.tar.bz2 |
Handle alignment in __atomic_is_lock_free
gcc:
2015-09-17 Richard Henderson <rth@redhat.com>
PR libstdc++/65913
* builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
pointers that encode the alignment of the object.
libstdc++-v3:
2015-09-17 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/65913
* include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
__atomic_base<_PTp*>::is_lock_free()): Call the built-in with the
immediate pointer value, not a variable.
* include/std/atomic (atomic<T>::is_lock_free()): Likewise.
* testsuite/29_atomics/atomic/65913.cc: New.
From-SVN: r227878
Diffstat (limited to 'libbacktrace/posix.c')
0 files changed, 0 insertions, 0 deletions