This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix some Objective-C failures on *-*-darwin* (nextruntime)
- From: Nicola Pero <nicola at brainstorm dot co dot uk>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Jul 2003 10:13:35 +0100 (BST)
- Subject: 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 ?