public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
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	[thread overview]
Message-ID: <20220302013623.368-1-vapier@gentoo.org> (raw)

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


             reply	other threads:[~2022-03-02  1:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-02  1:36 Mike Frysinger [this message]
2022-03-02  1:36 ` [PATCH 1/6] newlib: move nano-malloc logic from build " Mike Frysinger
2022-03-02  1:36 ` [PATCH 2/6] newlib: rename mallocr.c to _mallocr.c Mike Frysinger
2022-03-02  1:36 ` [PATCH 3/6] newlib: xstormy16: fix mallopt definition & mstats handling Mike Frysinger
2022-03-02  9:46   ` Corinna Vinschen
2022-03-09  9:23     ` Mike Frysinger
2022-03-10  8:12       ` Corinna Vinschen
2022-03-10  8:00     ` Sebastian Huber
2022-03-02  1:36 ` [PATCH 4/6] newlib: xstormy16: break up mallocr stubs Mike Frysinger
2022-03-02  1:36 ` [PATCH 5/6] newlib: xstormy16: move malloc multiplex logic from build to source files Mike Frysinger
2022-03-02  1:36 ` [PATCH 6/6] newlib: libc: move stdlib " Mike Frysinger
2022-03-02  9:47 ` [PATCH 0/6] rework malloc logic from build rules " Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220302013623.368-1-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).