From 1f34f8dcbe78ea39a0fed626daa2a6b25ba3d423 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Tue, 24 Jun 2014 12:08:18 +0000 Subject: [asan] adding support of 32-bit address sanitizer for MIPS Summary: The patch supports both the clang cross-compiler and native compiler Patch by Kumar Sukhani Test Plan: Kumar had the following asan test results when compiled on a MIPS board: Expected Passes : 96 Expected Failures : 2 Unsupported Tests : 84 Unexpected Passes : 4 Unexpected Failures: 19 The list of unexpected failures can be found in the review. Reviewers: kcc, petarj, dsanders Reviewed By: kcc Subscribers: farazs, kcc, llvm-commits Differential Revision: http://reviews.llvm.org/D4208 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211587 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b524036e..f35a09612 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,8 @@ else() test_target_arch(i386 ${TARGET_32_BIT_CFLAGS}) elseif("${LLVM_NATIVE_ARCH}" STREQUAL "PowerPC") test_target_arch(powerpc64 ${TARGET_64_BIT_CFLAGS}) + elseif("${LLVM_NATIVE_ARCH}" STREQUAL "Mips") + test_target_arch(mips "") endif() # Build ARM libraries if we are configured to test on ARM @@ -362,8 +364,8 @@ endif() # Architectures supported by Sanitizer runtimes. Specific sanitizers may # support only subset of these (e.g. TSan works on x86_64 only). filter_available_targets(SANITIZER_COMMON_SUPPORTED_ARCH - x86_64 i386 powerpc64 arm aarch64) -filter_available_targets(ASAN_SUPPORTED_ARCH x86_64 i386 powerpc64 arm) + x86_64 i386 powerpc64 arm aarch64 mips) +filter_available_targets(ASAN_SUPPORTED_ARCH x86_64 i386 powerpc64 arm mips) filter_available_targets(DFSAN_SUPPORTED_ARCH x86_64) filter_available_targets(LSAN_SUPPORTED_ARCH x86_64) filter_available_targets(MSAN_SUPPORTED_ARCH x86_64) -- cgit v1.2.3