|
From: Paul F. <pa...@so...> - 2023-02-28 21:58:53
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=40c196b0ca12c6fa27774776f8cc7e970c5afebc commit 40c196b0ca12c6fa27774776f8cc7e970c5afebc Author: Paul Floyd <pj...@wa...> Date: Tue Feb 28 22:58:14 2023 +0100 Fix Darwin compilation Removed memalign wrapper on Darwin, so valloc can't use it any more. Diff: --- coregrind/m_replacemalloc/vg_replace_malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coregrind/m_replacemalloc/vg_replace_malloc.c b/coregrind/m_replacemalloc/vg_replace_malloc.c index cc38d665bf..251b8ac9d3 100644 --- a/coregrind/m_replacemalloc/vg_replace_malloc.c +++ b/coregrind/m_replacemalloc/vg_replace_malloc.c @@ -1719,8 +1719,8 @@ extern int *___errno (void) __attribute__((weak)); if (pszB == 0) \ pszB = my_getpagesize(); \ TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord) zone); \ - return VG_REPLACE_FUNCTION_EZU(10110,VG_Z_LIBC_SONAME,memalign) \ - ((SizeT)pszB, size); \ + return (void*)VALGRIND_NON_SIMD_CALL2( info.tl_memalign, \ + pszB, size ); \ } #if defined(VGO_linux) |