This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [CVS 980420] Fixproto and stdlib.h - PATCH included
- To: ghazi at caip dot rutgers dot edu
- Subject: Re: [CVS 980420] Fixproto and stdlib.h - PATCH included
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Tue, 21 Apr 1998 17:47:50 +0200 (MET DST)
- Cc: egcs-bugs at cygnus dot com
- References: <199804211411.KAA19842@caip.rutgers.edu>
- Reply-To: Manfred Hollstein <manfred at s-direktnet dot de>, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Tue, 21 April 1998, 10:11:54, ghazi@caip.rutgers.edu wrote:
> Good point. I wonder if simply having STMP_FIXPROTO appear
> before LIBGCC is enough. Does this guarantee fixproto is run first for
> parallel builds? (Several years ago I had access to a dual CPU delta.:-) )
> If not, perhaps the dependency should be made explicit.
Oops, you're absolutely right.
Tue Apr 21 17:46:23 1998 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (GCC_PARTS): Prefix $(LIBGCC) with $(STMP_FIXPROTO)
to ensure all necessary include files have been created.
(all.cross): Likewise.
(rest.encap): Likewise.
(libgcc.a): Add explicit dependancy from $(STMP_FIXPROTO) to guarantee
proper parallel builds.
(stmp-multilib): Likewise.
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-980420.orig/gcc/Makefile.in egcs-980420/gcc/Makefile.in
--- egcs-980420.orig/gcc/Makefile.in Sun Apr 19 15:38:34 1998
+++ egcs-980420/gcc/Makefile.in Sun Apr 19 15:38:34 1998
@@ -747,14 +747,14 @@ all.internal: start.encap rest.encap
# This is what to compile if making a cross-compiler.
# Note that we can compile enquire using the cross-compiler just built,
# although we can't run it on this machine.
-all.cross: native gcc-cross specs stmp-headers $(LIBGCC) $(STMP_FIXPROTO) \
+all.cross: native gcc-cross specs stmp-headers $(STMP_FIXPROTO) $(LIBGCC) \
$(LIBGCC1_TEST) $(EXTRA_PARTS) lang.all.cross
# This is what to compile if making gcc with a cross-compiler.
all.build: native xgcc$(exeext) $(EXTRA_PARTS) lang.all.build
# This is what must be made before installing GCC and converting libraries.
start.encap: native xgcc$(exeext) specs $(LIBGCC1) xlimits.h lang.start.encap
# These can't be made until after GCC can run.
-rest.encap: stmp-headers $(LIBGCC) $(STMP_FIXPROTO) $(EXTRA_PARTS) lang.rest.encap
+rest.encap: stmp-headers $(STMP_FIXPROTO) $(LIBGCC) $(EXTRA_PARTS) lang.rest.encap
# This is what is made with the host's compiler
# whether making a cross compiler or not.
native: config.status auto-host.h cpp$(exeext) $(LANGUAGES) \
@@ -1072,7 +1072,7 @@ libgcc2.a: libgcc2.c libgcc2.ready $(CON
# else true; fi
# Combine the various libraries into a single library, libgcc.a.
-libgcc.a: $(LIBGCC1) $(LIBGCC2)
+libgcc.a: $(STMP_FIXPROTO) $(LIBGCC1) $(LIBGCC2)
-rm -rf tmplibgcc.a libgcc.a tmpcopy
mkdir tmpcopy
-if [ x$(LIBGCC1) != x ]; \
@@ -1107,7 +1107,7 @@ s-mlib: $(srcdir)/genmultilib Makefile
touch s-mlib
# Build multiple copies of libgcc.a, one for each target switch.
-stmp-multilib: $(LIBGCC1) libgcc2.c libgcc2.ready $(CONFIG_H) \
+stmp-multilib: $(STMP_FIXPROTO) $(LIBGCC1) libgcc2.c libgcc2.ready $(CONFIG_H) \
frame.h gansidecl.h \
$(LIB2ADD) machmode.h longlong.h gbl-ctors.h config.status
for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \