PR79862 check macro for type aliases that depend on <stdint.h>

PR libstdc++/79862
	* include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
	(atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
	(atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
	(atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
	(atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
	(atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
	(atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
	(atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
	(atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
	define.

From-SVN: r247021
This commit is contained in:
Jonathan Wakely 2017-04-20 14:04:28 +01:00 committed by Jonathan Wakely
parent a05dd05f29
commit 1b36f6036e
2 changed files with 21 additions and 5 deletions

View File

@ -1,3 +1,17 @@
2017-04-20 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/79862
* include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
(atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
(atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
(atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
(atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
(atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
(atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
(atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
(atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
define.
2017-04-19 Jonathan Wakely <jwakely@redhat.com> 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/abi.xml: Rephrase one of the references to the * doc/xml/manual/abi.xml: Rephrase one of the references to the

View File

@ -909,7 +909,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// atomic_char32_t /// atomic_char32_t
typedef atomic<char32_t> atomic_char32_t; typedef atomic<char32_t> atomic_char32_t;
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS
// 2441. Exact-width atomic typedefs should be provided // 2441. Exact-width atomic typedefs should be provided
@ -986,6 +986,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// atomic_uint_fast64_t /// atomic_uint_fast64_t
typedef atomic<uint_fast64_t> atomic_uint_fast64_t; typedef atomic<uint_fast64_t> atomic_uint_fast64_t;
#endif
/// atomic_intptr_t /// atomic_intptr_t
@ -997,15 +998,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// atomic_size_t /// atomic_size_t
typedef atomic<size_t> atomic_size_t; typedef atomic<size_t> atomic_size_t;
/// atomic_ptrdiff_t
typedef atomic<ptrdiff_t> atomic_ptrdiff_t;
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
/// atomic_intmax_t /// atomic_intmax_t
typedef atomic<intmax_t> atomic_intmax_t; typedef atomic<intmax_t> atomic_intmax_t;
/// atomic_uintmax_t /// atomic_uintmax_t
typedef atomic<uintmax_t> atomic_uintmax_t; typedef atomic<uintmax_t> atomic_uintmax_t;
#endif
/// atomic_ptrdiff_t
typedef atomic<ptrdiff_t> atomic_ptrdiff_t;
// Function definitions, atomic_flag operations. // Function definitions, atomic_flag operations.
inline bool inline bool