[cfe-dev] Initial exception support for the GNU runtime
Chris Lattner
clattner at apple.com
Fri May 8 10:36:29 PDT 2009
On May 8, 2009, at 10:09 AM, David Chisnall wrote:
> On 7 May 2009, at 22:52, David Chisnall wrote:
>
>> - Only id @catch statements are currently working. This is enough
>> for NS_DURING and friends, but I need to spend more time reading
>> the output from gcc -S to work out how it finds the class pointer
>> to make arbitrary class type catch statements work.
>
> Turns out it's easy - the GNU runtime uses class names, not class
> pointers. I was missing an objc_get_class() reading the code.
>
> Attached diff fixes this, should fix it on 64-bit platforms
> (untested - I don't have a machine to try it on), and removes two
> FIXMEs that I forgot to remove before sending the last patch.
Thanks David, applied:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090504/017007.html
-Chris
More information about the cfe-dev
mailing list