diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 9d8ba7d71..148178859 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -351,3 +351,6 @@ // Macro used to identify the Clang compiler. #define BOOST_CLANG 1 +#if (__clang_major__ >= 4 || (__clang_major__ >= 3 && __clang_minor__ >= 8)) +# define BOOST_ATTRIBUTE_TARGET(isa) __attribute__ ((target(isa))) +#endif diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index da1a43229..624bd3ccb 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -242,7 +242,7 @@ // C++0x features in 4.7.n and later // #if (BOOST_GCC_VERSION < 40700) || !defined(BOOST_GCC_CXX11) -// Note that while constexpr is partly supported in gcc-4.6 it's a +// Note that while constexpr is partly supported in gcc-4.6 it's a // pre-std version with several bugs: # define BOOST_NO_CXX11_CONSTEXPR # define BOOST_NO_CXX11_FINAL @@ -373,3 +373,6 @@ # endif #endif +#if (BOOST_GCC_VERSION >= 40800) +# define BOOST_ATTRIBUTE_TARGET(isa) __attribute__ ((target(isa))) +#endif