diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-04-02 19:48:31 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-04-02 20:36:12 +0800 |
commit | feb0a69677101f361aaf5dbfcdd8b5a7a827900f (patch) | |
tree | 8ed7642371a3be0de0ce4855ad3c73cb30992cfd /gcc-4.8/gcc/config/openbsd.h | |
parent | f50a81165e305c7339bec78bd3c9cf8a35e1f233 (diff) | |
download | toolchain_gcc-feb0a69677101f361aaf5dbfcdd8b5a7a827900f.tar.gz toolchain_gcc-feb0a69677101f361aaf5dbfcdd8b5a7a827900f.tar.bz2 toolchain_gcc-feb0a69677101f361aaf5dbfcdd8b5a7a827900f.zip |
[4.8] Use memalign instead of posix_memalign in GCC x86 mm_malloc.h
posix_memalign doesn't exist in NDK. Code inludes ?mmintrin.h
which in turn includes mm_malloc.h may fail to link
For AOSP platform build which uses the same compiler, add
-DHAVE_POSIX_MEMALIGN to restore the original behavior.
Other than non-zero return value which _mm_alloc already ignores, both
paths are functioanlly identical (under the hood dlmalloc.c in 32-bit
ensure alignment is at least 16-byte)
See 0457b0db02c4b229eab11c01025df948032c31a7
Change-Id: I2e83d544a4ac2f4549de3b41a85e009a0a085476
Diffstat (limited to 'gcc-4.8/gcc/config/openbsd.h')
0 files changed, 0 insertions, 0 deletions