diff options
author | Kamil Rytarowski <n54@gmx.com> | 2017-08-08 20:49:20 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2017-08-08 20:49:20 +0000 |
commit | c9bcc8dc9d36a97bf9e9885a286cf6bf9c302ad8 (patch) | |
tree | 023fe4f013eb4145466b74f451c0d9633f8e80f6 /compiler-rt/lib/ubsan | |
parent | c187cabe41f0ebde62f3fbbc02a8de45c87ee2a0 (diff) | |
download | bcm5719-llvm-c9bcc8dc9d36a97bf9e9885a286cf6bf9c302ad8.tar.gz bcm5719-llvm-c9bcc8dc9d36a97bf9e9885a286cf6bf9c302ad8.zip |
Enable ubsan on NetBSD
Summary:
Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, vitalybuka, kcc, filcab, fjricci
Reviewed By: fjricci
Subscribers: srhines, kubamracek, mgorny, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36483
llvm-svn: 310412
Diffstat (limited to 'compiler-rt/lib/ubsan')
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_platform.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_platform.h b/compiler-rt/lib/ubsan/ubsan_platform.h index 26e89f8c904..a26c375571c 100644 --- a/compiler-rt/lib/ubsan/ubsan_platform.h +++ b/compiler-rt/lib/ubsan/ubsan_platform.h @@ -14,9 +14,10 @@ #define UBSAN_PLATFORM_H // 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__) || \ +#if (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || \ + defined(__NetBSD__)) && \ + (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \ + defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__) || \ defined(__s390__)) # define CAN_SANITIZE_UB 1 #elif defined(_WIN32) || defined(__Fuchsia__) |