Skip to content

Commit

Permalink
Disable forceinline with Clang, see llvm/llvm-project#62202
Browse files Browse the repository at this point in the history
  • Loading branch information
igaztanaga committed Apr 18, 2023
1 parent 1014e97 commit aec1f8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/boost/intrusive/detail/workaround.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
#elif defined(BOOST_MSVC) && (_MSC_VER < 1900 || defined(_DEBUG))
//"__forceinline" and MSVC seems to have some bugs in old versions and in debug mode
#define BOOST_INTRUSIVE_FORCEINLINE inline
#elif defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__))
#elif defined(BOOST_CLANG) || (defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__)))
//Older GCCs have problems with forceinline
//Clang can have code bloat issues with forceinline, see
//https://lists.boost.org/boost-users/2023/04/91445.php and
//https://github.com/llvm/llvm-project/issues/62202
#define BOOST_INTRUSIVE_FORCEINLINE inline
#else
#define BOOST_INTRUSIVE_FORCEINLINE BOOST_FORCEINLINE
Expand Down

0 comments on commit aec1f8a

Please sign in to comment.