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]

Re: PATCH: Remove generated YACC stuff


On Thu, Jul 13, 2000 at 10:28:29PM -0700, Mark Mitchell wrote:
> >>>>> "Marc" == Marc Espie <espie@quatramaran.ens.fr> writes:
> 
> I think that with the current setup the chances of out-of-sync copies
> are much less, but if there's a good way to make the chance zero,
> that's definitely a win.
> 
>     Marc> It needs some minor tweaks to work with a src/build
>     Marc> environment now that those files are no longer in the
>     Marc> repository, but I am sure you're up to it.
> 
> I'm not sure quite what you mean.
> 
> If you think the patch needs some revision, please submit a revised
> version.
> 
> Thanks,

My mistake. Got time to look at it.
The patch still applies to the current source. 
(http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00014.html)
The only difference is that the objective-C generated files are no
longer in the repository.

What this does is rewrite rules so that the objc and C parsers are generated
together, which is necessary to be 100% sure the .h file is correct.

There is a very small penalty for people building only C, since the objective
C parser source will be generated.

It also means the objective C parser changes location from $(srcdir)/objc 
to $(srcdir), to allow partial directory hierarchies.

In my opinion, the advantage vastly outweighs the drawbacks.


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