aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmisc.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-02 07:54:47 +0930
committerAlan Modra <amodra@gmail.com>2023-08-02 07:54:47 +0930
commit44f8d229e86317db4a4eec519fa1a6ce69c5bcd2 (patch)
tree05d7d9b580da6039e87f8231759a76001c33d2e3 /ld/ldmisc.h
parentb6456e91d40fd38db264db26991c99381a3da5e6 (diff)
downloadgdb-44f8d229e86317db4a4eec519fa1a6ce69c5bcd2.zip
gdb-44f8d229e86317db4a4eec519fa1a6ce69c5bcd2.tar.gz
gdb-44f8d229e86317db4a4eec519fa1a6ce69c5bcd2.tar.bz2
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.
Diffstat (limited to 'ld/ldmisc.h')
-rw-r--r--ld/ldmisc.h4
1 files changed, 0 insertions, 4 deletions
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)