- 15 Oct, 2010 30 commits
-
-
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/runtime.h (__objc_update_classes_with_methods): New. * class.c (__objc_update_classes_with_methods): New. (objc_getClassList): Do not lock the class lock. * methods.c (method_exchangeImplementations): New. (method_setImplementation): New. * objc/runtime.h (method_setImplementation): New. (method_exchangeImplementations): New. From-SVN: r165525
Nicola Pero committed -
PR c++/45983 * tree.c (cp_build_qualified_type_real): Don't reuse a variant with a different typedef variant of the element type. From-SVN: r165521
Jason Merrill committed -
* config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute. (*movdfcc_1): ditto. From-SVN: r165520
Uros Bizjak committed -
* target.def (target_option.init_struct): New hook. * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook. * doc/tm.texi: Regenerate. * hooks.c (hook_void_gcc_optionsp): New. * hooks.h (hook_void_gcc_optionsp): Declare. * langhooks-def.h (lhd_init_options_struct): Remove. (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp. * langhooks.c (lhd_init_options_struct): Remove. * opts.c (init_options_struct): Also call targetm.target_option.init_struct. * config/i386/i386.c (ix86_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (ix86_option_optimization): Move some settings to ix86_option_init_struct. * config/pdp11/pdp11.c (pdp11_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (pdp11_option_optimization): Move some settings to pdp11_option_init_struct. * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by rs6000_option_init_struct. Use options structure pointer. (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT. * config/s390/s390.c (s390_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (s390_option_optimization): Don't set flag_asynchronous_unwind_tables here. * config/sh/sh.c (sh_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (sh_option_optimization): Don't set flag_finite_math_only here. * config/spu/spu.c (spu_option_optimization): Replace by spu_option_optimization. Use options structure pointer. (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT. From-SVN: r165519
Joseph Myers committed -
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * Protocol.m: Include objc/runtime.h and objc-private/module-abi-8.h instead of objc/objc-api.h. Do not repeat Protocol's instance variables. (struct objc_method_description_list): Do not define here. ([-conformsTo:]): Reimplemented on top of protocol_conformsTo(). ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare selectors directly instead of getting names and then using strcmp. ([descriptionForClassMethod:]): Same change. ([-isEqual:]): Reimplemented on top of protocol_isEqual(). * protocols.c (protocol_getMethodDescription): Use sel_isEqual() to compare selectors directly instead of getting names and then using strcmp. * objc/Protocol.h: Updated comments. From-SVN: r165517
Nicola Pero committed -
From-SVN: r165516
Michael Meissner committed -
From-SVN: r165515
Michael Meissner committed -
2010-10-15 Paolo Carlini <paolo.carlini@oracle.com> * include/std/functional (function<>::operator==, operator!=): Remove, per LWG 1240. * testsuite/20_util/function/cmp/cmp_neg.cc: Adjust dg-* directives. From-SVN: r165514
Paolo Carlini committed -
* lto-streamer-out.c (write_symbol): Use pointer set of seen objects instead of bitmap. (produce_symtab): Likewise; output defined symbols first. From-SVN: r165513
Jan Hubicka committed -
* doc/invoke.texi: Add -fstrict-volatile-bitfields to Option Summary and Index. From-SVN: r165512
Jie Zhang committed -
2010-10-15 Richard Guenther <rguenther@suse.de> * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL for automatic variables again. * g++.dg/lto/20101015-1_0.C: New testcase. From-SVN: r165511
Richard Guenther committed -
* doc/extend.texi (Variable Length): Don't refer to VLAs not conforming to C99. From-SVN: r165509
Joseph Myers committed -
* config/rx/rx.c (rx_option_optimization): Change to rx_override_options_after_change. Don't change flag_lto_compression_level. Don't check for changes to whether FPU instructions can be used. Check and set only flag_finite_math_only, not other fast-math flags. (rx_option_override): Call rx_override_options_after_change. (TARGET_OPTION_OPTIMIZATION): Remove. (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define. From-SVN: r165508
Joseph Myers committed -
2010-10-15 Tobias Burnus <burnus@net-b.de> PR fortran/45186 * trans.h (gfc_add_modify_loc, gfc_evaluate_now_loc): New * prototypes. (gfc_trans_runtime_error_vararg): Remove prototype. * trans.c (gfc_add_modify_loc, gfc_evaluate_now_loc): New * functions. (gfc_add_modify, gfc_evaluate_now): Use them. (trans_runtime_error_vararg): Renamed from gfc_trans_runtime_error_vararg, made static and use locus. (gfc_trans_runtime_error): Use it. (gfc_trans_runtime_check): Ditto and make use of locus. * trans-stmt.c (gfc_trans_if_1, gfc_trans_simple_do, gfc_trans_do, gfc_trans_do_while): Improve line number associated with generated expressions. From-SVN: r165507
Tobias Burnus committed -
* config/rs6000/rs6000.c (rs6000_option_optimization): Don't disable section anchors for lang_hooks.name[4] != 'O'. From-SVN: r165506
Joseph Myers committed -
* config/frv/frv.c (frv_option_optimization, TARGET_OPTION_OPTIMIZATION): Remove. * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove. From-SVN: r165505
Joseph Myers committed -
From-SVN: r165504
Michael Matz committed -
2010-10-15 Richard Guenther <rguenther@suse.de> PR testsuite/46021 * gcc.dg/tree-ssa/20031106-3.c: Remove XFAIL. * gcc.dg/tree-ssa/fre-vce-1.c: Likewise. From-SVN: r165503
Richard Guenther committed -
2010-10-15 Richard Guenther <rguenther@suse.de> PR lto/45957 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars. * g++.dg/lto/20101014-1_0.C: New testcase. From-SVN: r165502
Richard Guenther committed -
From-SVN: r165501
Nicola Pero committed -
In gcc/testsuite/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-protocol.m: New. * objc.dg/gnu-api-2-sel.m: New. From-SVN: r165500
Nicola Pero committed -
In libobjc/: 2010-10-14 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (__objc_init_protocol): New function which fixes up a protocol's class pointer, registers it with the runtime, register all protocol selectors and registers associated protocols too. (objc_init_statics): Detect if we are initializing protocols, and if so, use __objc_init_protocol instead of only fixing up the class pointer. (__objc_init_protocls): Use __objc_init_protocol. * objc-private/module-abi-8.h: Updated comments. * objc-private/runtime.h (__objc_register_selectors_from_description_list): New. * selector.c (__objc_register_selectors_from_description_list): New. (struct objc_method_description_list): Declare. * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name when accessing the name of a method, which is now correctly a SEL. ([-descriptionForClassMethod:]): Same change. * protocols.c (protocol_getMethodDescription): Same change. * objc/runtime.h: Updated comments. (sel_registerTypedName): Fixed typo in function name. From-SVN: r165499
Nicola Pero committed -
* g++.dg/torture/stackalign/eh-vararg-2.C: Fix dg-options for arm-eabi targets. From-SVN: r165498
Ramana Radhakrishnan committed -
2010-10-15 Tristan Gingold <gingold@adacore.com> * MAINTAINERS (OS Port Maintainers): Add myself for VMS. From-SVN: r165497
Tristan Gingold committed -
* plugin-api.h (LDPT_GNU_LD_VERSION): New ld_plugin_tag enum member. From-SVN: r165496
Dave Korn committed -
2010-10-15 Chung-Lin Tang <cltang@codesourcery.com> * ifcvt.c (find_active_insn_before): New function. (find_active_insn_after): New function. (cond_exec_process_if_block): Use new functions to replace prev_active_insn() and next_active_insn(). testsuite/ * gcc.dg/20101010-1.c: New testcase. From-SVN: r165495
Chung-Lin Tang committed -
* lib/lto.exp (lto-link-and-maybe-run): Use the default linker script when relocatable linking. From-SVN: r165494
Jie Zhang committed -
gcc/ PR target/45447 * config/arm/arm.c (arm_build_builtin_va_list): Assign va_list_name to TYPE_STUB_DECL (va_list_type). gcc/testsuite/ PR target/45447 * gcc.target/arm/pr45447.c: New test. From-SVN: r165493
Yao Qi committed -
re PR rtl-optimization/45621 (ICE: verify_cgraph_node failed: inlined_to pointer is set but no predecessors found with -fipa-cp-clone -flto) PR middle-end/45621 * g++.dg/lto/pr45621.h : New. * g++.dg/lto/pr45621_0.C: New. * g++.dg/lto/pr45621_1.C: New. * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is redirected to clone, be happy. * cgraph.h (cgraph node): Enable former_clone_of unconditinally. * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle former_clone_of unconditinally. From-SVN: r165492
Jan Hubicka committed -
From-SVN: r165490
GCC Administrator committed
-
- 14 Oct, 2010 10 commits
-
-
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 -
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 -
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. From-SVN: r165475
Douglas B Rupp committed -
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 -
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 -
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 -
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 -
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 -
* config/darwin-c.c (darwin_cpp_builtins): Define __weak and __strong macros. From-SVN: r165469
Iain Sandoe committed
-