[libcxx-commits] [libcxx] 8079f8a - [libc++] Simplify conditional in __config for _LIBCPP_NO_RTTI
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 16 09:52:33 PDT 2020
Author: Louis Dionne
Date: 2020-04-16T12:51:30-04:00
New Revision: 8079f8a7e8b1c84759b19a63ad54ff83e94f4c33
URL: https://github.com/llvm/llvm-project/commit/8079f8a7e8b1c84759b19a63ad54ff83e94f4c33
DIFF: https://github.com/llvm/llvm-project/commit/8079f8a7e8b1c84759b19a63ad54ff83e94f4c33.diff
LOG: [libc++] Simplify conditional in __config for _LIBCPP_NO_RTTI
We don't support GCC's older than 5.x anymore.
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index ce7a9354c50a..51b2a64901d9 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1106,12 +1106,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
// Try to find out if RTTI is disabled.
// g++ and cl.exe have RTTI on by default and define a macro when it is.
-// g++ only defines the macro in 4.3.2 and onwards.
#if !defined(_LIBCPP_NO_RTTI)
-# if defined(__GNUC__) && \
- ((__GNUC__ >= 5) || \
- (__GNUC__ == 4 && (__GNUC_MINOR__ >= 3 || __GNUC_PATCHLEVEL__ >= 2))) && \
- !defined(__GXX_RTTI)
+# if defined(__GNUC__) && !defined(__GXX_RTTI)
# define _LIBCPP_NO_RTTI
# elif defined(_LIBCPP_COMPILER_MSVC) && !defined(_CPPRTTI)
# define _LIBCPP_NO_RTTI
More information about the libcxx-commits
mailing list