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] Fix libcpp dependency generation for toplevel bootstrap



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


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