aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-13 01:32:33 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-13 20:33:35 -0400
commit0f318b8478699c4babdcb6cf1a5a2a06c1155086 (patch)
treebfcd315e6b13a32229afcb88002842b26280ac60 /sim/rx
parentf4d7566aef1881023591863833492b4864a586bf (diff)
downloadbinutils-0f318b8478699c4babdcb6cf1a5a2a06c1155086.zip
binutils-0f318b8478699c4babdcb6cf1a5a2a06c1155086.tar.gz
binutils-0f318b8478699c4babdcb6cf1a5a2a06c1155086.tar.bz2
sim: rx: move cycle-accurate settings to CPPFLAGS
This is the last unique setting that rx has in its config.h, so by moving this to CPPFLAGS, we can drop its config.h entirely.
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog7
-rw-r--r--sim/rx/Makefile.in2
-rw-r--r--sim/rx/config.in3
-rwxr-xr-xsim/rx/configure10
-rw-r--r--sim/rx/configure.ac3
5 files changed, 15 insertions, 10 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index a368dc4..35a9791 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,10 @@
+2021-06-13 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (SIM_EXTRA_CFLAGS): Set to @sim_cycle_accurate_flags@.
+ * configure.ac: Move CYCLE_ACCURATE define from AC_DEFINE to
+ AC_SUBST.
+ * config.in, configure: Regenerate.
+
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* README.txt: Change cycle-stats to sim-profile.
diff --git a/sim/rx/Makefile.in b/sim/rx/Makefile.in
index 4008aac..799febd 100644
--- a/sim/rx/Makefile.in
+++ b/sim/rx/Makefile.in
@@ -20,7 +20,7 @@
## COMMON_PRE_CONFIG_FRAG
-SIM_EXTRA_CFLAGS = -Wall
+SIM_EXTRA_CFLAGS = @sim_cycle_accurate_flags@
SIM_RUN_OBJS = \
main.o \
diff --git a/sim/rx/config.in b/sim/rx/config.in
index fd650fd..c3a5c27 100644
--- a/sim/rx/config.in
+++ b/sim/rx/config.in
@@ -3,9 +3,6 @@
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
-/* --enable-cycle-accurate */
-#undef CYCLE_ACCURATE
-
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#undef ENABLE_NLS
diff --git a/sim/rx/configure b/sim/rx/configure
index 6700fb0..151def5 100755
--- a/sim/rx/configure
+++ b/sim/rx/configure
@@ -639,6 +639,7 @@ sim_endian
sim_bitsize
sim_alignment
cgen_breaks
+sim_cycle_accurate_flags
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
@@ -10744,7 +10745,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10747 "configure"
+#line 10748 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10850,7 +10851,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10853 "configure"
+#line 10854 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11159,12 +11160,11 @@ fi
echo enable_cycle_accurate is $enable_cycle_accurate
if test "x${enable_cycle_accurate}" != xno; then
-
-$as_echo "#define CYCLE_ACCURATE 1" >>confdefs.h
-
+ sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
fi
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
diff --git a/sim/rx/configure.ac b/sim/rx/configure.ac
index b2725fe..b4881f8 100644
--- a/sim/rx/configure.ac
+++ b/sim/rx/configure.ac
@@ -34,7 +34,8 @@ esac])
echo enable_cycle_accurate is $enable_cycle_accurate
if test "x${enable_cycle_accurate}" != xno; then
- AC_DEFINE([CYCLE_ACCURATE], 1, [--enable-cycle-accurate])
+ sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
fi
+AC_SUBST(sim_cycle_accurate_flags)
SIM_AC_OUTPUT