From 5a3bb1a4d6dc8b704621aa916e91186f21ff9e9e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 1 Aug 2019 14:22:42 +0000 Subject: [PATCH] compiler-rt: Rename .cc file in lib/tsan/rtl to .cpp Like r367463, but for tsan/rtl. llvm-svn: 367564 --- .../lib/sanitizer_common/scripts/check_lint.sh | 2 +- compiler-rt/lib/tsan/CMakeLists.txt | 76 ++++++++++++---------- compiler-rt/lib/tsan/go/build.bat | 2 +- compiler-rt/lib/tsan/go/buildgo.sh | 42 ++++++------ .../lib/tsan/rtl/{tsan_clock.cc => tsan_clock.cpp} | 2 +- .../rtl/{tsan_debugging.cc => tsan_debugging.cpp} | 2 +- .../rtl/{tsan_external.cc => tsan_external.cpp} | 2 +- .../lib/tsan/rtl/{tsan_fd.cc => tsan_fd.cpp} | 2 +- .../lib/tsan/rtl/{tsan_flags.cc => tsan_flags.cpp} | 2 +- .../rtl/{tsan_ignoreset.cc => tsan_ignoreset.cpp} | 2 +- ...{tsan_interceptors.cc => tsan_interceptors.cpp} | 2 +- ...terceptors_mac.cc => tsan_interceptors_mac.cpp} | 2 +- .../rtl/{tsan_interface.cc => tsan_interface.cpp} | 2 +- ...san_interface_ann.cc => tsan_interface_ann.cpp} | 2 +- ...terface_atomic.cc => tsan_interface_atomic.cpp} | 2 +- ...n_interface_java.cc => tsan_interface_java.cpp} | 2 +- .../{tsan_libdispatch.cc => tsan_libdispatch.cpp} | 2 +- .../{tsan_malloc_mac.cc => tsan_malloc_mac.cpp} | 2 +- .../lib/tsan/rtl/{tsan_md5.cc => tsan_md5.cpp} | 2 +- .../lib/tsan/rtl/{tsan_mman.cc => tsan_mman.cpp} | 2 +- .../lib/tsan/rtl/{tsan_mutex.cc => tsan_mutex.cpp} | 2 +- .../rtl/{tsan_mutexset.cc => tsan_mutexset.cpp} | 2 +- .../{tsan_new_delete.cc => tsan_new_delete.cpp} | 2 +- ...n_platform_linux.cc => tsan_platform_linux.cpp} | 2 +- ...{tsan_platform_mac.cc => tsan_platform_mac.cpp} | 2 +- ...n_platform_posix.cc => tsan_platform_posix.cpp} | 2 +- ...atform_windows.cc => tsan_platform_windows.cpp} | 2 +- .../tsan/rtl/{tsan_preinit.cc => tsan_preinit.cpp} | 2 +- .../tsan/rtl/{tsan_report.cc => tsan_report.cpp} | 4 +- .../lib/tsan/rtl/{tsan_rtl.cc => tsan_rtl.cpp} | 4 +- .../rtl/{tsan_rtl_mutex.cc => tsan_rtl_mutex.cpp} | 2 +- .../rtl/{tsan_rtl_proc.cc => tsan_rtl_proc.cpp} | 2 +- .../{tsan_rtl_report.cc => tsan_rtl_report.cpp} | 2 +- .../{tsan_rtl_thread.cc => tsan_rtl_thread.cpp} | 2 +- .../{tsan_stack_trace.cc => tsan_stack_trace.cpp} | 2 +- .../lib/tsan/rtl/{tsan_stat.cc => tsan_stat.cpp} | 2 +- ...{tsan_suppressions.cc => tsan_suppressions.cpp} | 2 +- .../rtl/{tsan_symbolize.cc => tsan_symbolize.cpp} | 2 +- .../lib/tsan/rtl/{tsan_sync.cc => tsan_sync.cpp} | 2 +- compiler-rt/test/tsan/Linux/double_race.cc | 2 +- compiler-rt/test/tsan/cond_cancel.c | 2 +- compiler-rt/test/tsan/restore_stack.cc | 2 +- 42 files changed, 104 insertions(+), 98 deletions(-) rename compiler-rt/lib/tsan/rtl/{tsan_clock.cc => tsan_clock.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_debugging.cc => tsan_debugging.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_external.cc => tsan_external.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_fd.cc => tsan_fd.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_flags.cc => tsan_flags.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_ignoreset.cc => tsan_ignoreset.cpp} (93%) rename compiler-rt/lib/tsan/rtl/{tsan_interceptors.cc => tsan_interceptors.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_interceptors_mac.cc => tsan_interceptors_mac.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_interface.cc => tsan_interface.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_interface_ann.cc => tsan_interface_ann.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_interface_atomic.cc => tsan_interface_atomic.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_interface_java.cc => tsan_interface_java.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_libdispatch.cc => tsan_libdispatch.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_malloc_mac.cc => tsan_malloc_mac.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_md5.cc => tsan_md5.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_mman.cc => tsan_mman.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_mutex.cc => tsan_mutex.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_mutexset.cc => tsan_mutexset.cpp} (96%) rename compiler-rt/lib/tsan/rtl/{tsan_new_delete.cc => tsan_new_delete.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_platform_linux.cc => tsan_platform_linux.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_platform_mac.cc => tsan_platform_mac.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_platform_posix.cc => tsan_platform_posix.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_platform_windows.cc => tsan_platform_windows.cpp} (93%) rename compiler-rt/lib/tsan/rtl/{tsan_preinit.cc => tsan_preinit.cpp} (93%) rename compiler-rt/lib/tsan/rtl/{tsan_report.cc => tsan_report.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_rtl.cc => tsan_rtl.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_rtl_mutex.cc => tsan_rtl_mutex.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_rtl_proc.cc => tsan_rtl_proc.cpp} (96%) rename compiler-rt/lib/tsan/rtl/{tsan_rtl_report.cc => tsan_rtl_report.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_rtl_thread.cc => tsan_rtl_thread.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_stack_trace.cc => tsan_stack_trace.cpp} (96%) rename compiler-rt/lib/tsan/rtl/{tsan_stat.cc => tsan_stat.cpp} (99%) rename compiler-rt/lib/tsan/rtl/{tsan_suppressions.cc => tsan_suppressions.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_symbolize.cc => tsan_symbolize.cpp} (98%) rename compiler-rt/lib/tsan/rtl/{tsan_sync.cc => tsan_sync.cpp} (99%) diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index 4545d09..bf8e0fd 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 43dbe86..ffbe62a 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 33df27a..9bf13b4 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 31cbb03..4338596 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_interceptors.cc rename to compiler-rt/lib/tsan/rtl/tsan_interceptors.cpp index 9a184c7..81f1f10 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc rename to compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp index 99c6df9..c2083f8 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 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 --- 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc rename to compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp index e141ddb..288485c 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc rename to compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp index a6b7b0f..730a8e6 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_interface_java.cc rename to compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp index 9f227f0..7d3d32f 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc rename to compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp index ec8606f..33fa586 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc rename to compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp index 0c2d2aa..326ca85 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 similarity index 98% rename from compiler-rt/lib/tsan/rtl/tsan_platform_posix.cc rename to compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp index 3bd0f1b..3c9e455 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 similarity index 93% rename from compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc rename to compiler-rt/lib/tsan/rtl/tsan_platform_windows.cpp index 0372975..1943787 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 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 --- 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 similarity index 99% rename from compiler-rt/lib/tsan/rtl/tsan_stat.cc rename to compiler-rt/lib/tsan/rtl/tsan_stat.cpp index d23ff47d..78f3cce 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 similarity index 98% rename from compiler-rt/lib/tsan/rtl/tsan_suppressions.cc rename to compiler-rt/lib/tsan/rtl/tsan_suppressions.cpp index b3eea9a..6bf6720 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 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 --- 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 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 --- 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 2b4af35..5b15dcc 100644 --- a/compiler-rt/test/tsan/Linux/double_race.cc +++ b/compiler-rt/test/tsan/Linux/double_race.cc @@ -3,7 +3,7 @@ #include // 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 e3fcb7f..7f20b8f 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 39c1101..4a5bee6 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 -- 2.7.4