]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
build: Discard obsolete references to $(GCC_PARTS)
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 23 Nov 2024 14:02:42 +0000 (14:02 +0000)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 23 Nov 2024 14:02:42 +0000 (14:02 +0000)
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.GA32355@nevyn.them.org/>

[2] <https://inbox.sourceware.org/gcc-patches/20110906151510.GA5213@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).

gcc/ada/gcc-interface/Make-lang.in
gcc/m2/Make-lang.in

index 0b8f2dd5640670e15af8c28aacbbae7b5cb02754..f3009f1d612c6290f9179c3c9a73c06292e9b4eb 100644 (file)
@@ -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
 
index e2a152f78d76c116c5fbd150ecf38db4147874ae..7515a9b10192026e2b9406ad6ca42715e57565fa 100644 (file)
@@ -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