diff options
author | Abseil Team <absl-team@google.com> | 2024-01-22 09:09:23 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-01-22 09:10:07 -0800 |
commit | f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9 (patch) | |
tree | d910edc3792d77c3eb1bd4bd52bc06f81be9480e /absl/base | |
parent | b21b4898f9f4b967d5faa27f3e090535c4de1422 (diff) | |
download | abseil-f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9.tar.gz abseil-f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9.tar.bz2 abseil-f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9.zip |
Remove code pieces for no longer supported GCC versions.
The minimum supported version today is GCC 7 (`__GNUC__ >= 7`).
PiperOrigin-RevId: 600475215
Change-Id: I1aa46384f1e75f268649a48dbe2b42f3475bb07f
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/config.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/absl/base/config.h b/absl/base/config.h index 0fb66927..5fa9f0ef 100644 --- a/absl/base/config.h +++ b/absl/base/config.h @@ -379,9 +379,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' || #define ABSL_HAVE_EXCEPTIONS 1 #endif // defined(__EXCEPTIONS) && ABSL_HAVE_FEATURE(cxx_exceptions) // Handle remaining special cases and default to exceptions being supported. -#elif !(defined(__GNUC__) && (__GNUC__ < 5) && !defined(__EXCEPTIONS)) && \ - !(ABSL_INTERNAL_HAVE_MIN_GNUC_VERSION(5, 0) && \ - !defined(__cpp_exceptions)) && \ +#elif !(defined(__GNUC__) && !defined(__cpp_exceptions)) && \ !(defined(_MSC_VER) && !defined(_CPPUNWIND)) #define ABSL_HAVE_EXCEPTIONS 1 #endif @@ -902,9 +900,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' || #error ABSL_INTERNAL_HAS_CXA_DEMANGLE cannot be directly set #elif defined(OS_ANDROID) && (defined(__i386__) || defined(__x86_64__)) #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 0 -#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && \ - (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)) && \ - !defined(__mips__) +#elif defined(__GNUC__) && !defined(__mips__) #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1 #elif defined(__clang__) && !defined(_MSC_VER) #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1 |