1. 06 Mar, 2011 1 commit
  2. 26 Feb, 2011 1 commit
  3. 23 Feb, 2011 1 commit
  4. 22 Feb, 2011 2 commits
  5. 20 Feb, 2011 3 commits
  6. 19 Feb, 2011 4 commits
  7. 18 Feb, 2011 1 commit
  8. 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
  9. 14 Jan, 2011 2 commits
  10. 08 Jan, 2011 2 commits
  11. 03 Jan, 2011 1 commit
  12. 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
  13. 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
  14. 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
  15. 28 Dec, 2010 2 commits
  16. 26 Dec, 2010 1 commit
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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