2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / ChangeLog
bloba90c8880532616eb06b79ee76716b1e7f2a63bfa
1 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
3         * dumpfile.h (enum dump_kind): Remove stray comma.
5 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
7         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
8         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
9         predicate::num_conditions
10         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
11         (CHANGED): turn into predicate::changed.
12         (agg_position_info): Move to ipa-predicate.h
13         (add_condition, predicate::add_clause, predicate::operator &=,
14         predicate::or_with, predicate::evaluate, predicate::probability,
15         dump_condition, dump_clause, predicate::dump,
16         predicate::remap_after_duplication, predicate::remap_after_inlining,
17         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
18         (evaluate_conditions_for_known_args): Update.
19         (set_cond_stmt_execution_predicate): Update.
20         * ipa-inline.h: Include ipa-predicate.h
21         (condition, inline_param_summary, conditions, agg_position_info,
22         predicate): Move to ipa-predicate.h
23         * ipa-predicate.c: New file.
24         * ipa-predicate.h: New file.
26 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
28         * final.c (leaf_function_p): Check we are not in a sequence.
30 2017-05-18  Martin Liska  <mliska@suse.cz>
32         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
33         * dumpfile.c (dump_register): Use new enum dump_kind.
34         (get_dump_file_name): Likewise.
35         (dump_enable_all): Likewise.
36         (dump_switch_p_1): Likewise.
37         (enable_rtl_dump_file): Remove usage of TDF_RTL.
38         * dumpfile.h (enum dump_kind): New enum type.
39         (struct dump_file_info): Create constructor and
40         format fields and comments.
41         * passes.c (pass_manager::register_one_dump_file):
42         Use num dump_kind.
43         * statistics.c (statistics_early_init): Likewise.
44         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
45         TDF_TREE with TDF_SLIM.
46         (gather_memory_references_ref): Likewise.
48 2017-05-18  Martin Liska  <mliska@suse.cz>
50         * vec.h (struct vnull): Use it.
52 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
54         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
55         (true_predicate, false_predicate, true_predicate_p,
56         false_predicate_p): Remove.
57         (single_cond_predicate, not_inlined_predicate): Turn to member function
58         in ipa-inline.h
59         (add_condition): Update.
60         (add_clause): Turn to...
61         (predicate::add_clause): ... this one; update; allow passing NULL
62         as parameter.
63         (and_predicates): Turn to ...
64         (predicate::operator &=): ... this one.
65         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
66         (or_predicates): Turn to ...
67         (predicate::or_with): ... this one.
68         (evaluate_predicate): Turn to ...
69         (predicate::evaluate): ... this one.
70         (predicate_probability): Turn to ...
71         (predicate::probability): ... this one.
72         (dump_condition): Update.
73         (dump_predicate): Turn to ...
74         (predicate::dump): ... this one.
75         (account_size_time): Update.
76         (edge_set_predicate): Update.
77         (set_hint_predicate): UPdate.
78         (evaluate_conditions_for_known_args): Update.
79         (evaluate_properties_for_edge): Update.
80         (remap_predicate_after_duplication): Turn to...
81         (predicate::remap_after_duplication): ... this one.
82         (remap_hint_predicate_after_duplication): Update.
83         (inline_summary_t::duplicate): UPdate.
84         (dump_inline_edge_summary): Update.
85         (dump_inline_summary): Update.
86         (set_cond_stmt_execution_predicate): Update.
87         (set_switch_stmt_execution_predicate): Update.
88         (compute_bb_predicates): Update.
89         (will_be_nonconstant_expr_predicate): Update.
90         (will_be_nonconstant_predicate): Update.
91         (phi_result_unknown_predicate): Update.
92         (predicate_for_phi_result): Update.
93         (array_index_predicate): Update.
94         (estimate_function_body_sizes): Update.
95         (estimate_node_size_and_time): Update.
96         (estimate_ipcp_clone_size_and_time): Update.
97         (remap_predicate): Rename to ...
98         (predicate::remap_after_inlining): ... this one.
99         (remap_hint_predicate): Update.
100         (inline_merge_summary): Update.
101         (inline_update_overall_summary): Update.
102         (estimate_size_after_inlining): Update.
103         (read_predicate): Rename to ...
104         (predicate::stream_in): ... this one.
105         (read_inline_edge_summary): Update.
106         (write_predicate): Rename to ...
107         (predicate::stream_out): ... this one.
108         (write_inline_edge_summary): Update.
109         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
110         (clause_t): Turn to uint32_t
111         (predicate): Turn to class; implement constructor and operators
112         ==, !=, &
113         (size_time_entry): Update.
114         (inline_summary): Update.
115         (inline_edge_summary): Update.
117 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
119         * fold-const.c (fold_binary_loc): Move transformation...
120         * match.pd (C - X CMP X): ... here.
122 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
124         * config/sparc/sparc.c (sparc_option_override): Set function
125         alignment for -mcpu=niagara7 to 64 to match the I$ line.
126         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
127         latency to 1.
128         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
129         latency to 2.
130         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
132 2017-05-18  Marek Polacek  <polacek@redhat.com>
134         PR sanitizer/80797
135         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
136         (pass_ubsan::execute): Call gimple_assign_single_p instead of
137         gimple_assign_load_p.
139 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
141         PR middle-end/80692
142         * real.c (do_compare): Give decimal_do_compare preference over
143         comparing just the signs.
145 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
147         * doc/md.texi (Canonicalization of Instructions): Describe the
148         canonical form of instructions that inherently set a condition
149         code register.
151 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
153         PR middle-end/80775
154         * tree-cfg.c: Move deletion of unreachable case statements to after
155         the merging of consecutive case labels.
157 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
159         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
160         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
161         restoring of callee-saved registers.
163 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
165         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
166         * config/visium/visium.c (single_set_and_flags): Likewise.
167         * config/visium/visium.md (Substitutions): Likewise.
169 2017-05-17  Martin Liska  <mliska@suse.cz>
171         * cfg.c: Introduce dump_flags_t type and
172         use it instead of int type.
173         * cfg.h: Likewise.
174         * cfghooks.c: Likewise.
175         * cfghooks.h (struct cfg_hooks): Likewise.
176         * cfgrtl.c: Likewise.
177         * cfgrtl.h: Likewise.
178         * cgraph.c (cgraph_node::get_body): Likewise.
179         * coretypes.h: Likewise.
180         * domwalk.c: Likewise.
181         * domwalk.h: Likewise.
182         * dumpfile.c (struct dump_option_value_info): Likewise.
183         (dump_enable_all): Likewise.
184         (dump_switch_p_1): Likewise.
185         (opt_info_switch_p): Likewise.
186         * dumpfile.h (enum tree_dump_index): Likewise.
187         (struct dump_file_info): Likewise.
188         * genemit.c: Likewise.
189         * generic-match-head.c: Likewise.
190         * gengtype.c (open_base_files): Likewise.
191         * gimple-pretty-print.c: Likewise.
192         * gimple-pretty-print.h: Likewise.
193         * graph.c (print_graph_cfg): Likewise.
194         * graphite-scop-detection.c (dot_all_sese): Likewise.
195         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
196         * loop-unroll.c (report_unroll): Likewise.
197         * passes.c (pass_manager::register_one_dump_file): Likewise.
198         * print-tree.c: Likewise.
199         * statistics.c: Likewise.
200         * tree-cfg.c: Likewise.
201         * tree-cfg.h: Likewise.
202         * tree-dfa.c: Likewise.
203         * tree-dfa.h: Likewise.
204         * tree-dump.c (dump_function): Likewise.
205         * tree-dump.h (struct dump_info): Likewise.
206         * tree-pretty-print.c: Likewise.
207         * tree-pretty-print.h: Likewise.
208         * tree-ssa-live.c: Likewise.
209         * tree-ssa-live.h: Likewise.
210         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
211         * tree-vect-loop.c: Likewise.
212         * tree-vect-slp.c: Likewise.
214 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
215             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
217         PR tree-optimization/80457
218         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
219         of all arguments to a statement as scalar_to_vec operations.
220         (vectorizable_call): Adjust call to vect_model_simple_cost for
221         new parameter.
222         (vectorizable_conversion): Likewise.
223         (vectorizable_assignment): Likewise.
224         (vectorizable_shift): Likewise.
225         (vectorizable_operation): Likewise.
226         (vectorizable_comparison): Likewise.
227         (vect_is_simple_cond): Record the def types for operands.
228         (vectorizable_condition): Likewise, call vect_model_simple_cost.
229         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
230         for statement argument count.
232 2017-05-16  Carl Love  <cel@us.ibm.com>
234         * config/rs6000/rs6000-c: Add support for built-in functions
235         vector unsigned long long vec_bperm (vector unsigned long long,
236                                              vector unsigned char)
237         vector signed long long vec_mule (vector signed int,
238                                           vector signed int)
239         vector unsigned long long vec_mule (vector unsigned int,
240                                             vector unsigned int)
241         vector signed long long vec_mulo (vector signed int,
242                                           vector signed int)
243         vector unsigned long long vec_mulo (vector unsigned int,
244                                             vector unsigned int)
245         vector signed char vec_sldw (vector signed char,
246                                      vector signed char,
247                                      const int)
248         vector unsigned char vec_sldw (vector unsigned char,
249                                        vector unsigned char,
250                                        const int)
251         vector signed short vec_sldw (vector signed short,
252                                       vector signed short,
253                                       const int)
254         vector unsigned short vec_sldw (vector unsigned short,
255                                         vector unsigned short,
256                                         const int)
257         vector signed int vec_sldw (vector signed int,
258                                     vector signed int,
259                                     const int)
260         vector unsigned int vec_sldw (vector unsigned int,
261                                       vector unsigned int,
262                                       const int)
263         vector signed long long vec_sldw (vector signed long long,
264                                           vector signed long long,
265                                           const int)
266         vector unsigned long long vec_sldw (vector unsigned long long,
267                                             vector unsigned long long,
268                                             const int)
269         * config/rs6000/rs6000-c: Add support for built-in functions
270         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
271         * config/rs6000/altivec.h: Add defintion for vec_sldw.
272         * doc/extend.texi: Update the built-in documentation for the
273         new built-in functions.
275 2017-05-16  Marek Polacek  <polacek@redhat.com>
277         PR sanitizer/80536
278         PR sanitizer/80386
279         * tree.c (save_expr): Don't fold the expression.
281 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
283         * config/i386.i386.md (*movsi_internal): Split (?rm,*y) alternative
284         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
285         and (?*y,m).  Update insn attributes.
287 2017-05-16  Martin Liska  <mliska@suse.cz>
289         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
290         flags argument of print_gimple_stmt, print_gimple_expr,
291         print_generic_stmt and print_generic_expr.
292         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
293         * coretypes.h: Likewise.
294         * except.c (dump_eh_tree): Likewise.
295         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
296         * gimple-pretty-print.h: Likewise.
297         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
298         (backprop::push_to_worklist): Likewise.
299         (backprop::pop_from_worklist): Likewise.
300         (backprop::process_use): Likewise.
301         (backprop::intersect_uses): Likewise.
302         (note_replacement): Likewise.
303         * gimple-ssa-store-merging.c
304         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
305         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
306         (pass_store_merging::execute): Likewise.
307         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
308         (ssa_base_cand_dump_callback): Likewise.
309         (dump_incr_vec): Likewise.
310         (replace_refs): Likewise.
311         (replace_mult_candidate): Likewise.
312         (create_add_on_incoming_edge): Likewise.
313         (create_phi_basis): Likewise.
314         (insert_initializers): Likewise.
315         (all_phi_incrs_profitable): Likewise.
316         (introduce_cast_before_cand): Likewise.
317         (replace_one_candidate): Likewise.
318         * gimplify.c (gimplify_expr): Likewise.
319         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
320         (set_rename): Likewise.
321         (rename_uses): Likewise.
322         (copy_loop_phi_nodes): Likewise.
323         (add_close_phis_to_merge_points): Likewise.
324         (copy_loop_close_phi_args): Likewise.
325         (copy_cond_phi_args): Likewise.
326         (graphite_copy_stmts_from_block): Likewise.
327         (translate_pending_phi_nodes): Likewise.
328         * graphite-poly.c (print_pdr): Likewise.
329         (dump_gbb_cases): Likewise.
330         (dump_gbb_conditions): Likewise.
331         (print_scop_params): Likewise.
332         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
333         (build_cross_bb_scalars_use): Likewise.
334         (gather_bbs::before_dom_children): Likewise.
335         * hsa-dump.c (dump_hsa_immed): Likewise.
336         * ipa-cp.c (print_ipcp_constant_value): Likewise.
337         (get_replacement_map): Likewise.
338         * ipa-inline-analysis.c (dump_condition): Likewise.
339         (estimate_function_body_sizes): Likewise.
340         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
341         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
342         * ipa-prop.c (ipa_dump_param): Likewise.
343         (ipa_print_node_jump_functions_for_edge): Likewise.
344         (ipa_modify_call_arguments): Likewise.
345         (ipa_modify_expr): Likewise.
346         (ipa_dump_param_adjustments): Likewise.
347         (ipa_dump_agg_replacement_values): Likewise.
348         (ipcp_modif_dom_walker::before_dom_children): Likewise.
349         * ipa-pure-const.c (check_stmt): Likewise.
350         (pass_nothrow::execute): Likewise.
351         * ipa-split.c (execute_split_functions): Likewise.
352         * omp-offload.c (dump_oacc_loop_part): Likewise.
353         (dump_oacc_loop): Likewise.
354         * trans-mem.c (tm_log_emit): Likewise.
355         (tm_memopt_accumulate_memops): Likewise.
356         (dump_tm_memopt_set): Likewise.
357         (dump_tm_memopt_transform): Likewise.
358         * tree-cfg.c (gimple_verify_flow_info): Likewise.
359         (print_loop): Likewise.
360         * tree-chkp-opt.c (chkp_print_addr): Likewise.
361         (chkp_gather_checks_info): Likewise.
362         (chkp_get_check_result): Likewise.
363         (chkp_remove_check_if_pass): Likewise.
364         (chkp_use_outer_bounds_if_possible): Likewise.
365         (chkp_reduce_bounds_lifetime): Likewise.
366         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
367         (chkp_mark_completed_bounds): Likewise.
368         (chkp_register_incomplete_bounds): Likewise.
369         (chkp_mark_invalid_bounds): Likewise.
370         (chkp_maybe_copy_and_register_bounds): Likewise.
371         (chkp_build_returned_bound): Likewise.
372         (chkp_get_bound_for_parm): Likewise.
373         (chkp_build_bndldx): Likewise.
374         (chkp_get_bounds_by_definition): Likewise.
375         (chkp_generate_extern_var_bounds): Likewise.
376         (chkp_get_bounds_for_decl_addr): Likewise.
377         * tree-chrec.c (chrec_apply): Likewise.
378         * tree-data-ref.c (dump_data_reference): Likewise.
379         (dump_subscript): Likewise.
380         (dump_data_dependence_relation): Likewise.
381         (analyze_overlapping_iterations): Likewise.
382         * tree-inline.c (expand_call_inline): Likewise.
383         (tree_function_versioning): Likewise.
384         * tree-into-ssa.c (dump_defs_stack): Likewise.
385         (dump_currdefs): Likewise.
386         (dump_names_replaced_by): Likewise.
387         (dump_update_ssa): Likewise.
388         (update_ssa): Likewise.
389         * tree-object-size.c (pass_object_sizes::execute): Likewise.
390         * tree-parloops.c (build_new_reduction): Likewise.
391         (try_create_reduction_list): Likewise.
392         (ref_conflicts_with_region): Likewise.
393         (oacc_entry_exit_ok_1): Likewise.
394         (oacc_entry_exit_single_gang): Likewise.
395         * tree-pretty-print.h: Likewise.
396         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
397         (get_scalar_evolution): Likewise.
398         (add_to_evolution): Likewise.
399         (get_loop_exit_condition): Likewise.
400         (analyze_evolution_in_loop): Likewise.
401         (analyze_initial_condition): Likewise.
402         (analyze_scalar_evolution): Likewise.
403         (instantiate_scev): Likewise.
404         (number_of_latch_executions): Likewise.
405         (gather_chrec_stats): Likewise.
406         (final_value_replacement_loop): Likewise.
407         (scev_const_prop): Likewise.
408         * tree-sra.c (dump_access): Likewise.
409         (disqualify_candidate): Likewise.
410         (create_access): Likewise.
411         (reject): Likewise.
412         (maybe_add_sra_candidate): Likewise.
413         (create_access_replacement): Likewise.
414         (analyze_access_subtree): Likewise.
415         (analyze_all_variable_accesses): Likewise.
416         (sra_modify_assign): Likewise.
417         (initialize_constant_pool_replacements): Likewise.
418         (find_param_candidates): Likewise.
419         (decide_one_param_reduction): Likewise.
420         (replace_removed_params_ssa_names): Likewise.
421         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
422         * tree-ssa-copy.c (dump_copy_of): Likewise.
423         (copy_prop_visit_cond_stmt): Likewise.
424         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
425         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
426         (record_equivalences_from_stmt): Likewise.
427         * tree-ssa-dse.c (compute_trims): Likewise.
428         (delete_dead_call): Likewise.
429         (delete_dead_assignment): Likewise.
430         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
431         (forward_propagate_into_cond): Likewise.
432         (pass_forwprop::execute): Likewise.
433         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
434         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
435         Likewise.
436         (move_computations_worker): Likewise.
437         (execute_sm): Likewise.
438         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
439         (remove_exits_and_undefined_stmts): Likewise.
440         (remove_redundant_iv_tests): Likewise.
441         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
442         (adjust_iv_update_pos): Likewise.
443         * tree-ssa-math-opts.c (bswap_replace): Likewise.
444         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
445         (value_replacement): Likewise.
446         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
447         * tree-ssa-pre.c (print_pre_expr): Likewise.
448         (get_representative_for): Likewise.
449         (create_expression_by_pieces): Likewise.
450         (insert_into_preds_of_block): Likewise.
451         (eliminate_insert): Likewise.
452         (eliminate_dom_walker::before_dom_children): Likewise.
453         (eliminate): Likewise.
454         (remove_dead_inserted_code): Likewise.
455         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
456         * tree-ssa-reassoc.c (get_rank): Likewise.
457         (eliminate_duplicate_pair): Likewise.
458         (eliminate_plus_minus_pair): Likewise.
459         (eliminate_not_pairs): Likewise.
460         (undistribute_ops_list): Likewise.
461         (eliminate_redundant_comparison): Likewise.
462         (update_range_test): Likewise.
463         (optimize_range_tests_var_bound): Likewise.
464         (optimize_vec_cond_expr): Likewise.
465         (rewrite_expr_tree): Likewise.
466         (rewrite_expr_tree_parallel): Likewise.
467         (linearize_expr): Likewise.
468         (break_up_subtract): Likewise.
469         (linearize_expr_tree): Likewise.
470         (attempt_builtin_powi): Likewise.
471         (attempt_builtin_copysign): Likewise.
472         (transform_stmt_to_copy): Likewise.
473         (transform_stmt_to_multiply): Likewise.
474         (dump_ops_vector): Likewise.
475         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
476         (print_scc): Likewise.
477         (set_ssa_val_to): Likewise.
478         (visit_reference_op_store): Likewise.
479         (visit_use): Likewise.
480         (sccvn_dom_walker::before_dom_children): Likewise.
481         (run_scc_vn): Likewise.
482         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
483         Likewise.
484         (expr_hash_elt::print): Likewise.
485         (const_and_copies::pop_to_marker): Likewise.
486         (const_and_copies::record_const_or_copy_raw): Likewise.
487         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
488         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
489         (dump_predicates): Likewise.
490         (find_uninit_use): Likewise.
491         (warn_uninitialized_phi): Likewise.
492         (pass_late_warn_uninitialized::execute): Likewise.
493         * tree-ssa.c (verify_vssa): Likewise.
494         (verify_ssa): Likewise.
495         (maybe_optimize_var): Likewise.
496         * tree-vrp.c (dump_value_range): Likewise.
497         (dump_all_value_ranges): Likewise.
498         (dump_asserts_for): Likewise.
499         (register_edge_assert_for_2): Likewise.
500         (vrp_visit_cond_stmt): Likewise.
501         (vrp_visit_switch_stmt): Likewise.
502         (vrp_visit_stmt): Likewise.
503         (vrp_visit_phi_node): Likewise.
504         (simplify_cond_using_ranges_1): Likewise.
505         (fold_predicate_in): Likewise.
506         (evrp_dom_walker::before_dom_children): Likewise.
507         (evrp_dom_walker::push_value_range): Likewise.
508         (evrp_dom_walker::pop_value_range): Likewise.
509         (execute_early_vrp): Likewise.
511 2017-05-16  Richard Biener  <rguenther@suse.de>
513         * dwarf2out.c (loc_list_from_tree_1): Do not create
514         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
516 2017-05-16  Richard Biener  <rguenther@suse.de>
518         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
519         just generated.
520         (note_variable_value_in_expr): If we resolved the decl ref
521         do not push to the stack.
523 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
525         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
526         operations in fast-math mode.
527         (vaddq_f16): Likewise.
528         (vmul_f16): Likewise.
529         (vmulq_f16): Likewise.
530         (vsub_f16): Likewise.
531         (vsubq_f16): Likewise.
532         * config/arm/neon.md (add<mode>3): New.
533         (sub<mode>3): New.
534         (fma:<VH:mode>3): New.  Also remove outdated comment.
535         (mul<mode>3): New.
537 2017-05-16  Martin Liska  <mliska@suse.cz>
539         PR ipa/79849.
540         PR ipa/79850.
541         * ipa-devirt.c (warn_types_mismatch): Fix typo.
542         (odr_types_equivalent_p): Likewise.
544 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
546         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
548 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
550         PR target/80425
551         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
552         non-interunit SSE move alternatives with '?'.
553         (zero-extendsidi peephole2): New peephole to skip intermediate
554         general register in SSE zero-extend sequence.
556 2017-05-15  Jeff Law  <law@redhat.com>
558         * reorg.c (relax_delay_slots): Create a new variable to hold
559         the temporary target rather than clobbering TARGET_LABEL.
561         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
562         missing argument to extract_bit_field call.
563         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
565 2017-05-15  Martin Liska  <mliska@suse.cz>
567         PR driver/31468
568         * gcc.c (process_command): Do not allow empty argument of -o option.
570 2017-05-15  Renlin Li  <renlin.li@arm.com>
572         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
573         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
574         * config/aarch64/constraints.md (Usf): Add long call check.
575         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
576         (call_value): Likewise.
577         (sibcall): Likewise.
578         (sibcall_value): Likewise.
579         (call_insn): New.
580         (call_value_insn): New.
581         (sibcall_insn): Update rtx pattern.
582         (sibcall_value_insn): Likewise.
583         (call_internal): Remove.
584         (call_value_internal): Likewise.
585         (sibcall_internal): Likewise.
586         (sibcall_value_internal): Likewise.
587         (call_reg): Likewise.
588         (call_symbol): Likewise.
589         (call_value_reg): Likewise.
590         (call_value_symbol): Likewise.
592 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
594         PR target/80600
595         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
597 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
599         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
600         compatible with CCGOCmode and with CCZmode.
602 2017-05-14  Martin Sebor  <msebor@redhat.com>
604         PR middle-end/77671
605         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
606         (gimple_fold_builtin_snprintf): Same.
607         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
608         (gimple_fold_builtin_snprintf): Same.
609         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
610         of character types.
611         (is_call_safe): New function.
612         (try_substitute_return_value): Call it.
613         (try_simplify_call): New function.
614         (pass_sprintf_length::handle_gimple_call): Call it.
616 2017-05-14  Martin Sebor  <msebor@redhat.com>
618         PR middle-end/80669
619         * builtins.c (expand_builtin_stpncpy): Simplify.
621 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
623         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
624         * config/i386/i386.h
625         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
626         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
627         (struct machine_function): Add new members call_ms2sysv,
628         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
629         (struct machine_frame_state): New fields sp_realigned and
630         sp_realigned_offset.
631         * config/i386/i386.c
632         (enum xlogue_stub): New enum.
633         (enum xlogue_stub_sets): New enum.
634         (class xlogue_layout): New class.
635         (struct ix86_frame): New fields stack_realign_allocate_offset,
636         stack_realign_offset and outlined_save_offset.  Modify comments to
637         detail stack layout when using out-of-line stubs.
638         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
639         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
640         -mcall-ms2sysv-xlogues.
641         (stub_managed_regs): New static variable.
642         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
643         registers managed by out-of-line stub.
644         (disable_call_ms2sysv_xlogues): New function.
645         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
646         m->call_ms2sysv when appropriate and compute frame layout for
647         out-of-line stubs.
648         (sp_valid_at, fp_valid_at): New inline functions.
649         (choose_basereg): New function.
650         (choose_baseaddr): Add align parameter, use choose_basereg and modify
651         all callers.
652         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
653         Use align parameter of choose_baseaddr to generated aligned SSE movs
654         when possible.
655         (pro_epilogue_adjust_stack): Modify to track
656         machine_frame_state::sp_realigned.
657         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
658         (ix86_nsaved_sseregs): Likewise.
659         (ix86_emit_save_regs): Likewise.
660         (ix86_emit_save_regs_using_mov): Likewise.
661         (ix86_emit_save_sse_regs_using_mov): Likewise.
662         (get_scratch_register_on_entry): Likewise.
663         (gen_frame_set): New function.
664         (gen_frame_load): Likewise.
665         (gen_frame_store): Likewise.
666         (emit_outlined_ms2sysv_save): Likewise.
667         (emit_outlined_ms2sysv_restore): Likewise.
668         (ix86_expand_prologue): Modify stack re-alignment code and call
669         emit_outlined_ms2sysv_save when appropriate.
670         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
671         parameter rtx_insn *insn, which allows the function to be used to only
672         generate the notes.
673         (ix86_expand_epilogue): Modify validity checks of frame and stack
674         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
675         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
676         * config/i386/predicates.md
677         (save_multiple): New predicate.
678         (restore_multiple): Likewise.
679         * config/i386/sse.md
680         (save_multiple<mode>): New pattern.
681         (save_multiple_realign<mode>): Likewise.
682         (restore_multiple<mode>): Likewise.
683         (restore_multiple_and_return<mode>): Likewise.
684         (restore_multiple_leave_return<mode>): Likewise.
685         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
687 2017-05-14  Julia Koval  <julia.koval@intel.com>
689         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
690         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
691         (__builtin_ia32_xsetbv): New builtins.
692         * config/i386/i386.c (ix86_expand_special_args_builtin):
693         Process new types.
694         (ix86_expand_builtin): Special expand for new intrinsics.
695         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
696         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
697         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
699 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
701         * cfganal.c (inverted_post_order_compute): Change argument type
702         to vec *.
703         * cfganal.h (inverted_post_order_compute): Adjust prototype.
704         * df-core.c (rest_of_handle_df_initialize): Adjust.
705         (rest_of_handle_df_finish): Likewise.
706         (df_analyze_1): Likewise.
707         (df_analyze): Likewise.
708         (loop_inverted_post_order_compute): Change argument to be a vec *.
709         (df_analyze_loop): Adjust.
710         (df_get_n_blocks): Likewise.
711         (df_get_postorder): Likewise.
712         * df.h (struct df_d): Change field to be a vec.
713         * lcm.c (compute_laterin): Adjust.
714         (compute_available): Likewise.
715         * lra-lives.c (lra_create_live_ranges_1): Likewise.
716         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
717         * tree-ssa-pre.c (compute_antic): Likewise.
719 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
721         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
722         (depth_first_search::depth_first_search): Change structure init
723         function to this constructor.
724         (depth_first_search::add_bb): Rename function to this member.
725         (depth_first_search::execute): Likewise.
726         (flow_dfs_compute_reverse_finish): Adjust.
728 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
730         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
731         (longest_simple_path): Likewise.
732         * shrink-wrap.c (spread_components): Likewise.
733         (disqualify_problematic_components): Likewise.
734         (emit_common_heads_for_components): Likewise.
735         (emit_common_tails_for_components): Likewise.
736         (insert_prologue_epilogue_for_components): Likewise.
738 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
740         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
741         auto_sbitmap.
743 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
745         * df-core.c (df_set_blocks): Start using auto_bitmap.
746         (df_compact_blocks): Likewise.
747         * df-problems.c (df_rd_confluence_n): Likewise.
748         * df-scan.c (df_insn_rescan_all): Likewise.
749         (df_process_deferred_rescans): Likewise.
750         (df_update_entry_block_defs): Likewise.
751         (df_update_exit_block_uses): Likewise.
752         (df_entry_block_bitmap_verify): Likewise.
753         (df_exit_block_bitmap_verify): Likewise.
754         (df_scan_verify): Likewise.
755         * lra-constraints.c (lra_constraints): Likewise.
756         (undo_optional_reloads): Likewise.
757         (lra_undo_inheritance): Likewise.
758         * lra-remat.c (calculate_gen_cands): Likewise.
759         (do_remat): Likewise.
760         * lra-spills.c (assign_spill_hard_regs): Likewise.
761         (spill_pseudos): Likewise.
762         * tree-ssa-pre.c (bitmap_set_and): Likewise.
763         (bitmap_set_subtract_values): Likewise.
765 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
767         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
768         management with auto_bitmap.
769         (fix_inter_tick): Likewise.
770         (fix_recovery_deps): Likewise.
771         * ira.c (add_store_equivs): Likewise.
772         (find_moveable_pseudos): Likewise.
773         (split_live_ranges_for_shrink_wrap): Likewise.
774         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
775         (rtx_reuse_manager::seen_def_p): Likewise.
776         (rtx_reuse_manager::set_seen_def): Likewise.
777         * print-rtl.h (class rtx_reuse_manager): Likewise.
779 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
781         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
782         lifetime.
783         (migrate_btr_def): Likewise.
784         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
785         * df-core.c (loop_post_order_compute): Likewise.
786         (loop_inverted_post_order_compute): Likewise.
787         * hsa-common.h: Likewise.
788         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
789         * init-regs.c (initialize_uninitialized_regs): Likewise.
790         * ipa-inline.c (resolve_noninline_speculation): Likewise.
791         (inline_small_functions): Likewise.
792         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
793         * ira.c (combine_and_move_insns): Likewise.
794         (build_insn_chain): Likewise.
795         * loop-invariant.c (find_invariants): Likewise.
796         * lower-subreg.c (propagate_pseudo_copies): Likewise.
797         * predict.c (tree_predict_by_opcode): Likewise.
798         (predict_paths_leading_to): Likewise.
799         (predict_paths_leading_to_edge): Likewise.
800         (estimate_loops_at_level): Likewise.
801         (estimate_loops): Likewise.
802         * shrink-wrap.c (try_shrink_wrapping): Likewise.
803         (spread_components): Likewise.
804         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
805         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
806         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
807         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
808         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
809         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
810         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
811         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
812         (mark_threaded_blocks): Likewise.
813         (thread_through_all_blocks): Likewise.
814         * tree-ssa.c (verify_ssa): Likewise.
815         (execute_update_addresses_taken): Likewise.
816         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
818 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
820         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
821         auto_vec.
822         (post_order_compute): Likewise.
823         (inverted_post_order_compute): Likewise.
824         (pre_and_rev_post_order_compute_fn): Likewise.
826 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
828         * genrecog.c (int_set::int_set): Explicitly construct our
829         auto_vec base class.
830         * vec.h (auto_vec::auto_vec): New constructor.
832 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
834         * bitmap.h (class auto_bitmap): New constructor taking
835         bitmap_obstack * argument.
837 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
839         * bitmap.h (class auto_bitmap): Change type of m_bits to
840         bitmap_head, and adjust ctor / dtor and member operators.
842 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
844         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
845         when returned register mode doesn't match original mode.
847 2017-05-12  Jeff Law  <law@redhat.com>
848             Jakub Jelinek  <jakub@redhat.com>
850         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
851         we look for cc setter after the compare-elim changes.
852         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
853         within the vector to match what compare-elim now expects.
854         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
855         (xorsi3_flags, one_cmplsi2_flags): Likewise.
857         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
858         after the compare-elim changes.
859         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
860         the vector to match what compare-elim now expects.
861         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
862         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
863         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
864         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
865         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
867         * config/visium/visium.c (single_set_and_flags): Fix where
868         we look for cc setter after the compare-elim changes.
869         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
870         with the vector to match what compare-elim now expects.
871         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
872         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
873         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
874         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
875         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
876         (neg<mode>2_insn_set_overflow): Likewise.
878 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
880         PR middle-end/79794
881         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
882         maybe_expand_insn call, set ops[0].target.  If still set after call,
883         set alt_rtl.  Add extra arg to recursive calls.
884         (extract_bit_field): Add alt_rtl argument.  Pass to
885         extract_bit_field.
886         * expmed.h (extract_bit_field): Fix prototype.
887         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
888         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
889         to extract_bit_field_calls.
890         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
891         Pass alt_rtl to extract_bit_field calls.
892         * calls.c (store_unaligned_arguments_into_psuedos)
893         load_register_parameters): Pass extra NULL to extract_bit_field calls.
894         * optabs.c (maybe_legitimize_operand): Clear op->target when call
895         gen_reg_rtx.
896         * optabs.h (struct expand_operand): Add target bitfield.
898 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
900         * compare-elim.c (try_eliminate_compare): Canonicalize
901         operation with embedded compare to
902         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
903          (set (reg) (operation)].
905         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
907 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
909         PR target/80723
910         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
911         cost of adding a carry flag for ADC instruction.
912         [case MINUS]: Ignore the cost of subtracting a carry flag
913         for SBB instruction.
915 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
917         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
918         and x86intrin.h
919         * config/rs6000/bmiintrin.h: New file.
920         * config/rs6000/bmi2intrin.h: New file.
921         * config/rs6000/x86intrin.h: New file.
923 2017-05-12  Jeff Law  <law@redhat.com>
925         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
926         markers.
928 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
930         PR middle-end/80707
931         * tree-cfg.c: Remove cfg edges of unreachable case statements.
933 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
935         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
936         early expansion of vector divide builtins.
937         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
938         builtins identified as having unsigned arguments.
940 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
942         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
943         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
944         expansion of vector logical operations (and, andc, or, xor,
945         nor, orc, nand).
947 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
949         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
950         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
952 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
954         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
955         early GIMPLE expansion of vector multiplies.
957 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
959         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
960         TARGET_HAVE_MOVT conditional.
961         (movt splitter): Likewise.
963 2017-05-12  Richard Biener  <rguenther@suse.de>
965         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
966         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
967         Fold all stmts not inplace.
969 2017-05-12  Richard Biener  <rguenther@suse.de>
971         PR tree-optimization/80713
972         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
973         inserted_exprs bit for not removed stmts.
975 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
977         PR middle-end/69921
978         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
979         parallelized" attribute for parallelized OpenACC kernels.
980         * omp-offload.c (execute_oacc_device_lower): Use it.
982         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
983         Set "oacc kernels" attribute.
984         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
985         parameter.  Adjust all users.
986         (oacc_fn_attrib_kernels_p): Remove function.
987         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
988         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
989         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
990         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
991         assert "oacc kernels" attribute is set.
993 2017-05-11  Carl Love  <cel@us.ibm.com>
995         * config/rs6000/rs6000-c: Add support for built-in functions
996         vector unsigned char vec_popcnt (vector signed char)
997         vector unsigned char vec_popcnt (vector unsigned char)
998         vector unsigned short vec_popcnt (vector signed short)
999         vector unsigned short vec_popcnt (vector unsigned short)
1000         vector unsigned int vec_popcnt (vector signed int)
1001         vector unsigned int vec_popcnt (vector unsigned int)
1002         vector unsigned long long vec_popcnt (vector signed long long)
1003         vector unsigned long long vec_popcnt (vector unsigned long long)
1004         vector signed long long vec_slo (vector signed long long,
1005                                          vector signed char)
1006         vector signed long long vec_slo (vector signed long long,
1007                                          vector unsigned char)
1008         vector unsigned long long vec_slo (vector unsigned long long,
1009                                            vector signed char)
1010         vector unsigned long long vec_slo (vector unsigned long long,
1011                                            vector unsigned char)
1012         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
1013         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
1014         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
1015         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
1016         * doc/extend.texi: Update the built-in documentation file for the
1017         new built-in functions.
1019 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1021         * attribs.h (sorted_attr_string): Move machine independent
1022         functions for target clone support from the i386 port to common
1023         code.  Rename ix86_function_versions to common_function_versions.
1024         Rename make_name to make_unique_name.
1025         (common_function_versions): Likewise.
1026         (make_unique_name): Likewise.
1027         (make_dispatcher_decl): Likewise.
1028         (is_function_default_version): Likewise.
1029         * attribs.c (attr_strcmp): Likewise.
1030         (sorted_attr_string): Likewise.
1031         (common_function_versions): Likewise.
1032         (make_unique_name): Likewise.
1033         (make_dispatcher_decl): Likewise.
1034         (is_function_default_version): Likewise.
1035         * config/i386/i386.c (attr_strcmp): Likewise.
1036         (sorted_attr_string): Likewise.
1037         (ix86_function_versions): Likewise.
1038         (make_name): Likewise.
1039         (make_dispatcher_decl): Likewise.
1040         (is_function_default_version): Likewise.
1041         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
1043 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1045         PR target/80695
1046         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1047         Account for direct move costs for vec_construct of integer
1048         vectors.
1050 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
1052         PR target/80706
1053         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
1054         (UNSPEC_STX_ATOMIC): Ditto.
1055         (loaddi_via_sse): New insn.
1056         (storedi_via_sse): Ditto.
1057         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
1058         Update corresponding peephole2 patterns.
1059         (atomic_storedi_fpu): Ditto.
1061 2017-05-11  Julia Koval  <julia.koval@intel.com>
1063         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
1064         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
1065         New intrinsics.
1066         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
1067         (__builtin_ia32_rsqrt14ss_mask): New builtins.
1068         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
1070 2017-05-11  Nathan Sidwell  <nathan@acm.org>
1072         * graphite-poly.c: Include dumpfile.h.
1074         * dumpfle.h (dump_function): Declare here ...
1075         * tree-dump.h (dump_function): ... not here.
1076         * dumpfile.c: #include tree-cfg.h.
1077         (dump_function): Move here from ...
1078         * tree-dump.c (dump_function): ... here.
1079         * gimplify.c: #include splay-tree.h, not tree-dump.h.
1080         * graphite-poly.c: Don't include tree-dump.h.
1081         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
1082         * print-tree.c: Likewise.
1083         * stor-layout.c: Likewise.
1084         * tree-nested.c: Likewise.
1086         * dumpfile.c (dump_start): Use TDF_FLAGS.
1087         (dump_enable_all): Fix TDF_KIND check thinko.
1089 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1091         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1092         array entries to represent two legal parameterizations of the
1093         overloaded __builtin_cmpb function, as represented by the
1094         P6_OV_BUILTIN_CMPB constant.
1095         (altivec_resolve_overloaded_builtin): Add special case handling
1096         for the __builtin_cmpb function, as represented by the
1097         P6_OV_BUILTIN_CMPB constant.
1098         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
1099         (BU_P6_64BIT_2): New macro.
1100         (BU_P6_OVERLOAD_2): New macro
1101         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
1102         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
1103         (CMPB): Add overload support to represent both 32-bit and 64-bit
1104         compare-bytes function.
1105         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1106         support for TARGET_CMPB.
1107         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
1108         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1109         documentation of the __builtin_cmpb overloaded built-in function.
1111 2017-05-11  Richard Biener  <rguenther@suse.de>
1113         PR tree-optimization/80705
1114         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
1115         bases are not vectorizable.
1117 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1119         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
1120         when counting register pressure.
1122 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1124         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
1125         (iv_ca_more_deps): Renamed to ...
1126         (iv_ca_compare_deps): ... this.
1127         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
1129 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1131         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
1132         to ...
1133         (determine_group_iv_costs): ... here.
1134         (find_inv_vars_cb): Record inv var if it's not recorded before.
1136 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1138         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
1139         (get_shiftadd_cost): Ditto.
1141 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1143         * tree-ssa-address.c: Include header file.
1144         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
1145         address.
1146         (add_to_parts): Refactor.
1147         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
1148         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
1149         in new order.
1151 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1153         PR tree-optimization/53090
1154         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
1155         COMP_IV_EXPR_2.
1156         (extract_cond_operands): Detect condition with IV on both sides
1157         and return COMP_IV_EXPR_2.
1158         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
1159         (rewrite_use_compare): Simplify by removing call to function
1160         extract_cond_operands.
1162 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1164         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
1165         (extract_cond_operands): Detect condition comparing against non-
1166         invariant bound and return appropriate enum value.
1167         (find_interesting_uses_cond): Update use of extract_cond_operands.
1168         Handle its return value accordingly.
1169         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
1171 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1173         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
1174         nonlinear iv_use computation in loop invariant sensitive way.
1176 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1178         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
1179         (find_iv_candidates): Call relate_compare_use_with_all_cands.
1181 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1183         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
1184         (dump_cand): Support iv_cand.inv_exprs.
1185         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
1186         for candidates.
1187         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
1188         iv_cand.inv_exprs.
1190 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1192         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
1193         from ...
1194         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
1195         as local function.  Include necessary header files.
1196         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
1198 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1200         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
1202 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1204         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
1205         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
1206         RSHIFT_EXPR and BIT_NOT_EXPR.
1208 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1210         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
1211         (adjust_setup_cost): New parameter supporting round up adjustment.
1212         (struct address_cost_data): Delete.
1213         (force_expr_to_var_cost): Don't bound cost with spill_cost.
1214         (split_address_cost, ptr_difference_cost): Delete.
1215         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
1216         (struct ainc_cost_data): New struct.
1217         (get_address_cost_ainc): New function.
1218         (get_address_cost, get_computation_cost): Reimplement.
1219         (determine_group_iv_cost_address): Record inv_expr for all uses of
1220         a group.
1221         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
1222         (iv_ca_has_deps): Reimplemented to ...
1223         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
1224         than OLD_CP.
1225         (iv_ca_extend): Call iv_ca_more_deps.
1227 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1229         * tree-ssa-address.c (struct mem_address): Move to header file.
1230         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
1231         * tree-ssa-address.h (struct mem_address): Move from C file.
1232         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
1234 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1236         * tree-affine.h (aff_combination_type): New interface.
1237         (aff_combination_zero_p): Remove static.
1238         (aff_combination_const_p): New interface.
1239         (aff_combination_singleton_var_p): New interfaces.
1241 2017-05-11  Richard Biener  <rguenther@suse.de>
1243         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1244         Skip unreachable blocks and destinations.
1245         (eliminate): Move stmt removal and fixup ...
1246         (fini_eliminate): ... here.  Skip inserted exprs.
1247         (pass_pre::execute): Move fini_pre after fini_eliminate.
1248         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
1249         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
1250         PRE to get rid of dead code that has invalid SSA form and
1251         split critical edges again.
1253 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1255         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1257 2017-05-11  Richard Biener  <rguenther@suse.de>
1259         * passes.c (execute_function_todo): Verify loops if they are
1260         said to be up-to-date.
1261         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
1262         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
1264 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
1266         PR target/80090
1267         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
1268         handle calling assemble_external ourself.
1270         PR target/79027
1271         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
1272         modes with zero size.  Enhance comment.
1274 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1276         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
1277         built-ins for vec_xl and vec_xst with short and char pointer
1278         arguments.
1280 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
1282         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
1283         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
1284         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
1285         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
1286         (_mm_maskz_min_round_ss): New intrinsics.
1287         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
1288         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
1289         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
1290         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
1291         (__builtin_ia32_minss_mask_round): New builtins.
1292         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1293         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1294         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
1295         Rename to ...
1296         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
1297         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
1298         Change to ...
1299         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
1300         ... this.
1302 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
1304         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
1305         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
1306         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
1307         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
1308         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
1309         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
1310         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
1311         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1312         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
1313         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
1314         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
1315         (__builtin_ia32_mulss_mask_round): New builtins.
1316         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1317         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1318         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
1319         Rename to ...
1320         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
1321         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
1322         Change to ...
1323         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
1324         ... this.
1326 2017-05-10  Julia Koval  <julia.koval@intel.com>
1328         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
1329         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
1330         (_mm256_setr_m128i): New intrinsics.
1332 2017-05-10  Julia Koval  <julia.koval@intel.com>
1334         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
1335         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
1336         (_mm_maskz_rcp14_ss): New intrinsics.
1337         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
1338         (__builtin_ia32_rcp14ss_mask): New builtins.
1339         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
1341 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
1343         PR tree-optimization/51513
1344         * tree-cfg.c (gimple_seq_unreachable_p): New function.
1345         (assert_unreachable_fallthru_edge_p): Use it.
1346         (group_case_labels_stmt): Likewise.
1347         * tree-cfg.h: Prototype it.
1348         * stmt.c: Include cfghooks.h and tree-cfg.h.
1349         (emit_case_dispatch_table) <gap_label>: New local variable.
1350         Use it to fill dispatch table gaps.
1351         Test for default_label before updating probabilities.
1352         (expand_case) <default_label>: Remove unneeded initialization.
1353         Test for unreachable default case statement and remove its edge.
1354         Set default_label accordingly.
1355         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
1357 2017-05-10  Carl Love  <cel@us.ibm.com>
1359         * config/rs6000/rs6000-c: Add support for built-in functions
1360         vector signed char        vec_neg (vector signed char)
1361         vector signed short int   vec_neg (vector short int)
1362         vector signed int         vec_neg (vector signed int)
1363         vector signed long long   vec_neg (vector signed long long)
1364         vector float              vec_neg (vector float)
1365         vector double             vec_neg (vector double)
1366         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
1367         overload.
1368         * config/rs6000/altivec.h: Add define for vec_neg
1369         * doc/extend.texi: Update the built-in documentation for the
1370         new built-in functions.
1372 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1374         PR tree-optimization/77644
1375         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
1377 2017-05-10  Nathan Sidwell  <nathan@acm.org>
1379         * dumpfile.h (TDI_lang_all): New.
1380         (TDF_KIND): New. Renumber others
1381         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
1382         than bits.
1383         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
1384         lang-all.
1385         (get_dump_file_name): Adjust suffix generation.
1386         (dump_enable_all): Use TDF_KIND.
1387         * doc/invoke.texi (-fdump-lang-all): Document.
1389         * dumpfile.h: Tabify.
1391 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
1393         PR target/80671
1394         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
1395         Move member access before delete.
1397 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
1399         * tree-inline.c (expand_call_inline): Split block at stmt
1400         before the call.
1402 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1404         PR target/68163
1405         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
1406         are now unused after splitting mov{sf,sd}_hardfloat.
1407         (f32_lr2): Likewise.
1408         (f32_lm): Likewise.
1409         (f32_lm2): Likewise.
1410         (f32_li): Likewise.
1411         (f32_li2): Likewise.
1412         (f32_lv): Likewise.
1413         (f32_sr): Likewise.
1414         (f32_sr2): Likewise.
1415         (f32_sm): Likewise.
1416         (f32_sm2): Likewise.
1417         (f32_si): Likewise.
1418         (f32_si2): Likewise.
1419         (f32_sv): Likewise.
1420         (f32_dm): Likewise.
1421         (f32_vsx): Likewise.
1422         (f32_av): Likewise.
1423         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
1424         For movsf, order stores so the VSX stores occur before the GPR
1425         store which encourages the register allocator to use a traditional
1426         FPR instead of a GPR.  For movsd, order the stores so that the GPR
1427         store comes before the VSX stores to allow the power6 to work.
1428         This is due to the power6 not having a 32-bit integer store
1429         instruction from a FPR.
1430         (movsf_hardfloat): Likewise.
1431         (movsd_hardfloat): Likewise.
1433 2017-05-09  Martin Sebor  <msebor@redhat.com>
1435         PR translation/80280
1436         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
1437         added in r247778.
1439         PR translation/80280
1440         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
1441         data member added in r247778.
1442         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
1444 2017-05-09  Nathan Sidwell  <nathan@acm.org>
1446         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
1448         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
1449         typedefs.
1451 2017-05-09  Marek Polacek  <polacek@redhat.com>
1453         * doc/invoke.texi: Fix typo.
1455 2017-05-09  Richard Biener  <rguenther@suse.de>
1457         * tree-vrp.c (vrp_val_is_max): Adjust comment.
1458         (vrp_val_is_min): Likewise.
1459         (set_value_range_to_value): Likewise.
1460         (set_value_range_to_nonnegative): Likewise.
1461         (gimple_assign_nonzero_p): Likewise.
1462         (gimple_stmt_nonzero_p): Likewise.
1463         (vrp_int_const_binop): Likewise.  Remove unreachable case.
1464         (adjust_range_with_scev): Adjust comments.
1465         (compare_range_with_value): Likewise.
1466         (extract_range_from_phi_node): Likewise.
1467         (test_for_singularity): Likewise.
1469 2017-05-09  Richard Biener  <rguenther@suse.de>
1471         * tree-vrp.c (get_single_symbol): Add assert that we don't
1472         get overflowed constants as invariant part.
1473         (compare_values_warnv): Add comment before the TREE_NO_WARNING
1474         checks.  Use wi::cmp instead of recursing for integer constants.
1475         (compare_values): Just ignore whether we assumed undefined
1476         overflow instead of failing the compare.
1477         (extract_range_for_var_from_comparison_expr): Add comment before the
1478         TREE_NO_WARNING sets.
1479         (test_for_singularity): Likewise.
1480         (extract_range_from_comparison): Do not disable optimization
1481         when we assumed undefined overflow.
1482         (extract_range_basic): Remove init of unused var.
1484 2017-05-09  Richard Biener  <rguenther@suse.de>
1486         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
1487         (extract_range_from_multiplicative_op_1): Adjust.
1488         (extract_range_from_binary_expr_1): Use int_const_binop.
1490 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1492         PR target/80101
1493         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
1494         rs6000_store_data_bypass_p in seven define_bypass directives and
1495         in several comments.
1496         * config/rs6000/rs6000-protos.h: Add prototype for
1497         rs6000_store_data_bypass_p function.
1498         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
1499         function implements slightly different (rs6000-specific) semantics
1500         than store_data_bypass_p, returning false rather than aborting
1501         with assertion error when arguments do not satisfy the
1502         requirements of store data bypass.
1503         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
1504         rs6000_store_data_bypass_p.
1506 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
1508         * config/xtensa/xtensa-protos.h
1509         (xtensa_initial_elimination_offset): New declaration.
1510         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1511         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
1512         macro definition, add case for FRAME_POINTER_REGNUM when
1513         FRAME_GROWS_DOWNWARD.
1514         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
1515         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
1516         xtensa_initial_elimination_offset.
1518 2017-05-08  Nathan Sidwell  <nathan@acm.org>
1520         * doc/invoke.texi: Alphabetize -fdump options.
1522 2017-05-08  Martin Sebor  <msebor@redhat.com>
1524         PR translation/80280
1525         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
1527 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1529         * target.def (compute_frame_layout): New optional target hook.
1530         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
1531         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
1532         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
1533         target hook.
1534         * reload1.c (verify_initial_elim_offsets): Likewise.
1535         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
1536         (use_simple_return_p): Call arm_compute_frame_layout if needed.
1537         (arm_get_frame_offsets): Split up into this ...
1538         (arm_compute_frame_layout): ... and this function.
1540 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
1542         * config/aarch64/constraints.md (Usa): New constraint.
1543         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
1545 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1547         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
1548         with_multilib_list after it has been checked.
1550 2017-05-08  Richard Biener  <rguenther@suse.de>
1552         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
1553         (bitmap_set_subtract_values): Likewise.
1555 2017-05-08  Richard Biener  <rguenther@suse.de>
1557         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
1558         (gimple_assign_nonzero): ... this and remove strict_overflow_p
1559         argument.
1560         (gimple_stmt_nonzero_warnv_p): Rename to ...
1561         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
1562         argument.
1563         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
1564         (extract_range_basic): Adjust, do not disable propagation on
1565         strict overflow sensitive simplification.
1566         (vrp_visit_cond_stmt): Likewise.
1568 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
1570         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
1571         body size unconditionally.
1573 2017-05-07  Jeff Law  <law@redhat.com>
1575         Revert:
1576         2017-05-06  Jeff Law  <law@redhat.com>
1577         PR tree-optimization/78496
1578         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1579         code.
1581         PR tree-optimization/78496
1582         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1583         (simplify_stmt_using_ranges): Call it.
1584         (vrp_dom_walker::before_dom_children): Extract equivalences
1585         from an ASSERT_EXPR with an equality comparison against a
1586         constant.
1588 2017-05-06  Jeff Law  <law@redhat.com>
1590         PR tree-optimization/78496
1591         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1592         code.
1594         PR tree-optimization/78496
1595         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1596         (simplify_stmt_using_ranges): Call it.
1597         (vrp_dom_walker::before_dom_children): Extract equivalences
1598         from an ASSERT_EXPR with an equality comparison against a
1599         constant.
1601 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
1603         * lra-constraints.c (lra_copy_reg_equiv): New function.
1604         (split_reg): Use it to copy equivalence information from the
1605         original register to the spill register.
1607 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
1609         PR rtl-optimization/75964
1610         * simplify-rtx.c (simplify_const_relational_operation): Remove
1611         invalid handling of comparisons of integer ABS.
1613 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
1615         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
1616         initialize to zero.
1617         (init_regs): Remove declaration.
1618         (function_arg_advance_32): Initialize error_p as boolean variable.
1620 2017-05-05  Nathan Sidwell  <nathan@acm.org>
1622         * store-motion.c (remove_reachable_equiv_notes): Reformat long
1623         lines.  Use for (;;).
1625 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1627         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
1628         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
1629         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
1630         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
1631         VF=2 that require versioning.
1633 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1635         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
1636         int.
1638 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1640         * diagnostic.h (diagnostic_override_option_index): Convert from
1641         macro to inline function.
1643 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1645         * diagnostic.c (last_module_changed_p): New function.
1646         (set_last_module): New function.
1647         (diagnostic_report_current_module): Convert macro usage to
1648         the above functions.
1649         * diagnostic.h (diagnostic_context::last_module): Strengthen
1650         from const line_map * to const line_map_ordinary *.
1651         (diagnostic_last_module_changed): Delete macro.
1652         (diagnostic_set_last_module): Delete macro.
1654 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1656         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
1657         with diagnostic_report_diagnostic.
1658         (diagnostic_n_impl_richloc): Likewise.
1659         * diagnostic.h (report_diagnostic): Delete macro.
1660         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
1661         with diagnostic_report_diagnostic.
1662         * substring-locations.c (format_warning_va): Likewise.
1664 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1666         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
1667         save/restor of format_spec.  Move option-printing code to...
1668         (print_option_information): ...this new function, and
1669         reimplement by simply printing to the pretty_printer,
1670         rather than appending to the format string.
1672 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1674         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
1675         handling logic into...
1676         (update_effective_level_from_pragmas): ...this new function.
1678 2017-05-04  Andrew Waterman  <andrew@sifive.com>
1680         * config/riscv/riscv.opt (mstrict-align): New option.
1681         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
1682         (SLOW_UNALIGNED_ACCESS): Define.
1683         (riscv_slow_unaligned_access): Declare.
1684         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
1685         field.
1686         (riscv_slow_unaligned_access): New variable.
1687         (rocket_tune_info): Set slow_unaligned_access to true.
1688         (optimize_size_tune_info): Set slow_unaligned_access to false.
1689         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
1690         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
1691         (riscv_option_override): Set riscv_slow_unaligned_access.
1692         * doc/invoke.texi: Add -mstrict-align to RISC-V.
1694 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
1696         * config/riscv/riscv.md: Unify indentation.
1698 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1700         PR target/79038
1701         PR target/79202
1702         PR target/79203
1703         * config/rs6000/rs6000.md (u code attribute): Add FIX and
1704         UNSIGNED_FIX.
1705         (extendsi<mode>2): Add support for doing sign extension via
1706         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
1707         don't have ISA 3.0 instructions.
1708         (extendsi<mode>2 splitter): Likewise.
1709         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
1710         generate the normal insns since SImode can now go in vector
1711         registers.  Disallow the special UNSPECs needed for previous
1712         machines to hide SImode being used.  Add new insns
1713         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
1714         (fix_trunc<mode>si2_stfiwx): Likewise.
1715         (fix_trunc<mode>si2_internal): Likewise.
1716         (fixuns_trunc<mode>si2): Likewise.
1717         (fixuns_trunc<mode>si2_stfiwx): Likewise.
1718         (fctiw<u>z_<mode>_smallint): Likewise.
1719         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
1720         of floating point to 32-bit integer from doing a direct move to
1721         the GPR registers to do a store.
1722         (fctiwz_<mode>): Break long line.
1724 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
1726         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
1727         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
1728         (addr_list, addr_offset_valid_p): New.
1729         (split_address_groups): Check offset validity with above function.
1730         (gt-tree-ssa-loop-ivopts.h): Include header file.
1732 2017-05-05  Nathan Sidwell  <nathan@acm.org>
1734         * config.gcc (arm*-*-*): Add missing 'fi'.
1736 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
1738         * doc/invoke.texi (-fopt-info): Explicitly say order of options
1739         included in -fopt-info does not matter.
1740         * doc/optinfo.texi (-fopt-info): Fix description of default
1741         behavour. Explicitly say order of options included in -fopt-info
1742         does not matter.
1744 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1746         * config.gcc: Allow combinations of aprofile and rmprofile values for
1747         --with-multilib-list.
1748         * config/arm/t-multilib: New file.
1749         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
1750         variables.  Remove setting of ISA and floating-point ABI in
1751         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
1752         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
1753         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
1754         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
1755         CPU options.
1756         * config/arm/t-rmprofile: Likewise except for the matches changes.
1757         * doc/install.texi (--with-multilib-list): Document the combination of
1758         aprofile and rmprofile values and warn about pitfalls in doing that.
1760 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
1762         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
1763         (movdi_aarch64): Likewise.
1765 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
1767         PR tree-optimization/80632
1768         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
1769         field.
1770         (build_arrays): Initialize it for virtual phis.
1771         (fix_phi_nodes): Use it for virtual phis.
1773         PR tree-optimization/80558
1774         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
1775         [x, y] op z into [x op, y op z] for op & or | if conditions
1776         are met.
1778 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1779             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1781         PR target/71607
1782         * config/arm/arm.md (use_literal_pool): Remove.
1783         (64-bit immediate split): No longer takes cost into consideration
1784         if arm_disable_literal_pool is enabled.
1785         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
1786         used when arm_disable_literal_pool is enabled.
1787         (arm_max_const_double_inline_cost): Remove use of
1788         arm_disable_literal_pool.
1789         (push_minipool_fix): Add assert.
1790         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
1791         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
1792         (no_literal_pool_sf_immediate): New.
1794 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1796         PR tree-optimization/80613
1797         * tree-ssa-dce.c (propagate_necessity): Remove cases for
1798         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
1800 2017-05-05  Richard Biener  <rguenther@suse.de>
1802         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
1804 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
1806         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
1807         of this flag from insn conditions due to removal from r247495.
1809 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
1811         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
1812         New function.
1813         (arm_early_store_addr_dep_ptr): Likewise.
1814         * config/arm/aarch-common-protos.h
1815         (arm_early_load_addr_dep_ptr): Add prototype.
1816         (arm_early_store_addr_dep_ptr): Likewise.
1817         * config/arm/cortex-a53.md: Add new bypasses.
1819 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
1821         * tree.c (next_type_uid): Change type to unsigned.
1822         (type_hash_canon): Decrement back next_type_uid if
1823         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
1824         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
1825         if possible.
1827 2017-05-04  Martin Sebor  <msebor@redhat.com>
1829         * builtins.c: Fix a trivial typo in a comment.
1831         PR middle-end/79234
1832         * builtins.c (check_sizes): Adjust to handle reading past the end.
1833         Avoid printing excessive upper bound of ranges.  Use %E to print
1834         tree nodes instead of converting them to %wu.
1835         (expand_builtin_memchr): New function.
1836         (compute_dest_size): Rename...
1837         (compute_objsize): ...to this.
1838         (expand_builtin_memcpy): Adjust.
1839         (expand_builtin_mempcpy): Adjust.
1840         (expand_builtin_strcat): Adjust.
1841         (expand_builtin_strcpy): Adjust.
1842         (check_strncat_sizes): Adjust.
1843         (expand_builtin_strncat): Adjust.
1844         (expand_builtin_strncpy): Adjust and simplify.
1845         (expand_builtin_memset): Adjust.
1846         (expand_builtin_bzero): Adjust.
1847         (expand_builtin_memcmp): Adjust.
1848         (expand_builtin): Handle memcmp.
1849         (maybe_emit_chk_warning): Check strncat just once.
1851 2017-05-04  Martin Sebor  <msebor@redhat.com>
1853         PR preprocessor/79214
1854         PR middle-end/79222
1855         PR middle-end/79223
1856         * builtins.c (check_sizes): Add inlining context and issue
1857         warnings even when -Wno-system-headers is set.
1858         (check_strncat_sizes): Same.
1859         (expand_builtin_strncat): Same.
1860         (expand_builtin_memmove): New function.
1861         (expand_builtin_stpncpy): Same.
1862         (expand_builtin): Handle memmove and stpncpy.
1864 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
1866         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
1867         which is not used any more.
1869 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
1871         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
1873 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
1875         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
1876         (cortexa53_tunings): Likewise.
1877         (cortexa57_tunings): Likewise.
1878         (cortexa72_tunings): Likewise.
1879         (cortexa73_tunings): Likewise.
1881 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
1883         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
1884         Set loop alignment to 8.
1886 2017-05-04  Martin Sebor  <msebor@redhat.com>
1888         PR translation/80280
1889         * builtins.c (expand_builtin_object_size): Add missing quoting to
1890         %D and like directives.
1891         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
1892         (hsa_type_for_tree_type): Same.
1893         (verify_function_arguments): Same.
1894         * symtab.c (symbol_table::change_decl_assembler_name): Same.
1895         * varasm.c (get_section): Same.
1896         (mark_weak): Same.
1898 2017-05-04  Martin Sebor  <msebor@redhat.com>
1900         PR translation/80280
1901         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
1903 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
1905         * config/aarch64/aarch64.c (generic_addrcost_table):
1906         Change HI/TI mode setting.
1908 2017-05-04  Martin Jambor  <mjambor@suse.cz>
1910         PR tree-optimization/80622
1911         * tree-sra.c (comes_initialized_p): New function.
1912         (build_accesses_from_assign): Only set write lazily when
1913         comes_initialized_p is false.
1914         (analyze_access_subtree): Use comes_initialized_p.
1915         (propagate_subaccesses_across_link): Assert !comes_initialized_p
1916         instead of testing for PARM_DECL.
1918 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1920         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
1921         constraint on operand 0 to allow more general addressing modes.
1922         Adjust output template.
1923         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
1924         New function.
1925         * config/aarch64/aarch64-protos.h
1926         (aarch64_address_valid_for_prefetch_p): Declare prototype.
1927         * config/aarch64/constraints.md (Dp): New address constraint.
1928         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
1929         predicate.
1931 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
1933         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
1934         update use of estimate_ipcp_clone_size_and_time.
1935         (estimate_local_effects): Update use of
1936         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
1937         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
1938         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
1939         Return nonspecialized time.
1941 2017-05-04  Richard Biener  <rguenther@suse.de>
1943         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
1944         for the last VUSE which def dominates the PHI.  Directly call
1945         maybe_skip_until.
1946         (get_continuation_for_phi_1): Remove.
1948 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1950         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
1951         to explain the use of truncating division.  Cap the number of
1952         iterations to the maximum given by nb_iterations_upper_bound,
1953         if defined.
1955 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1957         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
1958         * configure: Regenerate.
1959         * config.in: Regenerate.
1960         * config/i386/driver-mingw32.c: new file.
1961         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
1962         * config.host: Link driver-mingw32.o on MinGW host.
1963         * doc/install.texi: Document new --enable-mingw-wildcard configure
1964         option.
1966 2017-05-04  Marek Polacek  <polacek@redhat.com>
1968         PR tree-optimization/80612
1969         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
1971 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1972             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
1974         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
1975         (movt splitter): Likewise.
1976         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
1977         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
1978         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
1979         block for Thumb-1 with MOVT.
1980         (thumb2_legitimate_address_p): Move code block ...
1981         (can_avoid_literal_pool_for_label_p): ... into this new function.
1982         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
1983         literal pool.
1984         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
1985         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
1986         "M-profile targets with the MOVT instruction".
1988 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1990         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
1991         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
1992         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
1994 2017-05-04  Martin Liska  <mliska@suse.cz>
1996         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
1997         variable cond_code.
1999 2017-05-04  Richard Biener  <rguenther@suse.de>
2001         * tree.c (array_at_struct_end_p): Handle arrays at struct
2002         end with flexarrays more conservatively.  Refactor and treat
2003         arrays of arrays or aggregates more strict.  Fix
2004         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
2005         * tree.c (array_at_struct_end_p): Adjust prototype.
2006         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
2007         * gimple-fold.c (get_range_strlen): Likewise.
2008         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
2010 2017-05-04  Richard Biener  <rguenther@suse.de>
2012         PR tree-optimization/31130
2013         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
2014         false.
2015         (supports_overflow_infinity): Likewise.
2016         (is_negative_overflow_infinity): Likewise.
2017         (is_positive_overflow_infinity): Likewise.
2018         (is_overflow_infinity): Likewise.
2019         (stmt_overflow_infinity): Likewise.
2020         (overflow_infinity_range_p): Likewise.
2021         (usable_range_p): Remove as always returning true.
2022         (make_overflow_infinity): Remove.
2023         (negative_overflow_infinity): Likewise.
2024         (positive_overflow_infinity): Likewise.
2025         (avoid_overflow_infinity): Likewise.
2026         (set_value_range): Adjust accordingly.
2027         (set_value_range_to_nonnegative): Likewise, remove now unused
2028         overflow_infinity arg.
2029         (vrp_operand_equal_p): Adjust.
2030         (update_value_range): Likewise.
2031         (range_int_cst_singleton_p): Likewise.
2032         (operand_less_p): Likewise.
2033         (compare_values_warnv): Likewise.
2034         (extract_range_for_var_from_comparison_expr): Likewise.
2035         (vrp_int_const_binop): Likewise.
2036         (zero_nonzero_bits_from_vr): Likewise.
2037         (extract_range_from_multiplicative_op_1): Likewise.
2038         (extract_range_from_binary_expr_1): Likewise.
2039         (extract_range_from_unary_expr): Likewise.
2040         (extract_range_from_comparison): Likewise.
2041         (extract_range_basic): Likewise.
2042         (adjust_range_with_scev): Likewise.
2043         (compare_ranges): Likewise.
2044         (compare_range_with_value): Likewise.
2045         (dump_value_range): Likewise.
2046         (test_for_singularity): Likewise, remove strict_overflow_p parameter
2047         never used.
2048         (simplify_cond_using_ranges): Adjust.
2050 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2052         * brig-builtins.def: Added a builtin for class_f64.
2053         * builtin-types.def: Added a builtin type needed by class_f64.
2055 2017-05-03  Jason Merrill  <jason@redhat.com>
2057         * timevar.def: Add TV_CONSTEXPR.
2059 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2061         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
2063 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2065         * ipa-prop.c (ipa_update_after_lto_read): Removed.
2066         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
2067         * ipa-cp.c (ipcp_propagate_stage): Do not call
2068         ipa_update_after_lto_read.
2069         * ipa-inline.c (ipa_inline): Likewise.
2071 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2073         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
2074         tag.  Added a default constructor and a destructor.
2075         (ipa_edge_args_sum_t): New class;
2076         (ipa_edge_args_sum): Declare.
2077         (ipa_edge_args_vector): Remove declaration.
2078         (IPA_EDGE_REF): Use ipa_edge_args_sum.
2079         (ipa_free_edge_args_substructures): Remove declaration.
2080         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
2081         (ipa_edge_args_info_available_for_edge_p): Likewise.
2082         * ipa-prop.c (ipa_edge_args_vector): Removed.
2083         (edge_removal_hook_holder): Likewise.
2084         (edge_duplication_hook_holder): Likewise.
2085         (ipa_edge_args_sum): New variable.
2086         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
2087         ipa_edge_args_vector.
2088         (ipa_free_edge_args_substructures): Likewise.
2089         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
2090         ipa_edge_args_vector.
2091         (ipa_edge_removal_hook): Turned into method
2092         ipa_edge_args_sum_t::remove.
2093         (ipa_edge_duplication_hook): Turned into method
2094         ipa_edge_args_sum_t::duplicate.
2095         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
2096         registering edge hooks.
2097         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
2098         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
2099         ipa_edge_args_sum instead of ipa_edge_args_vector.
2100         * ipa-profile.c (ipa_profile): Likewise.
2102 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2104         * symbol-summary.h (function_summary): New method exists.
2105         (function_summary::symtab_removal): Deallocate through release.
2106         (call_summary): New class.
2107         (gt_ggc_mx): New overload.
2108         (gt_pch_nx): Likewise.
2109         (gt_pch_nx): Likewise.
2111 2017-05-03  Jeff Law  <law@redhat.com>
2113         PR tree-optimization/78496
2114         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
2115         from simplify_cond_using_ranges.  Split off code to walk
2116         backwards through casts into ...
2117         (simplify_cond_using_ranges_2): New function.
2118         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
2119         (execute_vrp): After identifying jump threads, call
2120         simplify_cond_using_ranges_2.
2122 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
2124         PR bootstrap/80609
2125         * ipa-inline.h (inline_summary): Add ctor.
2126         (create_ggc): Do not use ggc_cleared_alloc.
2128 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
2129             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2131         * gcc.c (handle_braces): Support escaping in switch matching
2132         text.
2133         * doc/invoke.texi (Spec Files): Document it.
2134         Remove superfluous @code markup in items.
2136 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2138         * diagnostic-show-locus.c (struct column_range): New struct.
2139         (get_affected_columns): New function.
2140         (get_printed_columns): New function.
2141         (struct correction): New struct.
2142         (correction::ensure_capacity): New function.
2143         (correction::ensure_terminated): New function.
2144         (struct line_corrections): New struct.
2145         (line_corrections::~line_corrections): New dtor.
2146         (line_corrections::add_hint): New function.
2147         (layout::print_trailing_fixits): Reimplement in terms of the new
2148         classes.
2149         (selftest::test_overlapped_fixit_printing): New function.
2150         (selftest::diagnostic_show_locus_c_tests): Call it.
2152 2017-05-03  Nathan Sidwell  <nathan@acm.org>
2154         Canonicalize canonical type hashing
2155         * tree.h (type_hash_canon_hash): Declare.
2156         * tree.c (type_hash_list, attribute_hash_list): Move into
2157         type_hash_canon_hash.
2158         (build_type_attribute_qual_variant): Break out hash code calc into
2159         type_hash_canon_hash.
2160         (type_hash_canon_hash): New.  Generic type hash computation.
2161         (build_range_type_1, build_array_type_1, build_function_type,
2162         build_method_type_directly, build_offset_type, build_complex_type,
2163         make_vector_type): Call it.
2165 2017-05-03  Richard Biener  <rguenther@suse.de>
2167         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2168         When all DRs have unknown misaligned do not always peel
2169         when there is a store but apply the same costing model as if
2170         there were only loads.
2172 2017-05-03  Richard Biener  <rguenther@suse.de>
2174         Revert
2175         PR tree-optimization/80492
2176         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
2177         compare_base_decls returning dont-know properly.
2179 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2181         * config/arm/iterators.md (CCSI): New mode iterator.
2182         (arch): New mode attribute.
2183         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
2184         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
2185         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
2186         code iterator for success result mode.
2187         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
2188         the corresponding new insn generators.
2190 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
2192         Revert r247509
2193         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2194         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2196 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2198         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
2199         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
2200         (DDR_A): Wrap DDR argument in brackets.
2201         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
2202         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
2203         (DDR_REVERSED_P): Likewise.
2205 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
2207         PR tree-optimization/79472
2208         * tree-switch-conversion.c (struct switch_conv_info): Add
2209         contiguous_range and default_case_nonstandard fields.
2210         (collect_switch_conv_info): Compute contiguous_range and
2211         default_case_nonstandard fields, don't clear final_bb if
2212         contiguous_range and only the default case doesn't have the required
2213         structure.
2214         (check_all_empty_except_final): Set default_case_nonstandard instead
2215         of failing if contiguous_range and the default case doesn't have empty
2216         block.
2217         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
2218         and only the default case doesn't have the required constants.  Skip
2219         virtual phis.
2220         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
2221         if default_case_nonstandard.
2222         (build_constructors): Build constant 1 just once.  Assert that default
2223         values aren't inserted in between cases if contiguous_range.  Skip
2224         virtual phis.
2225         (build_arrays): Skip virtual phis.
2226         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
2227         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
2228         Handle virtual phis.
2229         (gen_inbound_check): Handle default_case_nonstandard case.
2230         (process_switch): Adjust check_final_bb caller.  Call
2231         gather_default_values with the first non-default case instead of
2232         default case if default_case_nonstandard.
2234 2017-05-02  Nathan Sidwell  <nathan@acm.org>
2236         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
2237         check.  Fix formatting.
2239 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
2241         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
2242         errors when comparing specialized and unspecialized times.
2244 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
2246         * diagnostic-show-locus.c
2247         (layout::should_print_annotation_line_p): Make private.
2248         (layout::print_annotation_line): Make private.
2249         (layout::annotation_line_showed_range_p): Make private.
2250         (layout::show_ruler): Make private.
2251         (layout::print_source_line): Make private.  Pass in line and
2252         line_width, rather than calling location_get_source_line.  Drop
2253         returned value.
2254         (layout::print_leading_fixits): New method.
2255         (layout::print_any_fixits): Rename to...
2256         (layout::print_trailing_fixits): ...this, and make private.
2257         Don't print newline fixits.
2258         (diagnostic_show_locus): Move logic for printing one row into...
2259         (layout::print_line): ...this new function.  Move the
2260         location_get_source_line call and error-handling from
2261         print_source_line to here.  Call print_leading_fixits, and rename
2262         print_any_fixits to print_trailing_fixits.
2263         (selftest::test_fixit_insert_containing_newline): Update now that
2264         newlines are partially supported.
2265         (selftest::test_fixit_insert_containing_newline_2): New test.
2266         (selftest::test_fixit_replace_containing_newline): Update comments.
2267         (selftest::diagnostic_show_locus_c_tests): Call the new test.
2268         * edit-context.c (class added_line): New class.
2269         (class edited_line): Describe newline handling in comment.
2270         (edited_line::actually_edited_p): New method.
2271         (edited_line::print_content): Delete redundant decl.
2272         (edited_line::m_predecessors): New field.
2273         (edited_file::print_content): Call edited_line::print_content.
2274         (edited_file::print_diff): Update to support newlines.
2275         (edited_file::print_diff_hunk): Likewise.
2276         (edited_file::print_run_of_changed_lines): New function.
2277         (edited_file::print_diff_line): Convert to...
2278         (print_diff_line): ...this.
2279         (edited_file::get_effective_line_count): New function.
2280         (edited_line::edited_line): Initialize new field m_predecessors.
2281         (edited_line::~edited_line): Clean up m_predecessors.
2282         (edited_line::apply_fixit): Handle newlines.
2283         (edited_line::get_effective_line_count): New function.
2284         (edited_line::print_content): New function.
2285         (edited_line::print_diff_lines): New function.
2286         (selftest::test_applying_fixits_insert_containing_newline): New
2287         test.
2288         (selftest::test_applying_fixits_replace_containing_newline): New
2289         test.
2290         (selftest::insert_line): New function.
2291         (selftest::test_applying_fixits_multiple_lines): Add example of
2292         inserting a line.
2293         (selftest::edit_context_c_tests): Call the new tests.
2295 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2297         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
2298         parameter cand.  Update dump information.
2299         (get_computation_cost): Update uses.
2301 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2303         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
2304         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
2305         (get_computation_at, rewrite_use_address): Update use of
2306         get_computation_aff.
2308 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2310         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
2311         (get_computation): Delete.
2312         (get_computation_cost): Implement like get_computation_cost_at.
2313         Use get_computation_at.
2314         (get_computation_cost_at): Delete.
2315         (rewrite_use_nonlinear_expr): Use get_computation_at.
2316         (rewrite_use_compare, remove_unused_ivs): Ditto.
2318 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2320         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
2322 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2324         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
2325         (ivopts_global_cost_for_size): Rename parameter and update uses.
2326         (iv_ca_recount_cost): Update uses.
2327         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
2328         candidates seperately in n_invs and n_cands.
2329         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
2331 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2333         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
2334         (find_inv_vars_cb): New.
2335         (find_depends): Renamed to ...
2336         (find_inv_vars): ... this.
2337         (add_candidate_1, force_var_cost): Call find_inv_vars.
2338         (split_address_cost, determine_group_iv_cost_cond): Ditto.
2340 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2342         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
2343         inv_vars.  Add inv_exprs.
2344         (struct iv_cand): Rename depends_on to inv_vars.
2345         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
2346         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
2347         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
2348         (dump_cand): Dump inv_vars.
2349         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
2350         (record_invariant, find_depends, add_candidate_1): Ditto.
2351         (set_group_iv_cost, force_var_cost): Ditto.
2352         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
2353         (get_computation_cost_at, get_computation_cost): Ditto.
2354         (determine_group_iv_cost_generic): Ditto.
2355         (determine_group_iv_cost_address): Ditto.
2356         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
2357         (determine_group_iv_costs): Ditto.
2358         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
2359         (iv_ca_set_remove_invariants): Renamed to ...
2360         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
2361         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
2362         (iv_ca_set_add_invariants):  Renamed to ...
2363         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
2364         (iv_ca_set_cp): Use iv_ca_set_add_invs.
2365         (iv_ca_has_deps): Support inv_vars and inv_exprs.
2366         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
2367         (create_new_ivs): Remove useless dump.
2369 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2371         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
2372         iv_cand code.
2373         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
2374         (iv_ca_set_no_cp, create_new_iv): Ditto.
2376 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2378         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2380 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2382         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
2383         function tree_check2.
2385 2017-05-02  Martin Liska  <mliska@suse.cz>
2387         * doc/gcov.texi: Add missing preposition.
2388         * gcov.c (function_info::function_info): Properly fill up
2389         all member variables.
2391 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
2393         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
2395 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
2397         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
2399 2017-05-02  Martin Liska  <mliska@suse.cz>
2401         PR lto/77954.
2402         * lto-streamer-in.c (lto_read_tree_1): Remove
2403         LTO_STREAMER_DEBUG.
2404         * lto-streamer.c (struct tree_hash_entry): Likewise.
2405         (struct tree_entry_hasher): Likewise.
2406         (tree_entry_hasher::hash): Likewise.
2407         (tree_entry_hasher::equal): Likewise.
2408         (lto_streamer_init): Likewise.
2409         (lto_orig_address_map): Likewise.
2410         (lto_orig_address_get): Likewise.
2411         (lto_orig_address_remove): Likewise.
2412         * lto-streamer.h: Likewise.
2413         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
2414         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
2416 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
2418         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
2419         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
2420         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
2421         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
2422         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
2423         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
2424         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
2425         (mm_maskz_sub_ss): New intrinsics.
2426         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2427         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2428         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
2429         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
2430         (__builtin_ia32_subss_mask_round): New builtins.
2431         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2432         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2433         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
2434         Renamed to ...
2435         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
2436         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2437         Changed to ...
2438         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2439         ... this.
2441 2017-05-02  Martin Jambor  <mjambor@suse.cz>
2443         PR tree-optimization/78687
2444         * tree-sra.c (access): New field parent.
2445         (process_subtree_disqualification): New function.
2446         (disqualify_candidate): Call it.
2447         (build_accesses_from_assign): Reset write flag if creating an
2448         assighnment link.
2449         (build_access_subtree): Fill in parent field and also prpagate
2450         down grp_write flag.
2451         (create_artificial_child_access): New parameter set_grp_write, set
2452         grp_write to its value.
2453         (propagate_subaccesses_across_link): Also propagate grp_write flag
2454         values.
2455         (propagate_all_subaccesses): Push the closest parent back to work
2456         queue if add_access_to_work_queue returned true.
2458 2017-05-02  Richard Biener  <rguenther@suse.de>
2460         * common.opt (fstrict-overflow): Alias negative to fwrapv.
2461         * doc/invoke.texi (fstrict-overflow): Remove all traces of
2462         -fstrict-overflow documentation.
2463         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
2464         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
2465         flag_strict_overflow.
2466         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
2467         * lto-opts.c (lto_write_options): Do not stream it.
2468         * lto-wrapper.c (merge_and_complain): Do not handle it.
2469         * opts.c (default_options_table): Do not set -fstrict-overflow.
2470         (finish_options): Likewise do not clear it when sanitizing.
2471         * simplify-rtx.c (simplify_const_relational_operation): Do not
2472         test flag_strict_overflow.
2474 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
2476         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
2477         using enabled attribute.
2478         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
2479         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
2480         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
2481         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
2482         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
2483         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
2484         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
2485         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
2486         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
2487         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
2489 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
2491         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
2493 2017-05-02  Richard Biener  <rguenther@suse.de>
2495         PR tree-optimization/80591
2496         Revert
2497         2017-04-10  Richard Biener  <rguenther@suse.de>
2499         * tree-ssa-structalias.c (find_func_aliases): Properly handle
2500         asm inputs.
2502 2017-05-02  Richard Biener  <rguenther@suse.de>
2504         PR tree-optimization/80549
2505         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
2506         (cleanup_tree_cfg_noloop): Create forwarders to known loop
2507         headers if they do not have a preheader.
2509 2017-05-02  Martin Liska  <mliska@suse.cz>
2511         PR other/80589
2512         * common.opt: Fix typo.
2513         * doc/invoke.texi: Likewise.
2515 2017-05-01  Jan Beulich  <jbeulich@suse.com>
2517         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
2518         swapping, add (x,x,m,x,n) alternative.
2520 2017-05-01  Nathan Sidwell  <nathan@acm.org>
2522         * calls.c (combine_pending_stack_adjustment_and_call): Remove
2523         unnecessary unadjusted_alignment check.
2525 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2527         PR c++/80038
2528         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
2529         operations here.
2530         * gimplify.c (gimplify_cilk_detach): New function.
2531         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
2532         * tree-core.h: Document EXPR_CILK_SPAWN.
2533         * tree.h (EXPR_CILK_SPAWN): Define.
2535 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
2537         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
2538         to use new fixit_hint representation, using the "replace" logic.
2539         (get_line_span_for_fixit_hint): Likewise.
2540         (layout::print_any_fixits): Likewise.
2541         (selftest::test_one_liner_many_fixits): Rename to...
2542         (selftest::test_one_liner_many_fixits_1): ...this, and update
2543         comment and expected output to reflect that the multiple fix-it
2544         hints are now consolidated into one insertion.
2545         (selftest::test_one_liner_many_fixits_2): New test.
2546         (selftest::test_diagnostic_show_locus_one_liner): Update for
2547         above.
2548         (selftest::test_fixit_consolidation): Update for fix-it API
2549         change.
2550         * diagnostic.c (print_parseable_fixits): Likewise.
2551         * edit-context.c (edited_line::m_line_events): Convert from
2552         auto_vec <line_event *> to auto_vec <line_event>.
2553         (class line_event): Convert from abstract base class to a concrete
2554         class, taking over the role of replace_event.
2555         (class insert_event): Delete.
2556         (class replace_event): Rename to class line_event.  Convert to
2557         half-open range.
2558         (edit_context::add_fixits): Reimplement.
2559         (edit_context::apply_insert): Delete.
2560         (edit_context::apply_replace): Rename to...
2561         (edit_context::apply_fixit): ...this.  Convert to half-open range.
2562         (edited_file::apply_insert): Delete.
2563         (edited_file::apply_replace): Rename to...
2564         (edited_file::apply_fixit): ...this.
2565         (edited_line::~edited_line): Drop deletion of events.
2566         (edited_line::apply_insert): Delete.
2567         (edited_line::apply_replace): Rename to...
2568         (edited_line::apply_fixit): ...this.  Convert to half-open range.
2569         Update for change to type of m_line_events.
2570         * edit-context.h (edit_context::apply_insert): Delete.
2571         (edit_context::apply_replace): Rename to...
2572         (edit_context::apply_fixit): ...this.
2574 2017-05-01  Martin Sebor  <msebor@redhat.com>
2576         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
2577         known.
2579 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
2581         PR target/68491
2582         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
2583         __get_cpuid_max returns 0.
2584         (__get_cpuid_count): Ditto.
2586 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2588         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
2589         replacement expression is another instance of one of its arguments.
2591 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
2593         PR target/79430
2594         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
2595         check for stack push/pop autoinc.
2596         * config/i386/i386.c (ix86_agi_dependent): Return false
2597         if the only reason why modified_in_p returned true is that
2598         addr is SP based and set_insn is a push or pop.
2600 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
2602         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
2603         overflow check.
2605 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
2607         PR ipa/79224
2608         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
2609         (account_size_time): Use two predicates - exec_pred and
2610         nonconst_pred_ptr.
2611         (evaluate_conditions_for_known_args): Compute both clause and
2612         nonspec_clause.
2613         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
2614         (inline_summary_t::duplicate): Update.
2615         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
2616         separately.
2617         (compute_inline_parameters): Likewise.
2618         (estimate_edge_size_and_time): Update caluclation of time.
2619         (estimate_node_size_and_time): Compute both time and nonspecialized
2620         time.
2621         (estimate_ipcp_clone_size_and_time): Update.
2622         (inline_merge_summary): Update.
2623         (do_estimate_edge_time): Update.
2624         (do_estimate_edge_size): Update.
2625         (do_estimate_edge_hints): Update.
2626         (inline_read_section, inline_write_summary): Stream both new predicates.
2627         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
2628         as argument.
2629         (compute_inlined_call_time): Cleanup.
2630         (big_speedup_p): Update.
2631         (edge_badness): Update.
2632         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
2633         (size_time_entry): Replace predicate by exec_predicate and
2634         nonconst_predicate.
2635         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
2636         (estimate_edge_time): Return also nonspec_time.
2637         (reset_edge_growth_cache): Update.
2639 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
2641         PR rtl-optimization/80491
2642         * ifcvt.c (noce_process_if_block): When looking for x setter
2643         with missing else_bb, don't check only the insn right before
2644         cond_earliest, but look for the last insn that x is modified in
2645         within the same bb.
2647         PR rtl-optimization/80491
2648         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
2650 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
2652         PR tree-optimization/80487
2653         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
2655 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2657         PR tree-optimization/79697
2658         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
2659         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
2660         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
2661         BUILT_IN_STRNDUP.
2662         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
2663         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
2665 2017-04-28  Martin Sebor  <msebor@redhat.com>
2667         PR tree-optimization/80523
2668         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
2669         (init_target_to_host_charmap, target_to_host, target_strtol10): New
2670         functions.
2671         (maybe_warn, format_directive, parse_directive): Use new functions.
2672         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
2674 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
2676         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
2678 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2680         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
2681         target_header_dir): Set correctly.
2682         * configure: Regenerated.
2683         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2684         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2685         instead of SYSTEM_HEADER_DIR.
2687 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
2689         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
2690         (estimate_local_effects): Likewise.
2691         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
2692         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
2693         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
2694         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
2695         do_estimate_edge_time, estimate_edge_time): Likewise.
2696         * ipa-inline-analysis.c (estimate_node_size_and_time,
2697         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
2698         (estimate_time_after_inlining): Remove.
2700 2017-04-28  Martin Liska  <mliska@suse.cz>
2702         * doc/gcov.texi: Enhance documentation of gcov.
2704 2017-04-28  Martin Liska  <mliska@suse.cz>
2706         * doc/gcov.texi: Sort options in alphabetic order.
2707         * doc/gcov-dump.texi: Likewise.
2708         * doc/gcov-tool.texi: Likewise.
2709         * gcov.c (print_usage): Likewise.
2710         * gcov-dump.c (print_usage): Likewise.
2711         * gcov-tool.c (print_merge_usage_message): Likewise.
2712         (print_rewrite_usage_message): Likewise.
2713         (print_overlap_usage_message): Likewise.
2715 2017-04-28  Martin Liska  <mliska@suse.cz>
2717         PR gcov-profile/53915
2718         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
2720 2017-04-28  Martin Liska  <mliska@suse.cz>
2722         PR gcov-profile/79891
2723         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
2724         is marked by compiler as living on a line.
2725         (get_cycles_count): Remove usage of the union.
2726         (output_intermediate_file): Likewise.
2727         (find_source): Fix GNU coding style.
2728         (accumulate_line_counts): Remove old non-all block mode.
2729         (output_lines): Remove usage of the union.
2730         * profile.c (output_location): Include all BBs, even if
2731         belonging to a same line (and file) as a previous BB.
2733 2017-04-28  Martin Liska  <mliska@suse.cz>
2735         * gcov.c (process_args): Handle new argument 'w'.
2736         (read_graph_file): Assign ID to BBs.
2737         (output_branch_count): Display BB # if verbose flag is set.
2738         (output_lines): Likewise for arcs.
2739         (print_usage): Add '--verbose' option help.
2740         * doc/gcov.texi: Document --verbose (-w) option.
2742 2017-04-28  Martin Liska  <mliska@suse.cz>
2744         * gcov.c (struct block_location_info): New struct.
2745         (process_file): Fill up the new structure.
2746         (read_graph_file): Replace usage of encoding by the newly added
2747         struct.
2748         (add_line_counts): Likewise.
2749         (accumulate_line_counts): Remove usage of the union.
2750         (function_info::function_info): New function.
2751         (function_info::~function_info): Likewise.
2752         (process_file): Call delete instead of release_function.
2753         (release_function): Release the function.
2754         (release_structures): Call delete instead of release_function.
2755         (solve_flow_graph): Replace usage of num_blocks.
2756         (find_exception_blocks): Likewise.
2757         (output_lines): Fix GNU coding style.
2759 2017-04-28  Martin Liska  <mliska@suse.cz>
2761         PR driver/56469
2762         * coverage.c (coverage_remove_note_file): New function.
2763         * coverage.h: Declare the function.
2764         * toplev.c (finalize): Clean if an error has been seen.
2766 2017-04-28  Martin Liska  <mliska@suse.cz>
2768         PR gcov-profile/80031
2769         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
2770         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
2771         * gcov.c (read_graph_file): Read just number of blocks.
2772         * profile.c (branch_prob): Do not stream 0 flags per a basic
2773         block.
2775 2017-04-28  Martin Liska  <mliska@suse.cz>
2777         * gcov-dump.c (tag_*): Add new argument to declarations.
2778         (dump_gcov_file): Likewise.
2779         (tag_blocks): Add and use new argument depth.
2780         (tag_arcs): Likewise.
2781         (tag_lines): Likewise.
2782         (tag_counters): Likewise.
2783         (tag_summary): Likewise.
2784         (dump_working_sets): Use depth to do a proper indentation.
2786 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
2788         PR bootstrap/80531
2789         * cgraph.h (symtab_node::debug_symtab): No longer inline.
2790         * symtab.c (symtab_node::debug_symtab): Move definition here.
2792 2017-04-28  Richard Biener  <rguenther@suse.de>
2794         * lto-streamer.h (LTO_major_version): Bump to 7.
2796 2017-04-28  Richard Biener  <rguenther@suse.de>
2798         * tree-vrp.c (assert_info): New struct.
2799         (add_assert_info): New helper.
2800         (register_edge_assert_for_2): Refactor to add asserts to a vector
2801         of assert_info.
2802         (register_edge_assert_for_1): Likewise.
2803         (register_edge_assert_for): Likewise.
2804         (finish_register_edge_assert_for): New helper actually registering
2805         asserts where live on edge.
2806         (find_conditional_asserts): Adjust.
2807         (find_switch_asserts): Likewise.
2808         (evrp_dom_walker::try_find_new_range): Generalize.
2809         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
2811 2017-04-27  Marek Polacek  <polacek@redhat.com>
2813         PR sanitizer/80349
2814         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
2815         arg10 and arg11 to itype.
2817 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
2819         * doc/extend.texi (Object Size Checking): Improve grammar.
2821 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
2823         PR target/80530
2824         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
2825         that the logic for permitting reciprocal estimates matches that
2826         in use_rsqrt_p.
2828 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
2830         PR c++/80534
2831         * tree.c (type_cache_hasher::equal): Only compare
2832         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
2833         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
2834         non-aggregate element types.
2835         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
2836         about the flag on ARRAY_TYPEs in the comment, formatting fix.
2838 2017-04-27  Richard Biener  <rguenther@suse.de>
2840         PR middle-end/80533
2841         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
2842         stripping ARRAY_REFs from MEM_EXPR make sure we're not
2843         keeping a reference to a trailing array.
2845 2017-04-27  Richard Biener  <rguenther@suse.de>
2847         PR middle-end/80539
2848         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
2849         being in loop-closed SSA form conservatively.
2850         (chrec_fold_multiply_poly_poly): Likewise.
2852 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
2854         PR middle-end/79665
2855         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
2856         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
2858 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
2860         PR target/77728
2861         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
2862         (aarch64_function_arg_alignment): Return unsigned int again, but still
2863         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
2864         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
2865         Don't emit -Wpsabi note.
2866         (aarch64_function_arg_boundary): Likewise.
2867         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
2868         caller.
2870 2017-04-26  Nathan Sidwell  <nathan@acm.org>
2872         * tree.h (crc32_unsigned_n): Declare.
2873         (crc32_unsigned, crc32_unsigned): Make inline.
2874         * tree.c (crc32_unsigned_bits): Replace with ...
2875         (crc32_unsigned_n): ... this.
2876         (crc32_unsigned, crc32_byte): Remove.
2877         (crc32_string): Remove unnecessary braces.
2879 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
2881         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
2882         * ipa-inline-analysis.c (MAX_TIME): Remove.
2883         (account_size_time): Use sreal for time.
2884         (dump_inline_summary): Update.
2885         (estimate_function_body_sizes): Update.
2886         (estimate_edge_size_and_time): Update.
2887         (estimate_calls_size_and_time): Update.
2888         (estimate_node_size_and_time): Update.
2889         (inline_merge_summary): Update.
2890         (inline_update_overall_summary): Update.
2891         (estimate_time_after_inlining): Update.
2892         (inline_read_section): Update.
2893         (inline_write_summary): Update.
2894         * ipa-inline.c (compute_uninlined_call_time): Update.
2895         (compute_inlined_call_time): Update.
2896         (recursive_inlining): Update.
2897         (inline_small_functions): Update.
2898         (dump_overall_stats): Update.
2899         * ipa-inline.h: Include sreal.h.
2900         (size_time_entry): Turn time to sreal.
2901         (inline_summary): Turn self_time nad time to sreal.
2903 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
2905         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
2906         data-streamer.h
2907         (sreal::stream_out, sreal::stream_in): New.
2908         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
2910 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
2912         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
2913         environment.
2915 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
2917         PR target/70799
2918         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2919         Handle ASHIFTRT.
2920         (dimode_scalar_chain::compute_convert_gain): Ditto.
2921         (dimode_scalar_chain::make_vector_copies): Ditto.
2922         (dimode_scalar_chain::convert_reg): Ditto.
2923         (dimode_scalar_chain::convert_insn): Ditto.
2924         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
2925         (VI248_AVX512BW_1): New mode iterator.
2926         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
2927         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
2928         mode iterator.
2930 2017-04-25  Martin Sebor  <msebor@redhat.com>
2932         PR tree-optimization/80497
2933         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
2934         constants are representable in HOST_WIDE_INT.
2935         (parse_directive): Ditto.
2937 2017-04-25  Martin Sebor  <msebor@redhat.com>
2939         PR bootstrap/80486
2940         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
2941         (new_zero_array): Adjust signature.
2942         (dom_info::dom_init): Used unsigned rather that size_t.
2943         (dom_info::dom_info): Same.
2945 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2946             Jakub Jelinek  <jakub@redhat.com>
2948         PR target/77728
2949         * config/arm/arm.c: Include gimple.h.
2950         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
2951         returns negative, increment ncrn only if it returned positive.
2952         (arm_needs_doubleword_align): Return int instead of bool,
2953         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
2954         members, but if there is any such non-FIELD_DECL
2955         > PARM_BOUNDARY aligned decl, return -1 instead of false.
2956         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
2957         returns negative, increment nregs only if it returned positive.
2958         (arm_setup_incoming_varargs): Likewise.
2959         (arm_function_arg_boundary): Emit -Wpsabi note if
2960         arm_needs_doubleword_align returns negative, return
2961         DOUBLEWORD_ALIGNMENT only if it returned positive.
2963 2017-04-25  Marek Polacek  <polacek@redhat.com>
2965         PR sanitizer/80349
2966         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
2967         first argument to type.
2969 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
2971         PR target/80482
2972         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
2973         type checks to test for compatibility instead of equality.
2975 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2976             Jakub Jelinek  <jakub@redhat.com>
2978         PR target/77728
2979         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
2980         type.
2981         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
2982         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
2983         the alignment computation, but return their maximum in warn_alignment.
2984         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
2985         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
2986         is smaller.
2987         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
2988         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
2989         caller.
2991 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
2993         * config/arc/simdext.md (dmpyh): Fix typo.
2995 2017-04-25  Richard Biener  <rguenther@suse.de>
2997         PR tree-optimization/80492
2998         * alias.c (compare_base_decls): Handle registers with asm
2999         specification conservatively.
3000         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3001         compare_base_decls returning dont-know properly.
3003 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3005         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
3006         (legitimate_offset_address_p): New function.
3007         (arc_legitimate_address_p): Use above function.
3009 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3011         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
3013 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3015         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
3016         ACCH registers whenever they are available.
3018 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3020         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
3021         double regs fix when not used.
3023 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3025         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
3026         core registers.
3027         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
3028         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
3030 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3032         * config/arc/arc.c (arc_output_addsi): Check for h-register class
3033         when emitting short ADD instructions.
3035 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3037         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
3038         constraint.
3039         (cmpsi_cc_c_insn): Likewise.
3040         (cbranchsi4_scratch): Compute proper instruction length using
3041         compact_hreg_operand.
3042         * config/arc/predicates.md (compact_hreg_operand): New predicate.
3044 2017-04-25  Richard Biener  <rguenther@suse.de>
3046         PR middle-end/80509
3047         * passes.c (pass_manager::pass_manager): Initialize
3048         m_name_to_pass_map.
3050 2017-04-25  Richard Biener  <rguenther@suse.de>
3052         PR tree-optimization/79201
3053         * tree-ssa-sink.c (statement_sink_location): Handle calls.
3055 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3057         PR target/80464
3058         * config/s390/vector.md: Split MEM->GPR vector moves for
3059         non-s_operand addresses.
3061 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3063         PR target/79895
3064         * config/s390/predicates.md (reload_const_wide_int_operand): New
3065         predicate.
3066         * config/s390/s390.md ("movti"): Remove d/P alternative.
3067         ("movti_bigconst"): New pattern definition.
3069 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3071         PR target/80080
3072         * s390-protos.h (s390_expand_cs_hqi): Removed.
3073         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
3074         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
3075         modes as well as CCZ1mode and CCZmode.
3076         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
3077         signature of s390_emit_compare_and_swap.
3078         (s390_expand_cs_hqi): Likewise, make static.
3079         (s390_expand_cs_tdsi): Generate an explicit compare before trying
3080         compare-and-swap, in some cases.
3081         (s390_expand_cs): Wrapper function.
3082         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
3083         atomic_exchange.
3084         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
3085         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
3086         patterns for small and large integers.  Forbid symref memory operands.
3087         Move expander to s390.c.  Require cc register.
3088         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
3089         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
3090         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
3091         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
3092         symref memory operands.  Remove CC mode and call s390_match_ccmode
3093         instead.
3094         ("atomic_exchange<mode>"): Allow and implement all integer modes.
3096 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3098         * config/s390/s390.md (define_peephole2): New peephole to help
3099         combining the load-and-test pattern with volatile memory.
3101 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3103         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
3104         with CCZmode for TARGET_Z196.
3106 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3108         PR rtl-optimization/80501
3109         * combine.c (make_compound_operation_int): Set subreg_code to SET
3110         even for AND with mask of the sign bit of mode.
3112         PR rtl-optimization/80500
3113         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
3114         sum's initial value.
3116 2017-04-25  Julian Brown  <julian@codesourcery.com>
3117             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3119         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
3121 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
3123         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
3125 2017-04-25  Julian Brown  <julian@codesourcery.com>
3126             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3128         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
3129         (thunderx2t99_sha): New Reservation.
3131 2017-04-25  Julian Brown  <julian@codesourcery.com>
3132             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3134         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
3135         type for 1-element load.
3137 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
3139         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
3141 2017-04-24  Martin Jambor  <mjambor@suse.cz>
3143         PR tree-optimization/80293
3144         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
3145         char arrays not totally scalarizable if it is false.
3146         (analyze_all_variable_accesses): Pass correct value in the new
3147         parameter.  Add a statistics counter.
3149 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
3151         PR middle-end/79931
3152         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
3154 2017-04-24  Richard Biener  <rguenther@suse.de>
3156         PR tree-optimization/80494
3157         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
3158         out for complex types.
3160 2017-04-24  Richard Biener  <rguenther@suse.de>
3162         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
3163         * tree-ssa-sccvn.c (print_scc): Print SCC size.
3164         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
3165         (DFS): Adjust and never fail.
3166         (sccvn_dom_walker::fail): Remove.
3167         (sccvn_dom_walker::before_dom_children): Adjust.
3168         (run_scc_vn): Likewise and never fail.
3169         * tree-ssa-pre.c (pass_pre::execute): Adjust.
3170         (pass_fre::execute): Likewise.
3172 2017-04-24  Richard Biener  <rguenther@suse.de>
3174         PR tree-optimization/79725
3175         * tree-ssa-sink.c (statement_sink_location): Return whether
3176         failure reason was zero uses.  Move that check later.
3177         (sink_code_in_bb): Deal with zero uses by removing the stmt
3178         if possible.
3180 2017-04-24  Richard Biener  <rguenther@suse.de>
3182         PR c++/2972
3183         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
3184         pointer-based references.
3186 2017-04-24  Richard Biener  <rguenther@suse.de>
3188         PR bootstrap/79814
3189         * pass_manager.h (pass_manager::operator new): Remove.
3190         (pass_manager::operator delete): Likewise.
3191         * passes.c (pass_manager::operator new): Remove.
3192         (pass_manager::operator delete): Likewise.
3193         (pass_manager::pass_manager): Zero individual pass members.
3195 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
3197         PR target/70799
3198         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
3199         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
3200         Check "XEXP (src, 1)" operand here.
3201         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
3202         Check "XEXP (src, 1)" operand here.
3203         (dimode_scalar_chain::make_vector_copies): Detect count register
3204         of a shift instruction.  Zero extend count register from QImode
3205         to DImode to satisfy vector shift pattern count operand predicate.
3206         Substitute vector shift count operand with a DImode copy.
3207         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
3208         vector register.
3210 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
3212         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
3213         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3214         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
3215         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3216         (UNSPEC_NOREX_MEM): Remove definition.
3218 2017-04-21  Richard Biener  <rguenther@suse.de>
3220         PR tree-optimization/79547
3221         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3222         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
3223         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
3224         without any constraints.
3226 2017-04-21  Richard Biener  <rguenther@suse.de>
3228         PR tree-optimization/78847
3229         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
3231 2017-04-21  Richard Biener  <rguenther@suse.de>
3233         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
3234         (build_distinct_type_copy): Likewise.
3235         (build_variant_type_copy): Likewise.
3236         * tree.c (build_qualified_type): Pass down mem-stat info.
3237         (build_distinct_type_copy): Likewise.
3238         (build_variant_type_copy): Likewise.
3240 2017-04-21  Richard Biener  <rguenther@suse.de>
3242         PR tree-optimization/80237
3243         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
3244         defaulted to NULL.
3245         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
3246         for a simplified result.
3248 2016-04-21  Richard Biener  <rguenther@suse.de>
3250         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
3251         sth as strict as a simple_iv but a chrec without symbols and an
3252         operand defined in the loop we are peeling (and not some subloop).
3253         (propagate_constants_for_unrolling): Propagate all constants.
3255 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3257         PR target/79804
3258         * config/i386/i386.c (print_reg): Remove assert for disalowed
3259         regno values, call output_operand_lossage instead.
3261 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3263         PR target/78090
3264         * config/i386/constraints.md (Yc): New register constraint.
3265         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
3266         Use Yc constraint for alternative 2 of operand 0.  Remove
3267         preferred_for_speed attribute.
3269 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3271         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
3272         lastprivate clauses in SIMT case.
3274 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
3276         * doc/invoke.texi (-Wextra-semi): Document new warning option.
3278 2017-04-20  Richard Biener  <rguenther@suse.de>
3280         PR tree-optimization/57796
3281         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
3282         as N scalar stores.
3283         (vect_model_load_cost): Cost gathers as N scalar loads.
3285 2017-04-20  Richard Biener  <rguenther@suse.de>
3287         * ggc-page.c (ggc_allocated_p): Rename to ...
3288         (safe_lookup_page_table_entry): ... this and return the lookup
3289         result.
3290         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
3292 2017-04-20  Richard Biener  <rguenther@suse.de>
3294         PR tree-optimization/80453
3295         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
3296         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
3297         from the conditions.
3298         (vn_phi_eq): Pass them down.
3299         (vn_phi_lookup): Record them.
3300         (vn_phi_insert): Likewise.
3302 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3304         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
3305         uninitialized variable warning to avoid buffer overrun.
3307 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3309         PR other/71250
3310         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
3311         is suppressed for '{ 0 }' in C.
3313 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
3315         * BASE-VER: Set to 8.0.0.
3317 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3319         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
3320         priority .init_array and .fini_array section with SECTION_NOTYPE
3321         flag.
3323 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
3325         PR middle-end/80423
3326         * tree.h (build_array_type): Add typeless_storage default argument.
3327         * tree.c (type_cache_hasher::equal): Also compare
3328         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
3329         (build_array_type): Add typeless_storage argument, set
3330         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
3331         recursive call.
3332         (build_nonshared_array_type): Adjust build_array_type_1 caller.
3333         (build_array_type): Likewise.  Add typeless_storage argument.
3335 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3336             Jakub Jelinek  <jakub@redhat.com>
3338         PR tree-optimization/80426
3339         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
3340         operation on symbolic operands, also compute the overflow for the
3341         invariant part when the operation degenerates into a negation.
3343 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
3345         PR debug/80461
3346         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
3347         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
3349         PR debug/80436
3350         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
3352 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
3354         PR target/80462
3355         * config/avr/avr.c (tree.h): Include it.
3356         (cgraph.h): Include it.
3357         (avr_encode_section_info): Don't warn for uninitialized progmem
3358         variable if it's just an alias.
3360 2017-04-19  Richard Biener  <rguenther@suse.de>
3362         PR ipa/65972
3363         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
3364         when needed by AutoPGO.
3366 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
3368         PR lto/50345
3369         * doc/lto.texi: Remove an extra 'that'.
3371 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
3373         PR rtl-optimization/80429
3374         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
3375         are only used in debug insns.
3377 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3378             Vladimir Makarov  <vmakarov@redhat.com>
3380         * config/sparc/predicates.md (input_operand): Add comment.  Return
3381         true for any memory operand when LRA is in progress.
3382         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
3384 2017-04-18  Jeff Law  <law@redhat.com>
3386         PR target/74563
3387         * mips.md ({return,simple_return}_internal): Do not overwrite
3388         operands[0].
3390 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3392         PR tree-optimization/80443
3393         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
3394         instead of adding 1, subtract -1 and similarly instead of subtracting
3395         1 add -1.
3397 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
3399         PR rtl-optimization/80357
3400         * haifa-sched.c (tmp_bitmap): New variable.
3401         (model_recompute): Handle duplicate use records.
3402         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
3403         (free_global_sched_pressure_data): Free it.
3405 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3407         Revert:
3408         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3409         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3410         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3411         instead of SYSTEM_HEADER_DIR.
3413 2017-04-18  Jeff Law  <law@redhat.com>
3415         PR middle-end/80422
3416         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
3417         predecessors after walking up the insn chain.
3419 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3421         PR debug/80263
3422         * dwarf2out.c (modified_type_die): Try harder not to emit internal
3423         sizetype type into debug info.
3425 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3427         PR target/80099
3428         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
3429         unneeded test for TARGET_UPPER_REGS_SF.
3430         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
3432 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3434         PR sanitizer/80444
3435         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
3436         instead of gsi_after_labels.
3438 2017-04-18  Jeff Law  <law@redhat.com>
3440         * regcprop.c (maybe_mode_change): Avoid creating copies of the
3441         stack pointer.
3443         Revert:
3444         2017-04-13  Jeff Law  <law@redhat.com>
3445         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3446         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3448 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
3450         PR target/79453
3451         * config/avr/avr.c (intl.h): Include it.
3452         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
3454 2017-04-18  Martin Liska  <mliska@suse.cz>
3456         PR gcov-profile/78783
3457         * gcov-tool.c (gcov_output_files): Validate that destination
3458         file is either removed by the tool or by a user.
3460 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3461             Guy Benyei  <guybe@mellanox.com>
3463         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
3464         block, and do not negate it, the stored id is already negative.
3466 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3468         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
3470 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3472         PR target/80098
3473         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
3474         masks of options that should be turned off if the VSX vector
3475         options are turned off.
3476         (OTHER_P8_VECTOR_MASKS): Likewise.
3477         (OTHER_VSX_VECTOR_MASKS): Likewise.
3478         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
3479         rs6000_disable_incompatible_switches to validate no type switches
3480         like -mvsx.
3481         (rs6000_incompatible_switch): New function to disallow turning on
3482         other vector options if -mno-vsx, -mno-power8-vector, or
3483         -mno-power9-vector are specified.
3485 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3487         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
3489 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3491         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
3492         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
3493         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
3494         (ARG_POINTER_CFA_OFFSET): Likewise.
3496 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3498         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
3499         conditions to take advantage of various optimizations.
3501 2017-04-13  Jeff Law  <law@redhat.com>
3503         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3504         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3505         (zero_extendsidi2_dext): Likewise.
3507 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3509         PR sanitizer/80403
3510         * fold-const.c (fold_ternary_loc): Revert
3511         use op0 instead of fold_convert_loc (loc, type, arg0) part of
3512         2017-04-12 change.
3514 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3516         PR rtl-optimization/80343
3517         * lra-remat.c (update_scratch_ops): Assign original hard reg to
3518         new scratch pseudo.
3520 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
3522         PR sanitizer/80414
3523         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
3524         to ubsan_encode_value.
3526 2017-04-13  Jeff Law  <law@redhat.com>
3528         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
3529         appearing in DEBUG_INSNs.
3531 2017-04-13  Martin Liska  <mliska@suse.cz>
3533         PR gcov-profile/80413
3534         * gcov-io.c (gcov_write_string): Copy to buffer just when
3535         allocated size is greater than zero.
3537 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3539         PR debug/80321
3540         * dwarf2out.c (decls_for_scope): Ignore declarations of
3541         current_function_decl in BLOCK_NONLOCALIZED_VARS.
3543 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
3545         PR lto/69953
3546         * ipa-visibility.c (non_local_p): Fix typos.
3547         (localize_node): When localizing symbol in same comdat group,
3548         dissolve the group only when we know external symbols are going
3549         to be privatized.
3550         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
3552 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3554         PR tree-optimization/79390
3555         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
3556         order does not result in usable sequence, retry with reversed operand
3557         order.
3559         PR sanitizer/80403
3560         PR sanitizer/80404
3561         PR sanitizer/80405
3562         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
3563         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
3564         op0 instead of fold_convert_loc (loc, type, arg0).
3566 2017-04-12  Jeff Law  <law@redhat.com>
3568         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
3569         has a delay slot in the generated code.
3571         * config/cris/cris.md (cris_preferred_reload_class): Return
3572         GENNONACR_REGS rather than GENERAL_REGS.
3574 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3576         PR c/80163
3577         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
3578         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
3579         signedness of the result type.
3581 2017-04-12  Richard Biener  <rguenther@suse.de>
3582             Jeff Law  <law@redhat.com>
3584         PR tree-optimization/80359
3585         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
3586         trim stores to TARGET_MEM_REFs.
3588 2017-04-12  Richard Biener  <rguenther@suse.de>
3590         PR tree-optimization/79390
3591         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
3592         threading case even more.
3594 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
3596         PR target/80382
3597         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
3598         for quad_address_p for TImode, instead of just not indexed_address.
3600 2017-04-12  Richard Biener  <rguenther@suse.de>
3601             Bernd Edlinger  <bernd.edlinger@hotmail.de>
3603         PR middle-end/79671
3604         * alias.c (component_uses_parent_alias_set_from): Handle
3605         TYPE_TYPELESS_STORAGE.
3606         (get_alias_set): Likewise.
3607         * tree-core.h (tree_type_common): Add typeless_storage flag.
3608         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
3609         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
3610         for types containing members with TYPE_TYPELESS_STORAGE.
3611         (place_field): Likewise.
3612         (layout_type): Likewise for ARRAY_TYPE.
3613         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
3614         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
3615         TYPE_TYPELESS_STORAGE.
3616         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3618 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3620         PR sanitizer/80349
3621         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3622         first argument to type.
3624 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3626         PR target/80376
3627         PR target/80315
3628         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3629         CONST0_RTX (mode) rather than const0_rtx where appropriate.
3630         (rs6000_expand_binop_builtin): Likewise.
3631         (rs6000_expand_ternop_builtin): Likewise; also add missing
3632         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
3633         vshasigma built-ins.
3634         * doc/extend.texi: Document that vec_xxpermdi's third argument
3635         must be a constant.
3637 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
3639         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
3640         Use shift_const cost parameter when calculating gain of STV shifts.
3642 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
3644         PR rtl-optimization/70478
3645         * lra-constraints.c (process_alt_operands): Check memory for
3646         disfavoring memory insn operand.
3648 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3650         PR middle-end/80100
3651         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
3652         left shift in unsigned HOST_WIDE_INT type.
3654         PR rtl-optimization/80385
3655         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
3656         (not (neg X)) into (plus X -1) for complex or non-integral modes.
3658         PR libgomp/80394
3659         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
3660         if they have any depend clauses.
3662 2017-04-11  Martin Liska  <mliska@suse.cz>
3664         PR ipa/80212
3665         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
3666         * ipa-split.c (split_function): Create a local comdat symbol
3667         if caller is in a comdat group.
3669 2017-04-11  Martin Liska  <mliska@suse.cz>
3671         PR ipa/80212
3672         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
3673         flags.
3675 2017-04-11  Martin Sebor  <msebor@redhat.com>
3677         PR middle-end/80364
3678         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
3679         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
3680         for INTEGER_TYPE.
3681         (directive::set_width, directive::set_precision, format_character):
3682         Adjust.
3683         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
3684         INTEGER_TYPE.
3686 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
3688         PR target/80389
3689         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
3690         conflict, set target->arch_name instead of target->cpu_name.
3692 2017-04-11  Richard Biener  <rguenther@suse.de>
3694         PR tree-optimization/80374
3695         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
3696         build_zero_cst, remove fold_convertible_p check again.
3698 2017-04-11  Martin Liska  <mliska@suse.cz>
3700         PR sanitizer/70878
3701         * ubsan.c (instrument_object_size): Do not instrument register
3702         variables.
3704 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3706         PR target/80381
3707         * config/i386/i386-builtin-types.def
3708         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
3709         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
3710         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
3711         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
3712         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
3713         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
3714         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
3715         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
3716         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
3717         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
3718         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
3719         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
3720         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
3721         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
3722         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
3723         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
3724         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
3725         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
3726         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
3727         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
3728         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
3729         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
3730         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
3731         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
3732         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
3733         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
3734         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
3735         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
3736         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
3737         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
3738         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
3739         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
3740         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
3741         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
3742         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
3743         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
3744         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
3745         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
3746         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
3747         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
3748         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
3749         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
3750         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
3751         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
3752         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
3753         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
3754         aliases.
3755         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
3756         flag to second_arg_count, handle 4 argument function type _COUNT
3757         aliases, handle second_arg_count on second argument rather than last.
3759 2017-04-10  Jeff Law  <law@redhat.com>
3761         PR tree-optimization/80374
3762         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
3763         record anything if we can not convert integer_zero_node to the
3764         desired type.
3766 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3768         PR target/80108
3769         * config/rs6000/rs6000.c (rs6000_option_override_internal):
3770         Enhance special handling given to the TARGET_P9_MINMAX option in
3771         relation to certain other options.
3773 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
3775         PR tree-optimization/80153
3776         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
3777         remove POINTER_PLUS_EXPR's base part directly, rather than through
3778         aff_tree.
3780 2017-04-10  Richard Biener  <rguenther@suse.de>
3781             Bin Cheng  <bin.cheng@arm.com>
3783         PR tree-optimization/80153
3784         * tree-affine.c (aff_combination_to_tree): Get base pointer from
3785         the first element of pointer type aff_tree.  Build result expr in
3786         aff_tree's type.
3787         (add_elt_to_tree): Convert to type unconditionally.  Remove other
3788         fold_convert calls.
3789         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
3790         (rewrite_use_nonlinear_expr): Check invariant using iv information.
3792 2017-04-10  Richard Biener  <rguenther@suse.de>
3794         * tree-ssa-structalias.c (find_func_aliases): Properly handle
3795         asm inputs.
3797 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
3799         PR rtl-optimization/70478
3800         * lra-constraints.c (curr_small_class_check): New.
3801         (update_and_check_small_class_inputs): New.
3802         (process_alt_operands): Update curr_small_class_check.  Disfavor
3803         alternative insn memory operands.  Check available regs for small
3804         class operands.
3806 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
3808         PR target/80057
3809         * config/mips/mips.opt (-mvirt): Update description.
3810         * doc/invoke.texi (-mvirt): Likewise.
3812 2017-04-10  Richard Biener  <rguenther@suse.de>
3814         PR middle-end/80362
3815         * fold-const.c (fold_binary_loc): Look at unstripped ops when
3816         looking for NEGATE_EXPR in -A / -B to A / B folding.
3818 2017-04-10  Martin Liska  <mliska@suse.cz>
3820         PR gcov-profile/80224
3821         * gcov.c (print_usage): Fix usage string.
3822         (get_gcov_intermediate_filename): Remove.
3823         (output_gcov_file): Use both for normal and intermediate format.
3824         (generate_results): Do not initialize special file for
3825         intermediate format.
3827 2017-04-10  Richard Biener  <rguenther@suse.de>
3829         PR tree-optimization/80304
3830         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
3831         for safelen.
3833 2017-04-10  Nathan Sidwell  <nathan@acm.org>
3835         PR target/79905
3836         * config/rs6000/rs6000.c (rs6000_vector_type): New.
3837         (rs6000_init_builtins): Use it.
3839 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3841         * config/arm/arm.md (<mrc>): Add mode to SET source.
3842         (<mrrc>): Likewise.
3844 2017-04-10  Richard Biener  <rguenther@suse.de>
3846         PR middle-end/80344
3847         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
3849 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
3851         PR target/80324
3852         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
3853         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
3854         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
3855         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
3856         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
3857         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
3858         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
3859         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
3860         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
3861         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
3862         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
3863         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
3864         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
3865         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
3866         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
3867         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
3868         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
3869         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
3870         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
3871         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
3872         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
3873         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
3874         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
3876 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
3878         PR rtl-optimization/70478
3879         * lra-constraints.c: Reverse the last patch.
3881 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
3883         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
3884         Add comment for WCHAR_T.
3886 2017-04-08  Martin Liska  <mliska@suse.cz>
3888         Revert:
3889         2017-04-07  Martin Liska  <mliska@suse.cz>
3891         PR ipa/80212
3892         * ipa-split.c (split_function): Add function part to a same comdat
3893         group.
3895 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3897         PR target/80358
3898         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
3900 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
3902         * rs6000/rs6000.c (vec_load_pendulum): Rename...
3903         (vec_pairing): ...to this.
3904         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
3905         (rs6000_sched_init): Adjust for name change.
3906         (struct rs6000_sched_context): Likewise.
3907         (rs6000_init_sched_context): Likewise.
3908         (rs6000_set_sched_context): Likewise.
3910 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
3912         PR target/80322
3913         PR target/80323
3914         PR target/80325
3915         PR target/80326
3916         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
3917         intrinsics.
3918         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
3919         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
3920         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
3922 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
3924         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
3926 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
3928         PR rtl-optimization/70703
3929         * ira-color.c (update_conflict_hard_regno_costs): Use
3930         int64_t instead of HOST_WIDE_INT.
3932 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
3934         PR rtl-optimization/70478
3935         * lra-constraints.c (process_alt_operands): Disfavor alternative
3936         insn memory operands.
3938 2017-04-07  Jeff Law  <law@redhat.com>
3940         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
3941         CALL and NOTE_INSN_CALL_ARG_LOCATION.
3943 2017-04-07  Martin Liska  <mliska@suse.cz>
3945         PR target/79889
3946         * config/aarch64/aarch64.c (aarch64_process_target_attr):
3947         Show error message instead of an ICE.
3949 2017-04-07  Martin Liska  <mliska@suse.cz>
3951         PR ipa/80212
3952         * ipa-split.c (split_function): Add function part to a same comdat
3953         group.
3955 2017-04-07  Richard Biener  <rguenther@suse.de>
3957         PR middle-end/80341
3958         * tree.c (get_unwidened): Also handle ! for_type case for
3959         INTEGER_CSTs.
3960         * convert.c (do_narrow): Split out from ...
3961         (convert_to_integer_1): ... here.  Do not pass final truncation
3962         type to get_unwidened for TRUNC_DIV_EXPR.
3964 2017-04-07  Richard Biener  <rguenther@suse.de>
3966         * tree-affine.c (wide_int_ext_for_comb): Take type rather
3967         than aff_tree.
3968         (aff_combination_const): Adjust.
3969         (aff_combination_scale): Likewise.
3970         (aff_combination_add_elt): Likewise.
3971         (aff_combination_add_cst): Likewise.
3972         (aff_combination_convert): Likewise.
3973         (add_elt_to_tree): Likewise.  Remove unused argument.
3974         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
3976 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3978         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
3979         definition.
3980         * config/arm/arm.c (arm_default_short_enums): Use
3981         ARM_DEFAULT_SHORT_ENUMS.
3982         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
3984 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
3986         PR debug/80234
3987         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
3988         members with redundant out-of-class redeclaration.
3990 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
3992         PR target/80286
3993         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
3994         * config/i386/i386.md (*zero_extendsidi2):
3995         Add (?*x,*x) and (?*v,*v) alternatives.
3997 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
3999         PR target/79733
4000         * config/i386/i386.c (ix86_expand_builtin)
4001         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
4002         mode from insn data. Convert operands to insn operand mode.
4003         Copy operands that don't satisfy insn predicate to a register.
4005 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
4007         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
4008         Update comments.
4010 2017-04-06  Richard Biener  <rguenther@suse.de>
4012         PR tree-optimization/80334
4013         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
4014         preserve alignment of accesses.
4016 2017-04-06  Richard Biener  <rguenther@suse.de>
4018         PR tree-optimization/80262
4019         * tree-sra.c (build_ref_for_offset): Preserve address-space
4020         information.
4021         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4022         Drop useless address-space information on MEM_REF offsets.
4024 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
4026         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
4028 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4030         PR rtl-optimization/70703
4031         * ira-color.c (update_conflict_hard_regno_costs): Use
4032         HOST_WIDE_INT instead of long.
4034 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
4036         PR target/80298
4037         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
4038         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
4039         is not defined.
4040         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
4041         for x86_64 target.  Handle -m3dnowa option.
4043 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4045         PR rtl-optimization/70703
4046         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
4047         (update_conflict_hard_regno_costs): Use long instead of unsigned
4048         arithmetic for cost calculation.
4050 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4051             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4053         PR sanitizer/80308
4054         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
4055         for big endian.
4057 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4059         PR target/78002
4060         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
4061         ptr_mode with Pmode throughout.
4062         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
4063         into probe_stack_range and use DImode.
4065 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4067         PR target/79890
4068         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
4069         call_eh_return is true.
4071 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4073         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
4074         Initialize last_match_fntype_index.
4076 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4078         PR target/80310
4079         * tree-nvr.c: Include internal-fn.h.
4080         (pass_return_slot::execute): Ignore internal calls without
4081         direct optab.
4083 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4084             Richard Biener  <rguenther@suse.de>
4086         PR c++/80297
4087         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
4088         captures used multiple times, except for the last use.
4089         * generic-match-head.c: Include gimplify.h.
4091 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4093         PR tree-optimization/79390
4094         * target.h (struct noce_if_info): Declare.
4095         * targhooks.h (default_noce_conversion_profitable_p): Declare.
4096         * target.def (noce_conversion_profitable_p): New target hook.
4097         * ifcvt.h (struct noce_if_info): New type, moved from ...
4098         * ifcvt.c (struct noce_if_info): ... here.
4099         (noce_conversion_profitable_p): Renamed to ...
4100         (default_noce_conversion_profitable_p): ... this.  No longer
4101         static nor inline.
4102         (noce_try_store_flag_constants, noce_try_addcc,
4103         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
4104         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
4105         instead of noce_conversion_profitable_p.
4106         * config/i386/i386.c: Include ifcvt.h.
4107         (ix86_option_override_internal): Don't override
4108         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
4109         (ix86_noce_conversion_profitable_p): New function.
4110         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
4111         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
4112         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
4113         * doc/tm.texi: Regenerated.
4115 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4117         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
4118         correction.
4120 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4122         PR target/80307
4123         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
4124         instructions for small multiply cores.
4126 2017-04-04  Jeff Law  <law@redhat.com>
4128         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
4129         added member.
4130         (mips_expand_vec_perm_const): Initialize elements in orig_perm
4131         that are not set by the loop over the elements.
4133 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4135         PR target/80286
4136         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
4137         int mode, convert_modes it to mode as unsigned, otherwise use
4138         lowpart_subreg to mode rather than SImode.
4139         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
4140         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
4141         Use DImode instead of SImode for the shift count operand.
4142         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
4143         Likewise.
4145 2017-04-04  Richard Biener  <rguenther@suse.de>
4147         PR middle-end/80281
4148         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
4149         arithmetic done for the negate or the plus.  Simplify.
4150         (A - (-B) -> A + B): Likewise.
4151         * fold-const.c (split_tree): Make sure to not negate pointers.
4153 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
4155         PR rtl-optimization/60818
4156         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
4157         a compare of comparisons with the thing compared if this results
4158         in a different machine mode.
4160 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
4162         * alias.c (base_alias_check): Fix typo in comment.
4163         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
4164         * cgraphunit.c (symbol_table::compile): Likewise.
4165         * collect2.c (maybe_run_lto_and_relink): Likewise.
4166         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
4167         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
4168         * config/avr/avr.c (avr_map_op_t): Likewise.
4169         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
4170         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
4171         * config/epiphany/epiphany.md (movcc): Likewise.
4172         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
4173         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
4174         Likewise.
4175         * config/mips/mips.c (mips_save_restore_reg): Likewise.
4176         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
4177         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
4178         * config/sh/sh.c (sh_rtx_costs): Likewise.
4179         * fold-const.c (fold_truth_andor): Likewise.
4180         * genautomata.c (collapse_flag): Likewise.
4181         * gengtype.h (struct type::u::s): Likewise.
4182         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
4183         * input.c (FORMAT_AMOUNT): Likewise.
4184         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
4185         (known_aggs_to_agg_replacement_list): Likewise.
4186         * ipa-inline-analysis.c: Likewise.
4187         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
4188         * ipa-polymorphic-call.c
4189         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
4190         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
4191         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
4192         Likewise.
4193         * modulo-sched.c (apply_reg_moves): Likewise.
4194         * omp-expand.c (build_omp_regions_1): Likewise.
4195         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
4196         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
4197         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
4198         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4199         * value-prof.c: Likewise.
4200         * var-tracking.c (val_reset): Likewise.
4202 2017-04-03  Richard Biener  <rguenther@suse.de>
4204         PR tree-optimization/80275
4205         * fold-const.c (split_address_to_core_and_offset): Handle
4206         POINTER_PLUS_EXPR.
4208 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
4210         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
4211         descriptors is at least equal to that of functions.
4213 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4215         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
4217 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4219         PR target/80250
4220         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
4221         (mov<IMOD4:mode>): New expander.
4222         (*mov<IMOD4:mode>_internal): New insn and split pattern.
4224 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
4226         PR rtl-optimization/79405
4227         * fwprop.c (propagations_left): New variable.
4228         (forward_propagate_into): Decrement it.
4229         (fwprop_init): Initialize it.
4230         (fw_prop): If the variable has reached zero, stop propagating.
4231         (fwprop_addr): Ditto.
4233 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4235         PR debug/79255
4236         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
4237         a FUNCTION_DECL, pass it as decl instead of origin to
4238         process_scope_var.
4240 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
4242         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
4243         string.
4245 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
4247         PR target/80107
4248         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
4249         TARGET_VSX_SMALL_INTEGER.
4251 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4253         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4254         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
4256 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4258         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
4259         extraction from odd-numbered MSA register.
4261 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4263         PR middle-end/80173
4264         * expmed.c (store_bit_field_1): Don't attempt to create
4265         a word subreg out of hard registers wider than word if they
4266         have HARD_REGNO_NREGS of 1 for their mode.
4268         PR middle-end/80163
4269         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
4270         conversions to integer types wider than word and pointer.
4272         PR debug/80025
4273         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
4274         (rtx_equal_for_cselib_p): Pass 0 to it.
4275         * cselib.c (cselib_hasher::equal): Likewise.
4276         (rtx_equal_for_cselib_1): Add depth argument.  If depth
4277         is 128, don't look up VALUE locs and punt.  Increment
4278         depth in recursive calls when walking VALUE locs.
4280 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4282         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
4283         (make_gcov_file_name): Use the canonical path name for generating
4284         the MD5 value.
4285         (read_line): Fix handling of files with ascii null bytes.
4287 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
4289         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
4290         to initialise a vector register instead
4291         of using a const_int.
4293 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4295         PR translation/80189
4296         * gimplify.c (omp_default_clause): Use %qs instead of %s in
4297         diagnostic messages.
4299 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
4301         PR target/80246
4302         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
4303         (dfp_diex_<mode>): Update mode of operand 1.
4304         * doc/extend.texi (dxex, dxexq): Document change to return type.
4305         (diex, diexq): Document change to argument type.
4307 2017-03-30  Martin Jambor  <mjambor@suse.cz>
4309         PR ipa/77333
4310         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
4311         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
4312         it reflects the signature changes performed at the callee side.
4313         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
4314         to cgraph_build_function_type_skip_args.
4315         (build_function_decl_skip_args): Adjust call to the above function.
4317 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4319         PR target/80206
4320         * config/i386/sse.md
4321         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
4322         register as dest whenever it is a MEM not rtx_equal_p to the
4323         corresponding dup operand, and when forcing into reg move the
4324         reg into the memory afterwards.
4325         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
4326         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
4327         for the force_reg mode.
4328         (avx512vl_vextractf128<mode>): Use register as dest either
4329         always when a MEM, or when it is a MEM not rtx_equal_p to the
4330         corresponding dup operand, or even not when it is a CONST_VECTOR
4331         depending on the mode and lo vs. hi.
4332         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
4333         parens.
4334         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
4335         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
4336         Likewise.  Require that operands[2] is even.
4337         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
4338         Remove extraneous parens.  Require that operands[2] is a multiple
4339         of 4.
4340         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
4341         operands[0] is a MEM if <mask_applied>, the predicates/constraints
4342         disallow memory then.
4344 2017-03-30  Richard Biener  <rguenther@suse.de>
4346         PR tree-optimization/77498
4347         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
4348         to non-constants over backedges.
4350 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
4352         PR rtl-optimization/80233
4353         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
4354         as last_combined_insn.  Do not test for BARRIER_P separately.
4356 2017-03-29  Andreas Schwab  <schwab@suse.de>
4358         PR ada/80146
4359         * calls.c (prepare_call_address): Convert funexp to Pmode before
4360         copying to temp reg.
4362 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4364         PR tree-optimization/80158
4365         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
4366         Handle possible future case of more than one alternate
4367         interpretation.
4368         (replace_rhs_if_not_dup): Likewise.
4369         (replace_one_candidate): Likewise.
4371 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4373         PR rtl-optimization/80193
4374         * ira.c (ira): Do not check allocation for LRA.
4376 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
4378         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
4379         (nvptx_output_simt_exit): Declare.
4380         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
4381         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
4382         (init_softstack_frame): Move initialization of crtl->is_leaf to...
4383         (nvptx_declare_function_name): ...here.  Emit declaration of local
4384         memory space buffer for omp_simt_enter insn.
4385         (nvptx_output_unisimt_switch): New.
4386         (nvptx_output_softstack_switch): New.
4387         (nvptx_output_simt_enter): New.
4388         (nvptx_output_simt_exit): New.
4389         * config/nvptx/nvptx.h (struct machine_function): New fields
4390         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
4391         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
4392         (UNSPECV_SIMT_EXIT): Ditto.
4393         (omp_simt_enter_insn): New insn.
4394         (omp_simt_enter): New expansion.
4395         (omp_simt_exit): New insn.
4396         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
4398         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
4399         (expand_GOMP_SIMT_ENTER_ALLOC): New.
4400         (expand_GOMP_SIMT_EXIT): New.
4401         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
4402         (GOMP_SIMT_ENTER_ALLOC): Ditto.
4403         (GOMP_SIMT_EXIT): Ditto.
4404         * target-insns.def (omp_simt_enter): New insn.
4405         (omp_simt_exit): Ditto.
4406         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
4407         simt_dlist.
4408         (lower_rec_simd_input_clauses): Implement SIMT privatization.
4409         (lower_rec_input_clauses): Likewise.
4410         (lower_lastprivate_clauses): Handle SIMT privatization.
4412         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
4413         (ompdevlow_adjust_simt_enter): New.
4414         (find_simtpriv_var_op): New.
4415         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
4416         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
4418         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
4419         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
4420         (copy_decl_for_dup_finish): Ditto.
4422         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
4424 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
4426         PR target/53383
4427         * config/i386/i386.c (ix86_option_override_internal): Always
4428         allow -mpreferred-stack-boundary=3 for 64-bit targets.
4430 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
4432         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
4434 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
4436         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
4437         mark new edge's irreducible flag accordign to it.
4438         (vect_do_peeling): Check loop preheader edge's irreducible flag
4439         and pass it to function slpeel_add_loop_guard.
4441 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
4443         PR tree-optimization/80218
4444         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4445         Update block frequencies and counts.
4447 2017-03-28  Richard Biener  <rguenther@suse.de>
4449         PR tree-optimization/78644
4450         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
4451         of a simplification result we may not use it at all.
4453 2017-03-28  Richard Biener  <rguenther@suse.de>
4455         PR ipa/80205
4456         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
4457         without arguments, generate default definition of a SSA name.
4459 2017-03-28  Richard Biener  <rguenther@suse.de>
4461         PR middle-end/80222
4462         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
4463         TYPE_REF_CAN_ALIAS_ALL references.
4464         * fold-const.c (fold_indirect_ref_1): Likewise.
4466 2017-03-28  Martin Liska  <mliska@suse.cz>
4468         PR ipa/80104
4469         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
4470         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
4472 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
4473             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
4475         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
4476         (EXTRA_SPECS): Define.
4477         (SUBTARGET_EXTRA_SPECS): Likewise.
4478         (SUBTARGET_CPP_SPEC): Likewise.
4479         * config/arc/elf.h (EXTRA_SPECS): Renamed to
4480         SUBTARGET_EXTRA_SPECS.
4481         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
4483 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
4485         * config/arc/simdext.md (vst64_insn): Update pattern.
4486         (vld32wh_insn): Likewise.
4487         (vld32wl_insn): Likewise.
4488         (vld64_insn): Likewise.
4489         (vld32_insn): Likewise.
4491 2017-03-28  Marek Polacek  <polacek@redhat.com>
4493         PR sanitizer/80067
4494         * fold-const.c (fold_comparison): Use protected_set_expr_location
4495         instead of SET_EXPR_LOCATION.
4497 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
4499         * tree.c (add_expr): Avoid name lookup warning.
4501 2017-03-27  Jeff Law  <law@redhat.com>
4503         PR tree-optimization/80216
4504         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
4505         function name.  Limit recursion depth.
4506         (record_temporary_equivalences): Corresponding changes.
4508 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
4510         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
4511         covered first.
4513 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4515         PR target/80102
4516         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
4517         notes.
4518         * cfgcleanup.c (reg_note_cfa_p): New array.
4519         (insns_have_identical_cfa_notes): New function.
4520         (old_insns_match_p): Don't cross-jump in between /f
4521         and non-/f instructions.  If both i1 and i2 are frame related,
4522         verify all CFA notes, their order and content.
4524 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
4526         PR target/78543
4527         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
4528         HImode and SImode with zero extend to DImode to one insn.
4529         (bswap<mode>2_extenddi): Likewise.
4530         (bswapsi2_extenddi): Likewise.
4531         (bswaphi2_extendsi): Likewise.
4532         (bswaphi2): Combine bswap HImode and SImode into one insn.
4533         Separate memory insns from swapping register.
4534         (bswapsi2): Likewise.
4535         (bswap<mode>2): Likewise.
4536         (bswaphi2_internal): Delete, no longer used.
4537         (bswapsi2_internal): Likewise.
4538         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
4539         store, and gpr<-gpr swap insns.
4540         (bswap<mode>2_store): Likewise.
4541         (bswaphi2_reg): Register only splitter, combine with the splitter.
4542         (bswaphi2 splitter): Likewise.
4543         (bswapsi2_reg): Likewise.
4544         (bswapsi2 splitter): Likewise.
4545         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
4546         the insns into load, store, and register/register insns.
4547         (bswapdi2_ldbrx): Likewise.
4548         (bswapdi2_load): Likewise.
4549         (bswapdi2_store): Likewise.
4550         (bswapdi2_reg): Likewise.
4552 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
4554         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
4555         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
4557 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4559         PR target/80103
4560         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
4561         add comments.
4562         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4563         special handling for target option conflicts between dform
4564         options (-mpower9-dform, -mpower9-dform-vector,
4565         -mpower9-dform-scalar) and -mno-direct-move.
4567 2017-03-27  Richard Biener  <rguenther@suse.de>
4569         PR tree-optimization/80181
4570         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
4572 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4574         * config/arc/predicates.md (move_double_src_operand): Replace the
4575         call to move_double_src_operand with a call to address_operand.
4577 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4579         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
4580         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
4581         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
4583 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4585         * config/arc/predicates.md (long_immediate_loadstore_operand):
4586         Consider scaled addresses cases.
4588 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4590         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
4591         restored when in interrupt.
4592         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
4593         doesn't have delay slot.
4595 2017-03-27  Richard Biener  <rguenther@suse.de>
4597         PR ipa/79776
4598         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
4599         inlined thunk clones.
4601 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4603         PR sanitizer/80168
4604         * asan.c (instrument_derefs): Copy over last operand from
4605         original COMPONENT_REF to the new COMPONENT_REF with
4606         DECL_BIT_FIELD_REPRESENTATIVE.
4607         * ubsan.c (instrument_object_size): Likewise.
4609 2017-03-27  Richard Biener  <rguenther@suse.de>
4611         PR tree-optimization/80170
4612         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
4613         sure DR/SCEV didnt fold in constants we do not see when looking
4614         at the reference base alignment.
4616 2017-03-27  Richard Biener  <rguenther@suse.de>
4618         PR middle-end/80171
4619         * gimple-fold.c (fold_ctor_reference): Properly guard against
4620         NULL return value from canonicalize_constructor_val.
4622 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
4624         PR target/80180
4625         * config/i386/i386.c (ix86_expand_builtin)
4626         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
4627         flags reg setting and flags reg using instructions.
4628         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
4629         clobbering instructions to zero extend op2.
4631 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
4633         * doc/install.texi (Configuration) <--with-aix-soname>:
4634         Update link to AIX ld.
4636 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
4638         PR rtl-optimization/80160
4639         PR rtl-optimization/80159
4640         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
4641         reg_alternate_class into account.
4643 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
4645         PR target/80148
4646         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
4647         to consider in curr_insn_transform.
4649 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
4651         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
4652         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
4653         and emit_mode_inner.
4655 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4657         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
4658         argument to the overloaded builtin variants.  Use the new flag to
4659         deprecate certain builtin variants.
4660         * config/s390/s390-builtin-types.def: Add new builtin types.
4661         * config/s390/s390-builtins.h: Support new flags field for
4662         overloaded builtins.
4663         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
4664         (s390_macro_to_expand): Enable vector float data type.
4665         (s390_cpu_cpp_builtins_internal): Indicate support of the new
4666         builtins by incrementing the __VEC__ version number.
4667         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
4668         vec_xst.
4669         (s390_resolve_overloaded_builtin): Emit error messages depending
4670         on the builtin flags.
4671         * config/s390/s390.c (s390_expand_builtin): Support additional
4672         flags argument.  Change error message to match the messages
4673         emitted in s390-c.c.
4674         * config/s390/s390.md: New UNSPEC_* constants.
4675         (op_type): Add new instruction types.
4676         * config/s390/vecintrin.h: Add new builtins and test data class
4677         constants.
4678         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
4679         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
4680         (VEC_INEXACT, VEC_NOINEXACT): New constants.
4681         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
4682         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
4683         ("vec_mergel<mode>"): V_HW -> VEC_HW.
4685         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
4686         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
4687         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
4688         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
4690         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
4691         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
4692         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
4693         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
4695         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
4696         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
4697         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
4698         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
4699         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
4700         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
4701         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
4703         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
4704         ("vec_scatter_element<V_HW_4:mode>_DI")
4705         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
4706         ("vec_fpint<mode>", "vflls")
4707         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
4708         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
4709         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
4710         ("*vec_cmphe<mode>_cc"): ... these.
4712         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
4713         mode constant instead of magic value.
4715 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4717         * config/s390/s390.c (s390_expand_vec_compare): Support other
4718         vector floating point modes than just V2DF.
4719         (s390_expand_vcond): Likewise.
4720         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
4721         (s390_cannot_change_mode_class): Prevent mode changes between TF
4722         and V1TF in vector registers.
4723         * config/s390/s390.md (DF, SF): New mode attributes.
4724         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
4725         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
4726         SFmode support for VRs.
4727         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
4728         vector fp modes.
4729         (VFT, VF_HW): New mode iterators.
4730         (vw, sdx): New mode attributes.
4731         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
4732         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
4733         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
4734         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
4735         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
4736         also the new vector floating point modes.  Renaming to ...
4738         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
4739         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
4740         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
4741         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
4742         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
4743         ("vec_unordered<mode>"): ... these.
4745         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
4746         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
4747         ("*vec_extendv2df"): New insn definitions.
4749 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4751         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
4752         ("mulditi3_2", "*muldi3_sign"): New patterns.
4753         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
4754         rename the pattern definition.
4756 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4758         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
4759         expander.
4760         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
4762 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4764         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
4765         instruction if possible.
4766         * config/s390/vector.md (vec_halfnumelts): New mode
4767         attribute.
4768         ("*vec_vllezlf<mode>"): New pattern.
4770 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4772         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
4773         ("popcountv4si2", "popcountv2di2"): Rename to ...
4774         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
4775         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
4776         condition.
4777         ("popcount<mode>2_vxe"): New pattern.
4779 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4781         * common/config/s390/s390-common.c (processor_flags_table): Add
4782         arch12.
4783         * config.gcc: Add arch12.
4784         * config/s390/driver-native.c (s390_host_detect_local_cpu):
4785         Default to arch12 for unknown CPU model numbers.
4786         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
4787         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
4788         PROCESSOR_max sanity check.
4789         * config/s390/s390-opts.h (enum processor_type): Add
4790         PROCESSOR_ARCH12.
4791         * config/s390/s390.c (processor_table): Add arch12.
4792         (s390_expand_builtin): Add check for B_VXE flag.
4793         (s390_issue_rate): Add PROCESSOR_ARCH12.
4794         (s390_get_sched_attrmask): Likewise.
4795         (s390_get_unit_mask): Likewise.
4796         (s390_sched_score): Enable z13 scheduling for arch12.
4797         (s390_sched_reorder): Likewise.
4798         (s390_sched_variable_issue): Likewise.
4799         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
4800         PF_VXE.
4801         (s390_tune_attr): Use z13 scheduling also for arch12.
4802         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
4803         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
4804         (TARGET_VXE_P): New macros.
4805         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
4806         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
4807         * config/s390/s390.opt: Add arch12 as processor_type.
4809 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4811         * config/s390/s390.md
4812         ("fixuns_truncdddi2", "fixuns_trunctddi2")
4813         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
4814         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
4816         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
4817         Rename expanders to ...
4819         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
4820         ("fixuns_truncdddi2_emu"): ... these.
4822         ("fixuns_trunc<mode>si2_emu"): New expander.
4824         ("*fixuns_truncdfdi2_z13"): Rename to ...
4825         ("*fixuns_truncdfdi2_vx"): ... this.
4827 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4829         * config/s390/2964.md: Remove the single element vector compare
4830         instructions which are no longer used.
4831         * config/s390/s390.c (s390_select_ccmode): Remove handling of
4832         vector CCmodes.
4833         (s390_canonicalize_comparison): Remove handling of DFmode
4834         compares.
4835         (s390_expand_vec_compare_scalar): Remove function.
4836         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
4837         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
4838         pattern.
4839         ("*cmp<mode>_ccs"): Add wfcdb instruction.
4841 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4843         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
4844         FP zero.
4845         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
4846         will anyway by matched by mov<mode>_64dfp.
4848 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4850         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
4851         vlef/vstef.  Add missing operand to vleif.
4853 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4855         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
4856         pair for all vector types with 64 bit elements.
4857         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
4858         * config/s390/vector.md (V_HW_64): ... here.
4859         (V_128_NOSINGLE): New mode iterator.
4860         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
4861         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
4862         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
4863         ("*vec_load_pairv2di"): Change to ...
4864         ("*vec_load_pair<mode>"): ... this one.
4866 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4868         * config/s390/constraints.md: Add comments.
4869         (jKK): Reject element sizes > 8 bytes.
4870         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
4871         s_operands.
4872         * config/s390/s390.md: Add the s_operand checks formerly in
4873         s390_split_ok_p to various splitters where they are still
4874         required.
4875         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
4876         for 128 bit vectors.  Plus two splitters.
4878 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4880         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
4881         the file.
4883 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4885         PR target/79893
4886         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
4887         error if the boundary argument is not constant.
4889 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
4891         PR rtl-optimization/80112
4892         * loop-doloop.c (doloop_condition_get): Don't check condition
4893         if cmp isn't SET with IF_THEN_ELSE src.
4895 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4897         PR tree-optimization/80158
4898         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
4899         replacing a candidate statement, also replace it for the
4900         candidate's alternate interpretation.
4901         (replace_rhs_if_not_dup): Likewise.
4902         (replace_one_candidate): Likewise.
4904 2017-03-24  Richard Biener  <rguenther@suse.de>
4906         PR tree-optimization/80167
4907         * graphite-isl-ast-to-gimple.c
4908         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
4909         properly.
4910         (translate_isl_ast_to_gimple::get_rename): Likewise.
4912 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4914         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
4915         handling of certain combinations of target options, including the
4916         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
4917         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
4919 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4921         PR target/71436
4922         * config/arm/arm.md (*load_multiple): Add reload_completed to
4923         matching condition.
4925 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4926             Richard Biener  <rguenth@suse.de>
4928         PR tree-optimization/79908
4929         PR tree-optimization/80136
4930         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
4931         been cast away, gimplify_and_add suffices.
4933 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
4935         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
4937 2017-03-23  Richard Biener  <rguenther@suse.de>
4939         PR tree-optimization/80032
4940         * gimplify.c (gimple_push_cleanup): Forced unconditional
4941         cleanups still have to go to the conditional_cleanups
4942         sequence.
4944 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
4946         PR tree-optimization/80072
4947         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
4948         to unsigned int.
4949         (next_operand_entry_id): Change type to unsigned int.
4950         (sort_by_operand_rank): Make sure to return the right return value
4951         even if unsigned fields are bigger than INT_MAX.
4952         (struct oecount): Change cnt and id type to unsigned int.
4953         (oecount_hasher::equal): Formatting fix.
4954         (oecount_cmp): Make sure to return the right return value
4955         even if unsigned fields are bigger than INT_MAX.
4956         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
4958         PR c++/80129
4959         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
4960         TREE_READONLY on result if writing it more than once.
4962         PR sanitizer/80110
4963         * doc/invoke.texi (-fsanitize=thread): Document that with
4964         -fnon-call-exceptions atomics are not able to throw
4965         exceptions.
4967         PR sanitizer/80110
4968         * tsan.c: Include tree-eh.h.
4969         (instrument_builtin_call): Call maybe_clean_eh_stmt or
4970         maybe_clean_or_replace_eh_stmt where needed.
4971         (instrument_memory_accesses): Add cfg_changed argument.
4972         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
4973         if it returned true.
4974         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
4976         PR rtl-optimization/63191
4977         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
4978         wrapper function, moved the whole old content into ...
4979         (ix86_delegitimize_address_1): ... this.  New inline function.
4980         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
4981         true as last argument instead of ix86_delegitimize_address.
4983 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
4985         * config/aarch64/aarch64.c (generic_branch_cost): Copy
4986         cortexa57_branch_cost.
4988 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
4990         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
4992 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4994         PR target/80123
4995         * doc/md.texi (Constraints): Document wA constraint.
4996         * config/rs6000/constraints.md (wA): New.
4997         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
4998         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
4999         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
5000         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
5002 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
5004         PR c++/80029
5005         * gimplify.c (is_oacc_declared): New function.
5006         (oacc_default_clause): Use it to set default flags for acc declared
5007         variables inside parallel regions.
5008         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
5009         declared variables.
5010         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
5011         declare attribute to any decl as necessary.
5013 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5015         PR target/80082
5016         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
5017         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
5018         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
5019         (arm_arch_lpae): This.
5020         * config/arm/arm.c (arm_arch7ve): Rename into ...
5021         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
5022         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
5023         arm_arch_lpae.
5025 2017-03-22  Martin Liska  <mliska@suse.cz>
5027         PR target/79906
5028         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
5029         error message instead of an ICE.
5031 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5033         * doc/extend.texi (6.11 Additional Floating Types): Revise.
5035 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5037         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5038         comments.
5039         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5040         comments.
5042 2017-03-21  Martin Sebor  <msebor@redhat.com>
5044         * doc/extend.texi: Use "cannot" instead of "can't."
5045         * doc/hostconfig.texi: Same.
5046         * doc/install.texi: Same.
5047         * doc/invoke.texi: Same.
5048         * doc/loop.texi: Same.
5049         * doc/md.texi: Same.
5050         * doc/objc.texi: Same.
5051         * doc/rtl.texi: Same.
5052         * doc/tm.texi: Same.
5053         * doc/tm.texi.in: Same.
5054         * doc/trouble.texi: Same.
5056 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
5058         PR debug/63238
5059         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
5060         (collect_checksum_attributes): Set it.
5061         (die_checksum_ordered): Use it.
5063 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5065         PR tree-optimization/79908
5066         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
5067         change: For a VA_ARG whose LHS has been cast away, use
5068         force_gimple_operand to construct the side effects.
5070 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
5072         PR translation/80001
5073         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
5074         more amenable to translation.
5075         (oacc_loop_auto_partitions): Likewise.
5077 2017-03-21  Marek Polacek  <polacek@redhat.com>
5078             Martin Sebor  <msebor@redhat.com>
5080         PR tree-optimization/80109
5081         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
5082         on INTEGRAL_TYPE_P.
5084 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5085             Segher Boessenkool  <segher@kernel.crashing.org>
5087         PR target/80125
5088         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
5089         check reg_used_between_p between insn and one of succ or succ2
5090         depending on if succ is artificial insn not inserted into insn
5091         stream.
5093 2017-03-21  Martin Liska  <mliska@suse.cz>
5095         PR gcov-profile/80081
5096         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
5097         * doc/gcc.texi: Include gcov-dump stuff.
5098         * doc/gcov-dump.texi: New file.
5100 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
5102         PR rtl-optimization/79150
5103         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
5104         conditional jump, if the jump is the last insn of the loop.
5106 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5107             Richard Biener  <rguenth@suse.de>
5109         PR tree-optimization/79908
5110         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5111         been cast away, use force_gimple_operand to construct the side
5112         effects.
5114 2017-03-21  Martin Liska  <mliska@suse.cz>
5116         PR libfortran/79956
5117         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
5118         to NULL.
5120 2017-03-21  Brad Spengler <spender@grsecurity.net>
5122         PR plugins/80094
5123         * plugin.c (htab_hash_plugin): New function.
5124         (add_new_plugin): Use it and adjust.
5125         (parse_plugin_arg_opt): Adjust.
5126         (init_one_plugin): Likewise.
5128 2017-03-21  Richard Biener  <rguenther@suse.de>
5130         PR tree-optimization/80032
5131         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
5132         if set force the cleanup to happen unconditionally.
5133         (gimplify_target_expr): Push inserted clobbers with force_uncond
5134         to avoid them being removed by control-dependent DCE.
5136 2017-03-21  Richard Biener  <rguenther@suse.de>
5138         PR tree-optimization/80122
5139         * tree-inline.c (copy_bb): Do not expans va-arg packs or
5140         va_arg_pack_len when the inlined call stmt requires pack
5141         expansion itself.
5142         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
5144 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5146         PR sanitizer/78158
5147         * tsan.c (instrument_builtin_call): If the memory model argument
5148         is not a constant, assume it is valid.
5150         PR c/67338
5151         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
5152         avoid UB.
5154 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5156         PR rtl-optimization/79910
5157         * combine.c (can_combine_p): Do not allow combining an I0 or I1
5158         if its dest is used by an insn before I2 (other than the combined
5159         insns themselves, which are properly handled already).
5161 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5163         Revert:
5164         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5166         * combine.c (record_used_regs): New static function.
5167         (try_combine): Handle situations where there is an additional
5168         instruction between I2 and I3 which needs to have a LOG_LINK
5169         updated.
5171         Revert:
5172         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5174         * combine.c (try_combine): Delete redundant i1 test.  Call
5175         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5177 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5179         PR target/80083
5180         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
5181         alternatives 13/14.
5183 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5185         PR tree-optimization/80054
5186         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
5187         the optimization if a PHI or any of its arguments is not dominated
5188         by the candidate's basis.  Use gphi* rather than gimple* as
5189         appropriate.
5190         (replace_profitable_candidates): Clean up a gimple* variable that
5191         should be a gphi* variable.
5193 2017-03-20  Martin Sebor  <msebor@redhat.com>
5195         PR c++/52477
5196         * doc/extend.texi (attribute constructor): Document present limitation.
5198 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5200         PR target/79963
5201         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
5202         __POWER9_VECTOR__ #ifdef control, change template definition to
5203         use Power9-specific built-in function.
5204         (vec_any_eq): Likewise.
5205         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
5206         to control outcomes from this test.
5207         (vector_ae_<mode>p): For VEC_F modes, likewise.
5209 2017-03-20  Ian Lance Taylor  <iant@google.com>
5211         * config/i386/i386.c (ix86_function_regparm): Save an extra
5212         register for -fsplit-stack with DECL_STATIC_CHAIN.
5214 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5216         PR target/79912
5217         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
5218         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
5220 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5222         * config/riscv/riscv.c (riscv_print_operand): Use "fence
5223         iorw,ow".
5224         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
5225         iorw,iorw".
5227 2017-03-20  Marek Polacek  <polacek@redhat.com>
5229         PR sanitizer/80063
5230         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
5232 2017-03-20  Richard Biener  <rguenther@suse.de>
5234         PR tree-optimization/80113
5235         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
5236         allocate extra SSA name for PHI def.
5237         (add_close_phis_to_outer_loops): Likewise.
5238         (add_close_phis_to_merge_points): Likewise.
5239         (copy_loop_close_phi_args): Likewise.
5240         (copy_cond_phi_nodes): Likewise.
5242 2017-03-20  Martin Liska  <mliska@suse.cz>
5244         PR middle-end/79753
5245         * tree-chkp.c (chkp_build_returned_bound): Do not build
5246         returned bounds for a LHS that's not a BOUNDED_P type.
5248 2017-03-20  Martin Liska  <mliska@suse.cz>
5250         PR target/79769
5251         PR target/79770
5252         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
5253         COMPLEX_CST and VECTOR_CST.
5255 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5257         PR target/78857
5258         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
5259         target operand.  A new splitter adds the clobber statement in case
5260         the target operand is dead anyway.
5262 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
5264         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
5265         to age-old versions of binutils and glibc.
5267 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
5269         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
5271 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
5273         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
5275 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
5277         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
5278         requirement for binutils 2.13.
5280 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5282         * combine.c (try_combine): Delete redundant i1 test.  Call
5283         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5285 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
5287         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
5288         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
5289         contents.
5290         <riscv64-*-elf>: Re-arrange section
5291         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
5292         <riscv32-*-linux>: Likewise.
5293         <riscv64-*-elf>: Likewise
5294         <riscv64-*-linux>: Likewise.
5296 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
5298         PR target/80052
5299         * aarch64.opt(verbose-cost-dump): Fix typo.
5301 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
5303         PR target/79951
5304         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
5305         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
5307 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5309         * reload.c (find_reloads): When reloading a nonoffsettable address,
5310         use RELOAD_OTHER for it and its address reloads.
5312         PR rtl-optimization/79910
5313         * combine.c (record_used_regs): New static function.
5314         (try_combine): Handle situations where there is an additional
5315         instruction between I2 and I3 which needs to have a LOG_LINK
5316         updated.
5318 2017-03-17  Jeff Law  <law@redhat.com>
5320         PR tree-optimization/71437
5321         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
5322         conditional in the hash table first.
5323         (vrp_dom_walker::before_dom_children): Extract condition from
5324         ASSERT_EXPR.  Record condition, its inverion and any implied
5325         conditions as well.
5327 2017-03-17  Marek Polacek  <polacek@redhat.com>
5328             Markus Trippelsdorf  <markus@trippelsdorf.de>
5330         PR tree-optimization/80079
5331         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
5332         m_stores_head.
5334 2017-03-17  Richard Biener  <rguenther@suse.de>
5336         PR middle-end/80075
5337         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
5338         Properly verify the LHS before the RHS possibly claims to be
5339         handled.
5340         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
5341         do not throw.
5343 2017-03-17  Martin Jambor  <mjambor@suse.cz>
5345         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
5346         (List of -O2 options): Likewise.
5347         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
5348         (-fipa-vrp) New.
5350 2017-03-17  Tom de Vries  <tom@codesourcery.com>
5352         * gcov-dump.c (print_usage): Print bug_report_url.
5354 2017-03-17  Richard Biener  <rguenther@suse.de>
5356         PR middle-end/80050
5357         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
5358         (parser::peek): Likewise.
5360 2017-03-17  Richard Biener  <rguenther@suse.de>
5362         PR tree-optimization/80048
5363         * sese.c (free_sese_info): Properly release rename_map and
5364         copied_bb_map elements.
5366 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
5368         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
5369         Add linked-list forward and backlinks.  Insert on
5370         construction, remove on destruction.
5371         (class pass_store_merging): Add m_stores_head field.
5372         (pass_store_merging::terminate_and_process_all_chains):
5373         Iterate over m_stores_head list.
5374         (pass_store_merging::terminate_all_aliasing_chains):
5375         Likewise.
5376         (pass_store_merging::execute): Check for debug stmts first.
5377         Push new chains onto the m_stores_head stack.
5379 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
5381         PR target/71294
5382         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
5383         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
5384         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
5386 2017-03-16  Jeff Law  <law@redhat.com>
5388         PR tree-optimization/71437
5389         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
5390         member function.  Implementation moved into after_dom_children
5391         member function and into the threader's thread_outgoing_edges
5392         function.
5393         (dom_opt_dom_walker::after_dom_children): Simplify by moving
5394         some code into new thread_outgoing_edges.
5395         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
5396         definition.  Simplify marker handling (do it here).   Assume we always
5397         have the available expression and the const/copies tables.
5398         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
5399         and tree-vrp.c
5400         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
5401         * tree-vrp.c (equiv_stack): No longer file scoped.
5402         (vrp_dom_walker): New class.
5403         (vrp_dom_walker::before_dom_children): New member function.
5404         (vrp_dom_walker::after_dom_children): Likewise.
5405         (identify_jump_threads):  Setup domwalker.  Use it rather than
5406         walking edges in a random order by hand.  Simplify setup/finalization.
5407         (finalize_jump_threads): Remove.
5408         (vrp_finalize): Do not call identify_jump_threads here.
5409         (execute_vrp): Do it here instead and call thread_through_all_blocks
5410         here too.
5412         PR tree-optimization/71437
5413         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
5414         callers changed.
5415         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
5416         callers changed.
5417         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
5418         (dom_opt_dom_walker::thread_across_edge): Remove
5419         handle_dominating_asserts argument.  All callers changed.
5420         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
5421         changes.  Remove calls to lhs_of_dominating_assert.  Other
5422         uses of handle_dominating_asserts turn into unconditional code
5423         (simplify_control_stmt_condition_1): Likewise.
5424         (simplify_control_stmt_condition): Likewise.
5425         (thread_through_normal_block, thread_across_edge): Likewise.
5426         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
5427         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
5428         object if it is not an SSA_NAME.
5429         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
5430         before calling into the VRP specific simplifiers.
5431         (identify_jump_threads): Remove handle_dominating_asserts
5432         argument.
5434 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
5436         PR fortran/79886
5437         * tree-diagnostic.c (default_tree_printer): No longer static.
5438         * tree-diagnostic.h (default_tree_printer): New prototype.
5440 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
5442         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
5443         Change ins into fmov.
5445 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5447         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
5448         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
5449         Use h_con constraint for operand 1.
5450         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5451         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
5453 2017-03-15  Jeff Law  <law@redhat.com>
5455         PR tree-optimization/71437
5456         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
5457         (record_temporary_equivalences): Use it.
5459         PR tree-optimization/71437
5460         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
5461         tree-ssa-scopedtables.
5462         (lookup_avail_expr, build_and_record_new_cond): Likewise.
5463         (record_conditions, record_cond, vuse_eq): Likewise.
5464         (record_edge_info): Adjust to API tweak of record_conditions.
5465         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
5466         (record_temporary_equivalences, optimize_stmt): Likewise.
5467         (eliminate_redundant_computations): Likewise.
5468         (record_equivalences_from_stmt): Likewise.
5469         * tree-ssa-scopedtables.c: Include options.h and params.h.
5470         (vuse_eq): New function, moved from tree-ssa-dom.c
5471         (build_and_record_new_cond): Likewise.
5472         (record_conditions): Likewise.  Accept vector of conditions rather
5473         than edge_equivalence structure for first argument.
5474         for the first argument.
5475         (avail_exprs_stack::lookup_avail_expr): New member function, moved
5476         from tree-ssa-dom.c.
5477         (avail_exprs_stack::record_cond): Likewise.
5478         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
5479         from tree-ssa-dom.c.
5480         (avail_exprs_stack): Add new member functions lookup_avail_expr
5481         and record_cond.
5482         (record_conditions): Declare.
5484 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
5486         PR target/80017
5487         * lra-constraints.c (process_alt_operands): Increase reject for
5488         reloading an input/output operand.
5490 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5492         PR target/79038
5493         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
5494         insns to convert from signed/unsigned char/short to IEEE 128-bit
5495         floating point.
5496         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
5498 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
5500         PR target/80019
5501         * config/i386/i386.c (ix86_vector_duplicate_value): Create
5502         subreg of inner mode for values already in registers.
5504 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
5506         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
5507         iteration reg is used after the loop.
5509 2017-03-14  Martin Sebor  <msebor@redhat.com>
5511         PR tree-optimization/79800
5512         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
5513         precision in negative-positive range.
5514         (format_floating): Call non-const overload with adjusted precision.
5516 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5518         PR target/79947
5519         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
5520         -mpowerpc-gfxopt.
5522 2017-03-14  Martin Sebor  <msebor@redhat.com>
5524         PR middle-end/80020
5525         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
5526         * builtins.def (aligned_alloc): Use it.
5528         PR c/79936
5529         * Makefile.in (GTFILES): Add calls.c.
5530         * calls.c: Include "gt-calls.h".
5532 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
5534         PR rtl-optimization/79728
5535         * regs.h (struct target_regs): New field
5536         x_contains_allocatable_regs_of_mode.
5537         (contains_allocatable_regs_of_mode): New macro.
5538         * reginfo.c (init_reg_sets_1): Initialize it, and change
5539         contains_reg_of_mode so it includes global regs as well.
5540         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
5541         rather than contains_regs_of_mode.
5543 2017-03-14  Martin Liska  <mliska@suse.cz>
5545         * doc/invoke.texi: Document options that can't be combined with
5546         -fcheck-pointer-bounds.
5548 2017-03-14  Martin Liska  <mliska@suse.cz>
5550         PR middle-end/79831
5551         * doc/invoke.texi (-Wchkp): Document the option.
5553 2017-03-14  Martin Liska  <mliska@suse.cz>
5555         * Makefile.in: Install gcov-dump.
5557 2017-03-14  Martin Liska  <mliska@suse.cz>
5559         * multiple_target.c (expand_target_clones): Bail out for
5560         an invalid attribute.
5562 2017-03-14  Richard Biener  <rguenther@suse.de>
5564         * alias.c (struct alias_set_entry): Pack properly.
5565         * cfgloop.h (struct loop): Likewise.
5566         * cse.c (struct set): Likewise.
5567         * ipa-utils.c (struct searchc_env): Likewise.
5568         * loop-invariant.c (struct invariant): Likewise.
5569         * lra-remat.c (struct cand): Likewise.
5570         * recog.c (struct change_t): Likewise.
5571         * rtl.h (struct address_info): Likewise.
5572         * symbol-summary.h (function_summary): Likewise.
5573         * tree-loop-distribution.c (struct partition): Likewise.
5574         * tree-object-size.c (struct object_size_info): Likewise.
5575         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
5576         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
5577         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
5578         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
5579         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
5580         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
5581         (struct _stmt_vec_info): Likewise.
5583 2017-03-14  Martin Liska  <mliska@suse.cz>
5585         PR target/79892
5586         * multiple_target.c (create_dispatcher_calls): Check that
5587         a target can create a function dispatcher.
5589 2017-03-14  Martin Liska  <mliska@suse.cz>
5591         PR lto/66295
5592         * multiple_target.c (expand_target_clones): Drop local.local
5593         flag for default implementation.
5595 2017-03-14  Richard Biener  <rguenther@suse.de>
5597         PR tree-optimization/80030
5598         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
5600 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
5602         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
5603         gcc_fallthrough() instead of __attribute__((fallthrough));
5605 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
5607         * doc/gcc.texi: Remove "up" link to (DIR).
5608         * doc/gccint.texi: Ditto.
5610 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
5612         * doc/install.texi (Specific) <avr>: Remove reference to
5613         binutils 2.13.
5615 2017-03-13  Jeff Law  <law@redhat.com>
5617         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
5618         attribute rather than comments.
5620         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
5621         match_scratch operand is highest.
5623 2017-03-13  Martin Liska  <mliska@suse.cz>
5625         PR middle-end/78339
5626         * ipa-pure-const.c (warn_function_noreturn): If the declarations
5627         is a CHKP clone, use original declaration.
5629 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5631         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
5632         (arc_conditional_register_usage): Use a different allocation order
5633         when optimizing for size.
5634         * common/config/arc/arc-common.c (arc_option_optimization_table):
5635         Section anchors default on when optimizing for size.
5637 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5639         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
5641 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5643         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
5644         * config/arc/arc.md (cpu_facility): Add cd variant.
5645         (*movqi_insn): Add code density variant.
5646         (*movhi_insn): Likewise.
5647         (*movqi_insn): Likewise.
5648         (*addsi3_mixed): Likewise.
5649         (subsi3_insn): Likewise.
5651 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5653         * config/arc/arc.md (movsi_cond_exec): Update constraint.
5655 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5657         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
5658         expressions with MINUS and UNARY ops.
5660 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5662         PR target/79911
5663         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
5664         Rename to...
5665         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
5666         between vec_select and vector argument.
5667         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
5668         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
5669         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
5670         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
5671         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
5672         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
5674 2017-03-13  Richard Biener  <rguenther@suse.de>
5676         PR other/79991
5677         * params.def (vect-max-peeling-for-alignment): Fix typo.
5679 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5681         * doc/install.texi (Specific) <mips-*-*>: Remove description of
5682         issue that only occurred with binutils below 2.18.
5684 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5686         * doc/install.texi (Specific) <cris-axis-elf>: No longer
5687         refer to binutils 2.11/2.12 minimum.
5689 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5691         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
5692         ftp.kernel.org and simplify binutils requirement.
5694 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
5696         * doc/invoke.texi (Warning Options): Fix spelling of link-time
5697         optimization.
5698         (Optimize Options): Ditto.  Also remove redundancy.
5700 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5702         PR translation/79848
5703         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
5704         "%qs".
5705         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
5706         to G_ to avoid double translation.
5708 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5710         PR translation/79923
5711         * auto-profile.c (get_combined_location): Convert leading
5712         character of diagnostics to lower case and remove trailing period.
5713         (read_profile): Likewise for various diagnostics.
5714         * config/arm/arm.c (arm_option_override): Remove trailing period
5715         from various diagnostics.
5716         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
5717         (msp430_expand_delay_cycles): Likewise.
5719 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5721         PR target/79925
5722         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
5723         full command-line argument, rather than just "str".
5724         (aarch64_validate_march): Likewise.
5725         (aarch64_validate_mtune): Likewise.
5727 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
5729         PR rtl-optimization/78911
5730         * lra-assigns.c (must_not_spill_p): New function.
5731         (spill_for): Use it.
5733 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
5735         PR tree-optimization/79981
5736         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
5737         ATOMIC_COMPARE_EXCHANGE ifn result.
5738         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
5739         IFN_ATOMIC_COMPARE_EXCHANGE.
5741 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5743         PR driver/79875
5744         * opts.c (parse_sanitizer_options): Add missing question mark to
5745         "did you mean" message.
5747 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5749         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
5750         built-in.
5751         (VMULEUH_UNS): Likewise.
5752         (VMULOUB_UNS): Likewise.
5753         (VMULOUH_UNS): Likewise.
5754         * config/rs6000/rs6000.c (builtin_function_type): Remove
5755         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
5757 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5759         PR bootstrap/79952
5760         * read-rtl-function.c (function_reader::read_rtx_operand): Update
5761         x with result of extra_parsing_for_operand_code_0.
5762         (function_reader::extra_parsing_for_operand_code_0): Convert
5763         return type from void to rtx, returning x.  When reading
5764         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
5765         larger size containing struct block_symbol.
5767 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
5769         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
5770         -mfloat128-hardware without -m64.
5772 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
5774         PR target/79941
5775         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
5776         entries to the case statement that marks unsigned arguments to
5777         overloaded functions.
5779 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5781         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
5782         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
5784 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
5786         PR target/79907
5787         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
5788         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
5790 2017-03-10  Martin Liska  <mliska@suse.cz>
5792         PR target/65705
5793         PR target/69804
5794         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
5795         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
5796         FIELD != NULL.
5798 2017-03-10  Olivier Hainque  <hainque@adacore.com>
5800         * tree-switch-conversion (array_value_type): Start by resetting
5801         candidate type to it's main variant.
5803 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
5805         PR rtl-optimization/79909
5806         * combine.c (try_combine): Use simplify_replace_rtx on individual
5807         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
5808         of the whole CALL_INSN_FUNCTION_USAGE.
5810         PR tree-optimization/79972
5811         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
5812         get_range_info on SSA_NAMEs.  Formatting fixes.
5814 2017-03-10  Richard Biener  <rguenther@suse.de>
5815             Jakub Jelinek  <jakub@redhat.com>
5817         PR tree-optimization/77975
5818         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
5819         edge to be constant.
5820         (get_val_for): For constant x return it.  Formatting fix.
5821         (loop_niter_by_eval): Avoid pointless looping if the next iteration
5822         would use the same bases as the current one.
5824 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5826         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
5827         instead of vec_select for V1TImode.
5828         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
5829         longer needed.
5830         (VSX_LE_128): Add V1TI to this mode iterator.
5831         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
5832         (*vsx_le_perm_store_<mode>): Likewise.
5833         (pre-reload splitter for VSX stores): Likewise.
5834         (post-reload splitter for VSX stores): Likewise.
5835         (*vsx_xxpermdi2_le_<mode>): Likewise.
5836         (*vsx_lxvd2x2_le_<mode>): Likewise.
5837         (*vsx_stxvd2x2_le_<mode>): Likewise.
5839 2017-03-09  Michael Eager  <eager@eagercon.com>
5841         Correct failures with --enable-checking=yes,rtl.
5843         * config/microblaze/microblaze.c (microblaze_expand_shift):
5844         Replace GET_CODE test with CONST_INT_P and INTVAL test with
5845         test for const0_rtx.
5846         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
5847         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
5849 2017-03-09  Richard Biener  <rguenther@suse.de>
5851         PR tree-optimization/79977
5852         * graphite-scop-detection.c (scop_detection::merge_sese):
5853         Handle the case of extra exits to blocks dominating the entry.
5855 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
5857         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
5858         Document rdynamic.
5860 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
5862         PR rtl-optimization/79949
5863         * lra-constraints.c (process_alt_operands): Check memory when
5864         trying to predict a cycle.  Print about the overall increase.
5866 2017-03-09  Richard Biener  <rguenther@suse.de>
5868         PR middle-end/79971
5869         * gimple-expr.c (useless_type_conversion_p): Preserve
5870         TYPE_SATURATING for fixed-point types.
5872 2017-03-09  Richard Biener  <rguenther@suse.de>
5874         PR ipa/79970
5875         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
5876         alignment of BLKmode params.
5878 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5880         PR target/79913
5881         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
5882         (VALL_NO_V2Q): Likewise.
5883         (VDQF_DF): Delete.
5884         * config/aarch64/aarch64-simd.md
5885         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
5886         iterator.
5887         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
5888         VALL_NO_V2Q mode iterator.
5889         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
5891 2017-03-09  Martin Liska  <mliska@suse.cz>
5893         PR tree-optimization/79631
5894         * tree-chkp-opt.c (chkp_is_constant_addr): Call
5895         tree_int_cst_sign_bit just for INTEGER constants.
5897 2017-03-09  Martin Liska  <mliska@suse.cz>
5899         PR target/65705
5900         PR target/69804
5901         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
5902         sanitizers.
5904 2017-03-09  Marek Polacek  <polacek@redhat.com>
5906         PR c++/79672
5907         * tree.c (inchash::add_expr): Handle TREE_VEC.
5909 2017-03-09  Martin Liska  <mliska@suse.cz>
5911         PR ipa/79764
5912         (chkp_narrow_size_and_offset): New function.
5913         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
5914         (void chkp_parse_bit_field_ref): New function.
5915         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
5916         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
5918 2017-03-09  Martin Liska  <mliska@suse.cz>
5920         PR ipa/79761
5921         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
5922         (chkp_find_bounds_1): Remove gcc_unreachable.
5924 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
5926         PR sanitizer/79944
5927         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
5928         BUILT_IN_SYNC*, determine the access type from the size suffix and
5929         always build a MEM_REF with that type.  Handle forgotten
5930         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
5932         PR target/79932
5933         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
5934         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
5935         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
5936         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
5937         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
5938         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
5939         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
5940         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
5941         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
5942         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
5943         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
5944         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
5945         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
5946         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
5947         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
5948         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
5949         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
5950         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
5951         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
5952         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
5953         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
5954         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
5955         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
5956         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
5957         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
5958         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
5959         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
5960         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
5961         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
5962         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
5963         definitions outside of __OPTIMIZE__ guarded section.
5965         PR target/79932
5966         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
5967         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
5968         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
5969         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
5970         guarded section.
5972 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5974         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
5975         ("vfenez<mode>"): Add missing constraints.
5977 2017-03-08  Martin Sebor  <msebor@redhat.com>
5979         PR target/79928
5980         * config/nds32/nds32.c (nds32_option_override):
5981         Fix misspelled diagnostic.
5983 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
5985         PR c/79940
5986         * gimplify.c (gimplify_omp_for): Replace index var in outer
5987         taskloop statement with an artificial variable and add
5988         OMP_CLAUSE_PRIVATE clause for it.
5990 2017-03-08  Richard Biener  <rguenther@suse.de>
5992         PR tree-optimization/79955
5993         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5994         for accesses that are completely outside of the variable.
5996 2017-03-08  Andrew Haley  <aph@redhat.com>
5998         PR tree-optimization/79943
5999         * tree-ssa-loop-split.c (compute_new_first_bound): When
6000         calculating the new upper bound, (END-BEG) should be added, not
6001         subtracted.
6003 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6005         * config/avr/avr.md (setmemhi): Make sure match_dup
6006         operand number comes before match_scratch.
6008 2017-03-08  Richard Biener  <rguenther@suse.de>
6010         PR tree-optimization/79920
6011         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
6012         with ncopies == 1 to ...
6013         (vect_transform_slp_perm_load): ... here.  Properly compute
6014         all element loads by iterating VF times over the group.  Do
6015         not handle ncopies (computed in a broken way) in
6016         vect_create_mask_and_perm.
6018 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6020         PR sanitizer/79904
6021         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
6022         is a uniform vector, use uniform_vector_p return value instead of
6023         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
6025 2017-03-07  Marek Polacek  <polacek@redhat.com>
6027         PR middle-end/79809
6028         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
6029         (alloca_call_type): Likewise.
6031 2017-03-07  Martin Liska  <mliska@suse.cz>
6033         * gcov.c (process_args): Put comment to correct location.
6035 2017-03-07  Martin Liska  <mliska@suse.cz>
6037         PR middle-end/68270
6038         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
6039         Use array_at_struct_end_p instead of DECL_CHAIN (field).
6040         (chkp_narrow_bounds_for_field): Likewise.
6041         (chkp_parse_array_and_component_ref): Pass one more argument to
6042         call.
6044 2017-03-07  Richard Biener  <rguenther@suse.de>
6046         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
6047         preheaders.
6049 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
6051         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
6052         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
6054 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6056         PR c/79855
6057         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
6058         to end of description.
6059         (PARAM_MAX_STORES_TO_MERGE): Likewise.
6061 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
6063         PR rtl-optimization/79901
6064         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
6065         ...
6066         (*avx512f_<code><mode>3<mask_name>): ... this.
6067         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
6068         iterator instead of VI8_AVX2_AVX512BW.
6070         PR rtl-optimization/79901
6071         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
6072         min/max expander, expand it using expand_vec_cond_expr.
6074         PR sanitizer/79897
6075         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
6076         temporary.
6078 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6080         PR c++/79821
6081         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
6082         to void * for PCH reasons.
6083         * dwarf2out.c (output_loc_operands, output_die): Cast
6084         v.val_vec.array to unsigned char *.
6086 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
6088         PR target/77850
6089         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
6090         vector types.
6092 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
6094         PR rtl-optimization/79571
6095         * lra-constraints.c (process_alt_operands): Calculate static
6096         reject and subtract it from overall when only addresses will be
6097         reloaded.
6099 2017-03-06  Julia Koval  <julia.koval@intel.com>
6101         PR target/79793
6102         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
6103         incoming stack boundary to 128 for 64-bit targets.
6105 2017-03-06  Richard Biener  <rguenther@suse.de>
6107         PR tree-optimization/79894
6108         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
6109         to NULL after folding it.
6111 2017-03-06  Richard Biener  <rguenther@suse.de>
6113         PR tree-optimization/79824
6114         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
6115         check disabling peeling for gaps.
6117 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
6119         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6120         attributes): Document gettimeofday.
6122 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6124         * config/s390/s390.c (s390_option_override_internal): Set
6125         PARAM_MIN_VECT_LOOP_BOUND
6127 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6129         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
6130         * config/s390/s390.md: Likewise.
6132 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6134         PR target/79812
6135         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
6136         (<avx2_avx512>_perm<mode>): Rename to ...
6137         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
6138         of VI8F_256_512.
6139         (<avx512>_perm<mode>_mask): Rename to ...
6140         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
6141         of VI8F_256_512.
6142         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
6143         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
6144         instead of VI8F_256_512.
6145         (avx512f_perm<mode>): New define_expand.
6146         (avx512f_perm<mode>_mask): Likewise.
6147         (avx512f_perm<mode>_1<mask_name>): New define_insn.
6148         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
6150 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6152         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
6153         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
6154         if_then_else.
6155         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
6157 2017-03-06  Martin Liska  <mliska@suse.cz>
6159         PR sanitize/79783
6160         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
6161         when having a SSA NAME w/o VAR_DECL assigned to it.
6163 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6165         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
6166         msa_dpsub_<su>_d): Fix MODE for vec_select.
6168 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6170         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
6171         argument.
6172         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
6174 2017-03-06  Richard Biener  <rguenther@suse.de>
6176         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
6177         * plugin.c (register_plugin_info): Likewise.
6178         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
6180 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
6182         * config/i386/sse.md (sse_storehps, sse_storelps,
6183         avx_<castmode><avxsizesuffix>_<castmode>,
6184         avx512f_<castmode><avxsizesuffix>_<castmode>,
6185         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
6186         in condition that at least one operand is not a MEM.
6188 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6190         PR middle-end/79805
6191         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
6192         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
6193         ECF_NOTHROW.
6194         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
6195         gimple_call_nothrow_p flag based on whether original builtin can throw.
6196         If it can, emit following stmts on the fallthrough edge.
6197         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
6198         don't create new bb if inserting just debug stmts on the edge, try to
6199         insert them on the fallthru bb or just reset debug stmts.
6201 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
6203         PR target/43763
6204         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
6205         restore recog_data (including the operand rtxes inside it) around
6206         the call to get_insn_template.
6208 2017-03-03  Martin Sebor  <msebor@redhat.com>
6210         PR tree-optimization/79699
6211         * context.c (context::~context): Free MPFR caches to avoid
6212         a memory leak on program exit.
6214 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6216         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
6217         Use wide_int::ulow () instead of .elt (0).
6219 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6221         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
6222         (*pushxf): Limit oF constraint to 32bit targets and add oC
6223         constraint for 64bit targets.
6224         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
6225         (*pushdf): Change rmF constraint to rmC.
6227 2017-03-03  Martin Liska  <mliska@suse.cz>
6229         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
6230         Remove unused variable.
6232 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6234         PR target/79807
6235         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
6236         is a memory operand, increase num_memory.
6237         (ix86_expand_args_builtin): Likewise.
6239 2017-03-03  Jan Hubicka  <jh@suse.cz>
6241         PR lto/79760
6242         * ipa-devirt.c (maybe_record_node): Properly handle
6243         __cxa_pure_virtual visibility.
6245 2017-03-03  Martin Liska  <mliska@suse.cz>
6247         PR tree-optimization/79803
6248         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
6249         assert.
6250         (pass_loop_prefetch::execute): Disabled optimization if an
6251         assumption about L1 cache size is not met.
6253 2017-03-03  Martin Liska  <mliska@suse.cz>
6255         PR rtl-optimization/79574
6256         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
6257         (hash_scan_set): Likewise.
6258         (dump_hash_table): Likewise.
6259         (hoist_code): Likewise.
6261 2017-03-03  Richard Biener  <rguenther@suse.de>
6263         * fixed-value.c (fixed_from_string): Restore use of elt (1)
6264         in place of uhigh ().
6265         (fixed_convert_from_real): Likewise.
6267 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6269         PR target/79514
6270         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
6272 2017-03-03  Richard Biener  <rguenther@suse.de>
6274         PR middle-end/79818
6275         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
6276         TYPE_OVERFLOW_UNDEFINED check.
6278 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6280         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
6281         numbers.
6282         (vector_ae_<mode>_p): Likewise.
6283         (vector_nez_<mode>_p): Likewise.
6284         (vector_ne_v2di_p): Likewise.
6285         (vector_ae_v2di_p): Likewise.
6286         (vector_ne_<mode>_p): Likewise.
6287         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
6288         numbers.
6289         (vsx_tsqrt<mode>2_fe): Likewise.
6291 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
6293         PR target/79514
6294         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
6296 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
6298         PR rtl-optimization/79780
6299         * cprop.c (one_cprop_pass): When second and further conditional trap
6300         in a single basic block is turned into an unconditional trap, turn it
6301         into a deleted note to avoid RTL verification failures.
6303 2017-03-02  Richard Biener  <rguenther@suse.de>
6305         * fold-const.c (const_binop): Use ulow () instead of elt (0).
6307 2017-03-02  Richard Biener  <rguenther@suse.de>
6309         PR tree-optimization/79345
6310         PR c++/42000
6311         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
6312         param and abort the walk, returning -1 if it is hit.
6313         (walk_aliased_vdefs): Take a limit param and pass it on.
6314         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
6315         defaulting to 0 and return a signed int.
6316         * tree-ssa-uninit.c (struct check_defs_data): New struct.
6317         (check_defs): New helper.
6318         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
6319         about uninitialized memory.
6320         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
6321         bogus uninitialized warning.
6322         (fixed_convert_from_real): Likewise.
6324 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
6326         PR tree-optimization/66768
6327         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
6328         iv_use if base object can't be determined.
6330 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
6332         PR tree-optimization/79345
6333         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
6334         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
6335         (get_pattern_stats): Initialize it.
6336         * genemit.c (gen_expand): Verify match_scratch numbers come after
6337         match_operand/match_dup numbers.
6338         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
6339         match_scratch numbers.
6340         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
6341         Likewise.
6342         * config/s390/s390.md (trunctdsd2): Likewise.
6344 2017-03-02  Richard Biener  <rguenther@suse.de>
6346         * wide-int.h (wide_int_storage::operator=): Implement in terms
6347         of wi::copy.
6349 2017-03-02  Richard Biener  <rguenther@suse.de>
6351         PR tree-optimization/79777
6352         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
6353         the to insert expression to sth existing.
6355 2017-03-01  Martin Sebor  <msebor@redhat.com>
6357         PR middle-end/79692
6358         * gimple-ssa-sprintf.c
6359         (directive::known_width_and_precision): New function.
6360         (format_integer): Use it.
6361         (get_mpfr_format_length): Consider the full range of precision
6362         when computing %g output with the # flag.  Set the likely byte
6363         count to 3 rather than 1 when precision is indeterminate.
6364         (format_floating): Correct the lower bound of precision.
6366 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6368         * doc/invoke.texi: Document default code model for 64-bit Linux.
6370 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6372         PR target/79752
6373         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
6374         udiv rather than div since input pattern is unsigned.
6376 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
6378         * config/i386/i386.c (print_reg): Warn for values of
6379         unsupported size in integer register.
6381 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6383         PR target/79439
6384         * config/rs6000/predicates.md (current_file_function_operand): Do
6385         not allow self calls to be local if the function is replaceable.
6387 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6389         PR target/79395
6390         * config/rs6000/altivec.h (vec_ctz and others): Change the
6391         preprocessor macro that controls conditional compilation from
6392         _ARCH_PWR9 to __POWER9_VECTOR__.
6393         (vec_all_ne): Change parameterization of __altivec_scalar_pred
6394         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
6395         control (instead of _ARCH_PWR9 control) so that template
6396         definition uses power9-specific function.
6397         (vec_any_eq): Likewise.
6398         (vec_all_ne): Change macro definition to use a power9-specific
6399         expansion under #ifdef __POWER9_VECTOR__ control (instead of
6400         _ARCH_PWR9 control).
6401         (vec_any_eq) Likewise.
6402         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
6403         expansion for CMPNEF to remove support for xvcmpnesp instruction.
6404         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
6405         support for xvcmpnedp instruction.
6406         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
6407         macro expansion so that Power9 implementation of vec_all_ne does
6408         not use the AltiVec predicate framework.
6409         (VCMPNEH_P): Likewise.
6410         (VCMPNEW_P): Likewise.
6411         (VCMPNED_P): Likewise.
6412         (VCMPNEFP_P): Likewise.
6413         (VCMPNEDP_P): Likewise.
6414         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
6415         implementation of vec_any_eq to not use AltiVec predicate
6416         framework.
6417         (VCMPAEH_P): Likewise.
6418         (VCMPAEW_P): Likewise.
6419         (VCMPAED_P): Likewise.
6420         (VCMPAEFP_P): Likewise.
6421         (VCMPAEDP_P): Likewise.
6422         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
6423         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
6424         not use the AltiVec predicate framework.
6425         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
6426         of vec_any_eq to not use AltiVec predicate framework.
6427         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6428         support for predefined __POWER9_VECTOR__ macro to indicate that
6429         Power9 instruction selection is enabled.
6430         (altivec_overloaded_builtins): Remove extraneous
6431         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
6432         function argument types RS6000_BTI_bool_V16QI and
6433         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
6434         entry for overloaded function argument types RS6000_BTI_bool_V4SI
6435         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
6436         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
6437         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
6438         Power9 for implementations of vec_cmpne.  Change the signature for
6439         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
6440         (representing vec_all_ne) to remove the previously described first
6441         argument of type RS6000_BTI_INTSI, as this was an artifact of
6442         reliance on the AltiVec predicate framework, which is no longer
6443         used in the implementation of these functions.  Add
6444         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
6445         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
6446         since, unlike the AltiVec predicate framework implementation, we
6447         do not share function descriptors between vec_alle and vec_anyeq.
6448         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
6449         set of modes that receive special treatment even when
6450         TARGET_P9_VECTOR is true.  The special treatment emits code that
6451         does not depend on Power9 instructions.
6452         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
6453         define_expand to not rely on AltiVec predicate framework.
6454         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6455         function.
6456         (vector_ne_v2di_p): Change this define_expand to not rely on
6457         AltiVec predicate framework.
6458         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
6459         function.
6460         (vector_ne_<mode>_p): Change this define_expand to not rely on
6461         AltiVec predicate framework.
6462         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6463         function.
6464         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
6465         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
6466         define_insn pattern.
6467         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
6468         define_insn pattern because the xvcmpne<VSs>. instruction is not
6469         supported.
6470         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
6471         instruction is not supported.
6473 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6475         * config/nvptx/nvptx.c: Include intl.h.
6477 2017-03-01  Martin Jambor  <mjambor@suse.cz>
6479         PR lto/78140
6480         * ipa-prop.h (ipa_bits): Removed field known.
6481         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
6482         to pointers.  Adjusted their comments to warn about their sharing.
6483         (ipcp_transformation_summary): Change bits to a vector of pointers.
6484         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
6485         (ipa_get_ipa_bits_for_value): Declare.
6486         * tree-vrp.h (value_range): Mark as GTY((for_user)).
6487         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
6488         (ipa_bits_hash_table): Likewise.
6489         (ipa_vr_ggc_hash_traits): Likewise.
6490         (ipa_vr_hash_table): Likewise.
6491         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
6492         being pointers and vr_known being removed.
6493         (ipa_set_jf_unknown): Likewise.
6494         (ipa_get_ipa_bits_for_value): New function.
6495         (ipa_set_jfunc_bits): Likewise.
6496         (ipa_get_value_range): New overloaded functions.
6497         (ipa_set_jfunc_vr): Likewise.
6498         (ipa_compute_jump_functions_for_edge): Use the above functions to
6499         construct bits and vr parts of jump functions.
6500         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
6501         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6502         exist.
6503         (ipcp_grow_transformations_if_necessary): Also allocate
6504         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6505         exist.
6506         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
6507         them.  Fix too long lines.
6508         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
6509         vr_known being removed.
6510         (ipa_read_jump_function): Use new setter functions to construct bits
6511         and vr parts of jump functions or set them to NULL.
6512         (write_ipcp_transformation_info): Adjust for bits being pointers.
6513         (read_ipcp_transformation_info): Likewise.
6514         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
6515         space.
6516         Include gt-ipa-prop.h.
6517         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
6518         being pointers.
6519         (ipcp_store_bits_results): Likewise.
6520         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
6521         Do not write to existing jump functions but use a temporary instead.
6523 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6525         PR c++/79681
6526         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
6527         attempt to use its first operand as BIT_FIELD_REF base.
6529 2017-03-01  Richard Biener  <rguenther@suse.de>
6531         PR middle-end/79721
6532         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
6533         interpolating formula in wrapping arithmetic.
6534         (chrec_apply): Convert chrec_evaluate return value to wanted type.
6536 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6538         PR tree-optimization/79734
6539         * tree-vect-generic.c (expand_vector_condition): Optimize
6540         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
6541         Handle VEC_COND_EXPR where comparison has different inner width from
6542         type's inner width.
6544 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
6546         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
6547         markup, and similar issues.  Remove @opindex entries for things
6548         that aren't options.  Add missing -mmpy-option entries.
6550 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6552         PR tree-optimization/79737
6553         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
6554         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
6555         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
6556         instead of byte_size.  Formatting fix.
6557         (shift_bytes_in_array_right): Formatting fix.
6559 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6561         PR target/79749
6562         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
6563         condition on optimize for the leaf function test.
6565 2017-02-28  Martin Liska  <mliska@suse.cz>
6567         PR lto/79625
6568         * read-rtl-function.c (function_reader::handle_unknown_directive):
6569         Bail out when one uses -flto.
6571 2017-02-28  Martin Liska  <mliska@suse.cz>
6573         * common.opt: Replace space with tabular for options of <number>
6574         type.
6575         * config/i386/i386.opt: Show <number> value for
6576         -mlarge-data-threshold.
6577         * opts.c (print_filtered_help): Do not display number in hexadecimal
6578         format.
6580 2017-02-28  Martin Liska  <mliska@suse.cz>
6582         * common.opt: Fix --help=option -Q for options which are of
6583         an enum type.
6585 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
6587         * config/i386/i386.c (print_reg): Error out for values
6588         of 8-bit size in invalid integer register.
6590 2017-02-28  Martin Sebor  <msebor@redhat.com>
6592         PR tree-optimization/79691
6593         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
6595 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6597         PR target/79729
6598         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
6599         gcc_unreachable with output_operand_lossage.
6601 2017-02-28  Richard Biener  <rguenther@suse.de>
6603         PR tree-optimization/79740
6604         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
6605         inserts.
6606         (visit_nary_op): Insert the nary into the hashtable if we
6607         pattern-matched sth.
6608         * tree-ssa-pre.c (eliminate_insert): Robustify.
6610 2017-02-28  Richard Biener  <rguenther@suse.de>
6612         PR middle-end/79731
6613         * fold-const.c (decode_field_reference): Reject out-of-bound
6614         accesses.
6616 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6618         * config/i386/i386.c: Include intl.h.
6619         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
6620         instead of just cond ? "..." : "...".
6621         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
6622         * coverage.c (read_counts_file): Likewise.
6623         * omp-offload.c: Include intl.h.
6624         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
6625         of just cond ? "..." : "...".
6626         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
6627         of just cond ? "..." : "...".
6629 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
6631         PR target/79742
6632         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
6633         entry, if present.
6634         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
6635         'tune for' CPU name.
6636         * config/arm/arm-cpu-data.h: Regenerated.
6638 2017-02-28  Richard Biener  <rguenther@suse.de>
6640         PR tree-optimization/79732
6641         * tree-inline.c (expand_call_inline): Do not shadow var.
6643 2017-02-28  Richard Biener  <rguenther@suse.de>
6645         PR tree-optimization/79723
6646         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
6647         address-space properly.
6649 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
6651         * doc/optinfo.texi (Optimization groups): Fix option used for
6652         OPTGROUP_ALL.
6653         * doc/invoke.texi (-fopt-info): Document "omp".
6654         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
6655         (OPTGROUP_ALL): Add OPTGROUP_OMP.
6656         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
6657         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
6658         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
6660         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
6661         all users.
6662         * dumpfile.c (optgroup_options): Instead of "openmp", associate
6663         OPTGROUP_OMP with "omp".
6665 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
6667         PR target/79544
6668         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
6669         for arithmetic shift of unsigned V2DI.
6671 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
6673         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
6674         arc/linux.h headers.
6675         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
6676         (LINK_SPEC): Likewise.
6677         (ARC_TLS_EXTRA_START_SPEC): Likewise.
6678         (EXTRA_SPECS): Likewise.
6679         (STARTFILE_SPEC): Likewise.
6680         (ENDFILE_SPEC): Likewise.
6681         (LIB_SPEC): Likewise.
6682         (TARGET_SDATA_DEFAULT): Likewise.
6683         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
6684         (MULTILIB_DEFAULTS): Likewise.
6685         (DWARF2_UNWIND_INFO): Likewise.
6686         * config/arc/big.h: New file.
6687         * config/arc/elf.h: Likewise.
6688         * config/arc/linux.h: Likewise.
6689         * config/arc/t-uClibc: Remove.
6691 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
6693         PR tree-optimization/77536
6694         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
6695         (tree_transform_and_unroll_loop): Use above function to compute the
6696         estimated niter of unrolled loop and use it when scaling profile.
6697         Also use count info rather than frequency if it's non-zero.
6698         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
6699         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
6700         (vect_transform_loop): Call above function.
6702 2017-02-27  Richard Biener  <rguenther@suse.de>
6704         PR tree-optimization/45397
6705         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
6706         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
6707         (visit_nary_op): Add pattern matching for CSEing sign-changed
6708         or truncated operations with wider ones.
6710 2017-02-27  Richard Biener  <rguenther@suse.de>
6712         PR tree-optimization/79690
6713         * tree-vect-stmts.c (vectorizable_store): Use vector type
6714         built from the DR with address-space.
6716 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6718         * doc/invoke.texi (Optimize Options): Refine the description
6719         of asan-use-after-return.
6721 2017-02-25  Alan Modra  <amodra@gmail.com>
6723         PR rtl-optimization/79584
6724         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
6725         base, not ad->base_term, the reg within base.  Remove assertion
6726         that ad->base == ad->base_term.  Replace gen_int_mode using
6727         bogus mode with const0_rtx.
6729 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
6731         PR middle-end/79396
6732         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
6733         FMA_EXPR like tcc_binary or tcc_unary.
6735         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
6737         PR debug/77589
6738         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
6739         bitfield.
6740         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
6741         (output_loc_operands): Handle DW_OP_call_ref and
6742         DW_OP_GNU_variable_value.
6743         (struct variable_value_struct): New type.
6744         (struct variable_value_hasher): Likewise.
6745         (variable_value_hash): New variable.
6746         (string_types): Remove.
6747         (copy_loc_descr): New function.
6748         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
6749         (prepend_loc_descr_to_each): New function.
6750         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
6751         instead of add_loc_descr_to_each if the first argument is single
6752         location list and the second has multiple.
6753         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
6754         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
6755         when looking for variable value which doesn't have other location info.
6756         (loc_list_from_tree): Formatting fix.
6757         (gen_array_type_die): Simplify DW_AT_string_length handling.
6758         (adjust_string_types): Remove.
6759         (gen_subprogram_die): Don't call adjust_string_types nor test/set
6760         string_types.  Call resolve_variable_values.
6761         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
6762         (resolve_addr_in_expr): Likewise.  Add A argument.
6763         (copy_deref_exprloc): Remove deref argument.  Adjust for the
6764         original expression being DW_OP_GNU_variable_value with optionally
6765         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
6766         optionally after it.
6767         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
6768         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
6769         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
6770         (variable_value_hasher::hash, variable_value_hasher::equal): New
6771         methods.
6772         (resolve_variable_value_in_expr, resolve_variable_value,
6773         resolve_variable_values, note_variable_value_in_expr,
6774         note_variable_value): New functions.
6775         (dwarf2out_early_finish): Call note_variable_value on all toplevel
6776         DIEs.
6778 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
6780         PR c/79677
6781         * opts.h (handle_generated_option): Add GENERATED_P argument.
6782         * opts-common.c (handle_option): Adjust function comment.
6783         (handle_generated_option): Add GENERATED_P argument, pass it to
6784         handle_option.
6785         (control_warning_option): Pass false to handle_generated_option
6786         GENERATED_P.
6787         * opts.c (maybe_default_option): Pass true to handle_generated_option
6788         GENERATED_P.
6789         * optc-gen.awk: Likewise.
6791 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
6793         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
6794         a REG, look at the REG it is a SUBREG of.
6795         (splitter for cmpeqsi_t): Ditto.
6797 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
6799         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
6800         the special USEs with the pattern of the insn, not the insn itself.
6802 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
6804         PR target/79473
6805         * doc/invoke.texi: Document -mload-store-pairs.
6807 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
6808             Sandra Loosemore  <sandra@codesourcery.com>
6810         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
6811         argument isn't a CONST_INT.
6812         (nios2_alternate_compare_const): Assert op is a CONST_INT.
6813         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
6814         (nios2_validate_compare): Bypass alternate compare logic if *op2
6815         is not a CONST_INT.
6816         (ldstwm_operation_p): Return false if first_base is not a REG or
6817         if first_offset is not a CONST_INT.
6819 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
6821         * config/cris/cris.md: Use correct operand in a define_peephole2.
6823 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
6825         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
6827 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
6829         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
6830         this_insn if it is an INSN or JUMP_INSN.
6831         (force_offsettable): Look at base, not at addr.
6832         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
6833         on things that aren't necessarily CONST_INTs.
6835 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
6837         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
6838         -mfpmath=sse is the default also for x86-32 targets with SSE2
6839         instruction set when @option{-ffast-math} is enabled
6841 2017-02-24  Jeff Law  <law@redhat.com>
6843         PR rtl-optimizatoin/79286
6844         * ira.c (update_equiv_regs): Drop may_trap_p exception to
6845         dominance test.
6847 2017-02-24  Richard Biener  <rguenther@suse.de>
6849         PR tree-optimization/79389
6850         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
6851         debug insns.
6853 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
6855         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
6856         function comment to reflect reality.
6857         (loop_exits_before_overflow): Fix typo in function description.
6859 2017-02-24  Richard Biener  <rguenther@suse.de>
6861         PR tree-optimization/79389
6862         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
6863         properly that a threading opportunity exists.  Detect conditional
6864         copy/constant propagation opportunities.
6866 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
6868         * config/visium/visium.md (type): Add trap.
6869         (b): New mode attribute.
6870         (*btst): Rename into...
6871         (*btst<mode>): ...this and adjust.
6872         (*cbranchsi4_btst_insn): Rename into...
6873         (*cbranch<mode>4_btst_insn): ...this and adjust.
6874         (trap): New define_insn.
6876 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
6878         PR tree-optimization/79389
6879         * ifcvt.c (struct noce_if_info): Add rev_cond field.
6880         (noce_reversed_cond_code): New function.
6881         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
6882         reversed_comparison_code.  Formatting fix.
6883         (noce_try_store_flag): Test rev_cond != NULL in addition to
6884         reversed_comparison_code.
6885         (noce_try_store_flag_constants): Likewise.
6886         (noce_try_store_flag_mask): Likewise.
6887         (noce_try_addcc): Use rev_cond if non-NULL instead of
6888         reversed_comparison_code.
6889         (noce_try_cmove_arith): Likewise.  Formatting fixes.
6890         (noce_try_minmax, noce_try_abs): Clear rev_cond.
6891         (noce_find_if_block): Initialize rev_cond.
6892         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
6893         instead of false as last argument never attempt to reverse it
6894         afterwards.
6896 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
6898         PR tree-optimization/79663
6899         * tree-predcom.c (combine_chains): Process refs in reverse order
6900         only for ZERO length chains, and add explaining comment.
6902 2017-02-23  Jeff Law  <law@redhat.com>
6904         PR tree-optimization/79578
6905         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
6906         in call to operand_equal_p.
6908 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
6910         PR target/71017
6911         * config/i386/cpuid.h: Fix another undefined behavior.
6913 2017-02-23  Richard Biener  <rguenther@suse.de>
6915         PR tree-optimization/79683
6916         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
6917         vector types for data-refs.
6919 2017-02-23  Martin Liska  <mliska@suse.cz>
6921         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
6923 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
6925         PR middle-end/79665
6926         * internal-fn.c (get_range_pos_neg): Moved to ...
6927         * tree.c (get_range_pos_neg): ... here.  No longer static.
6928         * tree.h (get_range_pos_neg): New prototype.
6929         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
6930         are known to be in between 0 and signed maximum inclusive, try to
6931         expand both unsigned and signed divmod and use the cheaper one from
6932         those.
6934 2017-02-22  Jeff Law  <law@redhat.com>
6936         PR tree-optimization/79578
6937         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
6938         to compare base operands.
6940 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
6942         PR target/79211
6943         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
6944         gpc_reg_operand instead of fpr_reg_operand.
6946 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
6948         * config/mips/mips.c (mips_return_in_memory): Force FP
6949         vector types to be returned in memory for o32 ABI.
6951 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
6953         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
6954         instead of DW_TAG_member for static data member declarations and don't
6955         set no_linkage_name for static inline data members.
6956         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
6957         to DW_TAG_member.
6959 2017-02-22  Martin Liska  <mliska@suse.cz>
6961         * doc/invoke.texi: Replace inequality signs with square brackets
6962         for -Wnormalized.
6964 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6966         PR tree-optimization/68644
6967         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
6969 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
6971         PR target/78660
6972         * lra-constraints.c (simplify_operand_subreg): Handle
6973         WORD_REGISTER_OPERATIONS targets.
6975 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
6977         PR target/70465
6978         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
6979         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
6980         elimination by swapping fld*.
6982 2017-02-22  Richard Biener  <rguenther@suse.de>
6984         PR tree-optimization/79673
6985         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
6986         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
6987         irrelevant address-space qualifiers and avoiding a
6988         ADDR_SPACE_CONVERT_EXPR from fold_convert.
6990 2017-02-22  Richard Biener  <rguenther@suse.de>
6992         PR tree-optimization/79666
6993         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
6994         to not symbolically negate if that may introduce undefined
6995         overflow.
6997 2017-02-22  Martin Liska  <mliska@suse.cz>
6999         PR lto/79587
7000         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
7001         * data-streamer-out.c (streamer_write_gcov_count_stream):
7002         Likewise.
7003         * value-prof.c (stream_out_histogram_value): Make assert more
7004         precise based on type of counter.
7006 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
7008         PR target/79593
7009         * config/i386/i386.md (standard_x87sse_constant_load splitter):
7010         Use nonimmediate_operand instead of memory_operand for operand 1.
7011         (float-extend standard_x87sse_constant_load splitter): Ditto.
7013 2017-02-21  Jeff Law  <law@redhat.com>
7015         PR tree-optimization/79621
7016         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
7017         blocks with edges to themselves.
7019 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7021         PR target/79633
7022         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
7023         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
7024         Use gimple_call_builtin_p.
7026         PR target/79570
7027         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
7028         on temporarily removed DEBUG_INSNs.
7030         PR tree-optimization/79649
7031         * tree-loop-distribution.c (classify_partition): Give up on
7032         non-generic address space loads/stores.
7034 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
7036         * doc/loop.texi (Loop manipulation): Remove nonexistent
7037         tree_ssa_loop_version from the documentation.
7038         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
7040 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7042         PR target/79494
7043         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
7044         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
7045         * config/rs6000/rs6000.c: Include except.h.
7046         (rs6000_expand_split_stack_prologue): Call
7047         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
7049 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7051         PR lto/79579
7052         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
7053         have been analyzed.
7055 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7057         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
7058         for backward compatibility only.
7059         * doc/invoke.texi (Option Summary): Remove all references to
7060         -fipa-cp-alignment.
7062 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
7064         PR target/78660
7065         Revert:
7066         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7068         * lra-constraints.c (curr_insn_transform): Handle
7069         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7071 2017-02-21  Martin Liska  <mliska@suse.cz>
7073         * config/i386/i386.opt: Replace -masm-dialect with -masm.
7075 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
7077         PR translation/79638
7078         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
7080 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
7082         PR ada/67205
7083         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7084         (arm_function_ok_for_sibcall): Return false for an indirect call by
7085         descriptor if all the argument registers are used.
7086         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
7087         alignment of the function.
7089 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7091         PR tree-optimization/61441
7092         * simplify-rtx.c (simplify_const_unary_operation): For
7093         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
7094         the sNaN unmodified.
7096 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7098         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7099         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7100         instead of SYSTEM_HEADER_DIR.
7102 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
7103             Martin LiÅ¡ka  <mliska@suse.cz>
7105         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
7106         Fix typos and grammar, use active voice, and clarify.
7108 2017-02-20  Marek Polacek  <polacek@redhat.com>
7110         PR middle-end/79537
7111         * gimplify.c (gimplify_expr): Handle unused *&&L;.
7113         PR sanitizer/79558
7114         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
7116 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
7118         PR target/79568
7119         * config/i386/i386.c (ix86_expand_builtin): Handle
7120         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
7121         ix86_builtins_isa[fcode].isa as a requirement of those
7122         flags and any other flag in the bitmask.
7123         (ix86_init_mmx_sse_builtins): Use 0 instead of
7124         ~OPTION_MASK_ISA_64BIT as mask.
7125         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
7126         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
7127         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
7128         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
7130 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7132         PR target/78012
7133         * lra-constraints.c (split_reg): Check requested split mode
7134         is supported by the register.
7136 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7138         * lra-constraints.c (simplify_operand_subreg): Remove early
7139         return false.
7141 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7143         PR target/78660
7144         * lra-constraints.c (curr_insn_transform): Tighten condition
7145         for converting SUBREG reloads from OP_OUT to OP_INOUT.
7147 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7149         PR target/78660
7150         * lra-constraints.c (curr_insn_transform): Handle
7151         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7153 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
7155         Revert:
7156         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
7158         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7160 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
7162         PR c++/69523
7163         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
7164         description.
7166 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7168         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
7169         for FMA_EXPR.
7171 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
7173         * final.c (last_columnnum, override_columnnum): New variables.
7174         (final_start_function): Set last_columnnum, pass it to begin_prologue
7175         hook and pass 0 to dwarf2out_begin_prologue.
7176         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
7177         to source_line debug hook.
7178         (notice_source_line): Compute last_columnnum and for debug_column_info
7179         return true on column changes.
7180         * debug.h (struct gcc_debug_hooks): Add column argument to
7181         source_line and begin_prologue hooks.
7182         (debug_nothing_int_charstar_int_bool): Remove prototype.
7183         (debug_nothing_int_int_charstar,
7184         debug_nothing_int_int_charstar_int_bool): New prototypes.
7185         (dwarf2out_begin_prologue): Add column argument.
7186         * debug.c (do_nothing_debug_hooks): Adjust source_line and
7187         begin_prologue hooks.
7188         (debug_nothing_int_charstar_int_bool): Remove.
7189         (debug_nothing_int_int_charstar,
7190         debug_nothing_int_int_charstar_int_bool): New functions.
7191         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
7192         through to dwarf2out_source_line.
7193         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
7194         (dwarf2out_source_line): Add column argument, emit it if requested.
7195         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
7196         arguments.
7197         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7198         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7199         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
7200         through to dwarf2out_begin_prologue.
7201         (vmsdbgout_source_line): Add column argument, pass it through to
7202         dwarf2out_source_line.
7203         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
7204         dbxout_source_line caller.
7205         (dbxout_source_line): Add column argument.
7207         * common.opt (gno-column-info, gcolumn-info): New options.
7208         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
7209         (check_die): Also test for multiple DW_AT_decl_column attributes.
7210         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
7211         DW_AT_decl_column if requested.
7212         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
7213         if requested.
7214         (gen_variable_die): Likewise.
7215         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
7216         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
7218         PR target/79569
7219         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
7220         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
7221         (ix86_handle_option): Handle OPT_m3dnowa.
7222         * doc/invoke.texi (-m3dnowa): Document.
7223         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
7224         -m3dnowa instead of -m3dnow -march=athlon.
7226         PR target/79559
7227         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
7228         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
7230 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7232         PR target/79261
7233         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
7234         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
7235         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
7236         generator for vsx_xxpermdi_<mode>_be.
7237         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
7238         force big-endian semantics.
7239         (vsx_xxpermdi_<mode>_be): New define_expand with same
7240         implementation as previous version of vsx_xxpermdi_<mode>.
7242 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
7244         PR tree-optimization/79327
7245         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
7246         variable, its initialization and use.
7248 2017-02-17  Julia Koval  <julia.koval@intel.com>
7250         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
7251         (OPTION_MASK_ISA_PKU_UNSET): New.
7252         (ix86_handle_option): Handle -mrdpid.
7253         * config/i386/cpuid.h (bit_RDPID): New.
7254         * config/i386/driver-i386.c (host_detect_local_cpu):
7255         Detect RDPID feature.
7256         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
7257         * config/i386/i386-c.c (ix86_target_macros_internal):
7258         Handle RDPID flag.
7259         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
7260         (ix86_valid_target_attribute_inner_p): Add "rdpid".
7261         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
7262         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
7263         * config/i386/i386.md (define_insn "rdpid"): New.
7264         * config/i386/i386.opt Add -mrdpid.
7265         * config/i386/immintrin.h (_rdpid_u32): New.
7267 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
7269         PR rtl-optimization/79541
7270         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
7271         instead of transforming it into USE.
7273 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
7275         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
7276         If HONOR_SNANS (SFmode) force the input to a register.
7277         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
7278         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
7279         an frsp or similar insn.
7281 2017-02-17  Martin Liska  <mliska@suse.cz>
7283         PR rtl-optimization/79577
7284         * params.def (selsched-max-sched-times): Increase minimum to 1.
7286 2017-02-17  Martin Liska  <mliska@suse.cz>
7288         PR rtl-optimization/79574
7289         * gcse.c (want_to_gcse_p): Prevent integer overflow.
7291 2017-02-17  Martin Liska  <mliska@suse.cz>
7293         PR tree-optimization/79529
7294         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
7295         ssa_defined_default_def_p to handle cases which are implicitly
7296         defined.
7297         * tree-ssa.c (ssa_defined_default_def_p): New function.
7298         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
7299         which are implicitly defined.
7300         * tree-ssa.h (ssa_defined_default_def_p): Declare.
7302 2017-02-17  Richard Biener  <rguenther@suse.de>
7304         PR middle-end/79576
7305         * params.def (max-ssa-name-query-depth): Limit to 10.
7307 2017-02-17  Richard Biener  <rguenther@suse.de>
7309         PR tree-optimization/79552
7310         * tree-ssa-structalias.c (visit_loadstore): Properly verify
7311         default defs.
7313 2017-02-17  Richard Biener  <rguenther@suse.de>
7315         PR bootstrap/79567
7316         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
7318 2017-02-17  Marek Polacek  <polacek@redhat.com>
7320         PR middle-end/79536
7321         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
7322         (fold_negate_expr): New wrapper.
7324 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
7326         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
7327         Correct terminology and de-emphasize pre-standard behavior.
7329 2017-02-16  Alan Modra  <amodra@gmail.com>
7331         PR rtl-optimization/79286
7332         * ira.c (def_dominates_uses): New function.
7333         (update_equiv_regs): Don't create an equivalence for insns that
7334         may trap where the register def does not dominate the use.
7336 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
7338         PR rtl-optimization/78127
7339         * lra.c (lra): Call lra_eliminate before finish the loop after
7340         lra_constraint.
7342 2017-02-16  Richard Biener  <rguenther@suse.de>
7344         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
7345         isl/isl_val.h.
7346         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
7347         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
7348         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
7349         (isl_val_int_from_wi): New function.
7350         (extract_affine_gmp): Rename to ...
7351         (extract_affine_wi): ... this, take a widest_int.
7352         (extract_affine_int): Just wrap extract_affine_wi.
7353         (add_param_constraints): Use isl_val_int_from_wi.
7354         (add_loop_constraints): Likewise, and extract_affine_wi.
7356 2017-02-15  Jeff Law  <law@redhat.com>
7358         PR middle-end/79521
7359         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
7360         ira_init_register_move_cost_if_necessary.
7362 2017-02-15  Martin Sebor  <msebor@redhat.com>
7364         PR middle-end/32003
7365         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
7366         removed in a prior commit.
7368 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
7370         PR tree-optimization/79347
7371         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
7372         counters during peeling.
7374 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
7376         * Makefile.in (site.exp): Remove "set ISLVER".
7378 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
7380         PR target/79487
7381         * real.c (real_from_integer): Call real_convert even for decimal.
7383 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7385         PR target/79421
7386         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7388 2017-02-14  Andrew Pinski  <apinski@cavium.com>
7390         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
7391         cores and change the partno/implementer to be correct.
7392         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
7393         the 'B" as the implementer.
7394         * config/aarch64/aarch64-tune.md: Regenerate.
7396 2017-02-14  Carl Love  <cel@us.ibm.com>
7398         * config/rs6000/rs6000.c: Add case statement entry to make the
7399         xvcvuxdsp built-in argument unsigned.
7400         * config/rs6000/vsx.md: Fix the source and return operand types so they
7401         match the instruction definitions from the ISA document.  Fix typo
7402         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
7403         statement.
7405 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
7407         PR target/79282
7408         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
7409         member early_clobber_alts.
7410         * lra-lives.c (reg_early_clobber_p): New.
7411         (process_bb_lives): Use it.
7412         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
7413         (debug_operand_data): Initialize early_clobber_alts.
7414         (setup_operand_alternative): Set up early_clobber_alts.
7415         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
7416         alternatives to new_insn_reg.
7417         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
7418         it.
7419         (lra_update_insn_regno_info): Pass the new arg.
7421 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
7423         PR middle-end/79505
7424         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
7425         (new_oacc_loop_raw): Don't clear already cleared fields.
7427         PR target/79481
7428         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
7429         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
7430         _mm512_prefetch_i64gather_ps): New inline functions and macros.
7432 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
7434         PR target/79495
7435         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
7437 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
7439         PR target/79498
7440         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
7441         the extra instruction to the right place to store 128-bit constant
7442         when needed.
7444 2017-02-14  Martin Sebor  <msebor@redhat.com>
7446         PR middle-end/79448
7447         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
7448           warning for strings of unknown length.
7450 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
7452         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
7454 2017-02-14  Jeff Law  <law@redhat.com>
7456         PR target/79404
7457         * ira-costs.c (scan_one_insn): Initialize register move costs
7458         for pseudos seen in USE/CLOBBER insns.
7460         PR tree-optimization/79095
7461         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
7462         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
7463         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
7464         if the operands are known to be not equal, then the resulting range
7465         is ~[0,0].
7466         (intersect_ranges): If the new range is ~[0,0] and the old range is
7467         wide, then prefer ~[0,0].
7468         * tree-vrp.c (overflow_comparison_p_1): New function.
7469         (overflow_comparison_p): New function.
7470         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
7471         if NAME is used in an overflow test.
7472         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
7473         overflow check that can be expressed as an equality test, then adjust
7474         ops to be that equality test.
7476 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7478         * config/s390/s390-builtin-types.def: Remove flags argument.
7479         * config/s390/s390.c (s390_init_builtins): Likewise.
7481 2017-02-14  Martin Liska  <mliska@suse.cz>
7483         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
7484         vector.  Fix trailing white spaces.
7486 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
7488         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
7489         HFmode.
7491 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7493         PR rtl-optimization/68664
7494         * config/arm/arm.c (arm_sched_can_speculate_insn):
7495         New function.  Declare prototype.
7496         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7498 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7500         PR rtl-optimization/68664
7501         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
7502         New function.
7503         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7505 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
7507         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
7508         max skip bytes for function, loop and jump.
7510 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7512         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
7513         ABS_EXPR for gimple dump.
7515 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
7517         PR target/79462
7518         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
7520         PR tree-optimization/79408
7521         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
7522         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
7523         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
7524         also if rhs1 is INTEGER_CST.
7526 2017-02-14  Richard Biener  <rguenther@suse.de>
7528         PR middle-end/79432
7529         * tree-into-ssa.c (insert_phi_nodes): When the function can
7530         have abnormal edges rewrite SSA names with broken use-def
7531         dominance out of SSA and register them for PHI insertion.
7533 2017-02-13  Martin Sebor  <msebor@redhat.com>
7535         PR middle-end/79496
7536         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
7537         clearing info.nowrite flag when snprintf size argument is a range.
7539 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
7541         * cprop.c (cprop_jump): Add missing space in string literal.
7542         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7543         (get_constraint_for_component_ref): Likewise.
7544         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7545         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
7546         * lra-constraints.c (process_alt_operands): Likewise.
7547         * ipa-inline.c (inline_small_functions): Likewise.
7548         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
7549         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7550         * trans-mem.c (diagnose_tm_1_op): Likewise.
7551         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
7552         (grid_parallel_clauses_gridifiable): Likewise.
7554         * config/nvptx/mkoffload.c (process): Add space in between
7555         , and %d.
7557         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
7558         "MOD4_SSE_REGS" and "ALL_REGS".
7560         * spellcheck.c (test_data): Add , in between "foo" and "food".
7562 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7564         PR target/79449
7565         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
7566         boundary crossing check and subsequent code generation agree.
7568 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7570         * config/aarch64/aarch64.c (has_memory_op): Delete.
7571         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
7572         has_memory_op.
7574 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
7576         PR rtl-optimization/79388
7577         PR rtl-optimization/79450
7578         * combine.c (distribute_notes): When removing TEM_INSN for which
7579         corresponding dest has last value recorded, invalidate that last
7580         value.
7582 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7584         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
7585         of explicit '@'.  Add missing assembly comment marker on branch costs
7586         printout.
7588 2017-02-13  Nathan Sidwell  <nathan@acm.org>
7590         * gengtype-lex.l (<in_struct>): Add '/'.
7592 2017-02-13  Martin Liska  <mliska@suse.cz>
7594         PR c/79471
7595         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
7597 2017-02-13  Richard Biener  <rguenther@suse.de>
7599         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
7600         Remove.
7601         * configure: Re-generate.
7602         * config.in: Likewise.
7603         * graphite-dependences.c: Simplify as if
7604         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
7605         * graphite-isl-ast-to-gimple.c: Likewise.
7606         * graphite-optimize-isl.c: Likewise.
7607         * graphite-poly.c: Likewise.
7608         * graphite-sese-to-poly.c: Likewise.
7609         * graphite.h: Likewise.
7610         * toplev.c: Include isl/version.h and use isl_version () for
7611         printing the ISL version.
7612         * doc/install.texi: Update ISL requirement.
7614 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
7616         * doc/standards.texi (Standards): Update reference to
7617         Objective-C 2.0.
7619 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
7621         * doc/extend.texi (Named Address Spaces): sourceware.org now
7622         defaults to https.
7623         * doc/install.texi (Binaries): Ditto.
7624         (Specific): Ditto.
7626 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
7628         * doc/cpp.texi: Replace "stringify"/"stringification" with C
7629         standard terminology "stringize"/"stringizing" throughout.
7630         * doc/cppinternals.texi: Likewise.
7632 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
7634         * doc/extend.texi: Fix some spelling mistakes and typos.
7635         * doc/invoke.texi: Likewise.
7637 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
7639         PR ipa/79224
7640         * params.def (inline-min-speedup) Change from 10 to 8.
7642 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
7644         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
7645         4.5.
7647 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
7649         PR ipa/79224
7650         * ipa-inline-analysis.c (get_minimal_bb): New function.
7651         (record_modified): Use it.
7652         (remap_edge_change_prob): Handle also ancestor functions.
7654 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
7656         * doc/contrib.texi (Contributors): Remove broken link into
7657         the Mauve CVS repository.
7659 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
7661         PR middle-end/79454
7662         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
7663         result computation whenever lhs doesn't have vector mode, not
7664         just when it has BLKmode.
7666 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
7668         * doc/makefile.texi (profiledbootstrap): Refer to the
7669         installation instructions only in textual form.
7671 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7673         PR target/79295
7674         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
7676 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
7678         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
7679         (Specific): Update mingw-w64 reference.
7680         (Binaries): Ditto.
7681         (Specific): Remove broken link to Renesas RX processor.
7683 2017-02-10  Richard Biener  <rguenther@suse.de>
7685         * toplev.c (process_options): Do not mention obsolete graphite
7686         options when printing sorry message about missing graphite support.
7687         Mention -floop-nest-optimize.
7689 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
7691         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
7692         (vtst_p16): Likewise.
7693         (vtstq_p8): Likewise.
7694         (vtstq_p16): Likewise.
7695         (vtst_p64): New.
7696         (vtstq_p64): Likewise.
7697         * config/arm/arm_neon.h (vgetq_lane_p64): New.
7698         (vset_lane_p64): New.
7699         (vsetq_lane_p64): New.
7701 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
7703         PR tree-optimization/79411
7704         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
7705         stmt operands are SSA_NAMEs used in abnormal phis.
7706         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
7707         phis.
7709 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
7711         PR ipa/70795
7712         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
7713         flag if needed.
7715 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
7717         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
7719 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7721         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
7722         to avoid warning.
7724         PR c/79413
7725         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
7726         not arbitrary TREE_CONSTANT.
7728         PR c/79431
7729         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
7730         "omp declare target link" attribute unless is_global_var.
7731         * omp-offload.c (find_link_var_op): Likewise.
7733 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7734             Chung-Lin Tang  <cltang@codesourcery.com>
7736         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
7737         OMP_CLAUSE_TILE.
7738         (gimplify_adjust_omp_clauses): Don't delete TILE.
7739         (gimplify_omp_for): Deal with TILE.
7740         * internal-fn.c (expand_GOACC_TILE): New function.
7741         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
7742         (GOACC_TILE): New.
7743         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
7744         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
7745         element fields.
7746         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
7747         avoid DIV for outermost collapse var.
7748         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
7749         Remove out of date comments, fix whitespace.
7750         * omp-general.c (omp_extract_for_data): Deal with tiling.
7751         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
7752         adjust OLF_DIM_BASE value.
7753         (struct omp_for_data): Add tiling field.
7754         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
7755         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
7756         for auto loops.  Remove default auto determining, moved to
7757         oacc_loop_fixed_partitions.
7758         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
7759         stmts, add e_mask field.
7760         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
7761         (oacc_thread_numbers): Use oacc_dim_call.
7762         (oacc_xform_tile): New.
7763         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
7764         (finish_oacc_loop): Adjust for ifns vector.
7765         (oacc_loop_discover_walk): Append loop abstraction sites to list,
7766         add case for GOACC_TILE fns.
7767         (oacc_loop_xform_loop): Delete.
7768         (oacc_loop_process): Iterate over call list directly, and add
7769         handling for GOACC_TILE fns.
7770         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
7771         dump partitioning.
7772         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
7773         vector partitioning to outer loops.  Assign 2 partitions to loops
7774         when available. Add TILE handling.
7775         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
7776         (execite_oacc_device_lower): Process GOACC_TILE fns,
7777         ignore unknown specs.
7778         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
7779         * tree.c (omp_clause_num_ops): Adjust TILE ops.
7780         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
7782 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
7784         * configure.ac (ACX_BUGURL): Update.
7785         * configure: Regenerate.
7787 2017-02-09  Richard Biener  <rguenther@suse.de>
7789         PR tree-optimization/69823
7790         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7791         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
7793 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
7795         * config/arc/arc-c.def: Add __NPS400__ definition.
7796         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
7797         (TARGET_NPS400): Define.
7799 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
7801         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
7802         file.
7803         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
7804         pointer, arch_info.
7805         (arc_cpu_types): Fill the arch_info field with a pointer into the
7806         arc_arch_types table.
7807         (arc_selected_cpu): Declare.
7808         * config/arc/arc.c (arc_selected_cpu): Make global.
7809         (arc_selected_arch): Delete.
7810         (arc_base_cpu): Delete.
7811         (arc_override_options): Remove references to deleted variables,
7812         update access to arch information.
7813         (ARC_OPT): Update access to arch information.
7814         (ARC_OPTX): Likewise.
7815         * config/arc/arc.h (arc_base_cpu): Remove declaration.
7816         (TARGET_ARC600): Update access to arch information.
7817         (TARGET_ARC601): Likewise.
7818         (TARGET_ARC700): Likewise.
7819         (TARGET_EM): Likewise.
7820         (TARGET_HS): Likewise.
7821         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
7822         information.
7824 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
7826         PR target/78604
7827         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
7828         condition/operands for integer GE/LE/GEU/LEU operations.
7830 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
7832         PR translation/79397
7833         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
7834         of AltiVec.
7836 2017-02-08  Martin Jambor  <mjambor@suse.cz>
7838         PR ipa/79375
7839         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
7840         whether allocation happened.
7841         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
7842         nothing was allocated.
7844 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
7846         PR tree-optimization/79408
7847         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
7848         constant, but SSA_NAME with a known integer range, use the minimum
7849         of that range instead of op1 to determine if modulo can be replaced
7850         with its first operand.
7852 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7854         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
7856 2017-02-08  Richard Biener  <rguenther@suse.de>
7858         PR tree-optimization/71824
7859         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
7860         Check all loops contained in the merged region.
7862 2017-02-07  Andrew Pinski  <apinski@cavium.com>
7864         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
7866 2017-02-07  Andrew Pinski  <apinski@cavium.com>
7868         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
7869         (thunderxt88): Likewise.
7870         (thunderxt81): Disable LSE and change v8.1 to v8.
7871         (thunderxt83): Likewise.
7873 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
7874             Richard Biener  <rguenther@suse.de>
7876         PR middle-end/79399
7877         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
7878         type from int to size_t.
7879         * ira-costs.c (struct_costs_size): Change type from int to size_t.
7881 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
7883         PR rtl-optimization/79386
7884         * cprop.c (bypass_conditional_jumps): Initialize
7885         bypass_last_basic_block already before splitting bbs after
7886         unconditional traps...
7887         (bypass_conditional_jumps): ... rather than here.
7889         PR target/79299
7890         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
7891         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
7892         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
7893         fix -masm=intel patterns.
7895 2017-02-07  Richard Biener  <rguenther@suse.de>
7897         PR tree-optimization/79256
7898         PR middle-end/79278
7899         * builtins.c (get_object_alignment_2): Use min_align_of_type
7900         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
7901         and ADJUST_FIELD_ALIGN.
7903         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
7904         type parameter.
7905         * doc/tm.texi: Regenerate.
7906         * stor-layout.c (layout_decl): Adjust.
7907         (update_alignment_for_field): Likewise.
7908         (place_field): Likewise.
7909         (min_align_of_type): Likewise.
7910         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
7911         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
7912         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
7913         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
7914         * config/frv/frv.c (frv_adjust_field_align): Likewise.
7915         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
7916         * config/i386/i386.c (x86_field_alignment): Likewise.
7917         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
7918         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
7919         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7920         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7921         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
7922         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
7923          Likewise.
7925         Revert
7926         2017-01-30  Richard Biener  <rguenther@suse.de>
7928         PR tree-optimization/79256
7929         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
7930         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
7931         alignment on TYPE.
7933 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
7935         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
7936         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
7937         builtins to SImode and emit a zero-extend, if necessary.
7939 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
7941         * docs/invoke.texi (RISC-V Options): Alphabetize.
7943 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
7945         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
7946         options.
7948 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
7950         * config/riscv/riscv.c: New file.
7951         * gcc/common/config/riscv/riscv-common.c: Likewise.
7952         * config.gcc: Likewise.
7953         * config/riscv/constraints.md: Likewise.
7954         * config/riscv/elf.h: Likewise.
7955         * config/riscv/generic.md: Likewise.
7956         * config/riscv/linux.h: Likewise.
7957         * config/riscv/multilib-generator: Likewise.
7958         * config/riscv/peephole.md: Likewise.
7959         * config/riscv/pic.md: Likewise.
7960         * config/riscv/predicates.md: Likewise.
7961         * config/riscv/riscv-builtins.c: Likewise.
7962         * config/riscv/riscv-c.c: Likewise.
7963         * config/riscv/riscv-ftypes.def: Likewise.
7964         * config/riscv/riscv-modes.def: Likewise.
7965         * config/riscv/riscv-opts.h: Likewise.
7966         * config/riscv/riscv-protos.h: Likewise.
7967         * config/riscv/riscv.h: Likewise.
7968         * config/riscv/riscv.md: Likewise.
7969         * config/riscv/riscv.opt: Likewise.
7970         * config/riscv/sync.md: Likewise.
7971         * config/riscv/t-elf-multilib: Likewise.
7972         * config/riscv/t-linux: Likewise.
7973         * config/riscv/t-linux-multilib: Likewise.
7974         * config/riscv/t-riscv: Likewise.
7975         * configure.ac: Likewise.
7976         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
7977         Waterman as RISC-V maintainers.
7978         * doc/install.texi: Add RISC-V entries.
7979         * doc/invoke.texi: Add RISC-V options section.
7980         * doc/md.texi: Add RISC-V constraints section.
7981         * configure: Regenerated.
7983 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7985         PR target/66144
7986         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
7987         false values to be constant vectors with all 0 or all 1 bits set.
7988         (vcondu<mode><mode>): Likewise.
7989         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
7990         predicate.
7991         (fpmask_comparison_operator): Update comment.
7992         (vecint_comparison_operator): New predicate.
7993         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
7994         vector conditionals when the true and false values are constant
7995         vectors with all 0 bits or all 1 bits set.
7997 2017-02-06  Martin Sebor  <msebor@redhat.com>
7999         PR  tree-optimization/79376
8000         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
8002 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
8004         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
8005         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
8006         to simplify split condition.
8008 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8010         * omp-expand.c (oxpand_omp_atomic_fetch_op,
8011         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
8012         false.
8014 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
8016         PR rtl-optimization/68664
8017         * target.def (can_speculate_insn): New hook.
8018         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
8019         * doc/tm.texi: Regenerate.
8020         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
8021         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
8022         (rs6000_sched_can_speculate_insn): New function.
8024 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8026         PR tree-optimization/79284
8027         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
8028         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
8029         vectorizable_mask_load_store, vectorizable_operation,
8030         vect_is_simple_cond, get_same_sized_vectype): Use it instead
8031         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
8032         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
8033         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
8034         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8035         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8036         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
8037         is_gimple_assign (stmt).  Replace another such test with
8038         is_gimple_assign (stmt).
8040 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8042         PR target/78883
8043         * config/avr/avr.c (rtl-iter.h): Include it.
8044         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
8045         (avr_legitimate_combined_insn): ...and implementation.
8047 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8049         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
8050         * config/s390/s390.c (s390_const_operand_ok)
8051         (s390_canonicalize_comparison, s390_extract_part)
8052         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
8053         (s390_contiguous_bitmask_p, s390_rtx_costs)
8054         (legitimize_pic_address): Likewise.
8055         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
8056         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
8057         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
8058         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
8059         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
8061 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8063         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
8064         REGNO($0) == REGNO($1).
8066 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8068         * config/s390/linux.h(SIZE_TYPE): Add comment.
8070 2017-02-06  Julian Brown  <julian@codesourcery.com>
8071             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8072             Virendra Pathak  <virendra.pathak@broadcom.com>
8074         * config/aarch64/aarch64-cores.def: Change the scheduler
8075         to Thunderx2t99.
8076         * config/aarch64/aarch64.md: Include thunderx2t99.md.
8077         * config/aarch64/thunderx2t99.md: New file.
8079 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8081         * doc/standards.texi (Go Language): Update link to language
8082         standard.
8084 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8086         * tree-eh.c (lower_resx): Sanitize profile.
8087         (cleanup_empty_eh_move_lp): Likewise.
8089 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8091         PR tree-ssa/79347
8092         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
8093         ELSE_PROB.
8094         * cfgloopmanip.h (loop_version): Update prototype.
8095         * modulo-sched.c (sms_schedule): Update call of loop_version.
8096         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
8097         * tree-parloops.c (gen_parallel_loop): Likewise.
8098         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
8099         * tree-ssa-loop-split.c (split_loop): Likewise.
8100         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
8101         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
8103 2017-02-05  Martin Liska  <mliska@suse.cz>
8105         PR bootstrap/78985
8106         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
8107         variable to NULL.
8108         (print_operand_address): Initialize a struct to zero.
8110 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8112         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
8113         garbage collector only in textual form.
8115 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8117         * doc/extend.texi (x86 specific memory model extensions for
8118         transactional memory): Simplify a phrase.
8120 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
8122         PR target/79353
8123         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
8124         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
8125         (atomic_storedi_1): Likewise.
8127 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
8129         PR tree-optimization/79338
8130         * tree-parloops.c (gather_scalar_reductions): Don't call
8131         vect_analyze_loop_form for loop->inner before destroying loop's
8132         loop_vinfo.
8134 2017-02-03  Martin Sebor  <msebor@redhat.com>
8136         PR tree-optimization/79327
8137         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
8138         when precision has resulted in leading zeros.
8139         (format_integer): Adjust the likely counter to assume an unknown
8140         argument that may be zero is non-zero.
8142 2017-02-03  Jason Merrill  <jason@redhat.com>
8144         PR c++/78689
8145         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
8146         avoid copying non-taken branch.
8148 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8150         PR tree-optimization/79340
8151         * tree-vect-loop.c (vectorizable_reduction): Release
8152         vec_defs elements after safe_splicing them into other vectors.
8153         Formatting fixes.
8155         PR tree-optimization/79327
8156         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
8157         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
8158         dirtype.
8159         (format_integer): Use wide_int_to_tree instead of build_int_cst
8160         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
8161         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
8162         of shortest and longest sequence.
8164 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
8166         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
8167         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
8169 2017-02-03  Walter Lee  <walt@tilera.com>
8171         PR target/78862
8172         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
8173         after initial stackframe link reg save.
8174         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
8176 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8178         PR target/79354
8179         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
8180         wu for stxssp alternative.
8182 2017-02-03  Martin Sebor  <msebor@redhat.com>
8184         PR tree-optimization/79352
8185         * gimple-fold.c (get_range_strlen): Add argument.
8186         (get_range_strlen): Change return type to bool.
8187         (get_maxval_strlen): Pass in a dummy argument.
8188         * gimple-fold.h (get_range_strlen): Change return type to bool.
8189         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
8190         * tree.h (array_at_struct_end_p): Add argument.
8191         * tree.c (array_at_struct_end_p): Handle it.
8193 2017-02-03  Martin Liska  <mliska@suse.cz>
8195         PR lto/66295
8196         * multiple_target.c (create_dispatcher_calls): Redirect edge
8197         from a caller of a dispatcher.
8198         (expand_target_clones): Make the clones local.
8199         (ipa_target_clone): Do both target clones and resolvers.
8200         (ipa_dispatcher_calls): Remove the pass.
8201         (pass_dispatcher_calls::gate): Likewise.
8202         (make_pass_dispatcher_calls): Likewise.
8203         * passes.def (pass_target_clone): Put as very first IPA early
8204         pass.
8206 2017-02-03  Martin Liska  <mliska@suse.cz>
8208         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
8209         in case of a function with ifunc attribute.
8211 2017-02-03  Martin Liska  <mliska@suse.cz>
8213         * cgraph.c (cgraph_node::dump): Dump function version info.
8214         * symtab.c (symtab_node::dump_base): Add missing new line.
8216 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8218         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
8219         (ifcombine_ifandif): Use it.
8221 2017-02-03  Martin Liska  <mliska@suse.cz>
8223         * doc/invoke.texi: Document default value for
8224         use-after-scope-direct-emission-threshold.
8226 2017-02-03  Martin Liska  <mliska@suse.cz>
8228         PR tree-optimization/79339
8229         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
8230         (format_floating): Likewise.
8232 2017-02-03  Martin Liska  <mliska@suse.cz>
8234         PR ipa/79337
8235         * ipa-prop.c (ipa_node_params_t::insert): Remove current
8236         implementation.
8237         (ipa_node_params_t::remove): Likewise.
8238         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
8239         initialization from removed ipa_node_params_t::insert.
8240         (ipa_node_params::~ipa_node_params): Move from removed
8241         ipa_node_params_t::release.
8242         * symbol-summary.h (symbol_summary::m_released): New member.
8243         Do not release a summary twice.  Do not allow to call finalizer
8244         for types of a summary that live in GGC memory.
8246 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8248         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
8249         cmp_branch fusion.
8251 2017-02-02  Martin Sebor  <msebor@redhat.com>
8253         PR middle-end/79275
8254         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
8255         (format_string): Tighten up the range of output for non-constant
8256         strings and correct the expected range for wide non-constant strings.
8258 2017-02-02  Martin Sebor  <msebor@redhat.com>
8260         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
8262         PR middle-end/32003
8263         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
8264         index.
8265         (-fdump-tree-@var): Add to index and document how to come up
8266         with pass-specific option and dump file names.
8267         (-fdump-passes): Clarify where to look for output.
8269 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8271         PR middle-end/77445
8272         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
8273         statistics of the analyzed path; allow threading for speed when
8274         any of BBs along the path are optimized for speed.
8276 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
8278         PR middle-end/78468
8279         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
8280         settings of the virtual registers.
8282         Revert again
8283         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8285         * explow.c (get_dynamic_stack_size): Take known alignment of stack
8286         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
8287         needed.
8289 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8291         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
8292         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
8294 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8296         * config/s390/s390.md: Add missing comments with the expanded
8297         mnemonics.
8298         * config/s390/vector.md: Likewise.
8299         * config/s390/vx-builtins.md: Likewise.
8301 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
8303         PR target/79197
8304         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
8305         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
8306         conditions on a single line.
8308 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8310         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8311         __S390_VX__ to __VX__.
8313 2017-02-01  Andrew Pinski  <apinski@cavium.com>
8315         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
8316         stmt_info to record_stmt_cost.
8317         (vect_get_known_peeling_cost): Pass stmt_info if known to
8318         record_stmt_cost.
8319         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
8320         cpu_vector_cost field into
8321         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
8322         field into vec_int_stmt_cost and vec_fp_stmt_cost.
8323         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
8324         splitting of scalar_stmt_cost and vec_stmt_cost.
8325         (thunderx_vector_cost): Likewise.
8326         (cortexa57_vector_cost): LIkewise.
8327         (exynosm1_vector_cost): Likewise.
8328         (xgene1_vector_cost): Likewise.
8329         (thunderx2t99_vector_cost): Improve after the splitting of the two
8330         fields.
8331         (aarch64_builtin_vectorization_cost): Update for the splitting of
8332         scalar_stmt_cost and vec_stmt_cost.
8334 2017-02-01  Torvald Riegel  <triegel@redhat.com>
8335             Richard Henderson  <rth@redhat.com>
8337         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
8338         conditional on existance of a fast atomic load.
8339         * optabs-query.c (can_atomic_load_p): New function.
8340         * optabs-query.h (can_atomic_load_p): Declare it.
8341         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
8342         no fast atomic load is available for the particular size of access.
8343         (expand_atomic_compare_and_swap): Likewise.
8344         (expand_atomic_load): Likewise.
8345         (expand_atomic_store): Likewise.
8346         (expand_atomic_fetch_op): Likewise.
8347         * testsuite/lib/target-supports.exp
8348         (check_effective_target_sync_int_128): Remove x86 because it provides
8349         no fast atomic load.
8350         (check_effective_target_sync_int_128_runtime): Likewise.
8352 2017-02-01  Richard Biener  <rguenther@suse.de>
8354         * graphite.c: Include tree-vectorizer.h for find_loop_location.
8355         (graphite_transform_loops): Provide opt-info for optimized nests.
8356         * tree-parloop.c (parallelize_loops): Provide opt-info for
8357         parallelized loops.
8359 2017-02-01  Richard Biener  <rguenther@suse.de>
8361         PR middle-end/79315
8362         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
8363         was not set before.
8365 2017-02-01  Richard Biener  <rguenther@suse.de>
8367         PR tree-optimization/71824
8368         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8369         Verify the loops are valid in the merged SESE region.
8370         (scop_detection::can_represent_loop_1): Check analyzing the
8371         evolution of the number of iterations in the region succeeds.
8373 2017-01-31  Ian Lance Taylor  <iant@golang.org>
8375         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
8376         REG_ARGS_SIZE note to 32-bit push insns and call insn.
8378 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
8380         PR preprocessor/79210
8381         * input.c (get_substring_ranges_for_loc): Replace line_width
8382         assertion with error-handling.
8384 2017-01-31  Richard Biener  <rguenther@suse.de>
8386         PR tree-optimization/77318
8387         * graphite-sese-to-poly.c (extract_affine): Fix assert.
8388         (create_pw_aff_from_tree): Take loop parameter.
8389         (add_condition_to_pbb): Pass loop of the condition to
8390         create_pw_aff_from_tree.
8392 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
8394         * config/s390/s390.c (s390_asan_shadow_offset): New function.
8395         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
8397 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
8399         PR target/78597
8400         PR target/79038
8401         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
8402         no longer used.
8403         (convert_int_to_float128): Likewise.
8404         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
8405         (convert_int_to_float128): Likewise.
8406         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
8407         (UNSPEC_IEEE128_CONVERT): Likewise.
8408         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
8409         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
8410         Use local variables for IBM extended format.
8411         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
8412         (fix_trunc<mode>si2_fprs): Likewise.
8413         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8414         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
8415         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
8416         to know that we can now have integers of all sizes in vector
8417         registers.
8418         (fix<uns>_<mode>di2_hw): Likewise.
8419         (float<uns>_<mode>si2_hw): Likewise.
8420         (fix_<mode>si2_hw): Likewise.
8421         (fixuns_<mode>si2_hw): Likewise.
8422         (float<uns>_<mode>di2_hw): Likewise.
8423         (float_<mode>di2_hw): Likewise.
8424         (float_<mode>si2_hw): Likewise.
8425         (floatuns_<mode>di2_hw): Likewise.
8426         (floatuns_<mode>si2_hw): Likewise.
8427         (xscvqp<su>wz_<mode>): Delete, no longer used.
8428         (xscvqp<su>dz_<mode>): Likewise.
8429         (xscv<su>dqp_<mode>): Likewise.
8430         (ieee128_mfvsrd_64bit): Likewise.
8431         (ieee128_mfvsrd_32bit): Likewise.
8432         (ieee128_mfvsrwz): Likewise.
8433         (ieee128_mtvsrw): Likewise.
8434         (ieee128_mtvsrd_64bit): Likewise.
8435         (ieee128_mtvsrd_32bit): Likewise.
8437 2017-01-31  Martin Liska  <mliska@suse.cz>
8439         PR ipa/79285
8440         * ipa-prop.c (ipa_free_all_node_params): Call release method
8441         instead of ~sumbol_summary to not to trigger double times
8442         dtor of hash_map.
8444 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
8446         PR tree-optimization/71691
8447         * bitmap.h (class auto_bitmap): New.
8448         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
8449         is_maybe_undefined instead of ssa_undefined_value_p.
8451 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8453         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8454         __S390_ARCH_LEVEL__ to __ARCH__.
8456 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
8458         PR tree-optimization/79267
8459         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
8460         if should_remove_lhs_p is true.
8462 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
8464         PR debug/63238
8465         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
8466         (add_alignment_attribute): New.
8467         (base_type_die): Add alignment attribute.
8468         (subrange_type_die): Likewise.
8469         (modified_type_die): Likewise.
8470         (gen_array_type_die): Likewise.
8471         (gen_descr_array_type_die: Likewise.
8472         (gen_enumeration_type_die): Likewise.
8473         (gen_subprogram_die): Likewise.
8474         (gen_variable_die): Likewise.
8475         (gen_field_die): Likewise.
8476         (gen_ptr_to_mbr_type_die): Likewise.
8477         (gen_struct_or_union_type_die): Likewise.
8478         (gen_subroutine_type_die): Likewise.
8479         (gen_typedef_die): Likewise.
8480         (base_type_cmp): Compare alignment attribute.
8482 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8484         PR target/79170
8485         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
8486         (setb_unsigned) New pattern for setb with CCUNS.
8487         * config/rs6000/rs6000.c (expand_block_compare): Use a different
8488         subfc./subfe sequence to avoid overflow problems.  Generate a
8489         shorter sequence with cmpld/setb for power9.
8490         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
8491         for generating subfc. instruction.
8492         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
8493         now uses this instruction.
8495 2017-01-30  Ian Lance Taylor  <iant@google.com>
8497         PR debug/79289
8498         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
8499         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
8501 2017-01-30  Martin Sebor  <msebor@redhat.com>
8503         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
8504         Move constant to the right of a relational operator.
8505         (get_mpfr_format_length, format_character, format_string): Ditto.
8506         (should_warn_p, maybe_warn): Same.
8508         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
8510 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
8512         PR lto/79061
8513         * asan.c (get_translation_unit_decl): Remove function.
8514         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
8516 2017-01-30  Martin Liska  <mliska@suse.cz>
8518         PR gcov-profile/79259
8519         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
8520         -fprofile-generate.
8522 2017-01-30  Martin Liska  <mliska@suse.cz>
8524         PR bootstrap/78985
8525         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
8526         Initialize variables with NULL value.
8528 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
8530         PR target/79260
8531         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
8532         tm_p_file.
8533         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
8535 2017-01-30  Richard Biener  <rguenther@suse.de>
8537         PR tree-optimization/79276
8538         * tree-vrp.c (process_assert_insertions): Properly adjust common
8539         when removing a duplicate.
8541         * gcc.dg/torture/pr79276.c: New testcase.
8543 2017-01-30  Richard Biener  <rguenther@suse.de>
8545         PR tree-optimization/79256
8546         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8547         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8548         alignment on TYPE.
8549         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
8551 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8553         PR target/79240
8554         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
8555         ("*r<noxa>sbg_<mode>_sll_bitmask")
8556         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8557         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
8558         Use contiguous_bitmask_nowrap_operand.
8560 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8562         PR target/79268
8563         * config/rs6000/altivec.h (vec_xl): Revise #define.
8564         (vec_xst): Likewise.
8566 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
8568         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
8570 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
8572         PR rtl-optimization/79194
8573         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
8574         traps before call to bypass_conditional_jumps.
8576 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
8578         PR tree-optimization/71374
8579         * lra-constraints.c (check_conflict_input_operands): New.
8580         (match_reload): Use it.
8582 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
8584         PR target/79131
8585         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
8586         account to calculate conflict_set.
8588 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
8590         PR rtl-optimization/78559
8591         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
8592         other_insn in combine.
8594 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
8596         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
8597         uint16_type_node for BT_UINT16.
8599 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
8601         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
8602         "RTL Tests" to menu.
8603         (GIMPLE Tests): New node.
8604         (RTL Tests): New node.
8606 2017-01-27  Richard Biener  <rguenther@suse.de>
8608         PR tree-optimization/79245
8609         * tree-loop-distribution.c (distribute_loop): Apply cost
8610         modeling also to detected patterns.
8612 2017-01-27  Richard Biener  <rguenther@suse.de>
8614         PR tree-optimization/71433
8615         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
8616         (compare_assert_loc): New function.
8617         (process_assert_insertions): Sort and optimize assert locations
8618         to remove duplicates and push down identical assertions on
8619         edges to their destination block.
8621 2017-01-27  Richard Biener  <rguenther@suse.de>
8623         PR tree-optimization/79244
8624         * tree-vrp.c (remove_range_assertions): Forcefully propagate
8625         out SSA names even if abnormal.
8627 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
8629         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
8630         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
8631         instead of MPFR_RNDN.
8633 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
8635         PR target/79239
8636         * arm.c (arm_option_override): Don't call build_target_option_node
8637         until after doing all option overrides.
8638         (arm_valid_target_attribute_tree): Likewise.
8640 2017-01-27  Martin Liska  <mliska@suse.cz>
8642         * doc/invoke.texi (-fprofile-arcs): Document profiling support
8643         for {cd}tors and C++ {cd}tors.
8645 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8647         * config/s390/s390.md ("*setmem_long_and")
8648         ("*setmem_long_and_31z"): Use zero_extend instead of and.
8650 2017-01-26  Martin Sebor  <msebor@redhat.com>
8652         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
8653         of precision.
8655 2017-01-26  Martin Sebor  <msebor@redhat.com>
8657         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
8658         HAVE_DFmode before using XFmode or DFmode.
8659         (parse_directive): Avoid using the z length modifier to avoid
8660         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
8662         PR middle-end/78703
8663         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
8664         to accept adjustment as an array.
8665         (get_int_range): New function.
8666         (struct directive): Make width and prec arrays.
8667         (directive::set_width, directive::set_precision): Call get_int_range.
8668         (format_integer, format_floating): Handle width and precision ranges.
8669         (format_string, parse_directive): Same.
8671 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8673         PR debug/79129
8674         * dwarf2out.c (generate_skeleton_bottom_up): For children with
8675         comdat_type_p set, just clone them, but keep the children in the
8676         original DIE.
8678         PR debug/78835
8679         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
8680         which have direct callers with -fvar-tracking-assignments enabled
8681         in the current TU.
8682         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
8683         inside of type units.
8685 2017-01-26  Martin Sebor  <msebor@redhat.com>
8687         PR middle-end/78703
8688         * gimple-ssa-sprintf.c (struct result_range): Add likely and
8689         unlikely counters.
8690         (struct format_result): Replace number_chars, number_chars_min,
8691         and number_chars_max with a single member of struct result_range.
8692         Remove bounded.
8693         (format_result::operator+=): Adjust.
8694         (struct fmtresult): Remove bounded.  Handle likely and unlikely
8695         counters.
8696         (fmtresult::adjust_for_width_or_precision): New function.
8697         (fmtresult:type_max_digits): New function.
8698         (bytes_remaining): Handle likely and unlikely counters.
8699         (min_bytes_remaining): Remove.
8700         (format_percent): Simplify.
8701         (format_integer, format_floating): Set likely and unlikely counters.
8702         (get_string_length, format_character, format_string): Same.
8703         (format_plain, should_warn_p): New function.
8704         (maybe_warn): Call should_warn_p.  Update diagnostic messages
8705         and handle those for all directives, including plain strings.
8706         (format_directive): Handle likely and unlikely counters.
8707         Remove unnecessary quoting from diagnostics.  Add an informational
8708         note.
8709         (add_bytes): Remove.
8710         (pass_sprintf_length::compute_format_length): Simplify.
8711         (try_substitute_return_value): Handle likely and unlikely counters.
8713 2017-01-26  Carl Love  <cel@us.ibm.com>
8715         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
8716         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
8718 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
8720         PR target/79131
8721         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
8722         endianess for subregs into account.
8723         * lra-constraints.c (lra_constraints): Do risky transformations
8724         always on the first iteration.
8725         * lra-lives.c (check_pseudos_live_through_calls): Add arg
8726         last_call_used_reg_set.
8727         (process_bb_lives): Define and use last_call_used_reg_set.
8728         * lra.c (lra): Always continue after lra_constraints on the first
8729         iteration.
8731 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
8733         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
8734         constant.
8735         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
8737 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8739         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
8740         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
8741         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
8742         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
8743         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
8744         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
8745         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
8746         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
8747         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
8749 2017-01-26  Marek Polacek  <polacek@redhat.com>
8751         PR c/79199
8752         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
8753         for the third operand.
8755 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8757         PR middle-end/79236
8758         * omp-low.c (struct omp_context): Add simt_stmt field.
8759         (scan_omp_for): Return omp_context *.
8760         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
8761         context to the _simt_ SIMD stmt.
8762         (lower_omp_for): For combined SIMD with sibling _simt_
8763         SIMD, make sure to use the same decls in _looptemp_
8764         clauses as in the sibling.
8766 2017-01-26  David Sherwood  <david.sherwood@arm.com>
8768         PR middle-end/79212
8769         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
8770         all contexts.
8772 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8774         PR target/70465
8775         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
8776         emit fld b; fld a; if possible.
8778         * brig-builtins.def: Update copyright years.
8779         * config/arm/arm_acle_builtins.def: Update copyright years.
8781 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
8783         PR target/79179
8784         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
8785         constraint instead of o for the stxsd instruction.
8787 2017-01-25  Carl Love  <cel@us.ibm.com>
8789         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
8790         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
8792 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
8794         * doc/invoke.texi (C++ Dialect Options): Fix typo.
8796 2017-01-25  Richard Biener  <rguenther@suse.de>
8798         PR tree-optimization/69264
8799         * target.def (vector_alignment_reachable): Improve documentation.
8800         * doc/tm.texi: Regenerate.
8801         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
8802         and add a comment.
8803         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
8804         earlier changes with respect to TYPE_USER_ALIGN.
8805         (vector_alignment_reachable_p): Likewise.  Improve dumping.
8807 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8809         PR target/79145
8810         * config/arm/arm.md (xordi3): Force constant operand into a register
8811         for TARGET_IWMMXT.
8813 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8815         * doc/invoke.texi (-fstore-merging): Correct default optimization
8816         levels at which it is enabled.
8817         (-O): Move -fstore-merging from list to...
8818         (-O2): ... Here.
8820 2017-01-25  Richard Biener  <rguenther@suse.de>
8822         PR debug/78363
8823         * omp-expand.c: Include debug.h.
8824         (expand_omp_taskreg): Make sure to generate early debug before
8825         outlining anything from a function.
8826         (expand_omp_target): Likewise.
8827         (grid_expand_target_grid_body): Likewise.
8829 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
8831         PR lto/79061
8832         * asan.c (get_translation_unit_decl): New function.
8833         (asan_add_global): Extract modules file name from globals
8834         TRANSLATION_UNIT_DECL name.
8836 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
8838         PR target/77439
8839         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
8840         for long calls with APCS frame and VFP.
8842 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
8844         * cfg.c (original_copy_tables_initialized_p): New function.
8845         * cfg.h (original_copy_tables_initialized_p): New decl.
8846         * cfgrtl.c (relink_block_chain): Guard the call to
8847         free_original_copy_tables with a call to
8848         original_copy_tables_initialized_p.
8849         * cgraph.h (symtab_node::native_rtl_p): New decl.
8850         * cgraphunit.c (symtab_node::native_rtl_p): New function.
8851         (symtab_node::needed_p): Don't assert for early assembly output
8852         for __RTL functions.
8853         (cgraph_node::finalize_function): Set "force_output" for __RTL
8854         functions.
8855         (cgraph_node::analyze): Bail out early for __RTL functions.
8856         (analyze_functions): Update assertion to support __RTL functions.
8857         (cgraph_node::expand): Bail out early for __RTL functions.
8858         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
8859         __RTL functions.
8860         * function.h (struct function): Update comment for field
8861         "pass_startwith".
8862         * gimple-expr.c: Include "tree-pass.h".
8863         (gimple_has_body_p): Return false for __RTL functions.
8864         * Makefile.in (OBJS): Add run-rtl-passes.o.
8865         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
8866         accessor.
8867         (gcc::pass_manager::get_clean_slate): New accessor.
8868         * passes.c: Include "insn-addr.h".
8869         (should_skip_pass_p): Add logging.  Update logic for running
8870         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
8871         property-provider override so it is only done for gimple passes.
8872         Don't skip dfinit.
8873         (skip_pass): New function.
8874         (execute_one_pass): Call skip_pass when skipping passes.
8875         * read-md.c (md_reader::read_char): Support filtering
8876         the input to a subset of line numbers.
8877         (md_reader::md_reader): Initialize fields
8878         m_first_line and m_last_line.
8879         (md_reader::read_file_fragment): New function.
8880         * read-md.h (md_reader::read_file_fragment): New decl.
8881         (md_reader::m_first_line): New field.
8882         (md_reader::m_last_line): New field.
8883         * read-rtl-function.c (function_reader::create_function): Only
8884         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
8885         curr_properties.  Set DECL_INITIAL to a dummy block.
8886         (read_rtl_function_body_from_file_range): New function.
8887         * read-rtl-function.h (read_rtl_function_body_from_file_range):
8888         New decl.
8889         * run-rtl-passes.c: New file.
8890         * run-rtl-passes.h: New file.
8892 2017-01-24  Jeff Law  <law@redhat.com>
8894         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
8895         buffer size.
8897 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
8899         PR tree-optimization/79159
8900         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
8901         (record_nonwrapping_iv): Improve boundary using above function if no
8902         value range information.
8904 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
8905             Martin Jambor  <mjambor@suse.cz>
8907         * brig-builtins.def: New file.
8908         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
8909         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
8910         (DEF_HSAIL_SAT_BUILTIN): Likewise.
8911         (DEF_HSAIL_INTR_BUILTIN): Likewise.
8912         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
8913         * builtin-types.def (BT_INT8): New.
8914         (BT_INT16): Likewise.
8915         (BT_UINT8): Likewise.
8916         (BT_UINT16): Likewise.
8917         (BT_FN_ULONG): Likewise.
8918         (BT_FN_UINT_INT): Likewise.
8919         (BT_FN_UINT_ULONG): Likewise.
8920         (BT_FN_UINT_LONG): Likewise.
8921         (BT_FN_UINT_PTR): Likewise.
8922         (BT_FN_ULONG_PTR): Likewise.
8923         (BT_FN_INT8_FLOAT): Likewise.
8924         (BT_FN_INT16_FLOAT): Likewise.
8925         (BT_FN_UINT32_FLOAT): Likewise.
8926         (BT_FN_UINT16_FLOAT): Likewise.
8927         (BT_FN_UINT8_FLOAT): Likewise.
8928         (BT_FN_UINT64_FLOAT): Likewise.
8929         (BT_FN_UINT16_UINT32): Likewise.
8930         (BT_FN_UINT32_UINT16): Likewise.
8931         (BT_FN_UINT16_UINT16_UINT16): Likewise.
8932         (BT_FN_INT_PTR_INT): Likewise.
8933         (BT_FN_UINT_PTR_UINT): Likewise.
8934         (BT_FN_LONG_PTR_LONG): Likewise.
8935         (BT_FN_ULONG_PTR_ULONG): Likewise.
8936         (BT_FN_VOID_UINT64_UINT64): Likewise.
8937         (BT_FN_UINT8_UINT8_UINT8): Likewise.
8938         (BT_FN_INT8_INT8_INT8): Likewise.
8939         (BT_FN_INT16_INT16_INT16): Likewise.
8940         (BT_FN_INT_INT_INT): Likewise.
8941         (BT_FN_UINT_FLOAT_UINT): Likewise.
8942         (BT_FN_FLOAT_UINT_UINT): Likewise.
8943         (BT_FN_ULONG_UINT_UINT): Likewise.
8944         (BT_FN_ULONG_UINT_PTR): Likewise.
8945         (BT_FN_ULONG_ULONG_ULONG): Likewise.
8946         (BT_FN_UINT_UINT_UINT): Likewise.
8947         (BT_FN_VOID_UINT_PTR): Likewise.
8948         (BT_FN_UINT_UINT_PTR: Likewise.
8949         (BT_FN_UINT32_UINT64_PTR): Likewise.
8950         (BT_FN_INT_INT_UINT_UINT): Likewise.
8951         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
8952         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
8953         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
8954         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
8955         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
8956         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
8957         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
8958         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
8959         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
8960         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
8961         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
8962         * doc/frontends.texi: List BRIG FE.
8963         * doc/install.texi (Testing): Add BRIG tesring requirements.
8964         * doc/invoke.texi (Overall Options): Mention BRIG.
8965         * doc/standards.texi (Standards): Doucment BRIG HSA version.
8967 2017-01-24  Richard Biener  <rguenther@suse.de>
8969         PR translation/79208
8970         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
8972 2017-01-24  Martin Jambor  <mjambor@suse.cz>
8974         PR bootstrap/79198
8975         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
8976         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
8977         and known_contexts.
8979 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
8981         PR middle-end/79123
8982         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
8983         casts from signed to unsigned really don't have a range.
8985 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8987         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
8988         GMP_RNDx for compatiblity.
8990 2017-01-24  Martin Liska  <mliska@suse.cz>
8992         PR bootstrap/79132
8993         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
8994         that would prevent us to call alloca with -1 as argument.
8996 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
8998         * dwarf2out.c (output_compilation_unit_header, output_file_names):
8999         Avoid -Wformat-security warning.
9001 2017-01-23  Andrew Pinski  <apinski@cavium.com>
9003         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
9004         cost table.
9006 2017-01-23  Martin Sebor  <msebor@redhat.com>
9008         PR middle-end/78703
9009         * gimple-ssa-sprintf.c (warn_level): New global.
9010         (format_integer): Use it here and throughout the rest of the file.
9011         Use the same switch to compute sign as base.
9012         (maybe_warn): New function.
9013         (format_directive): Factor out warnings into maybe_warn.
9014         Add debugging output.  Use warn_level.
9015         (add_bytes): Use warn_level.
9016         (pass_sprintf_length::compute_format_length): Add debugging output.
9017         (try_substitute_return_value): Same.
9018         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
9020         PR middle-end/78703
9021         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
9022         (struct fmtresult, format_integer, format_floating): Adjust.
9023         (fmtresult::fmtresult): Set max correctly in two argument ctor.
9024         (get_string_length, format_string,format_directive): Same.
9025         (pass_sprintf_length::compute_format_length): Same.
9026         (try_substitute_return_value): Simplify slightly.
9028         PR middle-end/78703
9029         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
9030         (fmtresult::operator+=): Outlined.
9031         (struct fmtresult): Add ctors.
9032         (struct conversion_spec): Rename...
9033         (struct directive): ...to this.  Add and remove data members.
9034         (directive::set_width, directive::set_precision): New functions.
9035         (format_percent): Use fmtresult ctor.
9036         (get_width_and_precision): Remove.
9037         (format_integer): Make naming changes.  Avoid computing width and
9038         precision.
9039         (format_floating): Same.  Adjust indentation.
9040         (format_character, format_none): New functions.
9041         (format_string): Moved character handling to format_character.
9042         (format_directive): Remove arguments, change return type.
9043         (parse_directive): New function.
9044         (pass_sprintf_length::compute_format_length): Move directive
9045         parsing to parse_directive.
9047 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9049         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
9050         (assign_assembler_name_if_needed): ... this.
9051         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
9052         (assign_assembler_name_if_needed): ... this.
9053         (free_lang_data_in_cgraph): Adjust callers.
9054         * cgraphunit.c (cgraph_node::analyze): Likewise.
9055         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
9056         Likewise.
9058 2017-01-23  Richard Biener  <rguenther@suse.de>
9060         PR tree-optimization/79088
9061         PR tree-optimization/79188
9062         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
9063         resetting loop bounds after last path deletion.  Reset loop
9064         bounds of the target loop, make code match the comments.
9065         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
9066         Make sure loops need no fixups.
9068 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9070         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
9071         exponent support with double type for first argument.
9072         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
9073         type returned by __builtin_vec_extract_sig,
9074         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
9075         functions from "vector int" to "vector unsigned int" or from
9076         "vector long long int" to "vector unsigned long long int".
9077         Changed type returned by __builtin_vec_extract_exp,
9078         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
9079         functions from "vector int" to "vector unsigned int" or from
9080         "vector long long int" to "vector unsigned long long int".
9081         Changed return type of __builtin_vec_test_data_class,
9082         __builtin_vec_test_data_class_sp, and
9083         __builtin_vec_test_data_class_dp from "vector int" to
9084         "vector bool int" or from "vector long long int" to "vector bool
9085         long long int" and changed second argument type from "unsigned
9086         int" to "int".  Added new overloaded function forms "vector float
9087         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
9088         "vector float __builtin_vec_insert_exp_sp (vector float, vector
9089         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
9090         double, vector unsigned long long int)" and "vector double
9091         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
9092         long int)".  Changed return type of
9093         __builtin_scalar_test_data_class and
9094         __builtin_scalar_test_data_class_sp and
9095         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
9096         int" and changed second argument from "unsigned int" to "int".
9097         Changed type returned by __builtin_scalar_test_neg,
9098         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
9099         from "int" to "bool int".  Added new overloaded function form
9100         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
9101         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
9102         exponent double-precision with floating point first argument.
9103         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
9104         documentation of scalar_test_data_class, scalar_test_neg,
9105         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
9106         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
9107         vec_test_data_class built-in functions to reflect refinements in
9108         their type signatures.
9110 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
9112         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
9113         size of buf.
9114         (aarch64_elf_asm_destructor): Likewise.
9116 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
9118         PR rtl-optimization/78634
9119         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
9120         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
9121         * ifcvt.c (noce_try_cmove): Add missing cost check.
9123         PR rtl-optimization/71724
9124         * combine.c (if_then_else_cond): Look for situations where it is
9125         beneficial to undo the work of one of the recursive calls.
9127 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
9129         PR tree-optimization/70754
9130         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
9131         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
9132         combined stmt before it if not NULL.
9133         (combine_chains): Process refs reversely and compute dominance point
9134         for root ref.
9136 2017-01-23  Martin Liska  <mliska@suse.cz>
9138         PR tree-optimization/79196
9139         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
9140         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
9141         instead of memcmp.
9142         (strlen_optimize_stmt): Call the renamed function.
9144 2017-01-23  Michael Matz  <matz@suse.de>
9146         PR tree-optimization/78384
9147         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
9149 2017-01-23  Richard Biener  <rguenther@suse.de>
9151         PR tree-optimization/79186
9152         * tree-vrp.c (register_new_assert_for): Make sure we've seen
9153         both incoming edges before moving an assert.
9155 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9157         * ipa-prop.c (load_from_param_1): Removed.
9158         (load_from_unmodified_param): Bits from load_from_param_1 put back
9159         here.
9160         (load_from_param): Removed.
9161         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
9162         with stmt.  Reverted back to use of load_from_unmodified_param.
9164 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9166         PR ipa/79108
9167         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
9168         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
9169         field a pointer to garbage collected vector, mark lattices and
9170         ipcp_orig_node with GTY((skip)).
9171         (ipa_get_param_count): Adjust to descriptors being a pointer.
9172         (ipa_get_param): Likewise.
9173         (ipa_get_type): Likewise.
9174         (ipa_get_param_move_cost): Likewise.
9175         (ipa_set_param_used): Likewise.
9176         (ipa_get_controlled_uses): Likewise.
9177         (ipa_set_controlled_uses): Likewise.
9178         (ipa_is_param_used): Likewise.
9179         (ipa_node_params_t): Move into garbage collector.  New methods insert
9180         and remove.
9181         (ipa_node_params_sum): Annotate wth GTY(()).
9182         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
9183         garbage collected.
9184         (ipa_load_from_parm_agg): Adjust declaration.
9185         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
9186         * ipa-profile.c (ipa_profile): Likewise.
9187         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
9188         (ipa_populate_param_decls): Make descriptors parameter garbage
9189         collected.
9190         (ipa_dump_param): Adjust to descriptors being a pointer.
9191         (ipa_alloc_node_params): Likewise.
9192         (ipa_initialize_node_params): Likewise.
9193         (load_from_param_1): Make descriptors parameter garbage collected.
9194         (load_from_unmodified_param): Likewise.
9195         (load_from_param): Likewise.
9196         (ipa_load_from_parm_agg): Likewise.
9197         (ipa_node_params::~ipa_node_params): Removed.
9198         (ipa_free_all_node_params): Remove call to delete operator.
9199         (ipa_node_params_t::insert): New.
9200         (ipa_node_params_t::remove): Likewise.
9201         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
9202         copy known_csts and known_contexts vectors.
9203         (ipa_read_node_info): Adjust to descriptors being a pointer.
9204         (ipcp_modif_dom_walker): Make m_descriptors field garbage
9205         collected.
9206         (ipcp_transform_function): Make descriptors variable garbage
9207         collected.
9209 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
9211         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
9212         * config/i386/avx512dqintrin.h: Ditto.
9213         * config/i386/avx512fintrin.h: Ditto.
9214         * gcc/config/i386/i386.c: Handle new builtins.
9215         * config/i386/i386-builtin.def: Add new builtins.
9216         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
9217         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
9219 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9220             Martin Liska  <mliska@suse.cz>
9222         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
9223         * asan.c (asan_expand_poison_ifn): Support stores and use
9224         appropriate ASAN report function.
9225         * internal-fn.c (expand_ASAN_POISON_USE): New function.
9226         * internal-fn.def (ASAN_POISON_USE): Declare.
9227         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
9228         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
9229         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
9230         ASAN_POISON calls w/o LHS.
9231         * tree-ssa.c (execute_update_addresses_taken): Create clobber
9232         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
9233         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
9234         * gimplify.c (asan_poison_variables): Add attribute
9235         use_after_scope_memory to variables that really needs to live
9236         in memory.
9237         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
9238         having the attribute.
9240 2017-01-23  Martin Liska  <mliska@suse.cz>
9242         * asan.c (create_asan_shadow_var): New function.
9243         (asan_expand_poison_ifn): Likewise.
9244         * asan.h (asan_expand_poison_ifn): New declaration.
9245         * internal-fn.c (expand_ASAN_POISON): Likewise.
9246         * internal-fn.def (ASAN_POISON): New builtin.
9247         * sanopt.c (pass_sanopt::execute): Expand
9248         asan_expand_poison_ifn.
9249         * tree-inline.c (copy_decl_for_dup_finish): Make function
9250         external.
9251         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
9252         * tree-ssa.c (is_asan_mark_p): New function.
9253         (execute_update_addresses_taken): Rewrite local variables
9254         (identified just by use-after-scope as addressable) into SSA.
9256 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9258         * doc/install.texi (Specific): opensource.apple.com uses https
9259         now. Remove trailing slash.
9261 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9263         * README.Portability: Remove note on an Irix compatibility issue.
9265 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
9267         * gcov.c (INCLUDE_ALGORITHM): Define.
9268         (INCLUDE_VECTOR): Define.
9269         No longer include <vector> and <algorithm> directly.
9271 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
9273         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
9274         to https.
9275         * doc/invoke.texi (Code Gen Options): Ditto.
9277 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
9279         PR lto/78407
9280         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
9282 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9284         rtl-optimization/79125
9285         * cprop.c (local_cprop_pass): Handle cases where we make an
9286         unconditional trap.
9288 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
9290         PR target/61729
9291         PR target/77850
9292         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
9293         read from, for big endian.
9295 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
9297         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
9298         register pauth builtins for LP64 only.
9300 2017-01-20  Marek Polacek  <polacek@redhat.com>
9302         PR c/79152
9303         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
9304         non-case labels.
9306 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
9308         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
9309         of safelen status.
9310         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
9311         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
9312         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
9314 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9316         PR target/71270
9317         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
9318         in big-endian mode when they are not a single duplicated value.
9320 2017-01-20  Richard Biener  <rguenther@suse.de>
9322         * BASE-VER: Bump to 7.0.1.
9324 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
9326         * omp-low.c (omplow_simd_context): New struct.  Use it...
9327         (lower_rec_simd_input_clauses): ...here and...
9328         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
9329         references to idx, lane, max_vf, is_simt.
9331 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
9333         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
9334         mcpu=nps400.
9336 2017-01-20  Martin Jambor  <mjambor@suse.cz>
9338         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
9339         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
9340         gt-hsa-common.h.
9341         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
9342         (GTFILES): Rename hsa.c to hsa-common.c.
9343         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
9344         * hsa-dump.c: Likewise.
9345         * hsa-gen.c: Likewise.
9346         * hsa-regalloc.c: Likewise.
9347         * ipa-hsa.c: Likewise.
9348         * omp-expand.c: Likewise.
9349         * omp-low.c: Likewise.
9350         * toplev.c: Likewise.
9352 2017-01-20  Marek Polacek  <polacek@redhat.com>
9354         PR c/64279
9355         * doc/invoke.texi: Document -Wduplicated-branches.
9356         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
9357         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
9358         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
9359         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
9360         return 0 only when not OEP_LEXICOGRAPHIC.
9361         (fold_build_cleanup_point_expr): Use the expression
9362         location when building CLEANUP_POINT_EXPR.
9363         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
9364         * tree.c (add_expr): Handle error_mark_node.
9366 2017-01-20  Martin Liska  <mliska@suse.cz>
9368         PR lto/69188
9369         * tree-profile.c (init_ic_make_global_vars): Do not call
9370         finalize_decl.
9371         (gimple_init_gcov_profiler): Likewise.
9373 2017-01-20  Martin Liska  <mliska@suse.cz>
9375         PR ipa/71190
9376         * cgraph.h (maybe_create_reference): Remove argument and
9377         update comment.
9378         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
9379         argument.
9380         * ipa-cp.c (create_specialized_node): Likewise.
9381         * symtab.c (symtab_node::maybe_create_reference): Handle
9382         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
9384 2017-01-20  Martin Liska  <mliska@suse.cz>
9386         * read-rtl-function.c (function_reader::create_function): Use
9387         build_decl instread of build_decl_stat.
9389 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
9391         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
9392         * config/i386/avx512dqintrin.h: Ditto.
9393         * config/i386/avx512fintrin.h: Ditto.
9394         * config/i386/i386-builtin-types.def: Add new types.
9395         * gcc/config/i386/i386.c: Handle new types.
9396         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
9397         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
9398         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
9399         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
9400         (__builtin_ia32_kshiftridi): New.
9401         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
9403 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
9405         PR target/78875
9406         PR target/79140
9407         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
9408         define to rs6000_init_stack_protect_guard.
9409         (rs6000_init_stack_protect_guard): New function.
9411 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
9412             Yunqiang Su  <yunqiang.su@imgtec.com>
9414         * config.gcc (supported_defaults): Add madd4.
9415         (with_madd4): Add validation.
9416         (all_defaults): Add madd4.
9417         * config/mips/mips.opt (mmadd4): New option.
9418         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9419         mmadd4.
9420         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9421         __mips_no_madd4.
9422         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
9423         (ISA_HAS_FUSED_MADD4): Likewise.
9424         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
9425         * gcc/doc/install.texi (--with-madd4): Document the new option.
9427 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9429         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
9430         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
9431         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
9432         (aarch64_init_pauth_hint_builtins): New.
9433         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
9434         (aarch64_expand_builtin): Expand new builtins.
9436 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9438         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
9439         * combine-stack-adj.c (no_unhandled_cfa): Handle
9440         REG_CFA_TOGGLE_RA_MANGLE.
9441         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
9442         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
9443         info for return address signing.
9444         (aarch64_expand_epilogue): Likewise.
9446 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9448         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
9449         * config/aarch64/aarch64-protos.h
9450         (aarch64_return_address_signing_enabled): New declaration.
9451         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
9452         New function.
9453         (aarch64_expand_prologue): Sign return address before it's pushed onto
9454         stack.
9455         (aarch64_expand_epilogue): Authenticate return address fetched from
9456         stack.
9457         (aarch64_override_options): Sanity check for ILP32 and ISA level.
9458         (aarch64_attributes): New function attributes for "sign-return-address".
9459         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
9460         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
9461         ("*do_return"): Generate combined instructions according to key index.
9462         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
9463         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
9464         iterators.
9465         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
9466         * config/aarch64/aarch64.opt (msign-return-address=): New.
9467         * doc/extend.texi (AArch64 Function Attributes): Documents
9468         "sign-return-address=".
9469         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
9471 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
9473         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
9474         overall option summary.
9476 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9478         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
9479         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
9480         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
9481         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
9483 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
9485         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
9486         -mpower9-minmax by default for -mcpu=power9.
9487         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
9488         128-bit floating point.
9490 2017-01-20  Alan Modra  <amodra@gmail.com>
9492         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
9493         optimizing for size.
9495 2017-01-20  Alan Modra  <amodra@gmail.com>
9497         PR target/79144
9498         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
9499         for strcmp and strncmp from corresponding builtin decl.
9501 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9503         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
9504         instead of i386/rtems-64.h.
9505         * config/i386/rtems-64.h: Remove.
9507 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9509         PR target/78478
9510         Revert:
9511         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9513         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
9515 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
9517         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
9518         Change int to HOST_WIDE_INT.
9519         * config/aarch64/aarch64-protos.h
9520         (aarch64_simd_gen_const_vector_dup): Likewise.
9521         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
9523 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
9525         * langhooks-def.h (lhd_type_for_size): New decl.
9526         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
9527         * langhooks.c (lhd_type_for_size): New function, taken from
9528         lto_type_for_size.
9530 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
9532         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
9533         define_bypass for CR latency.
9534         (power9-cracked-alu): Update bypass latency and remove power9-branch.
9535         (power9-alu2): Add define_bypass for CR latency.
9536         (power9-cmp): New.
9537         (power9-mul): Update insn latency.
9538         (power9-mul-compare): Update insn latency, bypass latency and remove
9539         power9-branch.
9541 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9543         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9544         Delete.
9545         * config/aarch64/aarch64.md
9546         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
9547         aarch64_nopcrelative_literal_loads.
9548         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9550 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
9552         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
9553         TARGET_LOONGSON_3A.
9554         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
9556 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
9558         PR target/78176
9559         * config.gcc (supported_defaults): Add lxc1-sxc1.
9560         (with_lxc1_sxc1): Add validation.
9561         (all_defaults): Add lxc1-sxc1.
9562         * config/mips/mips.opt (mlxc1-sxc1): New option.
9563         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9564         mlxc1-sxc1.
9565         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9566         __mips_no_lxc1_sxc1.
9567         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
9568         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
9569         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
9571 2017-01-19  Richard Biener  <rguenther@suse.de>
9573         PR tree-optimization/72488
9574         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
9575         sure to restore SSA info.
9576         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
9578 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
9580         PR rtl-optimization/79121
9581         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
9582         of the inner type when shifting an extended value.
9584 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
9586         PR lto/78407
9587         * symtab.c (symtab_node::equal_address_to): Fix comparing of
9588         interposable aliases.
9590 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
9592         PR target/78516
9593         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
9594         Use the evmergelohi instruction.
9595         (mov_si<mode>_e500_subreg4_2_le): Likewise.
9596         (mov_sitf_e500_subreg8_2_be): Likewise.
9597         (mov_sitf_e500_subreg12_2_le): Likewise.
9598         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
9599         (mov_si<mode>_e500_subreg4_2_be): Likewise.
9600         (mov_sitf_e500_subreg8_2_le): Likewise.
9601         (mov_sitf_e500_subreg12_2_be): Likewise.
9603 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9605         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
9606         attribute from vecsimple to vecperm.
9607         (altivec_vbpermq2): Likewise.
9609 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9611         PR target/79040
9612         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
9614 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9615         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
9616         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
9617         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
9618         case where N arg is SIZE_MAX.
9619         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
9620         (cmpstrsi): Add pattern.
9622 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9624         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9625         __builtin_vec_revb builtins.
9626         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
9627         built-in functions to support generation of the ISA 3.0 XXBR<x>
9628         vector byte reverse instructions.
9629         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
9630         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
9631         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
9632         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
9633         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
9634         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
9635         (P9V_BUILTIN_VEC_REVB): Likewise.
9636         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
9637         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
9638         (p9_xxbrq_v16qi): Likewise.
9639         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
9640         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
9641         (p9_xxbrh_v8hi): Likewise.
9642         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
9643         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
9644         vec_revb built-in functions.
9646 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
9648         PR rtl-optimization/78952
9649         * config/i386/i386.md (any_extract): New code iterator.
9650         (*insvqi_2): Use any_extract for source operand.
9651         (*insvqi_3): Use any_shiftrt for source operand.
9653 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
9655         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
9656         New function.
9657         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
9659 2017-01-18  Matthias Klose  <doko@ubuntu.com>
9661         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
9663 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9665         * config/rs6000/altivec.h (vec_bperm): Change #define.
9666         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
9667         (altivec_vbpermq2): New define_insn.
9668         (altivec_vbpermd): Likewise.
9669         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
9670         function interface.
9671         (VBPERMD): Likewise.
9672         (VBPERM): New polymorphic function interface.
9673         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
9674         Add entries for P9V_BUILTIN_VEC_VBPERM.
9675         * doc/extend.texi: Add interfaces for vec_bperm.
9677 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9679         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
9680         first letter of error messages.
9681         (s390_resolve_overloaded_builtin): Likewise.
9682         * config/s390/s390.c (s390_expand_builtin): Likewise.
9683         (s390_invalid_arg_for_unprototyped_fn): Likewise.
9684         (s390_valid_target_attribute_inner_p): Likewise.
9685         * config/s390/s390.md ("tabort"): Likewise.
9687 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
9689         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
9690         (ISA_AVOID_DIV_HILO): New macro.
9691         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
9692         (ISA_HAS_DDIV): Likewise.
9694 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9696         * doc/invoke.texi (fabi-version): Correct number of occurrences.
9698 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9700         * doc/invoke.texi (fabi-version): Spelling fix.
9702 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9704         PR c++/70182
9705         * doc/invoke.texi (fabi-version): Mention mangling fix for
9706         operator names.
9708 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9710         PR c++/77489
9711         * doc/invoke.texi (fabi-version): Document discriminator mangling.
9713 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
9715         PR target/78875
9716         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
9717         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
9718         the new options.
9719         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
9720         flexible settings.
9721         (stack_protect_test): Ditto.
9722         * config/rs6000/rs6000.opt (mstack-protector-guard=,
9723         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
9724         options.
9725         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
9726         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
9727         -mstack-protector-guard-offset=.
9728         (RS/6000 and PowerPC Options): Ditto.
9730 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
9732         * config/i386/i386.h (MASK_CLASS_P): New define.
9733         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
9734         there are no registers from different register sets also when
9735         mask registers are used.  Update function comment.
9736         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
9737         to (*k/*r) and (*k/*km) alternatives.
9739 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
9741         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
9742         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
9743         (EH_RETURN_HANDLER_RTX): New define.
9744         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
9745         Force frame pointer in EH return functions.
9746         (aarch64_expand_epilogue): Add barrier for eh_return.
9747         (aarch64_final_eh_return_addr): Remove.
9748         (aarch64_eh_return_handler_rtx): New function.
9749         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
9750         Remove.
9751         (aarch64_eh_return_handler_rtx): New prototype.
9753 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9755         * config/rs6000/altivec.h (vec_rlmi): New #define.
9756         (vec_vrlnm): Likewise.
9757         (vec_rlnm): Likewise.
9758         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
9759         (UNSPEC_VRLNM): Likewise.
9760         (VIlong): New mode iterator.
9761         (altivec_vrl<VI_char>mi): New define_insn.
9762         (altivec_vrl<VI_char>nm): Likewise.
9763         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
9764         function entry.
9765         (VRLDNM): Likewise.
9766         (RLNM): New polymorphic function entry.
9767         (VRLWMI): New monomorphic function entry.
9768         (VRLDMI): Likewise.
9769         (RLMI): New polymorphic function entry.
9770         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
9771         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
9772         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
9773         vec_vrlnm.
9775 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
9777         PR debug/78839
9778         * dwarf2out.c (field_byte_offset): Restore the
9779         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
9780         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
9781         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
9782         of build2 + fold.
9784 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
9786         PR ada/67205
9787         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
9789 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
9791         PR debug/71669
9792         * dwarf2out.c (add_data_member_location_attribute): For constant
9793         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
9794         instead of DW_AT_data_member_location, DW_AT_bit_offset and
9795         DW_AT_byte_size attributes.
9797 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
9799         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
9800         after forcing to constant memory when the code model is medium.
9802 2017-01-17  Julia Koval  <julia.koval@intel.com>
9804         PR target/76731
9805         * config/i386/avx512fintrin.h
9806         (_mm512_i32gather_ps): Change __addr type to void const*.
9807         (_mm512_mask_i32gather_ps): Ditto.
9808         (_mm512_i32gather_pd): Ditto.
9809         (_mm512_mask_i32gather_pd): Ditto.
9810         (_mm512_i64gather_ps): Ditto.
9811         (_mm512_mask_i64gather_ps): Ditto.
9812         (_mm512_i64gather_pd): Ditto.
9813         (_mm512_mask_i64gather_pd): Ditto.
9814         (_mm512_i32gather_epi32): Ditto.
9815         (_mm512_mask_i32gather_epi32): Ditto.
9816         (_mm512_i32gather_epi64): Ditto.
9817         (_mm512_mask_i32gather_epi64): Ditto.
9818         (_mm512_i64gather_epi32): Ditto.
9819         (_mm512_mask_i64gather_epi32): Ditto.
9820         (_mm512_i64gather_epi64): Ditto.
9821         (_mm512_mask_i64gather_epi64): Ditto.
9822         (_mm512_i32scatter_ps): Change __addr type to void*.
9823         (_mm512_mask_i32scatter_ps): Ditto.
9824         (_mm512_i32scatter_pd): Ditto.
9825         (_mm512_mask_i32scatter_pd): Ditto.
9826         (_mm512_i64scatter_ps): Ditto.
9827         (_mm512_mask_i64scatter_ps): Ditto.
9828         (_mm512_i64scatter_pd): Ditto.
9829         (_mm512_mask_i64scatter_pd): Ditto.
9830         (_mm512_i32scatter_epi32): Ditto.
9831         (_mm512_mask_i32scatter_epi32): Ditto.
9832         (_mm512_i32scatter_epi64): Ditto.
9833         (_mm512_mask_i32scatter_epi64): Ditto.
9834         (_mm512_i64scatter_epi32): Ditto.
9835         (_mm512_mask_i64scatter_epi32): Ditto.
9836         (_mm512_i64scatter_epi64): Ditto.
9837         (_mm512_mask_i64scatter_epi64): Ditto.
9838         * config/i386/avx512pfintrin.h
9839         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
9840         (_mm512_mask_prefetch_i32gather_ps): Ditto.
9841         (_mm512_mask_prefetch_i64gather_pd): Ditto.
9842         (_mm512_mask_prefetch_i64gather_ps): Ditto.
9843         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
9844         (_mm512_prefetch_i32scatter_ps): Ditto.
9845         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
9846         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
9847         (_mm512_prefetch_i64scatter_pd): Ditto.
9848         (_mm512_prefetch_i64scatter_ps): Ditto.
9849         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
9850         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
9851         * config/i386/avx512vlintrin.h
9852         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
9853         (_mm_mmask_i32gather_ps): Ditto.
9854         (_mm256_mmask_i32gather_pd): Ditto.
9855         (_mm_mmask_i32gather_pd): Ditto.
9856         (_mm256_mmask_i64gather_ps): Ditto.
9857         (_mm_mmask_i64gather_ps): Ditto.
9858         (_mm256_mmask_i64gather_pd): Ditto.
9859         (_mm_mmask_i64gather_pd): Ditto.
9860         (_mm256_mmask_i32gather_epi32): Ditto.
9861         (_mm_mmask_i32gather_epi32): Ditto.
9862         (_mm256_mmask_i32gather_epi64): Ditto.
9863         (_mm_mmask_i32gather_epi64): Ditto.
9864         (_mm256_mmask_i64gather_epi32): Ditto.
9865         (_mm_mmask_i64gather_epi32): Ditto.
9866         (_mm256_mmask_i64gather_epi64): Ditto.
9867         (_mm_mmask_i64gather_epi64): Ditto.
9868         (_mm256_i32scatter_ps): Change __addr type to void*.
9869         (_mm256_mask_i32scatter_ps): Ditto.
9870         (_mm_i32scatter_ps): Ditto.
9871         (_mm_mask_i32scatter_ps): Ditto.
9872         (_mm256_i32scatter_pd): Ditto.
9873         (_mm256_mask_i32scatter_pd): Ditto.
9874         (_mm_i32scatter_pd): Ditto.
9875         (_mm_mask_i32scatter_pd): Ditto.
9876         (_mm256_i64scatter_ps): Ditto.
9877         (_mm256_mask_i64scatter_ps): Ditto.
9878         (_mm_i64scatter_ps): Ditto.
9879         (_mm_mask_i64scatter_ps): Ditto.
9880         (_mm256_i64scatter_pd): Ditto.
9881         (_mm256_mask_i64scatter_pd): Ditto.
9882         (_mm_i64scatter_pd): Ditto.
9883         (_mm_mask_i64scatter_pd): Ditto.
9884         (_mm256_i32scatter_epi32): Ditto.
9885         (_mm256_mask_i32scatter_epi32): Ditto.
9886         (_mm_i32scatter_epi32): Ditto.
9887         (_mm_mask_i32scatter_epi32): Ditto.
9888         (_mm256_i32scatter_epi64): Ditto.
9889         (_mm256_mask_i32scatter_epi64): Ditto.
9890         (_mm_i32scatter_epi64): Ditto.
9891         (_mm_mask_i32scatter_epi64): Ditto.
9892         (_mm256_i64scatter_epi32): Ditto.
9893         (_mm256_mask_i64scatter_epi32): Ditto.
9894         (_mm_i64scatter_epi32): Ditto.
9895         (_mm_mask_i64scatter_epi32): Ditto.
9896         (_mm256_i64scatter_epi64): Ditto.
9897         (_mm256_mask_i64scatter_epi64): Ditto.
9898         (_mm_i64scatter_epi64): Ditto.
9899         (_mm_mask_i64scatter_epi64): Ditto.
9900         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
9901         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
9902         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
9903         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
9904         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
9905         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
9906         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
9907         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
9908         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
9909         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
9910         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
9911         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
9912         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
9913         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
9914         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
9915         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
9916         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
9917         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
9918         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
9919         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
9920         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
9921         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
9922         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
9923         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
9924         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
9925         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
9926         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
9927         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
9928         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
9929         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
9930         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
9931         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
9932         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
9933         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
9934         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
9935         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
9936         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
9937         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
9938         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
9939         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
9940         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
9941         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
9942         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
9943         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
9944         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
9945         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
9946         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
9947         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
9948         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
9949         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
9950         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
9951         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
9952         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
9953         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
9954         definitions accordingly.
9956 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
9957             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
9959         PR target/79079
9960         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
9961         gen_lowpart.
9963 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
9965         PR target/79058
9966         * ira-conflicts.c (ira_build_conflicts): Update total conflict
9967         hard regs for inner regno.
9969 2017-01-17  Martin Liska  <mliska@suse.cz>
9971         PR ipa/71207
9972         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
9973         assumption and add comment.
9975 2017-01-17  Nathan Sidwell  <nathan@acm.org>
9977         * ipa-visibility.c (localize_node): New function, broken out of ...
9978         (function_and_variable_visibility): ... here. Call it.
9980 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
9982         PR middle-end/77445
9983         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
9984         correctly set frequency of oudgoing edge.
9985         (duplicate_thread_path): Fix profile updating.
9987 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
9989         PR other/79046
9990         * configure.ac: Add GCC_BASE_VER.
9991         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
9992         version from BASE-VER file.
9993         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
9994         (gcc.o): Depend on $(BASEVER).
9995         * common.opt (dumpfullversion): New option.
9996         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
9997         * doc/invoke.texi: Document -dumpfullversion.
9998         * doc/install.texi: Document --with-gcc-major-version-only.
9999         * configure: Regenerated.
10001 2017-01-17  Richard Biener  <rguenther@suse.de>
10003         PR tree-optimization/71433
10004         * tree-vrp.c (register_new_assert_for): Merge same asserts
10005         on all incoming edges.
10006         (process_assert_insertions_for): Handle insertions at the
10007         beginning of BBs.
10009 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
10011         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
10012         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
10014 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10016         PR target/78633
10017         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
10018         RTL sharing.
10020 2017-01-17  Alan Modra  <amodra@gmail.com>
10022         PR target/79066
10023         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
10024         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
10025         symbolic stack limit when pic.
10027 2017-01-16  Martin Sebor  <msebor@redhat.com>
10029         PR tree-optimization/78608
10030         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
10032 2017-01-16  Jeff Law  <law@redhat.com>
10034         Revert:
10035         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
10036         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
10037         for several include directories that may be relative to sysroot.
10038         * config/i386/x-mingw32 (gplus_includedir): Define.
10039         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
10040         (native_system_includedir): Likewise.
10041         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
10042         override if TARGET_SYSTEM_ROOT is defined.
10043         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
10045         PR tree-optimization/79090
10046         PR tree-optimization/33562
10047         PR tree-optimization/61912
10048         PR tree-optimization/77485
10049         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
10050         and computed trims into the dump file.
10052 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
10054         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
10056 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
10058         PR c/79089
10059         * gimplify.c (gimplify_init_constructor): If want_value and
10060         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
10061         fix.
10063         PR target/79080
10064         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
10065         sequence.  Formatting fixes.
10066         (doloop_optimize): Formatting fixes.
10068         PR driver/49726
10069         * gcc.c (debug_level_greater_than_spec_func): New function.
10070         (static_spec_functions): Add debug-level-gt spec function.
10071         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
10072         !g0.
10073         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10074         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10075         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
10076         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
10077         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
10078         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
10080 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
10082         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
10083         QImode fixups to general and mask registers only.
10085 2017-01-16  Carl Love  <cel@us.ibm.com>
10087         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
10088         for built-in functions
10089         vector signed char vec_nabs (vector signed char)
10090         vector signed short vec_nabs (vector signed short)
10091         vector signed int vec_nabs (vector signed int)
10092         vector signed long long vec_nabs (vector signed long long)
10093         vector float vec_nabs (vector float)
10094         vector double vec_nabs (vector double)
10095         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
10096         and NABS overload.
10097         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
10098         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
10099         * doc/extend.texi: Update the documentation file for the new built-in
10100         functions.
10102 2017-01-16  Martin Sebor  <msebor@redhat.com>
10104         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
10105         message.
10107 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10109         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
10110         UNSPEC_VSX__XXSPLTD to require special splat handling.
10112 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
10114         PR bootstrap/78616
10115         * system.h: Poison strndup.
10117 2017-01-16  Alan Modra  <amodra@gmail.com>
10119         PR target/79098
10120         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
10121         use a switch.
10123 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
10125         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
10127 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
10129         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
10130         call recog here.  Assert that INSN_CODE (insn) is non-negative.
10132 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10134         PR target/72749
10135         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
10136         fallthrough.
10137         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
10138         in the currently scheduled RTL fragment.
10140 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10142         PR rtl-optimization/78751
10143         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
10144         give up.
10146 2017-01-14  Jeff Law  <law@redhat.com>
10148         PR tree-optimization/79090
10149         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
10150         variable length stores.
10151         (compute_trims): Delete dead assignment to *trim_tail.
10152         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
10153         zero length.
10155 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
10157         PR rtl-optimization/78626
10158         PR rtl-optimization/78727
10159         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
10160         of a block, and split such blocks after everything else is finished.
10162 2017-01-14  Alan Modra  <amodra@gmail.com>
10164         PR target/72749
10165         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
10166         target legitimate_combined_insn.
10167         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
10168         (rs6000_legitimate_combined_insn): New function.
10169         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
10170         all uses.
10171         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
10172         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
10173         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
10175 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
10177         * doc/frontends.texi (G++ and GCC): Remove references to Java.
10179 2017-01-13  Jeff Law  <law@redhat.com>
10181         PR tree-optimization/33562
10182         PR tree-optimization/61912
10183         PR tree-optimization/77485
10184         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
10185         a statement.
10186         (delete_dead_assignment): Likewise.
10187         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
10188         statement to delete_dead_call and delete_dead_assignment.
10190 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
10192         PR c/78304
10193         * substring-locations.c (format_warning_va): Strengthen case 1 so
10194         that both endpoints of the substring must be within the format
10195         range for just the substring to be printed.
10197 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
10199         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
10200         * config/i386/i386.c (ix86_target_string): Add missing options
10201         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
10202         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
10203         flags_other and ix86_target_other to flags2_other.  Display unknown
10204         isa2 options.
10205         (ix86_valid_target_attribute_inner_p): Add missing options and
10206         reorder options by implied ISAs, as in ix86_target_string.
10208 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10210         * hash-table.h (hash_table::too_empty_p): New function.
10211         (hash_table::expand): Use it.
10212         (hash_table::traverse): Likewise.
10213         (hash_table::empty_slot): Use sizeof (value_type) instead of
10214         sizeof (PTR) to convert bytes to elements.  Shrink the table
10215         if the current size is excessive for the current number of
10216         elements.
10218 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10220         * ira-costs.c (record_reg_classes): Break from the inner loop
10221         early once alt_fail is known to be true.  Update outer loop
10222         handling accordingly.
10224 2017-01-13  Jeff Law  <law@redhat.com>
10226         * tree-ssa-dse.c (decrement_count): New function.
10227         (increment_start_addr, maybe_trim_memstar_call): Likewise.
10228         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
10229         when we know the partially dead statement is a mem* function.
10231         PR tree-optimization/61912
10232         PR tree-optimization/77485
10233         * tree-ssa-dse.c: Include expr.h.
10234         (maybe_trim_constructor_store): New function.
10235         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
10237         PR tree-optimization/33562
10238         PR tree-optimization/61912
10239         PR tree-optimization/77485
10240         * doc/invoke.texi: Document new dse-max-object-size param.
10241         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
10242         * tree-ssa-dse.c: Include params.h.
10243         (dse_store_status): New enum.
10244         (initialize_ao_ref_for_dse): New, partially extracted from
10245         dse_optimize_stmt.
10246         (valid_ao_ref_for_dse, normalize_ref): New.
10247         (setup_live_bytes_from_ref, compute_trims): Likewise.
10248         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
10249         (maybe_trim_partially_dead_store): Likewise.
10250         (maybe_trim_complex_store): Likewise.
10251         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
10252         Track what bytes live from the original store.  Return tri-state
10253         for dead, partially dead or live.
10254         (dse_dom_walker): Add constructor, destructor and new private members.
10255         (delete_dead_call, delete_dead_assignment): New extracted from
10256         dse_optimize_stmt.
10257         (dse_optimize_stmt): Make a member of dse_dom_walker.
10258         Use initialize_ao_ref_for_dse.
10260         PR tree-optimization/33562
10261         PR tree-optimization/61912
10262         PR tree-optimization/77485
10263         * sbitmap.h (bitmap_count_bits): Prototype.
10264         (bitmap_clear_range, bitmap_set_range): Likewise.
10265         * sbitmap.c (bitmap_clear_range): New function.
10266         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
10268 2017-01-13  Martin Liska  <mliska@suse.cz>
10270         PR ipa/79043
10271         * function.c (set_cfun): Add new argument force.
10272         * function.h (set_cfun): Likewise.
10273         * ipa-inline-transform.c (inline_call): Use the function when
10274         strict alising from is dropped for function we inline to.
10276 2017-01-13  Richard Biener  <rguenther@suse.de>
10278         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
10279         for dumping GIMPLE INTEGER_CSTs.
10281 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10283         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
10284         to 201112L since C++17.
10286 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
10288         PR sanitizer/78887
10289         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
10290         if -fsanitize=kernel-address is present.
10292 2017-01-13  Richard Biener  <rguenther@suse.de>
10294         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
10295         as _Literal ( type ) number in case usual suffixes do not
10296         preserve all information.
10298 2017-01-13  Richard Biener  <rguenther@suse.de>
10300         PR tree-optimization/77283
10301         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
10302         and ssa-iterators.h.
10303         (is_feasible_trace): Implement a cost model based on joiner
10304         PHI node uses.
10306 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10308         PR target/79004
10309         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
10310         char or short to __float128/_Float128 directly.
10312 2017-01-12  Martin Sebor  <msebor@redhat.com>
10314         to -Wformat-overflow.
10315         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
10316         (min_bytes_remaining): Same.
10317         (get_string_length): Same.
10318         (format_string): Same.
10319         (format_directive): Same.
10320         (add_bytes): Same.
10321         (pass_sprintf_length::handle_gimple_call): Same.
10323 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
10325         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
10326         info.nowrite calls with no lhs that can't throw.  Return bool
10327         whether gsi_remove has been called or not.
10328         (pass_sprintf_length::handle_gimple_call): Return bool whether
10329         try_substitute_return_value called gsi_remove.  Formatting fix.
10330         (pass_sprintf_length::execute): Don't use gsi_remove if
10331         handle_gimple_call returned true.
10333         PR bootstrap/79069
10334         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
10335         be removed due to side-effects, don't remove following barrier nor
10336         turn the successor edge into fallthru edge.
10338 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10340         PR target/79044
10341         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
10342         element-reversing loads and stores as not swappable.
10344 2017-01-12  Nathan Sidwell  <nathan@acm.org>
10345             Nicolai Stange  <nicstange@gmail.com>
10347         * combine.c (try_combine): Don't ignore result of overlap checking
10348         loop.  Combine overlap & asm check into single loop.
10350 2017-01-12  Richard Biener  <rguenther@suse.de>
10352         * tree-pretty-print.c (dump_generic_node): Provide -gimple
10353         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
10355 2017-01-12  Richard Biener  <rguenther@suse.de>
10357         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
10358         and TS_TARGET_OPTION directly derive from TS_BASE.
10359         * tree-core.h (tree_optimization_option): Derive from tree_base.
10360         (tree_target_option): Likewise.
10362 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
10364         * config/i386/i386.c (memory_address_length): Increase len
10365         only when rip_relative_addr_p returns false.
10367 2017-01-11  Julia Koval  <julia.koval@intel.com>
10369         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
10370         (OPTION_MASK_ISA_SGX_SET): New.
10371         (ix86_handle_option): Handle OPT_msgx.
10372         * config.gcc: Added sgxintrin.h.
10373         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
10374         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
10375         * config/i386/i386.c (ix86_target_string): Add -msgx.
10376         (PTA_SGX): New.
10377         (ix86_option_override_internal): Handle new options.
10378         (ix86_valid_target_attribute_inner_p): Add sgx.
10379         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
10380         * config/i386/i386.opt: Add msgx.
10381         * config/i386/sgxintrin.h: New file.
10382         * config/i386/x86intrin.h: Add sgxintrin.h.
10384 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
10386         PR c++/71537
10387         * fold-const.c (maybe_nonzero_address): Return 1 for function
10388         local objects.
10389         (tree_single_nonzero_warnv_p): Don't handle function local objects
10390         here.
10392         PR c++/72813
10393         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
10394         of c-header.
10396 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
10398         PR driver/78877
10399         * opts.c: Include "spellcheck.h"
10400         (struct string_fragment): New struct.
10401         (struct edit_distance_traits<const string_fragment &>): New
10402         struct.
10403         (get_closest_sanitizer_option): New function.
10404         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
10406 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
10408         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
10409         by 12.
10410         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
10411         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
10412         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
10413         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
10414         for initial die_offset if dwarf_split_debug_info.
10415         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
10416         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
10417         fields.
10418         (output_skeleton_debug_sections): Formatting fix.  Use
10419         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
10420         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
10422 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
10424         * config/arm/cortex-a53.md: Add bypasses for
10425         cortex_a53_r2f_cvt.
10426         (cortex_a53_r2f): Only use for transfers.
10427         (cortex_a53_f2r): Likewise.
10428         (cortex_a53_r2f_cvt): Add reservation for conversions.
10429         (cortex_a53_f2r_cvt): Likewise.
10431 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
10433         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
10434         to all inlined functions, change static to extern.
10436 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
10438         PR target/78253
10439         * config/arm/arm.c (legitimize_pic_address): Handle reference to
10440         weak symbol.
10441         (arm_assemble_integer): Likewise.
10443 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
10445         * config.gcc: Use new awk script to check CPU, FPU and architecture
10446         parameters for --with-... options.
10447         * config/arm/parsecpu.awk: New file
10448         * config/arm/arm-cpus.in: New file.
10449         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
10450         files.
10451         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
10452         files.
10453         * config/arm/t-arm: Update dependency rules.
10454         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
10455         of processing .def files.
10456         * config/arm/genopt.sh: Deleted.
10457         * config/arm/gentune.sh: Deleted.
10458         * config/arm/arm-cores.def: Deleted.
10459         * config/arm/arm-arches.def: Deleted.
10460         * config/arm/arm-fpus.def: Deleted.
10461         * config/arm/arm-tune.md: Regenerated.
10462         * config/arm/arm-tables.opt: Regenerated.
10463         * config/arm/arm-cpu.h: New generated file.
10464         * config/arm/arm-cpu-data.h: New generated file.
10465         * config/arm/arm-cpu-cdata.h: New generated file.
10467 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
10469         PR lto/79042
10470         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
10471         bit.
10472         (input_varpool_node): Unpack dynamically_initialized bit.
10474 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10476         PR rtl-optimization/79032
10477         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
10478         the alignment of the adjusted memory reference against that of MODE,
10479         instead of the alignment of the original memory reference.
10481 2017-01-11  Martin Jambor  <mjambor@suse.cz>
10483         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
10484         test.
10485         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
10486         decorated functions.
10488 2017-01-11  Richard Biener  <rguenther@suse.de>
10490         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
10491         set range/nonnull info for PHI results.  Do not set it on
10492         stmts marked for removal.
10494 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
10496         * expr.c (store_field): In the bitfield case, fetch the return value
10497         from the registers before applying a single big-endian adjustment.
10498         Always do a final load for a BLKmode value not larger than a word.
10500 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
10502         PR c++/77949
10503         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
10504         that we correctly handle column numbers greater than
10505         LINE_MAP_MAX_COLUMN_NUMBER.
10507 2017-01-10  Martin Sebor  <msebor@redhat.com>
10509         PR middle-end/78245
10510         * gimple-ssa-sprintf.c (get_destination_size): Call
10511         {init,fini}object_sizes.
10512         * tree-object-size.c (addr_object_size): Adjust.
10513         (pass_through_call): Adjust.
10514         (pass_object_sizes::execute): Adjust.
10515         * tree-object-size.h (fini_object_sizes): Declare.
10517 2017-01-10  Martin Sebor  <msebor@redhat.com>
10519         PR tree-optimization/78775
10520         * builtins.c (get_size_range): Move...
10521         * calls.c: ...to here.
10522         (alloc_max_size): Accept zero argument.
10523         (operand_signed_p): Remove.
10524         (maybe_warn_alloc_args_overflow): Call get_size_range.
10525         * calls.h (get_size_range): Declare.
10527 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
10529         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
10530         from TI's devices.csv file as of September 2016.
10531         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
10533 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
10535         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
10536         * doc/invoke.texi: Likewise.
10537         * doc/md.texi: Likewise.
10538         * doc/objc.texi: Likewise.
10540 2017-01-10  Joshua Conner  <joshconner@google.com>
10542         * config/arm/fuchsia-elf.h: New file.
10543         * config/fuchsia.h: New file.
10544         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
10545         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
10546         targets.
10547         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
10549 2016-01-10  Richard Biener  <rguenther@suse.de>
10551         PR tree-optimization/79034
10552         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10553         Propagate out degenerate PHIs in the joiner.
10555 2017-01-10  Martin Liska  <mliska@suse.cz>
10557         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
10558         (sort_congruence_classes_by_decl_uid): Likewise.
10559         (sort_congruence_class_groups_by_decl_uid): Likewise.
10560         (sem_item_optimizer::merge_classes): Sort class, groups in these
10561         classes and members in the groups by DECL_UID of declarations.
10562         This would make merge operations stable.
10564 2017-01-10  Martin Liska  <mliska@suse.cz>
10566         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
10567         usage of m_classes_vec.
10568         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
10569         (sem_item_optimizer::get_group_by_hash): Likewise.
10570         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10571         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
10572         (sem_item_optimizer::verify_classes): Likewise.
10573         (sem_item_optimizer::process_cong_reduction): Likewise.
10574         (sem_item_optimizer::dump_cong_classes): Likewise.
10575         (sem_item_optimizer::merge_classes): Likewise.
10576         * ipa-icf.h (congruence_class_hash): Rename from
10577         congruence_class_group_hash.  Remove declaration of m_classes_vec.
10579 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
10581         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
10582         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
10583         * config.gcc: Add avx512vpopcntdqintrin.h.
10584         * config/i386/avx512vpopcntdqintrin.h: New.
10585         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
10586         * config/i386/i386-builtin-types.def: Add new types.
10587         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
10588         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
10589         __builtin_ia32_vpopcountq_v8di_mask): New.
10590         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10591         __AVX512VPOPCNTDQ__.
10592         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
10593         (PTA_AVX512VPOPCNTDQ): Define.
10594         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
10595         TARGET_AVX512VPOPCNTDQ_P): Define.
10596         * config/i386/i386.opt: Add mavx512vpopcntdq.
10597         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
10598         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
10600 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
10602         PR middle-end/77484
10603         * predict.def (PRED_CALL): Set to 67.
10605 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
10607         * expr.c (store_field): In the bitfield case, if the value comes from
10608         a function call and is of an aggregate type returned in registers, do
10609         not modify the field mode; extract the value in all cases if the mode
10610         is BLKmode and the size is not larger than a word.
10612 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
10614         PR target/71017
10615         * config/i386/cpuid.h: Fix undefined behavior.
10617 2017-01-04  Jeff Law  <law@redhat.com>
10619         PR tree-optimization/79007
10620         PR tree-optimization/67955
10621         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
10622         conservative for pt.null when flag_non_call_exceptions is on.
10624 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
10626         PR translation/79019
10627         PR translation/79020
10628         * params.def (PARAM_INLINE_MIN_SPEEDUP,
10629         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
10630         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
10631         in descriptions.
10632         * config/avr/avr.opt (maccumulate-args): Likewise.
10633         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
10634         * common.opt (freport-bug): Likewise.
10635         * cif-code.def (CIF_FINAL_ERROR): Likewise.
10636         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
10637         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
10638         translatable string.
10639         * config/i386/i386.c (function_value_32): Likewise.
10640         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
10641         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
10642         Likewise.
10643         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
10644         * common/config/msp430/msp430-common.c (msp430_handle_option):
10645         Likewise.
10646         * symtab.c (symtab_node::verify_base): Likewise.
10647         * opts.c (set_debug_level): Likewise.
10648         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
10649         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10650         missing whitespace to translatable strings.
10651         * config/avr/avr.md (bswapsi2): Fix typo in comment.
10652         * config/sh/superh.h: Likewise.
10653         * config/i386/xopintrin.h: Likewise.
10654         * config/i386/znver1.md: Likewise.
10655         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
10656         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
10657         * double-int.h (struct double_int): Likewise.
10658         * double-int.c (div_and_round_double): Likewise.
10659         * wide-int.cc: Likewise.
10660         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
10661         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
10662         * cfgcleanup.c (crossjumps_occured): Renamed to ...
10663         (crossjumps_occurred): ... this.
10664         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
10665         Adjust all uses.
10667         PR tree-optimization/78899
10668         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
10669         returning bool return struct loop *, NULL for failure and the new
10670         loop on success.
10671         (versionable_outer_loop_p): Don't version outer loop if it has
10672         dont_vectorized bit set.
10673         (tree_if_conversion): When versioning outer loop, ensure
10674         tree_if_conversion is performed also on the inner loop of the
10675         non-vectorizable outer loop copy.
10676         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
10677         LOOP_VECTORIZED in inner loop of the scalar outer loop and
10678         prevent vectorization of it.
10679         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
10680         the outer loop vectorization of the non-scalar version is attempted
10681         before vectorization of the inner loop in scalar version.  If
10682         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
10683         vectorization of its inner loop.
10684         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
10685         has 2 inner loops, rename also on edges from bb whose single pred
10686         is outer_loop->header.  Fix typo in function comment.
10688 2017-01-09  Martin Sebor  <msebor@redhat.com>
10690         PR bootstrap/79033
10691         * asan.c (asan_emit_stack_protection): Increase local buffer size
10692         to avoid snprintf truncation warning.
10694 2017-01-09  Andrew Pinski  <apinski@cavium.com>
10696         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
10697         to reference thunderx2t99 for the tuning structure
10698         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
10699         Rename to ...
10700         (thunderx2t99_extra_costs): This.
10701         * config/aarch64/aarch64-tune.md: Regenerate.
10702         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
10703         (vulcan_addrcost_table): This.
10704         (vulcan_regmove_cost): Rename to ...
10705         (thunderx2t99_regmove_cost): This.
10706         (vulcan_vector_cost): Rename to ...
10707         (thunderx2t99_vector_cost): this.
10708         (vulcan_branch_cost): Rename to ...
10709         (thunderx2t99_branch_cost): This.
10710         (vulcan_tunings): Rename to ...
10711         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
10712         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
10714 2017-01-09  Martin Jambor  <mjambor@suse.cz>
10716         PR ipa/78365
10717         PR ipa/78599
10718         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
10719         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
10720         (propagate_vr_accross_jump_function): Use the above function for all
10721         value range computations for pass-through jump functions and type
10722         converasion from explicit value range values.
10723         (ipcp_propagate_stage): Do not attempt to deduce types of formal
10724         parameters from TYPE_ARG_TYPES.
10725         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
10726         (ipa_write_node_info): Stream type of the actual argument.
10727         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
10729 2017-01-09  Martin Liska  <mliska@suse.cz>
10731         PR pch/78970
10732         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
10733         (lookup_compiler): Do not show error message with have_E.
10735 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
10737         PR tree-optimization/78938
10738         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
10739         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
10740         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
10741         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
10742         fixes.
10744 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10746         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
10747         is const0_rtx.
10749 2017-01-09  Richard Biener  <rguenther@suse.de>
10751         PR tree-optimization/78997
10752         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
10753         name condition properly.
10755 2017-01-09  Richard Biener  <rguenther@suse.de>
10757         PR debug/79000
10758         * dwarf2out.c (is_cxx): New overload with context.
10759         (is_naming_typedef_decl): Use it.
10761 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
10763         * invoke.texi (Option Summary): Correct spacing in option lists
10764         and add line breaks to fix over-long lines.
10766 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
10768         PR middle-end/17660
10770         * extend.texi (Common Variable Attributes): Add xref to GCC
10771         Internals manual to explain mode attribute keywords.
10773 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
10775         PR other/16519
10776         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
10777         and Preprocessor Options.
10778         (Options for Linking): Document -pthread here....
10779         (RS/6000 and PowerPC Options): ...not here.
10780         (Solaris 2 Options): ...or here.
10781         * doc/cppopts.texi: Document -pthread.
10783 2017-01-08  Martin Sebor  <msebor@redhat.com>
10785         PR middle-end/77708
10786         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
10787         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
10788         New member functions.
10789         (format_directive): Used them.
10790         (add_bytes): Same.
10791         (pass_sprintf_length::handle_gimple_call): Same.
10792         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
10793         to avoid truncation for any argument.
10794         (extract_affine_mul): Same.
10795         * tree.c (get_file_function_name): Same.
10797 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
10799         PR middle-end/77484
10800         * predict.def (PRED_INDIR_CALL): Set to 86.
10802 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
10804         PR preprocessor/54124
10805         * doc/cppopts.texi: Reformat -d subtable to list the full name
10806         of the options.  Add cross-reference to the docs for the general
10807         compiler -d options.
10808         * doc/invoke.texi (Developer Options): Add cross-reference to the
10809         preprocessor-specific -d option documentation.
10811 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
10813         PR preprocessor/13498
10814         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
10815         redudant material, and reflect new command-line options.
10816         (System Headers): Likewise.
10818 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
10820         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
10821         -isystem, and -idirafter.  Copy-edit.
10822         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
10823         default for -ftrack-macro-expansion.  Delete obsolete and
10824         badly-formatted implementation details about -fdebug-cpp output.
10825         * doc/cppwarnopts.texi: Copy-edit.
10827 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
10829         PR c++/72803
10830         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
10831         that the transition from a max line width >= 1<<10 to narrower
10832         lines works correctly.
10834 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
10836         * doc/options.texi (PerFunction): New.
10837         * opt-functions.awk (switch_flags): Map both Optimization and
10838         PerFunction to CL_OPTIMIZATION.
10839         * opth-gen.awk: Test for PerFunction flag along with
10840         Optimization.
10841         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
10842         it only when the latter is present.  Skip those that don't in
10843         the hash function generator.
10844         * common.opt (fvar-tracking): Mark as PerFunction instead of
10845         Optimization.
10846         (fvar-tracking-assignments): Likewise.
10847         (fvar-tracking-assignments-toggle): Likewise.
10848         (fvar-tracking-uninit): Likewise.
10850 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
10852         PR translation/79018
10853         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
10854         the and store.
10856 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
10858         PR target/57583
10859         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
10860         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
10861         TARGET_LONG_JUMP_TABLE_OFFSETS.
10862         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
10863         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
10864         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
10865         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
10866         * config/m68k/m68k.md (tablejump expander): Likewise.
10867         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
10868         TARGET_LONG_JUMP_TABLE_OFFSETS.
10869         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
10870         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
10872 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10873             David Holsgrove <david.holsgrove@xilinx.com>
10875         * common/config/microblaze/microblaze-common.c
10876         (TARGET_EXCEPT_UNWIND_INFO): Remove.
10877         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
10878         New prototype.
10879         * config/microblaze/microblaze.c (microblaze_must_save_register)
10880         (microblaze_expand_epilogue, microblaze_return_addr): Handle
10881         calls_eh_return.
10882         (microblaze_eh_return): New function.
10883         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
10884         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
10885         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
10886         * config/microblaze/microblaze.md (eh_return): New pattern.
10888 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
10890         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
10891         GCC_DIAGNOSTIC_STRINGIFY): Define.
10893         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
10895 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10897         * config/arm/arm.md (<mcrr>): New.
10898         (<mrrc>): New.
10899         * config/arm/arm.c (arm_arch5te): New.
10900         (arm_option_override): Set arm_arch5te.
10901         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
10902         and mrrc2.
10903         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
10904         (arm_mcrr_qualifiers): ... this. New.
10905         (MRRC_QUALIFIERS): Define to...
10906         (arm_mrrc_qualifiers): ... this. New.
10907         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
10908         __arm_mrrc2): New.
10909         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
10910         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
10911         (MRRCI, mrrc, MRRC): New.
10912         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
10913         VUNSPEC_MRRC2): New.
10915 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10917         * config/arm/arm.md (<mcr>): New.
10918         (<mrc>): New.
10919         * config/arm/arm.c (arm_coproc_builtin_available): Add
10920         support for mcr, mrc, mcr2 and mrc2.
10921         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
10922         (arm_mcr_qualifiers): ... this. New.
10923         (MRC_QUALIFIERS): Define to ...
10924         (arm_mrc_qualifiers): ... this. New.
10925         (MCR_QUALIFIERS): Define to ...
10926         (arm_mcr_qualifiers): ... this. New.
10927         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
10928         __arm_mrc2): New.
10929         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
10930         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
10931         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
10932         VUNSPEC_MRC2): New.
10934 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10936         * config/arm/arm.md (*ldc): New.
10937         (*stc): New.
10938         (<ldc>): New.
10939         (<stc>): New.
10940         * config/arm/arm.c (arm_coproc_builtin_available): Add
10941         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
10942         (arm_coproc_ldc_stc_legitimate_address): New.
10943         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
10944         'qualifier_const_pointer'.
10945         (LDC_QUALIFIERS): Define to...
10946         (arm_ldc_qualifiers): ... this. New.
10947         (STC_QUALIFIERS): Define to...
10948         (arm_stc_qualifiers): ... this. New.
10949         * config/arm/arm-protos.h
10950         (arm_coproc_ldc_stc_legitimate_address): New.
10951         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
10952         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
10953         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
10954         stc2, stcl, stc2l): New.
10955         * config/arm/constraints.md (Uz): New.
10956         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
10957         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
10958         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
10959         VUNSPEC_STC2L): New.
10961 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10963         * config/arm/arm.md (<cdp>): New.
10964         * config/arm/arm.c (neon_const_bounds): Rename this ...
10965         (arm_const_bounds): ... this.
10966         (arm_coproc_builtin_available): New.
10967         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
10968         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
10969         (CDP_QUALIFIERS): Define to...
10970         (arm_cdp_qualifiers): ... this. New.
10971         (void_UP): Define.
10972         (arm_expand_builtin_args): Add case for 6 arguments.
10973         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
10974         (arm_const_bounds): ... this.
10975         (arm_coproc_builtin_available): New.
10976         * config/arm/arm_acle.h (__arm_cdp): New.
10977         (__arm_cdp2): New.
10978         * config/arm/arm_acle_builtins.def (cdp): New.
10979         (cdp2): New.
10980         * config/arm/iterators.md (CDPI,CDP,cdp): New.
10981         * config/arm/neon.md: Rename all 'neon_const_bounds' to
10982         'arm_const_bounds'.
10983         * config/arm/types.md (coproc): New.
10984         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
10985         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
10986         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
10987         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
10989 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10991         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
10992         (UBINOP_QUALIFIERS): New.
10993         (si_UP): Define.
10994         (acle_builtin_data): New. Change comment.
10995         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
10996         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
10997         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
10998         arm_acle_builtins.def.
10999         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
11000         (arm_init_acle_builtins): New.
11001         (CRC32_BUILTIN): Remove.
11002         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
11003         crc32cb, crc32ch and crc32cw.
11004         (arm_init_crc32_builtins): Remove.
11005         (arm_init_builtins): Use arm_init_acle_builtins rather
11006         than arm_init_crc32_builtins.
11007         (arm_expand_acle_builtin): New.
11008         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
11009         * config/arm/arm_acle_builtins.def: New.
11011 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11013         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
11014         (arm_builtin_datum): ... this.
11015         (arm_init_neon_builtin): Rename to ...
11016         (arm_init_builtin): ... this. Add a new parameters PREFIX
11017         and USE_SIG_IN_NAME.
11018         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
11019         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
11020         'arm_builtin_datum'.
11021         (arm_init_vfp_builtins): Likewise.
11022         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
11023         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
11024         (arm_expand_neon_args): Rename to ...
11025         (arm_expand_builtin_args): ... this. Rename builtin_arg
11026         enum values and differentiate between ARG_BUILTIN_MEMORY
11027         and ARG_BUILTIN_NEON_MEMORY.
11028         (arm_expand_neon_builtin_1): Rename to ...
11029         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
11030         values, arm_expand_builtin_args and add bool parameter NEON.
11031         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
11032         (arm_expand_vfp_builtin): Likewise.
11033         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
11035 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11037         PR middle-end/77484
11038         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
11039         * predict.c (tree_estimate_probability_bb): Reverse direction of
11040         polymorphic call predictor.
11042 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
11044         * passes.c (execute_one_pass): Split out pass-skipping logic into...
11045         (determine_pass_name_match): ...this new function and...
11046         (should_skip_pass_p): ...this new function.
11048 2017-01-06  Nathan Sidwell  <nathan@acm.org>
11050         * ipa-visibility.c (function_and_variable_visibility): Reformat
11051         comments and long lines.  Remove extrneous if.
11052         * symtab.c (symtab_node::make_decl_local): Fix code format.
11053         (symtab_node::set_section_for_node): Fix comment typo.
11055 2017-01-06  Martin Liska  <mliska@suse.cz>
11057         PR bootstrap/79003
11058         * lra-constraints.c: Rename invariant to lra_invariant.
11059         * predict.c (set_even_probabilities): Initialize e to NULL.
11061 2017-01-05  Martin Sebor  <msebor@redhat.com>
11063         PR tree-optimization/78910
11064         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
11065         (format_integer): Correct off-by-one error in the handling
11066         of precision with negative numbers in signed conversions..
11068 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11070         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
11072 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11074         PR tree-optimization/71016
11075         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
11076         factor_out_conditional_conversion.  Formatting fix.
11077         (factor_out_conditional_conversion): Add cond_stmt argument.
11078         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
11079         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
11080         Formatting fix.
11082 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
11084         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
11085         read-rtl-function.o, and selftest-rtl.o.
11086         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
11087         (selftest::aarch64_test_loading_full_dump): New function.
11088         (selftest::aarch64_run_selftests): New function.
11089         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
11090         selftest::aarch64_run_selftests.
11091         * config/i386/i386.c
11092         (selftest::ix86_test_loading_dump_fragment_1): New function.
11093         (selftest::ix86_test_loading_call_insn): New function.
11094         (selftest::ix86_test_loading_full_dump): New function.
11095         (selftest::ix86_test_loading_unspec): New function.
11096         (selftest::ix86_run_selftests): Call the new functions.
11097         * emit-rtl.c (maybe_set_max_label_num): New function.
11098         * emit-rtl.h (maybe_set_max_label_num): New decl.
11099         * function.c (instantiate_decls): Guard call to
11100         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
11101         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
11102         "static".
11103         * gensupport.c (gen_reader::gen_reader): Pass "false"
11104         for new "compact" param of rtx_reader.
11105         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
11106         rather than an empty string for NULL strings.
11107         * read-md.c: Potentially include config.h rather than bconfig.h.
11108         Wrap include of errors.h with #ifdef GENERATOR_FILE.
11109         (have_error): New global, copied from errors.c.
11110         (md_reader::read_name): Rename to...
11111         (md_reader::read_name_1): ...this, adding "out_loc" param,
11112         and converting "missing name or number" to returning false, rather
11113         than failing.
11114         (md_reader::read_name): Reimplement in terms of read_name_1.
11115         (md_reader::read_name_or_nil): New function.
11116         (md_reader::read_string): Handle "(nil)" by returning NULL.
11117         (md_reader::md_reader): Add new param "compact".
11118         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
11119         (md_reader::read_file): New method.
11120         * read-md.h (md_reader::md_reader): Add new param "compact".
11121         (md_reader::read_file): New method.
11122         (md_reader::is_compact): New accessor.
11123         (md_reader::read_name): Convert return type from void to file_location.
11124         (md_reader::read_name_or_nil): New decl.
11125         (md_reader::read_name_1): New decl.
11126         (md_reader::m_compact): New field.
11127         (noop_reader::noop_reader): Pass "false" for new "compact" param
11128         of rtx_reader.
11129         (rtx_reader::rtx_reader): Add new "compact" param.
11130         (rtx_reader::read_rtx_operand): Make virtual and convert return
11131         type from void to rtx.
11132         (rtx_reader::read_until): New decl.
11133         (rtx_reader::handle_any_trailing_information): New virtual function.
11134         (rtx_reader::postprocess): New virtual function.
11135         (rtx_reader::finalize_string): New virtual function.
11136         (rtx_reader::m_in_call_function_usage): New field.
11137         (rtx_reader::m_reuse_rtx_by_id): New field.
11138         * read-rtl-function.c: New file.
11139         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
11140         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
11141         (selftest::verify_three_block_rtl_cfg): New decl.
11142         * read-rtl-function.h: New file.
11143         * read-rtl.c: Potentially include config.h rather than bconfig.h.
11144         For host, include function.h, memmodel.h, and emit-rtl.h.
11145         (one_time_initialization): New function.
11146         (struct compact_insn_name): New struct.
11147         (compact_insn_names): New array.
11148         (find_code): Handle insn codes in compact dumps.
11149         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
11150         (bind_subst_iter_and_attr): Likewise.
11151         (add_condition_to_string): Likewise.
11152         (add_condition_to_rtx): Likewise.
11153         (apply_attribute_uses): Likewise.
11154         (add_current_iterators): Likewise.
11155         (apply_iterators): Likewise.
11156         (initialize_iterators): Guard usage of apply_subst_iterator with
11157         #ifdef GENERATOR_FILE.
11158         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
11159         (md_reader::read_mapping): Likewise.
11160         (add_define_attr_for_define_subst): Likewise.
11161         (add_define_subst_attr): Likewise.
11162         (read_subst_mapping): Likewise.
11163         (check_code_iterator): Likewise.
11164         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
11165         logic to...
11166         (one_time_initialization): New function.
11167         (rtx_reader::read_until): New method.
11168         (read_flags): New function.
11169         (parse_reg_note_name): New function.
11170         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
11171         Handle reuse_rtx ids.
11172         Wrap iterator lookup within #ifdef GENERATOR_FILE.
11173         Add parsing support for RTL dumps, mirroring the special-cases in
11174         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
11175         values, and calling handle_any_trailing_information.
11176         (rtx_reader::read_rtx_operand): Convert return type from void
11177         to rtx, returning return_rtx.  Handle case 'e'.  Call
11178         finalize_string on XSTR and XTMPL fields.
11179         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
11180          "(nil)" values were omitted.  Call the postprocess vfunc on the
11181         return_rtx.
11182         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
11183         class ctor.  Initialize m_in_call_function_usage.  Call
11184         one_time_initialization.
11185         * rtl-tests.c (selftest::test_uncond_jump): Call
11186         set_new_first_and_last_insn.
11187         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
11188         * selftest-rtl.c: New file.
11189         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
11190         (selftest::get_insn_by_uid): New decl.
11191         * selftest-run-tests.c (selftest::run_tests): Call
11192         read_rtl_function_c_tests.
11193         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
11194         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
11195         dumps.
11197 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
11199         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
11200         operands in a special way.  Assert that pos+len <= mode precision.
11202 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11204         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
11205         3 argument Alias with unlimited for the negative form.
11206         (fno-vect-cost-model): Removed.
11208 2017-01-05  Martin Liska  <mliska@suse.cz>
11210         * hsa-gen.c (gen_hsa_divmod): New function.
11211         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
11213 2017-01-05  Martin Liska  <mliska@suse.cz>
11215         PR pch/78970
11216         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
11217         header.
11219 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11221         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
11222         small constant length operands.
11224 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11226         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
11227         between loop iterations.
11229 2017-01-05  Martin Liska  <mliska@suse.cz>
11231         PR sanitizer/78815
11232         * gimplify.c (gimplify_decl_expr): Compare to
11233         asan_poisoned_variables instread of checking flags.
11234         (gimplify_target_expr): Likewise.
11235         (gimplify_expr): Likewise.
11236         (gimplify_function_tree): Conditionally initialize
11237         asan_poisoned_variables.
11239 2017-01-04  Jeff Law  <law@redhat.com>
11241         PR tree-optimizatin/78812
11242         * rtl.h (contains_mem_rtx_p): Prototype.
11243         * ifcvt.c (containts_mem_rtx_p): Move from here to...
11244         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
11245         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
11246         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
11247         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
11249 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11251         * input.c (assert_char_at_range): Default-initialize actual_range.
11253 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11255         * df-scan.c (df_ref_create_structure): Make regno unsigned,
11256         to match the caller.
11258 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11260         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
11261         insns after final jump in test to emit dummy move.
11263 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11265         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
11266         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
11268 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11270         * multiple_target.c (create_dispatcher_calls): Init e_next.
11271         * tree-ssa-loop-split.c (split_loop): Init border.
11272         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
11273         scalar_type.
11275 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11277         PR target/71977
11278         PR target/70568
11279         PR target/78823
11280         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
11281         (altivec_register_operand): Do not return true if the operand
11282         contains a SUBREG mixing SImode and SFmode.
11283         (vsx_register_operand): Likewise.
11284         (vsx_reg_sfsubreg_ok): New predicate.
11285         (vfloat_operand): Do not return true if the operand contains a
11286         SUBREG mixing SImode and SFmode.
11287         (vint_operand): Likewise.
11288         (vlogical_operand): Likewise.
11289         (gpc_reg_operand): Likewise.
11290         (int_reg_operand): Likewise.
11291         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
11292         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
11293         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
11294         SImode and SFmode.
11295         (rs6000_emit_move_si_sf_subreg): New helper function.
11296         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
11297         fixup SUBREGs involving SImode and SFmode.
11298         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
11299         numbers for the new peephole2 optimization.
11300         (peephole2 for SFmode unions): New peephole2 to optimize cases in
11301         the GLIBC math library that do AND/IOR/XOR operations on single
11302         precision floating point.
11303         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
11304         target macros to say whether we need to avoid SUBREGs mixing
11305         SImode and SFmode.
11306         (TARGET_ALLOW_SF_SUBREG): Likewise.
11307         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
11308         (UNSPEC_SI_FROM_SF): Likewise.
11309         (iorxor): Change spacing.
11310         (and_ior_xor): New iterator for AND, IOR, and XOR.
11311         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
11312         (movdi_from_sf_zero_ext): Likewise.
11313         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
11314         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
11315         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
11316         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
11317         (fms<mode>4): Likewise.
11318         (fnma<mode>4): Likewise.
11319         (fnms<mode>4): Likewise.
11320         (nfma<mode>4): Likewise.
11321         (nfms<mode>4): Likewise.
11323 2017-01-04  Marek Polacek  <polacek@redhat.com>
11325         PR c++/64767
11326         * doc/invoke.texi: Document -Wpointer-compare.
11328 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11330         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
11331         RejectNegative.
11333         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
11334         descriptions for -gdwarf-5 and emit them as uleb128 instead of
11335         2-byte data.
11337 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11339         PR target/78056
11340         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
11341         documentation of the powerpc_popcntb_ok attribute.
11342         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11343         code to issue warning messages if a requested CPU configuration is
11344         not supported by the binary (assembler and loader) toolchain.
11345         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
11346         made to define a built-in function that has been disabled.
11347         (paired_init_builtins): Add assertion to prevent ICE if attempt is
11348         made to define a built-in function that has been disabled.
11349         (altivec_init_builtins): Add comment explaining why definition
11350         of the DST built-in functions is not preceded by an assertion
11351         check.  Add assertions to prevent ICE if attempts are made to
11352         define an altivec predicate or an abs* built-in function that has
11353         been disabled.
11354         (htm_init_builtins): Add comment explaining why definition of the
11355         htm built-in functions is not preceded by an assertion check.
11357 2017-01-04  Jeff Law  <law@redhat.com>
11359         PR tree-optimizatin/67955
11360         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
11361         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
11362         the points-to solution does not include pt_null.  Use DECL_PT_UID
11363         unconditionally.
11365 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
11367         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
11368         Use gen_int_mode instead of gen_lopwart for const_int operands.
11370 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11372         PR tree-optimization/71563
11373         * match.pd: Simplify X << Y into X if Y is known to be 0 or
11374         out of range value - has low bits known to be zero.
11376 2017-01-04  Alan Modra  <amodra@gmail.com>
11378         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
11379         * configure: Regenerate.
11380         * config.in: Regenerate.
11382 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11384         PR bootstrap/77569
11385         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
11386         a substring of the message, but strcmp with the whole message.  Ifdef
11387         ENABLE_NLS, translate the message first using dgettext.
11389 2017-01-03  Jeff Law  <law@redhat.com>
11391         PR tree-optimizatin/78856
11392         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
11393         (mark_threaded_blocks): Remove code to truncate thread paths that
11394         cross multiple loop headers.  Instead invalidate the cached loop
11395         iteration information and handle case of a thread path walking
11396         into an irreducible region.
11398 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11400         PR target/78900
11401         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
11402         assertions.  Add support for doing the signbit if the IEEE 128-bit
11403         floating point value is in a GPR.
11404         * config/rs6000/rs6000.md (Fsignbit): Delete.
11405         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
11406         Update the length attribute if the value is in a GPR.
11407         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
11408         the sign or zero extension instruction, since the value is always 0/1.
11409         (signbit<mode>2_dm2): Delete using <Fsignbit>.
11411         PR target/78953
11412         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
11413         extracting SImode to a GPR register so that we can generate a
11414         store, limit the vector to be in a traditional Altivec register
11415         for the vextuwrx instruction.
11417 2017-01-03  Ian Lance Taylor  <iant@google.com>
11419         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
11421 2017-01-03  Martin Sebor  <msebor@redhat.com>
11423         PR tree-optimization/78696
11424         * gimple-ssa-sprintf.c (format_floating): Correct handling of
11425         precision.  Use MPFR for %f for greater fidelity.  Correct handling
11426         of %g.
11427         (pass_sprintf_length::compute_format_length): Set width and precision
11428         specified by asrerisk to void_node for vararg functions.
11429         (try_substitute_return_value): Adjust dump output.
11431 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
11433         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
11435 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11437         * doc/invoke.texi (SPARC options): Document -mlra as the default.
11438         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
11439         -mlra/-mno-lra was passed to the compiler.
11441 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
11443         PR rtl-optimization/65618
11444         * emit-rtl.c (try_split): Move initialization of "before" and
11445         "after" to just before the call to emit_insn_after_setloc.
11447 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
11449         * doc/md.texi (Standard Names): Remove reference to Java frontend.
11451 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
11453         * dwarf2out.c (gen_enumeration_type_die): When
11454         -gno-strict-dwarf, add a DW_AT_encoding attribute.
11456 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
11458         PR tree-optimization/78965
11459         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11460         Change first argument from const call_info & to call_info &.  For %n
11461         set info.nowrite to false.
11463         PR middle-end/78901
11464         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
11465         possibly throwing calls.
11467         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
11468         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
11469         and fns handling, rather than in a separate case SSA_NAME.
11471 2017-01-02  Jeff Law  <law@redhat.com>
11473         * config/darwin-driver.c (darwin_driver_init): Const-correctness
11474         fixes for first_period and second_period variables.
11476 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
11478         PR target/78967
11479         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
11480         (*insvqi_1): New insn pattern.
11481         (*insvqi_1_mem_rex64): Ditto.
11482         (*insvqi_2): Ditto.
11483         (*insvqi_3): Rename from *insvqi.
11485         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
11487 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
11489         * doc/cfg.texi (Edges): Remove reference to Java.
11490         (Maintaining the CFG): Ditto.
11492 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11494         PR middle-end/77674
11495         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
11496         transparent aliases.
11498 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11500         PR middle-end/77484
11501         * predict.def (PRED_CALL): Update hitrate.
11502         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
11503         * predict.c (tree_estimate_probability_bb): Split CALL predictor
11504         into direct/indirect/polymorphic variants.
11506 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11508         Update copyright years.
11510         * gcc.c (process_command): Update copyright notice dates.
11511         * gcov-dump.c (print_version): Ditto.
11512         * gcov.c (print_version): Ditto.
11513         * gcov-tool.c (print_version): Ditto.
11514         * gengtype.c (create_file): Ditto.
11515         * doc/cpp.texi: Bump @copying's copyright year.
11516         * doc/cppinternals.texi: Ditto.
11517         * doc/gcc.texi: Ditto.
11518         * doc/gccint.texi: Ditto.
11519         * doc/gcov.texi: Ditto.
11520         * doc/install.texi: Ditto.
11521         * doc/invoke.texi: Ditto.
11523 Copyright (C) 2017 Free Software Foundation, Inc.
11525 Copying and distribution of this file, with or without modification,
11526 are permitted in any medium without royalty provided the copyright
11527 notice and this notice are preserved.