re PR libstdc++/51102 (missing macros in <atomic>)

2011-11-16  Andrew MacLeod  <amacleod@redhat.com>

	PR libstdc++/51102
	* include/bits/atomic_base.h (ATOMIC_BOOL_LOCK_FREE,
	ATOMIC_POINTER_LOCK_FREE): New. Add missing macros.

From-SVN: r181414
This commit is contained in:
Andrew MacLeod 2011-11-16 15:43:15 +00:00 committed by Andrew Macleod
parent 1a4571cb56
commit 3b04e1e4c4
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-11-16 Andrew MacLeod <amacleod@redhat.com>
PR libstdc++/51102
* include/bits/atomic_base.h (ATOMIC_BOOL_LOCK_FREE,
ATOMIC_POINTER_LOCK_FREE): New. Add missing macros.
2011-11-15 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/51142

View File

@ -93,6 +93,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define LOCKFREE_PROP(T) (__atomic_always_lock_free (sizeof (T), 0) ? 2 : 1)
#define ATOMIC_BOOL_LOCK_FREE LOCKFREE_PROP (bool)
#define ATOMIC_CHAR_LOCK_FREE LOCKFREE_PROP (char)
#define ATOMIC_CHAR16_T_LOCK_FREE LOCKFREE_PROP (char16_t)
#define ATOMIC_CHAR32_T_LOCK_FREE LOCKFREE_PROP (char32_t)
@ -101,7 +102,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define ATOMIC_INT_LOCK_FREE LOCKFREE_PROP (int)
#define ATOMIC_LONG_LOCK_FREE LOCKFREE_PROP (long)
#define ATOMIC_LLONG_LOCK_FREE LOCKFREE_PROP (long long)
#define ATOMIC_POINTER_LOCK_FREE LOCKFREE_PROP (void *)
// Base types for atomics.
template<typename _IntTp>