This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] libstdc++/65913 Handle alignment in __atomic_is_lock_free
- From: Richard Henderson <rth at redhat dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 17 Sep 2015 08:32:09 -0700
- Subject: Re: [patch] libstdc++/65913 Handle alignment in __atomic_is_lock_free
- Authentication-results: sourceware.org; auth=none
- References: <20150917140457 dot GA2969 at redhat dot com>
On 09/17/2015 07:04 AM, Jonathan Wakely wrote:
> 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.
Yes, this is ok.
r~