1. 17 Jan, 2011 1 commit
    • In gcc/objc/: 2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com> · f0fc7be5
      In gcc/objc/:
      2011-01-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR objc/47314
      	* objc-act.c (finish_objc): When calling check_duplicates to check
      	duplicated instance methods, set 'is_class' to 0, not 1.
      
      In gcc/testsuite/:
      2011-01-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR objc/47314
      	* objc.dg/selector-warn-1.m: New.
      	* obj-c++.dg/selector-warn-1.mm: New.
      
      From-SVN: r168934
      Nicola Pero committed
  2. 14 Jan, 2011 2 commits
  3. 08 Jan, 2011 2 commits
  4. 03 Jan, 2011 1 commit
  5. 02 Jan, 2011 2 commits
    • Fix a typo. · 7dfef584
      2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* objc-act.c (check_that_protocol_is_defined): Fix a typo.
      
      From-SVN: r168400
      H.J. Lu committed
    • In gcc/objc/: 2011-01-02 Nicola Pero <nicola.pero@meta-innovation.com> · ca2ed3ba
      In gcc/objc/:
      2011-01-02  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (check_that_protocol_is_defined): New.
      	(lookup_protocol): Call check_that_protocol_is_defined.
      
      In gcc/testsuite/:
      2011-01-02  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/protocol-forward-1.m: Removed TODO.
      	* objc.dg/protocol-forward-2.m: New.
      	* obj-c++.dg/protocol-forward-2.mm: Removed TODO.
      	* obj-c++.dg/protocol-forward-2.mm: New.
      
      From-SVN: r168398
      Nicola Pero committed
  6. 30 Dec, 2010 4 commits
    • Fixed typo in one of my last changelog entries · 22199294
      From-SVN: r168357
      Nicola Pero committed
    • In gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com> · 27e09ff9
      In gcc/objc/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_types_are_equivalent): Fixed comparing protocol
      	lists.  Check them two-ways to fix comparisons when one protocol
      	implements the other one, or when one list contains duplicated
      	protocols.
      
      In gcc/testsuite/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/method-conflict-3.m: New.
      	* objc.dg/method-conflict-4.m: New.	
      	* obj-c++.dg/method-conflict-3.m: New.	
      	* obj-c++.dg/method-conflict-4.mm: New.
      
      From-SVN: r168356
      Nicola Pero committed
    • In gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com> · 223706ad
      In gcc/objc/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_add_method): When emitting an error because a
      	method with the same name but conflicting types is found in the
      	same class or category interface, print a note with the location
      	of the original method.  Also, improved the error message to
      	clearly state that the conflict is due to conflicting types, and
      	produce it for protocols as well.  Emit an error if two identical
      	methods are declared in a protocol, but one is @required and the
      	other one is @optional.  When
      
      In gcc/testsuite/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      	
      	* objc.dg/class-extension-3.m: Updated.
      	* objc.dg/method-1.m: Updated.
      	* objc.dg/method-conflict-1.m: New.
      	* objc.dg/method-conflict-2.m: New.	
      	* obj-c++.dg/class-extension-3.mm: Updated.
      	* obj-c++.dg/method-8.mm: Updated.
      	* obj-c++.dg/method-conflict-1.mm: New.
      	* obj-c++.dg/method-conflict-2.mm: New.
      
      From-SVN: r168350
      Nicola Pero committed
    • In gcc/objc/: 2010-12-30 Nicola Pero <nicola@nicola.brainstorm.co.uk> · fd3ce292
      In gcc/objc/:
      2010-12-30  Nicola Pero  <nicola@nicola.brainstorm.co.uk>
      
      	* objc-act.c (start_class): Warn when a class attribute is
      	ignored.
      	(objc_declare_protocols): Warn when a protocol attribute in a
      	protocol forward-declaration is ignored.
      	(start_protocol): Warn when a protocol attribute is ignored.
      
      In gcc/testsuite/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/attributes/class-attribute-3.m: New.
      	* objc.dg/attributes/proto-attribute-4.m: New.
      	* obj-c++.dg/attributes/class-attribute-3.mm: New.
      	* obj-c++.dg/attributes/proto-attribute-4.mm: New.
      
      From-SVN: r168337
      Nicola Pero committed
  7. 29 Dec, 2010 4 commits
    • In gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com> · 445eb4c6
      In gcc/objc/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_set_method_opt): Tidy up error messages.  In
      	particular, explicitly mention whether the error is due to the
      	@optional or @required keyword instead of mentioning
      	"@optional/@required".
      
      In gcc/testsuite/:
      2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/enhanced-proto-2.m: Updated.
      	* obj-c++.dg/enhanced-proto-2.mm: Updated.
      
      From-SVN: r168327
      Nicola Pero committed
    • In gcc/objc/: 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> · 37153b1e
      In gcc/objc/:
      2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR objc/47118
      	* objc-act.c (objc_build_synchronized): Check the argument of
      	@synchronized and emit an appropriate error if it is not a valid
      	Objective-C object.  Deal gracefully with that case.  Updated
      	comments and variable names.
      
      In gcc/testsuite/:
      2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR objc/47118
      	* objc.dg/sync-3.m: New.
      	* obj-c++.dg/sync-3.mm: New.
      
      From-SVN: r168326
      Nicola Pero committed
    • In gcc/c-family/: 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk> · b4f588c4
      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
      Nicola Pero committed
    • In gcc/objc/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com> · db0581ae
      In gcc/objc/:
      2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR objc/47076
      	* objc-act.c (lookup_protocol): Added 'definition_required'
      	argument.  If 'definition_required', and the protocol is not
      	defined, emit a warning.
      	(objc_declare_protocols): Updated call to lookup_protocol.
      	(start_protocol): Same change.
      	(check_protocol_recursively): Same change.
      	(objc_build_protocol_expr): Same change.
      	(lookup_and_install_protocols): Added definition_required argument.
      	Pass it to lookup_protocol.
      	(objc_get_protocol_qualified_type): Updated call to
      	lookup_and_install_protocols.
      	(start_class): Updated calls to lookup_and_install_protocols; pass
      	true to 'definition_required' to get the warnings.
      	(start_protocol): Updated calls to lookup_and_install_protocols.
      
      In gcc/testsuite/:
      2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR objc/47076
      	* objc.dg/protocol-forward-1.m: New.
      	* obj-c++.dg/protocol-forward-1.mm: New.
      	* objc.dg/attributes/proto-attribute-2.m: Updated.
      	* objc.dg/class-protocol-1.m: Updated.
      	* obj-c++.dg/attributes/proto-attribute-2.mm: Updated.
      	* obj-c++.dg/class-protocol-1.mm: Updated.
      
      From-SVN: r168307
      Nicola Pero committed
  8. 28 Dec, 2010 2 commits
  9. 26 Dec, 2010 1 commit
  10. 22 Dec, 2010 1 commit
    • c-aux-info.c (gen_formal_list_for_type): Use prototype_p. · f4da8dce
      gcc/
      	* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
      	* c-decl.c (diagnose_arglist_conflict): Likewise.
      	(diagnose_mismatched_decls, merge_decls): Likewise.
      	(c_builtin_function, c_builtin_function_ext_scope): Likewise.
      	(start_decl, start_function): Likewise.
      	* c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
      	* config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
      	* config/mep/mep.c (mep_validate_interrupt): Likewise.
      	* config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
      	* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
      	* config/sh/sh.c (sh_init_cumulative_args): Likewise.
      	* config/sparc/sparc.c (init_cumulative_args): Likewise.
      	* dwarf2out.c (add_prototyped_attribute): Likewise.
      	(gen_subprogram_die): Likewise.
      	* ipa-type-escape.c (check_function_parameter_and_return_types):
      	Likewise.
      	(check_call): Likewise.
      	* tree-ssa.c (useless_type_conversion_p): Likewise.
      
      gcc/ada/
      	* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
      	(handle_sentinel_attribute): Likewise.
      
      gcc/c-family/
      	* c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
      	Use prototype_p.
      
      gcc/cp/
      	* decl.c (decls_match, duplicate_decls): Use prototype_p.
      	* pt.c (push_template_decl_real): Likewise.
      
      gcc/lto/
      	* lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute):
      	Use prototype_p.
      
      gcc/objc/
      	* objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.
      
      From-SVN: r168181
      Nathan Froyd committed
  11. 18 Dec, 2010 2 commits
    • In gcc/: 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> · 46270f14
      In gcc/:
      2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_parser_objc_try_catch_finally_statement): Call
      	objc_maybe_warn_exceptions.
      	(c_parser_objc_synchronized_statement): Call
      	objc_maybe_warn_exceptions.
      	
      In gcc/cp/:
      2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* parser.c (cp_parser_objc_try_catch_finally_statement): Call
      	objc_maybe_warn_exceptions.
      	(cp_parser_objc_synchronized_statement): Same change.
      
      In gcc/c-family/:
      2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-objc.h (objc_maybe_warn_exceptions): New.
      	* stub-objc.c (objc_maybe_warn_exceptions): New.	
      	
      In gcc/objc/:
      2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_init): Call using_eh_for_cleanups.
      	(objc_init_exceptions): Renamed to objc_maybe_warn_exceptions.  Do
      	not call using_eh_for_cleanups.
      	(objc_begin_try_stmt): Do not call objc_init_exceptions.
      	(objc_build_throw_stmt): Updated call to
      	objc_maybe_warn_exceptions.
      
      In gcc/testsuite/:
      2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/fobjc-exceptions-1.m: Updated.
      	* objc.dg/fobjc-exceptions-2.m: New.
      	* objc.dg/fobjc-exceptions-3.m: New.
      	* obj-c++.dg/fobjc-exceptions-1.mm: New.
      	* obj-c++.dg/fobjc-exceptions-2.mm: New.
      	* obj-c++.dg/fobjc-exceptions-3.mm: New.
      
      From-SVN: r168032
      Nicola Pero committed
    • objc-act.c (objc_eh_personality): Select personality name on runtime. · 5287cfd5
      gcc/objc:
      
      	* objc/objc-act.c (objc_eh_personality): Select personality name on
      	runtime.
      	(objc_init_exceptions): New.
      	(objc_begin_try_stmt): Use objc_init_exceptions.
      	(objc_build_throw_stmt): Likewise.
      
      gcc/testsuite:
      
      	* fobjc-exceptions.m: Update dg-error syntax.
      
      From-SVN: r168020
      Iain Sandoe committed
  12. 10 Dec, 2010 1 commit
    • In gcc/: 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com> · ec3e9f82
      In gcc/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_parser_objc_class_definition): Recognize
      	Objective-C 2.0 class extensions.
      
      In gcc/cp/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* parser.c (cp_parser_objc_superclass_or_category): Recognize
      	Objective-C 2.0 class extensions.  Added iface_p and
      	is_class_extension arguments.
      	(cp_parser_objc_class_interface): Updated call to
      	cp_parser_objc_superclass_or_category.
      	(cp_parser_objc_class_implementation): Same change.
      	
      In gcc/objc/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_in_class_extension): New.
      	(objc_start_category_interface): If -fobjc-std=objc1
      	was specified, produce an error if a class extension is used.
      	(objc_finish_interface): Reset objc_in_class_extension to false.
      	(objc_add_property_declaration): Allow a class extension to extend
      	readonly properties in the main @interface to be readwrite.
      	(start_class): Added code to deal with class extensions.  In that
      	case, return the existing interface after adding any additional
      	protocols to it and setting objc_in_class_extension to true.
      	(continue_class): If in a class extension, do not generate the
      	instance variable template.
      
      In gcc/testsuite/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/class-extension-1.m: New.
      	* objc.dg/class-extension-2.m: New.
      	* objc.dg/class-extension-3.m: New.
      	* objc.dg/property/at-property-26.m: New.
      	* objc.dg/property/at-property-27.m: New.
      	* objc.dg/property/at-property-28.m: New.
      	* obj-c++.dg/class-extension-1.mm: New.
      	* obj-c++.dg/class-extension-2.mm: New.
      	* obj-c++.dg/class-extension-3.mm: New.
      	* obj-c++.dg/property/at-property-26.mm: New.
      	* obj-c++.dg/property/at-property-27.mm: New.
      	* obj-c++.dg/property/at-property-28.mm: New.
      
      From-SVN: r167680
      Nicola Pero committed
  13. 08 Dec, 2010 2 commits
    • In gcc/objc/: 2010-12-08 Nicola Pero <nicola.pero@meta-innovation.com> · 6347cf31
      In gcc/objc/:
      2010-12-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_build_throw_stmt): Check that the argument of
      	@throw is an object and emit an error if not.
      
      In gcc/testsuite/:
      2010-12-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/exceptions-7.m: New.
      	* obj-c++.dg/exceptions-7.mm: New.
      	* obj-c++.dg/exceptions-3.mm: Adjust for new C++ messages.
      	* obj-c++.dg/exceptions-5.mm: Same change.
      
      From-SVN: r167615
      Nicola Pero committed
    • In gcc/objc/: 2010-12-08 Nicola Pero <nicola.pero@meta-innovation.com> · 7c35d89d
      In gcc/objc/:
      2010-12-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_finish_foreach_loop): Use error_at() instead of
      	error() when printing an error about the iterating variable or
      	collection not being an object.
      
      In gcc/testsuite/:
      2010-12-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/foreach-6.m: Updated location of error messages.
      	* objc.dg/foreach-7.m: Same change.
      
      From-SVN: r167610
      Nicola Pero committed
  14. 06 Dec, 2010 2 commits
    • In gcc/: 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com> · 69a97201
      In gcc/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
      	of c_process_expr_stmt() for the iterating and collection
      	expressions of an Objective-C fast enumeration loop.
      
      In gcc/objc/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_finish_foreach_loop): Mark the
      	object_expression as used.
      
      In gcc/testsuite/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/foreach-8.m: New.
      
      From-SVN: r167518
      Nicola Pero committed
    • In gcc/: 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com> · 61d3ce20
      In gcc/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-family/c-common.h: Removed the declarations of all the objc_
      	callbacks, and moved them into c-objc.h.  Removed
      	objc_ivar_visibility_kind and moved it into c-objc.h.
      	* c-family/c-objc.h: New file.
      	* c-family/c-common.c: Include c-objc.h.
      	* c-family/c-format.c: Same change.
      	* c-family/stub-objc.c: Same change.
      	* c-decl.c: Include c-family/c-objc.h.
      	* c-parser.c: Same change.	
      	* c-typeck.c: Same change.
      	* c-config-lang.in (gtfiles): Added c-family/c-objc.h.
      	* Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
      	(c-parser.o): same change.
      	(c-typeck.o): Same change.
      	(c-family/c-format.o): Same change.
      	(c-family/stub-objc.o): Same change.
      	(c-family/c-common.o): Same change.
      	(PLUGIN_HEADERS): Added c-family/c-objc.h.
      	
      In gcc/cp/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* call.c: Include c-family/c-objc.h.
      	* decl.c: Same change.
      	* decl2.c: Same change.
      	* error.c: Same change.
      	* lex.c: Same change.
      	* parser.c: Same change.
      	* pt.c: Same change.
      	* semantics.c: Same change.
      	* typeck.c: Same change.
      	* Make-lang.in (cp/decl.o): Depend on c-family/c-objc.h.
      	(cp/decl2.o): Same change.
      	(cp/call.o): Same change.
      	(cp/error.o): Same change.
      	(cp/lex.o): Same change.
      	(cp/parser.o): Same change.
      	(cp/pt.o): Same change.
      	(cp/semantics.o): Same change.
      	(cp/typeck.o): Same change.
      	* config-lang.in (gtfiles): Added c-family/c-objc.h.
      	
      In gcc/objc/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c: Include c-family/c-objc.h.
      	* objc-lang.c: Same change.
      	* Make-lang.in (objc/objc-act.o): Depend on
      	c-family/c-objc.h.
      	(objc/objc-lang.o): Same change.
      	* config-lang.in (gtfiles): Added c-family/c-objc.h.
      	
      In gcc/objcp/:
      2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* config-lang.in (gtfiles): Added c-family/c-objc.h.
      	* Make-lang.in (objcp/objcp-act.o): Depend on
      	c-family/c-objc.h.
      	(objcp/objcp-lang.o): Same change.
      	(objcp/objcp-decl.o): Same change.
      	* objcp-lang.c: Include c-family/c-objc.h.
      	* objcp-decl.c: Same change.
      
      From-SVN: r167481
      Nicola Pero committed
  15. 02 Dec, 2010 2 commits
  16. 30 Nov, 2010 1 commit
    • In gcc/c-family/: 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> · 6c39e757
      In gcc/c-family/:
      2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-common.h (objc_finish_function): New.
      	(objc_non_volatilized_type): Removed.
      	(objc_type_quals_match): Removed.
      	* stub-objc.c (objc_finish_function): New.
      	(objc_non_volatilized_type): Removed.
      	(objc_type_quals_match): Removed.
      	
      In gcc/objc/:
      2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_build_volatilized_type): Removed.
      	(objc_non_volatilized_type): Removed.
      	(objc_type_quals_match): Removed.
      	(local_variables_to_volatilize): New.
      	(objc_volatilize_decl): Add the decl to volatilize to
      	local_variables_to_volatilize, but don't volatilize it yet.
      	(objc_finish_function): New.
      	* objc-act.h (local_variables_to_volatilize): New.
      
      In gcc/cp/:
      2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* decl.c (finish_function): Call objc_finish_function when
      	compiling Objective-C++.
      	* call.c (standard_conversion): Do not call
      	objc_non_volatilized_type().
      	(implicit_conversion): Same change.
      	* typeck.c (comp_ptr_ttypes_real): Same change.
      
      In gcc/:
      2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-decl.c (finish_function): Call objc_finish_function in
      	Objective-C.
      	* c-typeck.c (convert_for_assignment): Do not call
      	objc_type_quals_match().
      
      From-SVN: r167318
      Nicola Pero committed
  17. 29 Nov, 2010 5 commits
    • Allow 'make check-objc -j2' · 094fd2dd
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      	    Mike Stump  <mikestump@comcast.net>
      
      	Allow 'make check-objc -j2'
      	* Make-lang.in (lang_checks_parallelized): New.
      	(check_objc_parallelize): New.
      
      Co-Authored-By: Mike Stump <mikestump@comcast.net>
      
      From-SVN: r167277
      Nicola Pero committed
    • In gcc/objc/: 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com> · 98cf223c
      In gcc/objc/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (start_class): When a class is reimplemented,
      	generate an error and avoid adding the class to the list of
      	implemented classes again, but do not return error_mark_node.
      
      In gcc/testsuite/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/duplicate-class-1.m: New.
      	* obj-c++.dg/duplicate-class-1.mm: New.
      
      From-SVN: r167270
      Nicola Pero committed
    • In gcc/objc/: 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com> · d402edc1
      In gcc/objc/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_maybe_build_component_ref): Removed TODO.
      
      In gcc/testsuite/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/property/dotsyntax-21.m
      	* obj-c++.dg/property/dotsyntax-21.mm
      
      From-SVN: r167269
      Nicola Pero committed
    • In gcc/objc/: 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com> · 437c2322
      In gcc/objc/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_eh_runtime_type): Avoid ICE if error_mark_node
      	is passed as argument.
      	(objc_begin_catch_clause): Added code to deal with an
      	error_mark_node or NULL_TREE argument.  Improved checks for
      	invalid arguments.  Added code to traverse typedefs.
      
      In gcc/testsuite/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/exceptions-1.m: New.
      	* objc.dg/exceptions-2.m: New.
      	* objc.dg/exceptions-3.m: New.
      	* objc.dg/exceptions-4.m: New.
      	* objc.dg/exceptions-5.m: New.
      	* obj-c++.dg/exceptions-1.mm: New.
      	* obj-c++.dg/exceptions-2.mm: New.
      	* obj-c++.dg/exceptions-3.mm: New.
      	* obj-c++.dg/exceptions-4.mm: New.
      	* obj-c++.dg/exceptions-5.mm: New.
      
      In gcc/cp/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* parser.c (cp_parser_objc_try_catch_finally_statement): Parse
      	@catch(...)  and pass NULL_TREE to objc_begin_catch_clause() in
      	that case.  Improved error recovery.  Reorganized code to be
      	almost identical to c_parser_objc_try_catch_finally_statement.
      
      In gcc/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_parser_objc_try_catch_statement): Renamed to
      	c_parser_objc_try_catch_finally_statement for consistency with the
      	C++ parser.  Parse @catch(...) and pass NULL_TREE to
      	objc_begin_catch_clause() in that case.  Improved error recovery.
      	Reorganized code to be almost identical to
      	cp_parser_objc_try_catch_finally_statement.
      
      From-SVN: r167233
      Nicola Pero committed
    • In gcc/objc/: 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com> · 5944a6dc
      In gcc/objc/:
      2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_demangle): Return immediately if the string is
      	too short.  Detect names that do not need demangling, and return
      	them unchanged.
      
      From-SVN: r167231
      Nicola Pero committed
  18. 27 Nov, 2010 2 commits
    • In gcc/objc/: 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com> · 2dd24dbd
      In gcc/objc/:
      2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Implemented optional properties.
              * objc-act.h (PROPERTY_OPTIONAL): New.
              * objc-act.c (objc_add_property_declaration): Set
              PROPERTY_OPTIONAL if appropriate.
              (finish_class): When generating definitions of setter and getter
              methods associated with a property for a protocol, mark them as
              optional if the property is optional.
              (maybe_make_artificial_property_decl): Added 'getter_name'
              argument.  Set PROPERTY_OPTIONAL.
              (objc_maybe_build_component_ref): Updated calls to
              maybe_make_artificial_property_decl.  Added code for optional,
              readonly properties.
              (objc_build_class_component_ref): Updated call to
              maybe_make_artificial_property_decl.
      
      In gcc/testsuite/:
      2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/at-property-24.m: New.
              * objc.dg/property/at-property-25.m: New.
              * obj-c++.dg/property/at-property-24.mm: New.
              * obj-c++.dg/property/at-property-25.mm: New.
      
      From-SVN: r167197
      Nicola Pero committed
    • In gcc/objc/: 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com> · a693d3a8
      In gcc/objc/:
      2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (objc_build_struct): Fixed loops that save and
              restore TYPE_OBJC_INFO to iterate over all variants of the type; a
              special case for the current type is then no longer required.
              Duplicate TYPE_LANG_SPECIFIC for each type before restoring
              TYPE_OBJC_INFO.
              (objc_get_protocol_qualified_type): Updated comments.
      
      In gcc/testsuite/:
      2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/protocol-qualifier-1.m: New.
              * objc.dg/protocol-qualifier-2.m: New.
              * obj-c++.dg/protocol-qualifier-1.mm: New.
              * obj-c++.dg/protocol-qualifier-2.mm: New.
      
      From-SVN: r167195
      Nicola Pero committed
  19. 25 Nov, 2010 1 commit
    • In gcc/objc/: 2010-11-25 Nicola Pero <nicola.pero@meta-innovation.com> · 24e1ee32
      In gcc/objc/:
      2010-11-25  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_build_struct): Install TYPE_OBJC_INTERFACE
      	after finish_struct, not before, otherwise it may be wiped out by
      	it.  This fixes spurious warnings when a class has more than 15
      	instance variables.
      
      In gcc/testsuite/:
      2010-11-25  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/ivar-problem-1.m: New.
      	* obj-c++.dg/ivar-problem-1.mm: New.
      
      From-SVN: r167151
      Nicola Pero committed
  20. 23 Nov, 2010 1 commit
    • In gcc/objc/: 2010-11-23 Nicola Pero <nicola.pero@meta-innovation.com> · 59a09598
      In gcc/objc/:
      2010-11-23  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/24358
              * lang-specs.h: Added objective-c-cpp-output.  Mapped .mi to
              objective-c-cpp-output instead of objc-cpp-output.  Print a
              deprecation note every time objc-cpp-output is requested.
      
      In gcc/objcp/:
      2010-11-23  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/24358
              * lang-specs.h: Print a deprecation note every time
              objc++-cpp-output is requested.
      
      From-SVN: r167073
      Nicola Pero committed
  21. 22 Nov, 2010 1 commit
    • common.opt (exit_after_options, [...]): New Variable entries. · 0576d21f
      	* common.opt (exit_after_options, write_symbols, debug_info_level,
      	use_gnu_debug_info_extensions): New Variable entries.
      	(fprofile-dir=): Use Var.
      	* flag-types.h (enum debug_info_level): Rename to enum
      	debug_info_levels.
      	* flags.h (write_symbols, debug_info_level,
      	use_gnu_debug_info_extensions): Remove declarations.
      	* opts.c (exit_after_options, write_symbols, debug_info_level):
      	Remove.
      	(set_struct_debug_option): Make static variables const.
      	(use_gnu_debug_info_extensions): Remove.
      	(set_debug_level, print_filtered_help, print_specific_help,
      	fast_math_flags_set_p): Take gcc_options parameters and use them
      	in place of global variables.
      	(print_filtered_help): Make new_help non-static.
      	(print_specific_help): Update call to print_filtered_help.
      	(common_handle_option): Update calls to print_specific_help.  Use
      	gcc_options structure for more settings.  Make --help table
      	const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
      	set_debug_level.
      	* toplev.c (profile_data_prefix): Remove.
      	* toplev.h (profile_data_prefix, exit_after_options): Remove
      	declarations.
      	(fast_math_flags_set_p): Update prototype.
      	* cppbuiltin.c (define_builtin_macros_for_compilation_flags):
      	Update call to fast_math_flags_set_p.
      
      objc:
      	* objc-act.c (write_symbols): Don't declare here.
      
      From-SVN: r167064
      Joseph Myers committed