From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 218A4385841C; Fri, 4 Nov 2022 07:02:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 218A4385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667545336; bh=Y1GB/2I5Iat8Qb/qM4cvJ1wEsO9KyMH+/4SpNN1/U0g=; h=From:To:Subject:Date:From; b=Z7H196UAzbQrOXd5mv6dwnw6tkhzqQviDJb33DEKJ+u8bY+y5NdkBzJCna3qJ4JB9 ZeFPAVoaamwbMXTgL2rddeBbuuV0Z1BlkCe3SaD/9U/QrGlr4jkV4tkmmiWr3tANHA VAhckZuvVi42sHfWCfFJK4BxepQY5VsJE+ZaGh7s= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: build: remove various obsolete generation dep variables X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: c55c1f6e9d7bcc400bc23a0e29ac9e2681ed4c31 X-Git-Newrev: 9146585a05aa162e57d13bd2264f7dc84117c40d Message-Id: <20221104070216.218A4385841C@sourceware.org> Date: Fri, 4 Nov 2022 07:02:14 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9146585a05aa= 162e57d13bd2264f7dc84117c40d commit 9146585a05aa162e57d13bd2264f7dc84117c40d Author: Mike Frysinger Date: Thu Nov 3 20:26:01 2022 +0700 sim: build: remove various obsolete generation dep variables =20 These manual settings were necessary when we weren't doing automatic header dependency tracking. That was changed a while ago, and we use automake now to do it all for us. As a result, many of these vars aren't even referenced anymore. =20 Further, some of the source file generation (e.g. .c files, or igen, or cgen outputs) were moved to the common automake build, and it takes care of dependency tracking for us with the object files. Diff: --- sim/bpf/Makefile.in | 20 +------- sim/common/Make-common.in | 127 ------------------------------------------= ---- sim/cr16/Makefile.in | 2 - sim/cris/Makefile.in | 20 -------- sim/d10v/Makefile.in | 5 -- sim/frv/Makefile.in | 14 ----- sim/iq2000/Makefile.in | 9 ---- sim/lm32/Makefile.in | 9 ---- sim/m32r/Makefile.in | 6 --- sim/mn10300/Makefile.in | 3 -- sim/or1k/Makefile.in | 23 ++------- sim/sh/Makefile.in | 1 - sim/v850/Makefile.in | 4 -- 13 files changed, 4 insertions(+), 239 deletions(-) diff --git a/sim/bpf/Makefile.in b/sim/bpf/Makefile.in index 23b103ce833..52248423535 100644 --- a/sim/bpf/Makefile.in +++ b/sim/bpf/Makefile.in @@ -31,28 +31,10 @@ SIM_OBJS =3D \ $(BPF_GEN_OBJS) \ $(BPF_HAND_OBJS) =20 -SIM_EXTRA_DEPS =3D \ - $(CGEN_INCLUDE_DEPS) \ - arch.h \ - bpf-sim.h \ - eng-le.h eng-be.h \ - $(srcdir)/../../opcodes/bpf-desc.h \ - $(srcdir)/../../opcodes/bpf-opc.h - SIM_EXTRA_CLEAN =3D bpf-clean =20 ## COMMON_POST_CONFIG_FRAG =20 -# BPF headers - -BPF_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - $(SIM_EXTRA_DEPS) \ - cpu.h cpuall.h \ - decode-le.h decode-be.h \ - defs-le.h defs-be.h \ - eng-le.h eng-be.h - # Dependencies for binaries from CGEN generated source =20 mloop-le.o: mloop-le.c @@ -65,7 +47,7 @@ mloop-be.o: mloop-be.c decode-le.o: decode-le.c $(COMPILE) -DWANT_ISA_EBPFLE $(srcdir)/decode-le.c $(POSTCOMPILE) -decode-be.o: decode-be.c $(BPF_INCLUDE_DEPS) +decode-be.o: decode-be.c $(COMPILE) -DWANT_ISA_EBPFBE $(srcdir)/decode-be.c $(POSTCOMPILE) =20 diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index a79a375a90c..2698f7b2b67 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -175,24 +175,6 @@ SIM_NEW_COMMON_OBJS =3D \ \ $(SIM_HW_OBJS) \ =20 -# cgen-sim.h and the headers it includes -CGEN_SIM_DEPS =3D \ - $(srccom)/cgen-sim.h \ - $(srccom)/cgen-defs.h \ - $(srccom)/cgen-scache.h \ - $(srccom)/cgen-fpu.h \ - $(srccom)/cgen-par.h \ - $(srccom)/cgen-cpu.h \ - $(srccom)/cgen-trace.h \ - cpuall.h - -# Add this to SIM_EXTRA_DEPS. -CGEN_INCLUDE_DEPS =3D \ - $(CGEN_SIM_DEPS) \ - $(srccom)/cgen-engine.h \ - $(srccom)/cgen-types.h \ - $(srcdir)/../../include/opcode/cgen.h - ## End COMMON_PRE_CONFIG_FRAG =20 ## COMMON_POST_CONFIG_FRAG @@ -244,9 +226,6 @@ LINK_FOR_BUILD =3D $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(LD= FLAGS_FOR_BUILD) -o $@ =20 RUNTESTFLAGS =3D =20 -callback_h =3D $(srcroot)/include/sim/callback.h -remote_sim_h =3D $(srcroot)/include/sim/sim.h - all: libsim.a run$(EXEEXT) =20 libsim.a: $(LIB_OBJS) @@ -259,104 +238,6 @@ run$(EXEEXT): $(SIM_RUN_OBJS) libsim.a $(LIBDEPS) $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o run$(EXEEXT) \ $(SIM_RUN_OBJS) libsim.a $(EXTRA_LIBS) =20 -# -# Rules for building sim-* components. Triggered by listing the correspon= ding -# .o file in the list of simulator targets. -# - -sim_main_headers =3D \ - sim-main.h \ - $(sim-assert_h) \ - $(sim-base_h) \ - $(sim-cpu_h) \ - $(sim-engine_h) \ - $(sim-events_h) \ - $(sim-memopt_h) \ - $(sim-model_h) \ - $(sim-module_h) \ - $(sim-profile_h) \ - $(sim-trace_h) \ - $(sim-watch_h) \ - $(sim-basics_h) \ - $(SIM_EXTRA_DEPS) - -# Exported version of sim_main_headers. -SIM_MAIN_DEPS =3D \ - $(sim_main_headers) - -sim-alu_h =3D $(srccom)/sim-alu.h -sim-arange_h =3D $(srccom)/sim-arange.h -sim-assert_h =3D $(srccom)/sim-assert.h -sim-base_h =3D $(srccom)/sim-base.h \ - $(sim-module_h) \ - $(sim-trace_h) \ - $(sim-core_h) \ - $(sim-events_h) \ - $(sim-profile_h) \ - $(sim-model_h) \ - $(sim-io_h) \ - $(sim-engine_h) \ - $(sim-watch_h) \ - $(sim-memopt_h) \ - $(sim-cpu_h) -sim-basics_h =3D $(srccom)/sim-basics.h \ - $(sim-config_h) \ - $(callback_h) \ - $(sim-inline_h) \ - $(sim-types_h) \ - $(sim-bits_h) \ - $(sim-endian_h) \ - $(sim-signal_h) \ - $(sim-arange_h) \ - $(sim-utils_h) -sim-bits_h =3D $(srccom)/sim-bits.h \ - $(srccom)/sim-bits.c -sim-config_h =3D $(srccom)/sim-config.h -sim-core_h =3D $(srccom)/sim-core.h -sim-cpu_h =3D $(srccom)/sim-cpu.h -sim-endian_h =3D $(srccom)/sim-endian.h \ - $(srccom)/sim-endian.c -sim-engine_h =3D $(srccom)/sim-engine.h -sim-events_h =3D $(srccom)/sim-events.h -sim-fpu_h =3D $(srccom)/sim-fpu.h -sim-hw_h =3D $(srccom)/sim-hw.h -sim-inline_h =3D $(srccom)/sim-inline.h -sim-io_h =3D $(srccom)/sim-io.h -sim-memopt_h =3D $(srccom)/sim-memopt.h -sim-model_h =3D $(srccom)/sim-model.h -sim-module_h =3D $(srccom)/sim-module.h -sim-n-bits_h =3D $(srccom)/sim-n-bits.h -sim-n-core_h =3D $(srccom)/sim-n-core.h -sim-n-endian_h =3D $(srccom)/sim-n-endian.h -sim-options_h =3D $(srccom)/sim-options.h -sim-profile_h =3D $(srccom)/sim-profile.h -sim-signal_h =3D $(srccom)/sim-signal.h -sim-trace_h =3D $(srccom)/sim-trace.h -sim-types_h =3D $(srccom)/sim-types.h -sim-utils_h =3D $(srccom)/sim-utils.h -sim-watch_h =3D $(srccom)/sim-watch.h - -hw-alloc_h =3D $(srccom)/hw-alloc.h -hw-base_h =3D $(srccom)/hw-base.h -hw-device_h =3D $(srccom)/hw-device.h -hw-events_h =3D $(srccom)/hw-events.h -hw-handles_h =3D $(srccom)/hw-handles.h -hw-instances_h =3D $(srccom)/hw-instances.h -hw-ports_h =3D $(srccom)/hw-ports.h -hw-properties_h =3D $(srccom)/hw-properties.h -hw-tree_h =3D $(srccom)/hw-tree.h - -hw_main_headers =3D \ - $(srccom)/hw-main.h \ - $(hw-alloc_h) \ - $(hw-base_h) \ - $(hw-device_h) \ - $(hw-events_h) \ - $(hw-instances_h) \ - $(hw-handles_h) \ - $(hw-ports_h) \ - $(hw-properties_h) \ - # # Dependency tracking. Most of this is conditional on GNU Make being # found by configure; if GNU Make is not found, we fall back to a @@ -440,14 +321,6 @@ stamp-modules: Makefile $(SIM_OBJS:.o=3D.c) $(SILENCE) rm -f $@.l-tmp $@.tmp $(SILENCE) touch $@ =20 -# CGEN support. - -# For use in Makefile.in for cpu-specific files. -CGEN_MAIN_CPU_DEPS =3D \ - $(SIM_MAIN_DEPS) \ - $(srccom)/cgen-ops.h \ - $(srccom)/cgen-mem.h - # Support targets. =20 install: install-common $(SIM_EXTRA_INSTALL) diff --git a/sim/cr16/Makefile.in b/sim/cr16/Makefile.in index f37bdccf08d..f62589207ee 100644 --- a/sim/cr16/Makefile.in +++ b/sim/cr16/Makefile.in @@ -24,6 +24,4 @@ SIM_OBJS =3D \ table.o \ simops.o =20 -SIM_EXTRA_DEPS =3D simops.h - ## COMMON_POST_CONFIG_FRAG diff --git a/sim/cris/Makefile.in b/sim/cris/Makefile.in index c3660e76f0d..7b69c114d92 100644 --- a/sim/cris/Makefile.in +++ b/sim/cris/Makefile.in @@ -33,12 +33,6 @@ SIM_OBJS =3D \ =20 SIM_EXTRA_HW_DEVICES =3D rv cris cris_900000xx =20 -# Extra headers included by sim-main.h. -# FIXME: $(srccom)/cgen-ops.h should be in CGEN_INCLUDE_DEPS. -SIM_EXTRA_DEPS =3D \ - $(CGEN_INCLUDE_DEPS) $(srccom)/cgen-ops.h \ - arch.h cpuall.h cris-sim.h engv10.h engv32.h - SIM_EXTRA_CLEAN =3D cris-clean =20 ## COMMON_POST_CONFIG_FRAG @@ -56,20 +50,6 @@ rvdummy$(EXEEXT): rvdummy.o $(EXTRA_LIBDEPS) $(ECHO_CCLD) $(LIBTOOL) $(AM_V_lt) --tag=3DCC --mode=3Dlink \ $(CC) $(ALL_CFLAGS) -o rvdummy$(EXEEXT) rvdummy.o $(EXTRA_LIBS) =20 -rvdummy.o: rvdummy.c $(remote_sim_h) $(callback_h) - -# CRISV10 objs - -CRISV10F_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - cpuv10.h decodev10.h engv10.h - -# CRISV32 objs - -CRISV32F_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - cpuv32.h decodev32.h engv32.h - cris-clean: -rm -f stamp-arch -rm -f tmp-* rvdummy$(EXEEXT) diff --git a/sim/d10v/Makefile.in b/sim/d10v/Makefile.in index 458fd80eb67..0437e803fe5 100644 --- a/sim/d10v/Makefile.in +++ b/sim/d10v/Makefile.in @@ -25,9 +25,4 @@ SIM_OBJS =3D \ simops.o \ endian.o =20 -SIM_EXTRA_DEPS =3D simops.h - -INCLUDE =3D d10v_sim.h $(srcroot)/include/sim/callback.h endian.c \ - $(srcroot)/include/gdb/sim-d10v.h - ## COMMON_POST_CONFIG_FRAG diff --git a/sim/frv/Makefile.in b/sim/frv/Makefile.in index effd03699be..3d0646f6ae7 100644 --- a/sim/frv/Makefile.in +++ b/sim/frv/Makefile.in @@ -29,13 +29,6 @@ SIM_OBJS =3D \ profile.o profile-fr400.o profile-fr450.o profile-fr500.o profile-fr550.o= options.o \ reset.o registers.o =20 -# Extra headers included by sim-main.h. -SIM_EXTRA_DEPS =3D \ - $(CGEN_INCLUDE_DEPS) \ - arch.h cpuall.h frv-sim.h $(srcdir)/../../opcodes/frv-desc.h cache.h \ - registers.h profile.h eng.h \ - $(sim-options_h) - SIM_EXTRA_CFLAGS =3D @SIM_FRV_TRAPDUMP_FLAGS@ =20 SIM_EXTRA_CLEAN =3D frv-clean @@ -47,13 +40,6 @@ memory.o sem.o: SIM_WERROR_CFLAGS =3D =20 arch =3D frv =20 -# FRV objs - -FRVBF_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - $(SIM_EXTRA_DEPS) \ - cpu.h decode.h eng.h - frv-clean: rm -f tmp-* rm -f stamp-arch stamp-cpu diff --git a/sim/iq2000/Makefile.in b/sim/iq2000/Makefile.in index e7e0c71ea86..2d8c94cdd02 100644 --- a/sim/iq2000/Makefile.in +++ b/sim/iq2000/Makefile.in @@ -26,11 +26,6 @@ SIM_OBJS =3D \ sim-if.o arch.o \ $(IQ2000_OBJS) =20 -# Extra headers included by sim-main.h. -SIM_EXTRA_DEPS =3D \ - $(CGEN_INCLUDE_DEPS) \ - arch.h cpuall.h $(srcdir)/../../opcodes/iq2000-desc.h eng.h - ALL_CPU_CFLAGS =3D -DHAVE_CPU_IQ2000BF -DHAVE_CPU_IQ10BF =20 SIM_EXTRA_CLEAN =3D iq2000-clean @@ -45,10 +40,6 @@ arch.o: arch.c =20 # IQ2000 objs =20 -IQ2000BF_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - cpu.h decode.h eng.h - iq2000-clean: rm -f tmp-* rm -f stamp-arch stamp-cpu diff --git a/sim/lm32/Makefile.in b/sim/lm32/Makefile.in index 05191597414..5d78e36bf6b 100644 --- a/sim/lm32/Makefile.in +++ b/sim/lm32/Makefile.in @@ -14,21 +14,12 @@ SIM_OBJS =3D \ =20 SIM_EXTRA_HW_DEVICES =3D lm32cpu lm32timer lm32uart =20 -# List of extra dependencies. -# Generally this consists of simulator specific files included by sim-main= .h. -SIM_EXTRA_DEPS =3D $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.= h \ - eng.h - SIM_EXTRA_CLEAN =3D lm32-clean =20 ## COMMON_POST_CONFIG_FRAG =20 arch =3D lm32=20 =20 -LM32BF_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - cpu.h decode.h eng.h - lm32-clean: rm -f stamp-arch stamp-cpu=20 rm -f tmp-* diff --git a/sim/m32r/Makefile.in b/sim/m32r/Makefile.in index 935c33da6e2..6a0e2e5fcf5 100644 --- a/sim/m32r/Makefile.in +++ b/sim/m32r/Makefile.in @@ -35,12 +35,6 @@ SIM_OBJS =3D \ =20 SIM_EXTRA_HW_DEVICES =3D m32r_cache m32r_uart =20 -# Extra headers included by sim-main.h. -SIM_EXTRA_DEPS =3D \ - $(CGEN_INCLUDE_DEPS) \ - arch.h cpuall.h m32r-sim.h $(srcdir)/../../opcodes/m32r-desc.h \ - eng.h engx.h eng2.h - SIM_EXTRA_CLEAN =3D m32r-clean =20 # Some modules don't build cleanly yet. diff --git a/sim/mn10300/Makefile.in b/sim/mn10300/Makefile.in index 5240fc62929..f8ac93cdd56 100644 --- a/sim/mn10300/Makefile.in +++ b/sim/mn10300/Makefile.in @@ -27,9 +27,6 @@ SIM_OBJS =3D $(MN10300_OBJS) interp.o =20 SIM_EXTRA_HW_DEVICES =3D mn103cpu mn103int mn103tim mn103ser mn103iop =20 -# Extra dependencies for "sim-main.h" -SIM_EXTRA_DEPS =3D mn10300_sim.h itable.h idecode.h - # List of extra flags to always pass to $(CC). SIM_EXTRA_CFLAGS =3D -DPOLL_QUIT_INTERVAL=3D0x20 =20 diff --git a/sim/or1k/Makefile.in b/sim/or1k/Makefile.in index 20952cb2f14..fdf49835c7b 100644 --- a/sim/or1k/Makefile.in +++ b/sim/or1k/Makefile.in @@ -40,36 +40,19 @@ SIM_OBJS =3D \ =20 SIM_OBJS +=3D $(OR1K_OBJS) =20 -# Extra headers included by sim-main.h. -SIM_EXTRA_DEPS =3D \ - $(CGEN_INCLUDE_DEPS) \ - or1k-sim.h \ - $(srcdir)/../../opcodes/or1k-desc.h \ - arch.h \ - cpuall.h \ - decode.h - ## COMMON_POST_CONFIG_FRAG =20 arch =3D or1k =20 -# or1k32bf - -OR1K32BF_INCLUDE_DEPS =3D \ - $(CGEN_MAIN_CPU_DEPS) \ - cpu.h \ - decode.h \ - eng.h - -or1k.o: or1k.c $(OR1K32BF_INCLUDE_DEPS) +or1k.o: or1k.c $(COMPILE) $< $(POSTCOMPILE) =20 -sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h eng.h +sim-if.o: sim-if.c $(COMPILE) $< $(POSTCOMPILE) =20 -traps.o: traps.c $(SIM_MAIN_DEPS) eng.h +traps.o: traps.c $(COMPILE) $< $(POSTCOMPILE) =20 diff --git a/sim/sh/Makefile.in b/sim/sh/Makefile.in index 4bba7059ff8..1960cb1fcf4 100644 --- a/sim/sh/Makefile.in +++ b/sim/sh/Makefile.in @@ -21,6 +21,5 @@ SIM_OBJS =3D \ interp.o \ $(SIM_NEW_COMMON_OBJS) \ table.o -SIM_EXTRA_DEPS =3D table.c code.c ppi.c =20 ## COMMON_POST_CONFIG_FRAG diff --git a/sim/v850/Makefile.in b/sim/v850/Makefile.in index ab4214526a4..ec70b0bb15a 100644 --- a/sim/v850/Makefile.in +++ b/sim/v850/Makefile.in @@ -23,8 +23,4 @@ SIM_OBJS =3D \ itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \ sim-resume.o =20 -# List of extra dependencies. -# Generally this consists of simulator specific files included by sim-main= .h. -SIM_EXTRA_DEPS =3D v850_sim.h sim-main.h - ## COMMON_POST_CONFIG_FRAG