-
- Downloads
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 (objc_add_synthesize_declaration_for_property): Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an existing @synthesize or @dynamic declaration. Search for an inherited @property declaration if none is found in the local interface. If the required instance variable does not exist, return instead of trying to continue to prevent a compiler crash later. Check that the instance variable is not already being used by another @synthesize. (objc_add_dynamic_declaration_for_property): Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an existing @synthesize or @dynamic declaration. (objc_synthesize_getter): Search for the getter declaration in protocols and superclasses as well. (objc_synthesize_setter): Search for the setter declaration in protocols and superclasses as well. In gcc/testsuite/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/synthesize-3.m: New. * objc.dg/property/synthesize-4.m: New. * objc.dg/property/synthesize-5.m: New. * objc.dg/property/synthesize-6.m: New. * obj-c++.dg/property/synthesize-3.mm: New. * obj-c++.dg/property/synthesize-4.mm: New. * obj-c++.dg/property/synthesize-5.mm: New. * obj-c++.dg/property/synthesize-6.mm: New. From-SVN: r166456
Showing
- gcc/objc/ChangeLog 18 additions, 0 deletionsgcc/objc/ChangeLog
- gcc/objc/objc-act.c 43 additions, 25 deletionsgcc/objc/objc-act.c
- gcc/testsuite/ChangeLog 11 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/obj-c++.dg/property/synthesize-3.mm 66 additions, 0 deletionsgcc/testsuite/obj-c++.dg/property/synthesize-3.mm
- gcc/testsuite/obj-c++.dg/property/synthesize-4.mm 67 additions, 0 deletionsgcc/testsuite/obj-c++.dg/property/synthesize-4.mm
- gcc/testsuite/obj-c++.dg/property/synthesize-5.mm 18 additions, 0 deletionsgcc/testsuite/obj-c++.dg/property/synthesize-5.mm
- gcc/testsuite/obj-c++.dg/property/synthesize-6.mm 32 additions, 0 deletionsgcc/testsuite/obj-c++.dg/property/synthesize-6.mm
- gcc/testsuite/objc.dg/property/synthesize-3.m 66 additions, 0 deletionsgcc/testsuite/objc.dg/property/synthesize-3.m
- gcc/testsuite/objc.dg/property/synthesize-4.m 67 additions, 0 deletionsgcc/testsuite/objc.dg/property/synthesize-4.m
- gcc/testsuite/objc.dg/property/synthesize-5.m 18 additions, 0 deletionsgcc/testsuite/objc.dg/property/synthesize-5.m
- gcc/testsuite/objc.dg/property/synthesize-6.m 32 additions, 0 deletionsgcc/testsuite/objc.dg/property/synthesize-6.m
Loading
Please register or sign in to comment