]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: rx: move cycle-accurate settings to CPPFLAGS
authorMike Frysinger <vapier@gentoo.org>
Sun, 13 Jun 2021 05:32:33 +0000 (01:32 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 14 Jun 2021 00:33:35 +0000 (20:33 -0400)
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.

sim/rx/ChangeLog
sim/rx/Makefile.in
sim/rx/config.in
sim/rx/configure
sim/rx/configure.ac

index a368dc4bf6c3f68d133614bb890f44612c5f251b..35a9791a112c43f7c33312b01655774a4c8d62b3 100644 (file)
@@ -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.
index 4008aac26194af29807ed6840c86e2a27f57a8f8..799febd61b5ce7c055ec937ec4354d3b82a1b60b 100644 (file)
@@ -20,7 +20,7 @@
 
 ## COMMON_PRE_CONFIG_FRAG
 
-SIM_EXTRA_CFLAGS = -Wall
+SIM_EXTRA_CFLAGS = @sim_cycle_accurate_flags@
 
 SIM_RUN_OBJS = \
        main.o \
index fd650fd41c00f5d664f64fe8098a432e861ca215..c3a5c27da565ff539885394cc6a96e486b619817 100644 (file)
@@ -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
index 6700fb0595eafccdcdcd89a5788cff0c493d8f8c..151def506a76de75778ed0b6742c06ae33ba103a 100755 (executable)
@@ -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
 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
index b2725fea79766e130f517cc40ee672f67ed4439f..b4881f8488c6050e31abf0312d1975de8ecbaa30 100644 (file)
@@ -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