aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-22 09:34:42 -0600
committerTom Tromey <tom@tromey.com>2018-07-24 11:12:04 -0600
commit29d17e4773334ae60ffac7ea7f92d507c23b70f6 (patch)
treec5620d10d2c849a1c6184bacb8dcbf921cc8981a /gdb/configure
parent56522fc5af76ec88f650d8d305c0aa3d669c2849 (diff)
downloadgdb-29d17e4773334ae60ffac7ea7f92d507c23b70f6.zip
gdb-29d17e4773334ae60ffac7ea7f92d507c23b70f6.tar.gz
gdb-29d17e4773334ae60ffac7ea7f92d507c23b70f6.tar.bz2
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.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure30
1 files changed, 0 insertions, 30 deletions
diff --git a/gdb/configure b/gdb/configure
index 3ee88e4..9cd0036 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12394,36 +12394,6 @@ _ACEOF
-ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
-if test "x$ac_cv_have_decl_free" = xyes; then :
- ac_have_decl=1
-else
- ac_have_decl=0
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_FREE $ac_have_decl
-_ACEOF
-ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
-if test "x$ac_cv_have_decl_malloc" = xyes; then :
- ac_have_decl=1
-else
- ac_have_decl=0
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_MALLOC $ac_have_decl
-_ACEOF
-ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
-if test "x$ac_cv_have_decl_realloc" = xyes; then :
- ac_have_decl=1
-else
- ac_have_decl=0
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_REALLOC $ac_have_decl
-_ACEOF
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
if test "x$ac_cv_have_decl_snprintf" = xyes; then :
ac_have_decl=1