1. 30 Jun, 2017 17 commits
    • Fix location of typeid() (PR c++/80014) · e59e8b5a
      gcc/cp/ChangeLog:
      	PR c++/80014
      	* parser.c (cp_parser_postfix_expression): Construct a location
      	for typeid expressions.
      
      gcc/testsuite/ChangeLog:
      	PR c++/80014
      	* g++.dg/plugin/diagnostic-test-expressions-1.C (std::type_info):
      	Add declaration.
      	(test_typeid): New test function.
      
      From-SVN: r249845
      David Malcolm committed
    • re PR target/81225 (ICE with -mavx512ifma -O3 -ffloat-store) · e855bdc0
      	PR target/81225
      	* config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For
      	V8FI, V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
      	of nonimmediate_operand and <store_mask_constraint> instead of m for
      	the input operand.  For V8FI iterator, always split if input is a MEM.
      	For V16FI and V8SF_256 iterators, don't test if both operands are MEM
      	if <mask_applied>.  For VI4F_256 iterator, use <store_mask_predicate>
      	instead of register_operand and <store_mask_constraint> instead of v for
              the input operand.  Make sure both operands aren't MEMs for if not
      	<mask_applied>.
      
      	* gcc.target/i386/pr81225.c: New test.
      
      From-SVN: r249844
      Jakub Jelinek committed
    • cp-tree.h (lookup_fnfields_1, [...]): Don't declare. · fe32bb1b
      	* cp-tree.h (lookup_fnfields_1, class_method_index_for_fn): Don't
      	declare.
      	(lookup_all_conversions): Declare.
      	* class.c (get_basefndecls): Use lookup_fnfields_slot.
      	* decl.c (register_dtor_fn): Use lookup_fnfields_slot.
      	* decl2.c (check_class_fn): Use lookup_fnfields_slot.  Rework
      	diagnostics.
      	* pt.c (retrieve_specialization): Use lookup_fnfields_slot.
      	(check_explicit_specialization): Use lookup_fnfields_slot_nolazy,
      	lookup_all_conversions.
      	* search.c (lookup_fnfields_1): Make static.
      	(lookup_all_conversions): New.
      	(class_method_index_for_fn): Delete.
      	* semantics.c (classtype_has_nothrow_assign_or_copy_p): Use
      	lookup_fnfields_slot.
      
      	* g++.dg/concepts/memfun-err.C: Adjust diagnostics.
      	* g++.dg/cpp0x/decltype9.C: Likewise.
      	* g++.dg/cpp0x/forw_enum9.C: Likewise.
      	* g++.dg/lookup/decl1.C: Likewise.
      	* g++.dg/lookup/extern-c-redecl.C: Likewise.
      	* g++.dg/other/pr28432.C: Likewise.
      	* g++.dg/parse/crash12.C: Likewise.
      	* g++.dg/parse/enum3.C: Likewise.
      	* g++.dg/parse/operator6.C: Likewise.
      	* g++.dg/template/crash69.C: Likewise.
      	* g++.dg/template/error27.C: Likewise.
      	* g++.dg/template/error28.C: Likewise.
      	* g++.dg/template/memfriend6.C: Likewise.
      	* g++.old-deja/g++.mike/err1.C: Likewise.
      	* g++.old-deja/g++.mike/p811.C: Likewise.
      	* g++.old-deja/g++.other/crash25.C: Likewise.
      	* g++.old-deja/g++.other/dtor4.C: Likewise.
      	* g++.old-deja/g++.pt/t37.C: Likewise.
      
      From-SVN: r249843
      Nathan Sidwell committed
    • * lto-wrapper.c (copy_file) Close both file descriptors before · 367e91e1
      	exiting normally.
      
      From-SVN: r249841
      Sylvestre Ledru committed
    • Fix removal of ifunc (PR ipa/81214). · aaa587d4
      2017-06-30  Martin Liska  <mliska@suse.cz>
      
      	PR ipa/81214
      	* gcc.target/i386/pr81214.c: New test.
      2017-06-30  Martin Liska  <mliska@suse.cz>
      
      	PR ipa/81214
      	* multiple_target.c (create_dispatcher_calls): Make ifunc
      	also for function that don't have calls or are not referenced.
      
      From-SVN: r249840
      Martin Liska committed
    • tree-vect-slp.c (vect_slp_analyze_node_operations): Only analyze the first scalar stmt. · bd2f172f
      2017-06-30  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-slp.c (vect_slp_analyze_node_operations): Only
      	analyze the first scalar stmt.  Move vector type computation
      	for the BB case here from ...
      	* tree-vect-stmts.c (vect_analyze_stmt): ... here.  Guard
      	live operation processing in the SLP case properly.
      
      From-SVN: r249839
      Richard Biener committed
    • call.c (build_new_method_call_1): Use constructo_name to get ctor name. · 3b5c768c
      	* call.c (build_new_method_call_1): Use constructo_name to get
      	ctor name.  Move argument processing earlier to merge cdtor
      	handling blocks.
      	* decl.c (grokfndecl): Cdtors have special names.
      	* method.c (implicitly_declare_fn): Likewise. Simplify flag setting.
      	* pt.c (check_explicit_specialization): Cdtor name is already
      	special.
      	* search.c (class_method_index_for_fn): Likewise.
      
      	* g++.dg/plugin/decl-plugin-test.C: Expect special ctor name.
      
      From-SVN: r249838
      Nathan Sidwell committed
    • re PR c++/81229 (ICE in c_tree_chain_next on aarch64) · 274c1516
      	PR c++/81229
      	* name-lookup.c (do_pushdecl): Reset IDENTIFIER_TYPE when finding
      	a matching TYPE_DECL.
      
      	* g++.dg/lookup/pr81229.C: New.
      
      From-SVN: r249835
      Nathan Sidwell committed
    • graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax. · 273a94e0
      2017-06-30  Richard Biener  <rguenther@suse.de>
      
      	* graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
      
      From-SVN: r249834
      Richard Biener committed
    • Call BUILT_IN_ASAN_HANDLE_NO_RETURN before BUILT_IN_UNWIND_RESUME (PR sanitizer/81021). · c497284c
      2017-06-30  Martin Liska  <mliska@suse.cz>
      
      	PR sanitizer/81021
      	* g++.dg/asan/pr81021.C: New test.
      2017-06-30  Martin Liska  <mliska@suse.cz>
      
      	PR sanitizer/81021
      	* tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
      	before BUILT_IN_UNWIND_RESUME when ASAN is used.
      
      From-SVN: r249833
      Martin Liska committed
    • Documentation: Clean up AArch64 options. · 516fa894
      	gcc/
      	2017-06-30  Yvan Roux  <yvan.roux@linaro.org>
      
      	* doc/invoke.texi (AArch64): Add missing options and remove redundant
      	ones.
      
      From-SVN: r249832
      Yvan Roux committed
    • re PR tree-optimization/81249 (ICE: error: incompatible types in PHI argument 0) · 4812f0b7
      2017-06-30  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/81249
      	* tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
      	condition reduction result to original scalar type.
      
      	* g++.dg/torture/pr81249.C: New testcase.
      
      From-SVN: r249831
      Richard Biener committed
    • profile-count.h: Fix typos and whitespace issues. · 5ef4d61d
      gcc/ChangeLog:
      
      2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
      
      	* profile-count.h (enum profile_quality): Fix typos and whitespace
      	issues.
      
      From-SVN: r249830
      Andreas Krebbel committed
    • S/390: Adjust to the recent branch probability changes. · 8f746f8c
      This fixes the bootstrap failure triggered by the recent changes wrt
      branch probabilities aka emit_cmp_and_jump_insns does not accept
      integers as branch probability anymore.
      
      gcc/ChangeLog:
      
      2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
      
      	* config/s390/s390.c (s390_expand_setmem): Adjust to the new data
      	type for branch probabilities.
      
      From-SVN: r249829
      Andreas Krebbel committed
    • aarch64-fusion-pairs.def: Add ALU_BRANCH entry. · 00c7c57f
      2017-06-29  Julian Brown  <julian@codesourcery.com>
      	    Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
      
      	* config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
      	* config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
      	(thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
      	(aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
      
      
      Co-Authored-By: Naveen H.S <Naveen.Hurugalawadi@cavium.com>
      
      From-SVN: r249828
      Julian Brown committed
    • aarch64.c (aarch_macro_fusion_pair_p): Push the check for CC usage into AARCH64_FUSE_CMP_BRANCH. · 509f819a
      2017-06-29  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
      
      	* config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
      	check for CC usage into AARCH64_FUSE_CMP_BRANCH.
      	* config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
      	CC usage from generic code to here.
      	* sched-deps.c (sched_macro_fuse_insns): Move the condition for
      	CC usage into the target macros.
      
      From-SVN: r249827
      Naveen H.S committed
    • Daily bump. · 44b222ce
      From-SVN: r249826
      GCC Administrator committed
  2. 29 Jun, 2017 23 commits
    • netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared objects. · 9b260ce0
      2017-06-29  Maya Rashish  <coypu@sdf.org>
      
      	* config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
      	objects.
      
      From-SVN: r249822
      Maya Rashish committed
    • arm-builtins.c: Include profile-count.h · 84a1b7fe
      	* arm/arm-builtins.c: Include profile-count.h
      	* except.c (sjlj_emit_function_enter): Use
      	profile_probability::unlikely.
      
      From-SVN: r249821
      Jan Hubicka committed
    • class.c (add_method): Change pair of errors to error + inform. · 8e09cb8b
      /cp
      2017-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* class.c (add_method): Change pair of errors to error + inform.
      	(handle_using_decl): Likewise.
      
      /testsuite
      2017-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* g++.dg/cpp0x/inh-ctor3.C: Adjust for dg-message vs dg-error.
      	* g++.dg/diagnostic/variadic1.C: Likewise.
      	* g++.dg/gomp/udr-3.C: Likewise.
      	* g++.dg/overload/error1.C: Likewise.
      	* g++.dg/overload/error2.C: Likewise.
      	* g++.dg/template/duplicate1.C: Likewise.
      	* g++.old-deja/g++.benjamin/warn02.C: Likewise.
      	* g++.old-deja/g++.brendan/arm2.C: Likewise.
      	* g++.old-deja/g++.other/redecl2.C: Likewise.
      	* g++.old-deja/g++.other/redecl4.C: Likewise.
      	* g++.old-deja/g++.pt/memtemp78.C: Likewise.
      
      From-SVN: r249820
      Paolo Carlini committed
    • PR c++/81180 - ICE with C++17 deduction of member class template. · 47304c6a
      	* pt.c (build_deduction_guide): Correct member template handling.
      
      From-SVN: r249816
      Jason Merrill committed
    • rs6000.c (toc_relative_expr_p): Make tocrel_base and tocrel_offset be pointer… · f990f3a3
      rs6000.c (toc_relative_expr_p): Make tocrel_base and tocrel_offset be pointer args rather than implicitly using...
      
      2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
      
              * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
              and tocrel_offset be pointer args rather than implicitly using
              static versions.
              (legitimate_constant_pool_address_p, rs6000_emit_move,
              const_load_sequence_p, adjust_vperm): Add local tocrel_base and
              tocrel_offset and use in toc_relative_expr_p call.
              (print_operand, print_operand_address): Use static tocrel_base_oac
              and tocrel_offset_oac.
              (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
              tocrel_offset_oac.
      
      From-SVN: r249815
      Aaron Sawdey committed
    • PR c++/81188 - matching decltype of member function call. · 5497bd2b
      	* tree.c (cp_tree_equal): Remove COMPONENT_REF special case.
      
      From-SVN: r249813
      Jason Merrill committed
    • builtins.md (ffssi2_internal): Correct constraint. · becb93d0
      2017-06-29  Maya Rashish  <coypu@sdf.org>
      
      	* config/vax/builtins.md (ffssi2_internal): Correct constraint.
      
      From-SVN: r249812
      Maya Rashish committed
    • expr.c (expand_expr): When testing for unaligned objects... · 3ba358bf
      	* expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
      	objects, take into account only the alignment of 'op0' and 'mode1' if
      	'op0' is a MEM.
      
      From-SVN: r249811
      Eric Botcazou committed
    • re PR fortran/77765 (ICE in gfc_match_oacc_routine, at fortran/openmp.c:1781) · 74582a3e
      	PR fortran/77765
      
      	gcc/fortran/
      	* openmp.c (gfc_match_oacc_routine): Check if proc_name exist before
      	comparing the routine name against it.
      
      	gcc/testsuite/
      	* gfortran.dg/goacc/pr77765.f90: New test.
      
      From-SVN: r249809
      Cesar Philippidis committed
    • ccmp_2.c: New test. · 6da4066f
      2017-06-29  Steve Ellcey  <sellcey@cavium.com>
      
      	* gcc.target/aarch64/ccmp_2.c: New test.
      
      From-SVN: r249806
      Steve Ellcey committed
    • ccmp.c (ccmp_tree_comparison_p): New function. · f580a969
      2017-06-29  Steve Ellcey  <sellcey@cavium.com>
      
      	* ccmp.c (ccmp_tree_comparison_p): New function.
      	(ccmp_candidate_p): Update to use above function.
      	(get_compare_parts): New function.
      	(expand_ccmp_next): Update to use new functions.
      	(expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
      	new functions.
      	(expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
      	take mode as argument.
      	* ccmp.h (expand_ccmp_expr): Add mode as argument.
      	* expr.c (expand_expr_real_1): Pass mode as argument.
      
      From-SVN: r249805
      Steve Ellcey committed
    • re PR c++/81247 (ICE on invalid C++ code with malformed namespace declaration:… · be3b7dcf
      re PR c++/81247 (ICE on invalid C++ code with malformed namespace declaration: in do_push_nested_namespace, at cp/name-lookup.c:6002)
      
      	PR c++/81247
      	* parser.c (cp_parser_namespace_definition): Immediately close the
      	namespace if there's no open-brace.
      	* name-lookup.c (do_pushdecl): Reset OLD when pushing into new
      	namespace.
      
      From-SVN: r249804
      Nathan Sidwell committed
    • bid2dpd_dpd2bid.c (_bid_to_dpd32): Fix whitespace. · 6044f5e3
      	* bid/bid2dpd_dpd2bid.c (_bid_to_dpd32): Fix whitespace.
      	(_dpd_to_bid32): Simplify identical code on multiple branches.
      	Fix whitespace.
      	(_bid_to_dpd64, _dpd_to_bid64): Likewise.
      	(_bid_to_dpd128, _dpd_to_bid128): Likewise.
      
      From-SVN: r249803
      Sylvestre Ledru committed
    • combine: Print insns with the cost dump · e9d22c8a
      In the combine dump file, at the start there is a list of the RTL cost
      of every insn.  The only thing listed about the insns is the UID though.
      To make it more useful, this patch prints the insn itself as well (in
      slim format).
      
      
      	* combine.c (combine_instructions): Print insns to dump_file, together
      	with their costs.
      
      From-SVN: r249802
      Segher Boessenkool committed
    • asan.c (asan_emit_stack_protection): Update. · 357067f2
      	* asan.c (asan_emit_stack_protection): Update.
      	(create_cond_insert_point): Update.
      	* auto-profile.c (afdo_propagate_circuit): Update.
      	* basic-block.h (struct edge_def): Turn probability to
      	profile_probability.
      	(EDGE_FREQUENCY): Update.
      	* bb-reorder.c (find_traces_1_round): Update.
      	(better_edge_p): Update.
      	(sanitize_hot_paths): Update.
      	* cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
      	(make_single_succ_edge): Update.
      	(check_bb_profile): Update.
      	(dump_edge_info): Update.
      	(update_bb_profile_for_threading): Update.
      	* cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
      	probabilitycount to 0.
      	* cfgbuild.c (compute_outgoing_frequencies): Update.
      	* cfgcleanup.c (try_forward_edges): Update.
      	(outgoing_edges_match): Update.
      	(try_crossjump_to_edge): Update.
      	* cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
      	(expand_gimple_tailcall): Update.
      	(construct_init_block): Use make_single_succ_edge.
      	(construct_exit_block): Use make_single_succ_edge.
      	* cfghooks.c (verify_flow_info): Update.
      	(redirect_edge_succ_nodup): Update.
      	(split_edge): Update.
      	(account_profile_record): Update.
      	* cfgloopanal.c (single_likely_exit): Update.
      	* cfgloopmanip.c (scale_loop_profile): Update.
      	(set_zero_probability): Remove.
      	(duplicate_loop_to_header_edge): Update.
      	* cfgloopmanip.h (loop_version): Update prototype.
      	* cfgrtl.c (try_redirect_by_replacing_jump): Update.
      	(force_nonfallthru_and_redirect): Update.
      	(update_br_prob_note): Update.
      	(rtl_verify_edges): Update.
      	(purge_dead_edges): Update.
      	(rtl_lv_add_condition_to_bb): Update.
      	* cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
      	* cgraphunit.c (init_lowered_empty_function): Update.
      	(cgraph_node::expand_thunk): Update.
      	* cilk-common.c: Include profile-count.h
      	* dojump.c (inv): Remove.
      	(jumpifnot): Update.
      	(jumpifnot_1): Update.
      	(do_jump_1): Update.
      	(do_jump): Update.
      	(do_jump_by_parts_greater_rtx): Update.
      	(do_compare_rtx_and_jump): Update.
      	* dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
      	do_jump_1. do_compare_rtx_and_jump): Update prototype.
      	* dwarf2cfi.c: Include profile-count.h
      	* except.c (dw2_build_landing_pads): Use make_single_succ_edge.
      	(sjlj_emit_dispatch_table): Likewise.
      	* explow.c: Include profile-count.h
      	* expmed.c (emit_store_flag_force): Update.
      	(do_cmp_and_jump): Update.
      	* expr.c (compare_by_pieces_d::generate): Update.
      	(compare_by_pieces_d::finish_mode): Update.
      	(emit_block_move_via_loop): Update.
      	(store_expr_with_bounds): Update.
      	(store_constructor): Update.
      	(expand_expr_real_2): Update.
      	(expand_expr_real_1): Update.
      	* expr.h (try_casesi, try_tablejump): Update prototypes.
      	* gimple-pretty-print.c (dump_probability): Update.
      	(dump_profile): New.
      	(dump_gimple_label): Update.
      	(dump_gimple_bb_header): Update.
      	* graph.c (draw_cfg_node_succ_edges): Update.
      	* hsa-gen.c (convert_switch_statements): Update.
      	* ifcvt.c (cheap_bb_rtx_cost_p): Update.
      	(find_if_case_1): Update.
      	(find_if_case_2): Update.
      	* internal-fn.c (expand_arith_overflow_result_store): Update.
      	(expand_addsub_overflow): Update.
      	(expand_neg_overflow): Update.
      	(expand_mul_overflow): Update.
      	(expand_vector_ubsan_overflow): Update.
      	* ipa-cp.c (good_cloning_opportunity_p): Update.
      	* ipa-split.c (split_function): Use make_single_succ_edge.
      	* ipa-utils.c (ipa_merge_profiles): Update.
      	* loop-doloop.c (add_test): Update.
      	(doloop_modify): Update.
      	* loop-unroll.c (compare_and_jump_seq): Update.
      	(unroll_loop_runtime_iterations): Update.
      	* lra-constraints.c (lra_inheritance): Update.
      	* lto-streamer-in.c (input_cfg): Update.
      	* lto-streamer-out.c (output_cfg): Update.
      	* mcf.c (adjust_cfg_counts): Update.
      	* modulo-sched.c (sms_schedule): Update.
      	* omp-expand.c (expand_omp_for_init_counts): Update.
      	(extract_omp_for_update_vars): Update.
      	(expand_omp_ordered_sink): Update.
      	(expand_omp_for_ordered_loops): Update.
      	(expand_omp_for_generic): Update.
      	(expand_omp_for_static_nochunk): Update.
      	(expand_omp_for_static_chunk): Update.
      	(expand_cilk_for): Update.
      	(expand_omp_simd): Update.
      	(expand_omp_taskloop_for_outer): Update.
      	(expand_omp_taskloop_for_inner): Update.
      	* omp-simd-clone.c (simd_clone_adjust): Update.
      	* optabs.c (expand_doubleword_shift): Update.
      	(expand_abs): Update.
      	(emit_cmp_and_jump_insn_1): Update.
      	(expand_compare_and_swap_loop): Update.
      	* optabs.h (emit_cmp_and_jump_insns): Update prototype.
      	* predict.c (predictable_edge_p): Update.
      	(edge_probability_reliable_p): Update.
      	(set_even_probabilities): Update.
      	(combine_predictions_for_insn): Update.
      	(combine_predictions_for_bb): Update.
      	(propagate_freq): Update.
      	(estimate_bb_frequencies): Update.
      	(force_edge_cold): Update.
      	* profile-count.c (profile_count::dump): Add missing space into dump.
      	(profile_count::debug): Add newline.
      	(profile_count::differs_from_p): Explicitly convert to unsigned.
      	(profile_count::stream_in): Update.
      	(profile_probability::dump): New member function.
      	(profile_probability::debug): New member function.
      	(profile_probability::differs_from_p): New member function.
      	(profile_probability::differs_lot_from_p): New member function.
      	(profile_probability::stream_in): New member function.
      	(profile_probability::stream_out): New member function.
      	* profile-count.h (profile_count_quality): Rename to ...
      	(profile_quality): ... this one.
      	(profile_probability): New.
      	(profile_count): Update.
      	* profile.c (compute_branch_probabilities): Update.
      	* recog.c (peep2_attempt): Update.
      	* sched-ebb.c (schedule_ebbs): Update.
      	* sched-rgn.c (find_single_block_region): Update.
      	(compute_dom_prob_ps): Update.
      	(schedule_region): Update.
      	* sel-sched-ir.c (compute_succs_info): Update.
      	* stmt.c (struct case_node): Update.
      	(do_jump_if_equal): Update.
      	(get_outgoing_edge_probs): Update.
      	(conditional_probability): Update.
      	(emit_case_dispatch_table): Update.
      	(expand_case): Update.
      	(expand_sjlj_dispatch_table): Update.
      	(emit_case_nodes): Update.
      	* targhooks.c: Update.
      	* tracer.c (better_p): Update.
      	(find_best_successor): Update.
      	* trans-mem.c (expand_transaction): Update.
      	* tree-call-cdce.c: Update.
      	* tree-cfg.c (gimple_split_edge): Upate.
      	(move_sese_region_to_fn): Upate.
      	* tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
      	* tree-eh.c (lower_resx): Upate.
      	(cleanup_empty_eh_move_lp): Upate.
      	* tree-if-conv.c (version_loop_for_if_conversion): Update.
      	* tree-inline.c (copy_edges_for_bb): Update.
      	(copy_cfg_body): Update.
      	* tree-parloops.c (gen_parallel_loop): Update.
      	* tree-profile.c (gimple_gen_ic_func_profiler): Update.
      	(gimple_gen_time_profiler): Update.
      	* tree-ssa-dce.c (remove_dead_stmt): Update.
      	* tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
      	* tree-ssa-loop-im.c (execute_sm_if_changed): Update.
      	* tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
      	(unloop_loops): Update.
      	(try_peel_loop): Update.
      	* tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
      	* tree-ssa-loop-split.c (connect_loops): Update.
      	(split_loop): Update.
      	* tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
      	(hoist_guard): Update.
      	* tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
      	* tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
      	(value_replacement): Update.
      	* tree-ssa-reassoc.c (branch_fixup): Update.
      	* tree-ssa-tail-merge.c (replace_block_by): Update.
      	* tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
      	(create_edge_and_update_destination_phis): Update.
      	(compute_path_counts): Update.
      	(recompute_probabilities): Update.
      	(update_joiner_offpath_counts): Update.
      	(freqs_to_counts_path): Update.
      	(duplicate_thread_path): Update.
      	* tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
      	(struct switch_conv_info): Update.
      	(gen_inbound_check): Update.
      	* tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
      	(vect_do_peeling): Update.
      	(vect_loop_versioning): Update.
      	* tree-vect-loop.c (scale_profile_for_vect_loop): Update.
      	(optimize_mask_stores): Update.
      	* ubsan.c (ubsan_expand_null_ifn): Update.
      	* value-prof.c (gimple_divmod_fixed_value): Update.
      	(gimple_divmod_fixed_value_transform): Update.
      	(gimple_mod_pow2): Update.
      	(gimple_mod_pow2_value_transform): Update.
      	(gimple_mod_subtract): Update.
      	(gimple_mod_subtract_transform): Update.
      	(gimple_ic): Update.
      	(gimple_stringop_fixed_value): Update.
      	(gimple_stringops_transform): Update.
      	* value-prof.h: Update.
      
      From-SVN: r249800
      Jan Hubicka committed
    • Makefile.am (MOSTLYCLEANFILES): Remove testing files and logs. · fac877a1
      	* Makefile.am (MOSTLYCLEANFILES): Remove testing files and logs.
      	(mostlyclean-local): Remove check-runtime-dir, cgo-test-dir,
      	carchive-test-dir.
      	(ECHO_ENV): Define.
      	(check-go-tool): Depend on cgo.  Write command to testlog.
      	(check-runtime): New target.
      	(check-cgo-test): New target.
      	(check-carchive-test): New target.
      	(check): Depend on check-runtime, check-cgo-test,
      	check-carchive-test.  Add @ to prettify output.
      	(.PHONY): Add check-runtime, check-cgo-test, check-carchive-test.
      	* Makefile.in: Rebuild.
      
      From-SVN: r249799
      Ian Lance Taylor committed
    • rs6000-c.c: Add support for built-in functions vector signed int vec_signed (vector float)... · e5898daf
      gcc/ChangeLog:
      
      2017-06-29  Carl Love  <cel@us.ibm.com>
      
      	* config/rs6000/rs6000-c.c: Add support for built-in functions
      	vector signed int vec_signed (vector float);
      	vector signed long long vec_signed (vector double);
      	vector signed int vec_signed2 (vector double, vector double);
      	vector signed int vec_signede (vector double);
      	vector signed int vec_signedo (vector double);
      	* config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
      	instruction generator.
      	* config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
      	UNSPEC_VSX_VSIGNED2): Add UNSPECS.
      	(vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
      	Add define_insn.
      	(vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
      	vunsignede_v2df): Add define_expands.
      	* config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
      	VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
      	VEC_UNSIGNEDO): Add definitions.
      	* config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
      	UNSPEC_VSX_VSIGNED2): Add UNSPECs.
      	(vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
      	(vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
      	vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
      	* config/rs6000/altivec.h (vec_signed, vec_signed2,
      	vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
      	vec_unsignede, vec_unsignedo): Add builtin defines.
      	* config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
      	declaration.
      	* doc/extend.texi: Update the built-in documentation file for the
      	new built-in functions.
      
      gcc/testsuite/ChangeLog:
      
      2017-06-29  Carl Love  <cel@us.ibm.com>
      
      	* gcc.target/powerpc/builtins-3-runnable.c (test_int_result,
      	test_unsigned_int_result, test_ll_int_result,
      	test_ll_unsigned_int_result): Add result checking functions, add
      	debug support.
      	(main): Add builtin function tests.
      
      From-SVN: r249798
      Carl Love committed
    • PR c++/81164 - ICE with invalid inherited constructor. · 84eb0f1a
      	* search.c (binfo_direct_p): New.
      	* name-lookup.c (do_class_using_decl): Use it.
      
      From-SVN: r249797
      Jason Merrill committed
    • misc/cgo/testcarchive: fix test to work for gccgo · 8ff22ea5
          
          This test is not yet run, but it will be soon.
          
          Reviewed-on: https://go-review.googlesource.com/47038
      
      From-SVN: r249795
      Ian Lance Taylor committed
    • cmd/go: fix -buildmode={c-archive,c-shared,pie} for gccgo · 1a7ad6ad
          
          The tests are misc/cgo tests that are not currently run but will be
          run soon.
          
          Reviewed-on: https://go-review.googlesource.com/47037
      
      From-SVN: r249794
      Ian Lance Taylor committed
    • builtins-3-vec_reve-runnable.c (dg-options, dg-skip-if): Add -mvsx -mcpu=power7. · 14836f38
      gcc/testsuite/ChangeLog:
      
      2017-06-29  Carl Love  <cel@us.ibm.com>
      
      	* gcc.target/powerpc/builtins-3-vec_reve-runnable.c (dg-options,
      	dg-skip-if): Add -mvsx -mcpu=power7.
      
      From-SVN: r249792
      Carl Love committed
    • cp-tree.h (THIS_NAME, [...]): Delete. · e3e6cc26
      	* cp-tree.h (THIS_NAME, IN_CHARGE_NAME, VTBL_PTR_TYPE,
      	VTABLE_DELTA_NAME, VTABLE_PFN_NAME): Delete.
      	* decl.c (initialize_predefined_identifiers): Name cdtor special
      	names consistently.  Use literals for above deleted defines.
      	(cxx_init_decl_processing): Use literal for vtbl_ptr_type name,
      
      From-SVN: r249791
      Nathan Sidwell committed