Bug 474332 - aligned_alloc under Valgrind returns nullptr when alignment is not a...
commitae413f79b24de558ac9ab925babd1fb86e0d21c7
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 10 Sep 2023 13:05:57 +0000 (10 15:05 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 10 Sep 2023 13:05:57 +0000 (10 15:05 +0200)
treeb53c4f590eb7d48714423c78a024ca8c3579e232
parentec86369da5e2404dbf265d06cc7ba8798c92b457
Bug 474332 - aligned_alloc under Valgrind returns nullptr when alignment is not a multiple of sizeof(void *)

At configure time use glibc version to set a HAVE flag for C17 aligned_alloc.
The use the HAVE flag to select which redir macro to use.
Also make the (normally unused) glibc ALIGNED_ALLOC macro
the same as MEMALIGN, just in case.
NEWS
configure.ac
coregrind/m_replacemalloc/vg_replace_malloc.c