Fix version check for ATTRIBUTE_GCC_DUMP_PRINTF
[official-gcc.git] / libsanitizer / sanitizer_common / sanitizer_allocator_checks.cc
blob3e6eb61a7d5df9269bad39b2e8d06b2053f8d0c6
1 //===-- sanitizer_allocator_checks.cc ---------------------------*- C++ -*-===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // Various checks shared between ThreadSanitizer, MemorySanitizer, etc. memory
9 // allocators.
11 //===----------------------------------------------------------------------===//
13 #include "sanitizer_errno.h"
15 namespace __sanitizer {
17 void SetErrnoToENOMEM() {
18 errno = errno_ENOMEM;
21 } // namespace __sanitizer