From: Richard Kenner Date: Mon, 10 Apr 1995 13:22:19 +0000 (-0400) Subject: Add declarations of xmalloc and xrealloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52112c7c0a527d1ae7da235b96fc2afe77d7f880;p=gcc.git Add declarations of xmalloc and xrealloc. (cpp_parse_expr): Cast args to bcopy to char *. From-SVN: r9350 --- diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 80a926989da..e35690c4164 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -26,6 +26,9 @@ Written by Per Bothner 1994. */ #include "config.h" #include "cpplib.h" +extern char *xmalloc PARAMS ((unsigned)); +extern char *xrealloc PARAMS ((char *, unsigned)); + #ifdef MULTIBYTE_CHARS #include #include @@ -981,7 +984,7 @@ cpp_parse_expr (pfile) else { new_stack = (struct operation*) xmalloc (new_size); - bcopy (stack, new_stack, old_size); + bcopy ((char *) stack, (char *) new_stack, old_size); } stack = new_stack; top = (struct operation*)((char*) new_stack + old_size);