From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 0B008386189D; Thu, 21 Dec 2023 18:58:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B008386189D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703185110; bh=1a/XKPRJzH16Ep2bNlfJEpiPNOuw30xR9qimS1dn+E0=; h=From:To:Subject:Date:From; b=auXGQ6F1ZQkQxchr0Y/Xl9ceLQCSJJ17R6Ulkg5KVOGzeyEcoo/rp60szKFlXcgos Na8CFYGybthIJnISD8/bXhWrJv9FA3o2TM5QykB82ITIH/3vm34GTVfZFDGtVSyEHg jyMKKyWbuDfElTBc1oZ09T/bK4cG4lZOBKY3nBJw= 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: e049bb38dea6ec31549c9298b9cc74f27f2b541f X-Git-Newrev: 65627d07e407188bb850105cc6926ee440157bbb Message-Id: <20231221185830.0B008386189D@sourceware.org> Date: Thu, 21 Dec 2023 18:58:30 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=65627d07e407188bb850105cc6926ee440157bbb commit 65627d07e407188bb850105cc6926ee440157bbb 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 f6cdf7bf0b..d03cbd173c 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