]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Extend malloc function hiding to tst-memalign-{2,3} (BZ #32366)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 31 Dec 2025 15:38:25 +0000 (12:38 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 4 Feb 2026 19:56:04 +0000 (16:56 -0300)
clang 21 optimize out memalign.

Checked on x86_64-linux-gnu with gcc-15 and clang-21.

malloc/tst-memalign-2.c
malloc/tst-memalign-3.c

index 1a5087e4867ca7604a6ebc952c5eee8cffa9b67f..b3e393c249c361a70e272d82fa5529857ed27049 100644 (file)
@@ -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;
index 5d4d5fac9409c5527708df20756dce3f3639b160..435e1c94d541919ce58454f02921a1e51dab65eb 100644 (file)
@@ -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 {