[libcxx-commits] [PATCH] D90178: [SystemZ][ZOS] libcxx - no posix memalign

Zbigniew Sarbinowski via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 26 11:12:21 PDT 2020


zibi created this revision.
zibi added a reviewer: libc++.
zibi added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.
zibi requested review of this revision.

The unavailability of posix_memalign on z/OS forces us to define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION'. The use of posix_memalign is being used in libcxx/src/new.cpp.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90178

Files:
  libcxx/include/__config


Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -936,6 +936,8 @@
    // We're deferring to Microsoft's STL to provide aligned new et al. We don't
    // have it unless the language feature test macro is defined.
 #  define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
+#elif defined(__MVS__)
+#  define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
 #endif
 
 #if defined(__APPLE__)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90178.300744.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201026/62f50db0/attachment.bin>


More information about the libcxx-commits mailing list