libobjc - more modern Objective-C runtime API (11)

Nicola Pero nicola.pero@meta-innovation.com
Sat Oct 16 14:37:00 GMT 2010


This patch fixes a problem where class_setSuperclass() and class_getInstanceVariable() wouldn't work for classes that had not been resolved by the runtime yet.

It also include a new testcase for all the new ivar_xxx functions.

Committed to trunk.

Thanks

In libobjc/:
2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>

        * class.c (class_getSuperclass): Call __objc_resolve_class_links
        if the class is not resolved yet.
        * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
     
In gcc/testsuite/:
2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc.dg/gnu-api-2-ivar.m: New.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testcase.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101016/da89c806/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101016/da89c806/attachment-0001.txt>


More information about the Gcc-patches mailing list