head 1.4; access; symbols netbsd-11-0-RC6:1.3 netbsd-11-0-RC5:1.3 netbsd-11-0-RC4:1.3 netbsd-11-0-RC3:1.3 netbsd-11-0-RC2:1.3 netbsd-11-0-RC1:1.3 gcc-14-3-0:1.1.1.3 perseant-exfatfs-base-20250801:1.3 netbsd-11:1.3.0.4 netbsd-11-base:1.3 gcc-12-5-0:1.1.1.2 perseant-exfatfs-base-20240630:1.3 gcc-12-4-0:1.1.1.2 perseant-exfatfs:1.3.0.2 perseant-exfatfs-base:1.3 gcc-12-3-0:1.1.1.2 gcc-10-5-0:1.1.1.1 gcc-10-4-0:1.1.1.1 cjep_sun2x:1.2.0.4 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.2 cjep_staticlib_x-base:1.2 gcc-10-3-0:1.1.1.1 FSF:1.1.1; locks; strict; comment @// @; 1.4 date 2025.09.14.00.08.56; author mrg; state Exp; branches; next 1.3; commitid x9D5QEnvbeMI4CaG; 1.3 date 2023.07.31.01.44.56; author mrg; state Exp; branches; next 1.2; commitid q79F5Opf0FLsyTyE; 1.2 date 2021.04.11.23.54.27; author mrg; state dead; branches; next 1.1; commitid wJn7ggfUTEMOWVOC; 1.1 date 2021.04.10.22.09.22; author mrg; state Exp; branches 1.1.1.1; next ; commitid eC4g0MRpqTvEkNOC; 1.1.1.1 date 2021.04.10.22.09.22; author mrg; state Exp; branches; next 1.1.1.2; commitid eC4g0MRpqTvEkNOC; 1.1.1.2 date 2023.07.30.05.20.40; author mrg; state Exp; branches; next 1.1.1.3; commitid tk6nV4mbc9nVEMyE; 1.1.1.3 date 2025.09.13.23.45.04; author mrg; state Exp; branches; next ; commitid KwhwN4krNWa6XBaG; desc @@ 1.4 log @merge GCC 14.3.0. @ text @//===-- 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. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Sanitizer Coverage Controller for Trace PC Guard. #include "sanitizer_platform.h" #if !SANITIZER_FUCHSIA # include "sancov_flags.h" # include "sanitizer_allocator_internal.h" # include "sanitizer_atomic.h" # include "sanitizer_common.h" # include "sanitizer_common/sanitizer_stacktrace.h" # include "sanitizer_file.h" # include "sanitizer_interface_internal.h" using namespace __sanitizer; using AddressRange = LoadedModule::AddressRange; namespace __sancov { namespace { static const u64 Magic64 = 0xC0BFFFFFFFFFFF64ULL; static const u64 Magic32 = 0xC0BFFFFFFFFFFF32ULL; static const u64 Magic = SANITIZER_WORDSIZE == 64 ? Magic64 : Magic32; static fd_t OpenFile(const char* path) { error_t err; fd_t fd = OpenFile(path, WrOnly, &err); if (fd == kInvalidFd) Report("SanitizerCoverage: failed to open %s for writing (reason: %d)\n", path, err); return fd; } static void GetCoverageFilename(char* path, const char* name, const char* extension) { CHECK(name); internal_snprintf(path, kMaxPathLength, "%s/%s.%zd.%s", common_flags()->coverage_dir, name, internal_getpid(), extension); } static void WriteModuleCoverage(char* file_path, const char* module_name, const uptr* pcs, uptr len) { GetCoverageFilename(file_path, StripModuleName(module_name), "sancov"); fd_t fd = OpenFile(file_path); WriteToFile(fd, &Magic, sizeof(Magic)); WriteToFile(fd, pcs, len * sizeof(*pcs)); CloseFile(fd); Printf("SanitizerCoverage: %s: %zd PCs written\n", file_path, len); } static void SanitizerDumpCoverage(const uptr* unsorted_pcs, uptr len) { if (!len) return; char* file_path = static_cast(InternalAlloc(kMaxPathLength)); char* module_name = static_cast(InternalAlloc(kMaxPathLength)); uptr* pcs = static_cast(InternalAlloc(len * sizeof(uptr))); internal_memcpy(pcs, unsorted_pcs, len * sizeof(uptr)); Sort(pcs, len); bool module_found = false; uptr last_base = 0; uptr module_start_idx = 0; for (uptr i = 0; i < len; ++i) { const uptr pc = pcs[i]; if (!pc) continue; if (!GetModuleAndOffsetForPc(pc, nullptr, 0, &pcs[i])) { Printf("ERROR: unknown pc 0x%zx (may happen if dlclose is used)\n", pc); continue; } uptr module_base = pc - pcs[i]; if (module_base != last_base || !module_found) { if (module_found) { WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], i - module_start_idx); } last_base = module_base; module_start_idx = i; module_found = true; GetModuleAndOffsetForPc(pc, module_name, kMaxPathLength, &pcs[i]); } } if (module_found) { WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], len - module_start_idx); } InternalFree(file_path); InternalFree(module_name); InternalFree(pcs); } // Collects trace-pc guard coverage. // This class relies on zero-initialization. class TracePcGuardController { public: void Initialize() { CHECK(!initialized); initialized = true; InitializeSancovFlags(); pc_vector.Initialize(0); } void InitTracePcGuard(u32* start, u32* end) { if (!initialized) Initialize(); CHECK(!*start); CHECK_NE(start, end); u32 i = pc_vector.size(); for (u32* p = start; p < end; p++) *p = ++i; pc_vector.resize(i); } void TracePcGuard(u32* guard, uptr pc) { u32 idx = *guard; if (!idx) return; // we start indices from 1. atomic_uintptr_t* pc_ptr = reinterpret_cast(&pc_vector[idx - 1]); if (atomic_load(pc_ptr, memory_order_relaxed) == 0) atomic_store(pc_ptr, pc, memory_order_relaxed); } void Reset() { internal_memset(&pc_vector[0], 0, sizeof(pc_vector[0]) * pc_vector.size()); } void Dump() { if (!initialized || !common_flags()->coverage) return; __sanitizer_dump_coverage(pc_vector.data(), pc_vector.size()); } private: bool initialized; InternalMmapVectorNoCtor pc_vector; }; static TracePcGuardController pc_guard_controller; // A basic default implementation of callbacks for // -fsanitize-coverage=inline-8bit-counters,pc-table. // Use TOOL_OPTIONS (UBSAN_OPTIONS, etc) to dump the coverage data: // * cov_8bit_counters_out=PATH to dump the 8bit counters. // * cov_pcs_out=PATH to dump the pc table. // // Most users will still need to define their own callbacks for greater // flexibility. namespace SingletonCounterCoverage { static char *counters_beg, *counters_end; static const uptr *pcs_beg, *pcs_end; static void DumpCoverage() { const char* file_path = common_flags()->cov_8bit_counters_out; if (file_path && internal_strlen(file_path)) { fd_t fd = OpenFile(file_path); FileCloser file_closer(fd); uptr size = counters_end - counters_beg; WriteToFile(fd, counters_beg, size); if (common_flags()->verbosity) __sanitizer::Printf("cov_8bit_counters_out: written %zd bytes to %s\n", size, file_path); } file_path = common_flags()->cov_pcs_out; if (file_path && internal_strlen(file_path)) { fd_t fd = OpenFile(file_path); FileCloser file_closer(fd); uptr size = (pcs_end - pcs_beg) * sizeof(uptr); WriteToFile(fd, pcs_beg, size); if (common_flags()->verbosity) __sanitizer::Printf("cov_pcs_out: written %zd bytes to %s\n", size, file_path); } } static void Cov8bitCountersInit(char* beg, char* end) { counters_beg = beg; counters_end = end; Atexit(DumpCoverage); } static void CovPcsInit(const uptr* beg, const uptr* end) { pcs_beg = beg; pcs_end = end; } } // namespace SingletonCounterCoverage } // namespace } // namespace __sancov namespace __sanitizer { void InitializeCoverage(bool enabled, const char *dir) { static bool coverage_enabled = false; if (coverage_enabled) return; // May happen if two sanitizer enable coverage in the same process. coverage_enabled = enabled; Atexit(__sanitizer_cov_dump); AddDieCallback(__sanitizer_cov_dump); } } // namespace __sanitizer extern "C" { SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_dump_coverage(const uptr* pcs, uptr len) { return __sancov::SanitizerDumpCoverage(pcs, len); } SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_pc_guard, u32* guard) { if (!*guard) return; __sancov::pc_guard_controller.TracePcGuard( guard, StackTrace::GetPreviousInstructionPc(GET_CALLER_PC())); } SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_pc_guard_init, u32* start, u32* end) { if (start == end || *start) return; __sancov::pc_guard_controller.InitTracePcGuard(start, end); } SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_dump_trace_pc_guard_coverage() { __sancov::pc_guard_controller.Dump(); } SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov_dump() { __sanitizer_dump_trace_pc_guard_coverage(); } SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov_reset() { __sancov::pc_guard_controller.Reset(); } // Default implementations (weak). // Either empty or very simple. // Most users should redefine them. SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_cmp, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_cmp1, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_cmp2, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_cmp4, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_cmp8, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_const_cmp1, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_const_cmp2, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_const_cmp4, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_const_cmp8, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_switch, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_div4, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_div8, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_gep, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_trace_pc_indir, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load1, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load2, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load4, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load8, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load16, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store1, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store2, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store4, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store8, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store16, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_8bit_counters_init, char* start, char* end) { __sancov::SingletonCounterCoverage::Cov8bitCountersInit(start, end); } SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_bool_flag_init, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_pcs_init, const uptr* beg, const uptr* end) { __sancov::SingletonCounterCoverage::CovPcsInit(beg, end); } } // extern "C" // Weak definition for code instrumented with -fsanitize-coverage=stack-depth // and later linked with code containing a strong definition. // E.g., -fsanitize=fuzzer-no-link // FIXME: Update Apple deployment target so that thread_local is always // supported, and remove the #if. // FIXME: Figure out how this should work on Windows, exported thread_local // symbols are not supported: // "data with thread storage duration may not have dll interface" #if !SANITIZER_APPLE && !SANITIZER_WINDOWS SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE thread_local uptr __sancov_lowest_stack; #endif #endif // !SANITIZER_FUCHSIA @ 1.3 log @make this actually be GCC 12.3.0's libsanitizer. the libsanitizer we used with GCC 9 and GCC 10 was significantly ahead of the GCC 9 and GCC 10 provided versions. @ text @d13 7 a19 5 #include "sancov_flags.h" #include "sanitizer_allocator_internal.h" #include "sanitizer_atomic.h" #include "sanitizer_common.h" #include "sanitizer_file.h" d77 1 a77 1 if (!__sanitizer_get_module_and_offset_for_pc(pc, nullptr, 0, &pcs[i])) { d92 1 a92 2 __sanitizer_get_module_and_offset_for_pc(pc, module_name, kMaxPathLength, &pcs[i]); d226 2 a227 1 __sancov::pc_guard_controller.TracePcGuard(guard, GET_CALLER_PC() - 1); d262 10 d285 6 d292 2 a293 1 SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE uptr __sancov_lowest_stack; @ 1.2 log @revert sanitizer back to the version we were using with GCC 9, since that one was already newer than the GCC 10 version. @ text @d76 1 a76 1 Printf("ERROR: unknown pc 0x%x (may happen if dlclose is used)\n", pc); d154 49 d243 3 a245 1 // Default empty implementations (weak). Users should redefine them. d260 9 a268 2 SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_8bit_counters_init, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_pcs_init, void) {} @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of GCC 10.3.0. main changes include: caveats: - ABI issue between c++14 and c++17 fixed - profile mode is removed from libstdc++ - -fno-common is now the default new features: - new flags -fallocation-dce, -fprofile-partial-training, -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer - many new compile and link time optimisations - enhanced drive optimisations - openacc 2.6 support - openmp 5.0 features - new warnings: -Wstring-compare and -Wzero-length-bounds - extended warnings: -Warray-bounds, -Wformat-overflow, -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow, -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags - some likely C2X features implemented - more C++20 implemented - many new arm & intel CPUs known hundreds of reported bugs are fixed. full list of changes can be found at: https://gcc.gnu.org/gcc-10/changes.html @ text @@ 1.1.1.2 log @initial import of GCC 12.3.0. major changes in GCC 11 included: - The default mode for C++ is now -std=gnu++17 instead of -std=gnu++14. - When building GCC itself, the host compiler must now support C++11, rather than C++98. - Some short options of the gcov tool have been renamed: -i to -j and -j to -H. - ThreadSanitizer improvements. - Introduce Hardware-assisted AddressSanitizer support. - For targets that produce DWARF debugging information GCC now defaults to DWARF version 5. This can produce up to 25% more compact debug information compared to earlier versions. - Many optimisations. - The existing malloc attribute has been extended so that it can be used to identify allocator/deallocator API pairs. A pair of new -Wmismatched-dealloc and -Wmismatched-new-delete warnings are added. - Other new warnings: -Wsizeof-array-div, enabled by -Wall, warns about divisions of two sizeof operators when the first one is applied to an array and the divisor does not equal the size of the array element. -Wstringop-overread, enabled by default, warns about calls to string functions reading past the end of the arrays passed to them as arguments. -Wtsan, enabled by default, warns about unsupported features in ThreadSanitizer (currently std::atomic_thread_fence). - Enchanced warnings: -Wfree-nonheap-object detects many more instances of calls to deallocation functions with pointers not returned from a dynamic memory allocation function. -Wmaybe-uninitialized diagnoses passing pointers or references to uninitialized memory to functions taking const-qualified arguments. -Wuninitialized detects reads from uninitialized dynamically allocated memory. -Warray-parameter warns about functions with inconsistent array forms. -Wvla-parameter warns about functions with inconsistent VLA forms. - Several new features from the upcoming C2X revision of the ISO C standard are supported with -std=c2x and -std=gnu2x. - Several C++20 features have been implemented. - The C++ front end has experimental support for some of the upcoming C++23 draft. - Several new C++ warnings. - Enhanced Arm, AArch64, x86, and RISC-V CPU support. - The implementation of how program state is tracked within -fanalyzer has been completely rewritten with many enhancements. see https://gcc.gnu.org/gcc-11/changes.html for a full list. major changes in GCC 12 include: - An ABI incompatibility between C and C++ when passing or returning by value certain aggregates containing zero width bit-fields has been discovered on various targets. x86-64, ARM and AArch64 will always ignore them (so there is a C ABI incompatibility between GCC 11 and earlier with GCC 12 or later), PowerPC64 ELFv2 always take them into account (so there is a C++ ABI incompatibility, GCC 4.4 and earlier compatible with GCC 12 or later, incompatible with GCC 4.5 through GCC 11). RISC-V has changed the handling of these already starting with GCC 10. As the ABI requires, MIPS takes them into account handling function return values so there is a C++ ABI incompatibility with GCC 4.5 through 11. - STABS: Support for emitting the STABS debugging format is deprecated and will be removed in the next release. All ports now default to emit DWARF (version 2 or later) debugging info or are obsoleted. - Vectorization is enabled at -O2 which is now equivalent to the original -O2 -ftree-vectorize -fvect-cost-model=very-cheap. - GCC now supports the ShadowCallStack sanitizer. - Support for __builtin_shufflevector compatible with the clang language extension was added. - Support for attribute unavailable was added. - Support for __builtin_dynamic_object_size compatible with the clang language extension was added. - New warnings: -Wbidi-chars warns about potentially misleading UTF-8 bidirectional control characters. -Warray-compare warns about comparisons between two operands of array type. - Some new features from the upcoming C2X revision of the ISO C standard are supported with -std=c2x and -std=gnu2x. - Several C++23 features have been implemented. - Many C++ enhancements across warnings and -f options. see https://gcc.gnu.org/gcc-12/changes.html for a full list. @ text @d76 1 a76 1 Printf("ERROR: unknown pc 0x%zx (may happen if dlclose is used)\n", pc); a153 49 // A basic default implementation of callbacks for // -fsanitize-coverage=inline-8bit-counters,pc-table. // Use TOOL_OPTIONS (UBSAN_OPTIONS, etc) to dump the coverage data: // * cov_8bit_counters_out=PATH to dump the 8bit counters. // * cov_pcs_out=PATH to dump the pc table. // // Most users will still need to define their own callbacks for greater // flexibility. namespace SingletonCounterCoverage { static char *counters_beg, *counters_end; static const uptr *pcs_beg, *pcs_end; static void DumpCoverage() { const char* file_path = common_flags()->cov_8bit_counters_out; if (file_path && internal_strlen(file_path)) { fd_t fd = OpenFile(file_path); FileCloser file_closer(fd); uptr size = counters_end - counters_beg; WriteToFile(fd, counters_beg, size); if (common_flags()->verbosity) __sanitizer::Printf("cov_8bit_counters_out: written %zd bytes to %s\n", size, file_path); } file_path = common_flags()->cov_pcs_out; if (file_path && internal_strlen(file_path)) { fd_t fd = OpenFile(file_path); FileCloser file_closer(fd); uptr size = (pcs_end - pcs_beg) * sizeof(uptr); WriteToFile(fd, pcs_beg, size); if (common_flags()->verbosity) __sanitizer::Printf("cov_pcs_out: written %zd bytes to %s\n", size, file_path); } } static void Cov8bitCountersInit(char* beg, char* end) { counters_beg = beg; counters_end = end; Atexit(DumpCoverage); } static void CovPcsInit(const uptr* beg, const uptr* end) { pcs_beg = beg; pcs_end = end; } } // namespace SingletonCounterCoverage d194 1 a194 3 // Default implementations (weak). // Either empty or very simple. // Most users should redefine them. d209 2 a210 9 SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_8bit_counters_init, char* start, char* end) { __sancov::SingletonCounterCoverage::Cov8bitCountersInit(start, end); } SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_bool_flag_init, void) {} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_pcs_init, const uptr* beg, const uptr* end) { __sancov::SingletonCounterCoverage::CovPcsInit(beg, end); } @ 1.1.1.3 log @initial import of GCC 14.3.0. major changes in GCC 13: - improved sanitizer - zstd debug info compression - LTO improvements - SARIF based diagnostic support - new warnings: -Wxor-used-as-pow, -Wenum-int-mismatch, -Wself-move, -Wdangling-reference - many new -Wanalyzer* specific warnings - enhanced warnings: -Wpessimizing-move, -Wredundant-move - new attributes to mark file descriptors, c++23 "assume" - several C23 features added - several C++23 features added - many new features for Arm, x86, RISC-V major changes in GCC 14: - more strict C99 or newer support - ia64* marked deprecated (but seemingly still in GCC 15.) - several new hardening features - support for "hardbool", which can have user supplied values of true/false - explicit support for stack scrubbing upon function exit - better auto-vectorisation support - added clang-compatible __has_feature and __has_extension - more C23, including -std=c23 - several C++26 features added - better diagnostics in C++ templates - new warnings: -Wnrvo, Welaborated-enum-base - many new features for Arm, x86, RISC-V - possible ABI breaking change for SPARC64 and small structures with arrays of floats. @ text @d13 5 a17 7 # include "sancov_flags.h" # include "sanitizer_allocator_internal.h" # include "sanitizer_atomic.h" # include "sanitizer_common.h" # include "sanitizer_common/sanitizer_stacktrace.h" # include "sanitizer_file.h" # include "sanitizer_interface_internal.h" d75 1 a75 1 if (!GetModuleAndOffsetForPc(pc, nullptr, 0, &pcs[i])) { d90 2 a91 1 GetModuleAndOffsetForPc(pc, module_name, kMaxPathLength, &pcs[i]); d225 1 a225 2 __sancov::pc_guard_controller.TracePcGuard( guard, StackTrace::GetPreviousInstructionPc(GET_CALLER_PC())); a259 10 SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load1, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load2, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load4, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load8, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_load16, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store1, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store2, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store4, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store8, void){} SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_store16, void){} a272 6 // FIXME: Update Apple deployment target so that thread_local is always // supported, and remove the #if. // FIXME: Figure out how this should work on Windows, exported thread_local // symbols are not supported: // "data with thread storage duration may not have dll interface" #if !SANITIZER_APPLE && !SANITIZER_WINDOWS d274 1 a274 2 thread_local uptr __sancov_lowest_stack; #endif @