This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] removes some unused targets
- From: Rafael Espíndola <rafael dot espindola at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 Oct 2005 15:26:03 -0200
- Subject: [PATCH] removes some unused targets
All frontend except java have something analogous to
treelang TREELANG: ...
in their Make-lang.in. Only the lowercase target is used. The attached
patch removes the other.
Tested with:
../gcc/configure
--enable-languages=c,c++,fortran,java,objc,obj-c++,treelang
--prefix=/work/gcc/inst/
make bootstrap
make install
:ADDPATCH build:
Rafael
2005-09-27 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* gcc/cp/Make-lang.in: Removed the C++ target
* gcc/fortran/Make-lang.in: Removed the FORTRAN target
* gcc/objc/Make-lang.in: Removed the OBJC target
* gcc/objcp/Make-lang.in: Removed the OBJ-C++ target
* gcc/treelang/Make-lang.in: Removed the TREELANG target
* gcc/ada/Make-lang.in: Removed the Ada target
* gcc/Makefile.in: Removed the C target
Index: gcc/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1547
diff -u -3 -p -u -r1.1547 Makefile.in
--- gcc/Makefile.in 12 Oct 2005 12:38:00 -0000 1.1547
+++ gcc/Makefile.in 22 Oct 2005 14:48:11 -0000
@@ -1192,11 +1192,11 @@ native: config.status auto-host.h build-
$(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(COLLECT2)
# Define the names for selecting languages in LANGUAGES.
-C c: cc1$(exeext)
+c: cc1$(exeext)
PROTO: proto
# Tell GNU make these are phony targets.
-.PHONY: C c PROTO proto
+.PHONY: c PROTO proto
# On the target machine, finish building a cross compiler.
# This does the things that can't be done on the host machine.
Index: gcc/ada/Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/ada/Make-lang.in,v
retrieving revision 1.105
diff -u -3 -p -u -r1.105 Make-lang.in
--- gcc/ada/Make-lang.in 5 Sep 2005 07:46:57 -0000 1.105
+++ gcc/ada/Make-lang.in 22 Oct 2005 14:48:11 -0000
@@ -82,10 +82,10 @@ ada/b_gnatb.o-warn = -Wno-error
$(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
# Define the names for selecting Ada in LANGUAGES.
-Ada ada: gnat1$(exeext) gnatbind$(exeext)
+ada: gnat1$(exeext) gnatbind$(exeext)
# Tell GNU Make to ignore these, if they exist.
-.PHONY: Ada ada
+.PHONY: ada
# There are too many Ada sources to check against here. Let's
# always force the recursive make.
Index: gcc/cp/Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/cp/Make-lang.in,v
retrieving revision 1.215
diff -u -3 -p -u -r1.215 Make-lang.in
--- gcc/cp/Make-lang.in 9 Jul 2005 15:45:08 -0000 1.215
+++ gcc/cp/Make-lang.in 22 Oct 2005 14:48:11 -0000
@@ -48,10 +48,10 @@ GXX_TARGET_INSTALL_NAME := $(target_nonc
# Note that it would be nice to move the dependency on g++
# into the C++ rule, but that needs a little bit of work
# to do the right thing within all.cross.
-C++ c++: cc1plus$(exeext)
+c++: cc1plus$(exeext)
# Tell GNU make to ignore these if they exist.
-.PHONY: C++ c++
+.PHONY: c++
g++spec.o: $(srcdir)/cp/g++spec.c $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H) $(CONFIG_H)
(SHLIB_LINK='$(SHLIB_LINK)' \
Index: gcc/fortran/Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/fortran/Make-lang.in,v
retrieving revision 1.23
diff -u -3 -p -u -r1.23 Make-lang.in
--- gcc/fortran/Make-lang.in 18 Sep 2005 17:33:40 -0000 1.23
+++ gcc/fortran/Make-lang.in 22 Oct 2005 14:48:11 -0000
@@ -82,7 +82,7 @@ F95_LIBS = $(GMPLIBS) $(LIBS)
#
# Define the names for selecting gfortran in LANGUAGES.
-FORTRAN fortran: f951$(exeext)
+fortran: f951$(exeext)
# Tell GNU make to ignore files by these names if they exist.
.PHONY: F95 f95
Index: gcc/objc/Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/objc/Make-lang.in,v
retrieving revision 1.82
diff -u -3 -p -u -r1.82 Make-lang.in
--- gcc/objc/Make-lang.in 3 Jul 2005 14:45:35 -0000 1.82
+++ gcc/objc/Make-lang.in 22 Oct 2005 14:48:11 -0000
@@ -38,7 +38,7 @@
#
# Define the names for selecting Objective-C in LANGUAGES.
-OBJC objc: cc1obj$(exeext)
+objc: cc1obj$(exeext)
OBJECTIVE-C objective-c: cc1obj$(exeext)
# Tell GNU make to ignore these if they exist.
Index: gcc/objcp/Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/objcp/Make-lang.in,v
retrieving revision 1.7
diff -u -3 -p -u -r1.7 Make-lang.in
--- gcc/objcp/Make-lang.in 3 Jul 2005 14:45:35 -0000 1.7
+++ gcc/objcp/Make-lang.in 22 Oct 2005 14:48:11 -0000
@@ -38,7 +38,7 @@
#
# Define the names for selecting Objective-C++ in LANGUAGES.
-OBJ-C++ obj-c++: cc1objplus$(exeext)
+obj-c++: cc1objplus$(exeext)
# Tell GNU make to ignore these if they exist.
.PHONY: Obj-c++ obj-C++
Index: gcc/treelang/Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/treelang/Make-lang.in,v
retrieving revision 1.56
diff -u -3 -p -u -r1.56 Make-lang.in
--- gcc/treelang/Make-lang.in 6 Aug 2005 18:25:31 -0000 1.56
+++ gcc/treelang/Make-lang.in 22 Oct 2005 14:48:12 -0000
@@ -68,9 +68,9 @@ treelang/lex.o-warn = -Wno-error
#
# Define the names for selecting treelang in LANGUAGES.
-.phony: treelang TREELANG
+.phony: treelang
-treelang TREELANG:treelang.done
+treelang:treelang.done
treelang.done: gtreelang$(exeext) tree1$(exeext)
$(STAMP) treelang.done