[llvm-bugs] [Bug 31448] New: libc++ fails to compile on systems without posix_memalign

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 21 10:09:56 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: jeremyhu at apple.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at 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 <eric at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161221/ed944d64/attachment.html>


More information about the llvm-bugs mailing list