This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for sC++ to GNU C++.
- To: mark at markmitchell dot com (Mark Mitchell)
- Subject: Re: Patch for sC++ to GNU C++.
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Thu, 22 Oct 98 10:35:06 PDT
- Cc: jbuck at synopsys dot com, Jan dot Madsen at epfl dot ch, egcs at cygnus dot com, jason at cygnus dot com
> Joe> As I mentioned, the alternative is to do something like
> Joe> c-parse.in (the technique used to share the C and Objective-C
> Joe> parsers).
>
> You're probably noticing that I'm being contrary. :-) Here's my
> problem:
>
> o If we add a new front-end and duplicate all the files, we've
> duplicated all the files. This necessitates changes in two
> places. We have *way* too much of this as it is.
Please cd to gcc/objc and look around. Do you see duplication? No, you
only see six source files. The only duplication is in objc-parse.y: it
and c-parse.y are both obtained from c-parse.in.
Just the same, I have to agree with you when you say:
> That leads me to conclude that the right thing to do at the moment is
> to have the people interested in the extension maintain their patches,
> separately from g++.
I think so too, for now (though it appears that Jan's extensions are far
less disruptive than signatures). But I think that the patches could be
restructured to make them easier to integrate later on: something like an
sc directory plus a smaller patch to the C++ part. I think that the way
Objective-C is done is a good model. This might turn Jan's patch into a
much smaller patch plus an add-on directory.