[PATCH] D46453: [sanitizer] Add definitions for Myriad RTEMS platform

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 09:41:37 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT331646: [sanitizer] Add definitions for Myriad RTEMS platform (authored by waltl, committed by ).
Herald added a subscriber: Sanitizers.

Changed prior to commit:
  https://reviews.llvm.org/D46453?vs=145270&id=145487#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D46453

Files:
  lib/sanitizer_common/sanitizer_platform.h


Index: lib/sanitizer_common/sanitizer_platform.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform.h
+++ lib/sanitizer_common/sanitizer_platform.h
@@ -104,6 +104,12 @@
 # define SANITIZER_FUCHSIA 0
 #endif
 
+#if defined(__rtems__)
+# define SANITIZER_RTEMS 1
+#else
+# define SANITIZER_RTEMS 0
+#endif
+
 #define SANITIZER_POSIX \
   (SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_MAC || \
     SANITIZER_NETBSD || SANITIZER_OPENBSD || SANITIZER_SOLARIS)
@@ -201,6 +207,12 @@
 # define SANITIZER_SOLARIS32 0
 #endif
 
+#if defined(__myriad2__)
+# define SANITIZER_MYRIAD2 1
+#else
+# define SANITIZER_MYRIAD2 0
+#endif
+
 // By default we allow to use SizeClassAllocator64 on 64-bit platform.
 // But in some cases (e.g. AArch64's 39-bit address space) SizeClassAllocator64
 // does not work well and we need to fallback to SizeClassAllocator32.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46453.145487.patch
Type: text/x-patch
Size: 913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180507/8962823b/attachment.bin>


More information about the llvm-commits mailing list