Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target attribute definition #338

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions include/boost/config/compiler/clang.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 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,6 @@
# endif
#endif

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