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]

Re: Use $(parsedir) when building c-parse.o


Loren James Rittle <rittle@latour.rsch.comm.mot.com> writes:

> In article <m3d6mgl5jc.fsf@north-pole.nickc.cambridge.redhat.com> you write:
> 
> >  I think that the recent change to Makefile.in to use $(parsedir)
> >  missed a case.  The rule for c-parse.o depends upon
> >  $(parsedir)/c-parse.c but it refers to $(srcdir)/c-parse.c in its
> >  rule.  The patch below fixes this.  OK to apply ?
> 
> Here are additional quirks I caught and posted about last week (I have
> updated my patch to remove the thunk that Nick just applied).  Tested
> with full bootstrap on i386-unknown-freebsd4.7.  Without this patch,
> any change to parsedir will cause a bootstrap which builds objc to
> fail.  Without this patch, java parser generations are dumped into
> srcdir instead of parsedir.  OK to install?

This is OK.

> (in gcc:)
> 	* objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
> 
> (in gcc/java:)
> 	* Make-lang.in (po-generated): Find the targets in $(parsedir).
> 	Propagate change to all other rules as required.
> 	(java/parse-scan.o): Add explicit dependency on
> 	$(parsedir)/java/parse-scan.c .
-- 
- Geoffrey Keating <geoffk@geoffk.org>


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