This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix libcpp dependency generation for toplevel bootstrap
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>, Andrew Pinski <pinskia at physics dot uc dot edu>, Daniel Jacobowitz <drow at false dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 Dec 2005 15:48:25 +0100
- Subject: [PATCH] Fix libcpp dependency generation for toplevel bootstrap
- References: <cd5403f4f5a69a5124a12c1eae63fc5f@physics.uc.edu> <43A28342.8000005@lu.unisi.ch> <20051216135419.GA27872@nevyn.them.org> <m364ppoyva.fsf@uniton.integrable-solutions.net>
still it is a bit surprising to me that each time I say "make
install", libcpp is recompiled. It seems to be the only GCC component
behaving that way...
It is quite strange that I cannot reproduce it, but the reason is clear
enough: some system header from the gcc directory changed, so `make all'
tries to build a sort of `stage4' libcpp.
This should cure the problem. It's also correct to pass
POSTSTAGE1_FLAGS_TO_PASS, but I do not have the time to test it
properly. :-( The two patches anyhow are orthogonal: it is as
incorrect to recompile libcpp, as it is to suppose it won't.
2005-12-16
Index: Makefile.in
===================================================================
--- Makefile.in (revision 108650)
+++ Makefile.in (working copy)
@@ -195,5 +195,5 @@ update-po: $(CATALOGS:.gmo=.pox)
COMPILE.base = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c
ifeq ($(DEPMODE),depmode=gcc3)
-COMPILE = $(COMPILE.base) -o $@ -MT $@ -MD -MP -MF $(DEPDIR)/$*.Po
+COMPILE = $(COMPILE.base) -o $@ -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Po
else
COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
Gaby, does this work for you? Ok for mainline?
Paolo