OSDN Git Service

In gcc/c-family/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 23:52:18 +0000 (23:52 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 23:52:18 +0000 (23:52 +0000)
commitf26877d589a16cf3bacf02bab15db1c189623bc7
tree8b870d1d67aef3b800e92af6356bff7e92eb975b
parenta0f802f19842e68b27d568b9aa6bdbf530df4b2f
In gcc/c-family/:
2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>

* c.opt (Wproperty-assign-default): New option.

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

* objc-act.c (objc_add_dynamic_declaration): Allow @dynamic in a
category.
(objc_type_valid_for_messaging): Added 'accept_classes' argument;
if set to 'true', return 'true' for Class objects.  Do not remove
more than on pointer indirection.
(objc_add_property_declaration): Only warn about 'assign'
semantics for Objective-C objects if warn_property_assign_default;
and do not warn if the property is readonly or if the type is a Class.
(objc_finish_foreach_loop): Updated calls to
objc_type_valid_for_messaging.

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

* objc.dg/property/dynamic-2.m: Updated for the fact that @dynamic
is now allowed in categories.
* obj-c++.dg/property/dynamic-2.mm: Same change.
* objc.dg/property/dynamic-3.m: New.
* obj-c++.dg/property/dynamic-3.mm: New.
* objc.dg/property/at-property-14.m: New.
* objc.dg/property/at-property-15.m: New.
* obj-c++.dg/property/at-property-14.mm: New.
* obj-c++.dg/property/at-property-15.mm: New.

* objc.dg/foreach-6.m: Added a few more tests for valid and
invalid iterating variables and collections.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166287 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/property/at-property-14.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/at-property-15.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/dynamic-2.mm
gcc/testsuite/obj-c++.dg/property/dynamic-3.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/foreach-6.m
gcc/testsuite/objc.dg/property/at-property-14.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-15.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/dynamic-2.m
gcc/testsuite/objc.dg/property/dynamic-3.m [new file with mode: 0644]