mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
ENABLE_CHECKING in bfd, opcodes, binutils, ld
gas already has this. Here it enables checking hash table type passed to elf_link_hash_lookup and elf_link_hash_traverse. bfd/ * elf-bfd.h (ENABLE_CHECKING): Define. (elf_link_hash_lookup): Abort if wrong type of hash table. (elf_link_hash_traverse): Likewise. * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. binutils/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. ld/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. opcodes/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate.
This commit is contained in:
@@ -33,6 +33,19 @@ AC_USE_SYSTEM_EXTENSIONS
|
||||
LT_INIT
|
||||
ACX_LARGEFILE
|
||||
|
||||
ac_checking=
|
||||
. ${srcdir}/../bfd/development.sh
|
||||
test "$development" = true && ac_checking=yes
|
||||
AC_ARG_ENABLE(checking,
|
||||
[ --enable-checking enable run-time checks],
|
||||
[case "${enableval}" in
|
||||
no|none) ac_checking= ;;
|
||||
*) ac_checking=yes ;;
|
||||
esac])dnl
|
||||
if test x$ac_checking != x ; then
|
||||
AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(targets,
|
||||
[ --enable-targets alternative target configurations],
|
||||
[case "${enableval}" in
|
||||
|
||||
Reference in New Issue
Block a user