1. 15 Oct, 2010 30 commits
  2. 14 Oct, 2010 10 commits
    • add ObjC* @property - tests · e2673f71
      
      add ObjC* @property - tests
      gcc/testsuite:
      
      	* objc.dg/property: New.
      	* objc.dg/property/fsf-property-basic.m: New.
      	* objc.dg/property/fsf-property-method-access.m: New.
      	* objc.dg/property/fsf-property-named-ivar.m: New.
      	* objc.dg/property/property-1.m: New.
      	* objc.dg/property/property-2.m: New.
      	* objc.dg/property/property-3.m: New.
      	* objc.dg/property/property-neg-1.m: New.
      	* objc.dg/property/property-neg-2.m: New.
      	* objc.dg/property/property-neg-3.m: New.
      	* objc.dg/property/property-neg-4.m: New.
      	* objc.dg/property/property-neg-5.m: New.
      	* objc.dg/property/property-neg-6.m: New.
      	* objc.dg/property/property-neg-7.m: New.
      	* objc.dg/property/property.exp: New.
      	* obj-c++.dg/property
      	* obj-c++.dg/property/fsf-property-basic.mm
      	* obj-c++.dg/property/fsf-property-method-access.mm
      	* obj-c++.dg/property/fsf-property-named-ivar.mm
      	* obj-c++.dg/property/property-0.mm
      	* obj-c++.dg/property/property-1.mm
      	* obj-c++.dg/property/property-2.mm
      	* obj-c++.dg/property/property-3.mm
      	* obj-c++.dg/property/property-neg-1.mm
      	* obj-c++.dg/property/property-neg-2.mm
      	* obj-c++.dg/property/property-neg-3.mm
      	* obj-c++.dg/property/property-neg-4.mm
      	* obj-c++.dg/property/property-neg-5.mm
      	* obj-c++.dg/property/property-neg-6.mm
      	* obj-c++.dg/property/property-neg-7.mm
      	* obj-c++.dg/property/property.exp
      
      From-SVN: r165480
      Iain Sandoe committed
    • add @property to ObjC* · 668ea4b1
      	merge from FSF apple 'trunk' branch. 
      	2006 Fariborz Jahanian <fjahanian@apple.com>
      	
      	Radars 4436866, 4505126, 4506903, 4517826
      
      gcc/c-family: 
      
      	* c-common.c (c_common_resword): Define @property and its attributes.
      	* c-common.h: Define property attribute enum entries.
      	(OBJC_IS_PATTR_KEYWORD): New.
      	(objc_property_attribute_kind): New enum.
      	Declare objc_set_property_attr (), objc_add_property_variable (),
      	objc_build_getter_call () and objc_build_setter_call ().
      	* stub-objc.c (objc_set_property_attr): New stub.
      	(objc_add_property_variable): Likewise.
      	(objc_build_getter_call): Likewise.
      	(objc_build_setter_call) Likewise.
      
      gcc:
      
      	* c-parser.c (c_parser, objc_property_attr_context) New flag.
      	(c_lex_one_token): Handle property attributes.
      	(c_parser_external_declaration): Handle @property.
      	(c_parser_declaration_or_fndef): Warn on invalid attributes before
      	@alias, @class, @end and @property objc keywords.
      	(c_parser_objc_methodprotolist): Handle @property.
      	(c_parser_objc_property_attrlist): New.
      	(c_parser_objc_at_property): New.
      	* c-typeck.c (build_component_ref): Handle CLASS.property syntax.
      	(build_modify_expr): Likewise.
      
      gcc/cp:
      
      	* typeck.c (finish_class_member_access_expr): Handle CLASS.property
      	syntax. 
      	(cp_build_modify_expr): Likewise.
      	* parser.c (cp_parser_objc_method_prototype_list): Handle @property.
      	(cp_parser_objc_method_definition_list): Likewise.
      	(cp_parser_objc_property_decl): New.
      	(cp_parser_objc_property_attrlist): New.
      	(cp_parser_objc_at_property): New.
      
      gcc/objc:
      
      	* objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): New.
      	property_readonly, property_getter, property_setter, property_ivar,
      	property_copies, in_objc_property_setter_name_context: New vars.
      	(objc_set_property_attr): New.
      	(objc_add_property_variable): New.
      	(lookup_property_in_list): New.
      	(lookup_property): New.
      	(objc_build_getter_call): New.
      	(objc_setter_func_call): New.
      	(get_selector_from_reference): New.
      	(objc_build_setter_call): New.
      	(is_property): New.
      	(build_property_reference): New.
      	(objc_finish_message_expr): Detect readonly property and warn.
      	(objc_build_property_ivar_name): New.
      	(objc_build_property_setter_name): New.
      	(objc_gen_one_property_datum): New.
      	(objc_process_getter_setter): New.
      	(objc_synthesize_getter): New.
      	(objc_synthesize_setter): New.
      	(objc_gen_property_data): New.
      	(finish_class): Generate property data.
      	(comp_proto_with_proto): Separated from ...
      	(match_proto_with_proto): ... New.
      	(objc_lookup_ivar): Handle properties.
      	* objc-tree.def (PROPERTY_DECL): New tree code.
      	* objc-act.h: CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS update size.
      	(METHOD_PROPERTY_CONTEXT): New.
      	(PROPERTY_NAME): New.
      	(PROPERTY_GETTER_NAME): New.
      	(PROPERTY_SETTER_NAME): New.
      	(PROPERTY_IVAR_NAME): New.
      	(PROPERTY_READONLY): New.
      	(PROPERTY_COPIES): New.
      	(TOTAL_CLASS_RAW_IVARS): New.
      	(CLASS_PROPERTY_DECL): New.
      	(IMPL_PROPERTY_DECL): New.
      	* objc-lang.c (objc_init_ts): Update fields for property_decl.
      
      gcc/objcp:
      
      	* objcp-lang.c (objcxx_init_ts): Update for property_decl.
      
      From-SVN: r165479
      Iain Sandoe committed
    • re PR tree-optimization/46008 (Floating point condexpr not vectorized) · e05eee49
      	PR tree-optimization/46008
      	* tree-if-conv.c (predicate_bbs): Try to canonicalize c2
      	if possible.
      
      From-SVN: r165476
      Jakub Jelinek committed
    • MAINTAINERS (OS Port Maintainers): Add myself for VMS. · c0103e74
      	* MAINTAINERS (OS Port Maintainers): Add myself for VMS.
      
      From-SVN: r165475
      Douglas B Rupp committed
    • Fix typos in gcc.dg/pr45570.c. · 280649b5
      2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gcc.dg/pr45570.c: Fix typos.  Also run for i?86-*-*.
      
      From-SVN: r165474
      H.J. Lu committed
    • re PR tree-optimization/44913 (-ftree-vectorize causes FAIL: gcc.dg/pr44838.c execution test) · 7d36e538
      2010-10-14  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/44913
      	* tree-data-ref.c (disjoint_objects_p): Remove.
      	(dr_may_alias_p): Simplify.  Only hand the base object to
      	the alias-oracle.
      	* tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
      	some more trees, bail out instead of asserting.
      	(ptr_derefs_may_alias_p): Likewise.  Export.
      	(refs_may_alias_p_1): Handle STRING_CSTs.
      	* tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
      
      	* gcc.dg/torture/pr44913.c: New testcase.
      
      From-SVN: r165473
      Richard Guenther committed
    • re PR c/45969 (ICE in build_binary_op, at c-typeck.c:9833) · 180f8dbb
      	PR c/45969
      	* c-typeck.c (build_binary_op): Don't try to compute a semantic
      	type with excess precision for boolean operations.
      
      testsuite:
      	* gcc.c-torture/compile/pr45969-1.c: New test.
      
      From-SVN: r165472
      Joseph Myers committed
    • re PR c++/45382 (internal compiler error: tree code ‘call_expr’ is not supported in gimple streams) · 4a759e75
      2010-10-14  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/45382
      	* g++.dg/lto/20101014-2_0.C: New testcase.
      
      From-SVN: r165471
      Richard Guenther committed
    • gengtype.c: Include getopt.h and version.h. · f8ed6dc5
      2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
      	    Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* gcc/gengtype.c:  Include getopt.h and version.h.
      
      	(lang_bitmap, struct outf, outf_p)
      	(get_output_file_with_visibility, oprintf): Definitions moved to
      	gengtype.h
      	(output_files, header_file, srcdir, srcdir_len, this_file)
      	(do_dump): No more static variables.
      	(do_debug): New.
      	(dbgprint_count_type_at): Added new function.
      	(gengtype_long_options): New.
      	(print_usage, print_version, parse_program_options): New.
      	(main): Call parse_program_options, and removed old option
      	handling code.  Added some debug output.
      
      	* gcc/gengtype.h:  Updated copyright year.
      	(lang_bitmap, struct outf, outf_p, header_file, oprintf)
      	(get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
      	Moved from gengtype.c to here.
      	(do_debug, read_state_filename, write_state_filename): New
      	variables. (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
      
      	* gcc/Makefile.in:
      	(REVISION): Always defined.
      	(version.o): Removed ifdef REVISION_c.
      	(s-gtype): Pass arguments to build/gengtype program.
      	(build/version.o): Added building rule.
      	(build/gengtype$(build_exeext)): Added build/version.o.
      
      
      Co-Authored-By: Basile Starynkevitch <basile@starynkevitch.net>
      
      From-SVN: r165470
      Jeremie Salvucci committed
    • Partial merge of 'ObjC GC' from FSF apple 'trunk' branch. · 560d6bd5
      	* config/darwin-c.c (darwin_cpp_builtins): Define __weak and
      	__strong macros.
      
      From-SVN: r165469
      Iain Sandoe committed