From 44f8d229e86317db4a4eec519fa1a6ce69c5bcd2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 2 Aug 2023 07:54:47 +0930 Subject: Don't declare xmalloc and others in ldmisc.h * ldmisc.h (xmalloc, xrealloc, xexit, yyerror): Don't declare. * emultempl/pdp11.em: Include libiberty.h. * emultempl/ticoff.em: Likewise. * emultempl/vms.em: Likewise. * ldctor.c: Likewise. * ldelfgen.c: Likewise. * ldgram.y: Likewise. (yyerror): Prototype and make static. --- ld/ldmisc.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ld/ldmisc.h') diff --git a/ld/ldmisc.h b/ld/ldmisc.h index 6fbc4c7..5ab9157 100644 --- a/ld/ldmisc.h +++ b/ld/ldmisc.h @@ -27,10 +27,6 @@ extern void minfo (const char *, ...); extern void info_msg (const char *, ...); extern void lfinfo (FILE *, const char *, ...); extern void info_assert (const char *, unsigned int); -extern void yyerror (const char *); -extern void *xmalloc (size_t); -extern void *xrealloc (void *, size_t); -extern void xexit (int); #define ASSERT(x) \ do { if (!(x)) info_assert(__FILE__,__LINE__); } while (0) -- cgit v1.1