- 13 Sep, 2011 17 commits
-
-
gcc/ * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178826
Richard Sandiford committed -
gcc/ * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178825
Richard Sandiford committed -
gcc/ * config/mn10300/mn10300.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178824
Richard Sandiford committed -
gcc/ * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178823
Richard Sandiford committed -
gcc/ * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178822
Richard Sandiford committed -
gcc/ * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref throughout file. * config/arm/neon.md: Likewise. * config/arm/vfp.md: Likewise. * config/arm/thumb2.md: Likewise. * config/arm/cortex-m4.md: Likewise. From-SVN: r178821
Richard Sandiford committed -
From-SVN: r178818
Ian Lance Taylor committed -
2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru> * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New define_insn patterns for combine. * gcc.target/arm/neon-combine-sub-abs-into-vabd.c: New test. From-SVN: r178817
Sevak Sargsyan committed -
gcc/ 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org> * reorg.c: Always define make_return_insns. From-SVN: r178813
Giuseppe Scrivano committed -
gcc/cp/ PR c++/48320 * pt.c (template_parameter_pack_p): Support TEMPLATE_PARM_INDEX nodes. Add a comment. (arg_from_parm_pack_p): New static function, factorized out from tsubst_pack_expansion and extended to support non-type parameter packs represented with TEMPLATE_PARM_INDEX nodes. (tsubst_pack_expansion): Use arg_from_parm_pack_p. gcc/testsuite/ PR c++/48320 * g++.dg/cpp0x/variadic116.C: New test case. From-SVN: r178811
Dodji Seketeli committed -
PR other/49533 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output. From-SVN: r178810
Jan Hubicka committed -
other/49533 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos. From-SVN: r178809
Jan Hubicka committed -
2011-09-13 Paul Brook <paul@codesourcery.com> gcc/ * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. (ARM_TARGET2_DWARF_FORMAT): Provide default definition. * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define. * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define. * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define. * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h. * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h. * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code enabling unwind tables. (c6x_debug_unwind_info): New function. (TARGET_ARM_EABI_UNWINDER): Define. (TARGET_DEBUG_UNWIND_INFO): Define. * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define. (TARGET_EXTRA_CFI_SECTION): Remove. * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set. * ginclude/unwind-arm-common.h: New file. libgcc/ * config.host (tic6x-*-*): Add c6x/t-c6x-elf. Set unwind_header. * unwind-c.c (PERSONALITY_FUNCTION): Use UNWIND_POINTER_REG. * unwind-arm-common.inc: New file. * config/arm/unwind-arm.c: Use unwind-arm-common.inc. * config/arm/unwind-arm.h: Use unwind-arm-common.h. (_GLIBCXX_OVERRIDE_TTYPE_ENCODING): Define. * config/c6x/libunwind.S: New file. * config/c6x/pr-support.c: New file. * config/c6x/unwind-c6x.c: New file. * config/c6x/unwind-c6x.h: New file. * config/c6x/t-c6x-elf: New file. libstdc++-v3/ * libsupc++/eh_arm.cc (__cxa_end_cleanup): Add C6X implementation. * libsupc++/eh_call.cc (__cxa_call_unexpected): Set rtti_base. * libsupc++/eh_personality.cc (NO_SIZE_OF_ENCODED_VALUE): Remove __ARM_EABI_UNWINDER__ check. (parse_lsda_header): Check _GLIBCXX_OVERRIDE_TTYPE_ENCODING. (get_ttype_entry): Use generic implementation on ARM EABI. (check_exception_spec): Use _Unwind_decode_typeinfo_ptr and UNWIND_STACK_REG. (PERSONALITY_FUNCTION): Set ttype_base. From-SVN: r178808
Paul Brook committed -
PR target/50358 * config/avr/predicates.md (const_1_to_6_operand): New predicate. * config/avr/avr.md: (extend_s): New code attribute. (mul_r_d): New code attribute. (*maddqihi4, *umaddqihi4): New insns. (*msubqihi4, *umsubqihi4): New insns. (*usmaddqihi4, *sumaddqihi4): New insns. (*usmsubqihi4, *susubdqihi4): New insns. (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits. (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits. (*umsubqihi4.uconst.ashift): New insn-and-split. (*msubqihi4.sconst.ashift): New insn-and-split. (*sumaddqihi4.uconst): New insn-and-split. (*sumsubqihi4.uconst): New insn-and-split. * config/avr/avr.c (avr_rtx_costs): Report costs of above in case PLUS:HI and MINUS:HI. From-SVN: r178806
Georg-Johann Lay committed -
From-SVN: r178804
Revital Eres committed -
From-SVN: r178803
GCC Administrator committed -
2011-09-12 Daniel Krugler <daniel.kruegler@googlemail.com> Paolo Carlini <paolo.carlini@oracle.com> * include/std/tuple (_Head_base<>::_M_head, _Head_base<>::_M_tail, _Tuple_impl<>::_M_head, _Tuple_impl<>::_M_tail): Change to static constexpr functions; adjust everywhere. (__get_helper, get): Declare constexpr all three overloads. (tuple_cat): Declare constexpr; use late return type to improve error messages. * include/std/utility (__pair_get<>::__get, __pair_get<>::__move_get, __pair_get<>::__const_get, get): Declare all constexpr. * include/std/array (get): Likewise. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Re-enable tuple_cat test. * testsuite/23_containers/array/constexpr_get.cc: New. * testsuite/20_util/tuple/element_access/constexpr_get.cc: Likewise. * testsuite/20_util/pair/constexpr_get.cc: Likewise. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r178799
Daniel Krugler committed
-
- 12 Sep, 2011 16 commits
-
-
* rtl.c (copy_rtx): Do not handle frame_related, jump or call flags specially. From-SVN: r178798
Bernd Schmidt committed -
PR bootstrap/50010 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between NOTE_INSN_CFI notes, with the exception of NOTE_INSN_SWITCH_TEXT_SECTIONS. From-SVN: r178795
Jakub Jelinek committed -
gcc/ 2011-09-11 Bernd Schmidt <bernds@codesourcery.com> Richard Sandiford <rdsandiford@googlemail.com> * config/mips/mips.c (mips_epilogue): New structure. (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when restoring registers. (mips_epilogue_emit_cfa_restores): New function. (mips_epilogue_set_cfa): Likewise. (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring the current CFA register from the stack, redefine the CFA in terms of the stack pointer. (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information to the epilogue instructions. gcc/testsuite/ * gcc.target/mips/mips.exp (mips_option_groups): Add debug options. * gcc.target/mips/interrupt_handler-2.c: New test. * gcc.target/mips/interrupt_handler-3.c: Likewise. From-SVN: r178794
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p argument. (mips16e_build_save_restore): Update accordingly. From-SVN: r178793
Richard Sandiford committed -
* pt.c (type_unification_real): Fix handling of DEDUCE_CONV with no deducible template parameters. * call.c (rejection_reason_code): Add rr_template_conversion. (print_z_candidate): Handle it. (template_conversion_rejection): New. (build_user_type_conversion_1): Use it. From-SVN: r178791
Jason Merrill committed -
call.c (merge_conversion_sequences): Set bad_p and user_conv_p on all of the second conversion sequence. * call.c (merge_conversion_sequences): Set bad_p and user_conv_p on all of the second conversion sequence. (build_user_type_conversion_1): Set bad_p on the ck_user conv. (convert_like_real): Handle bad ck_ref_bind with user_conv_p in the first section. Fix loop logic. (initialize_reference): Call convert_like for diagnostics when we have a (bad) conversion. From-SVN: r178790
Jason Merrill committed -
(convert_class_to_reference_1): Remove. (reference_binding): Use build_user_type_conversion_1 instead. From-SVN: r178789
Jason Merrill committed -
* call.c (initialize_reference): Add flags parm. * decl.c (grok_reference_init): Likewise. (check_initializer): Pass it. * typeck.c (convert_for_initialization): Likewise. * cp-tree.h: Adjust. From-SVN: r178788
Jason Merrill committed -
* cp-tree.h (LOOKUP_NO_RVAL_BIND): New. * call.c (conditional_conversion): Use it. (reference_binding): Fix handling of xvalues. From-SVN: r178787
Jason Merrill committed -
* call.c (implicit_conversion): Check BRACE_ENCLOSED_INITIALIZER_P before forcing instantiation. From-SVN: r178786
Jason Merrill committed -
re PR rtl-optimization/50212 (ICE: in ei_container, at basic-block.h:610 with -fnon-call-exceptions -freorder-blocks-and-partition) PR rtl-optimization/50212 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Skip also lps with NULL landing_pad or non-LABEL_P landing_pad. * g++.dg/other/pr50212.C: New test. From-SVN: r178785
Jakub Jelinek committed -
PR debug/50299 * calls.c (load_register_parameters): Use use_reg_mode instead of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE entry. (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument for stack CALL_INSN_FUNCTION_USAGE uses. * expr.h (use_reg_mode): New prototype. (use_reg): Changed into inline around use_reg_mode. * expr.c (use_reg): Renamed to... (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST mode to that mode instead of VOIDmode. * var-tracking.c (prepare_call_arguments): Don't track parameters whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible to it using lowpart_subreg. Convert VALUE and REG/MEM to the EXPR_LIST mode. From-SVN: r178784
Jakub Jelinek committed -
gcc/ PR target/43746 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define. (progmem_section): New Variable. (avr_asm_init_sections): Initialize it. (TARGET_ASM_SELECT_SECTION): Define to... (avr_asm_select_section): ... this new Function. (avr_replace_prefix): New Function. (avr_asm_function_rodata_section): Use it. (avr_insert_attributes): Don't add section attribute for PROGMEM. (avr_section_type_flags): Use avr_progmem_p instead of section name to detect if object is in PROGMEM. (avr_asm_named_section): Set section name prefix for objects in PROGMEM. testsuite/ PR target/43746 * testsuite/gcc.target/avr/torture/avr-torture.exp (AVR_TORTURE_OPTIONS): Add test cases "-O2 -fdata-sections" and "-O2 -fmerge-all-constants". From-SVN: r178779
Georg-Johann Lay committed -
PR bootstrap/50352 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the sprintf format string. From-SVN: r178778
Jakub Jelinek committed -
2011-09-12 Richard Guenther <rguenther@suse.de> PR tree-optimization/50343 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that the reduction is over an SSA name before checking its definition. From-SVN: r178775
Richard Guenther committed -
From-SVN: r178774
GCC Administrator committed
-
- 11 Sep, 2011 7 commits
-
-
2011-09-11 Daniel Krugler <daniel.kruegler@googlemail.com> PR libstdc++/50159 * include/std/tuple (tuple_cat): Reimplement according to the resolution of LWG 1385. * include/std/type_traits: Define __and_ and __or_ for zero arguments too; minor tweaks. * testsuite/20_util/tuple/creation_functions/tuple_cat.cc: New. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Disable for now tuple_cat test. * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * doc/xml/manual/status_cxx200x.xml: Update. From-SVN: r178770
Daniel Krugler committed -
2011-09-11 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/50327 * frontend-passes.c (dummy_expr_callback): New function. (convert_do_while): New function. (optimize_namespace): Call code walker to convert do while loops. 2011-09-11 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/50327 * gfortran.dg/do_while_1.f90: New test. From-SVN: r178768
Thomas Koenig committed -
2011-09-11 Janus Weil <janus@gcc.gnu.org> PR fortran/35831 PR fortran/47978 * interface.c (check_dummy_characteristics): New function to check the characteristics of dummy arguments. (gfc_compare_interfaces,gfc_check_typebound_override): Call it here. 2011-09-11 Janus Weil <janus@gcc.gnu.org> PR fortran/35831 PR fortran/47978 * gfortran.dg/dynamic_dispatch_5.f03: Fix invalid test case. * gfortran.dg/proc_decl_26.f90: New. * gfortran.dg/typebound_override_2.f90: New. * gfortran.dg/typebound_proc_6.f03: Changed wording in error message. From-SVN: r178767
Janus Weil committed -
utils.c (maybe_unconstrained_array): In the reference to unconstrained array case, deal with each branch of a COND_EXPR. * gcc-interface/utils.c (maybe_unconstrained_array): In the reference to unconstrained array case, deal with each branch of a COND_EXPR. * gcc-interface/utils2.c (build_allocator): Deal with each branch of a COND_EXPR in the initializer, if present. From-SVN: r178766
Eric Botcazou committed -
* gcc-interface/decl.c (maybe_pad_type): Do not try to change the form of an addressable type. * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New. Deal with those cases for which creating a temporary is mandatory. From-SVN: r178764
Eric Botcazou committed -
* gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure this is a real formal parameter before testing whether it is by ref. From-SVN: r178763
Eric Botcazou committed -
* gcc-interface/gigi.h (build_call_0_expr): Delete. (build_call_1_expr): Likewise. (build_call_2_expr): Likewise. (build_call_n_expr): New prototype. * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr. * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto. (Handled_Sequence_Of_Statements_to_gnu): Likewise. (Exception_Handler_to_gnu_zcx): Likewise. (gnat_to_gnu): Likewise. (build_binary_op_trapv): Likewise. * gcc-interface/utils2.c (build_call_0_expr): Delete. (build_call_1_expr): Likewise. (build_call_2_expr): Likewise. (build_call_n_expr): New function. (build_call_raise): Use build_call_n_expr. (build_call_raise_range): Likewise. (build_call_raise_column): Likewise. (build_call_alloc_dealloc_proc): Likewise. (maybe_wrap_malloc): Likewise. (maybe_wrap_free): Likewise. From-SVN: r178762
Eric Botcazou committed
-