From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 5B00D385840A; Wed, 30 Aug 2023 12:41:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B00D385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693399267; bh=yYRMXzJyOy9NpwQsJTYYf01iMvbkyrXa2Q6Y8RztiyA=; h=From:To:Subject:Date:From; b=KknC2gr9qczFKg6XMPeLnL+6s9I/5FpejlMw83XXquz8WWzYWHlFbMM0IJSQbWFpv z810Kz4yA17PHckhBM9IyAFmvrkGlsT5yU7TtwfaFmps5hdUNaw7HHhAjRS0LTQhfc 12K/Xm5/jO6RpXhmrtUZb7pw9JdxZP+RpKDgyTY8= 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: 700f2ada87da98fa6574d6825633a164aab85506 X-Git-Newrev: 91a2e7b6f4ad009cf003b10fcd86fa6587fd3dec Message-Id: <20230830124107.5B00D385840A@sourceware.org> Date: Wed, 30 Aug 2023 12:41:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=91a2e7b6f4ad009cf003b10fcd86fa6587fd3dec commit 91a2e7b6f4ad009cf003b10fcd86fa6587fd3dec 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/malloc/Makefile b/malloc/Makefile index c1db3347d8..55c1ca4915 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -368,3 +368,15 @@ 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-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