[PATCH 0/6] rework malloc logic from build rules to source files

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.