1018981977
libsanitizer/ * All source files: Merge from upstream 285547. * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New variable. * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it. * asan/Makefile.am (asan_files): Add new files. * asan/Makefile.in: Regenerate. * ubsan/Makefile.in: Likewise. * lsan/Makefile.in: Likewise. * tsan/Makefile.am (tsan_files): Add new files. * tsan/Makefile.in: Regenerate. * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files. (EXTRA_libsanitizer_common_la_SOURCES): Define. (libsanitizer_common_la_LIBADD): Likewise. (libsanitizer_common_la_DEPENDENCIES): Likewise. * sanitizer_common/Makefile.in: Regenerate. * interception/Makefile.in: Likewise. * libbacktace/Makefile.in: Likewise. * Makefile.in: Likewise. * configure: Likewise. * merge.sh: Handle builtins/assembly.h merging. * builtins/assembly.h: New file. * asan/libtool-version: Bump the libasan SONAME. From-SVN: r241977
29 lines
963 B
C++
29 lines
963 B
C++
//===-- ubsan_platform.h ----------------------------------------*- C++ -*-===//
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Defines the platforms which UBSan is supported at.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef UBSAN_PLATFORM_H
|
|
#define UBSAN_PLATFORM_H
|
|
|
|
#ifndef CAN_SANITIZE_UB
|
|
// Other platforms should be easy to add, and probably work as-is.
|
|
#if (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)) && \
|
|
(defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \
|
|
defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__) || \
|
|
defined(__s390__))
|
|
# define CAN_SANITIZE_UB 1
|
|
#elif defined(_WIN32)
|
|
# define CAN_SANITIZE_UB 1
|
|
#else
|
|
# define CAN_SANITIZE_UB 0
|
|
#endif
|
|
#endif //CAN_SANITIZE_UB
|
|
|
|
#endif
|