gcc/libstdc++-v3/testsuite/29_atomics
Jonathan Wakely 02adf63fd9 Backport PR libstdc++/65913 fix from mainline.
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: r228615
2015-10-08 17:54:23 +01:00
..
atomic Backport PR libstdc++/65913 fix from mainline. 2015-10-08 17:54:23 +01:00
atomic_flag [PATCH][libstc++v3]Add new dg-require-thread-fence directive. 2015-05-07 11:58:16 +00:00
atomic_integral re PR libstdc++/65147 (alignment of std::atomic object is not correct) 2015-04-09 12:15:44 +01:00
headers/atomic Update copyright years. 2015-01-05 13:33:28 +01:00