In gcc/objc/: 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>
commit2dd24dbdfeed75a433307948e6083c78d7181f53
authorNicola Pero <nicola.pero@meta-innovation.com>
Sat, 27 Nov 2010 10:06:59 +0000 (27 10:06 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Sat, 27 Nov 2010 10:06:59 +0000 (27 10:06 +0000)
tree3286544b1f9262f2a2f7654ba7439ed2294ca00d
parentc5589aa7e1e8bf1e56d3c46d952675e1087be311
In gcc/objc/: 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/objc/:
2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>

        Implemented optional properties.
        * objc-act.h (PROPERTY_OPTIONAL): New.
        * objc-act.c (objc_add_property_declaration): Set
        PROPERTY_OPTIONAL if appropriate.
        (finish_class): When generating definitions of setter and getter
        methods associated with a property for a protocol, mark them as
        optional if the property is optional.
        (maybe_make_artificial_property_decl): Added 'getter_name'
        argument.  Set PROPERTY_OPTIONAL.
        (objc_maybe_build_component_ref): Updated calls to
        maybe_make_artificial_property_decl.  Added code for optional,
        readonly properties.
        (objc_build_class_component_ref): Updated call to
        maybe_make_artificial_property_decl.

In gcc/testsuite/:
2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc.dg/property/at-property-24.m: New.
        * objc.dg/property/at-property-25.m: New.
        * obj-c++.dg/property/at-property-24.mm: New.
        * obj-c++.dg/property/at-property-25.mm: New.

From-SVN: r167197
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/objc/objc-act.h
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/property/at-property-24.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/at-property-25.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-24.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-25.m [new file with mode: 0644]