In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
commit4ca5d2a7bdc3cd7182cbf0e1261a6df44d362d87
authorNicola Pero <nicola.pero@meta-innovation.com>
Mon, 8 Nov 2010 21:47:59 +0000 (8 21:47 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Mon, 8 Nov 2010 21:47:59 +0000 (8 21:47 +0000)
tree72d4b2840a0a7f5a7ea5a6b60455d56effeabd73
parent9e115cec97350099177071bb16b3efcbbacc9445
In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>

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

        * objc-act.c (lookup_property): When checking categories, also
        check the protocols attached to each.
        (objc_add_property_declaration): Determine the
        PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here.  Tidied up
        error message.  Search for an existing property declaration with
        the same name which would be inherited from the class hiearchy,
        and produce an error if it has incompatible attributes.
        (check_methods): Changed second parameter.  If the method is a
        getter or setter for a property, do not warn if it is inherited as
        opposed to implemented directly in the class.
        (check_protocol): Updated calls to check_methods.
        (finish_class): Do not determine the PROPERTY_SETTER_NAME and
        PROPERTY_GETTER_NAME here; this is now done earlier, in
        objc_add_property_declaration.
        * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments.

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

        * objc.dg/property/at-property-5.m: Updated test.
        * objc.dg/property/at-property-16.m: New.
        * objc.dg/property/at-property-17.m: New.
        * objc.dg/property/at-property-18.m: New.
        * objc.dg/property/at-property-19.m: New.
        * objc.dg/property/dotsyntax-12.m: New
        * objc.dg/protocol-inheritance-1.m: New.
        * objc.dg/protocol-inheritance-2.m: New.
        * obj-c++.dg/property/at-property-5.mm: Updated test.
        * obj-c++.dg/property/at-property-16.mm: New.
        * obj-c++.dg/property/at-property-17.mm: New.
        * obj-c++.dg/property/at-property-18.mm: New.
        * obj-c++.dg/property/at-property-19.mm: New.
        * obj-c++.dg/protocol-inheritance-1.mm: New.
        * obj-c++.dg/protocol-inheritance-2.mm: New.
        * obj-c++.dg/property/dotsyntax-12.mm: New.

From-SVN: r166455
20 files changed:
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/objc/objc-act.h
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/property/at-property-16.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/at-property-17.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/at-property-18.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/at-property-19.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/at-property-5.mm
gcc/testsuite/obj-c++.dg/property/dotsyntax-12.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/protocol-inheritance-1.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/protocol-inheritance-2.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-16.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-17.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-18.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-19.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-5.m
gcc/testsuite/objc.dg/property/dotsyntax-12.m [new file with mode: 0644]
gcc/testsuite/objc.dg/protocol-inheritance-1.m [new file with mode: 0644]
gcc/testsuite/objc.dg/protocol-inheritance-2.m [new file with mode: 0644]