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]

Re: PATCH: PR bootstrap/17313: fixinc.sh isn't parallel build safe


On Sat, Sep 04, 2004 at 08:50:43AM -0700, H. J. Lu wrote:
> fixinc.sh uses cc1. But there is no dependency on it. It isn't parallel
> build safe. This patch works for me.
> 
> 

This patch also works and won't cause fixinc.sh to be rebuilt for each
stage.


H.J.
----
2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/17313
	* Makefile.in (fixinc.sh): Depend on specs.ready.
	(stmp-fixinc): Remove dependency on specs.ready.

--- gcc/Makefile.in.mddep	2004-09-05 23:55:04.000000000 -0700
+++ gcc/Makefile.in	2004-09-05 23:59:16.137233255 -0700
@@ -2801,7 +2801,8 @@ stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) 
 # fixinc.sh depends on this, not on specs directly.
 # The idea is to make sure specs gets built, but not rerun fixinc.sh
 # after each stage just because specs' mtime has changed.
-specs.ready: specs
+# It also depend on cc1 since fixinc.sh uses it.
+specs.ready: specs cc1$(exeext)
 	-if [ -f specs.ready ] ; then \
 		true; \
 	else \


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