d: Fix testcase failure of gdc.dg/Wbuiltin_declaration_mismatch2.d.
[official-gcc.git] / libsanitizer / asan / asan_rtl_static.cpp
bloba6f812bb89151d8540e8b96ee6777ef37fc81940
1 //===-- asan_static_rtl.cpp -----------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of AddressSanitizer, an address sanity checker.
11 // Main file of the ASan run-time library.
12 //===----------------------------------------------------------------------===//
14 // This file is empty for now. Main reason to have it is workaround for Windows
15 // build, which complains because no files are part of the asan_static lib.
17 #include "sanitizer_common/sanitizer_common.h"
19 #define REPORT_FUNCTION(Name) \
20 extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \
21 extern "C" void Name##_asm(uptr addr) { Name(addr); }
23 namespace __asan {
25 REPORT_FUNCTION(__asan_report_load1)
26 REPORT_FUNCTION(__asan_report_load2)
27 REPORT_FUNCTION(__asan_report_load4)
28 REPORT_FUNCTION(__asan_report_load8)
29 REPORT_FUNCTION(__asan_report_load16)
30 REPORT_FUNCTION(__asan_report_store1)
31 REPORT_FUNCTION(__asan_report_store2)
32 REPORT_FUNCTION(__asan_report_store4)
33 REPORT_FUNCTION(__asan_report_store8)
34 REPORT_FUNCTION(__asan_report_store16)
36 } // namespace __asan