[COMMITTED] malloc: Extend malloc function hiding to tst-memalign-{2, 3} (BZ #32366)

Adhemerval Zanella adhemerval.zanella@linaro.org
Wed Feb 4 20:12:16 GMT 2026


clang 21 optimize out memalign.

Checked on x86_64-linux-gnu with gcc-15 and clang-21.
---
 malloc/tst-memalign-2.c | 1 +
 malloc/tst-memalign-3.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/malloc/tst-memalign-2.c b/malloc/tst-memalign-2.c
index 1a5087e486..b3e393c249 100644
--- a/malloc/tst-memalign-2.c
+++ b/malloc/tst-memalign-2.c
@@ -24,6 +24,7 @@
 #include <array_length.h>
 #include <libc-pointer-arith.h>
 #include <support/check.h>
+#include "tst-malloc-aux.h"
 
 typedef struct TestCase {
   size_t size;
diff --git a/malloc/tst-memalign-3.c b/malloc/tst-memalign-3.c
index 5d4d5fac94..435e1c94d5 100644
--- a/malloc/tst-memalign-3.c
+++ b/malloc/tst-memalign-3.c
@@ -26,6 +26,7 @@
 #include <libc-pointer-arith.h>
 #include <support/check.h>
 #include <support/xthread.h>
+#include "tst-malloc-aux.h"
 
 
 typedef struct TestCase {
-- 
2.43.0



More information about the Libc-alpha mailing list