]> git.ipfire.org Git - thirdparty/gcc.git/commit
libiberty, configure, Darwin: Avoid detecting deprecated sbrk.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 23 Aug 2021 16:27:25 +0000 (17:27 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 14 Apr 2022 05:23:33 +0000 (06:23 +0100)
commit51fbd727f71f13311fb90741b270f3b89122c170
tree0781f42a307f873e40591694c5c6935a07a66ed9
parentb42500db5c466ba62ec416314a299e9c35071e69
libiberty, configure, Darwin: Avoid detecting deprecated sbrk.

Darwin provides an implementation of sbrk, which is detected by
the configuration process.  However, it is deprecated which leads
to build warnings.  The malloc-based implementation is more
suitable.  This patch removes sbrk from the functions searched
for Darwin.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libiberty/ChangeLog:

* configure: Regenerate.
* configure.ac: Do not search for sbrk on Darwin.
* xmalloc.c: Do not declare sbrk unless it has been found
by configure.

(cherry picked from commit fbb334a6acc5cc5d8944712daeda8089ef1d7fd2)
libiberty/configure
libiberty/configure.ac
libiberty/xmalloc.c