Vendor import of compiler-rt trunk r303291:
https://llvm.org/svn/llvm-project/compiler-rt/trunk@303291
This commit is contained in:
parent
f9102cdabb
commit
834763c1a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/compiler-rt/dist/; revision=318418 svn path=/vendor/compiler-rt/compiler-rt-trunk-r303291/; revision=318419; tag=vendor/compiler-rt/compiler-rt-trunk-r303291
@ -30,11 +30,11 @@
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <algorithm>
|
||||
#include <setjmp.h>
|
||||
|
||||
#if !defined(_WIN32)
|
||||
# include <strings.h>
|
||||
# include <sys/mman.h>
|
||||
# include <setjmp.h>
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
|
@ -104,7 +104,7 @@ __floatdidf(di_int a)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__AEABI__)
|
||||
#if defined(__ARM_EABI__)
|
||||
AEABI_RTABI double __aeabi_l2d(di_int a) {
|
||||
return __floatdidf(a);
|
||||
}
|
||||
|
@ -34,6 +34,10 @@ set(UBSAN_CXXFLAGS ${SANITIZER_COMMON_CFLAGS})
|
||||
append_rtti_flag(ON UBSAN_CXXFLAGS)
|
||||
append_list_if(SANITIZER_CAN_USE_CXXABI -DUBSAN_CAN_USE_CXXABI UBSAN_CXXFLAGS)
|
||||
|
||||
append_list_if(COMPILER_RT_HAS_LIBDL dl UBSAN_DYNAMIC_LIBS)
|
||||
append_list_if(COMPILER_RT_HAS_LIBRT rt UBSAN_DYNAMIC_LIBS)
|
||||
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread UBSAN_DYNAMIC_LIBS)
|
||||
|
||||
add_compiler_rt_component(ubsan)
|
||||
|
||||
if(APPLE)
|
||||
@ -144,6 +148,27 @@ else()
|
||||
CFLAGS ${UBSAN_CXXFLAGS}
|
||||
PARENT_TARGET ubsan)
|
||||
|
||||
add_compiler_rt_runtime(clang_rt.ubsan_standalone
|
||||
SHARED
|
||||
ARCHS ${UBSAN_SUPPORTED_ARCH}
|
||||
OBJECT_LIBS RTSanitizerCommon
|
||||
RTSanitizerCommonLibc
|
||||
RTUbsan
|
||||
CFLAGS ${UBSAN_CFLAGS}
|
||||
LINK_LIBS ${UBSAN_DYNAMIC_LIBS}
|
||||
PARENT_TARGET ubsan)
|
||||
|
||||
add_compiler_rt_runtime(clang_rt.ubsan_standalone_cxx
|
||||
SHARED
|
||||
ARCHS ${UBSAN_SUPPORTED_ARCH}
|
||||
OBJECT_LIBS RTSanitizerCommon
|
||||
RTSanitizerCommonLibc
|
||||
RTUbsan
|
||||
RTUbsan_cxx
|
||||
CFLAGS ${UBSAN_CXXFLAGS}
|
||||
LINK_LIBS ${UBSAN_DYNAMIC_LIBS}
|
||||
PARENT_TARGET ubsan)
|
||||
|
||||
if (UNIX)
|
||||
set(ARCHS_FOR_SYMBOLS ${UBSAN_SUPPORTED_ARCH})
|
||||
list(REMOVE_ITEM ARCHS_FOR_SYMBOLS i386 i686)
|
||||
|
Loading…
Reference in New Issue
Block a user