https://llvm.org/bugs/show_bug.cgi?id=31448
Bug ID: 31448 Summary: libc++ fails to compile on systems without posix_memalign Product: libc++ Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedclangb...@nondot.org Reporter: jerem...@apple.com CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified On older systems without posix_memalign, libcxx now fails to compile with: new.cpp:73:14: error: no member named 'posix_memalign' in the global namespace while (::posix_memalign(&p, static_cast<size_t>(alignment), size) != 0) ~~^ 1 error generated. This regressed in 9acbffa370bd03e4e0ed742110e4c780b99c28ac with: commit 9acbffa370bd03e4e0ed742110e4c780b99c28ac Author: Eric Fiselier <e...@efcs.ca> Date: Fri Oct 14 06:46:30 2016 +0000 Implement P0035R4 -- Add C++17 aligned allocation functions Summary: This patch implements the library side of P0035R4. The implementation is thanks to @rsmith. In addition to the C++17 implementation, the library implementation can be explicitly turned on using `-faligned-allocation` in all dialects. Reviewers: mclow.lists, rsmith Subscribers: rsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D25591 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@284206 91177308-0d34-0410-b5e6-96231b3b80d8 Can we test for the existence of posix_memalign -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs