aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-18 21:50:07 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-18 21:55:17 -0400
commit37e9f18266e768ad93243fd34f9046c260b3096b (patch)
treeccb57e877ff8e68fdad6eaeb028a62182ba20e0d /sim/mips
parent3e91feb948093ffc52678681401cc2adabd13d38 (diff)
downloadfsf-binutils-gdb-37e9f18266e768ad93243fd34f9046c260b3096b.zip
fsf-binutils-gdb-37e9f18266e768ad93243fd34f9046c260b3096b.tar.gz
fsf-binutils-gdb-37e9f18266e768ad93243fd34f9046c260b3096b.tar.bz2
sim: switch to AC_CHECK_FUNCS_ONCE & merge a little
This avoids duplicate tests for functions between common m4, arches, and any other sources that would trigger func tests. Also manually delete known duplicate function tests between the m4, bfin, and v850 ports.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog4
-rwxr-xr-xsim/mips/configure73
2 files changed, 52 insertions, 25 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index b158074..b5ca7e7 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * configure: Regenerate.
+
2021-04-12 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
diff --git a/sim/mips/configure b/sim/mips/configure
index e89ed1c..d623dda 100755
--- a/sim/mips/configure
+++ b/sim/mips/configure
@@ -629,6 +629,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
+ac_func_list=
ac_subst_vars='LTLIBOBJS
LIBOBJS
sim_default_model
@@ -2321,6 +2322,16 @@ $as_echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
+as_fn_append ac_func_list " __setfpucw"
+as_fn_append ac_func_list " ftruncate"
+as_fn_append ac_func_list " getrusage"
+as_fn_append ac_func_list " lstat"
+as_fn_append ac_func_list " mmap"
+as_fn_append ac_func_list " munmap"
+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"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
@@ -3895,6 +3906,41 @@ rmdir .tst 2>/dev/null
DEPDIR="${am__leading_dot}deps"
+
+
+
+ for ac_func in $ac_func_list
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
case `pwd` in
*\ * | *\ *)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
@@ -7341,29 +7387,6 @@ fi
done
-for ac_func in getrusage time sigaction __setfpucw
-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_func in mmap munmap lstat truncate ftruncate posix_fallocate
-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
ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -11265,7 +11288,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11268 "configure"
+#line 11291 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11371,7 +11394,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11374 "configure"
+#line 11397 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H