diff options
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index 1651070c96d..af68b613690 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -107,7 +107,6 @@ struct obstack *rtl_obstack = &obstack; #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free -char *xmalloc PROTO((unsigned)); static void fatal PVPROTO ((char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; void fancy_abort PROTO((void)) ATTRIBUTE_NORETURN; @@ -881,23 +880,23 @@ gen_split (split) d->outfun = 0; } -char * +PTR xmalloc (size) - unsigned size; + size_t size; { - register char *val = (char *) malloc (size); + register PTR val = (PTR) malloc (size); if (val == 0) fatal ("virtual memory exhausted"); return val; } -char * +PTR xrealloc (ptr, size) - char *ptr; - unsigned size; + PTR ptr; + size_t size; { - char *result = (char *) realloc (ptr, size); + register PTR result = (PTR) realloc (ptr, size); if (!result) fatal ("virtual memory exhausted"); return result; |