aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-20 09:21:28 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-20 09:23:56 -0400
commitd549b029d6d622af531211ef4c7bc48cb5011d93 (patch)
treeed70bf9345526cfbcef5b01359621ab1dab583b4
parentaee4e85e27f94be438e480b59f3218c6fa3463d5 (diff)
downloadgdb-d549b029d6d622af531211ef4c7bc48cb5011d93.zip
gdb-d549b029d6d622af531211ef4c7bc48cb5011d93.tar.gz
gdb-d549b029d6d622af531211ef4c7bc48cb5011d93.tar.bz2
sim: rl78/rx: drop unnecessary getopt.h probing
Since getopt.h is provided by libiberty, there's no need to probe for a system version of it. Plus we already assume it exists in other parts of the sim.
-rw-r--r--sim/rl78/ChangeLog6
-rw-r--r--sim/rl78/config.in3
-rwxr-xr-xsim/rl78/configure9
-rw-r--r--sim/rl78/configure.ac2
-rw-r--r--sim/rl78/main.c2
-rw-r--r--sim/rx/ChangeLog6
-rw-r--r--sim/rx/config.in3
-rwxr-xr-xsim/rx/configure9
-rw-r--r--sim/rx/configure.ac2
-rw-r--r--sim/rx/main.c2
10 files changed, 16 insertions, 28 deletions
diff --git a/sim/rl78/ChangeLog b/sim/rl78/ChangeLog
index 32cd435..f14e4fc 100644
--- a/sim/rl78/ChangeLog
+++ b/sim/rl78/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-20 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete AC_CHECK_HEADERS_ONCE.
+ * main.c: Delete HAVE_GETOPT_H.
+ * config.in, configure: Regenerate.
+
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
diff --git a/sim/rl78/config.in b/sim/rl78/config.in
index e4894c4..cb5ea1b 100644
--- a/sim/rl78/config.in
+++ b/sim/rl78/config.in
@@ -22,9 +22,6 @@
/* Define to 1 if you have the `ftruncate' function. */
#undef HAVE_FTRUNCATE
-/* Define to 1 if you have the <getopt.h> header file. */
-#undef HAVE_GETOPT_H
-
/* Define to 1 if you have the `getrusage' function. */
#undef HAVE_GETRUSAGE
diff --git a/sim/rl78/configure b/sim/rl78/configure
index 8ba5fd0..7ad7eac 100755
--- a/sim/rl78/configure
+++ b/sim/rl78/configure
@@ -2302,7 +2302,6 @@ as_fn_append ac_func_list " posix_fallocate"
as_fn_append ac_func_list " sigaction"
as_fn_append ac_func_list " time"
as_fn_append ac_func_list " truncate"
-as_fn_append ac_header_list " getopt.h"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
@@ -11244,7 +11243,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11247 "configure"
+#line 11246 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11350,7 +11349,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11353 "configure"
+#line 11352 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11996,10 +11995,6 @@ fi
-
-
-
-
cgen_breaks=""
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
cgen_breaks="break cgen_rtx_error";
diff --git a/sim/rl78/configure.ac b/sim/rl78/configure.ac
index fad367c..0e5f69c 100644
--- a/sim/rl78/configure.ac
+++ b/sim/rl78/configure.ac
@@ -24,6 +24,4 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
SIM_AC_COMMON
SIM_AC_OPTION_WARNINGS(no)
-AC_CHECK_HEADERS_ONCE(getopt.h)
-
SIM_AC_OUTPUT
diff --git a/sim/rl78/main.c b/sim/rl78/main.c
index 3050863..8d8a79d 100644
--- a/sim/rl78/main.c
+++ b/sim/rl78/main.c
@@ -30,9 +30,7 @@
#include <assert.h>
#include <setjmp.h>
#include <signal.h>
-#ifdef HAVE_GETOPT_H
#include <getopt.h>
-#endif
#include "libiberty.h"
#include "bfd.h"
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index be4c653..ac9531d 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-20 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete AC_CHECK_HEADERS_ONCE.
+ * main.c: Delete HAVE_GETOPT_H.
+ * config.in, configure: Regenerate.
+
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
diff --git a/sim/rx/config.in b/sim/rx/config.in
index 97caf8d..7dd69ef 100644
--- a/sim/rx/config.in
+++ b/sim/rx/config.in
@@ -28,9 +28,6 @@
/* Define to 1 if you have the `ftruncate' function. */
#undef HAVE_FTRUNCATE
-/* Define to 1 if you have the <getopt.h> header file. */
-#undef HAVE_GETOPT_H
-
/* Define to 1 if you have the `getrusage' function. */
#undef HAVE_GETRUSAGE
diff --git a/sim/rx/configure b/sim/rx/configure
index ba9d433..ab2f25d 100755
--- a/sim/rx/configure
+++ b/sim/rx/configure
@@ -2307,7 +2307,6 @@ as_fn_append ac_func_list " posix_fallocate"
as_fn_append ac_func_list " sigaction"
as_fn_append ac_func_list " time"
as_fn_append ac_func_list " truncate"
-as_fn_append ac_header_list " getopt.h"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
@@ -11249,7 +11248,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11252 "configure"
+#line 11251 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11355,7 +11354,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11358 "configure"
+#line 11357 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11903,10 +11902,6 @@ _ACEOF
-
-
-
-
# Check whether --enable-cycle-accurate was given.
if test "${enable_cycle_accurate+set}" = set; then :
enableval=$enable_cycle_accurate; case "${enableval}" in
diff --git a/sim/rx/configure.ac b/sim/rx/configure.ac
index 344ab39..5d10768 100644
--- a/sim/rx/configure.ac
+++ b/sim/rx/configure.ac
@@ -23,8 +23,6 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
SIM_AC_COMMON
-AC_CHECK_HEADERS_ONCE(getopt.h)
-
AC_ARG_ENABLE(cycle-accurate,
[AS_HELP_STRING([--disable-cycle-accurate],
[Disable cycle accurate simulation (faster runtime)])],
diff --git a/sim/rx/main.c b/sim/rx/main.c
index 4a9d3ec..20a8434 100644
--- a/sim/rx/main.c
+++ b/sim/rx/main.c
@@ -29,9 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <assert.h>
#include <setjmp.h>
#include <signal.h>
-#ifdef HAVE_GETOPT_H
#include <getopt.h>
-#endif
#include "bfd.h"