diff options
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index c61ae097389..ef85c6e6fbd 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -51,6 +51,10 @@ Boston, MA 02111-1307, USA. */ #include "rtl.h" #include "obstack.h" +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + static struct obstack obstack; struct obstack *rtl_obstack = &obstack; @@ -191,7 +195,6 @@ static void change_state PROTO((char *, char *, int)); static char *copystr PROTO((char *)); static void mybzero PROTO((char *, unsigned)); static void mybcopy PROTO((char *, char *, unsigned)); -static char *concat PROTO((char *, char *)); static void fatal PROTO((char *)); char *xrealloc PROTO((char *, unsigned)); char *xmalloc PROTO((unsigned)); @@ -1646,25 +1649,6 @@ mybcopy (in, out, length) *out++ = *in++; } -static char * -concat (s1, s2) - char *s1, *s2; -{ - register char *tem; - - if (s1 == 0) - return s2; - if (s2 == 0) - return s1; - - tem = (char *) xmalloc (strlen (s1) + strlen (s2) + 2); - strcpy (tem, s1); - strcat (tem, " "); - strcat (tem, s2); - - return tem; -} - char * xrealloc (ptr, size) char *ptr; |