OSDN Git Service

In gcc/objc/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Nov 2010 21:47:59 +0000 (21:47 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Nov 2010 21:47:59 +0000 (21:47 +0000)
commit7f5203a813f3a6eeace3f7517a567e38f14b2290
tree72d4b2840a0a7f5a7ea5a6b60455d56effeabd73
parenta1f05651ed0d07a37b7120bb295c7d3dd0d94ed6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166455 138bc75d-0d04-0410-961f-82ee72b054a4
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]