Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/boost/config/compiler/clang.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,3 +351,11 @@
// 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

#if defined(__clang__) && !defined(_MSC_VER)
# define BOOST_ATTRIBUTE_MALLOC_FUNCTION __attribute__ ((malloc))
#endif

8 changes: 7 additions & 1 deletion include/boost/config/compiler/gcc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -373,3 +373,9 @@
# endif
#endif

#if (BOOST_GCC_VERSION >= 40800)
# define BOOST_ATTRIBUTE_TARGET(isa) __attribute__ ((target(isa)))
#endif

#define BOOST_ATTRIBUTE_MALLOC_FUNCTION __attribute__ ((malloc))

5 changes: 5 additions & 0 deletions include/boost/config/compiler/visualc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,8 @@
// BOOST_PRAGMA_MESSAGE("Info: Boost.Config is older than your compiler version - probably nothing bad will happen - but you may wish to look for an updated Boost version. Define BOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE to suppress this message.")
# endif
#endif


#if defined(_MSC_VER)
# define BOOST_ATTRIBUTE_MALLOC_FUNCTION __declspec(restrict)
#endif