2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-02 08:22:08 +00:00

Use BOOST_MAY_ALIAS from Boost.Config.

This commit is contained in:
Andrey Semashev
2017-07-29 16:54:52 +03:00
parent a980d1c3ba
commit bbd32145ef

View File

@@ -85,18 +85,9 @@
// and does not require an explicit markup for types that may alias, we still don't
// enable the optimization for this compiler because at least MSVC-8 and 9 are known
// to generate broken code sometimes when casts are used.
#if defined(__GNUC__) && (!defined(BOOST_INTEL_CXX_VERSION) || (BOOST_INTEL_CXX_VERSION+0) >= 1300)
#define BOOST_ATOMIC_DETAIL_MAY_ALIAS __attribute__((__may_alias__))
#define BOOST_ATOMIC_DETAIL_MAY_ALIAS BOOST_MAY_ALIAS
#if !defined(BOOST_NO_MAY_ALIAS)
#define BOOST_ATOMIC_DETAIL_STORAGE_TYPE_MAY_ALIAS
#elif defined(__has_attribute)
#if __has_attribute(__may_alias__)
#define BOOST_ATOMIC_DETAIL_MAY_ALIAS __attribute__((__may_alias__))
#define BOOST_ATOMIC_DETAIL_STORAGE_TYPE_MAY_ALIAS
#endif
#endif
#if !defined(BOOST_ATOMIC_DETAIL_MAY_ALIAS)
#define BOOST_ATOMIC_DETAIL_MAY_ALIAS
#endif
#if defined(__GCC_ASM_FLAG_OUTPUTS__)