[cfe-commits] PATCH: Clean-room reimplementation of _mm_malloc

Matt Beaumont-Gay matthewbg at google.com
Wed Oct 13 17:33:16 PDT 2010


On Mon, Oct 11, 2010 at 17:17, Chris Lattner <clattner at apple.com> wrote:
>
> On Oct 11, 2010, at 4:57 PM, Matt Beaumont-Gay wrote:
>
>> Here's an updated patch to address Windows portability concerns.
>
> Thanks Matt, this fails a regression test though:

Oops, thanks for catching that. Updated patch attached.

-Matt

>
> FAIL: Clang :: Headers/x86-intrinsics-headers.c (1181 of 2601)
> ******************** TEST 'Clang :: Headers/x86-intrinsics-headers.c' FAILED ********************
> Script:
> --
> /Volumes/Projects/cvs/llvm/Debug+Asserts/bin/clang  -fsyntax-only /Volumes/Projects/cvs/llvm/tools/clang/test/Headers/x86-intrinsics-headers.c
> /Volumes/Projects/cvs/llvm/Debug+Asserts/bin/clang  -fsyntax-only -fno-lax-vector-conversions /Volumes/Projects/cvs/llvm/tools/clang/test/Headers/x86-intrinsics-headers.c
> /Volumes/Projects/cvs/llvm/Debug+Asserts/bin/clang -ccc-clang-cxx -ccc-cxx  -fsyntax-only -x c++ /Volumes/Projects/cvs/llvm/tools/clang/test/Headers/x86-intrinsics-headers.c
> --
> Exit Code: 1
> Command Output (stderr):
> --
> In file included from /Volumes/Projects/cvs/llvm/tools/clang/test/Headers/x86-intrinsics-headers.c:8:
> /Volumes/Projects/cvs/llvm/Debug+Asserts/lib/clang/2.9/include/mm_malloc.h:35:16: error: exception specification in declaration does not match previous declaration
> extern "C" int posix_memalign(void **memptr, size_t alignment, size_t size)
>               ^
> In file included from /Volumes/Projects/cvs/llvm/tools/clang/test/Headers/x86-intrinsics-headers.c:8:
> In file included from /Volumes/Projects/cvs/llvm/Debug+Asserts/lib/clang/2.9/include/mm_malloc.h:27:
> /usr/include/stdlib.h:173:7: note: previous declaration is here
> int      posix_memalign(void **, size_t, size_t);
>         ^
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mm_malloc.patch
Type: text/x-patch
Size: 1971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101013/86d9f2a2/attachment.bin>


More information about the cfe-commits mailing list