mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 23:36:40 +00:00
compiler-rt: Rename .cc file in lib/sanitizer_common to .cpp
See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $f . ; done and manually updated (many) references to renamed files found by that. llvm-svn: 367463
This commit is contained in:
parent
b42a1c6967
commit
65492d959b
@ -173,7 +173,7 @@ inline ALWAYS_INLINE uintptr_t GetPreviousInstructionPc(uintptr_t PC) {
|
||||
}
|
||||
|
||||
/// \return the address of the next instruction.
|
||||
/// Note: the logic is copied from `sanitizer_common/sanitizer_stacktrace.cc`
|
||||
/// Note: the logic is copied from `sanitizer_common/sanitizer_stacktrace.cpp`
|
||||
ALWAYS_INLINE uintptr_t TracePC::GetNextInstructionPc(uintptr_t PC) {
|
||||
#if defined(__mips__)
|
||||
return PC + 8;
|
||||
|
@ -2,89 +2,92 @@
|
||||
# These components are shared between AddressSanitizer and ThreadSanitizer.
|
||||
|
||||
set(SANITIZER_SOURCES_NOTERMINATION
|
||||
sanitizer_allocator.cc
|
||||
sanitizer_common.cc
|
||||
sanitizer_deadlock_detector1.cc
|
||||
sanitizer_deadlock_detector2.cc
|
||||
sanitizer_errno.cc
|
||||
sanitizer_file.cc
|
||||
sanitizer_flags.cc
|
||||
sanitizer_flag_parser.cc
|
||||
sanitizer_fuchsia.cc
|
||||
sanitizer_libc.cc
|
||||
sanitizer_libignore.cc
|
||||
sanitizer_linux.cc
|
||||
sanitizer_linux_s390.cc
|
||||
sanitizer_mac.cc
|
||||
sanitizer_netbsd.cc
|
||||
sanitizer_openbsd.cc
|
||||
sanitizer_persistent_allocator.cc
|
||||
sanitizer_platform_limits_freebsd.cc
|
||||
sanitizer_platform_limits_linux.cc
|
||||
sanitizer_platform_limits_netbsd.cc
|
||||
sanitizer_platform_limits_openbsd.cc
|
||||
sanitizer_platform_limits_posix.cc
|
||||
sanitizer_platform_limits_solaris.cc
|
||||
sanitizer_posix.cc
|
||||
sanitizer_printf.cc
|
||||
sanitizer_procmaps_common.cc
|
||||
sanitizer_procmaps_bsd.cc
|
||||
sanitizer_procmaps_linux.cc
|
||||
sanitizer_procmaps_mac.cc
|
||||
sanitizer_procmaps_solaris.cc
|
||||
sanitizer_rtems.cc
|
||||
sanitizer_solaris.cc
|
||||
sanitizer_stoptheworld_mac.cc
|
||||
sanitizer_suppressions.cc
|
||||
sanitizer_tls_get_addr.cc
|
||||
sanitizer_thread_registry.cc
|
||||
sanitizer_type_traits.cc
|
||||
sanitizer_win.cc
|
||||
sanitizer_allocator.cpp
|
||||
sanitizer_common.cpp
|
||||
sanitizer_deadlock_detector1.cpp
|
||||
sanitizer_deadlock_detector2.cpp
|
||||
sanitizer_errno.cpp
|
||||
sanitizer_file.cpp
|
||||
sanitizer_flags.cpp
|
||||
sanitizer_flag_parser.cpp
|
||||
sanitizer_fuchsia.cpp
|
||||
sanitizer_libc.cpp
|
||||
sanitizer_libignore.cpp
|
||||
sanitizer_linux.cpp
|
||||
sanitizer_linux_s390.cpp
|
||||
sanitizer_mac.cpp
|
||||
sanitizer_netbsd.cpp
|
||||
sanitizer_openbsd.cpp
|
||||
sanitizer_persistent_allocator.cpp
|
||||
sanitizer_platform_limits_freebsd.cpp
|
||||
sanitizer_platform_limits_linux.cpp
|
||||
sanitizer_platform_limits_netbsd.cpp
|
||||
sanitizer_platform_limits_openbsd.cpp
|
||||
sanitizer_platform_limits_posix.cpp
|
||||
sanitizer_platform_limits_solaris.cpp
|
||||
sanitizer_posix.cpp
|
||||
sanitizer_printf.cpp
|
||||
sanitizer_procmaps_common.cpp
|
||||
sanitizer_procmaps_bsd.cpp
|
||||
sanitizer_procmaps_linux.cpp
|
||||
sanitizer_procmaps_mac.cpp
|
||||
sanitizer_procmaps_solaris.cpp
|
||||
sanitizer_rtems.cpp
|
||||
sanitizer_solaris.cpp
|
||||
sanitizer_stoptheworld_mac.cpp
|
||||
sanitizer_suppressions.cpp
|
||||
sanitizer_tls_get_addr.cpp
|
||||
sanitizer_thread_registry.cpp
|
||||
sanitizer_type_traits.cpp
|
||||
sanitizer_win.cpp
|
||||
)
|
||||
|
||||
set(SANITIZER_SOURCES
|
||||
${SANITIZER_SOURCES_NOTERMINATION} sanitizer_termination.cc)
|
||||
${SANITIZER_SOURCES_NOTERMINATION}
|
||||
sanitizer_termination.cpp
|
||||
)
|
||||
|
||||
# Libc functions stubs. These sources should be linked instead of
|
||||
# SANITIZER_LIBCDEP_SOURCES when sanitizer_common library must not depend on
|
||||
# libc.
|
||||
set(SANITIZER_NOLIBC_SOURCES
|
||||
sanitizer_common_nolibc.cc)
|
||||
sanitizer_common_nolibc.cpp
|
||||
)
|
||||
|
||||
set(SANITIZER_LIBCDEP_SOURCES
|
||||
sanitizer_common_libcdep.cc
|
||||
sanitizer_allocator_checks.cc
|
||||
sanitizer_linux_libcdep.cc
|
||||
sanitizer_mac_libcdep.cc
|
||||
sanitizer_posix_libcdep.cc
|
||||
sanitizer_stoptheworld_linux_libcdep.cc
|
||||
sanitizer_stoptheworld_netbsd_libcdep.cc
|
||||
sanitizer_common_libcdep.cpp
|
||||
sanitizer_allocator_checks.cpp
|
||||
sanitizer_linux_libcdep.cpp
|
||||
sanitizer_mac_libcdep.cpp
|
||||
sanitizer_posix_libcdep.cpp
|
||||
sanitizer_stoptheworld_linux_libcdep.cpp
|
||||
sanitizer_stoptheworld_netbsd_libcdep.cpp
|
||||
)
|
||||
|
||||
set(SANITIZER_COVERAGE_SOURCES
|
||||
sancov_flags.cc
|
||||
sanitizer_coverage_fuchsia.cc
|
||||
sanitizer_coverage_libcdep_new.cc
|
||||
sanitizer_coverage_win_sections.cc
|
||||
sancov_flags.cpp
|
||||
sanitizer_coverage_fuchsia.cpp
|
||||
sanitizer_coverage_libcdep_new.cpp
|
||||
sanitizer_coverage_win_sections.cpp
|
||||
)
|
||||
|
||||
set(SANITIZER_SYMBOLIZER_SOURCES
|
||||
sanitizer_allocator_report.cc
|
||||
sanitizer_stackdepot.cc
|
||||
sanitizer_stacktrace.cc
|
||||
sanitizer_stacktrace_libcdep.cc
|
||||
sanitizer_stacktrace_printer.cc
|
||||
sanitizer_stacktrace_sparc.cc
|
||||
sanitizer_symbolizer.cc
|
||||
sanitizer_symbolizer_libbacktrace.cc
|
||||
sanitizer_symbolizer_libcdep.cc
|
||||
sanitizer_symbolizer_mac.cc
|
||||
sanitizer_symbolizer_markup.cc
|
||||
sanitizer_symbolizer_posix_libcdep.cc
|
||||
sanitizer_symbolizer_report.cc
|
||||
sanitizer_symbolizer_win.cc
|
||||
sanitizer_unwind_linux_libcdep.cc
|
||||
sanitizer_unwind_win.cc
|
||||
sanitizer_allocator_report.cpp
|
||||
sanitizer_stackdepot.cpp
|
||||
sanitizer_stacktrace.cpp
|
||||
sanitizer_stacktrace_libcdep.cpp
|
||||
sanitizer_stacktrace_printer.cpp
|
||||
sanitizer_stacktrace_sparc.cpp
|
||||
sanitizer_symbolizer.cpp
|
||||
sanitizer_symbolizer_libbacktrace.cpp
|
||||
sanitizer_symbolizer_libcdep.cpp
|
||||
sanitizer_symbolizer_mac.cpp
|
||||
sanitizer_symbolizer_markup.cpp
|
||||
sanitizer_symbolizer_posix_libcdep.cpp
|
||||
sanitizer_symbolizer_report.cpp
|
||||
sanitizer_symbolizer_win.cpp
|
||||
sanitizer_unwind_linux_libcdep.cpp
|
||||
sanitizer_unwind_win.cpp
|
||||
)
|
||||
|
||||
# Explicitly list all sanitizer_common headers. Not all of these are
|
||||
@ -278,27 +281,27 @@ if(WIN32)
|
||||
add_compiler_rt_object_libraries(SanitizerCommonWeakInterception
|
||||
${SANITIZER_COMMON_SUPPORTED_OS}
|
||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||
SOURCES sanitizer_win_weak_interception.cc
|
||||
SOURCES sanitizer_win_weak_interception.cpp
|
||||
CFLAGS ${SANITIZER_CFLAGS} -DSANITIZER_DYNAMIC
|
||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||
add_compiler_rt_object_libraries(SancovWeakInterception
|
||||
${SANITIZER_COMMON_SUPPORTED_OS}
|
||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||
SOURCES sanitizer_coverage_win_weak_interception.cc
|
||||
SOURCES sanitizer_coverage_win_weak_interception.cpp
|
||||
CFLAGS ${SANITIZER_CFLAGS} -DSANITIZER_DYNAMIC
|
||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||
|
||||
add_compiler_rt_object_libraries(SanitizerCommonDllThunk
|
||||
${SANITIZER_COMMON_SUPPORTED_OS}
|
||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||
SOURCES sanitizer_win_dll_thunk.cc
|
||||
SOURCES sanitizer_win_dll_thunk.cpp
|
||||
CFLAGS ${SANITIZER_CFLAGS} -DSANITIZER_DLL_THUNK
|
||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||
add_compiler_rt_object_libraries(SancovDllThunk
|
||||
${SANITIZER_COMMON_SUPPORTED_OS}
|
||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||
SOURCES sanitizer_coverage_win_dll_thunk.cc
|
||||
sanitizer_coverage_win_sections.cc
|
||||
SOURCES sanitizer_coverage_win_dll_thunk.cpp
|
||||
sanitizer_coverage_win_sections.cpp
|
||||
CFLAGS ${SANITIZER_CFLAGS} -DSANITIZER_DLL_THUNK
|
||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||
|
||||
@ -311,14 +314,14 @@ if(WIN32)
|
||||
add_compiler_rt_object_libraries(SanitizerCommonDynamicRuntimeThunk
|
||||
${SANITIZER_COMMON_SUPPORTED_OS}
|
||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||
SOURCES sanitizer_win_dynamic_runtime_thunk.cc
|
||||
SOURCES sanitizer_win_dynamic_runtime_thunk.cpp
|
||||
CFLAGS ${SANITIZER_CFLAGS} ${DYNAMIC_RUNTIME_THUNK_CFLAGS}
|
||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||
add_compiler_rt_object_libraries(SancovDynamicRuntimeThunk
|
||||
${SANITIZER_COMMON_SUPPORTED_OS}
|
||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||
SOURCES sanitizer_coverage_win_dynamic_runtime_thunk.cc
|
||||
sanitizer_coverage_win_sections.cc
|
||||
SOURCES sanitizer_coverage_win_dynamic_runtime_thunk.cpp
|
||||
sanitizer_coverage_win_sections.cpp
|
||||
CFLAGS ${SANITIZER_CFLAGS} ${DYNAMIC_RUNTIME_THUNK_CFLAGS}
|
||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||
endif()
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- sancov_flags.cc -----------------------------------------*- C++ -*-===//
|
||||
//===-- sancov_flags.cpp ----------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_allocator.cc --------------------------------------------===//
|
||||
//===-- sanitizer_allocator.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 @@
|
||||
//===-- sanitizer_allocator_checks.cc ---------------------------*- C++ -*-===//
|
||||
//===-- sanitizer_allocator_checks.cpp --------------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_allocator_report.cc ---------------------------*- C++ -*-===//
|
||||
//===-- sanitizer_allocator_report.cpp --------------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_common.cc -----------------------------------------------===//
|
||||
//===-- sanitizer_common.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
@ -669,7 +669,7 @@ bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size,
|
||||
error_t *errno_p = nullptr);
|
||||
|
||||
// When adding a new architecture, don't forget to also update
|
||||
// script/asan_symbolize.py and sanitizer_symbolizer_libcdep.cc.
|
||||
// script/asan_symbolize.py and sanitizer_symbolizer_libcdep.cpp.
|
||||
inline const char *ModuleArchToString(ModuleArch arch) {
|
||||
switch (arch) {
|
||||
case kModuleArchUnknown:
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_common_libcdep.cc ---------------------------------------===//
|
||||
//===-- sanitizer_common_libcdep.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 @@
|
||||
//===-- sanitizer_common_nolibc.cc ----------------------------------------===//
|
||||
//===-- sanitizer_common_nolibc.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 @@
|
||||
//===-- sanitizer_coverage_fuchsia.cc -------------------------------------===//
|
||||
//===-- sanitizer_coverage_fuchsia.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 @@
|
||||
//===-- sanitizer_coverage_libcdep_new.cc ---------------------------------===//
|
||||
//===-- sanitizer_coverage_libcdep_new.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 @@
|
||||
//===-- sanitizer_coverage_win_dll_thunk.cc -------------------------------===//
|
||||
//===-- sanitizer_coverage_win_dll_thunk.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 @@
|
||||
//===-- sanitizer_coverage_win_dynamic_runtime_thunk.cc -------------------===//
|
||||
//===-- sanitizer_coverage_win_dynamic_runtime_thunk.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 @@
|
||||
//===-- sanitizer_coverage_win_sections.cc --------------------------------===//
|
||||
//===-- sanitizer_coverage_win_sections.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 @@
|
||||
//===-- sanitizer_coverage_win_weak_interception.cc -----------------------===//
|
||||
//===-- sanitizer_coverage_win_weak_interception.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 @@
|
||||
//===-- sanitizer_deadlock_detector1.cc -----------------------------------===//
|
||||
//===-- sanitizer_deadlock_detector1.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 @@
|
||||
//===-- sanitizer_deadlock_detector2.cc -----------------------------------===//
|
||||
//===-- sanitizer_deadlock_detector2.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 @@
|
||||
//===-- sanitizer_errno.cc --------------------------------------*- C++ -*-===//
|
||||
//===-- sanitizer_errno.cpp -------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_file.cc ------------------------------------------------===//
|
||||
//===-- sanitizer_file.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,7 +8,7 @@
|
||||
//
|
||||
// This file is shared between AddressSanitizer and ThreadSanitizer
|
||||
// run-time libraries. It defines filesystem-related interfaces. This
|
||||
// is separate from sanitizer_common.cc so that it's simpler to disable
|
||||
// is separate from sanitizer_common.cpp so that it's simpler to disable
|
||||
// all the filesystem support code for a port that doesn't use it.
|
||||
//
|
||||
//===---------------------------------------------------------------------===//
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_flag_parser.cc ------------------------------------------===//
|
||||
//===-- sanitizer_flag_parser.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 @@
|
||||
//===-- sanitizer_flags.cc ------------------------------------------------===//
|
||||
//===-- sanitizer_flags.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_fuchsia.cc ----------------------------------------------===//
|
||||
//===-- sanitizer_fuchsia.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 @@
|
||||
//===-- sanitizer_libc.cc -------------------------------------------------===//
|
||||
//===-- sanitizer_libc.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 @@
|
||||
//===-- sanitizer_libignore.cc --------------------------------------------===//
|
||||
//===-- sanitizer_libignore.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 @@
|
||||
//===-- sanitizer_linux.cc ------------------------------------------------===//
|
||||
//===-- sanitizer_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 @@
|
||||
//===-- sanitizer_linux_libcdep.cc ----------------------------------------===//
|
||||
//===-- sanitizer_linux_libcdep.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 @@
|
||||
//===-- sanitizer_linux_s390.cc -------------------------------------------===//
|
||||
//===-- sanitizer_linux_s390.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 @@
|
||||
//===-- sanitizer_mac.cc --------------------------------------------------===//
|
||||
//===-- sanitizer_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 @@
|
||||
//===-- sanitizer_mac_libcdep.cc ------------------------------------------===//
|
||||
//===-- sanitizer_mac_libcdep.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 @@
|
||||
//===-- sanitizer_netbsd.cc -----------------------------------------------===//
|
||||
//===-- sanitizer_netbsd.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 @@
|
||||
//===-- sanitizer_openbsd.cc ----------------------------------------------===//
|
||||
//===-- sanitizer_openbsd.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 @@
|
||||
//===-- sanitizer_persistent_allocator.cc -----------------------*- C++ -*-===//
|
||||
//===-- sanitizer_persistent_allocator.cpp ----------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_platform_limits_freebsd.cc ------------------------------===//
|
||||
//===-- sanitizer_platform_limits_freebsd.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 @@
|
||||
//===-- sanitizer_platform_limits_linux.cc --------------------------------===//
|
||||
//===-- sanitizer_platform_limits_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.
|
||||
@ -13,7 +13,7 @@
|
||||
|
||||
// This is a separate compilation unit for linux headers that conflict with
|
||||
// userspace headers.
|
||||
// Most "normal" includes go in sanitizer_platform_limits_posix.cc
|
||||
// Most "normal" includes go in sanitizer_platform_limits_posix.cpp
|
||||
|
||||
#include "sanitizer_platform.h"
|
||||
#if SANITIZER_LINUX
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_platform_limits_netbsd.cc -------------------------------===//
|
||||
//===-- sanitizer_platform_limits_netbsd.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 @@
|
||||
//===-- sanitizer_platform_limits_openbsd.cc ------------------------------===//
|
||||
//===-- sanitizer_platform_limits_openbsd.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 @@
|
||||
//===-- sanitizer_platform_limits_posix.cc --------------------------------===//
|
||||
//===-- sanitizer_platform_limits_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 @@
|
||||
//===-- sanitizer_platform_limits_solaris.cc ------------------------------===//
|
||||
//===-- sanitizer_platform_limits_solaris.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 @@
|
||||
//===-- sanitizer_posix.cc ------------------------------------------------===//
|
||||
//===-- sanitizer_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 @@
|
||||
//===-- sanitizer_posix_libcdep.cc ----------------------------------------===//
|
||||
//===-- sanitizer_posix_libcdep.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 @@
|
||||
//===-- sanitizer_printf.cc -----------------------------------------------===//
|
||||
//===-- sanitizer_printf.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 @@
|
||||
//===-- sanitizer_procmaps_bsd.cc -----------------------------------------===//
|
||||
//===-- sanitizer_procmaps_bsd.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 @@
|
||||
//===-- sanitizer_procmaps_common.cc --------------------------------------===//
|
||||
//===-- sanitizer_procmaps_common.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 @@
|
||||
//===-- sanitizer_procmaps_linux.cc ---------------------------------------===//
|
||||
//===-- sanitizer_procmaps_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 @@
|
||||
//===-- sanitizer_procmaps_mac.cc -----------------------------------------===//
|
||||
//===-- sanitizer_procmaps_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 @@
|
||||
//===-- sanitizer_procmaps_solaris.cc -------------------------------------===//
|
||||
//===-- sanitizer_procmaps_solaris.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 @@
|
||||
//===-- sanitizer_rtems.cc ------------------------------------------------===//
|
||||
//===-- sanitizer_rtems.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 @@
|
||||
//===-- sanitizer_solaris.cc ----------------------------------------------===//
|
||||
//===-- sanitizer_solaris.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 @@
|
||||
//===-- sanitizer_stackdepot.cc -------------------------------------------===//
|
||||
//===-- sanitizer_stackdepot.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 @@
|
||||
//===-- sanitizer_stacktrace.cc -------------------------------------------===//
|
||||
//===-- sanitizer_stacktrace.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 @@
|
||||
//===-- sanitizer_stacktrace_libcdep.cc -----------------------------------===//
|
||||
//===-- sanitizer_stacktrace_libcdep.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 @@
|
||||
//===-- sanitizer_common.cc -----------------------------------------------===//
|
||||
//===-- sanitizer_common.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
namespace __sanitizer {
|
||||
|
||||
// sanitizer_symbolizer_markup.cc implements these differently.
|
||||
// sanitizer_symbolizer_markup.cpp implements these differently.
|
||||
#if !SANITIZER_SYMBOLIZER_MARKUP
|
||||
|
||||
static const char *StripFunctionName(const char *function, const char *prefix) {
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_stacktrace_sparc.cc -------------------------------------===//
|
||||
//===-- sanitizer_stacktrace_sparc.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 @@
|
||||
//===-- sanitizer_stoptheworld_linux_libcdep.cc ---------------------------===//
|
||||
//===-- sanitizer_stoptheworld_linux_libcdep.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 @@
|
||||
//===-- sanitizer_stoptheworld_mac.cc -------------------------------------===//
|
||||
//===-- sanitizer_stoptheworld_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 @@
|
||||
//===-- sanitizer_stoptheworld_netbsd_libcdep.cc --------------------------===//
|
||||
//===-- sanitizer_stoptheworld_netbsd_libcdep.cpp -------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -10,7 +10,7 @@
|
||||
// This implementation was inspired by Markus Gutschke's linuxthreads.cc.
|
||||
//
|
||||
// This is a NetBSD variation of Linux stoptheworld implementation
|
||||
// See sanitizer_stoptheworld_linux_libcdep.cc for code comments.
|
||||
// See sanitizer_stoptheworld_linux_libcdep.cpp for code comments.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_suppressions.cc -----------------------------------------===//
|
||||
//===-- sanitizer_suppressions.cpp ----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_symbolizer.cc -------------------------------------------===//
|
||||
//===-- sanitizer_symbolizer.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 @@
|
||||
//===-- sanitizer_symbolizer_libbacktrace.cc ------------------------------===//
|
||||
//===-- sanitizer_symbolizer_libbacktrace.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 @@
|
||||
//===-- sanitizer_symbolizer_libcdep.cc -----------------------------------===//
|
||||
//===-- sanitizer_symbolizer_libcdep.cpp ----------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -25,7 +25,7 @@ Symbolizer *Symbolizer::GetOrInit() {
|
||||
return symbolizer_;
|
||||
}
|
||||
|
||||
// See sanitizer_symbolizer_markup.cc.
|
||||
// See sanitizer_symbolizer_markup.cpp.
|
||||
#if !SANITIZER_SYMBOLIZER_MARKUP
|
||||
|
||||
const char *ExtractToken(const char *str, const char *delims, char **result) {
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_symbolizer_mac.cc ---------------------------------------===//
|
||||
//===-- sanitizer_symbolizer_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 @@
|
||||
//===-- sanitizer_symbolizer_markup.cc ------------------------------------===//
|
||||
//===-- sanitizer_symbolizer_markup.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 @@
|
||||
//===-- sanitizer_symbolizer_posix_libcdep.cc -----------------------------===//
|
||||
//===-- sanitizer_symbolizer_posix_libcdep.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 @@
|
||||
//===-- sanitizer_symbolizer_report.cc ------------------------------------===//
|
||||
//===-- sanitizer_symbolizer_report.cpp -----------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_symbolizer_win.cc ---------------------------------------===//
|
||||
//===-- sanitizer_symbolizer_win.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 @@
|
||||
//===-- sanitizer_termination.cc --------------------------------*- C++ -*-===//
|
||||
//===-- sanitizer_termination.cpp -------------------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_thread_registry.cc --------------------------------------===//
|
||||
//===-- sanitizer_thread_registry.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 @@
|
||||
//===-- sanitizer_tls_get_addr.cc -----------------------------------------===//
|
||||
//===-- sanitizer_tls_get_addr.cpp ----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
@ -42,7 +42,7 @@ struct DTLS {
|
||||
uptr dtv_size;
|
||||
DTV *dtv; // dtv_size elements, allocated by MmapOrDie.
|
||||
|
||||
// Auxiliary fields, don't access them outside sanitizer_tls_get_addr.cc
|
||||
// Auxiliary fields, don't access them outside sanitizer_tls_get_addr.cpp
|
||||
uptr last_memalign_size;
|
||||
uptr last_memalign_ptr;
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_type_traits.cc --------------------------------*- C++ -*-===//
|
||||
//===-- sanitizer_type_traits.cpp -------------------------------*- C++ -*-===//
|
||||
//
|
||||
// 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 @@
|
||||
//===-- sanitizer_unwind_linux_libcdep.cc ---------------------------------===//
|
||||
//===-- sanitizer_unwind_linux_libcdep.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 @@
|
||||
//===-- sanitizer_unwind_win.cc -------------------------------------------===//
|
||||
//===-- sanitizer_unwind_win.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 @@
|
||||
//===-- sanitizer_win.cc --------------------------------------------------===//
|
||||
//===-- sanitizer_win.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -1055,7 +1055,7 @@ pid_t StartSubprocess(const char *program, const char *const argv[],
|
||||
// FIXME: implement on this platform
|
||||
// Should be implemented based on
|
||||
// SymbolizerProcess::StarAtSymbolizerSubprocess
|
||||
// from lib/sanitizer_common/sanitizer_symbolizer_win.cc.
|
||||
// from lib/sanitizer_common/sanitizer_symbolizer_win.cpp.
|
||||
return -1;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_win_dll_thunk.cc ----------------------------------------===//
|
||||
//===-- sanitizer_win_dll_thunk.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 @@
|
||||
//===-- santizer_win_dynamic_runtime_thunk.cc -----------------------------===//
|
||||
//===-- santizer_win_dynamic_runtime_thunk.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 @@
|
||||
//===-- sanitizer_win_weak_interception.cc --------------------------------===//
|
||||
//===-- sanitizer_win_weak_interception.cpp -------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
@ -70,7 +70,7 @@ run_lint ${SANITIZER_INCLUDES_LINT_FILTER} ${SANITIZER_INCLUDES}/*.h &
|
||||
|
||||
# Sanitizer_common
|
||||
COMMON_RTL=${COMPILER_RT}/lib/sanitizer_common
|
||||
run_lint ${COMMON_RTL_INC_LINT_FILTER} ${COMMON_RTL}/*.cc \
|
||||
run_lint ${COMMON_RTL_INC_LINT_FILTER} ${COMMON_RTL}/*.cpp \
|
||||
${COMMON_RTL}/*.h \
|
||||
${COMMON_RTL}/tests/*.cc &
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Implementation of weak hooks from sanitizer_symbolizer_posix_libcdep.cc.
|
||||
// Implementation of weak hooks from sanitizer_symbolizer_posix_libcdep.cpp.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
/* Usage:
|
||||
clang++ -std=c++11 -fno-exceptions -g -fPIC -I. -I../include -Isanitizer \
|
||||
sanitizer_common/tests/sanitizer_allocator_testlib.cc \
|
||||
$(\ls sanitizer_common/sanitizer_*.cc | grep -v sanitizer_common_nolibc.cc) \
|
||||
$(\ls sanitizer_common/sanitizer_*.cpp | grep -v sanitizer_common_nolibc.cpp) \
|
||||
sanitizer_common/sanitizer_linux_x86_64.S \
|
||||
-shared -lpthread -o testmalloc.so
|
||||
LD_PRELOAD=`pwd`/testmalloc.so /your/app
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Tests for sanitizer_printf.cc
|
||||
// Tests for sanitizer_printf.cpp
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
#include "sanitizer_common/sanitizer_common.h"
|
||||
|
@ -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.cc ..\..\sanitizer_common\sanitizer_common.cc ..\..\sanitizer_common\sanitizer_flags.cc ..\..\sanitizer_common\sanitizer_stacktrace.cc ..\..\sanitizer_common\sanitizer_libc.cc ..\..\sanitizer_common\sanitizer_printf.cc ..\..\sanitizer_common\sanitizer_suppressions.cc ..\..\sanitizer_common\sanitizer_thread_registry.cc ..\rtl\tsan_platform_windows.cc ..\..\sanitizer_common\sanitizer_win.cc ..\..\sanitizer_common\sanitizer_deadlock_detector1.cc ..\..\sanitizer_common\sanitizer_stackdepot.cc ..\..\sanitizer_common\sanitizer_persistent_allocator.cc ..\..\sanitizer_common\sanitizer_flag_parser.cc ..\..\sanitizer_common\sanitizer_symbolizer.cc ..\..\sanitizer_common\sanitizer_termination.cc > gotsan.cc
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
|
@ -20,23 +20,23 @@ SRCS="
|
||||
../rtl/tsan_stat.cc
|
||||
../rtl/tsan_suppressions.cc
|
||||
../rtl/tsan_sync.cc
|
||||
../../sanitizer_common/sanitizer_allocator.cc
|
||||
../../sanitizer_common/sanitizer_common.cc
|
||||
../../sanitizer_common/sanitizer_common_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_deadlock_detector2.cc
|
||||
../../sanitizer_common/sanitizer_file.cc
|
||||
../../sanitizer_common/sanitizer_flag_parser.cc
|
||||
../../sanitizer_common/sanitizer_flags.cc
|
||||
../../sanitizer_common/sanitizer_libc.cc
|
||||
../../sanitizer_common/sanitizer_persistent_allocator.cc
|
||||
../../sanitizer_common/sanitizer_printf.cc
|
||||
../../sanitizer_common/sanitizer_suppressions.cc
|
||||
../../sanitizer_common/sanitizer_thread_registry.cc
|
||||
../../sanitizer_common/sanitizer_stackdepot.cc
|
||||
../../sanitizer_common/sanitizer_stacktrace.cc
|
||||
../../sanitizer_common/sanitizer_symbolizer.cc
|
||||
../../sanitizer_common/sanitizer_symbolizer_report.cc
|
||||
../../sanitizer_common/sanitizer_termination.cc
|
||||
../../sanitizer_common/sanitizer_allocator.cpp
|
||||
../../sanitizer_common/sanitizer_common.cpp
|
||||
../../sanitizer_common/sanitizer_common_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_deadlock_detector2.cpp
|
||||
../../sanitizer_common/sanitizer_file.cpp
|
||||
../../sanitizer_common/sanitizer_flag_parser.cpp
|
||||
../../sanitizer_common/sanitizer_flags.cpp
|
||||
../../sanitizer_common/sanitizer_libc.cpp
|
||||
../../sanitizer_common/sanitizer_persistent_allocator.cpp
|
||||
../../sanitizer_common/sanitizer_printf.cpp
|
||||
../../sanitizer_common/sanitizer_suppressions.cpp
|
||||
../../sanitizer_common/sanitizer_thread_registry.cpp
|
||||
../../sanitizer_common/sanitizer_stackdepot.cpp
|
||||
../../sanitizer_common/sanitizer_stacktrace.cpp
|
||||
../../sanitizer_common/sanitizer_symbolizer.cpp
|
||||
../../sanitizer_common/sanitizer_symbolizer_report.cpp
|
||||
../../sanitizer_common/sanitizer_termination.cpp
|
||||
"
|
||||
|
||||
if [ "`uname -a | grep Linux`" != "" ]; then
|
||||
@ -45,14 +45,14 @@ if [ "`uname -a | grep Linux`" != "" ]; then
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_linux.cc
|
||||
../../sanitizer_common/sanitizer_posix.cc
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_linux.cc
|
||||
../../sanitizer_common/sanitizer_linux.cc
|
||||
../../sanitizer_common/sanitizer_linux_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_linux.cpp
|
||||
../../sanitizer_common/sanitizer_linux.cp.cpp
|
||||
../../sanitizer_common/sanitizer_linux_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
|
||||
"
|
||||
if [ "`uname -a | grep ppc64le`" != "" ]; then
|
||||
SUFFIX="linux_ppc64le"
|
||||
@ -73,14 +73,14 @@ elif [ "`uname -a | grep FreeBSD`" != "" ]; then
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_linux.cc
|
||||
../../sanitizer_common/sanitizer_posix.cc
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_bsd.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cc
|
||||
../../sanitizer_common/sanitizer_linux.cc
|
||||
../../sanitizer_common/sanitizer_linux_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_bsd.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cpp
|
||||
../../sanitizer_common/sanitizer_linux.cpp
|
||||
../../sanitizer_common/sanitizer_linux_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
|
||||
"
|
||||
elif [ "`uname -a | grep NetBSD`" != "" ]; then
|
||||
SUFFIX="netbsd_amd64"
|
||||
@ -90,15 +90,15 @@ elif [ "`uname -a | grep NetBSD`" != "" ]; then
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_linux.cc
|
||||
../../sanitizer_common/sanitizer_posix.cc
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_bsd.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cc
|
||||
../../sanitizer_common/sanitizer_linux.cc
|
||||
../../sanitizer_common/sanitizer_linux_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_netbsd.cc
|
||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_bsd.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_common.cpp
|
||||
../../sanitizer_common/sanitizer_linux.cpp
|
||||
../../sanitizer_common/sanitizer_linux_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_netbsd.cpp
|
||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
|
||||
"
|
||||
elif [ "`uname -a | grep Darwin`" != "" ]; then
|
||||
SUFFIX="darwin_amd64"
|
||||
@ -108,10 +108,10 @@ elif [ "`uname -a | grep Darwin`" != "" ]; then
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_mac.cc
|
||||
../../sanitizer_common/sanitizer_mac.cc
|
||||
../../sanitizer_common/sanitizer_posix.cc
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
../../sanitizer_common/sanitizer_procmaps_mac.cc
|
||||
../../sanitizer_common/sanitizer_mac.cpp
|
||||
../../sanitizer_common/sanitizer_posix.cpp
|
||||
../../sanitizer_common/sanitizer_posix_libcdep.cpp
|
||||
../../sanitizer_common/sanitizer_procmaps_mac.cpp
|
||||
"
|
||||
elif [ "`uname -a | grep MINGW`" != "" ]; then
|
||||
SUFFIX="windows_amd64"
|
||||
@ -121,7 +121,7 @@ elif [ "`uname -a | grep MINGW`" != "" ]; then
|
||||
SRCS="
|
||||
$SRCS
|
||||
../rtl/tsan_platform_windows.cc
|
||||
../../sanitizer_common/sanitizer_win.cc
|
||||
../../sanitizer_common/sanitizer_win.cpp
|
||||
"
|
||||
else
|
||||
echo Unknown platform
|
||||
|
@ -5,7 +5,7 @@
|
||||
// the Thread-specific data destructors are not called, so the destructor
|
||||
// "thread_finalize" (defined in tsan_interceptors.cc) can not set the status
|
||||
// of the thread to "ThreadStatusFinished" failing a check in "SetJoined"
|
||||
// (defined in sanitizer_thread_registry.cc). It might seem a bug on glibc,
|
||||
// (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
|
||||
// powerpc64 BE (VMA=46)
|
||||
// UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
|
Loading…
x
Reference in New Issue
Block a user