Re: use libiberty xmalloc in bfd/doc/chew.c
authorAlan Modra <amodra@gmail.com>
Wed, 1 Jun 2022 01:14:01 +0000 (10:44 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Jun 2022 01:22:05 +0000 (10:52 +0930)
commitb0de9ed86f3af84fbd636f94a58b9c4ad7f4e743
tree6e69a103f03c961e2b8532cc0898212929311a19
parent739f950664220bca1dbfa1cac56eafa16ea2c782
Re: use libiberty xmalloc in bfd/doc/chew.c

We can't use libiberty.a in chew.  libiberty is a host library, chew
a build program.  Partly revert commit 7273d78f3f7a, instead define
local versions of the libiberty functions.  ansidecl.h also isn't
needed.

* doc/chew.c: Don't include libiberty.h or ansidecl.h.
(xmalloc, xrealloc, xstrdup): New functions.
* doc/local.mk (LIBIBERTY): Don't define or use.
* Makefile.in: Regenerate.
bfd/Makefile.in
bfd/doc/chew.c
bfd/doc/local.mk