[compiler-rt] 5f2e2b7 - [test][msan] -fno-sanitize-memory-param-retval in unittests
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 18:53:26 PDT 2022
Author: Vitaly Buka
Date: 2022-09-28T18:53:09-07:00
New Revision: 5f2e2b7d8017e4fcaa36113a2ec6a8f674bd6411
URL: https://github.com/llvm/llvm-project/commit/5f2e2b7d8017e4fcaa36113a2ec6a8f674bd6411
DIFF: https://github.com/llvm/llvm-project/commit/5f2e2b7d8017e4fcaa36113a2ec6a8f674bd6411.diff
LOG: [test][msan] -fno-sanitize-memory-param-retval in unittests
Added:
Modified:
compiler-rt/lib/msan/tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/tests/CMakeLists.txt b/compiler-rt/lib/msan/tests/CMakeLists.txt
index efd370baeae6f..6c0520d984263 100644
--- a/compiler-rt/lib/msan/tests/CMakeLists.txt
+++ b/compiler-rt/lib/msan/tests/CMakeLists.txt
@@ -8,6 +8,7 @@ include_directories(../..)
set(MSAN_LIBCXX_CFLAGS
-fsanitize=memory
-fsanitize-memory-track-origins
+ -fno-sanitize-memory-param-retval # unittests test mostly this mode.
-Wno-pedantic
-Xclang -fdepfile-entry=${COMPILER_RT_OUTPUT_DIR}/share/msan_ignorelist.txt
)
@@ -41,6 +42,7 @@ set(MSAN_UNITTEST_COMMON_CFLAGS
-Wno-uninitialized
-Werror=sign-compare
-Wno-gnu-zero-variadic-macro-arguments
+ -fno-sanitize-memory-param-retval # unittests test mostly this mode.
)
# Remove -stdlib= which is unused when passing -nostdinc++.
string(REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
More information about the llvm-commits
mailing list