aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-29 12:47:59 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-08 00:15:56 -0400
commitc469a502522d5f09fdbf5e6416e9ddd8ebec196b (patch)
treecedc5c7aa4c4699a474cccb9cac1669d4a4f8ab5
parent64c2e4a530837b13f987f5de386c49bac90aef43 (diff)
downloadgdb-c469a502522d5f09fdbf5e6416e9ddd8ebec196b.zip
gdb-c469a502522d5f09fdbf5e6416e9ddd8ebec196b.tar.gz
gdb-c469a502522d5f09fdbf5e6416e9ddd8ebec196b.tar.bz2
sim: v850: assume chown is available
Now that gnulib provides a wrapper, assume it always exists.
-rw-r--r--sim/v850/ChangeLog6
-rw-r--r--sim/v850/config.in3
-rwxr-xr-xsim/v850/configure7
-rw-r--r--sim/v850/configure.ac2
-rw-r--r--sim/v850/simops.c2
5 files changed, 9 insertions, 11 deletions
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog
index 29237d8..8f0baa0 100644
--- a/sim/v850/ChangeLog
+++ b/sim/v850/ChangeLog
@@ -1,3 +1,9 @@
+2021-06-08 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac (AC_CHECK_FUNCS_ONCE): Remove chown.
+ * simops.c (OP_10007E0): Remove HAVE_CHOWN check.
+ * config.in, configure: Regenerate.
+
2021-05-29 Mike Frysinger <vapier@gentoo.org>
* simops.c (OP_10007E0): Add (void*) casts to argv & envp.
diff --git a/sim/v850/config.in b/sim/v850/config.in
index 74af5e5..b6a4255 100644
--- a/sim/v850/config.in
+++ b/sim/v850/config.in
@@ -13,9 +13,6 @@
/* 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
diff --git a/sim/v850/configure b/sim/v850/configure
index bc49f30..29999bd 100755
--- a/sim/v850/configure
+++ b/sim/v850/configure
@@ -2321,7 +2321,6 @@ as_fn_append ac_func_list " utime"
as_fn_append ac_func_list " fork"
as_fn_append ac_func_list " execve"
as_fn_append ac_func_list " execv"
-as_fn_append ac_func_list " chown"
as_fn_append ac_header_list " utime.h"
# Check that the precious variables saved in the cache have kept the same
# value.
@@ -11220,7 +11219,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11223 "configure"
+#line 11222 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11326,7 +11325,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11329 "configure"
+#line 11328 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12057,8 +12056,6 @@ fi
-
-
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
diff --git a/sim/v850/configure.ac b/sim/v850/configure.ac
index f2edf1f..892e78b 100644
--- a/sim/v850/configure.ac
+++ b/sim/v850/configure.ac
@@ -9,7 +9,7 @@ SIM_AC_OPTION_ALIGNMENT(,NONSTRICT_ALIGNMENT)
SIM_AC_OPTION_RESERVED_BITS
SIM_AC_OPTION_BITSIZE(32,31)
-AC_CHECK_FUNCS_ONCE(chmod utime fork execve execv chown)
+AC_CHECK_FUNCS_ONCE(chmod utime fork execve execv)
AC_CHECK_HEADERS_ONCE(utime.h)
SIM_AC_OUTPUT
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index f0e2745..800a590 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -1859,7 +1859,6 @@ OP_10007E0 (void)
break;
#endif
-#ifdef HAVE_CHOWN
#ifdef TARGET_SYS_chown
case TARGET_SYS_chown:
{
@@ -1870,7 +1869,6 @@ OP_10007E0 (void)
}
break;
#endif
-#endif
#if HAVE_CHMOD
#ifdef TARGET_SYS_chmod