]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tsystem.h: Declare calloc/realloc #ifdef inhibit_libc
authorTobias Burnus <tobias@codesourcery.com>
Wed, 6 Dec 2023 07:57:29 +0000 (08:57 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 6 Dec 2023 07:57:29 +0000 (08:57 +0100)
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.

gcc/tsystem.h

index 081c73345cdb07a73cb308c6c3821c5e214a7463..c49ff578cb795814bb9cc60e6c63cc3968c8dfb6 100644 (file)
@@ -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