compiler-rt: Rename .cc file in lib/tsan/{benchmarks,dd,go} to .cpp
authorNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:30:49 +0000 (14:30 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:30:49 +0000 (14:30 +0000)
Like r367463, but for tsan/{benchmarks,dd,go}.

The files benchmarks aren't referenced in the build anywhere and where added
in 2012 with the comment "no Makefiles yet".

llvm-svn: 367567

12 files changed:
compiler-rt/lib/tsan/benchmarks/func_entry_exit.cpp [moved from compiler-rt/lib/tsan/benchmarks/func_entry_exit.cc with 100% similarity]
compiler-rt/lib/tsan/benchmarks/mini_bench_local.cpp [moved from compiler-rt/lib/tsan/benchmarks/mini_bench_local.cc with 100% similarity]
compiler-rt/lib/tsan/benchmarks/mini_bench_shared.cpp [moved from compiler-rt/lib/tsan/benchmarks/mini_bench_shared.cc with 100% similarity]
compiler-rt/lib/tsan/benchmarks/mop.cpp [moved from compiler-rt/lib/tsan/benchmarks/mop.cc with 100% similarity]
compiler-rt/lib/tsan/benchmarks/start_many_threads.cpp [moved from compiler-rt/lib/tsan/benchmarks/start_many_threads.cc with 100% similarity]
compiler-rt/lib/tsan/benchmarks/vts_many_threads_bench.cpp [moved from compiler-rt/lib/tsan/benchmarks/vts_many_threads_bench.cc with 100% similarity]
compiler-rt/lib/tsan/dd/CMakeLists.txt
compiler-rt/lib/tsan/dd/dd_interceptors.cpp [moved from compiler-rt/lib/tsan/dd/dd_interceptors.cc with 99% similarity]
compiler-rt/lib/tsan/dd/dd_rtl.cpp [moved from compiler-rt/lib/tsan/dd/dd_rtl.cc with 98% similarity]
compiler-rt/lib/tsan/go/build.bat
compiler-rt/lib/tsan/go/buildgo.sh
compiler-rt/lib/tsan/go/tsan_go.cpp [moved from compiler-rt/lib/tsan/go/tsan_go.cc with 99% similarity]

index c3f5915..ec10731 100644 (file)
@@ -6,9 +6,9 @@ set(DD_CFLAGS ${SANITIZER_COMMON_CFLAGS})
 append_rtti_flag(OFF DD_CFLAGS)
 
 set(DD_SOURCES
-  dd_rtl.cc
-  dd_interceptors.cc
-)
+  dd_rtl.cpp
+  dd_interceptors.cpp
+  )
 
 set(DD_LINKLIBS ${SANITIZER_CXX_ABI_LIBRARIES} ${SANITIZER_COMMON_LINK_LIBS})
 
similarity index 99%
rename from compiler-rt/lib/tsan/dd/dd_interceptors.cc
rename to compiler-rt/lib/tsan/dd/dd_interceptors.cpp
index 35a72eb..35a0beb 100644 (file)
@@ -1,4 +1,4 @@
-//===-- dd_interceptors.cc ------------------------------------------------===//
+//===-- dd_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.
similarity index 98%
rename from compiler-rt/lib/tsan/dd/dd_rtl.cc
rename to compiler-rt/lib/tsan/dd/dd_rtl.cpp
index 08652ba..2095217 100644 (file)
@@ -1,4 +1,4 @@
-//===-- dd_rtl.cc ---------------------------------------------------------===//
+//===-- dd_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.
index 9bf13b4..ee8768b 100644 (file)
@@ -1,4 +1,4 @@
-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
+type tsan_go.cpp ..\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.cpp
 
-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
+gcc -c -o race_windows_amd64.syso gotsan.cpp -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 4338596..99a6a9e 100755 (executable)
@@ -3,7 +3,7 @@
 set -e
 
 SRCS="
-       tsan_go.cc
+       tsan_go.cpp
        ../rtl/tsan_clock.cpp
        ../rtl/tsan_external.cpp
        ../rtl/tsan_flags.cpp
@@ -144,9 +144,9 @@ fi
 
 SRCS="$SRCS $ADD_SRCS"
 
-rm -f $DIR/gotsan.cc
+rm -f $DIR/gotsan.cpp
 for F in $SRCS; do
-       cat $F >> $DIR/gotsan.cc
+       cat $F >> $DIR/gotsan.cpp
 done
 
 FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -std=c++11 -Wall -fno-exceptions -fno-rtti -DSANITIZER_GO=1 -DSANITIZER_DEADLOCK_DETECTOR_VERSION=2 $OSCFLAGS $ARCHCFLAGS"
@@ -162,9 +162,9 @@ else
 fi
 
 if [ "$SILENT" != "1" ]; then
-  echo $CC gotsan.cc -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS
+  echo $CC gotsan.cpp -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS
 fi
-$CC $DIR/gotsan.cc -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS
+$CC $DIR/gotsan.cpp -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS
 
 $CC $OSCFLAGS $ARCHCFLAGS test.c $DIR/race_$SUFFIX.syso -g -o $DIR/test $OSLDFLAGS $LDFLAGS
 
similarity index 99%
rename from compiler-rt/lib/tsan/go/tsan_go.cc
rename to compiler-rt/lib/tsan/go/tsan_go.cpp
index dfd1e1d..271f6bc 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tsan_go.cc --------------------------------------------------------===//
+//===-- tsan_go.cpp -------------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.