diff options
author | Nicola Pero <nicola@gcc.gnu.org> | 2010-12-29 12:22:09 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-12-29 12:22:09 +0000 |
commit | b4f588c48d3530ab687647ea2bc932656d2b5822 (patch) | |
tree | b230ef90327ea01e66ce4b5ffb26d4bc66c4dbba /gcc/objcp | |
parent | 51361a93c647867059dde0fcbfcd32a4193e3d12 (diff) | |
download | gcc-b4f588c48d3530ab687647ea2bc932656d2b5822.zip gcc-b4f588c48d3530ab687647ea2bc932656d2b5822.tar.gz gcc-b4f588c48d3530ab687647ea2bc932656d2b5822.tar.bz2 |
In gcc/c-family/: 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
In gcc/c-family/:
2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
PR objc/47075
* c-objc.h (objc_finish_message_expr): Added argument to
prototype.
In gcc/objc/:
2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47075
* objc-act.h (PROPERTY_REF_DEPRECATED_GETTER): New.
* objc-tree.def (PROPERTY_REF): Increased the number of operands
from 3 to 4.
* objc-act.c (objc_finish_message_expr): Added optional argument
allowing to return the deprecated method prototype for deprecated
methods, instead of immediately emitting the deprecation warning.
(objc_maybe_build_component_ref): Do not warn for a deprecated
property. When building the getter call, get the deprecated
method prototype from objc_finish_message_expr() and put it into
the PROPERTY_REF.
(objc_build_class_component_ref): Same change.
(finish_class): Mark the getter and setter as deprecated if they
are generated from a deprecated property.
(objc_gimplify_property_ref): If the getter is deprecated, emit a
deprecation warning.
(objc_build_setter_call, objc_build_message_expr,
objc_finish_foreach_loop): Updated call to
objc_finish_message_expr.
In gcc/objcp/:
2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
* objcp-lang.c (objcp_tsubst_copy_and_build): Update call to
objc_finish_message_expr.
In gcc/testsuite/:
2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47075
* objc.dg/property/at-property-deprecated-1.m: Updated.
* objc.dg/property/at-property-deprecated-2.m: New.
* objc.dg/property/dotsyntax-deprecated-1.m: New.
* obj-c++.dg/property/at-property-deprecated-1.mm: Updated.
* obj-c++.dg/property/at-property-deprecated-2.mm: New.
* obj-c++.dg/property/dotsyntax-deprecated-1.mm: New.
From-SVN: r168315
Diffstat (limited to 'gcc/objcp')
-rw-r--r-- | gcc/objcp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objcp/objcp-lang.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog index 8295ad4..70c71e9 100644 --- a/gcc/objcp/ChangeLog +++ b/gcc/objcp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> + + * objcp-lang.c (objcp_tsubst_copy_and_build): Update call to + objc_finish_message_expr. + 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com> * config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c. diff --git a/gcc/objcp/objcp-lang.c b/gcc/objcp/objcp-lang.c index c0a13b4..008697d 100644 --- a/gcc/objcp/objcp-lang.c +++ b/gcc/objcp/objcp-lang.c @@ -76,7 +76,7 @@ objcp_tsubst_copy_and_build (tree t, tree args, tsubst_flags_t complain, return objc_finish_message_expr (RECURSE (TREE_OPERAND (t, 0)), TREE_OPERAND (t, 1), /* No need to expand the selector. */ - RECURSE (TREE_OPERAND (t, 2))); + RECURSE (TREE_OPERAND (t, 2)), NULL); case CLASS_REFERENCE_EXPR: return objc_get_class_reference |