From 4a8875ed04bdb950589f3bdd2ddbb69fc910f94a Mon Sep 17 00:00:00 2001 From: iains Date: Sun, 17 Oct 2010 13:02:07 +0000 Subject: add parse support for @package to ObjC* gcc/c-family: * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. * c-common.h (enum rid): Add RID_AT_PACKAGE. (objc_ivar_visibility_kind): New enum. (objc_set_visibility): Adjust prototype to use visibility enum. * stub-objc.c (objc_set_visibility): Adjust stub to use visibility enum. gcc/objc: * objc-act.c: Rename 'objc_public_flag' to objc_ivar_visibility and make its type 'objc_ivar_visibility_kind'. (objc_start_class_interface): Update to use visibility enum. (objc_start_class_implementation): Likewise. (objc_set_visibility): Update to use visibility enum, warn that @package is handle as per @public. (add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE. * objc-act.h: Rename 'objc_public_flag' to objc_ivar_visibility and make its type 'objc_ivar_visibility_kind'. gcc/cp: * parser.c (cp_parser_objc_visibility_spec): Update to use visibility enum, and handle @package. gcc: * c-parser.c (c_parser_objc_class_instance_variables): Update to use visibility enum, and handle @package. gcc/testsuite: * objc.dg/fsf-package-0.m: New. * obj-c++.dg/fsf-package-0.m: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165585 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-family/stub-objc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-family/stub-objc.c') diff --git a/gcc/c-family/stub-objc.c b/gcc/c-family/stub-objc.c index 4a8a2b56b8e..cff4d79267e 100644 --- a/gcc/c-family/stub-objc.c +++ b/gcc/c-family/stub-objc.c @@ -163,7 +163,7 @@ objc_add_instance_variable (tree ARG_UNUSED (decl)) } void -objc_set_visibility (int ARG_UNUSED (vis)) +objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis)) { } -- cgit v1.2.1