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: [PATCH] Fix some Objective-C failures on *-*-darwin* (nextruntime)


> Actually, I have been informed by the runtime folks here at Apple (who 
> are separate
> from the compiler team :-) ) that the correct way to fix these test 
> cases (which I
> haven't yet committed to objc-improvements-branch, but stay tuned) is 
> simply to add
> 
> #ifdef __NEXT_RUNTIME__
> + initialize { return self; }
> #endif
> 
> to the @implementation of the root class.  If the root class does not 
> have a 'initialize',
> the NeXT runtime will then attempt to invoke 'forward', which led to 
> the error messages

Sounds nice - it's starting to be meaningful (I guess the runtime could
check if the class has an 'initialize' method before calling it, as the
GNU runtime does, but anyway).

I assume Andrew wants to update his patches/changes to do it this way ?


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