diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-30 17:04:39 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-30 17:04:39 +0930 |
commit | 7273d78f3f7ae3701512f1ff423430f51b011ece (patch) | |
tree | 53d5096b48a68232ce5a476df4a222e4f07586d8 /bfd/Makefile.in | |
parent | f43ffe07b1e5c3fe8c0f55e33d047e64b7bdb624 (diff) | |
download | gdb-7273d78f3f7ae3701512f1ff423430f51b011ece.zip gdb-7273d78f3f7ae3701512f1ff423430f51b011ece.tar.gz gdb-7273d78f3f7ae3701512f1ff423430f51b011ece.tar.bz2 |
use libiberty xmalloc in bfd/doc/chew.c
Catch out of memory.
* doc/chew.c: Include libibery.h.
(init_string_with_size, nextword): Replace malloc with xmalloc.
(newentry, add_to_definition): Likewise.
(catchar, catbuf): Replace realloc with xrealloc.
(add_intrinsic): Replace strdup with xstrdup.
* doc/local.mk (LIBIBERTY): Define.
(chew): Link against libiberty.
* Makefile.in: Regenerate.
Diffstat (limited to 'bfd/Makefile.in')
-rw-r--r-- | bfd/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 741e08d..53cac75 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -1301,6 +1301,7 @@ doc_bfd_TEXINFOS = $(DOCFILES) doc/bfdsumm.texi AM_MAKEINFOFLAGS = --no-split -I "$(srcdir)/doc" -I doc TEXI2DVI = texi2dvi -I "$(srcdir)/doc" -I doc MKDOC = doc/chew$(EXEEXT_FOR_BUILD) +LIBIBERTY = ../libiberty/libiberty.a # We can't replace these rules with an implicit rule, because # makes without VPATH support couldn't find the .h files in `..'. @@ -2487,7 +2488,7 @@ doc/chew.stamp: $(srcdir)/doc/chew.c doc/$(am__dirstamp) $(AM_V_CCLD)$(CC_FOR_BUILD) -o doc/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \ $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) \ -I. -I$(srcdir) -Idoc -I$(srcdir)/../include -I$(srcdir)/../intl -I../intl \ - $(srcdir)/doc/chew.c && \ + $(srcdir)/doc/chew.c $(LIBIBERTY) && \ $(SHELL) $(srcdir)/../move-if-change \ doc/chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC) && \ touch $@ |