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 $(EXTRA_MULTILIB_PARTS)


Gcc Makefile tries to copy $(EXTRA_MULTILIB_PARTS) before each stage
starts. There are several problems:

1. They don't exist when each stage starts.
2. If we want to save the old ones before each stage starts, we should
use mv, not cp.
3. They are under $(MULTILIB_DIRNAMES) when they are built.
4. We don't save libgcc for each stage. Shouldn't we also skip
$(EXTRA_MULTILIB_PARTS)?

This patch removes $(EXTRA_MULTILIB_PARTS) from the start of each
stage.


H.J.
----
2003-08-19  H.J. Lu  <hongjiu.lu@intel.com>

	(stage1-start): Remove $(EXTRA_MULTILIB_PARTS).
	(stage2-start): Likewise.
	(stage3-start): Likewise.
	(stage4-start): Likewise.
	(stageprofile-start): Likewise.
	(stagefeedback-start): Likewise.

--- gcc/Makefile.in.ml	2003-08-15 23:18:08.000000000 -0700
+++ gcc/Makefile.in	2003-08-19 16:48:58.000000000 -0700
@@ -3791,10 +3791,6 @@ stage1-start:
 	-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \
 	   $(RANLIB_FOR_TARGET) stage1/libgcc_eh.a; \
 	fi
-	-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
-	  cp stage1/$${f} . ; \
-	else true; \
-	fi; done
 stage1: force stage1-start lang.stage1
 	-for dir in . $(SUBDIRS) ; \
 	do \
@@ -3824,10 +3820,6 @@ stage2-start:
 	-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage2; \
 	   $(RANLIB_FOR_TARGET) stage2/libgcc_eh.a; \
 	fi
-	-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
-	  cp stage2/$${f} . ; \
-	else true; \
-	fi; done
 stage2: force stage2-start lang.stage2
 
 stage3-start:
@@ -3853,10 +3845,6 @@ stage3-start:
 	-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage3; \
 	   $(RANLIB_FOR_TARGET) stage3/libgcc_eh.a; \
 	fi
-	-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
-	  cp stage3/$${f} . ; \
-	else true; \
-	fi; done
 stage3: force stage3-start lang.stage3
 
 stage4-start:
@@ -3882,10 +3870,6 @@ stage4-start:
 	-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage4; \
 	   $(RANLIB_FOR_TARGET) stage4/libgcc_eh.a; \
 	fi
-	-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
-	  cp stage4/$${f} . ; \
-	else true; \
-	fi; done
 stage4: force stage4-start lang.stage4
 
 stageprofile-start:
@@ -3909,10 +3893,6 @@ stageprofile-start:
 	-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stageprofile; \
 	   $(RANLIB_FOR_TARGET) stageprofile/libgcc_eh.a; \
 	fi
-	-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
-	  cp stageprofile/$${f} . ; \
-	else true; \
-	fi; done
 stageprofile: force stageprofile-start lang.stageprofile
 
 stagefeedback-start:
@@ -3941,10 +3921,6 @@ stagefeedback-start:
 	-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stagefeedback; \
 	   $(RANLIB_FOR_TARGET) stagefeedback/libgcc_eh.a; \
 	fi
-	-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
-	  cp stagefeedback/$${f} . ; \
-	else true; \
-	fi; done
 stagefeedback: force stagefeedback-start lang.stagefeedback
 
 # Copy just the executable files from a particular stage into a subdirectory,


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