- 15 Oct, 2010 8 commits
-
-
* 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 32 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 -
sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke may_trap_or_fault_p instead of may_trap_p predicate. * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke may_trap_or_fault_p instead of may_trap_p predicate. * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag. (substitute_placeholder_in_expr): Likewise. * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP flag on MEM_REF nodes. (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP flags on INDIRECT_REF nodes. ada/ * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template. * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on the INDIRECT_REF node built for objects used by reference. * gcc-interface/utils2.c (build_binary_op): Add short-circuit for constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF. (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag. From-SVN: r165468
Eric Botcazou committed -
From-SVN: r165467
Eric Botcazou committed -
2010-10-14 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/avx-copysign-vec.c: Add -mtune=generic. * gcc.target/i386/avx-copysignf-vec.c: Likewise. * gcc.target/i386/pr44130.c: Likewise. * gcc.target/i386/pr44144.c: Likewise. * gcc.target/i386/pr44180.c: Likewise. * gcc.target/i386/recip-vec-divf-avx.c: Likewise. * gcc.target/i386/recip-vec-sqrtf-avx.c: Likewise. * gcc.target/i386/vect-sizes-1.c: Likewise. * gcc.target/i386/vectorize4-avx.c: Likewise. From-SVN: r165466
H.J. Lu committed -
From-SVN: r165464
Eric Botcazou committed -
gcc/ * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc. (arm*-*-uclinux*eabi) <tm_file>: Likewise. (arm*-*-eabi*) <tm_file>: Likewise. (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc. (frv-*-*linux*) <tm_file>: Likewise. * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas and associated helper macros. * config/frv/frv-abi.h: Delete. libgcc/ * config/arm/bpabi.h: New file. * config/frv/frv-abi.h: New file. From-SVN: r165463
Nathan Froyd committed -
re PR c++/44561 (using nullptr_t with -flto/-fwhopr causes ICE: tree code 'lang_type' is not supported in gimple streams) 2010-10-14 Richard Guenther <rguenther@suse.de> PR lto/44561 * tree.def (NULLPTR_TYPE): New tree code. * dbxout.c (dbxout_type): Handle NULLPTR_TYPE. * dwarf2out.c (is_base_type): Likewise. (gen_type_die_with_usage): Likewise. * sdbout.c (plain_type_1): Likewise. * tree.c (build_int_cst_wide): Likewise. * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal. cp/ * cp-tree.h (NULLPTR_TYPE_P): Adjust. * decl.c (cxx_init_decl_processing): Build a NULLPTR_TYPE node, use build_int_cst. * error.c (dump_type): Handle NULLPTR_TYPE. (dump_type_prefix): Likewise. (dump_type_suffix): Likewise. * mangle.c (write_type): Likewise. * name-lookup.c (arg_assoc_type): Likewise. * rtti.c (typeinfo_in_lib_p): Likewise. * pt.c (tsubst): Likewise. * g++.dg/lto/20101010-3_0.C: New testcase. * g++.dg/lto/20101010-4_0.C: Likewise. From-SVN: r165462
Richard Guenther committed -
gcc/testsuite: * objc.dg/pr45878.m: Update to include NSConstantString interface for -fnext-runtime. * objc.dg/pr23214.m: Use the Object1.m implementation to build m64 on -fnext-runtime, XFAIL the m64 -fnext-runtime run. * objc.dg/objc-foreach-4.m: Provide an NSConstantString dummy class reference for m64 -fnext-runtime. From-SVN: r165461
Iain Sandoe committed -
* params.c (params_finished): New. (add_params): Assert !params_finished. (finish_params): New. (set_param_value_internal): Take params and params_set parameters. Assert params_finished. (set_param_value, maybe_set_param_value): Take params and params_set parameters. Update calls to set_param_value_internal. (set_default_param_value): Assert !params_finished. Don't use set_param_value_internal. (default_param_value, init_param_values): New. * params.h (struct param_info): Change value to default_value. Remove set. (set_param_value, maybe_set_param_value): Add params and params_set parameters. (PARAM_VALUE): Get parameters from global_options. (PARAM_SET_P): Remove. (finish_params, default_param_value, init_param_values): New. * common.opt (param_values): New Variable. * config/arm/arm.c (arm_option_override): Pass extra arguments to maybe_set_param_value. * config/i386/i386.c (ix86_option_override_internal): Pass extra arguments to maybe_set_param_value. * config/picochip/picochip.c (picochip_option_override): Pass extra arguments to maybe_set_param_value. * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass extra arguments to maybe_set_param_value. * config/s390/s390.c (s390_option_override): Use maybe_set_param_value instead of set_param_value. Pass extra arguments to maybe_set_param_value. * config/sparc/sparc.c (sparc_option_override): Pass extra arguments to maybe_set_param_value. * config/spu/spu.c (spu_option_override): Pass extra arguments to maybe_set_param_value. * opts.c (handle_param): Take opts and opts_set parameters. Update call to set_param_value. (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive, initial_loop_invariant_max_bbs_in_loop): Remove. (init_options_once): Don't set them. (init_options_struct): Initialize parameters structures. (default_options_optimization): Use default_param_value when restoring defaults. Update calls to maybe_set_param_value. (finish_options): Update calls to maybe_set_param_value. (common_handle_option): Update calls to handle_param and set_param_value. * toplev.c (DEFPARAM): Update definition for changes to param_info. (general_init): Call finish_params. From-SVN: r165460
Joseph Myers committed -
* config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define. (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define. (FIRST_PSEUDO_REGISTER): Increase by one. (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG. (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok. (MODES_TIEABLE): Call mn10300_modes_tieable. (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS. (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p. (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC) (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete. (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register. (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete. (mn10300_cc_status_mdep): Delete. (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete. * config/mn10300/mn10300 (mn10300_option_override): Stop disabling the combine-stack-adjust pass. (print_operand): Use the mode of the comparison operation to select the comparison suffix. (notice_update_cc): Delete. (mn10300_secondary_reload_class): Remove test for stack pointer based arithmetic. (output_tst): Rename to mn10300_output_cmp. (impossible_plus_operand): Move into predicates.md. (mn10300_legitimize_address): Make static. (mn10300_legitimate_address_p): Make static. Only allow SI sized constant pic operands. (mn10300_legitimate_constant_p): New function. (mn10300_case_values_threshold): Make static. (mn10300_hard_regno_mode_ok): New function. (mn10300_modes_tieable): New function. (mn10300_select_cc_mode): New function. * config/mn10300/predicates.md (impossible_plus_operand): Define. * config/mn10300/mn10300-protos.h: Tidy. (mn10300_legitimate_constant_p, mn10300_modes_tieable) (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype. * config/mn10300/mn10300.md (cc attribute): Delete. Replace with clobbers or sets of CC_REG. (CC_REG): Define. (mov*): Remove use of CLR instruction. (cbranch_si4_<code>): New pattern/split. (integer_conditional_branch): New pattern. (cbranch_sf4_<code>): New pattern/split. (float_conditional_branch): New pattern. (casesi): Use addsi3 pattern instead of movsi pattern to add and move a value at the same time. (cc0 peepholes): Remove. From-SVN: r165459
Nick Clifton committed -
2010-10-14 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/vect-sizes-1.c: New. From-SVN: r165458
H.J. Lu committed -
2010-10-14 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/46011 * gcc.target/i386/vectorize4-avx.c: Scan 256bit AVX register and xfail. From-SVN: r165457
H.J. Lu committed -
2010-10-14 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/recip-vec-sqrtf-avx.c: Scan 256bit AVX register. * gcc.target/i386/recip-vec-divf-avx.c: Likewise. From-SVN: r165456
H.J. Lu committed -
sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE on RTX_FRAME_RELATED_P insns and the insn to which... * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE on RTX_FRAME_RELATED_P insns and the insn to which NOTE_INSN_EPILOGUE_BEG is attached. * sched-vis.c (print_value): Allow NULL value. * gcc.target/ia64/20101005.c: New test. From-SVN: r165455
Andrey Belevantsev committed -
PR rtl-optimization/45570 * sel-sched-ir.c (cfg_preds_1): When walking out of the region, assert that we are pipelining outer loops. Allow returning zero predecessors. * gcc.dg/pr45570.c: New test. From-SVN: r165454
Andrey Belevantsev committed -
* sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment. (tidy_control_flow): Tidy vertical space. (sel_remove_bb): New variable idx. Use it to remember the basic block index before deleting the block. (sel_remove_empty_bb): Remove dead code, simplify and insert to ... (sel_merge_blocks): ... here. * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype. From-SVN: r165453
Andrey Belevantsev committed -
* cse.c (is_dead_reg): Change into inline function that is not called through for_each_rtx. (set_live_p): Adjust caller. (insn_live_p): Don't reset DEBUG_INSNs here. (struct dead_debug_insn_data): New data. (count_stores, is_dead_debug_insn, replace_dead_reg): New functions. (delete_trivially_dead_insns): If there is just one setter for the dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR and add DEBUG_INSN for it right before the removed setter and use the DEBUG_EXPR instead of the dead pseudo. From-SVN: r165452
Jakub Jelinek committed -
2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz> * et-forest.c (et_nca): Return NULL immediately when the dominance forest has disjoint components. From-SVN: r165451
Zdenek Dvorak committed -
ira.c (setup_class_hard_regs): Fix typo in indexing ira_non_ordered_class_hard_regs and ira_class_hard_reg_index. 2010-10-13 Vladimir Makarov <vmakarov@redhat.com> * ira.c (setup_class_hard_regs): Fix typo in indexing ira_non_ordered_class_hard_regs and ira_class_hard_reg_index. From-SVN: r165450
Vladimir Makarov committed -
2010-10-13 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/recip-vec-sqrtf-avx.c: New. * gcc.target/i386/recip-vec-divf-avx.c: Likewise. * gcc.target/i386/vectorize4-avx.c: Likewise. From-SVN: r165449
H.J. Lu committed -
2010-10-13 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/avx-copysign-vec.c: New. * gcc.target/i386/avx-copysignf-vec.c: Likewise. From-SVN: r165448
H.J. Lu committed -
2010-10-13 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/44130 * gcc.target/i386/pr44130.c: New. From-SVN: r165447
H.J. Lu committed -
2010-10-13 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/44144 * gcc.target/i386/pr44144.c: New. From-SVN: r165446
H.J. Lu committed
-