compiler-rt: Rename .cc file in lib/tsan/rtl to .cpp
authorNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:22:42 +0000 (14:22 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:22:42 +0000 (14:22 +0000)
Like r367463, but for tsan/rtl.

llvm-svn: 367564

42 files changed:
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
compiler-rt/lib/tsan/CMakeLists.txt
compiler-rt/lib/tsan/go/build.bat
compiler-rt/lib/tsan/go/buildgo.sh
compiler-rt/lib/tsan/rtl/tsan_clock.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_clock.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_debugging.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_debugging.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_external.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_external.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_fd.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_fd.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_flags.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_flags.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_ignoreset.cc with 93% similarity]
compiler-rt/lib/tsan/rtl/tsan_interceptors.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_interceptors.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_interface.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_interface.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_interface_java.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_libdispatch.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_libdispatch.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_md5.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_md5.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_mman.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_mman.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_mutex.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_mutex.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_mutexset.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_mutexset.cc with 96% similarity]
compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_new_delete.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_platform_posix.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_platform_windows.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc with 93% similarity]
compiler-rt/lib/tsan/rtl/tsan_preinit.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_preinit.cc with 93% similarity]
compiler-rt/lib/tsan/rtl/tsan_report.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_report.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_rtl.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_rtl.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cc with 96% similarity]
compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_stack_trace.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_stack_trace.cc with 96% similarity]
compiler-rt/lib/tsan/rtl/tsan_stat.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_stat.cc with 99% similarity]
compiler-rt/lib/tsan/rtl/tsan_suppressions.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_suppressions.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_symbolize.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_symbolize.cc with 98% similarity]
compiler-rt/lib/tsan/rtl/tsan_sync.cpp [moved from compiler-rt/lib/tsan/rtl/tsan_sync.cc with 99% similarity]
compiler-rt/test/tsan/Linux/double_race.cc
compiler-rt/test/tsan/cond_cancel.c
compiler-rt/test/tsan/restore_stack.cc

index 4545d09..bf8e0fd 100755 (executable)
@@ -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 \
index 43dbe86..ffbe62a 100644 (file)
@@ -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()
 
index 33df27a..9bf13b4 100644 (file)
@@ -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
 
index 31cbb03..4338596 100755 (executable)
@@ -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
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_clock.cc
rename to compiler-rt/lib/tsan/rtl/tsan_clock.cpp
index 685ca55..0db3737 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_debugging.cc
rename to compiler-rt/lib/tsan/rtl/tsan_debugging.cpp
index 8579db1..d3d6255 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/tsan/rtl/tsan_external.cc
rename to compiler-rt/lib/tsan/rtl/tsan_external.cpp
index ba8bb71..efc1013 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_fd.cc
rename to compiler-rt/lib/tsan/rtl/tsan_fd.cpp
index 5b562ae..db01d80 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/tsan/rtl/tsan_flags.cc
rename to compiler-rt/lib/tsan/rtl/tsan_flags.cpp
index a5abb18..44bf325 100644 (file)
@@ -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.
similarity index 93%
rename from compiler-rt/lib/tsan/rtl/tsan_ignoreset.cc
rename to compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp
index b2f6579..f6e41f6 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/tsan/rtl/tsan_interface.cc
rename to compiler-rt/lib/tsan/rtl/tsan_interface.cpp
index 508aadb..845d8c8 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_libdispatch.cc
rename to compiler-rt/lib/tsan/rtl/tsan_libdispatch.cpp
index 48ac6a2..ac654d1 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc
rename to compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cpp
index 0b874ae..0e861bf 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_md5.cc
rename to compiler-rt/lib/tsan/rtl/tsan_md5.cpp
index bfe0c17..d146e1c 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_mman.cc
rename to compiler-rt/lib/tsan/rtl/tsan_mman.cpp
index f4a95d8..1b2c054 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_mutex.cc
rename to compiler-rt/lib/tsan/rtl/tsan_mutex.cpp
index bb75313..7a0918f 100644 (file)
@@ -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.
similarity index 96%
rename from compiler-rt/lib/tsan/rtl/tsan_mutexset.cc
rename to compiler-rt/lib/tsan/rtl/tsan_mutexset.cpp
index 02e5f9d..813fa3b 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_new_delete.cc
rename to compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp
index 4cbdf70..3ed3c84 100644 (file)
@@ -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.
similarity index 93%
rename from compiler-rt/lib/tsan/rtl/tsan_preinit.cc
rename to compiler-rt/lib/tsan/rtl/tsan_preinit.cpp
index 052b353..205bdbf 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_report.cc
rename to compiler-rt/lib/tsan/rtl/tsan_report.cpp
index ae66902..655aa5f 100644 (file)
@@ -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;
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_rtl.cc
rename to compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
index 8a2704f..312d00c 100644 (file)
@@ -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,
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
rename to compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
index 941e70f..ce6e7cb 100644 (file)
@@ -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.
similarity index 96%
rename from compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cc
rename to compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cpp
index 94bbed2..def61cc 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc
rename to compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
index 220a425..87031dd 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
rename to compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
index fd95cfe..0ac1ee9 100644 (file)
@@ -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.
similarity index 96%
rename from compiler-rt/lib/tsan/rtl/tsan_stack_trace.cc
rename to compiler-rt/lib/tsan/rtl/tsan_stack_trace.cpp
index dbaca23..403a21a 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_stat.cc
rename to compiler-rt/lib/tsan/rtl/tsan_stat.cpp
index d23ff47..78f3cce 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/tsan/rtl/tsan_symbolize.cc
rename to compiler-rt/lib/tsan/rtl/tsan_symbolize.cpp
index cb60763..6478f3a 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/tsan/rtl/tsan_sync.cc
rename to compiler-rt/lib/tsan/rtl/tsan_sync.cpp
index c613b11..7f686dc 100644 (file)
@@ -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.
index 2b4af35..5b15dcc 100644 (file)
@@ -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;
index e3fcb7f..7f20b8f 100644 (file)
@@ -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 
index 39c1101..4a5bee6 100644 (file)
@@ -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