diff options
| -rwxr-xr-x | compiler-rt/lib/sanitizer_common/scripts/check_lint.sh | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/CMakeLists.txt | 76 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/go/build.bat | 2 | ||||
| -rwxr-xr-x | compiler-rt/lib/tsan/go/buildgo.sh | 42 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_clock.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_clock.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_debugging.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_debugging.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_external.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_external.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_fd.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_fd.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_flags.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_ignoreset.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_interceptors.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interface.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_interface.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_interface_java.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_libdispatch.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_libdispatch.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_md5.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_md5.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_mman.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_mman.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_mutex.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_mutex.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_mutexset.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_mutexset.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_new_delete.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_platform_posix.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_windows.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_preinit.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_preinit.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_report.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_report.cc) | 4 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_rtl.cc) | 4 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_stack_trace.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_stack_trace.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_stat.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_stat.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_suppressions.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_suppressions.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_symbolize.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_symbolize.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_sync.cpp (renamed from compiler-rt/lib/tsan/rtl/tsan_sync.cc) | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Linux/double_race.cc | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/cond_cancel.c | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/restore_stack.cc | 2 | 
42 files changed, 104 insertions, 98 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index 4545d09c6ff..bf8e0fdb977 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -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 \ diff --git a/compiler-rt/lib/tsan/CMakeLists.txt b/compiler-rt/lib/tsan/CMakeLists.txt index 43dbe864416..ffbe62aa93a 100644 --- a/compiler-rt/lib/tsan/CMakeLists.txt +++ b/compiler-rt/lib/tsan/CMakeLists.txt @@ -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() diff --git a/compiler-rt/lib/tsan/go/build.bat b/compiler-rt/lib/tsan/go/build.bat index 33df27a682a..9bf13b44b1d 100644 --- a/compiler-rt/lib/tsan/go/build.bat +++ b/compiler-rt/lib/tsan/go/build.bat @@ -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 diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh index 31cbb0388c3..43385963233 100755 --- a/compiler-rt/lib/tsan/go/buildgo.sh +++ b/compiler-rt/lib/tsan/go/buildgo.sh @@ -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 diff --git a/compiler-rt/lib/tsan/rtl/tsan_clock.cc b/compiler-rt/lib/tsan/rtl/tsan_clock.cpp index 685ca551800..0db3737d696 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_clock.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_clock.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_debugging.cc b/compiler-rt/lib/tsan/rtl/tsan_debugging.cpp index 8579db12b66..d3d6255090b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_debugging.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_debugging.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_external.cc b/compiler-rt/lib/tsan/rtl/tsan_external.cpp index ba8bb71be43..efc1013087c 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_external.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_external.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_fd.cc b/compiler-rt/lib/tsan/rtl/tsan_fd.cpp index 5b562ae68d5..db01d809531 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_fd.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_fd.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.cc b/compiler-rt/lib/tsan/rtl/tsan_flags.cpp index a5abb183a75..44bf325cd35 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cc b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp index b2f657939cc..f6e41f66861 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cpp index 9a184c79798..81f1f10a813 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp index 99c6df9dfde..c2083f8cde9 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_interface.cc b/compiler-rt/lib/tsan/rtl/tsan_interface.cpp index 508aadb08f6..845d8c8520c 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interface.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interface.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc b/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp index e141ddbb751..288485c17fa 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc b/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp index a6b7b0f656d..730a8e63f74 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_interface_java.cc b/compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp index 9f227f09589..7d3d32fdbe0 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interface_java.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_libdispatch.cc b/compiler-rt/lib/tsan/rtl/tsan_libdispatch.cpp index 48ac6a2824a..ac654d16edd 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_libdispatch.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_libdispatch.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cpp index 0b874aecb99..0e861bf1f96 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_md5.cc b/compiler-rt/lib/tsan/rtl/tsan_md5.cpp index bfe0c17bae7..d146e1cc35f 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_md5.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_md5.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_mman.cc b/compiler-rt/lib/tsan/rtl/tsan_mman.cpp index f4a95d870ca..1b2c0549d39 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_mman.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_mman.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_mutex.cpp index bb7531325ae..7a0918f2a2c 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_mutex.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_mutex.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_mutexset.cc b/compiler-rt/lib/tsan/rtl/tsan_mutexset.cpp index 02e5f9da608..813fa3bca93 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_mutexset.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_mutexset.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc b/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp index 4cbdf703ad2..3ed3c847a9a 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp index ec8606f65d5..33fa586ca1b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp index 0c2d2aa9338..326ca8532e5 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp index 3bd0f1bd48d..3c9e45561d3 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_windows.cpp index 037297559ee..19437879a41 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_windows.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_preinit.cc b/compiler-rt/lib/tsan/rtl/tsan_preinit.cpp index 052b353091d..205bdbf93b2 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_preinit.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_preinit.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cc b/compiler-rt/lib/tsan/rtl/tsan_report.cpp index ae669024a87..655aa5f9123 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_report.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_report.cpp @@ -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; diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp index 8a2704ff063..312d00c6f92 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp @@ -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, diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp index 941e70f9887..ce6e7cb2c4e 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cpp index 94bbed25b8f..def61cca14d 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp index 220a425a2c5..87031dd97b9 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp index fd95cfed4f5..0ac1ee99c47 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_stack_trace.cc b/compiler-rt/lib/tsan/rtl/tsan_stack_trace.cpp index dbaca23c68a..403a21ae4ae 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_stack_trace.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_stack_trace.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_stat.cc b/compiler-rt/lib/tsan/rtl/tsan_stat.cpp index d23ff47d9af..78f3cce9138 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_stat.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_stat.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_suppressions.cc b/compiler-rt/lib/tsan/rtl/tsan_suppressions.cpp index b3eea9ab586..6bf6720210a 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_suppressions.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_suppressions.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_symbolize.cc b/compiler-rt/lib/tsan/rtl/tsan_symbolize.cpp index cb60763f42f..6478f3a754a 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_symbolize.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_symbolize.cpp @@ -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. diff --git a/compiler-rt/lib/tsan/rtl/tsan_sync.cc b/compiler-rt/lib/tsan/rtl/tsan_sync.cpp index c613b116e3a..7f686dc5fcd 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_sync.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_sync.cpp @@ -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. diff --git a/compiler-rt/test/tsan/Linux/double_race.cc b/compiler-rt/test/tsan/Linux/double_race.cc index 2b4af35a267..5b15dccd747 100644 --- a/compiler-rt/test/tsan/Linux/double_race.cc +++ b/compiler-rt/test/tsan/Linux/double_race.cc @@ -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; diff --git a/compiler-rt/test/tsan/cond_cancel.c b/compiler-rt/test/tsan/cond_cancel.c index e3fcb7f374e..7f20b8f8add 100644 --- a/compiler-rt/test/tsan/cond_cancel.c +++ b/compiler-rt/test/tsan/cond_cancel.c @@ -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  diff --git a/compiler-rt/test/tsan/restore_stack.cc b/compiler-rt/test/tsan/restore_stack.cc index 39c11011ca4..4a5bee64400 100644 --- a/compiler-rt/test/tsan/restore_stack.cc +++ b/compiler-rt/test/tsan/restore_stack.cc @@ -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  | 

