From: Richard Kenner Date: Tue, 13 Apr 1993 21:21:03 +0000 (-0400) Subject: (xmalloc): Don't use prototype for now. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbfd16d493505923da48863441d9feca45fd1b1a;p=gcc.git (xmalloc): Don't use prototype for now. From-SVN: r4142 --- diff --git a/gcc/rtl.h b/gcc/rtl.h index b5fc058a76a..f223cf6fd72 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -644,12 +644,13 @@ extern rtx read_rtx (); /* At present, don't prototype xrealloc, since all of the callers don't cast their pointers to char *, and all of the xrealloc's don't use void * yet. */ -extern char *xrealloc PROTO((void *, unsigned)); +extern char *xmalloc PROTO((size_t)); +extern char *xrealloc PROTO((void *, size_t)); #else +extern char *xmalloc (); extern char *xrealloc (); #endif -extern char *xmalloc PROTO((unsigned)); extern char *oballoc PROTO((int)); extern char *permalloc PROTO((int)); extern void free PROTO((void *)); diff --git a/gcc/tree.h b/gcc/tree.h index a288c1da9e7..a0644f80007 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -997,15 +997,16 @@ union tree_node /* At present, don't prototype xrealloc, since all of the callers don't cast their pointers to char *, and all of the xrealloc's don't use void * yet. */ -extern char *xrealloc PROTO((void *, unsigned)); +extern char *xmalloc PROTO((size_t)); +extern char *xrealloc PROTO((void *, size_t)); #else +extern char *xmalloc (); extern char *xrealloc (); #endif extern char *oballoc PROTO((int)); extern char *permalloc PROTO((int)); extern char *savealloc PROTO((int)); -extern char *xmalloc PROTO((unsigned)); extern void free PROTO((void *)); /* Lowest level primitive for allocating a node.