From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id AF1023858D39 for ; Wed, 2 Mar 2022 01:36:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AF1023858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 4F20D342D37; Wed, 2 Mar 2022 01:36:21 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH 0/6] rework malloc logic from build rules to source files Date: Tue, 1 Mar 2022 20:36:17 -0500 Message-Id: <20220302013623.368-1-vapier@gentoo.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2022 01:36:26 -0000 I broke these out into separate changes to make it easier to review. The goal is to kill off all the custom build rules in stdlib/ so we only rely on Automake to compile so we can convert the libc build to a non-recursive one like we've done with libm.a. This is the last series needed to unblock that. There's also some real bugfixes in here independent of the build system rework, but I kept them separate for bisection purposes. Mike Frysinger (6): newlib: move nano-malloc logic from build to source files newlib: rename mallocr.c to _mallocr.c newlib: xstormy16: fix mallopt definition & mstats handling newlib: xstormy16: break up mallocr stubs newlib: xstormy16: move malloc multiplex logic from build to source files newlib: libc: move stdlib multiplex logic from build to source files newlib/libc/machine/xstormy16/Makefile.am | 83 +- newlib/libc/machine/xstormy16/Makefile.in | 175 +- newlib/libc/machine/xstormy16/calloc.c | 2 + newlib/libc/machine/xstormy16/callocr.c | 7 + newlib/libc/machine/xstormy16/cfree.c | 2 + newlib/libc/machine/xstormy16/freer.c | 7 + newlib/libc/machine/xstormy16/malign.c | 2 + newlib/libc/machine/xstormy16/malloc.c | 4 + newlib/libc/machine/xstormy16/mallocr.c | 26 - newlib/libc/machine/xstormy16/msize.c | 2 + newlib/libc/machine/xstormy16/mstats.c | 6 + newlib/libc/machine/xstormy16/realloc.c | 2 + newlib/libc/machine/xstormy16/reallocr.c | 7 + newlib/libc/machine/xstormy16/valloc.c | 4 + newlib/libc/stdlib/Makefile.am | 120 +- newlib/libc/stdlib/Makefile.in | 254 +- newlib/libc/stdlib/_mallocr.c | 3719 +++++++++++++++++++++ newlib/libc/stdlib/callocr.c | 2 + newlib/libc/stdlib/cfreer.c | 2 + newlib/libc/stdlib/freer.c | 2 + newlib/libc/stdlib/malignr.c | 2 + newlib/libc/stdlib/mallinfor.c | 2 + newlib/libc/stdlib/mallocr.c | 3716 +------------------- newlib/libc/stdlib/malloptr.c | 2 + newlib/libc/stdlib/mallstatsr.c | 2 + newlib/libc/stdlib/msizer.c | 2 + newlib/libc/stdlib/pvallocr.c | 2 + newlib/libc/stdlib/reallocr.c | 2 + newlib/libc/stdlib/vallocr.c | 2 + 29 files changed, 4034 insertions(+), 4126 deletions(-) create mode 100644 newlib/libc/machine/xstormy16/calloc.c create mode 100644 newlib/libc/machine/xstormy16/callocr.c create mode 100644 newlib/libc/machine/xstormy16/cfree.c create mode 100644 newlib/libc/machine/xstormy16/freer.c create mode 100644 newlib/libc/machine/xstormy16/malign.c create mode 100644 newlib/libc/machine/xstormy16/malloc.c create mode 100644 newlib/libc/machine/xstormy16/msize.c create mode 100644 newlib/libc/machine/xstormy16/mstats.c create mode 100644 newlib/libc/machine/xstormy16/realloc.c create mode 100644 newlib/libc/machine/xstormy16/reallocr.c create mode 100644 newlib/libc/machine/xstormy16/valloc.c create mode 100644 newlib/libc/stdlib/_mallocr.c create mode 100644 newlib/libc/stdlib/callocr.c create mode 100644 newlib/libc/stdlib/cfreer.c create mode 100644 newlib/libc/stdlib/freer.c create mode 100644 newlib/libc/stdlib/malignr.c create mode 100644 newlib/libc/stdlib/mallinfor.c create mode 100644 newlib/libc/stdlib/malloptr.c create mode 100644 newlib/libc/stdlib/mallstatsr.c create mode 100644 newlib/libc/stdlib/msizer.c create mode 100644 newlib/libc/stdlib/pvallocr.c create mode 100644 newlib/libc/stdlib/reallocr.c create mode 100644 newlib/libc/stdlib/vallocr.c -- 2.34.1