r165896 - in /trunk/gcc: cp/ChangeLog cp/cp-lan...
nicola@gcc.gnu.org
nicola@gcc.gnu.org
Sun Oct 24 02:44:00 GMT 2010
Author: nicola
Date: Sun Oct 24 02:44:03 2010
New Revision: 165896
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165896
Log:
In gcc/cp/:
2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
Removed Objective-C++ specific replacement of cxx_printable_name.
* cp-objcp-common.h: Added LANG_HOOKS_DECL_PRINTABLE_NAME, set
to cxx_printable_name for both C++ and Objective-C++.
* cp-lang.h: Removed LANG_HOOKS_DECL_PRINTABLE_NAME.
* error.c (dump_decl): For Objective-C++, call
objc_maybe_printable_name here ...
* tree.c (cxx_printable_name_internal): ... instead of here.
In gcc/objcp/:
2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objcp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Do not define.
In gcc/objc/:
2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-act.c (objc_build_keyword_decl): Updated comments. Do not
emit a warning that method parameter attributes are unimplemented.
Instead, store them into DECL_ATTRIBUTES of the KEYWORD_DECL.
(start_method_def): Copy attributes from each KEYWORD_DECL into
the corresponding PARM_DECL.
(objc_warn_deprecated_use): Removed.
(build_objc_method_call): Call warn_deprecated_use, not
objc_warn_deprecated_use.
(objc_maybe_printable_name): Do not try to get the identifier name
of DECLs that we don't recognize. Immediately return NULL for them.
(objc_printable_name): Removed C++-specific case, which is no
longer used. Updated comments.
In gcc/testsuite/:
2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/attributes/method-attribute-2.m: Updated test. Method
parameter attributes are now supported.
* obj-c++.dg/attributes/method-attribute-2.m: Same change.
* objc.dg/attributes/parameter-attribute-1.m: New test.
* objc.dg/attributes/parameter-attribute-2.m: New test.
* obj-c++.dg/attributes/parameter-attribute-1.m: New test.
* obj-c++.dg/attributes/parameter-attribute-2.m: New test.
Added:
trunk/gcc/testsuite/obj-c++.dg/attributes/parameter-attribute-1.mm
trunk/gcc/testsuite/obj-c++.dg/attributes/parameter-attribute-2.mm
trunk/gcc/testsuite/obj-c++.dg/attributes/unused-parameter-1.mm
trunk/gcc/testsuite/objc.dg/attributes/parameter-attribute-1.m
trunk/gcc/testsuite/objc.dg/attributes/parameter-attribute-2.m
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-lang.c
trunk/gcc/cp/cp-objcp-common.h
trunk/gcc/cp/error.c
trunk/gcc/cp/tree.c
trunk/gcc/objc/ChangeLog
trunk/gcc/objc/objc-act.c
trunk/gcc/objcp/ChangeLog
trunk/gcc/objcp/objcp-lang.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/obj-c++.dg/attributes/method-attribute-2.mm
trunk/gcc/testsuite/objc.dg/attributes/method-attribute-2.m
More information about the Gcc-cvs
mailing list