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: ObjC RFA: Fix PR/6834 ObjC 3.1 regression


Neil Booth wrote:
> 
> Stan Shebs wrote:-
> 
> > Neil Booth wrote:
> > >
> > > I think it might be an idea to split the c hooks into a separate file,
> > > and have c-lang.c include them, and objc-lang.c include them too, but
> > > then override the (at most) 2 or 3 it needs to have different.  This
> > > would avoid this class of bugs in the future - people find it to easy
> > > to modify c-lang.c and forget about objc-lang.c.
> >
> > Before jumping into this, I have a small set of patches whose net
> > effect is to make it possible to consider merging cc1 and cc1obj
> > into a single executable, where the ObjC extensions are enabled
> > dynamically.  Instead of sharing code piecemeal, I'd like us to
> > consider first whether to go in the direction of merging, and if
> > so, to come up with patches that will take us in that direction.
> 
> I think this is the long-term plan for the 3 (or maybe 4 8-)) C
> front ends, so I'd say go for it.
> 
> But I'm just a nobody.

Hardly!  Your work to date has gone a long ways towards enabling
the merging of all the C frontends.  I mentioned C/ObjC because
I think it's close enough to consider for 3.2 (or would be if I
stopped working on Apple's problems and put in a bunch of local
patches :-) ).

Stan


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