From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 96B4E3858422; Mon, 29 Jan 2024 18:02:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96B4E3858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706551321; bh=6AN7XI41At92a1Q3KVaEgLKi/Q4IWlEPe/fINSluy98=; h=From:To:Subject:Date:From; b=tpH211TOeDXrbUlbT/gDwrKnbaqx2EvYh/P3RbbjQnQi4b75GKZ1i3y3d2nckBaqS 5Sn/wgWCm0veNcvsD/2xA0qhMekku0WZtY8WTPPNXi758pS+wWo20H3FOXFAiXyCNt yFuiXp48Gkpwx0Xz9ysKSKROAfNxMYt+xXkxvLDg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] malloc: Disable malloc builtins on tests X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 3798d78d115a1fec04c75bdf298bb92443c3fcad X-Git-Newrev: 74c56dc6ee95e3985fb5d94b30cb1e71d3f3f3f7 Message-Id: <20240129180201.96B4E3858422@sourceware.org> Date: Mon, 29 Jan 2024 18:02:01 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=74c56dc6ee95e3985fb5d94b30cb1e71d3f3f3f7 commit 74c56dc6ee95e3985fb5d94b30cb1e71d3f3f3f7 Author: Adhemerval Zanella Date: Wed Mar 30 15:42:18 2022 -0300 malloc: Disable malloc builtins on tests To avoid compiler optimize away memory allocation calls, which might interfere when both valid and invalid calls checks. Diff: --- malloc/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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