summaryrefslogtreecommitdiff
path: root/libsanitizer/ubsan/ubsan_platform.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-11-07 10:34:14 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-11-07 09:34:14 +0000
commit21bb1625bd4f183984223ce31bd03ba47ed62f27 (patch)
treeec9efebdb9c19d6e50f4b144a799543507df852f /libsanitizer/ubsan/ubsan_platform.h
parentcb7dc4da4ccc475675b5aec6a08d3e8c0a1761e4 (diff)
downloadgcc-21bb1625bd4f183984223ce31bd03ba47ed62f27.tar.gz
Reapply all revisions mentioned in LOCAL_PATCHES.
2019-11-07 Martin Liska <mliska@suse.cz> * all source files: Reapply all revisions mentioned in LOCAL_PATCHES. From-SVN: r277910
Diffstat (limited to 'libsanitizer/ubsan/ubsan_platform.h')
-rw-r--r--libsanitizer/ubsan/ubsan_platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsanitizer/ubsan/ubsan_platform.h b/libsanitizer/ubsan/ubsan_platform.h
index 71d7fb18c9b..58aabbe67b5 100644
--- a/libsanitizer/ubsan/ubsan_platform.h
+++ b/libsanitizer/ubsan/ubsan_platform.h
@@ -12,6 +12,7 @@
#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(__NetBSD__) || defined(__OpenBSD__) || \
@@ -21,5 +22,6 @@
#else
# define CAN_SANITIZE_UB 0
#endif
+#endif //CAN_SANITIZE_UB
#endif