[PATCH/committed] sim: mn10300: delete unused func & header tests

Mike Frysinger vapier@gentoo.org
Mon Apr 19 01:33:20 GMT 2021


These appear to have been blindly copied from the v850 port many years
ago as the code has never been used.  Just delete it all and be done.
---
 sim/mn10300/ChangeLog    |  6 ++++++
 sim/mn10300/config.in    | 21 ---------------------
 sim/mn10300/configure    | 25 -------------------------
 sim/mn10300/configure.ac |  3 ---
 sim/mn10300/op_utils.c   |  3 ---
 5 files changed, 6 insertions(+), 52 deletions(-)

diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index 4e377785b4d3..a56f0a374413 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-18  Mike Frysinger  <vapier@gentoo.org>
+
+	* configure.ac: Delete AC_CHECK_FUNCS & AC_CHECK_HEADERS calls.
+	* op_utils.c: Delete utime.h include.
+	* config.in, configure: Regenerate.
+
 2021-04-15  John Baldwin  <jhb@FreeBSD.org>
 
 	* Makefile.in: (tmp-igen) Only pass mn10300.igen to igen.
diff --git a/sim/mn10300/config.in b/sim/mn10300/config.in
index c9fb022ca3e5..c60f7d8649d6 100644
--- a/sim/mn10300/config.in
+++ b/sim/mn10300/config.in
@@ -10,30 +10,15 @@
    language is requested. */
 #undef ENABLE_NLS
 
-/* Define to 1 if you have the `chmod' function. */
-#undef HAVE_CHMOD
-
-/* Define to 1 if you have the `chown' function. */
-#undef HAVE_CHOWN
-
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #undef HAVE_DLFCN_H
 
 /* Define if dv-sockser is usable. */
 #undef HAVE_DV_SOCKSER
 
-/* Define to 1 if you have the `execv' function. */
-#undef HAVE_EXECV
-
-/* Define to 1 if you have the `execve' function. */
-#undef HAVE_EXECVE
-
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
 
-/* Define to 1 if you have the `fork' function. */
-#undef HAVE_FORK
-
 /* Define to 1 if you have the <fpu_control.h> header file. */
 #undef HAVE_FPU_CONTROL_H
 
@@ -154,12 +139,6 @@
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
-/* Define to 1 if you have the `utime' function. */
-#undef HAVE_UTIME
-
-/* Define to 1 if you have the <utime.h> header file. */
-#undef HAVE_UTIME_H
-
 /* Define to 1 if you have the <windows.h> header file. */
 #undef HAVE_WINDOWS_H
 
diff --git a/sim/mn10300/configure b/sim/mn10300/configure
index 3106bdad8d74..0042c83b332f 100755
--- a/sim/mn10300/configure
+++ b/sim/mn10300/configure
@@ -12266,31 +12266,6 @@ fi
 fi
 
 
-for ac_func in time chmod utime fork execve execv chown
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-for ac_header in utime.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
-if test "x$ac_cv_header_utime_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_UTIME_H 1
-_ACEOF
-
-fi
-
-done
-
-
 
 cgen_breaks=""
 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
diff --git a/sim/mn10300/configure.ac b/sim/mn10300/configure.ac
index e2ae2d835b29..f8b8ef8d2b35 100644
--- a/sim/mn10300/configure.ac
+++ b/sim/mn10300/configure.ac
@@ -11,7 +11,4 @@ SIM_AC_OPTION_RESERVED_BITS
 SIM_AC_OPTION_BITSIZE(32,31)
 SIM_AC_OPTION_HARDWARE(yes,,mn103cpu mn103int mn103tim mn103ser mn103iop)
 
-AC_CHECK_FUNCS(time chmod utime fork execve execv chown)
-AC_CHECK_HEADERS(utime.h)
-
 SIM_AC_OUTPUT
diff --git a/sim/mn10300/op_utils.c b/sim/mn10300/op_utils.c
index a696cdbfab97..37d432376425 100644
--- a/sim/mn10300/op_utils.c
+++ b/sim/mn10300/op_utils.c
@@ -2,9 +2,6 @@
 #include "sim-syscall.h"
 #include "targ-vals.h"
 
-#ifdef HAVE_UTIME_H
-#include <utime.h>
-#endif
 #include <time.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
-- 
2.30.2



More information about the Gdb-patches mailing list