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

Chris Lattner clattner at apple.com
Mon Oct 11 17:17:46 PDT 2010


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:

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);
         ^





More information about the cfe-commits mailing list