summaryrefslogtreecommitdiff
path: root/libsanitizer/asan/asan_malloc_mac.cc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-10-31 12:14:23 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-10-31 11:14:23 +0000
commiteac975312214dccb9d425b3e8d0b93e85c11ddf4 (patch)
tree431086825b095506e32d4c0b0e479c62254e2b69 /libsanitizer/asan/asan_malloc_mac.cc
parent95fba530b6f68f336090abb5699ae9f24d1e22e6 (diff)
downloadgcc-eac975312214dccb9d425b3e8d0b93e85c11ddf4.tar.gz
backport: All source files: Merge from upstream 345033.
Merge from upstream 345033. 2018-10-31 Martin Liska <mliska@suse.cz> * All source files: Merge from upstream 345033. From-SVN: r265665
Diffstat (limited to 'libsanitizer/asan/asan_malloc_mac.cc')
-rw-r--r--libsanitizer/asan/asan_malloc_mac.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsanitizer/asan/asan_malloc_mac.cc b/libsanitizer/asan/asan_malloc_mac.cc
index 1ca665d84c5..e34884be85b 100644
--- a/libsanitizer/asan/asan_malloc_mac.cc
+++ b/libsanitizer/asan/asan_malloc_mac.cc
@@ -36,6 +36,9 @@ using namespace __asan;
#define COMMON_MALLOC_CALLOC(count, size) \
GET_STACK_TRACE_MALLOC; \
void *p = asan_calloc(count, size, &stack);
+#define COMMON_MALLOC_POSIX_MEMALIGN(memptr, alignment, size) \
+ GET_STACK_TRACE_MALLOC; \
+ int res = asan_posix_memalign(memptr, alignment, size, &stack);
#define COMMON_MALLOC_VALLOC(size) \
GET_STACK_TRACE_MALLOC; \
void *p = asan_memalign(GetPageSizeCached(), size, &stack, FROM_MALLOC);