]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove some unnecessary declarations and configury
authorTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 15:34:42 +0000 (09:34 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 24 Jul 2018 17:12:04 +0000 (11:12 -0600)
commit29d17e4773334ae60ffac7ea7f92d507c23b70f6
treec5620d10d2c849a1c6184bacb8dcbf921cc8981a
parent56522fc5af76ec88f650d8d305c0aa3d669c2849
Remove some unnecessary declarations and configury

configure checks for declarations of free, malloc, and realloc; but
the results are only used in a single spot: utils.c.  I think these
checks are long since obsolete, so this patch removes them.

Grepping the entire tree for these HAVE_DECL_ symbols, the only uses
of possible interest to gdb come from bfd/sysdep.h; but this is not
(nor should be) included by gdb.  (And furthermore I think the code
there is probably also obsolete.)

gdb/ChangeLog
2018-07-24  Tom Tromey  <tom@tromey.com>

* utils.c (malloc, realloc, free): Don't declare.
* configure, config.in: Rebuild.
* configure.ac: Don't check for declarations of free, malloc, or
realloc.
gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.ac
gdb/utils.c