diff options
author | Eric Fiselier <eric@efcs.ca> | 2019-04-11 17:16:35 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2019-04-11 17:16:35 +0000 |
commit | f32463848b6f3388facfaedddd5cc7139194e1ac (patch) | |
tree | 649f9581a937094f79c44c44de7a970dd3e238bf /libcxxabi/include | |
parent | 339594e4dc10e91dca9e408dc37ee40932271726 (diff) | |
download | llvm-f32463848b6f3388facfaedddd5cc7139194e1ac.tar.gz |
Fix PR41465 - Use __builtin_mul_overflow instead of hand-rolled check.
On ARM the hand-rolled check causes a call to __aeabi_uidiv,
which we may not have a definition for.
Using the builtin avoids the generation of any library call.
llvm-svn: 358195
Diffstat (limited to 'libcxxabi/include')
-rw-r--r-- | libcxxabi/include/__cxxabi_config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxxabi/include/__cxxabi_config.h b/libcxxabi/include/__cxxabi_config.h index fb247308c504..1e0edcab88e2 100644 --- a/libcxxabi/include/__cxxabi_config.h +++ b/libcxxabi/include/__cxxabi_config.h @@ -61,6 +61,8 @@ #if defined(__clang__) #define _LIBCXXABI_COMPILER_CLANG +#elif defined(__GNUC__) +#define _LIBCXXABI_COMPILER_GCC #endif #if __has_attribute(__no_sanitize__) && defined(_LIBCXXABI_COMPILER_CLANG) |