https://gcc.gnu.org/g:38cbee0b3c8da58c7e195c582867ffacee3b0850
commit r15-5609-g38cbee0b3c8da58c7e195c582867ffacee3b0850 Author: Maciej W. Rozycki <ma...@orcam.me.uk> Date: Sat Nov 23 14:02:42 2024 +0000 build: Discard obsolete references to $(GCC_PARTS) The $(GCC_PARTS) variable was deleted with the Makefile rework in commit fa9585134f6f ("libgcc move to the top level")[1] back in 2007, and yet the Ada and Modula 2 frontends added references to this variable later on, with commit e972fd5281b7 ("[Ada] clean ups in Makefiles")[2] back in 2011 and commit 1eee94d35177 ("Merge modula-2 front end onto gcc.") back in 2022 respectively. I guess it's because the frontends lived too long externally. Discard the references then, they serve no purpose nowadays. References: [1] <https://inbox.sourceware.org/gcc-patches/20061219191730.ga32...@nevyn.them.org/> [2] <https://inbox.sourceware.org/gcc-patches/20110906151510.ga5...@adacore.com/> gcc/ada/ * gcc-interface/Make-lang.in (gnattools): Remove $(GCC_PARTS). gcc/m2/ * Make-lang.in (m2 modula-2 modula2): Remove $(GCC_PARTS). Diff: --- gcc/ada/gcc-interface/Make-lang.in | 2 +- gcc/m2/Make-lang.in | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/ada/gcc-interface/Make-lang.in b/gcc/ada/gcc-interface/Make-lang.in index 0b8f2dd56406..f3009f1d612c 100644 --- a/gcc/ada/gcc-interface/Make-lang.in +++ b/gcc/ada/gcc-interface/Make-lang.in @@ -793,7 +793,7 @@ gnatbind$(exeext): ada/b_gnatb.o $(CONFIG_H) $(GNATBIND_OBJS) $(EXTRA_HOST_OBJS) +$(GCC_LINK) -o $@ $(CFLAGS) ada/b_gnatb.o $(GNATBIND_OBJS) $(EXTRA_HOST_OBJS) ggc-none.o libcommon-target.a $(LIBS) $(SYSLIBS) $(GNATLIB) # use target-gcc target-gnatmake target-gnatbind target-gnatlink -gnattools: $(GCC_PARTS) $(CONFIG_H) prefix.o force +gnattools: $(CONFIG_H) prefix.o force $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools1 $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools2 diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in index e2a152f78d76..7515a9b10192 100644 --- a/gcc/m2/Make-lang.in +++ b/gcc/m2/Make-lang.in @@ -65,8 +65,7 @@ RSTSRC = $(srcdir)/doc/gm2.texi \ m2/Builtins.rst # Define the names for selecting modula-2 in LANGUAGES. -m2 modula-2 modula2: gm2$(exeext) xgcc$(exeext) cc1gm2$(exeext) \ - $(GCC_PASSES) $(GCC_PARTS) +m2 modula-2 modula2: gm2$(exeext) xgcc$(exeext) cc1gm2$(exeext) $(GCC_PASSES) m2.serial = cc1gm2$(exeext) m2.tags: force