On Fri, Dec 9, 2011 at 7:17 AM, H.J. Lu <hongjiu...@intel.com> wrote: > 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?
Ok. (the 4.5 and 4.6 branches already have dependencies for error.o, did they get lost somehow? Consider placing the error.o dependency at the same old place to ease diffs) Thanks, Richard. > Thanks. > > H.J. > --- > 2011-12-08 H.J. Lu <hongjiu...@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 $@ \