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:
> 
> 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.

Stan


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