From: Tobias Burnus Date: Wed, 6 Dec 2023 07:57:29 +0000 (+0100) Subject: tsystem.h: Declare calloc/realloc #ifdef inhibit_libc X-Git-Tag: basepoints/gcc-15~3932 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e84dafcc72d1cd6d028b42f1801e092a91d3214;p=thirdparty%2Fgcc.git tsystem.h: Declare calloc/realloc #ifdef inhibit_libc Declare calloc and realloc #ifndef and inhibit_libc is defined. Those are used by libgcc/emutls.c. gcc/ChangeLog: * tsystem.h (calloc, realloc): Declare when inhibit_libc. --- diff --git a/gcc/tsystem.h b/gcc/tsystem.h index 081c73345cdb..c49ff578cb79 100644 --- a/gcc/tsystem.h +++ b/gcc/tsystem.h @@ -50,6 +50,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see extern void *malloc (size_t); #endif +#ifndef calloc +extern void *calloc(size_t, size_t); +#endif + +#ifndef realloc +extern void *realloc(void *, size_t); +#endif + #ifndef free extern void free (void *); #endif