diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-30 15:42:18 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:41 -0300 |
commit | 4fbc210a64404d78059759eb58cdaeda78d3d2fd (patch) | |
tree | 1f0255e9bf0465f42821184bc7363da6e2adedfc | |
parent | 8a082445f819697811eef589ef246204316335ac (diff) | |
download | glibc-4fbc210a64404d78059759eb58cdaeda78d3d2fd.tar.gz glibc-4fbc210a64404d78059759eb58cdaeda78d3d2fd.tar.xz glibc-4fbc210a64404d78059759eb58cdaeda78d3d2fd.zip |
malloc: Disable malloc builtins on tests
To avoid compiler optimize away memory allocation calls, which might interfere when both valid and invalid calls checks.
-rw-r--r-- | malloc/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/malloc/Makefile b/malloc/Makefile index c83ade5f10..5363b884f5 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -370,3 +370,18 @@ tst-mallocstate-malloc-check-ENV = LD_PRELOAD=$(objpfx)libc_malloc_debug.so # libc_malloc_debug.so. $(objpfx)tst-mallocstate: $(objpfx)libc_malloc_debug.so $(objpfx)tst-mallocstate-malloc-check: $(objpfx)libc_malloc_debug.so + +CFLAGS-tst-memalign.c += -fno-builtin +CFLAGS-tst-memalign-2.c += -fno-builtin +CFLAGS-tst-memalign-3.c += -fno-builtin +CFLAGS-tst-malloc.c += -fno-builtin +CFLAGS-tst-malloc-backtrace.c += -fno-builtin +CFLAGS-tst-malloc-check.c += -fno-builtin +CFLAGS-tst-malloc-too-large.c += -fno-builtin +CFLAGS-tst-realloc.c += -fno-builtin +CFLAGS-tst-valloc.c += -fno-builtin +CFLAGS-tst-compathooks-off.c += -fno-builtin +CFLAGS-tst-compathooks-on.c += -fno-builtin +CFLAGS-tst-mallinfo2.c += -fno-builtin +CFLAGS-tst-aligned-alloc.c += -fno-builtin +CFLAGS-tst-aligned-alloc-static.c += -fno-builtin |