public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-6207] tsystem.h: Declare calloc/realloc #ifdef inhibit_libc
@ 2023-12-06  7:58 Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2023-12-06  7:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6e84dafcc72d1cd6d028b42f1801e092a91d3214

commit r14-6207-g6e84dafcc72d1cd6d028b42f1801e092a91d3214
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed Dec 6 08:57:29 2023 +0100

    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:
---
 gcc/tsystem.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gcc/tsystem.h b/gcc/tsystem.h
index 081c73345cd..c49ff578cb7 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-06  7:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-06  7:58 [gcc r14-6207] tsystem.h: Declare calloc/realloc #ifdef inhibit_libc Tobias Burnus

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).