1. 20 May, 2015 29 commits
    • 2015-05-20 François Dumont <fdumont@gcc.gnu.org> · fd2ef117
      	* include/bits/cpp_type_traits.h
      	(std::move_iterator): Delete declaration.
      	(std::__is_move_iterator<move_iterator>): Move partial specialization...
      	* include/bits/stl_iterator.h: ... here.
      	(std::__miter_base): Overloads for std::reverse_iterator and
      	std::move_iterator.
      	* include/bits/stl_algobase.h (std::__miter_base): Provide default
      	implementation.
      
      From-SVN: r223453
      François Dumont committed
    • re PR target/65730 (xtensa: ICE in libstdc++-v3/include/bits/atomic_base.h: In… · 91767ed1
      re PR target/65730 (xtensa: ICE in libstdc++-v3/include/bits/atomic_base.h: In function ‘bool std::atomic_flag_test_and_set_explicit(std::__atomic_flag_base*, std::memory_order)’)
      
      Fix PR target/65730
      
      2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
      gcc/
      	* config/xtensa/xtensa.c (init_alignment_context): Replace MULT
      	by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
      
      From-SVN: r223452
      Max Filippov committed
    • thumb1-far-jump-2.c (r4): Added int in definition. · eb3243e8
      gcc/testsuite
      
      2015-05-20  Alex Velenko  <Alex.Velenko@arm.com>
      
              * gcc.target/arm/thumb1-far-jump-2.c (r4): Added int in definition.
      
      From-SVN: r223451
      Alex Velenko committed
    • re PR libstdc++/66078… · 793cac74
      re PR libstdc++/66078 (20_util/specialized_algorithms/uninitialized_copy/808590.cc fails with -std=c++11)
      
      	PR libstdc++/66078
      	* include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
      	overload for pointers.
      	* testsuite/20_util/specialized_algorithms/uninitialized_copy/
      	808590.cc: Add -std=gnu++03 switch.
      	* testsuite/20_util/specialized_algorithms/uninitialized_copy/
      	808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
      	* testsuite/23_containers/vector/modifiers/push_back/
      	strong_guarantee.cc: New.
      
      From-SVN: r223449
      Jonathan Wakely committed
    • tree-ssa-threadupdate.c (mark_threaded_blocks): Properly dispose of the jump thread path when... · 2b3ac48e
             * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
              dispose of the jump thread path when the jump threading
              opportunity is cancelled.
      
      From-SVN: r223448
      Jeff Law committed
    • -Wmisleading-indentation: Increase test coverage · c3a630ce
      gcc/testsuite/ChangeLog:
      	* c-c++-common/Wmisleading-indentation.c (fn_32): New.
      	(fn_33_k_and_r_style): New.
      	(fn_33_stroustrup_style): New.
      	(fn_33_allman_style): New.
      	(fn_33_whitesmiths_style): New.
      	(fn_33_horstmann_style): New.
      	(fn_33_ratliff_banner_style): New.
      	(fn_33_lisp_style): New.
      	(fn_34_indent_dash_gnu): New.
      	(fn_34_indent_dash_kr): New.
      	(fn_34_indent_dash_orig): New.
      	(fn_34_indent_linux_style): New.
      
      From-SVN: r223447
      David Malcolm committed
    • diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error when printing the caret character. · e4129dd0
      gcc/ChangeLog
      
      2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
             * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
             when printing the caret character.
      
      From-SVN: r223446
      Manuel López-Ibáñez committed
    • re PR fortran/65548 (gfc_conv_procedure_call) · db7ffcab
      gcc/fortran/ChangeLog:
      
      2015-05-19  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/65548
      	* trans-stmt.c (gfc_trans_allocate): Always retrieve the
      	descriptor or a reference to a source= expression for
      	arrays and non-arrays, respectively.  Use a temporary
      	symbol and gfc_trans_assignment for all source=
      	assignments to allocated objects besides for class and
      	derived types.
      
      gcc/testsuite/ChangeLog:
      
      2015-05-19  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/65548
      	* gfortran.dg/allocate_with_source_5.f90: Extend test.
      
      From-SVN: r223445
      Andre Vehreschild committed
    • cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P. · cf4ef6f7
      	* cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
      
      	* c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
      
      From-SVN: r223442
      Marek Polacek committed
    • expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P. · 98209db3
      	* expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
      	* gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
      	* gimple-fold.c (canonicalize_bool): Likewise.
      	(same_bool_result_p): Likewise.
      	* tree-if-conv.c (parse_predicate): Likewise.
      
      From-SVN: r223441
      Marek Polacek committed
    • gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P. · 3a65ee74
      	* gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
      	* gimplify.c (gimplify_modify_expr_rhs): Likewise.
      
      	* c-ada-spec.c (dump_sloc): Use DECL_P.
      
      From-SVN: r223440
      Marek Polacek committed
    • [AArch64][obvious] In aarch64_class_max_nregs use UNITS_PER_VREG and UNITS_PER_WORD · 7bd11911
      	* config/aarch64/aarch64.c (aarch64_class_max_nregs):
      	Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
      	values.
      
      From-SVN: r223439
      Kyrylo Tkachov committed
    • Add missing declaration. · ba57dd12
      gcc/
      	* config/mips/mips.h (micromips_globals): Declare.
      
      From-SVN: r223438
      Robert Suchanek committed
    • c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. · 21b634ae
      	* c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
      	* c-common.c: Likewise.
      
      	* c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
      	* c-typeck.c: Likewise.
      
      From-SVN: r223437
      Marek Polacek committed
    • Introduce TV_INITIALIZE_RTL · 42242005
      gcc/ChangeLog:
      	* timevar.def (TV_INITIALIZE_RTL): New.
      	* toplev.c (initialize_rtl): Use an auto_timevar to account this
      	function's time to TV_INITIALIZE_RTL.
      
      From-SVN: r223436
      David Malcolm committed
    • libcpp: Eliminate most of the non-const/reference-returning inline fns · c819ed29
      gcc/java/ChangeLog:
      	* jcf-parse.c (set_source_filename): Replace write through
      	ORDINARY_MAP_FILE_NAME with direct access to "to_file".
      
      libcpp/ChangeLog:
      	* include/line-map.h (MAP_START_LOCATION): Eliminate the non-const
      	variant, and tweak comment for the const variant.
      	(ORDINARY_MAP_STARTING_LINE_NUMBER): Drop the non-const variant.
      	(ORDINARY_MAP_INCLUDER_FILE_INDEX): Likewise.
      	(ORDINARY_MAP_IN_SYSTEM_HEADER_P): Likewise.
      	(SET_ORDINARY_MAP_NUMBER_OF_COLUMN_BITS): Delete.
      	(ORDINARY_MAP_FILE_NAME): Drop the non-const variant.
      	(MACRO_MAP_MACRO): Likewise.
      	(MACRO_MAP_NUM_MACRO_TOKENS): Likewise.
      	(MACRO_MAP_LOCATIONS): Likewise.
      	(MACRO_MAP_EXPANSION_POINT_LOCATION): Likewise.
      	* line-map.c (linemap_add): Replace writes through macros with
      	direct field accesses.
      	(linemap_enter_macro): Likewise.
      	(linemap_line_start): Likewise.
      
      From-SVN: r223435
      David Malcolm committed
    • tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless gimple_build_nop calls. · 0ff4ddeb
      	* tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
      	gimple_build_nop calls.
      	(chkp_find_bounds_for_elem): Likewise.
      	(chkp_get_zero_bounds): Likewise.
      	(chkp_get_none_bounds): Likewise.
      	(chkp_get_bounds_by_definition): Likewise.
      	(chkp_generate_extern_var_bounds): Likewise.
      	(chkp_get_bounds_for_decl_addr): Likewise.
      	(chkp_get_bounds_for_string_cst): Likewise.
      
      From-SVN: r223434
      Ilya Enkovich committed
    • re PR tree-optimization/65447 (AArch64: iv-opt causes bad addressing) · a7e43c57
      
      	PR tree-optimization/65447
      	* tree-ssa-loop-ivopts.c (struct iv_use): New fields.
      	(dump_use, dump_uses): Support to dump sub use.
      	(record_use): New parameters to support sub use.  Remove call to
      	dump_use.
      	(record_sub_use, record_group_use): New functions.
      	(compute_max_addr_offset, split_all_small_groups): New functions.
      	(group_address_uses, rewrite_use_address): New functions.
      	(strip_offset): New declaration.
      	(find_interesting_uses_address): Call record_group_use.
      	(add_candidate): New assertion.
      	(infinite_cost_p): Move definition forward.
      	(add_costs): Check INFTY cost and return immediately.
      	(get_computation_cost_at): Clear setup cost and dependent bitmap
      	for sub uses.
      	(determine_use_iv_cost_address): Compute cost for sub uses.
      	(rewrite_use_address_1): Rename from old rewrite_use_address.
      	(free_loop_data): Free sub uses.
      	(tree_ssa_iv_optimize_loop): Call group_address_uses.
      
      	gcc/testsuite
      	PR tree-optimization/65447
      	* gcc.dg/tree-ssa/pr65447.c: New test.
      
      From-SVN: r223433
      Bin Cheng committed
    • aarch-common-protos.h (struct mem_cost_table): Added new fields loadv and storev. · b6875aac
      gcc/ChangeLog:
      
      2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
      	    Jim Wilson  <jim.wilson@linaro.org>
      
      	* config/arm/aarch-common-protos.h (struct mem_cost_table): Added
      	new  fields loadv and storev.
      	* config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
      	Initialize loadv and storev.
      	* config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
      	(cortexa53_extra_costs): Likewise.
      	(cortexa57_extra_costs): Likewise.
      	(xgene1_extra_costs): Likewise.
      	* config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
      	rtx_costs.
      
      2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	* config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
      	 storev.
      	(cortexa8_extra_costs): Likewise.
      	(cortexa5_extra_costs): Likewise.
      	(cortexa7_extra_costs): Likewise.
      	(cortexa12_extra_costs): Likewise.
      	(cortexa15_extra_costs): Likewise.
      	(v7m_extra_costs): Likewise.
      
      
      Co-Authored-By: Jim Wilson <jim.wilson@linaro.org>
      
      From-SVN: r223432
      Kugan Vivekanandarajah committed
    • tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread instead of open-coded version. · c725e7f8
             * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
              instead of open-coded version.  Also delete the jump thread created
              within this function.
      
      From-SVN: r223431
      Jeff Law committed
    • re PR c++/65954 (gcc segfaults on the following input with a syntax error) · 09b59d4d
      	cp/
      	PR c++/65954
      	* typeck.c (finish_class_member_access_expr): Diagnose failed
      	lookup of enum class member.
      
      	testsuite/
      	* g++.dg/cpp0x/pr65954.C: New.
      
      From-SVN: r223430
      Nathan Sidwell committed
    • rs6000.c (rs6000_emit_allocate_stack): Return stack adjusting insn. · 261640d5
      	* config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
      	stack adjusting insn.  Formatting.
      	(rs6000_emit_prologue): Track stack adjusting insn, and use of
      	r12.  If possible, emit first -fsplit-stack arg pointer insn
      	before stack adjust.  Don't use r12 to save cr if split-stack.
      
      From-SVN: r223427
      Alan Modra committed
    • rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK): Define. · 0f0fd745
      gcc/
      	* common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
      	Define.
      	(rs6000_supports_split_stack): New function.
      	* gcc/config/rs6000/rs6000.c (machine_function): Add
      	split_stack_arg_pointer.
      	(TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
      	(setup_incoming_varargs): Use crtl->args.internal_arg_pointer
      	rather than virtual_incoming_args_rtx.
      	(rs6000_va_start): Likewise.
      	(split_stack_arg_pointer_used_p): New function.
      	(rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
      	(morestack_ref): New var.
      	(gen_add3_const, rs6000_expand_split_stack_prologue,
      	rs6000_internal_arg_pointer, rs6000_live_on_entry,
      	rs6000_split_stack_space_check): New functions.
      	(rs6000_elf_file_end): Call file_end_indicate_split_stack.
      	* gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
      	(UNSPECV_SPLIT_STACK_RETURN): Define.
      	(split_stack_prologue, load_split_stack_limit,
      	load_split_stack_limit_di, load_split_stack_limit_si,
      	split_stack_return, split_stack_space_check): New expands and insns.
      	* gcc/config/rs6000/rs6000-protos.h
      	(rs6000_expand_split_stack_prologue): Declare.
      	(rs6000_split_stack_space_check): Declare.
      libgcc/
      	* config/rs6000/morestack.S: New.
      	* config/rs6000/t-stack-rs6000: New.
      	* config.host (powerpc*-*-linux*): Add t-stack and t-stack-rs6000
      	to tmake_file.
      	* generic-morestack.c: Don't build for powerpc 32-bit.
      
      From-SVN: r223426
      Alan Modra committed
    • rs6000.c (struct rs6000_stack): Correct comments. · 8a03f869
      	* config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
      	(rs6000_stack_info): Don't zero offsets when not saving registers.
      	(debug_stack_info): Adjust to omit printing unused offsets,
      	as before.
      	(direct_return): Test vrsave_size rather than vrsave_mask.
      	(rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
      	(rs6000_emit_epilogue): Likewise.
      
      From-SVN: r223425
      Alan Modra committed
    • rs6000.c (rs6000_stack_info): Don't zero offsets when not saving registers. · 8b07bbe7
      	* config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
      	when not saving registers.
      	(debug_stack_info): Adjust to omit printing unused offsets,
      	as before.
      	(rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
      	expression.
      
      From-SVN: r223424
      Alan Modra committed
    • fixup hash table descriptor in winnt.c · ca5db45b
      gcc/ChangeLog:
      
      2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	PR c++/65835
      	* config/i386/winnt.c (struct wrapped_symbol_hasher): Change
      	value_type to const char *.
      
      From-SVN: r223423
      Trevor Saunders committed
    • Daily bump. · 42f47c6a
      From-SVN: r223422
      GCC Administrator committed
    • config.gcc [...]: Allow --enable-targets=all to build a biarch toolchain again. · b9b1573b
      2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
      	to build a biarch toolchain again.
      
      From-SVN: r223418
      Sandra Loosemore committed
  2. 19 May, 2015 11 commits