diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-05 10:02:58 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-05 10:04:30 +0700 |
commit | 0fa7ad4eb4f76e24fabf6a15197f078a3ba60d80 (patch) | |
tree | 3f0f2d0fbf6b9ccbaaa1eac7650140816229f1e6 /sim/ppc/configure.ac | |
parent | 1b2af6a41e68e6deac7c54183131e01cf34584b5 (diff) | |
download | binutils-0fa7ad4eb4f76e24fabf6a15197f078a3ba60d80.zip binutils-0fa7ad4eb4f76e24fabf6a15197f078a3ba60d80.tar.gz binutils-0fa7ad4eb4f76e24fabf6a15197f078a3ba60d80.tar.bz2 |
sim: ppc: drop unused /dev/zero logic
Nothing in the tree checks this option, or has checked for decades.
The pre-cvs-import ChangeLog suggests this was added & removed back
then, but can't be sure as that history doesn't exist in the VCS.
Diffstat (limited to 'sim/ppc/configure.ac')
-rw-r--r-- | sim/ppc/configure.ac | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 3054202..542e8a1 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -490,33 +490,6 @@ fi AC_CHECK_TYPES(long long) -dnl Figure out if /dev/zero exists or not -sim_devzero="" -AC_MSG_CHECKING(for /dev/zero) -AC_CACHE_VAL(ac_cv_devzero, -[AC_TRY_RUN([#include <fcntl.h> -main () { - char buf[2048]; - int i; - int fd = open ("/dev/zero", O_RDONLY); - if (fd < 0) - return 1; - for (i = 0; i < sizeof (buf); i++) - buf[i] = 1; - if (read (fd, buf, sizeof (buf)) != sizeof (buf)) - return 1; - for (i = 0; i < sizeof (buf); i++) - if (buf[i]) - return 1; - return 0; -}],[ac_cv_devzero=yes],[ac_cv_devzero=no],[ac_cv_devzero=no])]) -AC_MSG_RESULT($ac_cv_devzero) -if test $ac_cv_devzero = yes; then - sim_devzero="-DHAVE_DEVZERO" -else - sim_devzero="" -fi - # Since we run commands on the build system, we have to create a # separate config header for the build system if build != host. if test x$host = x$build; then @@ -570,7 +543,6 @@ AC_SUBST(sim_model) AC_SUBST(sim_default_model) AC_SUBST(sim_model_issue) AC_SUBST(sim_termio) -AC_SUBST(sim_devzero) AC_OUTPUT(Makefile, [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac]) |