This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR bootstrap/51479: Missing dependency on errors.o causes bootstrap failure
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Dec 2011 22:17:33 -0800
- Subject: PATCH: PR bootstrap/51479: Missing dependency on errors.o causes bootstrap failure
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
gcc/Makefile.in has
gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \
gengtype-state.o version.o errors.o $(LIBDEPS)
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
$(filter-out ($LIBDEPS), $^) $(LIBS)
However, there is no errors.o dependency, which leads to random
parallel build failures. This patch adds errors.o dependency. OK
for trunk and release branches?
Thanks.
H.J.
---
2011-12-08 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/51479
* Makefile.in (errors.o): New.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index ae4f4da..83f70fa 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3947,6 +3947,8 @@ build/genautomata$(build_exeext) : BUILD_LIBS += -lm
build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \
build/gengtype-state.o build/version.o build/errors.o
+errors.o : errors.c $(CONFIG_H) $(SYSTEM_H) errors.h
+
gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \
gengtype-state.o version.o errors.o $(LIBDEPS)
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \