diff options
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/config.in | 3 | ||||
-rwxr-xr-x | opcodes/configure | 22 | ||||
-rw-r--r-- | opcodes/configure.ac | 13 |
4 files changed, 42 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index d2b5435..f63eb47 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2021-04-12 Alan Modra <amodra@gmail.com> + + * configure.ac (--enable-checking): Add support. + * config.in: Regenerate. + * configure: Regenerate. + 2021-04-09 Tejas Belagod <tejas.belagod@arm.com> * aarch64-tbl.h (struct aarch64_opcode aarch64_opcode_table): Reclassify diff --git a/opcodes/config.in b/opcodes/config.in index 9807dd7..392cda5 100644 --- a/opcodes/config.in +++ b/opcodes/config.in @@ -7,6 +7,9 @@ #endif #define __CONFIG_H__ 1 +/* Define if you want run-time sanity checks. */ +#undef ENABLE_CHECKING + /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS diff --git a/opcodes/configure b/opcodes/configure index 8fcdb5b..922a939 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -799,6 +799,7 @@ with_pic enable_fast_install with_gnu_ld enable_libtool_lock +enable_checking enable_targets enable_werror enable_build_warnings @@ -1446,6 +1447,7 @@ Optional Features: --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) + --enable-checking enable run-time checks --enable-targets alternative target configurations --enable-werror treat compile warnings as errors --enable-build-warnings enable build-time compiler warnings @@ -10806,7 +10808,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10809 "configure" +#line 10811 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10912,7 +10914,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10915 "configure" +#line 10917 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11150,6 +11152,22 @@ CC="$lt_save_CC" +ac_checking= +. ${srcdir}/../bfd/development.sh +test "$development" = true && ac_checking=yes +# Check whether --enable-checking was given. +if test "${enable_checking+set}" = set; then : + enableval=$enable_checking; case "${enableval}" in + no|none) ac_checking= ;; + *) ac_checking=yes ;; +esac +fi +if test x$ac_checking != x ; then + +$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h + +fi + # Check whether --enable-targets was given. if test "${enable_targets+set}" = set; then : enableval=$enable_targets; case "${enableval}" in diff --git a/opcodes/configure.ac b/opcodes/configure.ac index 7cf0d29..911c9c6 100644 --- a/opcodes/configure.ac +++ b/opcodes/configure.ac @@ -40,6 +40,19 @@ AC_DISABLE_SHARED LT_INIT +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 |