aboutsummaryrefslogtreecommitdiff
path: root/sim/iq2000
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-10 15:55:44 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-10 16:13:13 -0500
commit35656e95217a20309c0a0f16bf0c89a49a549177 (patch)
tree14b29a99593a98996dd1ccea1fe17603c48eab52 /sim/iq2000
parent99d8e879938c947588332a9cc579d378ccc2a855 (diff)
downloadfsf-binutils-gdb-35656e95217a20309c0a0f16bf0c89a49a549177.zip
fsf-binutils-gdb-35656e95217a20309c0a0f16bf0c89a49a549177.tar.gz
fsf-binutils-gdb-35656e95217a20309c0a0f16bf0c89a49a549177.tar.bz2
sim: allow the assert configure option everywhere
Currently ports have to call SIM_AC_OPTION_ASSERT explicitly in order to make the configure flag available, which none of them do. There's no real reason to not allow this flag for all ports, so move it to the common sim macro. This way we get standard behavior across all ports.
Diffstat (limited to 'sim/iq2000')
-rw-r--r--sim/iq2000/ChangeLog4
-rwxr-xr-xsim/iq2000/configure21
2 files changed, 23 insertions, 2 deletions
diff --git a/sim/iq2000/ChangeLog b/sim/iq2000/ChangeLog
index 90efcd4..f3872a0 100644
--- a/sim/iq2000/ChangeLog
+++ b/sim/iq2000/ChangeLog
@@ -4,6 +4,10 @@
2016-01-10 Mike Frysinger <vapier@gentoo.org>
+ * configure: Regenerate.
+
+2016-01-10 Mike Frysinger <vapier@gentoo.org>
+
* configure.ac (SIM_AC_OPTION_INLINE): Delete call.
* configure: Regenerate.
diff --git a/sim/iq2000/configure b/sim/iq2000/configure
index d304c2d..a4b398d 100755
--- a/sim/iq2000/configure
+++ b/sim/iq2000/configure
@@ -755,6 +755,7 @@ enable_sim_debug
enable_sim_stdio
enable_sim_trace
enable_sim_profile
+enable_sim_assert
enable_sim_inline
with_pkgversion
with_bugurl
@@ -1408,6 +1409,7 @@ Optional Features:
--enable-sim-trace=opts Enable tracing of simulated programs
--enable-sim-profile=opts
Enable profiling flags
+ --enable-sim-assert Specify whether to perform random assertions
--enable-sim-inline=inlines
Specify which functions should be inlined
--enable-sim-endian=endian
@@ -12852,7 +12854,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12855 "configure"
+#line 12857 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12958,7 +12960,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12961 "configure"
+#line 12963 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13312,6 +13314,21 @@ fi
+# Check whether --enable-sim-assert was given.
+if test "${enable_sim_assert+set}" = set; then :
+ enableval=$enable_sim_assert; case "${enableval}" in
+ yes) sim_assert="-DWITH_ASSERT=1";;
+ no) sim_assert="-DWITH_ASSERT=0";;
+ *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
+esac
+if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
+ echo "Setting assert flags = $sim_assert" 6>&1
+fi
+else
+ sim_assert=""
+fi
+
+
sim_inline="-DDEFAULT_INLINE=0"
# Check whether --enable-sim-inline was given.
if test "${enable_sim_inline+set}" = set; then :