From 19f6a43c6c17147acba638eab64f2bf8de4b1447 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 22 Apr 2021 19:51:54 -0600 Subject: Do not check for sys/time.h or sys/times.h This updates the sim so that it unconditionally uses sys/time.h. This is in agreement with existing code, and a recent change to BFD. I also think that sys/times.h is never needed by the sim, so this patch removes the check and the one spot that was conditionally including it. sim/ChangeLog 2021-04-22 Tom Tromey * m4/sim_ac_common.m4 (SIM_AC_COMMON): Don't check for sys/time.h or sys/times.h. sim/aarch64/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/arm/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/avr/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/bfin/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/bpf/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/common/ChangeLog 2021-04-22 Tom Tromey * sim-utils.c: Update includes. sim/cr16/ChangeLog 2021-04-22 Tom Tromey * simops.c: Update includes. * configure, config.in: Rebuild. sim/cris/ChangeLog 2021-04-22 Tom Tromey * rvdummy.c: Update includes. * dv-rv.c: Update includes. * configure, config.in: Rebuild. sim/d10v/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/erc32/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/example-synacor/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/frv/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/ft32/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/h8300/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/iq2000/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/lm32/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/m32c/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/m32r/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/m68hc11/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/mcore/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/microblaze/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/mips/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/mn10300/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/moxie/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/msp430/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/or1k/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/ppc/ChangeLog 2021-04-22 Tom Tromey * mon.c: Update includes. * emul_unix.c: Update includes. (do_unix_gettimeofday): Update condition. sim/pru/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/riscv/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/rl78/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/rx/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. sim/sh/ChangeLog 2021-04-22 Tom Tromey * interp.c: Update includes. * configure, config.in: Rebuild. sim/v850/ChangeLog 2021-04-22 Tom Tromey * configure, config.in: Rebuild. --- sim/ppc/ChangeLog | 6 ++++++ sim/ppc/emul_unix.c | 4 +--- sim/ppc/mon.c | 6 ------ 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'sim/ppc') diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 340a6d4..5f7f306 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,11 @@ 2021-04-22 Tom Tromey + * mon.c: Update includes. + * emul_unix.c: Update includes. + (do_unix_gettimeofday): Update condition. + +2021-04-22 Tom Tromey + * Makefile.in (stamp-vals, stamp-map): New targets. (targ-vals.h, targ-map.c): Update. (clean): Remove files. diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index 2616ae4..79ef7bc 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -53,9 +53,7 @@ #include #endif -#ifdef HAVE_SYS_TIME_H #include -#endif #ifndef HAVE_TERMIOS_STRUCTURE #undef HAVE_SYS_TERMIOS_H @@ -820,7 +818,7 @@ do_unix_time(os_emul_data *emul, } #endif -#if !defined(HAVE_GETTIMEOFDAY) || !defined(HAVE_SYS_TIME_H) +#if !defined(HAVE_GETTIMEOFDAY) #define do_unix_gettimeofday 0 #else static void diff --git a/sim/ppc/mon.c b/sim/ppc/mon.c index 452cd19..966f86c 100644 --- a/sim/ppc/mon.c +++ b/sim/ppc/mon.c @@ -35,13 +35,7 @@ #include #endif #include -#ifdef HAVE_SYS_TIMES_H -#include -#endif - -#ifdef HAVE_SYS_TIME_H #include -#endif #ifdef HAVE_SYS_RESOURCE_H #include -- cgit v1.1