gcc/gcc/c-family
Iain Sandoe 92902b1baf add @optional/@required to prto lists
add @optional/@required to prto lists
gcc:

	* c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
	parse @optional/@required and set the flags as appropriate.

gcc/c-family:

      * c-common.c: Add two new entries for @optional
       and @required keywords.

	merge from FSF 'apple/trunk' branch.
	2006-01-30  Fariborz Jahanian <fjahanian@apple.com>

       Radar 4386773
       * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
       objective-c keywords.
       (objc_set_method_opt): New declaration.
       * stub-objc.c (objc_set_method_opt): New stub.

gcc/cp:

	merge from FSF 'apple/trunk' branch.
	2006-01-30  Fariborz Jahanian <fjahanian@apple.com>

	Radar 4386773
	* cp/parser.c (cp_parser_objc_interstitial_code): For
       @optional/@required set the optional/required flag.

gcc/objc:

	merge from FSF 'apple/trunk' branch.
	2006-01-30  Fariborz Jahanian <fjahanian@apple.com>

       Radar 4386773
       * objc/objc-act.c (objc_set_method_opt): New function.
       (objc_start_protocol, objc_finish_interface): Reset
       objc_method_optional_flag flag.
       (objc_add_method_declaration): Pass on the new
       flag to objc_add_method.
       (objc_add_method): Add optional methods to new chain in
       the protocol class.
       * objc/objc-act.h (CLASS_OPTIONAL_CLS_METHODS,
       CLASS_OPTIONAL_NST_METHODS): New macros accessing a protocol
       class's optional method chains.

testsuite:

	merge from FSF 'apple/trunk' branch.
	2006-01-30  Fariborz Jahanian <fjahanian@apple.com>

       Radar 4386773
       * objc.dg/enhanced-proto-1.m: New.
       * objc.dg/enhanced-proto-2.m: New.
       * obj-c++.dg/enhanced-proto-1.mm: New
       * obj-c++.dg/enhanced-proto-2.mm: New.

From-SVN: r164754
2010-09-30 16:51:00 +00:00
..
c-ada-spec.c c-ada-spec.c (dump_ada_template): Mark underlying instance type as visited. 2010-08-04 17:50:10 +02:00
c-ada-spec.h
c-common.c add @optional/@required to prto lists 2010-09-30 16:51:00 +00:00
c-common.def
c-common.h add @optional/@required to prto lists 2010-09-30 16:51:00 +00:00
c-cppbuiltin.c optc-gen.awk: Generate global_options initializer instead of individual variables. 2010-09-29 15:49:14 +01:00
c-dump.c
c-format.c
c-format.h
c-gimplify.c vec.h (FOR_EACH_VEC_ELT): Define. 2010-08-20 12:48:59 +00:00
c-lex.c In gcc/c-family/: 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> 2010-09-30 08:23:37 +00:00
c-omp.c
c-opts.c opt-functions.awk (static_var): Update comment. 2010-09-30 14:53:12 +01:00
c-pch.c
c-ppoutput.c
c-pragma.c opt-functions.awk (static_var): Update comment. 2010-09-30 14:53:12 +01:00
c-pragma.h
c-pretty-print.c
c-pretty-print.h
c-semantics.c
c.opt options.texi (Variable, Var, Init): Update documentation without reference to VarExists. 2010-09-29 15:51:52 +01:00
ChangeLog add @optional/@required to prto lists 2010-09-30 16:51:00 +00:00
stub-objc.c add @optional/@required to prto lists 2010-09-30 16:51:00 +00:00