forked from OSchip/llvm-project
compiler-rt: Rename .cc file in lib/tsan/rtl to .cpp
Like r367463, but for tsan/rtl. llvm-svn: 367564
This commit is contained in:
parent
1265d0f44c
commit
5a3bb1a4d6
|
@ -89,7 +89,7 @@ run_lint ${ASAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/asan/*/*.cc &
|
|||
|
||||
# TSan
|
||||
TSAN_RTL=${COMPILER_RT}/lib/tsan
|
||||
run_lint ${TSAN_RTL_LINT_FILTER} ${TSAN_RTL}/rtl/*.cc \
|
||||
run_lint ${TSAN_RTL_LINT_FILTER} ${TSAN_RTL}/rtl/*.cpp \
|
||||
${TSAN_RTL}/rtl/*.h &
|
||||
run_lint ${TSAN_TEST_LINT_FILTER} ${TSAN_RTL}/tests/rtl/*.cc \
|
||||
${TSAN_RTL}/tests/rtl/*.h \
|
||||
|
|
|
@ -26,52 +26,58 @@ append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
|
|||
TSAN_RTL_CFLAGS)
|
||||
|
||||
set(TSAN_SOURCES
|
||||
rtl/tsan_clock.cc
|
||||
rtl/tsan_debugging.cc
|
||||
rtl/tsan_external.cc
|
||||
rtl/tsan_fd.cc
|
||||
rtl/tsan_flags.cc
|
||||
rtl/tsan_ignoreset.cc
|
||||
rtl/tsan_interceptors.cc
|
||||
rtl/tsan_interface.cc
|
||||
rtl/tsan_interface_ann.cc
|
||||
rtl/tsan_interface_atomic.cc
|
||||
rtl/tsan_interface_java.cc
|
||||
rtl/tsan_malloc_mac.cc
|
||||
rtl/tsan_md5.cc
|
||||
rtl/tsan_mman.cc
|
||||
rtl/tsan_mutex.cc
|
||||
rtl/tsan_mutexset.cc
|
||||
rtl/tsan_preinit.cc
|
||||
rtl/tsan_report.cc
|
||||
rtl/tsan_rtl.cc
|
||||
rtl/tsan_rtl_mutex.cc
|
||||
rtl/tsan_rtl_proc.cc
|
||||
rtl/tsan_rtl_report.cc
|
||||
rtl/tsan_rtl_thread.cc
|
||||
rtl/tsan_stack_trace.cc
|
||||
rtl/tsan_stat.cc
|
||||
rtl/tsan_suppressions.cc
|
||||
rtl/tsan_symbolize.cc
|
||||
rtl/tsan_sync.cc)
|
||||
rtl/tsan_clock.cpp
|
||||
rtl/tsan_debugging.cpp
|
||||
rtl/tsan_external.cpp
|
||||
rtl/tsan_fd.cpp
|
||||
rtl/tsan_flags.cpp
|
||||
rtl/tsan_ignoreset.cpp
|
||||
rtl/tsan_interceptors.cpp
|
||||
rtl/tsan_interface.cpp
|
||||
rtl/tsan_interface_ann.cpp
|
||||
rtl/tsan_interface_atomic.cpp
|
||||
rtl/tsan_interface_java.cpp
|
||||
rtl/tsan_malloc_mac.cpp
|
||||
rtl/tsan_md5.cpp
|
||||
rtl/tsan_mman.cpp
|
||||
rtl/tsan_mutex.cpp
|
||||
rtl/tsan_mutexset.cpp
|
||||
rtl/tsan_preinit.cpp
|
||||
rtl/tsan_report.cpp
|
||||
rtl/tsan_rtl.cpp
|
||||
rtl/tsan_rtl_mutex.cpp
|
||||
rtl/tsan_rtl_proc.cpp
|
||||
rtl/tsan_rtl_report.cpp
|
||||
rtl/tsan_rtl_thread.cpp
|
||||
rtl/tsan_stack_trace.cpp
|
||||
rtl/tsan_stat.cpp
|
||||
rtl/tsan_suppressions.cpp
|
||||
rtl/tsan_symbolize.cpp
|
||||
rtl/tsan_sync.cpp
|
||||
)
|
||||
|
||||
set(TSAN_CXX_SOURCES
|
||||
rtl/tsan_new_delete.cc)
|
||||
rtl/tsan_new_delete.cpp
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
list(APPEND TSAN_SOURCES
|
||||
rtl/tsan_interceptors_mac.cc
|
||||
rtl/tsan_platform_mac.cc
|
||||
rtl/tsan_platform_posix.cc)
|
||||
rtl/tsan_interceptors_mac.cpp
|
||||
rtl/tsan_platform_mac.cpp
|
||||
rtl/tsan_platform_posix.cpp
|
||||
)
|
||||
elseif(UNIX)
|
||||
# Assume Linux
|
||||
list(APPEND TSAN_SOURCES
|
||||
rtl/tsan_platform_linux.cc
|
||||
rtl/tsan_platform_posix.cc)
|
||||
rtl/tsan_platform_linux.cpp
|
||||
rtl/tsan_platform_posix.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(COMPILER_RT_INTERCEPT_LIBDISPATCH)
|
||||
list(APPEND TSAN_SOURCES rtl/tsan_libdispatch.cc)
|
||||
list(APPEND TSAN_SOURCES
|
||||
rtl/tsan_libdispatch.cpp
|
||||
)
|
||||
list(APPEND TSAN_RTL_CFLAGS ${COMPILER_RT_LIBDISPATCH_CFLAGS})
|
||||
endif()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
type tsan_go.cc ..\rtl\tsan_interface_atomic.cc ..\rtl\tsan_clock.cc ..\rtl\tsan_flags.cc ..\rtl\tsan_md5.cc ..\rtl\tsan_mutex.cc ..\rtl\tsan_report.cc ..\rtl\tsan_rtl.cc ..\rtl\tsan_rtl_mutex.cc ..\rtl\tsan_rtl_report.cc ..\rtl\tsan_rtl_thread.cc ..\rtl\tsan_rtl_proc.cc ..\rtl\tsan_stat.cc ..\rtl\tsan_suppressions.cc ..\rtl\tsan_sync.cc ..\rtl\tsan_stack_trace.cc ..\..\sanitizer_common\sanitizer_allocator.cpp ..\..\sanitizer_common\sanitizer_common.cpp ..\..\sanitizer_common\sanitizer_flags.cpp ..\..\sanitizer_common\sanitizer_stacktrace.cpp ..\..\sanitizer_common\sanitizer_libc.cpp ..\..\sanitizer_common\sanitizer_printf.cpp ..\..\sanitizer_common\sanitizer_suppressions.cpp ..\..\sanitizer_common\sanitizer_thread_registry.cpp ..\rtl\tsan_platform_windows.cc ..\..\sanitizer_common\sanitizer_win.cpp ..\..\sanitizer_common\sanitizer_deadlock_detector1.cpp ..\..\sanitizer_common\sanitizer_stackdepot.cpp ..\..\sanitizer_common\sanitizer_persistent_allocator.cpp ..\..\sanitizer_common\sanitizer_flag_parser.cpp ..\..\sanitizer_common\sanitizer_symbolizer.cpp ..\..\sanitizer_common\sanitizer_termination.cpp > gotsan.cc
|
||||
type tsan_go.cc ..\rtl\tsan_interface_atomic.cpp ..\rtl\tsan_clock.cpp ..\rtl\tsan_flags.cpp ..\rtl\tsan_md5.cpp ..\rtl\tsan_mutex.cpp ..\rtl\tsan_report.cpp ..\rtl\tsan_rtl.cpp ..\rtl\tsan_rtl_mutex.cpp ..\rtl\tsan_rtl_report.cpp ..\rtl\tsan_rtl_thread.cpp ..\rtl\tsan_rtl_proc.cpp ..\rtl\tsan_stat.cpp ..\rtl\tsan_suppressions.cpp ..\rtl\tsan_sync.cpp ..\rtl\tsan_stack_trace.cpp ..\..\sanitizer_common\sanitizer_allocator.cpp ..\..\sanitizer_common\sanitizer_common.cpp ..\..\sanitizer_common\sanitizer_flags.cpp ..\..\sanitizer_common\sanitizer_stacktrace.cpp ..\..\sanitizer_common\sanitizer_libc.cpp ..\..\sanitizer_common\sanitizer_printf.cpp ..\..\sanitizer_common\sanitizer_suppressions.cpp ..\..\sanitizer_common\sanitizer_thread_registry.cpp ..\rtl\tsan_platform_windows.cpp ..\..\sanitizer_common\sanitizer_win.cpp ..\..\sanitizer_common\sanitizer_deadlock_detector1.cpp ..\..\sanitizer_common\sanitizer_stackdepot.cpp ..\..\sanitizer_common\sanitizer_persistent_allocator.cpp ..\..\sanitizer_common\sanitizer_flag_parser.cpp ..\..\sanitizer_common\sanitizer_symbolizer.cpp ..\..\sanitizer_common\sanitizer_termination.cpp > gotsan.cc
|
||||
|
||||
gcc -c -o race_windows_amd64.syso gotsan.cc -I..\rtl -I..\.. -I..\..\sanitizer_common -I..\..\..\include -m64 -Wall -fno-exceptions -fno-rtti -DSANITIZER_GO=1 -Wno-error=attributes -Wno-attributes -Wno-format -Wno-maybe-uninitialized -DSANITIZER_DEBUG=0 -O3 -fomit-frame-pointer -std=c++11
|
||||
|
||||
|
|
|
@ -4,22 +4,22 @@ set -e
|
|||
|
||||
SRCS="
|
||||
tsan_go.cc
|
||||
../rtl/tsan_clock.cc
|
||||
../rtl/tsan_external.cc
|
||||
../rtl/tsan_flags.cc
|
||||
../rtl/tsan_interface_atomic.cc
|
||||
../rtl/tsan_md5.cc
|
||||
../rtl/tsan_mutex.cc
|
||||
../rtl/tsan_report.cc
|
||||
../rtl/tsan_rtl.cc
|
||||
../rtl/tsan_rtl_mutex.cc
|
||||
../rtl/tsan_rtl_report.cc
|
||||
../rtl/tsan_rtl_thread.cc
|
||||
../rtl/tsan_rtl_proc.cc
|
||||
../rtl/tsan_stack_trace.cc
|
||||
../rtl/tsan_stat.cc
|
||||
../rtl/tsan_suppressions.cc
|
||||
../rtl/tsan_sync.cc
|
||||
../rtl/tsan_clock.cpp
|
||||
../rtl/tsan_external.cpp
|
||||
../rtl/tsan_flags.cpp
|
||||
../rtl/tsan_interface_atomic.cpp
|
||||
../rtl/tsan_md5.cpp
|
||||
../rtl/tsan_mutex.cpp
|
||||
../rtl/tsan_report.cpp
|
||||
../rtl/tsan_rtl.cpp
|
||||
../rtl/tsan_rtl_mutex.cpp
|
||||
../rtl/tsan_rtl_report.cpp
|
||||
../rtl/tsan_rtl_thread.cpp
|
||||
../rtl/tsan_rtl_proc.cpp
|
||||
../rtl/tsan_stack_trace.cpp
|
||||
../rtl/tsan_stat.cpp
|
||||
../rtl/tsan_suppressions.cpp
|
||||
../rtl/tsan_sync.cpp
|
||||
../../sanitizer_common/sanitizer_allocator.cpp
|
||||
../../sanitizer_common/sanitizer_common.cpp
|
||||
../../sanitizer_common/sanitizer_common_libcdep.cpp
|
||||
|
@ -44,7 +44,7 @@ if [ "`uname -a | grep Linux`" != "" ]; then
|
|||
OSLDFLAGS="-lpthread -fPIC -fpie"
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_linux.cc
|
||||
../rtl/tsan_platform_linux.cpp
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cpp
|
||||
|
@ -72,7 +72,7 @@ elif [ "`uname -a | grep FreeBSD`" != "" ]; then
|
|||
OSLDFLAGS="-lpthread -fPIC -fpie"
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_linux.cc
|
||||
../rtl/tsan_platform_linux.cpp
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_bsd.cpp
|
||||
|
@ -89,7 +89,7 @@ elif [ "`uname -a | grep NetBSD`" != "" ]; then
|
|||
OSLDFLAGS="-lpthread -fPIC -fpie"
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_linux.cc
|
||||
../rtl/tsan_platform_linux.cpp
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_bsd.cpp
|
||||
|
@ -107,7 +107,7 @@ elif [ "`uname -a | grep Darwin`" != "" ]; then
|
|||
OSLDFLAGS="-lpthread -fPIC -fpie -mmacosx-version-min=10.7"
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_mac.cc
|
||||
../rtl/tsan_platform_mac.cpp
|
||||
../../sanitizer_common/sanitizer_mac.cpp
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
|
@ -120,7 +120,7 @@ elif [ "`uname -a | grep MINGW`" != "" ]; then
|
|||
OSLDFLAGS=""
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_windows.cc
|
||||
../rtl/tsan_platform_windows.cpp
|
||||
../../sanitizer_common/sanitizer_win.cpp
|
||||
"
|
||||
else
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_clock.cc -----------------------------------------------------===//
|
||||
//===-- tsan_clock.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_debugging.cc -------------------------------------------------===//
|
||||
//===-- tsan_debugging.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_external.cc --------------------------------------------------===//
|
||||
//===-- tsan_external.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_fd.cc --------------------------------------------------------===//
|
||||
//===-- tsan_fd.cpp -------------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_flags.cc -----------------------------------------------------===//
|
||||
//===-- tsan_flags.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_ignoreset.cc -------------------------------------------------===//
|
||||
//===-- tsan_ignoreset.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_interceptors.cc ----------------------------------------------===//
|
||||
//===-- tsan_interceptors.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_interceptors_mac.cc ------------------------------------------===//
|
||||
//===-- tsan_interceptors_mac.cpp -----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_interface.cc -------------------------------------------------===//
|
||||
//===-- tsan_interface.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_interface_ann.cc ---------------------------------------------===//
|
||||
//===-- tsan_interface_ann.cpp --------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_interface_atomic.cc ------------------------------------------===//
|
||||
//===-- tsan_interface_atomic.cpp -----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_interface_java.cc --------------------------------------------===//
|
||||
//===-- tsan_interface_java.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_libdispatch.cc -----------------------------------------------===//
|
||||
//===-- tsan_libdispatch.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_malloc_mac.cc ------------------------------------------------===//
|
||||
//===-- tsan_malloc_mac.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_md5.cc -------------------------------------------------------===//
|
||||
//===-- tsan_md5.cpp ------------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_mman.cc ------------------------------------------------------===//
|
||||
//===-- tsan_mman.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_mutex.cc -----------------------------------------------------===//
|
||||
//===-- tsan_mutex.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_mutexset.cc --------------------------------------------------===//
|
||||
//===-- tsan_mutexset.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_new_delete.cc ----------------------------------------------===//
|
||||
//===-- tsan_new_delete.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_platform_linux.cc --------------------------------------------===//
|
||||
//===-- tsan_platform_linux.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_platform_mac.cc ----------------------------------------------===//
|
||||
//===-- tsan_platform_mac.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_platform_posix.cc --------------------------------------------===//
|
||||
//===-- tsan_platform_posix.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_platform_windows.cc ------------------------------------------===//
|
||||
//===-- tsan_platform_windows.cpp -----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_preinit.cc ---------------------------------------------------===//
|
||||
//===-- tsan_preinit.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_report.cc ----------------------------------------------------===//
|
||||
//===-- tsan_report.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
@ -298,7 +298,7 @@ static bool FrameIsInternal(const SymbolizedStack *frame) {
|
|||
const char *file = frame->info.file;
|
||||
const char *module = frame->info.module;
|
||||
if (file != 0 &&
|
||||
(internal_strstr(file, "tsan_interceptors.cc") ||
|
||||
(internal_strstr(file, "tsan_interceptors.cpp") ||
|
||||
internal_strstr(file, "sanitizer_common_interceptors.inc") ||
|
||||
internal_strstr(file, "tsan_interface_")))
|
||||
return true;
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_rtl.cc -------------------------------------------------------===//
|
||||
//===-- tsan_rtl.cpp ------------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
@ -869,7 +869,7 @@ void MemoryAccess(ThreadState *thr, uptr pc, uptr addr,
|
|||
shadow_mem, cur);
|
||||
}
|
||||
|
||||
// Called by MemoryAccessRange in tsan_rtl_thread.cc
|
||||
// Called by MemoryAccessRange in tsan_rtl_thread.cpp
|
||||
ALWAYS_INLINE USED
|
||||
void MemoryAccessImpl(ThreadState *thr, uptr addr,
|
||||
int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic,
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_rtl_mutex.cc -------------------------------------------------===//
|
||||
//===-- tsan_rtl_mutex.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_rtl_proc.cc ------------------------------------------------===//
|
||||
//===-- tsan_rtl_proc.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_rtl_report.cc ------------------------------------------------===//
|
||||
//===-- tsan_rtl_report.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_rtl_thread.cc ------------------------------------------------===//
|
||||
//===-- tsan_rtl_thread.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_stack_trace.cc -----------------------------------------------===//
|
||||
//===-- tsan_stack_trace.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_stat.cc ------------------------------------------------------===//
|
||||
//===-- tsan_stat.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_suppressions.cc ----------------------------------------------===//
|
||||
//===-- tsan_suppressions.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_symbolize.cc -------------------------------------------------===//
|
||||
//===-- tsan_symbolize.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,4 +1,4 @@
|
|||
//===-- tsan_sync.cc ------------------------------------------------------===//
|
||||
//===-- tsan_sync.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -3,7 +3,7 @@
|
|||
#include <memory.h>
|
||||
|
||||
// A reproducer for a known issue.
|
||||
// See reference to double_race.cc in tsan_rtl_report.cc for an explanation.
|
||||
// See reference to double_race.cc in tsan_rtl_report.cpp for an explanation.
|
||||
|
||||
char buf[16];
|
||||
volatile int nreport;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// CHECK: OK
|
||||
// This test is failing on powerpc64 (VMA=44). After calling pthread_cancel,
|
||||
// the Thread-specific data destructors are not called, so the destructor
|
||||
// "thread_finalize" (defined in tsan_interceptors.cc) can not set the status
|
||||
// "thread_finalize" (defined in tsan_interceptors.cpp) can not set the status
|
||||
// of the thread to "ThreadStatusFinished" failing a check in "SetJoined"
|
||||
// (defined in sanitizer_thread_registry.cpp). It might seem a bug on glibc,
|
||||
// however the same version GLIBC-2.17 will not make fail the test on
|
||||
|
|
|
@ -41,7 +41,7 @@ int main() {
|
|||
// Previous write of size 8 at 0x0000006a8ff8 by thread T17:
|
||||
// #0 foo() restore_stack.cc:13:5 (restore_stack.cc.exe+0x00000040622c)
|
||||
// #1 Thread(void*) restore_stack.cc:18:3 (restore_stack.cc.exe+0x000000406283)
|
||||
// #2 __tsan_thread_start_func rtl/tsan_interceptors.cc:886 (restore_stack.cc.exe+0x00000040a749)
|
||||
// #2 __tsan_thread_start_func rtl/tsan_interceptors.cpp:886 (restore_stack.cc.exe+0x00000040a749)
|
||||
// #3 Thread(void*) restore_stack.cc:18:3 (restore_stack.cc.exe+0x000000406283)
|
||||
|
||||
// CHECK: WARNING: ThreadSanitizer: data race
|
||||
|
|
Loading…
Reference in New Issue