This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Remove unused crt targets


ia64 crt*.o targets have been moved to libgcc/config/ia64/t-ia64.
Those in config/ia64/t-ia64 aren't used anymore. Make complains:

Makefile:1639: warning: overriding commands for target
`disablecrtbegin.o'
Makefile:1645: warning: overriding commands for target
`disablecrtend.o'
Makefile:1652: warning: overriding commands for target
`disablecrtbeginS.o'
Makefile:1658: warning: overriding commands for target
`disablecrtendS.o'

This patch removes those unused crt targets. Tested on Linux/ia64.
OK to install?


H.J.
----
2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>

	* config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
	($(T)crtend.o): Likwise.
	($(T)crtbeginS.o): Likwise.
	($(T)crtendS.o): Likwise.
	($(T)crtfastmath.o): Likwise.

--- gcc/config/ia64/t-ia64.dup	2007-01-06 07:57:39.000000000 -0800
+++ gcc/config/ia64/t-ia64	2007-07-13 13:37:22.000000000 -0700
@@ -23,24 +23,6 @@ SHLIB_MAPFILES += $(srcdir)/config/ia64/
 # Effectively disable the crtbegin/end rules using crtstuff.c
 T = disable
 
-# Assemble startup files.
-$(T)crtbegin.o: $(srcdir)/config/ia64/crtbegin.asm $(GCC_PASSES)
-	$(GCC_FOR_TARGET) -I. -c -o $(T)crtbegin.o -x assembler-with-cpp \
-		$(srcdir)/config/ia64/crtbegin.asm
-$(T)crtend.o: $(srcdir)/config/ia64/crtend.asm $(GCC_PASSES)
-	$(GCC_FOR_TARGET) -I. -c -o $(T)crtend.o -x assembler-with-cpp \
-		$(srcdir)/config/ia64/crtend.asm
-$(T)crtbeginS.o: $(srcdir)/config/ia64/crtbegin.asm $(GCC_PASSES)
-	$(GCC_FOR_TARGET) -I. -DSHARED -c -o $(T)crtbeginS.o \
-		-x assembler-with-cpp \
-		$(srcdir)/config/ia64/crtbegin.asm
-$(T)crtendS.o: $(srcdir)/config/ia64/crtend.asm $(GCC_PASSES)
-	$(GCC_FOR_TARGET) -I. -DSHARED -c -o $(T)crtendS.o -x assembler-with-cpp \
-		$(srcdir)/config/ia64/crtend.asm
-$(T)crtfastmath.o: $(srcdir)/config/ia64/crtfastmath.c $(GCC_PASSES)
-	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(T)crtfastmath.o \
-		$(srcdir)/config/ia64/crtfastmath.c
-
 LIB2ADDEH = $(srcdir)/config/ia64/unwind-ia64.c $(srcdir)/unwind-sjlj.c \
   $(srcdir)/unwind-c.c
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]