* ipa-inline.c (edge_badness): Use inlined_time instead of
[official-gcc.git] / gcc / ChangeLog
blob43a5e7387be40281e7c781a39a0bd2588b3d5426
1 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3         * ipa-inline.c (edge_badness): Use inlined_time instead of
4         inline_summaries->get.
6 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
8         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
10 2017-05-22  Nathan Sidwell  <nathan@acm.org>
12         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
13         (fdump-lang): Document 'raw' option.
14         * dumpfile.h (TDI_tu): Delete.
15         * dumpfile.c (dump_files): Remove translation-unit.
16         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
18 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
20         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
21         command option from $(AWK) call.
22         * config/avr/genmultilib.awk: Simplify and rewrite so that it
23         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
24         [FORMAT]: Remove handling of variable.
25         * config/avr/t-multilib: Regenerate.
27 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
29         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
30         self_time.
31         (dump_inline_summary): Do not print self_time.
32         (estimate_function_body_sizes): Do not set self_time.
33         (compute_inline_parameters): Likewise.
34         (inline_read_section, inline_write_summary): Do not stream self_time.
35         * ipa-inline.h (inline_summary): Drop self_time.
37 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
39         * ipa-inline-analysis.c (account_size_time): Rename to ...
40         (inline_summary::account_size_time): ... this one.
41         (reset_ipa_call_summary): Turn to ...
42         (ipa_call_summary::reset): ... this one.
43         (reset_inline_summary): Turn to ...
44         (inline_summary::reset): ... this one.
45         (inline_summary_t::remove): Update.
46         (inline_summary_t::duplicate): Update.
47         (ipa_call_summary_t::remove): Update.
48         (dump_inline_summary): Update.
49         (estimate_function_body_sizes): Update.
50         (compute_inline_parameters): Update.
51         (estimate_node_size_and_time): Update.
52         (inline_merge_summary): Update.
53         (inline_update_overall_summary): Update.
54         (inline_read_section): Update.
55         (inline_write_summary): Update.
56         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
57         add account_size_time and reset member functions.
58         (ipa_call_summary): Add reset function.
59         * ipa-predicate.h (predicate::operator &): Constify.
61 2017-05-22  Richard Biener  <rguenther@suse.de>
63         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
65 2017-05-19  Jason Merrill  <jason@redhat.com>
67         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
69 2017-05-19  Marek Polacek  <polacek@redhat.com>
71         PR sanitizer/80800
72         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
73         TYPE_OVERFLOW_WRAPS checks.
75 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
77         * tree-core.h (enum omp_clause_default_kind): Add
78         "OMP_CLAUSE_DEFAULT_PRESENT".
79         * tree-pretty-print.c (dump_omp_clause): Handle it.
80         * gimplify.c (enum gimplify_omp_var_data): Add
81         "GOVD_MAP_FORCE_PRESENT".
82         (gimplify_adjust_omp_clauses_1): Map it to
83         "GOMP_MAP_FORCE_PRESENT".
84         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
86         * gimplify.c (oacc_default_clause): Clarify.
88 2017-05-19  Nathan Sidwell  <nathan@acm.org>
90         LANG_HOOK_REGISTER_DUMPS
91         * toplev.c (general_init): Call register dump lang hook.
92         * doc/invoke.texi: Document -fdump-lang option family.
93         * dumpfile.c (dump_files): Remove class dump here.
94         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
95         * dumpfile.h (tree_dump_index): Remove TDI_class.
96         * langhooks-def.h (lhd_register_dumps): Declare.
97         (LANG_HOOKS_REGISTER_DUMPS): Define.
98         (LANG_HOOKS_INITIALIZER): Add it.
99         * langhooks.c (lhd_register_dumps): Define.
100         * langhooks.h (struct lang_hooks): Add register_dumps.
102 2017-05-19  Nathan Sidwell  <nathan@acm.org>
104         * context.h (context::set_passes): New.
105         * context.c (context::context): Do not create pass manager.
106         * toplev.c (general_init): Create pass manager here.
108 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
110         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
111         use this splitter if two add or or instructions would also work for
112         the constant we want to generate.
114 2017-05-19  Richard Biener  <rguenther@suse.de>
116         PR build/80821
117         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
118         predicate evaluation.
120 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
122         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
123         add ctor.
124         * ipa-inline.c (want_inline_small_function_p): Do not cast to
125         unsigned.
127 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
129         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
130         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
131         (inline_edge_summary_vec): Turn into ...
132         (ipa_call_summaries): ... this one.
133         (redirect_to_unreachable, edge_set_predicate,
134         evaluate_properties_for_edge, inline_summary_alloc,
135         reset_ipa_call_summary, reset_inline_summary,
136         inline_summary_t::duplicate): Update.
137         (inline_edge_duplication_hook): Turn to ...
138         (ipa_call_summary_t::duplicate): ... this one.
139         (inline_edge_removal_hook): Turn to ...
140         (ipa_call_summary_t::remove): ... this one.
141         (dump_inline_edge_summary): Turn to ...
142         (dump_ipa_call_summary): ... this one.
143         (estimate_function_body_sizes): Update.
144         (inline_update_callee_summaries): Update.
145         (remap_edge_change_prob): Update.
146         (remap_edge_summaries): Update.
147         (inline_merge_summary): Update.
148         (do_estimate_edge_time): Update.
149         (inline_generate_summary): Update.
150         (inline_read_section): Update.
151         (inline_read_summary): Update.
152         (inline_free_summary): Update.
153         * ipa-inline.c (can_inline_edge_p): Update.
154         (compute_inlined_call_time): Update.
155         (want_inline_small_function_p): Update.
156         (edge_badness): Update.
157         (early_inliner): Update.
158         * ipa-inline.h (inline_edge_summary): Turn to ...
159         (ipa_call_summary): ... this one.
160         (ipa_call_summary_t): New class.
161         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
162         (ipa_call_summaries): New.
163         (inline_edge_summary): Remove.
164         (estimate_edge_growth): Update.
165         * ipa-profile.c (ipa_propagate_frequency_1): Update.
166         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
167         * ipa-split.c (execute_split_functions): Update.
168         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
170 2017-05-19  Richard Biener  <rguenther@suse.de>
172         PR middle-end/80764
173         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
175 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
177         * config/rs6000/rs6000.c (struct machine_function): Add field
178         fpr_is_wrapped_separately.
179         (rs6000_get_separate_components): Use 64 components.  Handle the
180         new FPR components.
181         (rs6000_components_for_bb): Handle the FPR components.
182         (rs6000_emit_prologue_components): Handle the FPR components.
183         (rs6000_emit_epilogue_components): Handle the FPR components.
184         (rs6000_set_handled_components): Handle the FPR components.
185         (rs6000_emit_prologue): Don't output prologue code for those FPRs
186         that are already separately shrink-wrapped.
187         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
188         that are already separately shrink-wrapped.
190 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
192         PR target/80510
193         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
194         New predicate.
196         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
197         (define_peephole2 for Altivec d-form load): Add peepholes to catch
198         cases where the register allocator uses a move and an offsettable
199         memory operation to/from a FPR register on ISA 2.06/2.07.
200         (define_peephole2 for Altivec d-form store): Likewise.
202 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
204         PR target/80799
205         * config/i386/mmx.md (*mov<mode>_internal): Enable
206         alternatives 11, 12, 13 and 14 also for 32bit targets.
207         Remove alternatives 15, 16, 17 and 18.
208         * config/i386/sse.md (vec_concatv2di): Change
209         alternative (!x, *y) to (x, ?!*Yn).
211 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
213         * dumpfile.h (enum dump_kind): Remove stray comma.
215 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
217         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
218         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
219         predicate::num_conditions
220         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
221         (CHANGED): turn into predicate::changed.
222         (agg_position_info): Move to ipa-predicate.h
223         (add_condition, predicate::add_clause, predicate::operator &=,
224         predicate::or_with, predicate::evaluate, predicate::probability,
225         dump_condition, dump_clause, predicate::dump,
226         predicate::remap_after_duplication, predicate::remap_after_inlining,
227         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
228         (evaluate_conditions_for_known_args): Update.
229         (set_cond_stmt_execution_predicate): Update.
230         * ipa-inline.h: Include ipa-predicate.h
231         (condition, inline_param_summary, conditions, agg_position_info,
232         predicate): Move to ipa-predicate.h
233         * ipa-predicate.c: New file.
234         * ipa-predicate.h: New file.
236 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
238         * final.c (leaf_function_p): Check we are not in a sequence.
240 2017-05-18  Martin Liska  <mliska@suse.cz>
242         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
243         * dumpfile.c (dump_register): Use new enum dump_kind.
244         (get_dump_file_name): Likewise.
245         (dump_enable_all): Likewise.
246         (dump_switch_p_1): Likewise.
247         (enable_rtl_dump_file): Remove usage of TDF_RTL.
248         * dumpfile.h (enum dump_kind): New enum type.
249         (struct dump_file_info): Create constructor and
250         format fields and comments.
251         * passes.c (pass_manager::register_one_dump_file):
252         Use num dump_kind.
253         * statistics.c (statistics_early_init): Likewise.
254         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
255         TDF_TREE with TDF_SLIM.
256         (gather_memory_references_ref): Likewise.
258 2017-05-18  Martin Liska  <mliska@suse.cz>
260         * vec.h (struct vnull): Use it.
262 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
264         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
265         (true_predicate, false_predicate, true_predicate_p,
266         false_predicate_p): Remove.
267         (single_cond_predicate, not_inlined_predicate): Turn to member function
268         in ipa-inline.h
269         (add_condition): Update.
270         (add_clause): Turn to...
271         (predicate::add_clause): ... this one; update; allow passing NULL
272         as parameter.
273         (and_predicates): Turn to ...
274         (predicate::operator &=): ... this one.
275         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
276         (or_predicates): Turn to ...
277         (predicate::or_with): ... this one.
278         (evaluate_predicate): Turn to ...
279         (predicate::evaluate): ... this one.
280         (predicate_probability): Turn to ...
281         (predicate::probability): ... this one.
282         (dump_condition): Update.
283         (dump_predicate): Turn to ...
284         (predicate::dump): ... this one.
285         (account_size_time): Update.
286         (edge_set_predicate): Update.
287         (set_hint_predicate): UPdate.
288         (evaluate_conditions_for_known_args): Update.
289         (evaluate_properties_for_edge): Update.
290         (remap_predicate_after_duplication): Turn to...
291         (predicate::remap_after_duplication): ... this one.
292         (remap_hint_predicate_after_duplication): Update.
293         (inline_summary_t::duplicate): UPdate.
294         (dump_inline_edge_summary): Update.
295         (dump_inline_summary): Update.
296         (set_cond_stmt_execution_predicate): Update.
297         (set_switch_stmt_execution_predicate): Update.
298         (compute_bb_predicates): Update.
299         (will_be_nonconstant_expr_predicate): Update.
300         (will_be_nonconstant_predicate): Update.
301         (phi_result_unknown_predicate): Update.
302         (predicate_for_phi_result): Update.
303         (array_index_predicate): Update.
304         (estimate_function_body_sizes): Update.
305         (estimate_node_size_and_time): Update.
306         (estimate_ipcp_clone_size_and_time): Update.
307         (remap_predicate): Rename to ...
308         (predicate::remap_after_inlining): ... this one.
309         (remap_hint_predicate): Update.
310         (inline_merge_summary): Update.
311         (inline_update_overall_summary): Update.
312         (estimate_size_after_inlining): Update.
313         (read_predicate): Rename to ...
314         (predicate::stream_in): ... this one.
315         (read_inline_edge_summary): Update.
316         (write_predicate): Rename to ...
317         (predicate::stream_out): ... this one.
318         (write_inline_edge_summary): Update.
319         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
320         (clause_t): Turn to uint32_t
321         (predicate): Turn to class; implement constructor and operators
322         ==, !=, &
323         (size_time_entry): Update.
324         (inline_summary): Update.
325         (inline_edge_summary): Update.
327 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
329         * fold-const.c (fold_binary_loc): Move transformation...
330         * match.pd (C - X CMP X): ... here.
332 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
334         * config/sparc/sparc.c (sparc_option_override): Set function
335         alignment for -mcpu=niagara7 to 64 to match the I$ line.
336         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
337         latency to 1.
338         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
339         latency to 2.
340         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
342 2017-05-18  Marek Polacek  <polacek@redhat.com>
344         PR sanitizer/80797
345         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
346         (pass_ubsan::execute): Call gimple_assign_single_p instead of
347         gimple_assign_load_p.
349 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
351         PR middle-end/80692
352         * real.c (do_compare): Give decimal_do_compare preference over
353         comparing just the signs.
355 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
357         * doc/md.texi (Canonicalization of Instructions): Describe the
358         canonical form of instructions that inherently set a condition
359         code register.
361 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
363         PR middle-end/80775
364         * tree-cfg.c: Move deletion of unreachable case statements to after
365         the merging of consecutive case labels.
367 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
369         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
370         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
371         restoring of callee-saved registers.
373 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
375         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
376         * config/visium/visium.c (single_set_and_flags): Likewise.
377         * config/visium/visium.md (Substitutions): Likewise.
379 2017-05-17  Martin Liska  <mliska@suse.cz>
381         * cfg.c: Introduce dump_flags_t type and
382         use it instead of int type.
383         * cfg.h: Likewise.
384         * cfghooks.c: Likewise.
385         * cfghooks.h (struct cfg_hooks): Likewise.
386         * cfgrtl.c: Likewise.
387         * cfgrtl.h: Likewise.
388         * cgraph.c (cgraph_node::get_body): Likewise.
389         * coretypes.h: Likewise.
390         * domwalk.c: Likewise.
391         * domwalk.h: Likewise.
392         * dumpfile.c (struct dump_option_value_info): Likewise.
393         (dump_enable_all): Likewise.
394         (dump_switch_p_1): Likewise.
395         (opt_info_switch_p): Likewise.
396         * dumpfile.h (enum tree_dump_index): Likewise.
397         (struct dump_file_info): Likewise.
398         * genemit.c: Likewise.
399         * generic-match-head.c: Likewise.
400         * gengtype.c (open_base_files): Likewise.
401         * gimple-pretty-print.c: Likewise.
402         * gimple-pretty-print.h: Likewise.
403         * graph.c (print_graph_cfg): Likewise.
404         * graphite-scop-detection.c (dot_all_sese): Likewise.
405         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
406         * loop-unroll.c (report_unroll): Likewise.
407         * passes.c (pass_manager::register_one_dump_file): Likewise.
408         * print-tree.c: Likewise.
409         * statistics.c: Likewise.
410         * tree-cfg.c: Likewise.
411         * tree-cfg.h: Likewise.
412         * tree-dfa.c: Likewise.
413         * tree-dfa.h: Likewise.
414         * tree-dump.c (dump_function): Likewise.
415         * tree-dump.h (struct dump_info): Likewise.
416         * tree-pretty-print.c: Likewise.
417         * tree-pretty-print.h: Likewise.
418         * tree-ssa-live.c: Likewise.
419         * tree-ssa-live.h: Likewise.
420         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
421         * tree-vect-loop.c: Likewise.
422         * tree-vect-slp.c: Likewise.
424 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
425             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
427         PR tree-optimization/80457
428         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
429         of all arguments to a statement as scalar_to_vec operations.
430         (vectorizable_call): Adjust call to vect_model_simple_cost for
431         new parameter.
432         (vectorizable_conversion): Likewise.
433         (vectorizable_assignment): Likewise.
434         (vectorizable_shift): Likewise.
435         (vectorizable_operation): Likewise.
436         (vectorizable_comparison): Likewise.
437         (vect_is_simple_cond): Record the def types for operands.
438         (vectorizable_condition): Likewise, call vect_model_simple_cost.
439         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
440         for statement argument count.
442 2017-05-16  Carl Love  <cel@us.ibm.com>
444         * config/rs6000/rs6000-c: Add support for built-in functions
445         vector unsigned long long vec_bperm (vector unsigned long long,
446                                              vector unsigned char)
447         vector signed long long vec_mule (vector signed int,
448                                           vector signed int)
449         vector unsigned long long vec_mule (vector unsigned int,
450                                             vector unsigned int)
451         vector signed long long vec_mulo (vector signed int,
452                                           vector signed int)
453         vector unsigned long long vec_mulo (vector unsigned int,
454                                             vector unsigned int)
455         vector signed char vec_sldw (vector signed char,
456                                      vector signed char,
457                                      const int)
458         vector unsigned char vec_sldw (vector unsigned char,
459                                        vector unsigned char,
460                                        const int)
461         vector signed short vec_sldw (vector signed short,
462                                       vector signed short,
463                                       const int)
464         vector unsigned short vec_sldw (vector unsigned short,
465                                         vector unsigned short,
466                                         const int)
467         vector signed int vec_sldw (vector signed int,
468                                     vector signed int,
469                                     const int)
470         vector unsigned int vec_sldw (vector unsigned int,
471                                       vector unsigned int,
472                                       const int)
473         vector signed long long vec_sldw (vector signed long long,
474                                           vector signed long long,
475                                           const int)
476         vector unsigned long long vec_sldw (vector unsigned long long,
477                                             vector unsigned long long,
478                                             const int)
479         * config/rs6000/rs6000-c: Add support for built-in functions
480         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
481         * config/rs6000/altivec.h: Add defintion for vec_sldw.
482         * doc/extend.texi: Update the built-in documentation for the
483         new built-in functions.
485 2017-05-16  Marek Polacek  <polacek@redhat.com>
487         PR sanitizer/80536
488         PR sanitizer/80386
489         * tree.c (save_expr): Don't fold the expression.
491 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
493         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
494         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
495         and (?*y,m).  Update insn attributes.
497 2017-05-16  Martin Liska  <mliska@suse.cz>
499         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
500         flags argument of print_gimple_stmt, print_gimple_expr,
501         print_generic_stmt and print_generic_expr.
502         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
503         * coretypes.h: Likewise.
504         * except.c (dump_eh_tree): Likewise.
505         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
506         * gimple-pretty-print.h: Likewise.
507         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
508         (backprop::push_to_worklist): Likewise.
509         (backprop::pop_from_worklist): Likewise.
510         (backprop::process_use): Likewise.
511         (backprop::intersect_uses): Likewise.
512         (note_replacement): Likewise.
513         * gimple-ssa-store-merging.c
514         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
515         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
516         (pass_store_merging::execute): Likewise.
517         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
518         (ssa_base_cand_dump_callback): Likewise.
519         (dump_incr_vec): Likewise.
520         (replace_refs): Likewise.
521         (replace_mult_candidate): Likewise.
522         (create_add_on_incoming_edge): Likewise.
523         (create_phi_basis): Likewise.
524         (insert_initializers): Likewise.
525         (all_phi_incrs_profitable): Likewise.
526         (introduce_cast_before_cand): Likewise.
527         (replace_one_candidate): Likewise.
528         * gimplify.c (gimplify_expr): Likewise.
529         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
530         (set_rename): Likewise.
531         (rename_uses): Likewise.
532         (copy_loop_phi_nodes): Likewise.
533         (add_close_phis_to_merge_points): Likewise.
534         (copy_loop_close_phi_args): Likewise.
535         (copy_cond_phi_args): Likewise.
536         (graphite_copy_stmts_from_block): Likewise.
537         (translate_pending_phi_nodes): Likewise.
538         * graphite-poly.c (print_pdr): Likewise.
539         (dump_gbb_cases): Likewise.
540         (dump_gbb_conditions): Likewise.
541         (print_scop_params): Likewise.
542         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
543         (build_cross_bb_scalars_use): Likewise.
544         (gather_bbs::before_dom_children): Likewise.
545         * hsa-dump.c (dump_hsa_immed): Likewise.
546         * ipa-cp.c (print_ipcp_constant_value): Likewise.
547         (get_replacement_map): Likewise.
548         * ipa-inline-analysis.c (dump_condition): Likewise.
549         (estimate_function_body_sizes): Likewise.
550         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
551         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
552         * ipa-prop.c (ipa_dump_param): Likewise.
553         (ipa_print_node_jump_functions_for_edge): Likewise.
554         (ipa_modify_call_arguments): Likewise.
555         (ipa_modify_expr): Likewise.
556         (ipa_dump_param_adjustments): Likewise.
557         (ipa_dump_agg_replacement_values): Likewise.
558         (ipcp_modif_dom_walker::before_dom_children): Likewise.
559         * ipa-pure-const.c (check_stmt): Likewise.
560         (pass_nothrow::execute): Likewise.
561         * ipa-split.c (execute_split_functions): Likewise.
562         * omp-offload.c (dump_oacc_loop_part): Likewise.
563         (dump_oacc_loop): Likewise.
564         * trans-mem.c (tm_log_emit): Likewise.
565         (tm_memopt_accumulate_memops): Likewise.
566         (dump_tm_memopt_set): Likewise.
567         (dump_tm_memopt_transform): Likewise.
568         * tree-cfg.c (gimple_verify_flow_info): Likewise.
569         (print_loop): Likewise.
570         * tree-chkp-opt.c (chkp_print_addr): Likewise.
571         (chkp_gather_checks_info): Likewise.
572         (chkp_get_check_result): Likewise.
573         (chkp_remove_check_if_pass): Likewise.
574         (chkp_use_outer_bounds_if_possible): Likewise.
575         (chkp_reduce_bounds_lifetime): Likewise.
576         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
577         (chkp_mark_completed_bounds): Likewise.
578         (chkp_register_incomplete_bounds): Likewise.
579         (chkp_mark_invalid_bounds): Likewise.
580         (chkp_maybe_copy_and_register_bounds): Likewise.
581         (chkp_build_returned_bound): Likewise.
582         (chkp_get_bound_for_parm): Likewise.
583         (chkp_build_bndldx): Likewise.
584         (chkp_get_bounds_by_definition): Likewise.
585         (chkp_generate_extern_var_bounds): Likewise.
586         (chkp_get_bounds_for_decl_addr): Likewise.
587         * tree-chrec.c (chrec_apply): Likewise.
588         * tree-data-ref.c (dump_data_reference): Likewise.
589         (dump_subscript): Likewise.
590         (dump_data_dependence_relation): Likewise.
591         (analyze_overlapping_iterations): Likewise.
592         * tree-inline.c (expand_call_inline): Likewise.
593         (tree_function_versioning): Likewise.
594         * tree-into-ssa.c (dump_defs_stack): Likewise.
595         (dump_currdefs): Likewise.
596         (dump_names_replaced_by): Likewise.
597         (dump_update_ssa): Likewise.
598         (update_ssa): Likewise.
599         * tree-object-size.c (pass_object_sizes::execute): Likewise.
600         * tree-parloops.c (build_new_reduction): Likewise.
601         (try_create_reduction_list): Likewise.
602         (ref_conflicts_with_region): Likewise.
603         (oacc_entry_exit_ok_1): Likewise.
604         (oacc_entry_exit_single_gang): Likewise.
605         * tree-pretty-print.h: Likewise.
606         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
607         (get_scalar_evolution): Likewise.
608         (add_to_evolution): Likewise.
609         (get_loop_exit_condition): Likewise.
610         (analyze_evolution_in_loop): Likewise.
611         (analyze_initial_condition): Likewise.
612         (analyze_scalar_evolution): Likewise.
613         (instantiate_scev): Likewise.
614         (number_of_latch_executions): Likewise.
615         (gather_chrec_stats): Likewise.
616         (final_value_replacement_loop): Likewise.
617         (scev_const_prop): Likewise.
618         * tree-sra.c (dump_access): Likewise.
619         (disqualify_candidate): Likewise.
620         (create_access): Likewise.
621         (reject): Likewise.
622         (maybe_add_sra_candidate): Likewise.
623         (create_access_replacement): Likewise.
624         (analyze_access_subtree): Likewise.
625         (analyze_all_variable_accesses): Likewise.
626         (sra_modify_assign): Likewise.
627         (initialize_constant_pool_replacements): Likewise.
628         (find_param_candidates): Likewise.
629         (decide_one_param_reduction): Likewise.
630         (replace_removed_params_ssa_names): Likewise.
631         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
632         * tree-ssa-copy.c (dump_copy_of): Likewise.
633         (copy_prop_visit_cond_stmt): Likewise.
634         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
635         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
636         (record_equivalences_from_stmt): Likewise.
637         * tree-ssa-dse.c (compute_trims): Likewise.
638         (delete_dead_call): Likewise.
639         (delete_dead_assignment): Likewise.
640         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
641         (forward_propagate_into_cond): Likewise.
642         (pass_forwprop::execute): Likewise.
643         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
644         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
645         Likewise.
646         (move_computations_worker): Likewise.
647         (execute_sm): Likewise.
648         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
649         (remove_exits_and_undefined_stmts): Likewise.
650         (remove_redundant_iv_tests): Likewise.
651         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
652         (adjust_iv_update_pos): Likewise.
653         * tree-ssa-math-opts.c (bswap_replace): Likewise.
654         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
655         (value_replacement): Likewise.
656         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
657         * tree-ssa-pre.c (print_pre_expr): Likewise.
658         (get_representative_for): Likewise.
659         (create_expression_by_pieces): Likewise.
660         (insert_into_preds_of_block): Likewise.
661         (eliminate_insert): Likewise.
662         (eliminate_dom_walker::before_dom_children): Likewise.
663         (eliminate): Likewise.
664         (remove_dead_inserted_code): Likewise.
665         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
666         * tree-ssa-reassoc.c (get_rank): Likewise.
667         (eliminate_duplicate_pair): Likewise.
668         (eliminate_plus_minus_pair): Likewise.
669         (eliminate_not_pairs): Likewise.
670         (undistribute_ops_list): Likewise.
671         (eliminate_redundant_comparison): Likewise.
672         (update_range_test): Likewise.
673         (optimize_range_tests_var_bound): Likewise.
674         (optimize_vec_cond_expr): Likewise.
675         (rewrite_expr_tree): Likewise.
676         (rewrite_expr_tree_parallel): Likewise.
677         (linearize_expr): Likewise.
678         (break_up_subtract): Likewise.
679         (linearize_expr_tree): Likewise.
680         (attempt_builtin_powi): Likewise.
681         (attempt_builtin_copysign): Likewise.
682         (transform_stmt_to_copy): Likewise.
683         (transform_stmt_to_multiply): Likewise.
684         (dump_ops_vector): Likewise.
685         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
686         (print_scc): Likewise.
687         (set_ssa_val_to): Likewise.
688         (visit_reference_op_store): Likewise.
689         (visit_use): Likewise.
690         (sccvn_dom_walker::before_dom_children): Likewise.
691         (run_scc_vn): Likewise.
692         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
693         Likewise.
694         (expr_hash_elt::print): Likewise.
695         (const_and_copies::pop_to_marker): Likewise.
696         (const_and_copies::record_const_or_copy_raw): Likewise.
697         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
698         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
699         (dump_predicates): Likewise.
700         (find_uninit_use): Likewise.
701         (warn_uninitialized_phi): Likewise.
702         (pass_late_warn_uninitialized::execute): Likewise.
703         * tree-ssa.c (verify_vssa): Likewise.
704         (verify_ssa): Likewise.
705         (maybe_optimize_var): Likewise.
706         * tree-vrp.c (dump_value_range): Likewise.
707         (dump_all_value_ranges): Likewise.
708         (dump_asserts_for): Likewise.
709         (register_edge_assert_for_2): Likewise.
710         (vrp_visit_cond_stmt): Likewise.
711         (vrp_visit_switch_stmt): Likewise.
712         (vrp_visit_stmt): Likewise.
713         (vrp_visit_phi_node): Likewise.
714         (simplify_cond_using_ranges_1): Likewise.
715         (fold_predicate_in): Likewise.
716         (evrp_dom_walker::before_dom_children): Likewise.
717         (evrp_dom_walker::push_value_range): Likewise.
718         (evrp_dom_walker::pop_value_range): Likewise.
719         (execute_early_vrp): Likewise.
721 2017-05-16  Richard Biener  <rguenther@suse.de>
723         * dwarf2out.c (loc_list_from_tree_1): Do not create
724         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
726 2017-05-16  Richard Biener  <rguenther@suse.de>
728         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
729         just generated.
730         (note_variable_value_in_expr): If we resolved the decl ref
731         do not push to the stack.
733 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
735         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
736         operations in fast-math mode.
737         (vaddq_f16): Likewise.
738         (vmul_f16): Likewise.
739         (vmulq_f16): Likewise.
740         (vsub_f16): Likewise.
741         (vsubq_f16): Likewise.
742         * config/arm/neon.md (add<mode>3): New.
743         (sub<mode>3): New.
744         (fma:<VH:mode>3): New.  Also remove outdated comment.
745         (mul<mode>3): New.
747 2017-05-16  Martin Liska  <mliska@suse.cz>
749         PR ipa/79849.
750         PR ipa/79850.
751         * ipa-devirt.c (warn_types_mismatch): Fix typo.
752         (odr_types_equivalent_p): Likewise.
754 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
756         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
758 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
760         PR target/80425
761         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
762         non-interunit SSE move alternatives with '?'.
763         (zero-extendsidi peephole2): New peephole to skip intermediate
764         general register in SSE zero-extend sequence.
766 2017-05-15  Jeff Law  <law@redhat.com>
768         * reorg.c (relax_delay_slots): Create a new variable to hold
769         the temporary target rather than clobbering TARGET_LABEL.
771         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
772         missing argument to extract_bit_field call.
773         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
775 2017-05-15  Martin Liska  <mliska@suse.cz>
777         PR driver/31468
778         * gcc.c (process_command): Do not allow empty argument of -o option.
780 2017-05-15  Renlin Li  <renlin.li@arm.com>
782         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
783         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
784         * config/aarch64/constraints.md (Usf): Add long call check.
785         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
786         (call_value): Likewise.
787         (sibcall): Likewise.
788         (sibcall_value): Likewise.
789         (call_insn): New.
790         (call_value_insn): New.
791         (sibcall_insn): Update rtx pattern.
792         (sibcall_value_insn): Likewise.
793         (call_internal): Remove.
794         (call_value_internal): Likewise.
795         (sibcall_internal): Likewise.
796         (sibcall_value_internal): Likewise.
797         (call_reg): Likewise.
798         (call_symbol): Likewise.
799         (call_value_reg): Likewise.
800         (call_value_symbol): Likewise.
802 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
804         PR target/80600
805         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
807 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
809         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
810         compatible with CCGOCmode and with CCZmode.
812 2017-05-14  Martin Sebor  <msebor@redhat.com>
814         PR middle-end/77671
815         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
816         (gimple_fold_builtin_snprintf): Same.
817         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
818         (gimple_fold_builtin_snprintf): Same.
819         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
820         of character types.
821         (is_call_safe): New function.
822         (try_substitute_return_value): Call it.
823         (try_simplify_call): New function.
824         (pass_sprintf_length::handle_gimple_call): Call it.
826 2017-05-14  Martin Sebor  <msebor@redhat.com>
828         PR middle-end/80669
829         * builtins.c (expand_builtin_stpncpy): Simplify.
831 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
833         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
834         * config/i386/i386.h
835         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
836         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
837         (struct machine_function): Add new members call_ms2sysv,
838         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
839         (struct machine_frame_state): New fields sp_realigned and
840         sp_realigned_offset.
841         * config/i386/i386.c
842         (enum xlogue_stub): New enum.
843         (enum xlogue_stub_sets): New enum.
844         (class xlogue_layout): New class.
845         (struct ix86_frame): New fields stack_realign_allocate_offset,
846         stack_realign_offset and outlined_save_offset.  Modify comments to
847         detail stack layout when using out-of-line stubs.
848         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
849         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
850         -mcall-ms2sysv-xlogues.
851         (stub_managed_regs): New static variable.
852         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
853         registers managed by out-of-line stub.
854         (disable_call_ms2sysv_xlogues): New function.
855         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
856         m->call_ms2sysv when appropriate and compute frame layout for
857         out-of-line stubs.
858         (sp_valid_at, fp_valid_at): New inline functions.
859         (choose_basereg): New function.
860         (choose_baseaddr): Add align parameter, use choose_basereg and modify
861         all callers.
862         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
863         Use align parameter of choose_baseaddr to generated aligned SSE movs
864         when possible.
865         (pro_epilogue_adjust_stack): Modify to track
866         machine_frame_state::sp_realigned.
867         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
868         (ix86_nsaved_sseregs): Likewise.
869         (ix86_emit_save_regs): Likewise.
870         (ix86_emit_save_regs_using_mov): Likewise.
871         (ix86_emit_save_sse_regs_using_mov): Likewise.
872         (get_scratch_register_on_entry): Likewise.
873         (gen_frame_set): New function.
874         (gen_frame_load): Likewise.
875         (gen_frame_store): Likewise.
876         (emit_outlined_ms2sysv_save): Likewise.
877         (emit_outlined_ms2sysv_restore): Likewise.
878         (ix86_expand_prologue): Modify stack re-alignment code and call
879         emit_outlined_ms2sysv_save when appropriate.
880         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
881         parameter rtx_insn *insn, which allows the function to be used to only
882         generate the notes.
883         (ix86_expand_epilogue): Modify validity checks of frame and stack
884         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
885         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
886         * config/i386/predicates.md
887         (save_multiple): New predicate.
888         (restore_multiple): Likewise.
889         * config/i386/sse.md
890         (save_multiple<mode>): New pattern.
891         (save_multiple_realign<mode>): Likewise.
892         (restore_multiple<mode>): Likewise.
893         (restore_multiple_and_return<mode>): Likewise.
894         (restore_multiple_leave_return<mode>): Likewise.
895         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
897 2017-05-14  Julia Koval  <julia.koval@intel.com>
899         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
900         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
901         (__builtin_ia32_xsetbv): New builtins.
902         * config/i386/i386.c (ix86_expand_special_args_builtin):
903         Process new types.
904         (ix86_expand_builtin): Special expand for new intrinsics.
905         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
906         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
907         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
909 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
911         * cfganal.c (inverted_post_order_compute): Change argument type
912         to vec *.
913         * cfganal.h (inverted_post_order_compute): Adjust prototype.
914         * df-core.c (rest_of_handle_df_initialize): Adjust.
915         (rest_of_handle_df_finish): Likewise.
916         (df_analyze_1): Likewise.
917         (df_analyze): Likewise.
918         (loop_inverted_post_order_compute): Change argument to be a vec *.
919         (df_analyze_loop): Adjust.
920         (df_get_n_blocks): Likewise.
921         (df_get_postorder): Likewise.
922         * df.h (struct df_d): Change field to be a vec.
923         * lcm.c (compute_laterin): Adjust.
924         (compute_available): Likewise.
925         * lra-lives.c (lra_create_live_ranges_1): Likewise.
926         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
927         * tree-ssa-pre.c (compute_antic): Likewise.
929 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
931         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
932         (depth_first_search::depth_first_search): Change structure init
933         function to this constructor.
934         (depth_first_search::add_bb): Rename function to this member.
935         (depth_first_search::execute): Likewise.
936         (flow_dfs_compute_reverse_finish): Adjust.
938 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
940         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
941         (longest_simple_path): Likewise.
942         * shrink-wrap.c (spread_components): Likewise.
943         (disqualify_problematic_components): Likewise.
944         (emit_common_heads_for_components): Likewise.
945         (emit_common_tails_for_components): Likewise.
946         (insert_prologue_epilogue_for_components): Likewise.
948 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
950         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
951         auto_sbitmap.
953 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
955         * df-core.c (df_set_blocks): Start using auto_bitmap.
956         (df_compact_blocks): Likewise.
957         * df-problems.c (df_rd_confluence_n): Likewise.
958         * df-scan.c (df_insn_rescan_all): Likewise.
959         (df_process_deferred_rescans): Likewise.
960         (df_update_entry_block_defs): Likewise.
961         (df_update_exit_block_uses): Likewise.
962         (df_entry_block_bitmap_verify): Likewise.
963         (df_exit_block_bitmap_verify): Likewise.
964         (df_scan_verify): Likewise.
965         * lra-constraints.c (lra_constraints): Likewise.
966         (undo_optional_reloads): Likewise.
967         (lra_undo_inheritance): Likewise.
968         * lra-remat.c (calculate_gen_cands): Likewise.
969         (do_remat): Likewise.
970         * lra-spills.c (assign_spill_hard_regs): Likewise.
971         (spill_pseudos): Likewise.
972         * tree-ssa-pre.c (bitmap_set_and): Likewise.
973         (bitmap_set_subtract_values): Likewise.
975 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
977         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
978         management with auto_bitmap.
979         (fix_inter_tick): Likewise.
980         (fix_recovery_deps): Likewise.
981         * ira.c (add_store_equivs): Likewise.
982         (find_moveable_pseudos): Likewise.
983         (split_live_ranges_for_shrink_wrap): Likewise.
984         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
985         (rtx_reuse_manager::seen_def_p): Likewise.
986         (rtx_reuse_manager::set_seen_def): Likewise.
987         * print-rtl.h (class rtx_reuse_manager): Likewise.
989 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
991         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
992         lifetime.
993         (migrate_btr_def): Likewise.
994         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
995         * df-core.c (loop_post_order_compute): Likewise.
996         (loop_inverted_post_order_compute): Likewise.
997         * hsa-common.h: Likewise.
998         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
999         * init-regs.c (initialize_uninitialized_regs): Likewise.
1000         * ipa-inline.c (resolve_noninline_speculation): Likewise.
1001         (inline_small_functions): Likewise.
1002         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
1003         * ira.c (combine_and_move_insns): Likewise.
1004         (build_insn_chain): Likewise.
1005         * loop-invariant.c (find_invariants): Likewise.
1006         * lower-subreg.c (propagate_pseudo_copies): Likewise.
1007         * predict.c (tree_predict_by_opcode): Likewise.
1008         (predict_paths_leading_to): Likewise.
1009         (predict_paths_leading_to_edge): Likewise.
1010         (estimate_loops_at_level): Likewise.
1011         (estimate_loops): Likewise.
1012         * shrink-wrap.c (try_shrink_wrapping): Likewise.
1013         (spread_components): Likewise.
1014         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
1015         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
1016         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
1017         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
1018         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
1019         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1020         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1021         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
1022         (mark_threaded_blocks): Likewise.
1023         (thread_through_all_blocks): Likewise.
1024         * tree-ssa.c (verify_ssa): Likewise.
1025         (execute_update_addresses_taken): Likewise.
1026         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
1028 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1030         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
1031         auto_vec.
1032         (post_order_compute): Likewise.
1033         (inverted_post_order_compute): Likewise.
1034         (pre_and_rev_post_order_compute_fn): Likewise.
1036 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1038         * genrecog.c (int_set::int_set): Explicitly construct our
1039         auto_vec base class.
1040         * vec.h (auto_vec::auto_vec): New constructor.
1042 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1044         * bitmap.h (class auto_bitmap): New constructor taking
1045         bitmap_obstack * argument.
1047 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1049         * bitmap.h (class auto_bitmap): Change type of m_bits to
1050         bitmap_head, and adjust ctor / dtor and member operators.
1052 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
1054         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
1055         when returned register mode doesn't match original mode.
1057 2017-05-12  Jeff Law  <law@redhat.com>
1058             Jakub Jelinek  <jakub@redhat.com>
1060         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
1061         we look for cc setter after the compare-elim changes.
1062         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
1063         within the vector to match what compare-elim now expects.
1064         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
1065         (xorsi3_flags, one_cmplsi2_flags): Likewise.
1067         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
1068         after the compare-elim changes.
1069         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
1070         the vector to match what compare-elim now expects.
1071         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
1072         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
1073         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
1074         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
1075         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
1077         * config/visium/visium.c (single_set_and_flags): Fix where
1078         we look for cc setter after the compare-elim changes.
1079         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
1080         with the vector to match what compare-elim now expects.
1081         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
1082         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
1083         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
1084         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
1085         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
1086         (neg<mode>2_insn_set_overflow): Likewise.
1088 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
1090         PR middle-end/79794
1091         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
1092         maybe_expand_insn call, set ops[0].target.  If still set after call,
1093         set alt_rtl.  Add extra arg to recursive calls.
1094         (extract_bit_field): Add alt_rtl argument.  Pass to
1095         extract_bit_field.
1096         * expmed.h (extract_bit_field): Fix prototype.
1097         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
1098         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
1099         to extract_bit_field_calls.
1100         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
1101         Pass alt_rtl to extract_bit_field calls.
1102         * calls.c (store_unaligned_arguments_into_psuedos)
1103         load_register_parameters): Pass extra NULL to extract_bit_field calls.
1104         * optabs.c (maybe_legitimize_operand): Clear op->target when call
1105         gen_reg_rtx.
1106         * optabs.h (struct expand_operand): Add target bitfield.
1108 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
1110         * compare-elim.c (try_eliminate_compare): Canonicalize
1111         operation with embedded compare to
1112         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
1113          (set (reg) (operation)].
1115         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
1117 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
1119         PR target/80723
1120         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
1121         cost of adding a carry flag for ADC instruction.
1122         [case MINUS]: Ignore the cost of subtracting a carry flag
1123         for SBB instruction.
1125 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
1127         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
1128         and x86intrin.h
1129         * config/rs6000/bmiintrin.h: New file.
1130         * config/rs6000/bmi2intrin.h: New file.
1131         * config/rs6000/x86intrin.h: New file.
1133 2017-05-12  Jeff Law  <law@redhat.com>
1135         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
1136         markers.
1138 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
1140         PR middle-end/80707
1141         * tree-cfg.c: Remove cfg edges of unreachable case statements.
1143 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1145         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1146         early expansion of vector divide builtins.
1147         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
1148         builtins identified as having unsigned arguments.
1150 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1152         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
1153         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
1154         expansion of vector logical operations (and, andc, or, xor,
1155         nor, orc, nand).
1157 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1159         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
1160         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
1162 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1164         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1165         early GIMPLE expansion of vector multiplies.
1167 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1169         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
1170         TARGET_HAVE_MOVT conditional.
1171         (movt splitter): Likewise.
1173 2017-05-12  Richard Biener  <rguenther@suse.de>
1175         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
1176         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1177         Fold all stmts not inplace.
1179 2017-05-12  Richard Biener  <rguenther@suse.de>
1181         PR tree-optimization/80713
1182         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
1183         inserted_exprs bit for not removed stmts.
1185 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1187         PR middle-end/69921
1188         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
1189         parallelized" attribute for parallelized OpenACC kernels.
1190         * omp-offload.c (execute_oacc_device_lower): Use it.
1192         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
1193         Set "oacc kernels" attribute.
1194         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
1195         parameter.  Adjust all users.
1196         (oacc_fn_attrib_kernels_p): Remove function.
1197         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
1198         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
1199         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1200         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
1201         assert "oacc kernels" attribute is set.
1203 2017-05-11  Carl Love  <cel@us.ibm.com>
1205         * config/rs6000/rs6000-c: Add support for built-in functions
1206         vector unsigned char vec_popcnt (vector signed char)
1207         vector unsigned char vec_popcnt (vector unsigned char)
1208         vector unsigned short vec_popcnt (vector signed short)
1209         vector unsigned short vec_popcnt (vector unsigned short)
1210         vector unsigned int vec_popcnt (vector signed int)
1211         vector unsigned int vec_popcnt (vector unsigned int)
1212         vector unsigned long long vec_popcnt (vector signed long long)
1213         vector unsigned long long vec_popcnt (vector unsigned long long)
1214         vector signed long long vec_slo (vector signed long long,
1215                                          vector signed char)
1216         vector signed long long vec_slo (vector signed long long,
1217                                          vector unsigned char)
1218         vector unsigned long long vec_slo (vector unsigned long long,
1219                                            vector signed char)
1220         vector unsigned long long vec_slo (vector unsigned long long,
1221                                            vector unsigned char)
1222         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
1223         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
1224         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
1225         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
1226         * doc/extend.texi: Update the built-in documentation file for the
1227         new built-in functions.
1229 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1231         * attribs.h (sorted_attr_string): Move machine independent
1232         functions for target clone support from the i386 port to common
1233         code.  Rename ix86_function_versions to common_function_versions.
1234         Rename make_name to make_unique_name.
1235         (common_function_versions): Likewise.
1236         (make_unique_name): Likewise.
1237         (make_dispatcher_decl): Likewise.
1238         (is_function_default_version): Likewise.
1239         * attribs.c (attr_strcmp): Likewise.
1240         (sorted_attr_string): Likewise.
1241         (common_function_versions): Likewise.
1242         (make_unique_name): Likewise.
1243         (make_dispatcher_decl): Likewise.
1244         (is_function_default_version): Likewise.
1245         * config/i386/i386.c (attr_strcmp): Likewise.
1246         (sorted_attr_string): Likewise.
1247         (ix86_function_versions): Likewise.
1248         (make_name): Likewise.
1249         (make_dispatcher_decl): Likewise.
1250         (is_function_default_version): Likewise.
1251         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
1253 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1255         PR target/80695
1256         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1257         Account for direct move costs for vec_construct of integer
1258         vectors.
1260 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
1262         PR target/80706
1263         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
1264         (UNSPEC_STX_ATOMIC): Ditto.
1265         (loaddi_via_sse): New insn.
1266         (storedi_via_sse): Ditto.
1267         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
1268         Update corresponding peephole2 patterns.
1269         (atomic_storedi_fpu): Ditto.
1271 2017-05-11  Julia Koval  <julia.koval@intel.com>
1273         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
1274         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
1275         New intrinsics.
1276         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
1277         (__builtin_ia32_rsqrt14ss_mask): New builtins.
1278         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
1280 2017-05-11  Nathan Sidwell  <nathan@acm.org>
1282         * graphite-poly.c: Include dumpfile.h.
1284         * dumpfle.h (dump_function): Declare here ...
1285         * tree-dump.h (dump_function): ... not here.
1286         * dumpfile.c: #include tree-cfg.h.
1287         (dump_function): Move here from ...
1288         * tree-dump.c (dump_function): ... here.
1289         * gimplify.c: #include splay-tree.h, not tree-dump.h.
1290         * graphite-poly.c: Don't include tree-dump.h.
1291         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
1292         * print-tree.c: Likewise.
1293         * stor-layout.c: Likewise.
1294         * tree-nested.c: Likewise.
1296         * dumpfile.c (dump_start): Use TDF_FLAGS.
1297         (dump_enable_all): Fix TDF_KIND check thinko.
1299 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1301         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1302         array entries to represent two legal parameterizations of the
1303         overloaded __builtin_cmpb function, as represented by the
1304         P6_OV_BUILTIN_CMPB constant.
1305         (altivec_resolve_overloaded_builtin): Add special case handling
1306         for the __builtin_cmpb function, as represented by the
1307         P6_OV_BUILTIN_CMPB constant.
1308         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
1309         (BU_P6_64BIT_2): New macro.
1310         (BU_P6_OVERLOAD_2): New macro
1311         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
1312         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
1313         (CMPB): Add overload support to represent both 32-bit and 64-bit
1314         compare-bytes function.
1315         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1316         support for TARGET_CMPB.
1317         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
1318         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1319         documentation of the __builtin_cmpb overloaded built-in function.
1321 2017-05-11  Richard Biener  <rguenther@suse.de>
1323         PR tree-optimization/80705
1324         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
1325         bases are not vectorizable.
1327 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1329         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
1330         when counting register pressure.
1332 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1334         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
1335         (iv_ca_more_deps): Renamed to ...
1336         (iv_ca_compare_deps): ... this.
1337         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
1339 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1341         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
1342         to ...
1343         (determine_group_iv_costs): ... here.
1344         (find_inv_vars_cb): Record inv var if it's not recorded before.
1346 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1348         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
1349         (get_shiftadd_cost): Ditto.
1351 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1353         * tree-ssa-address.c: Include header file.
1354         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
1355         address.
1356         (add_to_parts): Refactor.
1357         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
1358         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
1359         in new order.
1361 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1363         PR tree-optimization/53090
1364         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
1365         COMP_IV_EXPR_2.
1366         (extract_cond_operands): Detect condition with IV on both sides
1367         and return COMP_IV_EXPR_2.
1368         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
1369         (rewrite_use_compare): Simplify by removing call to function
1370         extract_cond_operands.
1372 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1374         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
1375         (extract_cond_operands): Detect condition comparing against non-
1376         invariant bound and return appropriate enum value.
1377         (find_interesting_uses_cond): Update use of extract_cond_operands.
1378         Handle its return value accordingly.
1379         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
1381 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1383         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
1384         nonlinear iv_use computation in loop invariant sensitive way.
1386 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1388         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
1389         (find_iv_candidates): Call relate_compare_use_with_all_cands.
1391 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1393         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
1394         (dump_cand): Support iv_cand.inv_exprs.
1395         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
1396         for candidates.
1397         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
1398         iv_cand.inv_exprs.
1400 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1402         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
1403         from ...
1404         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
1405         as local function.  Include necessary header files.
1406         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
1408 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1410         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
1412 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1414         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
1415         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
1416         RSHIFT_EXPR and BIT_NOT_EXPR.
1418 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1420         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
1421         (adjust_setup_cost): New parameter supporting round up adjustment.
1422         (struct address_cost_data): Delete.
1423         (force_expr_to_var_cost): Don't bound cost with spill_cost.
1424         (split_address_cost, ptr_difference_cost): Delete.
1425         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
1426         (struct ainc_cost_data): New struct.
1427         (get_address_cost_ainc): New function.
1428         (get_address_cost, get_computation_cost): Reimplement.
1429         (determine_group_iv_cost_address): Record inv_expr for all uses of
1430         a group.
1431         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
1432         (iv_ca_has_deps): Reimplemented to ...
1433         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
1434         than OLD_CP.
1435         (iv_ca_extend): Call iv_ca_more_deps.
1437 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1439         * tree-ssa-address.c (struct mem_address): Move to header file.
1440         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
1441         * tree-ssa-address.h (struct mem_address): Move from C file.
1442         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
1444 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1446         * tree-affine.h (aff_combination_type): New interface.
1447         (aff_combination_zero_p): Remove static.
1448         (aff_combination_const_p): New interface.
1449         (aff_combination_singleton_var_p): New interfaces.
1451 2017-05-11  Richard Biener  <rguenther@suse.de>
1453         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1454         Skip unreachable blocks and destinations.
1455         (eliminate): Move stmt removal and fixup ...
1456         (fini_eliminate): ... here.  Skip inserted exprs.
1457         (pass_pre::execute): Move fini_pre after fini_eliminate.
1458         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
1459         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
1460         PRE to get rid of dead code that has invalid SSA form and
1461         split critical edges again.
1463 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1465         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1467 2017-05-11  Richard Biener  <rguenther@suse.de>
1469         * passes.c (execute_function_todo): Verify loops if they are
1470         said to be up-to-date.
1471         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
1472         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
1474 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
1476         PR target/80090
1477         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
1478         handle calling assemble_external ourself.
1480         PR target/79027
1481         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
1482         modes with zero size.  Enhance comment.
1484 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1486         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
1487         built-ins for vec_xl and vec_xst with short and char pointer
1488         arguments.
1490 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
1492         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
1493         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
1494         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
1495         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
1496         (_mm_maskz_min_round_ss): New intrinsics.
1497         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
1498         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
1499         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
1500         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
1501         (__builtin_ia32_minss_mask_round): New builtins.
1502         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1503         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1504         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
1505         Rename to ...
1506         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
1507         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
1508         Change to ...
1509         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
1510         ... this.
1512 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
1514         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
1515         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
1516         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
1517         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
1518         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
1519         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
1520         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
1521         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1522         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
1523         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
1524         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
1525         (__builtin_ia32_mulss_mask_round): New builtins.
1526         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1527         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1528         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
1529         Rename to ...
1530         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
1531         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
1532         Change to ...
1533         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
1534         ... this.
1536 2017-05-10  Julia Koval  <julia.koval@intel.com>
1538         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
1539         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
1540         (_mm256_setr_m128i): New intrinsics.
1542 2017-05-10  Julia Koval  <julia.koval@intel.com>
1544         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
1545         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
1546         (_mm_maskz_rcp14_ss): New intrinsics.
1547         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
1548         (__builtin_ia32_rcp14ss_mask): New builtins.
1549         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
1551 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
1553         PR tree-optimization/51513
1554         * tree-cfg.c (gimple_seq_unreachable_p): New function.
1555         (assert_unreachable_fallthru_edge_p): Use it.
1556         (group_case_labels_stmt): Likewise.
1557         * tree-cfg.h: Prototype it.
1558         * stmt.c: Include cfghooks.h and tree-cfg.h.
1559         (emit_case_dispatch_table) <gap_label>: New local variable.
1560         Use it to fill dispatch table gaps.
1561         Test for default_label before updating probabilities.
1562         (expand_case) <default_label>: Remove unneeded initialization.
1563         Test for unreachable default case statement and remove its edge.
1564         Set default_label accordingly.
1565         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
1567 2017-05-10  Carl Love  <cel@us.ibm.com>
1569         * config/rs6000/rs6000-c: Add support for built-in functions
1570         vector signed char        vec_neg (vector signed char)
1571         vector signed short int   vec_neg (vector short int)
1572         vector signed int         vec_neg (vector signed int)
1573         vector signed long long   vec_neg (vector signed long long)
1574         vector float              vec_neg (vector float)
1575         vector double             vec_neg (vector double)
1576         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
1577         overload.
1578         * config/rs6000/altivec.h: Add define for vec_neg
1579         * doc/extend.texi: Update the built-in documentation for the
1580         new built-in functions.
1582 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1584         PR tree-optimization/77644
1585         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
1587 2017-05-10  Nathan Sidwell  <nathan@acm.org>
1589         * dumpfile.h (TDI_lang_all): New.
1590         (TDF_KIND): New. Renumber others
1591         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
1592         than bits.
1593         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
1594         lang-all.
1595         (get_dump_file_name): Adjust suffix generation.
1596         (dump_enable_all): Use TDF_KIND.
1597         * doc/invoke.texi (-fdump-lang-all): Document.
1599         * dumpfile.h: Tabify.
1601 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
1603         PR target/80671
1604         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
1605         Move member access before delete.
1607 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
1609         * tree-inline.c (expand_call_inline): Split block at stmt
1610         before the call.
1612 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1614         PR target/68163
1615         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
1616         are now unused after splitting mov{sf,sd}_hardfloat.
1617         (f32_lr2): Likewise.
1618         (f32_lm): Likewise.
1619         (f32_lm2): Likewise.
1620         (f32_li): Likewise.
1621         (f32_li2): Likewise.
1622         (f32_lv): Likewise.
1623         (f32_sr): Likewise.
1624         (f32_sr2): Likewise.
1625         (f32_sm): Likewise.
1626         (f32_sm2): Likewise.
1627         (f32_si): Likewise.
1628         (f32_si2): Likewise.
1629         (f32_sv): Likewise.
1630         (f32_dm): Likewise.
1631         (f32_vsx): Likewise.
1632         (f32_av): Likewise.
1633         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
1634         For movsf, order stores so the VSX stores occur before the GPR
1635         store which encourages the register allocator to use a traditional
1636         FPR instead of a GPR.  For movsd, order the stores so that the GPR
1637         store comes before the VSX stores to allow the power6 to work.
1638         This is due to the power6 not having a 32-bit integer store
1639         instruction from a FPR.
1640         (movsf_hardfloat): Likewise.
1641         (movsd_hardfloat): Likewise.
1643 2017-05-09  Martin Sebor  <msebor@redhat.com>
1645         PR translation/80280
1646         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
1647         added in r247778.
1649         PR translation/80280
1650         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
1651         data member added in r247778.
1652         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
1654 2017-05-09  Nathan Sidwell  <nathan@acm.org>
1656         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
1658         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
1659         typedefs.
1661 2017-05-09  Marek Polacek  <polacek@redhat.com>
1663         * doc/invoke.texi: Fix typo.
1665 2017-05-09  Richard Biener  <rguenther@suse.de>
1667         * tree-vrp.c (vrp_val_is_max): Adjust comment.
1668         (vrp_val_is_min): Likewise.
1669         (set_value_range_to_value): Likewise.
1670         (set_value_range_to_nonnegative): Likewise.
1671         (gimple_assign_nonzero_p): Likewise.
1672         (gimple_stmt_nonzero_p): Likewise.
1673         (vrp_int_const_binop): Likewise.  Remove unreachable case.
1674         (adjust_range_with_scev): Adjust comments.
1675         (compare_range_with_value): Likewise.
1676         (extract_range_from_phi_node): Likewise.
1677         (test_for_singularity): Likewise.
1679 2017-05-09  Richard Biener  <rguenther@suse.de>
1681         * tree-vrp.c (get_single_symbol): Add assert that we don't
1682         get overflowed constants as invariant part.
1683         (compare_values_warnv): Add comment before the TREE_NO_WARNING
1684         checks.  Use wi::cmp instead of recursing for integer constants.
1685         (compare_values): Just ignore whether we assumed undefined
1686         overflow instead of failing the compare.
1687         (extract_range_for_var_from_comparison_expr): Add comment before the
1688         TREE_NO_WARNING sets.
1689         (test_for_singularity): Likewise.
1690         (extract_range_from_comparison): Do not disable optimization
1691         when we assumed undefined overflow.
1692         (extract_range_basic): Remove init of unused var.
1694 2017-05-09  Richard Biener  <rguenther@suse.de>
1696         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
1697         (extract_range_from_multiplicative_op_1): Adjust.
1698         (extract_range_from_binary_expr_1): Use int_const_binop.
1700 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1702         PR target/80101
1703         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
1704         rs6000_store_data_bypass_p in seven define_bypass directives and
1705         in several comments.
1706         * config/rs6000/rs6000-protos.h: Add prototype for
1707         rs6000_store_data_bypass_p function.
1708         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
1709         function implements slightly different (rs6000-specific) semantics
1710         than store_data_bypass_p, returning false rather than aborting
1711         with assertion error when arguments do not satisfy the
1712         requirements of store data bypass.
1713         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
1714         rs6000_store_data_bypass_p.
1716 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
1718         * config/xtensa/xtensa-protos.h
1719         (xtensa_initial_elimination_offset): New declaration.
1720         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1721         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
1722         macro definition, add case for FRAME_POINTER_REGNUM when
1723         FRAME_GROWS_DOWNWARD.
1724         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
1725         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
1726         xtensa_initial_elimination_offset.
1728 2017-05-08  Nathan Sidwell  <nathan@acm.org>
1730         * doc/invoke.texi: Alphabetize -fdump options.
1732 2017-05-08  Martin Sebor  <msebor@redhat.com>
1734         PR translation/80280
1735         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
1737 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1739         * target.def (compute_frame_layout): New optional target hook.
1740         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
1741         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
1742         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
1743         target hook.
1744         * reload1.c (verify_initial_elim_offsets): Likewise.
1745         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
1746         (use_simple_return_p): Call arm_compute_frame_layout if needed.
1747         (arm_get_frame_offsets): Split up into this ...
1748         (arm_compute_frame_layout): ... and this function.
1750 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
1752         * config/aarch64/constraints.md (Usa): New constraint.
1753         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
1755 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1757         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
1758         with_multilib_list after it has been checked.
1760 2017-05-08  Richard Biener  <rguenther@suse.de>
1762         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
1763         (bitmap_set_subtract_values): Likewise.
1765 2017-05-08  Richard Biener  <rguenther@suse.de>
1767         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
1768         (gimple_assign_nonzero): ... this and remove strict_overflow_p
1769         argument.
1770         (gimple_stmt_nonzero_warnv_p): Rename to ...
1771         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
1772         argument.
1773         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
1774         (extract_range_basic): Adjust, do not disable propagation on
1775         strict overflow sensitive simplification.
1776         (vrp_visit_cond_stmt): Likewise.
1778 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
1780         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
1781         body size unconditionally.
1783 2017-05-07  Jeff Law  <law@redhat.com>
1785         Revert:
1786         2017-05-06  Jeff Law  <law@redhat.com>
1787         PR tree-optimization/78496
1788         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1789         code.
1791         PR tree-optimization/78496
1792         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1793         (simplify_stmt_using_ranges): Call it.
1794         (vrp_dom_walker::before_dom_children): Extract equivalences
1795         from an ASSERT_EXPR with an equality comparison against a
1796         constant.
1798 2017-05-06  Jeff Law  <law@redhat.com>
1800         PR tree-optimization/78496
1801         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1802         code.
1804         PR tree-optimization/78496
1805         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1806         (simplify_stmt_using_ranges): Call it.
1807         (vrp_dom_walker::before_dom_children): Extract equivalences
1808         from an ASSERT_EXPR with an equality comparison against a
1809         constant.
1811 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
1813         * lra-constraints.c (lra_copy_reg_equiv): New function.
1814         (split_reg): Use it to copy equivalence information from the
1815         original register to the spill register.
1817 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
1819         PR rtl-optimization/75964
1820         * simplify-rtx.c (simplify_const_relational_operation): Remove
1821         invalid handling of comparisons of integer ABS.
1823 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
1825         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
1826         initialize to zero.
1827         (init_regs): Remove declaration.
1828         (function_arg_advance_32): Initialize error_p as boolean variable.
1830 2017-05-05  Nathan Sidwell  <nathan@acm.org>
1832         * store-motion.c (remove_reachable_equiv_notes): Reformat long
1833         lines.  Use for (;;).
1835 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1837         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
1838         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
1839         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
1840         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
1841         VF=2 that require versioning.
1843 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1845         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
1846         int.
1848 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1850         * diagnostic.h (diagnostic_override_option_index): Convert from
1851         macro to inline function.
1853 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1855         * diagnostic.c (last_module_changed_p): New function.
1856         (set_last_module): New function.
1857         (diagnostic_report_current_module): Convert macro usage to
1858         the above functions.
1859         * diagnostic.h (diagnostic_context::last_module): Strengthen
1860         from const line_map * to const line_map_ordinary *.
1861         (diagnostic_last_module_changed): Delete macro.
1862         (diagnostic_set_last_module): Delete macro.
1864 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1866         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
1867         with diagnostic_report_diagnostic.
1868         (diagnostic_n_impl_richloc): Likewise.
1869         * diagnostic.h (report_diagnostic): Delete macro.
1870         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
1871         with diagnostic_report_diagnostic.
1872         * substring-locations.c (format_warning_va): Likewise.
1874 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1876         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
1877         save/restor of format_spec.  Move option-printing code to...
1878         (print_option_information): ...this new function, and
1879         reimplement by simply printing to the pretty_printer,
1880         rather than appending to the format string.
1882 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1884         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
1885         handling logic into...
1886         (update_effective_level_from_pragmas): ...this new function.
1888 2017-05-04  Andrew Waterman  <andrew@sifive.com>
1890         * config/riscv/riscv.opt (mstrict-align): New option.
1891         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
1892         (SLOW_UNALIGNED_ACCESS): Define.
1893         (riscv_slow_unaligned_access): Declare.
1894         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
1895         field.
1896         (riscv_slow_unaligned_access): New variable.
1897         (rocket_tune_info): Set slow_unaligned_access to true.
1898         (optimize_size_tune_info): Set slow_unaligned_access to false.
1899         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
1900         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
1901         (riscv_option_override): Set riscv_slow_unaligned_access.
1902         * doc/invoke.texi: Add -mstrict-align to RISC-V.
1904 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
1906         * config/riscv/riscv.md: Unify indentation.
1908 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1910         PR target/79038
1911         PR target/79202
1912         PR target/79203
1913         * config/rs6000/rs6000.md (u code attribute): Add FIX and
1914         UNSIGNED_FIX.
1915         (extendsi<mode>2): Add support for doing sign extension via
1916         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
1917         don't have ISA 3.0 instructions.
1918         (extendsi<mode>2 splitter): Likewise.
1919         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
1920         generate the normal insns since SImode can now go in vector
1921         registers.  Disallow the special UNSPECs needed for previous
1922         machines to hide SImode being used.  Add new insns
1923         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
1924         (fix_trunc<mode>si2_stfiwx): Likewise.
1925         (fix_trunc<mode>si2_internal): Likewise.
1926         (fixuns_trunc<mode>si2): Likewise.
1927         (fixuns_trunc<mode>si2_stfiwx): Likewise.
1928         (fctiw<u>z_<mode>_smallint): Likewise.
1929         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
1930         of floating point to 32-bit integer from doing a direct move to
1931         the GPR registers to do a store.
1932         (fctiwz_<mode>): Break long line.
1934 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
1936         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
1937         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
1938         (addr_list, addr_offset_valid_p): New.
1939         (split_address_groups): Check offset validity with above function.
1940         (gt-tree-ssa-loop-ivopts.h): Include header file.
1942 2017-05-05  Nathan Sidwell  <nathan@acm.org>
1944         * config.gcc (arm*-*-*): Add missing 'fi'.
1946 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
1948         * doc/invoke.texi (-fopt-info): Explicitly say order of options
1949         included in -fopt-info does not matter.
1950         * doc/optinfo.texi (-fopt-info): Fix description of default
1951         behavour. Explicitly say order of options included in -fopt-info
1952         does not matter.
1954 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1956         * config.gcc: Allow combinations of aprofile and rmprofile values for
1957         --with-multilib-list.
1958         * config/arm/t-multilib: New file.
1959         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
1960         variables.  Remove setting of ISA and floating-point ABI in
1961         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
1962         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
1963         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
1964         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
1965         CPU options.
1966         * config/arm/t-rmprofile: Likewise except for the matches changes.
1967         * doc/install.texi (--with-multilib-list): Document the combination of
1968         aprofile and rmprofile values and warn about pitfalls in doing that.
1970 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
1972         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
1973         (movdi_aarch64): Likewise.
1975 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
1977         PR tree-optimization/80632
1978         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
1979         field.
1980         (build_arrays): Initialize it for virtual phis.
1981         (fix_phi_nodes): Use it for virtual phis.
1983         PR tree-optimization/80558
1984         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
1985         [x, y] op z into [x op, y op z] for op & or | if conditions
1986         are met.
1988 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1989             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1991         PR target/71607
1992         * config/arm/arm.md (use_literal_pool): Remove.
1993         (64-bit immediate split): No longer takes cost into consideration
1994         if arm_disable_literal_pool is enabled.
1995         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
1996         used when arm_disable_literal_pool is enabled.
1997         (arm_max_const_double_inline_cost): Remove use of
1998         arm_disable_literal_pool.
1999         (push_minipool_fix): Add assert.
2000         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
2001         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
2002         (no_literal_pool_sf_immediate): New.
2004 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2006         PR tree-optimization/80613
2007         * tree-ssa-dce.c (propagate_necessity): Remove cases for
2008         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2010 2017-05-05  Richard Biener  <rguenther@suse.de>
2012         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
2014 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
2016         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
2017         of this flag from insn conditions due to removal from r247495.
2019 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
2021         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
2022         New function.
2023         (arm_early_store_addr_dep_ptr): Likewise.
2024         * config/arm/aarch-common-protos.h
2025         (arm_early_load_addr_dep_ptr): Add prototype.
2026         (arm_early_store_addr_dep_ptr): Likewise.
2027         * config/arm/cortex-a53.md: Add new bypasses.
2029 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
2031         * tree.c (next_type_uid): Change type to unsigned.
2032         (type_hash_canon): Decrement back next_type_uid if
2033         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
2034         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
2035         if possible.
2037 2017-05-04  Martin Sebor  <msebor@redhat.com>
2039         * builtins.c: Fix a trivial typo in a comment.
2041         PR middle-end/79234
2042         * builtins.c (check_sizes): Adjust to handle reading past the end.
2043         Avoid printing excessive upper bound of ranges.  Use %E to print
2044         tree nodes instead of converting them to %wu.
2045         (expand_builtin_memchr): New function.
2046         (compute_dest_size): Rename...
2047         (compute_objsize): ...to this.
2048         (expand_builtin_memcpy): Adjust.
2049         (expand_builtin_mempcpy): Adjust.
2050         (expand_builtin_strcat): Adjust.
2051         (expand_builtin_strcpy): Adjust.
2052         (check_strncat_sizes): Adjust.
2053         (expand_builtin_strncat): Adjust.
2054         (expand_builtin_strncpy): Adjust and simplify.
2055         (expand_builtin_memset): Adjust.
2056         (expand_builtin_bzero): Adjust.
2057         (expand_builtin_memcmp): Adjust.
2058         (expand_builtin): Handle memcmp.
2059         (maybe_emit_chk_warning): Check strncat just once.
2061 2017-05-04  Martin Sebor  <msebor@redhat.com>
2063         PR preprocessor/79214
2064         PR middle-end/79222
2065         PR middle-end/79223
2066         * builtins.c (check_sizes): Add inlining context and issue
2067         warnings even when -Wno-system-headers is set.
2068         (check_strncat_sizes): Same.
2069         (expand_builtin_strncat): Same.
2070         (expand_builtin_memmove): New function.
2071         (expand_builtin_stpncpy): Same.
2072         (expand_builtin): Handle memmove and stpncpy.
2074 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
2076         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
2077         which is not used any more.
2079 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2081         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
2083 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2085         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
2086         (cortexa53_tunings): Likewise.
2087         (cortexa57_tunings): Likewise.
2088         (cortexa72_tunings): Likewise.
2089         (cortexa73_tunings): Likewise.
2091 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2093         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
2094         Set loop alignment to 8.
2096 2017-05-04  Martin Sebor  <msebor@redhat.com>
2098         PR translation/80280
2099         * builtins.c (expand_builtin_object_size): Add missing quoting to
2100         %D and like directives.
2101         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
2102         (hsa_type_for_tree_type): Same.
2103         (verify_function_arguments): Same.
2104         * symtab.c (symbol_table::change_decl_assembler_name): Same.
2105         * varasm.c (get_section): Same.
2106         (mark_weak): Same.
2108 2017-05-04  Martin Sebor  <msebor@redhat.com>
2110         PR translation/80280
2111         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
2113 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2115         * config/aarch64/aarch64.c (generic_addrcost_table):
2116         Change HI/TI mode setting.
2118 2017-05-04  Martin Jambor  <mjambor@suse.cz>
2120         PR tree-optimization/80622
2121         * tree-sra.c (comes_initialized_p): New function.
2122         (build_accesses_from_assign): Only set write lazily when
2123         comes_initialized_p is false.
2124         (analyze_access_subtree): Use comes_initialized_p.
2125         (propagate_subaccesses_across_link): Assert !comes_initialized_p
2126         instead of testing for PARM_DECL.
2128 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2130         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
2131         constraint on operand 0 to allow more general addressing modes.
2132         Adjust output template.
2133         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
2134         New function.
2135         * config/aarch64/aarch64-protos.h
2136         (aarch64_address_valid_for_prefetch_p): Declare prototype.
2137         * config/aarch64/constraints.md (Dp): New address constraint.
2138         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
2139         predicate.
2141 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
2143         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
2144         update use of estimate_ipcp_clone_size_and_time.
2145         (estimate_local_effects): Update use of
2146         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
2147         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
2148         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
2149         Return nonspecialized time.
2151 2017-05-04  Richard Biener  <rguenther@suse.de>
2153         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
2154         for the last VUSE which def dominates the PHI.  Directly call
2155         maybe_skip_until.
2156         (get_continuation_for_phi_1): Remove.
2158 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2160         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
2161         to explain the use of truncating division.  Cap the number of
2162         iterations to the maximum given by nb_iterations_upper_bound,
2163         if defined.
2165 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2167         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
2168         * configure: Regenerate.
2169         * config.in: Regenerate.
2170         * config/i386/driver-mingw32.c: new file.
2171         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
2172         * config.host: Link driver-mingw32.o on MinGW host.
2173         * doc/install.texi: Document new --enable-mingw-wildcard configure
2174         option.
2176 2017-05-04  Marek Polacek  <polacek@redhat.com>
2178         PR tree-optimization/80612
2179         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
2181 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2182             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
2184         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
2185         (movt splitter): Likewise.
2186         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
2187         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
2188         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
2189         block for Thumb-1 with MOVT.
2190         (thumb2_legitimate_address_p): Move code block ...
2191         (can_avoid_literal_pool_for_label_p): ... into this new function.
2192         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
2193         literal pool.
2194         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
2195         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
2196         "M-profile targets with the MOVT instruction".
2198 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2200         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
2201         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
2202         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
2204 2017-05-04  Martin Liska  <mliska@suse.cz>
2206         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
2207         variable cond_code.
2209 2017-05-04  Richard Biener  <rguenther@suse.de>
2211         * tree.c (array_at_struct_end_p): Handle arrays at struct
2212         end with flexarrays more conservatively.  Refactor and treat
2213         arrays of arrays or aggregates more strict.  Fix
2214         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
2215         * tree.c (array_at_struct_end_p): Adjust prototype.
2216         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
2217         * gimple-fold.c (get_range_strlen): Likewise.
2218         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
2220 2017-05-04  Richard Biener  <rguenther@suse.de>
2222         PR tree-optimization/31130
2223         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
2224         false.
2225         (supports_overflow_infinity): Likewise.
2226         (is_negative_overflow_infinity): Likewise.
2227         (is_positive_overflow_infinity): Likewise.
2228         (is_overflow_infinity): Likewise.
2229         (stmt_overflow_infinity): Likewise.
2230         (overflow_infinity_range_p): Likewise.
2231         (usable_range_p): Remove as always returning true.
2232         (make_overflow_infinity): Remove.
2233         (negative_overflow_infinity): Likewise.
2234         (positive_overflow_infinity): Likewise.
2235         (avoid_overflow_infinity): Likewise.
2236         (set_value_range): Adjust accordingly.
2237         (set_value_range_to_nonnegative): Likewise, remove now unused
2238         overflow_infinity arg.
2239         (vrp_operand_equal_p): Adjust.
2240         (update_value_range): Likewise.
2241         (range_int_cst_singleton_p): Likewise.
2242         (operand_less_p): Likewise.
2243         (compare_values_warnv): Likewise.
2244         (extract_range_for_var_from_comparison_expr): Likewise.
2245         (vrp_int_const_binop): Likewise.
2246         (zero_nonzero_bits_from_vr): Likewise.
2247         (extract_range_from_multiplicative_op_1): Likewise.
2248         (extract_range_from_binary_expr_1): Likewise.
2249         (extract_range_from_unary_expr): Likewise.
2250         (extract_range_from_comparison): Likewise.
2251         (extract_range_basic): Likewise.
2252         (adjust_range_with_scev): Likewise.
2253         (compare_ranges): Likewise.
2254         (compare_range_with_value): Likewise.
2255         (dump_value_range): Likewise.
2256         (test_for_singularity): Likewise, remove strict_overflow_p parameter
2257         never used.
2258         (simplify_cond_using_ranges): Adjust.
2260 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2262         * brig-builtins.def: Added a builtin for class_f64.
2263         * builtin-types.def: Added a builtin type needed by class_f64.
2265 2017-05-03  Jason Merrill  <jason@redhat.com>
2267         * timevar.def: Add TV_CONSTEXPR.
2269 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2271         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
2273 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2275         * ipa-prop.c (ipa_update_after_lto_read): Removed.
2276         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
2277         * ipa-cp.c (ipcp_propagate_stage): Do not call
2278         ipa_update_after_lto_read.
2279         * ipa-inline.c (ipa_inline): Likewise.
2281 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2283         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
2284         tag.  Added a default constructor and a destructor.
2285         (ipa_edge_args_sum_t): New class;
2286         (ipa_edge_args_sum): Declare.
2287         (ipa_edge_args_vector): Remove declaration.
2288         (IPA_EDGE_REF): Use ipa_edge_args_sum.
2289         (ipa_free_edge_args_substructures): Remove declaration.
2290         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
2291         (ipa_edge_args_info_available_for_edge_p): Likewise.
2292         * ipa-prop.c (ipa_edge_args_vector): Removed.
2293         (edge_removal_hook_holder): Likewise.
2294         (edge_duplication_hook_holder): Likewise.
2295         (ipa_edge_args_sum): New variable.
2296         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
2297         ipa_edge_args_vector.
2298         (ipa_free_edge_args_substructures): Likewise.
2299         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
2300         ipa_edge_args_vector.
2301         (ipa_edge_removal_hook): Turned into method
2302         ipa_edge_args_sum_t::remove.
2303         (ipa_edge_duplication_hook): Turned into method
2304         ipa_edge_args_sum_t::duplicate.
2305         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
2306         registering edge hooks.
2307         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
2308         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
2309         ipa_edge_args_sum instead of ipa_edge_args_vector.
2310         * ipa-profile.c (ipa_profile): Likewise.
2312 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2314         * symbol-summary.h (function_summary): New method exists.
2315         (function_summary::symtab_removal): Deallocate through release.
2316         (call_summary): New class.
2317         (gt_ggc_mx): New overload.
2318         (gt_pch_nx): Likewise.
2319         (gt_pch_nx): Likewise.
2321 2017-05-03  Jeff Law  <law@redhat.com>
2323         PR tree-optimization/78496
2324         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
2325         from simplify_cond_using_ranges.  Split off code to walk
2326         backwards through casts into ...
2327         (simplify_cond_using_ranges_2): New function.
2328         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
2329         (execute_vrp): After identifying jump threads, call
2330         simplify_cond_using_ranges_2.
2332 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
2334         PR bootstrap/80609
2335         * ipa-inline.h (inline_summary): Add ctor.
2336         (create_ggc): Do not use ggc_cleared_alloc.
2338 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
2339             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2341         * gcc.c (handle_braces): Support escaping in switch matching
2342         text.
2343         * doc/invoke.texi (Spec Files): Document it.
2344         Remove superfluous @code markup in items.
2346 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2348         * diagnostic-show-locus.c (struct column_range): New struct.
2349         (get_affected_columns): New function.
2350         (get_printed_columns): New function.
2351         (struct correction): New struct.
2352         (correction::ensure_capacity): New function.
2353         (correction::ensure_terminated): New function.
2354         (struct line_corrections): New struct.
2355         (line_corrections::~line_corrections): New dtor.
2356         (line_corrections::add_hint): New function.
2357         (layout::print_trailing_fixits): Reimplement in terms of the new
2358         classes.
2359         (selftest::test_overlapped_fixit_printing): New function.
2360         (selftest::diagnostic_show_locus_c_tests): Call it.
2362 2017-05-03  Nathan Sidwell  <nathan@acm.org>
2364         Canonicalize canonical type hashing
2365         * tree.h (type_hash_canon_hash): Declare.
2366         * tree.c (type_hash_list, attribute_hash_list): Move into
2367         type_hash_canon_hash.
2368         (build_type_attribute_qual_variant): Break out hash code calc into
2369         type_hash_canon_hash.
2370         (type_hash_canon_hash): New.  Generic type hash computation.
2371         (build_range_type_1, build_array_type_1, build_function_type,
2372         build_method_type_directly, build_offset_type, build_complex_type,
2373         make_vector_type): Call it.
2375 2017-05-03  Richard Biener  <rguenther@suse.de>
2377         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2378         When all DRs have unknown misaligned do not always peel
2379         when there is a store but apply the same costing model as if
2380         there were only loads.
2382 2017-05-03  Richard Biener  <rguenther@suse.de>
2384         Revert
2385         PR tree-optimization/80492
2386         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
2387         compare_base_decls returning dont-know properly.
2389 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2391         * config/arm/iterators.md (CCSI): New mode iterator.
2392         (arch): New mode attribute.
2393         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
2394         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
2395         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
2396         code iterator for success result mode.
2397         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
2398         the corresponding new insn generators.
2400 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
2402         Revert r247509
2403         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2404         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2406 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2408         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
2409         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
2410         (DDR_A): Wrap DDR argument in brackets.
2411         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
2412         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
2413         (DDR_REVERSED_P): Likewise.
2415 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
2417         PR tree-optimization/79472
2418         * tree-switch-conversion.c (struct switch_conv_info): Add
2419         contiguous_range and default_case_nonstandard fields.
2420         (collect_switch_conv_info): Compute contiguous_range and
2421         default_case_nonstandard fields, don't clear final_bb if
2422         contiguous_range and only the default case doesn't have the required
2423         structure.
2424         (check_all_empty_except_final): Set default_case_nonstandard instead
2425         of failing if contiguous_range and the default case doesn't have empty
2426         block.
2427         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
2428         and only the default case doesn't have the required constants.  Skip
2429         virtual phis.
2430         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
2431         if default_case_nonstandard.
2432         (build_constructors): Build constant 1 just once.  Assert that default
2433         values aren't inserted in between cases if contiguous_range.  Skip
2434         virtual phis.
2435         (build_arrays): Skip virtual phis.
2436         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
2437         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
2438         Handle virtual phis.
2439         (gen_inbound_check): Handle default_case_nonstandard case.
2440         (process_switch): Adjust check_final_bb caller.  Call
2441         gather_default_values with the first non-default case instead of
2442         default case if default_case_nonstandard.
2444 2017-05-02  Nathan Sidwell  <nathan@acm.org>
2446         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
2447         check.  Fix formatting.
2449 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
2451         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
2452         errors when comparing specialized and unspecialized times.
2454 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
2456         * diagnostic-show-locus.c
2457         (layout::should_print_annotation_line_p): Make private.
2458         (layout::print_annotation_line): Make private.
2459         (layout::annotation_line_showed_range_p): Make private.
2460         (layout::show_ruler): Make private.
2461         (layout::print_source_line): Make private.  Pass in line and
2462         line_width, rather than calling location_get_source_line.  Drop
2463         returned value.
2464         (layout::print_leading_fixits): New method.
2465         (layout::print_any_fixits): Rename to...
2466         (layout::print_trailing_fixits): ...this, and make private.
2467         Don't print newline fixits.
2468         (diagnostic_show_locus): Move logic for printing one row into...
2469         (layout::print_line): ...this new function.  Move the
2470         location_get_source_line call and error-handling from
2471         print_source_line to here.  Call print_leading_fixits, and rename
2472         print_any_fixits to print_trailing_fixits.
2473         (selftest::test_fixit_insert_containing_newline): Update now that
2474         newlines are partially supported.
2475         (selftest::test_fixit_insert_containing_newline_2): New test.
2476         (selftest::test_fixit_replace_containing_newline): Update comments.
2477         (selftest::diagnostic_show_locus_c_tests): Call the new test.
2478         * edit-context.c (class added_line): New class.
2479         (class edited_line): Describe newline handling in comment.
2480         (edited_line::actually_edited_p): New method.
2481         (edited_line::print_content): Delete redundant decl.
2482         (edited_line::m_predecessors): New field.
2483         (edited_file::print_content): Call edited_line::print_content.
2484         (edited_file::print_diff): Update to support newlines.
2485         (edited_file::print_diff_hunk): Likewise.
2486         (edited_file::print_run_of_changed_lines): New function.
2487         (edited_file::print_diff_line): Convert to...
2488         (print_diff_line): ...this.
2489         (edited_file::get_effective_line_count): New function.
2490         (edited_line::edited_line): Initialize new field m_predecessors.
2491         (edited_line::~edited_line): Clean up m_predecessors.
2492         (edited_line::apply_fixit): Handle newlines.
2493         (edited_line::get_effective_line_count): New function.
2494         (edited_line::print_content): New function.
2495         (edited_line::print_diff_lines): New function.
2496         (selftest::test_applying_fixits_insert_containing_newline): New
2497         test.
2498         (selftest::test_applying_fixits_replace_containing_newline): New
2499         test.
2500         (selftest::insert_line): New function.
2501         (selftest::test_applying_fixits_multiple_lines): Add example of
2502         inserting a line.
2503         (selftest::edit_context_c_tests): Call the new tests.
2505 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2507         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
2508         parameter cand.  Update dump information.
2509         (get_computation_cost): Update uses.
2511 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2513         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
2514         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
2515         (get_computation_at, rewrite_use_address): Update use of
2516         get_computation_aff.
2518 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2520         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
2521         (get_computation): Delete.
2522         (get_computation_cost): Implement like get_computation_cost_at.
2523         Use get_computation_at.
2524         (get_computation_cost_at): Delete.
2525         (rewrite_use_nonlinear_expr): Use get_computation_at.
2526         (rewrite_use_compare, remove_unused_ivs): Ditto.
2528 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2530         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
2532 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2534         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
2535         (ivopts_global_cost_for_size): Rename parameter and update uses.
2536         (iv_ca_recount_cost): Update uses.
2537         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
2538         candidates seperately in n_invs and n_cands.
2539         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
2541 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2543         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
2544         (find_inv_vars_cb): New.
2545         (find_depends): Renamed to ...
2546         (find_inv_vars): ... this.
2547         (add_candidate_1, force_var_cost): Call find_inv_vars.
2548         (split_address_cost, determine_group_iv_cost_cond): Ditto.
2550 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2552         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
2553         inv_vars.  Add inv_exprs.
2554         (struct iv_cand): Rename depends_on to inv_vars.
2555         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
2556         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
2557         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
2558         (dump_cand): Dump inv_vars.
2559         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
2560         (record_invariant, find_depends, add_candidate_1): Ditto.
2561         (set_group_iv_cost, force_var_cost): Ditto.
2562         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
2563         (get_computation_cost_at, get_computation_cost): Ditto.
2564         (determine_group_iv_cost_generic): Ditto.
2565         (determine_group_iv_cost_address): Ditto.
2566         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
2567         (determine_group_iv_costs): Ditto.
2568         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
2569         (iv_ca_set_remove_invariants): Renamed to ...
2570         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
2571         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
2572         (iv_ca_set_add_invariants):  Renamed to ...
2573         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
2574         (iv_ca_set_cp): Use iv_ca_set_add_invs.
2575         (iv_ca_has_deps): Support inv_vars and inv_exprs.
2576         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
2577         (create_new_ivs): Remove useless dump.
2579 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2581         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
2582         iv_cand code.
2583         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
2584         (iv_ca_set_no_cp, create_new_iv): Ditto.
2586 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2588         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2590 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2592         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
2593         function tree_check2.
2595 2017-05-02  Martin Liska  <mliska@suse.cz>
2597         * doc/gcov.texi: Add missing preposition.
2598         * gcov.c (function_info::function_info): Properly fill up
2599         all member variables.
2601 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
2603         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
2605 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
2607         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
2609 2017-05-02  Martin Liska  <mliska@suse.cz>
2611         PR lto/77954.
2612         * lto-streamer-in.c (lto_read_tree_1): Remove
2613         LTO_STREAMER_DEBUG.
2614         * lto-streamer.c (struct tree_hash_entry): Likewise.
2615         (struct tree_entry_hasher): Likewise.
2616         (tree_entry_hasher::hash): Likewise.
2617         (tree_entry_hasher::equal): Likewise.
2618         (lto_streamer_init): Likewise.
2619         (lto_orig_address_map): Likewise.
2620         (lto_orig_address_get): Likewise.
2621         (lto_orig_address_remove): Likewise.
2622         * lto-streamer.h: Likewise.
2623         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
2624         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
2626 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
2628         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
2629         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
2630         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
2631         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
2632         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
2633         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
2634         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
2635         (mm_maskz_sub_ss): New intrinsics.
2636         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2637         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2638         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
2639         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
2640         (__builtin_ia32_subss_mask_round): New builtins.
2641         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2642         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2643         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
2644         Renamed to ...
2645         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
2646         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2647         Changed to ...
2648         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2649         ... this.
2651 2017-05-02  Martin Jambor  <mjambor@suse.cz>
2653         PR tree-optimization/78687
2654         * tree-sra.c (access): New field parent.
2655         (process_subtree_disqualification): New function.
2656         (disqualify_candidate): Call it.
2657         (build_accesses_from_assign): Reset write flag if creating an
2658         assighnment link.
2659         (build_access_subtree): Fill in parent field and also prpagate
2660         down grp_write flag.
2661         (create_artificial_child_access): New parameter set_grp_write, set
2662         grp_write to its value.
2663         (propagate_subaccesses_across_link): Also propagate grp_write flag
2664         values.
2665         (propagate_all_subaccesses): Push the closest parent back to work
2666         queue if add_access_to_work_queue returned true.
2668 2017-05-02  Richard Biener  <rguenther@suse.de>
2670         * common.opt (fstrict-overflow): Alias negative to fwrapv.
2671         * doc/invoke.texi (fstrict-overflow): Remove all traces of
2672         -fstrict-overflow documentation.
2673         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
2674         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
2675         flag_strict_overflow.
2676         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
2677         * lto-opts.c (lto_write_options): Do not stream it.
2678         * lto-wrapper.c (merge_and_complain): Do not handle it.
2679         * opts.c (default_options_table): Do not set -fstrict-overflow.
2680         (finish_options): Likewise do not clear it when sanitizing.
2681         * simplify-rtx.c (simplify_const_relational_operation): Do not
2682         test flag_strict_overflow.
2684 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
2686         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
2687         using enabled attribute.
2688         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
2689         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
2690         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
2691         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
2692         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
2693         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
2694         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
2695         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
2696         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
2697         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
2699 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
2701         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
2703 2017-05-02  Richard Biener  <rguenther@suse.de>
2705         PR tree-optimization/80591
2706         Revert
2707         2017-04-10  Richard Biener  <rguenther@suse.de>
2709         * tree-ssa-structalias.c (find_func_aliases): Properly handle
2710         asm inputs.
2712 2017-05-02  Richard Biener  <rguenther@suse.de>
2714         PR tree-optimization/80549
2715         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
2716         (cleanup_tree_cfg_noloop): Create forwarders to known loop
2717         headers if they do not have a preheader.
2719 2017-05-02  Martin Liska  <mliska@suse.cz>
2721         PR other/80589
2722         * common.opt: Fix typo.
2723         * doc/invoke.texi: Likewise.
2725 2017-05-01  Jan Beulich  <jbeulich@suse.com>
2727         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
2728         swapping, add (x,x,m,x,n) alternative.
2730 2017-05-01  Nathan Sidwell  <nathan@acm.org>
2732         * calls.c (combine_pending_stack_adjustment_and_call): Remove
2733         unnecessary unadjusted_alignment check.
2735 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2737         PR c++/80038
2738         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
2739         operations here.
2740         * gimplify.c (gimplify_cilk_detach): New function.
2741         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
2742         * tree-core.h: Document EXPR_CILK_SPAWN.
2743         * tree.h (EXPR_CILK_SPAWN): Define.
2745 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
2747         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
2748         to use new fixit_hint representation, using the "replace" logic.
2749         (get_line_span_for_fixit_hint): Likewise.
2750         (layout::print_any_fixits): Likewise.
2751         (selftest::test_one_liner_many_fixits): Rename to...
2752         (selftest::test_one_liner_many_fixits_1): ...this, and update
2753         comment and expected output to reflect that the multiple fix-it
2754         hints are now consolidated into one insertion.
2755         (selftest::test_one_liner_many_fixits_2): New test.
2756         (selftest::test_diagnostic_show_locus_one_liner): Update for
2757         above.
2758         (selftest::test_fixit_consolidation): Update for fix-it API
2759         change.
2760         * diagnostic.c (print_parseable_fixits): Likewise.
2761         * edit-context.c (edited_line::m_line_events): Convert from
2762         auto_vec <line_event *> to auto_vec <line_event>.
2763         (class line_event): Convert from abstract base class to a concrete
2764         class, taking over the role of replace_event.
2765         (class insert_event): Delete.
2766         (class replace_event): Rename to class line_event.  Convert to
2767         half-open range.
2768         (edit_context::add_fixits): Reimplement.
2769         (edit_context::apply_insert): Delete.
2770         (edit_context::apply_replace): Rename to...
2771         (edit_context::apply_fixit): ...this.  Convert to half-open range.
2772         (edited_file::apply_insert): Delete.
2773         (edited_file::apply_replace): Rename to...
2774         (edited_file::apply_fixit): ...this.
2775         (edited_line::~edited_line): Drop deletion of events.
2776         (edited_line::apply_insert): Delete.
2777         (edited_line::apply_replace): Rename to...
2778         (edited_line::apply_fixit): ...this.  Convert to half-open range.
2779         Update for change to type of m_line_events.
2780         * edit-context.h (edit_context::apply_insert): Delete.
2781         (edit_context::apply_replace): Rename to...
2782         (edit_context::apply_fixit): ...this.
2784 2017-05-01  Martin Sebor  <msebor@redhat.com>
2786         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
2787         known.
2789 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
2791         PR target/68491
2792         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
2793         __get_cpuid_max returns 0.
2794         (__get_cpuid_count): Ditto.
2796 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2798         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
2799         replacement expression is another instance of one of its arguments.
2801 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
2803         PR target/79430
2804         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
2805         check for stack push/pop autoinc.
2806         * config/i386/i386.c (ix86_agi_dependent): Return false
2807         if the only reason why modified_in_p returned true is that
2808         addr is SP based and set_insn is a push or pop.
2810 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
2812         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
2813         overflow check.
2815 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
2817         PR ipa/79224
2818         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
2819         (account_size_time): Use two predicates - exec_pred and
2820         nonconst_pred_ptr.
2821         (evaluate_conditions_for_known_args): Compute both clause and
2822         nonspec_clause.
2823         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
2824         (inline_summary_t::duplicate): Update.
2825         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
2826         separately.
2827         (compute_inline_parameters): Likewise.
2828         (estimate_edge_size_and_time): Update caluclation of time.
2829         (estimate_node_size_and_time): Compute both time and nonspecialized
2830         time.
2831         (estimate_ipcp_clone_size_and_time): Update.
2832         (inline_merge_summary): Update.
2833         (do_estimate_edge_time): Update.
2834         (do_estimate_edge_size): Update.
2835         (do_estimate_edge_hints): Update.
2836         (inline_read_section, inline_write_summary): Stream both new predicates.
2837         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
2838         as argument.
2839         (compute_inlined_call_time): Cleanup.
2840         (big_speedup_p): Update.
2841         (edge_badness): Update.
2842         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
2843         (size_time_entry): Replace predicate by exec_predicate and
2844         nonconst_predicate.
2845         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
2846         (estimate_edge_time): Return also nonspec_time.
2847         (reset_edge_growth_cache): Update.
2849 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
2851         PR rtl-optimization/80491
2852         * ifcvt.c (noce_process_if_block): When looking for x setter
2853         with missing else_bb, don't check only the insn right before
2854         cond_earliest, but look for the last insn that x is modified in
2855         within the same bb.
2857         PR rtl-optimization/80491
2858         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
2860 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
2862         PR tree-optimization/80487
2863         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
2865 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2867         PR tree-optimization/79697
2868         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
2869         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
2870         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
2871         BUILT_IN_STRNDUP.
2872         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
2873         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
2875 2017-04-28  Martin Sebor  <msebor@redhat.com>
2877         PR tree-optimization/80523
2878         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
2879         (init_target_to_host_charmap, target_to_host, target_strtol10): New
2880         functions.
2881         (maybe_warn, format_directive, parse_directive): Use new functions.
2882         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
2884 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
2886         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
2888 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2890         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
2891         target_header_dir): Set correctly.
2892         * configure: Regenerated.
2893         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2894         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2895         instead of SYSTEM_HEADER_DIR.
2897 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
2899         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
2900         (estimate_local_effects): Likewise.
2901         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
2902         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
2903         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
2904         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
2905         do_estimate_edge_time, estimate_edge_time): Likewise.
2906         * ipa-inline-analysis.c (estimate_node_size_and_time,
2907         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
2908         (estimate_time_after_inlining): Remove.
2910 2017-04-28  Martin Liska  <mliska@suse.cz>
2912         * doc/gcov.texi: Enhance documentation of gcov.
2914 2017-04-28  Martin Liska  <mliska@suse.cz>
2916         * doc/gcov.texi: Sort options in alphabetic order.
2917         * doc/gcov-dump.texi: Likewise.
2918         * doc/gcov-tool.texi: Likewise.
2919         * gcov.c (print_usage): Likewise.
2920         * gcov-dump.c (print_usage): Likewise.
2921         * gcov-tool.c (print_merge_usage_message): Likewise.
2922         (print_rewrite_usage_message): Likewise.
2923         (print_overlap_usage_message): Likewise.
2925 2017-04-28  Martin Liska  <mliska@suse.cz>
2927         PR gcov-profile/53915
2928         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
2930 2017-04-28  Martin Liska  <mliska@suse.cz>
2932         PR gcov-profile/79891
2933         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
2934         is marked by compiler as living on a line.
2935         (get_cycles_count): Remove usage of the union.
2936         (output_intermediate_file): Likewise.
2937         (find_source): Fix GNU coding style.
2938         (accumulate_line_counts): Remove old non-all block mode.
2939         (output_lines): Remove usage of the union.
2940         * profile.c (output_location): Include all BBs, even if
2941         belonging to a same line (and file) as a previous BB.
2943 2017-04-28  Martin Liska  <mliska@suse.cz>
2945         * gcov.c (process_args): Handle new argument 'w'.
2946         (read_graph_file): Assign ID to BBs.
2947         (output_branch_count): Display BB # if verbose flag is set.
2948         (output_lines): Likewise for arcs.
2949         (print_usage): Add '--verbose' option help.
2950         * doc/gcov.texi: Document --verbose (-w) option.
2952 2017-04-28  Martin Liska  <mliska@suse.cz>
2954         * gcov.c (struct block_location_info): New struct.
2955         (process_file): Fill up the new structure.
2956         (read_graph_file): Replace usage of encoding by the newly added
2957         struct.
2958         (add_line_counts): Likewise.
2959         (accumulate_line_counts): Remove usage of the union.
2960         (function_info::function_info): New function.
2961         (function_info::~function_info): Likewise.
2962         (process_file): Call delete instead of release_function.
2963         (release_function): Release the function.
2964         (release_structures): Call delete instead of release_function.
2965         (solve_flow_graph): Replace usage of num_blocks.
2966         (find_exception_blocks): Likewise.
2967         (output_lines): Fix GNU coding style.
2969 2017-04-28  Martin Liska  <mliska@suse.cz>
2971         PR driver/56469
2972         * coverage.c (coverage_remove_note_file): New function.
2973         * coverage.h: Declare the function.
2974         * toplev.c (finalize): Clean if an error has been seen.
2976 2017-04-28  Martin Liska  <mliska@suse.cz>
2978         PR gcov-profile/80031
2979         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
2980         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
2981         * gcov.c (read_graph_file): Read just number of blocks.
2982         * profile.c (branch_prob): Do not stream 0 flags per a basic
2983         block.
2985 2017-04-28  Martin Liska  <mliska@suse.cz>
2987         * gcov-dump.c (tag_*): Add new argument to declarations.
2988         (dump_gcov_file): Likewise.
2989         (tag_blocks): Add and use new argument depth.
2990         (tag_arcs): Likewise.
2991         (tag_lines): Likewise.
2992         (tag_counters): Likewise.
2993         (tag_summary): Likewise.
2994         (dump_working_sets): Use depth to do a proper indentation.
2996 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
2998         PR bootstrap/80531
2999         * cgraph.h (symtab_node::debug_symtab): No longer inline.
3000         * symtab.c (symtab_node::debug_symtab): Move definition here.
3002 2017-04-28  Richard Biener  <rguenther@suse.de>
3004         * lto-streamer.h (LTO_major_version): Bump to 7.
3006 2017-04-28  Richard Biener  <rguenther@suse.de>
3008         * tree-vrp.c (assert_info): New struct.
3009         (add_assert_info): New helper.
3010         (register_edge_assert_for_2): Refactor to add asserts to a vector
3011         of assert_info.
3012         (register_edge_assert_for_1): Likewise.
3013         (register_edge_assert_for): Likewise.
3014         (finish_register_edge_assert_for): New helper actually registering
3015         asserts where live on edge.
3016         (find_conditional_asserts): Adjust.
3017         (find_switch_asserts): Likewise.
3018         (evrp_dom_walker::try_find_new_range): Generalize.
3019         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
3021 2017-04-27  Marek Polacek  <polacek@redhat.com>
3023         PR sanitizer/80349
3024         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
3025         arg10 and arg11 to itype.
3027 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
3029         * doc/extend.texi (Object Size Checking): Improve grammar.
3031 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
3033         PR target/80530
3034         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
3035         that the logic for permitting reciprocal estimates matches that
3036         in use_rsqrt_p.
3038 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3040         PR c++/80534
3041         * tree.c (type_cache_hasher::equal): Only compare
3042         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
3043         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
3044         non-aggregate element types.
3045         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
3046         about the flag on ARRAY_TYPEs in the comment, formatting fix.
3048 2017-04-27  Richard Biener  <rguenther@suse.de>
3050         PR middle-end/80533
3051         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
3052         stripping ARRAY_REFs from MEM_EXPR make sure we're not
3053         keeping a reference to a trailing array.
3055 2017-04-27  Richard Biener  <rguenther@suse.de>
3057         PR middle-end/80539
3058         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
3059         being in loop-closed SSA form conservatively.
3060         (chrec_fold_multiply_poly_poly): Likewise.
3062 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
3064         PR middle-end/79665
3065         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
3066         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
3068 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3070         PR target/77728
3071         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
3072         (aarch64_function_arg_alignment): Return unsigned int again, but still
3073         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
3074         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3075         Don't emit -Wpsabi note.
3076         (aarch64_function_arg_boundary): Likewise.
3077         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3078         caller.
3080 2017-04-26  Nathan Sidwell  <nathan@acm.org>
3082         * tree.h (crc32_unsigned_n): Declare.
3083         (crc32_unsigned, crc32_unsigned): Make inline.
3084         * tree.c (crc32_unsigned_bits): Replace with ...
3085         (crc32_unsigned_n): ... this.
3086         (crc32_unsigned, crc32_byte): Remove.
3087         (crc32_string): Remove unnecessary braces.
3089 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
3091         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
3092         * ipa-inline-analysis.c (MAX_TIME): Remove.
3093         (account_size_time): Use sreal for time.
3094         (dump_inline_summary): Update.
3095         (estimate_function_body_sizes): Update.
3096         (estimate_edge_size_and_time): Update.
3097         (estimate_calls_size_and_time): Update.
3098         (estimate_node_size_and_time): Update.
3099         (inline_merge_summary): Update.
3100         (inline_update_overall_summary): Update.
3101         (estimate_time_after_inlining): Update.
3102         (inline_read_section): Update.
3103         (inline_write_summary): Update.
3104         * ipa-inline.c (compute_uninlined_call_time): Update.
3105         (compute_inlined_call_time): Update.
3106         (recursive_inlining): Update.
3107         (inline_small_functions): Update.
3108         (dump_overall_stats): Update.
3109         * ipa-inline.h: Include sreal.h.
3110         (size_time_entry): Turn time to sreal.
3111         (inline_summary): Turn self_time nad time to sreal.
3113 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
3115         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
3116         data-streamer.h
3117         (sreal::stream_out, sreal::stream_in): New.
3118         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
3120 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3122         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
3123         environment.
3125 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
3127         PR target/70799
3128         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3129         Handle ASHIFTRT.
3130         (dimode_scalar_chain::compute_convert_gain): Ditto.
3131         (dimode_scalar_chain::make_vector_copies): Ditto.
3132         (dimode_scalar_chain::convert_reg): Ditto.
3133         (dimode_scalar_chain::convert_insn): Ditto.
3134         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
3135         (VI248_AVX512BW_1): New mode iterator.
3136         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
3137         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
3138         mode iterator.
3140 2017-04-25  Martin Sebor  <msebor@redhat.com>
3142         PR tree-optimization/80497
3143         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
3144         constants are representable in HOST_WIDE_INT.
3145         (parse_directive): Ditto.
3147 2017-04-25  Martin Sebor  <msebor@redhat.com>
3149         PR bootstrap/80486
3150         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
3151         (new_zero_array): Adjust signature.
3152         (dom_info::dom_init): Used unsigned rather that size_t.
3153         (dom_info::dom_info): Same.
3155 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3156             Jakub Jelinek  <jakub@redhat.com>
3158         PR target/77728
3159         * config/arm/arm.c: Include gimple.h.
3160         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3161         returns negative, increment ncrn only if it returned positive.
3162         (arm_needs_doubleword_align): Return int instead of bool,
3163         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
3164         members, but if there is any such non-FIELD_DECL
3165         > PARM_BOUNDARY aligned decl, return -1 instead of false.
3166         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3167         returns negative, increment nregs only if it returned positive.
3168         (arm_setup_incoming_varargs): Likewise.
3169         (arm_function_arg_boundary): Emit -Wpsabi note if
3170         arm_needs_doubleword_align returns negative, return
3171         DOUBLEWORD_ALIGNMENT only if it returned positive.
3173 2017-04-25  Marek Polacek  <polacek@redhat.com>
3175         PR sanitizer/80349
3176         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3177         first argument to type.
3179 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3181         PR target/80482
3182         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
3183         type checks to test for compatibility instead of equality.
3185 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3186             Jakub Jelinek  <jakub@redhat.com>
3188         PR target/77728
3189         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
3190         type.
3191         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
3192         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
3193         the alignment computation, but return their maximum in warn_alignment.
3194         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3195         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
3196         is smaller.
3197         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
3198         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3199         caller.
3201 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3203         * config/arc/simdext.md (dmpyh): Fix typo.
3205 2017-04-25  Richard Biener  <rguenther@suse.de>
3207         PR tree-optimization/80492
3208         * alias.c (compare_base_decls): Handle registers with asm
3209         specification conservatively.
3210         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3211         compare_base_decls returning dont-know properly.
3213 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3215         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
3216         (legitimate_offset_address_p): New function.
3217         (arc_legitimate_address_p): Use above function.
3219 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3221         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
3223 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3225         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
3226         ACCH registers whenever they are available.
3228 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3230         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
3231         double regs fix when not used.
3233 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3235         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
3236         core registers.
3237         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
3238         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
3240 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3242         * config/arc/arc.c (arc_output_addsi): Check for h-register class
3243         when emitting short ADD instructions.
3245 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3247         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
3248         constraint.
3249         (cmpsi_cc_c_insn): Likewise.
3250         (cbranchsi4_scratch): Compute proper instruction length using
3251         compact_hreg_operand.
3252         * config/arc/predicates.md (compact_hreg_operand): New predicate.
3254 2017-04-25  Richard Biener  <rguenther@suse.de>
3256         PR middle-end/80509
3257         * passes.c (pass_manager::pass_manager): Initialize
3258         m_name_to_pass_map.
3260 2017-04-25  Richard Biener  <rguenther@suse.de>
3262         PR tree-optimization/79201
3263         * tree-ssa-sink.c (statement_sink_location): Handle calls.
3265 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3267         PR target/80464
3268         * config/s390/vector.md: Split MEM->GPR vector moves for
3269         non-s_operand addresses.
3271 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3273         PR target/79895
3274         * config/s390/predicates.md (reload_const_wide_int_operand): New
3275         predicate.
3276         * config/s390/s390.md ("movti"): Remove d/P alternative.
3277         ("movti_bigconst"): New pattern definition.
3279 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3281         PR target/80080
3282         * s390-protos.h (s390_expand_cs_hqi): Removed.
3283         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
3284         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
3285         modes as well as CCZ1mode and CCZmode.
3286         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
3287         signature of s390_emit_compare_and_swap.
3288         (s390_expand_cs_hqi): Likewise, make static.
3289         (s390_expand_cs_tdsi): Generate an explicit compare before trying
3290         compare-and-swap, in some cases.
3291         (s390_expand_cs): Wrapper function.
3292         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
3293         atomic_exchange.
3294         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
3295         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
3296         patterns for small and large integers.  Forbid symref memory operands.
3297         Move expander to s390.c.  Require cc register.
3298         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
3299         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
3300         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
3301         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
3302         symref memory operands.  Remove CC mode and call s390_match_ccmode
3303         instead.
3304         ("atomic_exchange<mode>"): Allow and implement all integer modes.
3306 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3308         * config/s390/s390.md (define_peephole2): New peephole to help
3309         combining the load-and-test pattern with volatile memory.
3311 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3313         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
3314         with CCZmode for TARGET_Z196.
3316 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3318         PR rtl-optimization/80501
3319         * combine.c (make_compound_operation_int): Set subreg_code to SET
3320         even for AND with mask of the sign bit of mode.
3322         PR rtl-optimization/80500
3323         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
3324         sum's initial value.
3326 2017-04-25  Julian Brown  <julian@codesourcery.com>
3327             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3329         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
3331 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
3333         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
3335 2017-04-25  Julian Brown  <julian@codesourcery.com>
3336             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3338         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
3339         (thunderx2t99_sha): New Reservation.
3341 2017-04-25  Julian Brown  <julian@codesourcery.com>
3342             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3344         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
3345         type for 1-element load.
3347 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
3349         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
3351 2017-04-24  Martin Jambor  <mjambor@suse.cz>
3353         PR tree-optimization/80293
3354         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
3355         char arrays not totally scalarizable if it is false.
3356         (analyze_all_variable_accesses): Pass correct value in the new
3357         parameter.  Add a statistics counter.
3359 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
3361         PR middle-end/79931
3362         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
3364 2017-04-24  Richard Biener  <rguenther@suse.de>
3366         PR tree-optimization/80494
3367         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
3368         out for complex types.
3370 2017-04-24  Richard Biener  <rguenther@suse.de>
3372         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
3373         * tree-ssa-sccvn.c (print_scc): Print SCC size.
3374         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
3375         (DFS): Adjust and never fail.
3376         (sccvn_dom_walker::fail): Remove.
3377         (sccvn_dom_walker::before_dom_children): Adjust.
3378         (run_scc_vn): Likewise and never fail.
3379         * tree-ssa-pre.c (pass_pre::execute): Adjust.
3380         (pass_fre::execute): Likewise.
3382 2017-04-24  Richard Biener  <rguenther@suse.de>
3384         PR tree-optimization/79725
3385         * tree-ssa-sink.c (statement_sink_location): Return whether
3386         failure reason was zero uses.  Move that check later.
3387         (sink_code_in_bb): Deal with zero uses by removing the stmt
3388         if possible.
3390 2017-04-24  Richard Biener  <rguenther@suse.de>
3392         PR c++/2972
3393         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
3394         pointer-based references.
3396 2017-04-24  Richard Biener  <rguenther@suse.de>
3398         PR bootstrap/79814
3399         * pass_manager.h (pass_manager::operator new): Remove.
3400         (pass_manager::operator delete): Likewise.
3401         * passes.c (pass_manager::operator new): Remove.
3402         (pass_manager::operator delete): Likewise.
3403         (pass_manager::pass_manager): Zero individual pass members.
3405 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
3407         PR target/70799
3408         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
3409         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
3410         Check "XEXP (src, 1)" operand here.
3411         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
3412         Check "XEXP (src, 1)" operand here.
3413         (dimode_scalar_chain::make_vector_copies): Detect count register
3414         of a shift instruction.  Zero extend count register from QImode
3415         to DImode to satisfy vector shift pattern count operand predicate.
3416         Substitute vector shift count operand with a DImode copy.
3417         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
3418         vector register.
3420 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
3422         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
3423         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3424         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
3425         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3426         (UNSPEC_NOREX_MEM): Remove definition.
3428 2017-04-21  Richard Biener  <rguenther@suse.de>
3430         PR tree-optimization/79547
3431         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3432         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
3433         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
3434         without any constraints.
3436 2017-04-21  Richard Biener  <rguenther@suse.de>
3438         PR tree-optimization/78847
3439         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
3441 2017-04-21  Richard Biener  <rguenther@suse.de>
3443         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
3444         (build_distinct_type_copy): Likewise.
3445         (build_variant_type_copy): Likewise.
3446         * tree.c (build_qualified_type): Pass down mem-stat info.
3447         (build_distinct_type_copy): Likewise.
3448         (build_variant_type_copy): Likewise.
3450 2017-04-21  Richard Biener  <rguenther@suse.de>
3452         PR tree-optimization/80237
3453         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
3454         defaulted to NULL.
3455         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
3456         for a simplified result.
3458 2016-04-21  Richard Biener  <rguenther@suse.de>
3460         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
3461         sth as strict as a simple_iv but a chrec without symbols and an
3462         operand defined in the loop we are peeling (and not some subloop).
3463         (propagate_constants_for_unrolling): Propagate all constants.
3465 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3467         PR target/79804
3468         * config/i386/i386.c (print_reg): Remove assert for disalowed
3469         regno values, call output_operand_lossage instead.
3471 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3473         PR target/78090
3474         * config/i386/constraints.md (Yc): New register constraint.
3475         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
3476         Use Yc constraint for alternative 2 of operand 0.  Remove
3477         preferred_for_speed attribute.
3479 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3481         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
3482         lastprivate clauses in SIMT case.
3484 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
3486         * doc/invoke.texi (-Wextra-semi): Document new warning option.
3488 2017-04-20  Richard Biener  <rguenther@suse.de>
3490         PR tree-optimization/57796
3491         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
3492         as N scalar stores.
3493         (vect_model_load_cost): Cost gathers as N scalar loads.
3495 2017-04-20  Richard Biener  <rguenther@suse.de>
3497         * ggc-page.c (ggc_allocated_p): Rename to ...
3498         (safe_lookup_page_table_entry): ... this and return the lookup
3499         result.
3500         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
3502 2017-04-20  Richard Biener  <rguenther@suse.de>
3504         PR tree-optimization/80453
3505         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
3506         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
3507         from the conditions.
3508         (vn_phi_eq): Pass them down.
3509         (vn_phi_lookup): Record them.
3510         (vn_phi_insert): Likewise.
3512 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3514         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
3515         uninitialized variable warning to avoid buffer overrun.
3517 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3519         PR other/71250
3520         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
3521         is suppressed for '{ 0 }' in C.
3523 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
3525         * BASE-VER: Set to 8.0.0.
3527 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3529         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
3530         priority .init_array and .fini_array section with SECTION_NOTYPE
3531         flag.
3533 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
3535         PR middle-end/80423
3536         * tree.h (build_array_type): Add typeless_storage default argument.
3537         * tree.c (type_cache_hasher::equal): Also compare
3538         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
3539         (build_array_type): Add typeless_storage argument, set
3540         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
3541         recursive call.
3542         (build_nonshared_array_type): Adjust build_array_type_1 caller.
3543         (build_array_type): Likewise.  Add typeless_storage argument.
3545 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3546             Jakub Jelinek  <jakub@redhat.com>
3548         PR tree-optimization/80426
3549         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
3550         operation on symbolic operands, also compute the overflow for the
3551         invariant part when the operation degenerates into a negation.
3553 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
3555         PR debug/80461
3556         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
3557         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
3559         PR debug/80436
3560         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
3562 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
3564         PR target/80462
3565         * config/avr/avr.c (tree.h): Include it.
3566         (cgraph.h): Include it.
3567         (avr_encode_section_info): Don't warn for uninitialized progmem
3568         variable if it's just an alias.
3570 2017-04-19  Richard Biener  <rguenther@suse.de>
3572         PR ipa/65972
3573         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
3574         when needed by AutoPGO.
3576 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
3578         PR lto/50345
3579         * doc/lto.texi: Remove an extra 'that'.
3581 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
3583         PR rtl-optimization/80429
3584         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
3585         are only used in debug insns.
3587 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3588             Vladimir Makarov  <vmakarov@redhat.com>
3590         * config/sparc/predicates.md (input_operand): Add comment.  Return
3591         true for any memory operand when LRA is in progress.
3592         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
3594 2017-04-18  Jeff Law  <law@redhat.com>
3596         PR target/74563
3597         * mips.md ({return,simple_return}_internal): Do not overwrite
3598         operands[0].
3600 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3602         PR tree-optimization/80443
3603         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
3604         instead of adding 1, subtract -1 and similarly instead of subtracting
3605         1 add -1.
3607 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
3609         PR rtl-optimization/80357
3610         * haifa-sched.c (tmp_bitmap): New variable.
3611         (model_recompute): Handle duplicate use records.
3612         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
3613         (free_global_sched_pressure_data): Free it.
3615 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3617         Revert:
3618         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3619         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3620         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3621         instead of SYSTEM_HEADER_DIR.
3623 2017-04-18  Jeff Law  <law@redhat.com>
3625         PR middle-end/80422
3626         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
3627         predecessors after walking up the insn chain.
3629 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3631         PR debug/80263
3632         * dwarf2out.c (modified_type_die): Try harder not to emit internal
3633         sizetype type into debug info.
3635 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3637         PR target/80099
3638         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
3639         unneeded test for TARGET_UPPER_REGS_SF.
3640         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
3642 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3644         PR sanitizer/80444
3645         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
3646         instead of gsi_after_labels.
3648 2017-04-18  Jeff Law  <law@redhat.com>
3650         * regcprop.c (maybe_mode_change): Avoid creating copies of the
3651         stack pointer.
3653         Revert:
3654         2017-04-13  Jeff Law  <law@redhat.com>
3655         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3656         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3658 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
3660         PR target/79453
3661         * config/avr/avr.c (intl.h): Include it.
3662         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
3664 2017-04-18  Martin Liska  <mliska@suse.cz>
3666         PR gcov-profile/78783
3667         * gcov-tool.c (gcov_output_files): Validate that destination
3668         file is either removed by the tool or by a user.
3670 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3671             Guy Benyei  <guybe@mellanox.com>
3673         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
3674         block, and do not negate it, the stored id is already negative.
3676 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3678         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
3680 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3682         PR target/80098
3683         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
3684         masks of options that should be turned off if the VSX vector
3685         options are turned off.
3686         (OTHER_P8_VECTOR_MASKS): Likewise.
3687         (OTHER_VSX_VECTOR_MASKS): Likewise.
3688         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
3689         rs6000_disable_incompatible_switches to validate no type switches
3690         like -mvsx.
3691         (rs6000_incompatible_switch): New function to disallow turning on
3692         other vector options if -mno-vsx, -mno-power8-vector, or
3693         -mno-power9-vector are specified.
3695 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3697         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
3699 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3701         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
3702         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
3703         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
3704         (ARG_POINTER_CFA_OFFSET): Likewise.
3706 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3708         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
3709         conditions to take advantage of various optimizations.
3711 2017-04-13  Jeff Law  <law@redhat.com>
3713         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3714         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3715         (zero_extendsidi2_dext): Likewise.
3717 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3719         PR sanitizer/80403
3720         * fold-const.c (fold_ternary_loc): Revert
3721         use op0 instead of fold_convert_loc (loc, type, arg0) part of
3722         2017-04-12 change.
3724 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3726         PR rtl-optimization/80343
3727         * lra-remat.c (update_scratch_ops): Assign original hard reg to
3728         new scratch pseudo.
3730 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
3732         PR sanitizer/80414
3733         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
3734         to ubsan_encode_value.
3736 2017-04-13  Jeff Law  <law@redhat.com>
3738         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
3739         appearing in DEBUG_INSNs.
3741 2017-04-13  Martin Liska  <mliska@suse.cz>
3743         PR gcov-profile/80413
3744         * gcov-io.c (gcov_write_string): Copy to buffer just when
3745         allocated size is greater than zero.
3747 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3749         PR debug/80321
3750         * dwarf2out.c (decls_for_scope): Ignore declarations of
3751         current_function_decl in BLOCK_NONLOCALIZED_VARS.
3753 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
3755         PR lto/69953
3756         * ipa-visibility.c (non_local_p): Fix typos.
3757         (localize_node): When localizing symbol in same comdat group,
3758         dissolve the group only when we know external symbols are going
3759         to be privatized.
3760         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
3762 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3764         PR tree-optimization/79390
3765         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
3766         order does not result in usable sequence, retry with reversed operand
3767         order.
3769         PR sanitizer/80403
3770         PR sanitizer/80404
3771         PR sanitizer/80405
3772         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
3773         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
3774         op0 instead of fold_convert_loc (loc, type, arg0).
3776 2017-04-12  Jeff Law  <law@redhat.com>
3778         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
3779         has a delay slot in the generated code.
3781         * config/cris/cris.md (cris_preferred_reload_class): Return
3782         GENNONACR_REGS rather than GENERAL_REGS.
3784 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3786         PR c/80163
3787         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
3788         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
3789         signedness of the result type.
3791 2017-04-12  Richard Biener  <rguenther@suse.de>
3792             Jeff Law  <law@redhat.com>
3794         PR tree-optimization/80359
3795         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
3796         trim stores to TARGET_MEM_REFs.
3798 2017-04-12  Richard Biener  <rguenther@suse.de>
3800         PR tree-optimization/79390
3801         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
3802         threading case even more.
3804 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
3806         PR target/80382
3807         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
3808         for quad_address_p for TImode, instead of just not indexed_address.
3810 2017-04-12  Richard Biener  <rguenther@suse.de>
3811             Bernd Edlinger  <bernd.edlinger@hotmail.de>
3813         PR middle-end/79671
3814         * alias.c (component_uses_parent_alias_set_from): Handle
3815         TYPE_TYPELESS_STORAGE.
3816         (get_alias_set): Likewise.
3817         * tree-core.h (tree_type_common): Add typeless_storage flag.
3818         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
3819         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
3820         for types containing members with TYPE_TYPELESS_STORAGE.
3821         (place_field): Likewise.
3822         (layout_type): Likewise for ARRAY_TYPE.
3823         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
3824         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
3825         TYPE_TYPELESS_STORAGE.
3826         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3828 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3830         PR sanitizer/80349
3831         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3832         first argument to type.
3834 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3836         PR target/80376
3837         PR target/80315
3838         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3839         CONST0_RTX (mode) rather than const0_rtx where appropriate.
3840         (rs6000_expand_binop_builtin): Likewise.
3841         (rs6000_expand_ternop_builtin): Likewise; also add missing
3842         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
3843         vshasigma built-ins.
3844         * doc/extend.texi: Document that vec_xxpermdi's third argument
3845         must be a constant.
3847 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
3849         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
3850         Use shift_const cost parameter when calculating gain of STV shifts.
3852 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
3854         PR rtl-optimization/70478
3855         * lra-constraints.c (process_alt_operands): Check memory for
3856         disfavoring memory insn operand.
3858 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3860         PR middle-end/80100
3861         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
3862         left shift in unsigned HOST_WIDE_INT type.
3864         PR rtl-optimization/80385
3865         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
3866         (not (neg X)) into (plus X -1) for complex or non-integral modes.
3868         PR libgomp/80394
3869         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
3870         if they have any depend clauses.
3872 2017-04-11  Martin Liska  <mliska@suse.cz>
3874         PR ipa/80212
3875         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
3876         * ipa-split.c (split_function): Create a local comdat symbol
3877         if caller is in a comdat group.
3879 2017-04-11  Martin Liska  <mliska@suse.cz>
3881         PR ipa/80212
3882         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
3883         flags.
3885 2017-04-11  Martin Sebor  <msebor@redhat.com>
3887         PR middle-end/80364
3888         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
3889         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
3890         for INTEGER_TYPE.
3891         (directive::set_width, directive::set_precision, format_character):
3892         Adjust.
3893         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
3894         INTEGER_TYPE.
3896 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
3898         PR target/80389
3899         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
3900         conflict, set target->arch_name instead of target->cpu_name.
3902 2017-04-11  Richard Biener  <rguenther@suse.de>
3904         PR tree-optimization/80374
3905         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
3906         build_zero_cst, remove fold_convertible_p check again.
3908 2017-04-11  Martin Liska  <mliska@suse.cz>
3910         PR sanitizer/70878
3911         * ubsan.c (instrument_object_size): Do not instrument register
3912         variables.
3914 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3916         PR target/80381
3917         * config/i386/i386-builtin-types.def
3918         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
3919         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
3920         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
3921         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
3922         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
3923         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
3924         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
3925         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
3926         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
3927         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
3928         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
3929         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
3930         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
3931         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
3932         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
3933         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
3934         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
3935         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
3936         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
3937         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
3938         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
3939         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
3940         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
3941         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
3942         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
3943         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
3944         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
3945         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
3946         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
3947         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
3948         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
3949         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
3950         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
3951         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
3952         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
3953         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
3954         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
3955         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
3956         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
3957         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
3958         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
3959         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
3960         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
3961         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
3962         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
3963         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
3964         aliases.
3965         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
3966         flag to second_arg_count, handle 4 argument function type _COUNT
3967         aliases, handle second_arg_count on second argument rather than last.
3969 2017-04-10  Jeff Law  <law@redhat.com>
3971         PR tree-optimization/80374
3972         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
3973         record anything if we can not convert integer_zero_node to the
3974         desired type.
3976 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3978         PR target/80108
3979         * config/rs6000/rs6000.c (rs6000_option_override_internal):
3980         Enhance special handling given to the TARGET_P9_MINMAX option in
3981         relation to certain other options.
3983 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
3985         PR tree-optimization/80153
3986         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
3987         remove POINTER_PLUS_EXPR's base part directly, rather than through
3988         aff_tree.
3990 2017-04-10  Richard Biener  <rguenther@suse.de>
3991             Bin Cheng  <bin.cheng@arm.com>
3993         PR tree-optimization/80153
3994         * tree-affine.c (aff_combination_to_tree): Get base pointer from
3995         the first element of pointer type aff_tree.  Build result expr in
3996         aff_tree's type.
3997         (add_elt_to_tree): Convert to type unconditionally.  Remove other
3998         fold_convert calls.
3999         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
4000         (rewrite_use_nonlinear_expr): Check invariant using iv information.
4002 2017-04-10  Richard Biener  <rguenther@suse.de>
4004         * tree-ssa-structalias.c (find_func_aliases): Properly handle
4005         asm inputs.
4007 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
4009         PR rtl-optimization/70478
4010         * lra-constraints.c (curr_small_class_check): New.
4011         (update_and_check_small_class_inputs): New.
4012         (process_alt_operands): Update curr_small_class_check.  Disfavor
4013         alternative insn memory operands.  Check available regs for small
4014         class operands.
4016 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4018         PR target/80057
4019         * config/mips/mips.opt (-mvirt): Update description.
4020         * doc/invoke.texi (-mvirt): Likewise.
4022 2017-04-10  Richard Biener  <rguenther@suse.de>
4024         PR middle-end/80362
4025         * fold-const.c (fold_binary_loc): Look at unstripped ops when
4026         looking for NEGATE_EXPR in -A / -B to A / B folding.
4028 2017-04-10  Martin Liska  <mliska@suse.cz>
4030         PR gcov-profile/80224
4031         * gcov.c (print_usage): Fix usage string.
4032         (get_gcov_intermediate_filename): Remove.
4033         (output_gcov_file): Use both for normal and intermediate format.
4034         (generate_results): Do not initialize special file for
4035         intermediate format.
4037 2017-04-10  Richard Biener  <rguenther@suse.de>
4039         PR tree-optimization/80304
4040         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
4041         for safelen.
4043 2017-04-10  Nathan Sidwell  <nathan@acm.org>
4045         PR target/79905
4046         * config/rs6000/rs6000.c (rs6000_vector_type): New.
4047         (rs6000_init_builtins): Use it.
4049 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4051         * config/arm/arm.md (<mrc>): Add mode to SET source.
4052         (<mrrc>): Likewise.
4054 2017-04-10  Richard Biener  <rguenther@suse.de>
4056         PR middle-end/80344
4057         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
4059 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
4061         PR target/80324
4062         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
4063         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
4064         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
4065         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
4066         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
4067         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
4068         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
4069         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
4070         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
4071         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
4072         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
4073         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
4074         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
4075         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
4076         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
4077         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
4078         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
4079         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
4080         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
4081         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
4082         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
4083         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
4084         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
4086 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4088         PR rtl-optimization/70478
4089         * lra-constraints.c: Reverse the last patch.
4091 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
4093         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
4094         Add comment for WCHAR_T.
4096 2017-04-08  Martin Liska  <mliska@suse.cz>
4098         Revert:
4099         2017-04-07  Martin Liska  <mliska@suse.cz>
4101         PR ipa/80212
4102         * ipa-split.c (split_function): Add function part to a same comdat
4103         group.
4105 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4107         PR target/80358
4108         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
4110 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
4112         * rs6000/rs6000.c (vec_load_pendulum): Rename...
4113         (vec_pairing): ...to this.
4114         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
4115         (rs6000_sched_init): Adjust for name change.
4116         (struct rs6000_sched_context): Likewise.
4117         (rs6000_init_sched_context): Likewise.
4118         (rs6000_set_sched_context): Likewise.
4120 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
4122         PR target/80322
4123         PR target/80323
4124         PR target/80325
4125         PR target/80326
4126         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
4127         intrinsics.
4128         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
4129         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
4130         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
4132 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
4134         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
4136 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
4138         PR rtl-optimization/70703
4139         * ira-color.c (update_conflict_hard_regno_costs): Use
4140         int64_t instead of HOST_WIDE_INT.
4142 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
4144         PR rtl-optimization/70478
4145         * lra-constraints.c (process_alt_operands): Disfavor alternative
4146         insn memory operands.
4148 2017-04-07  Jeff Law  <law@redhat.com>
4150         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
4151         CALL and NOTE_INSN_CALL_ARG_LOCATION.
4153 2017-04-07  Martin Liska  <mliska@suse.cz>
4155         PR target/79889
4156         * config/aarch64/aarch64.c (aarch64_process_target_attr):
4157         Show error message instead of an ICE.
4159 2017-04-07  Martin Liska  <mliska@suse.cz>
4161         PR ipa/80212
4162         * ipa-split.c (split_function): Add function part to a same comdat
4163         group.
4165 2017-04-07  Richard Biener  <rguenther@suse.de>
4167         PR middle-end/80341
4168         * tree.c (get_unwidened): Also handle ! for_type case for
4169         INTEGER_CSTs.
4170         * convert.c (do_narrow): Split out from ...
4171         (convert_to_integer_1): ... here.  Do not pass final truncation
4172         type to get_unwidened for TRUNC_DIV_EXPR.
4174 2017-04-07  Richard Biener  <rguenther@suse.de>
4176         * tree-affine.c (wide_int_ext_for_comb): Take type rather
4177         than aff_tree.
4178         (aff_combination_const): Adjust.
4179         (aff_combination_scale): Likewise.
4180         (aff_combination_add_elt): Likewise.
4181         (aff_combination_add_cst): Likewise.
4182         (aff_combination_convert): Likewise.
4183         (add_elt_to_tree): Likewise.  Remove unused argument.
4184         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
4186 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4188         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
4189         definition.
4190         * config/arm/arm.c (arm_default_short_enums): Use
4191         ARM_DEFAULT_SHORT_ENUMS.
4192         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
4194 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
4196         PR debug/80234
4197         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
4198         members with redundant out-of-class redeclaration.
4200 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
4202         PR target/80286
4203         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
4204         * config/i386/i386.md (*zero_extendsidi2):
4205         Add (?*x,*x) and (?*v,*v) alternatives.
4207 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
4209         PR target/79733
4210         * config/i386/i386.c (ix86_expand_builtin)
4211         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
4212         mode from insn data. Convert operands to insn operand mode.
4213         Copy operands that don't satisfy insn predicate to a register.
4215 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
4217         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
4218         Update comments.
4220 2017-04-06  Richard Biener  <rguenther@suse.de>
4222         PR tree-optimization/80334
4223         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
4224         preserve alignment of accesses.
4226 2017-04-06  Richard Biener  <rguenther@suse.de>
4228         PR tree-optimization/80262
4229         * tree-sra.c (build_ref_for_offset): Preserve address-space
4230         information.
4231         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4232         Drop useless address-space information on MEM_REF offsets.
4234 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
4236         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
4238 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4240         PR rtl-optimization/70703
4241         * ira-color.c (update_conflict_hard_regno_costs): Use
4242         HOST_WIDE_INT instead of long.
4244 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
4246         PR target/80298
4247         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
4248         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
4249         is not defined.
4250         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
4251         for x86_64 target.  Handle -m3dnowa option.
4253 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4255         PR rtl-optimization/70703
4256         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
4257         (update_conflict_hard_regno_costs): Use long instead of unsigned
4258         arithmetic for cost calculation.
4260 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4261             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4263         PR sanitizer/80308
4264         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
4265         for big endian.
4267 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4269         PR target/78002
4270         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
4271         ptr_mode with Pmode throughout.
4272         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
4273         into probe_stack_range and use DImode.
4275 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4277         PR target/79890
4278         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
4279         call_eh_return is true.
4281 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4283         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
4284         Initialize last_match_fntype_index.
4286 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4288         PR target/80310
4289         * tree-nvr.c: Include internal-fn.h.
4290         (pass_return_slot::execute): Ignore internal calls without
4291         direct optab.
4293 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4294             Richard Biener  <rguenther@suse.de>
4296         PR c++/80297
4297         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
4298         captures used multiple times, except for the last use.
4299         * generic-match-head.c: Include gimplify.h.
4301 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4303         PR tree-optimization/79390
4304         * target.h (struct noce_if_info): Declare.
4305         * targhooks.h (default_noce_conversion_profitable_p): Declare.
4306         * target.def (noce_conversion_profitable_p): New target hook.
4307         * ifcvt.h (struct noce_if_info): New type, moved from ...
4308         * ifcvt.c (struct noce_if_info): ... here.
4309         (noce_conversion_profitable_p): Renamed to ...
4310         (default_noce_conversion_profitable_p): ... this.  No longer
4311         static nor inline.
4312         (noce_try_store_flag_constants, noce_try_addcc,
4313         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
4314         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
4315         instead of noce_conversion_profitable_p.
4316         * config/i386/i386.c: Include ifcvt.h.
4317         (ix86_option_override_internal): Don't override
4318         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
4319         (ix86_noce_conversion_profitable_p): New function.
4320         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
4321         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
4322         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
4323         * doc/tm.texi: Regenerated.
4325 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4327         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
4328         correction.
4330 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4332         PR target/80307
4333         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
4334         instructions for small multiply cores.
4336 2017-04-04  Jeff Law  <law@redhat.com>
4338         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
4339         added member.
4340         (mips_expand_vec_perm_const): Initialize elements in orig_perm
4341         that are not set by the loop over the elements.
4343 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4345         PR target/80286
4346         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
4347         int mode, convert_modes it to mode as unsigned, otherwise use
4348         lowpart_subreg to mode rather than SImode.
4349         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
4350         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
4351         Use DImode instead of SImode for the shift count operand.
4352         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
4353         Likewise.
4355 2017-04-04  Richard Biener  <rguenther@suse.de>
4357         PR middle-end/80281
4358         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
4359         arithmetic done for the negate or the plus.  Simplify.
4360         (A - (-B) -> A + B): Likewise.
4361         * fold-const.c (split_tree): Make sure to not negate pointers.
4363 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
4365         PR rtl-optimization/60818
4366         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
4367         a compare of comparisons with the thing compared if this results
4368         in a different machine mode.
4370 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
4372         * alias.c (base_alias_check): Fix typo in comment.
4373         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
4374         * cgraphunit.c (symbol_table::compile): Likewise.
4375         * collect2.c (maybe_run_lto_and_relink): Likewise.
4376         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
4377         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
4378         * config/avr/avr.c (avr_map_op_t): Likewise.
4379         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
4380         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
4381         * config/epiphany/epiphany.md (movcc): Likewise.
4382         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
4383         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
4384         Likewise.
4385         * config/mips/mips.c (mips_save_restore_reg): Likewise.
4386         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
4387         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
4388         * config/sh/sh.c (sh_rtx_costs): Likewise.
4389         * fold-const.c (fold_truth_andor): Likewise.
4390         * genautomata.c (collapse_flag): Likewise.
4391         * gengtype.h (struct type::u::s): Likewise.
4392         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
4393         * input.c (FORMAT_AMOUNT): Likewise.
4394         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
4395         (known_aggs_to_agg_replacement_list): Likewise.
4396         * ipa-inline-analysis.c: Likewise.
4397         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
4398         * ipa-polymorphic-call.c
4399         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
4400         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
4401         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
4402         Likewise.
4403         * modulo-sched.c (apply_reg_moves): Likewise.
4404         * omp-expand.c (build_omp_regions_1): Likewise.
4405         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
4406         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
4407         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
4408         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4409         * value-prof.c: Likewise.
4410         * var-tracking.c (val_reset): Likewise.
4412 2017-04-03  Richard Biener  <rguenther@suse.de>
4414         PR tree-optimization/80275
4415         * fold-const.c (split_address_to_core_and_offset): Handle
4416         POINTER_PLUS_EXPR.
4418 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
4420         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
4421         descriptors is at least equal to that of functions.
4423 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4425         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
4427 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4429         PR target/80250
4430         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
4431         (mov<IMOD4:mode>): New expander.
4432         (*mov<IMOD4:mode>_internal): New insn and split pattern.
4434 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
4436         PR rtl-optimization/79405
4437         * fwprop.c (propagations_left): New variable.
4438         (forward_propagate_into): Decrement it.
4439         (fwprop_init): Initialize it.
4440         (fw_prop): If the variable has reached zero, stop propagating.
4441         (fwprop_addr): Ditto.
4443 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4445         PR debug/79255
4446         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
4447         a FUNCTION_DECL, pass it as decl instead of origin to
4448         process_scope_var.
4450 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
4452         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
4453         string.
4455 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
4457         PR target/80107
4458         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
4459         TARGET_VSX_SMALL_INTEGER.
4461 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4463         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4464         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
4466 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4468         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
4469         extraction from odd-numbered MSA register.
4471 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4473         PR middle-end/80173
4474         * expmed.c (store_bit_field_1): Don't attempt to create
4475         a word subreg out of hard registers wider than word if they
4476         have HARD_REGNO_NREGS of 1 for their mode.
4478         PR middle-end/80163
4479         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
4480         conversions to integer types wider than word and pointer.
4482         PR debug/80025
4483         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
4484         (rtx_equal_for_cselib_p): Pass 0 to it.
4485         * cselib.c (cselib_hasher::equal): Likewise.
4486         (rtx_equal_for_cselib_1): Add depth argument.  If depth
4487         is 128, don't look up VALUE locs and punt.  Increment
4488         depth in recursive calls when walking VALUE locs.
4490 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4492         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
4493         (make_gcov_file_name): Use the canonical path name for generating
4494         the MD5 value.
4495         (read_line): Fix handling of files with ascii null bytes.
4497 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
4499         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
4500         to initialise a vector register instead
4501         of using a const_int.
4503 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4505         PR translation/80189
4506         * gimplify.c (omp_default_clause): Use %qs instead of %s in
4507         diagnostic messages.
4509 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
4511         PR target/80246
4512         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
4513         (dfp_diex_<mode>): Update mode of operand 1.
4514         * doc/extend.texi (dxex, dxexq): Document change to return type.
4515         (diex, diexq): Document change to argument type.
4517 2017-03-30  Martin Jambor  <mjambor@suse.cz>
4519         PR ipa/77333
4520         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
4521         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
4522         it reflects the signature changes performed at the callee side.
4523         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
4524         to cgraph_build_function_type_skip_args.
4525         (build_function_decl_skip_args): Adjust call to the above function.
4527 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4529         PR target/80206
4530         * config/i386/sse.md
4531         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
4532         register as dest whenever it is a MEM not rtx_equal_p to the
4533         corresponding dup operand, and when forcing into reg move the
4534         reg into the memory afterwards.
4535         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
4536         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
4537         for the force_reg mode.
4538         (avx512vl_vextractf128<mode>): Use register as dest either
4539         always when a MEM, or when it is a MEM not rtx_equal_p to the
4540         corresponding dup operand, or even not when it is a CONST_VECTOR
4541         depending on the mode and lo vs. hi.
4542         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
4543         parens.
4544         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
4545         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
4546         Likewise.  Require that operands[2] is even.
4547         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
4548         Remove extraneous parens.  Require that operands[2] is a multiple
4549         of 4.
4550         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
4551         operands[0] is a MEM if <mask_applied>, the predicates/constraints
4552         disallow memory then.
4554 2017-03-30  Richard Biener  <rguenther@suse.de>
4556         PR tree-optimization/77498
4557         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
4558         to non-constants over backedges.
4560 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
4562         PR rtl-optimization/80233
4563         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
4564         as last_combined_insn.  Do not test for BARRIER_P separately.
4566 2017-03-29  Andreas Schwab  <schwab@suse.de>
4568         PR ada/80146
4569         * calls.c (prepare_call_address): Convert funexp to Pmode before
4570         copying to temp reg.
4572 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4574         PR tree-optimization/80158
4575         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
4576         Handle possible future case of more than one alternate
4577         interpretation.
4578         (replace_rhs_if_not_dup): Likewise.
4579         (replace_one_candidate): Likewise.
4581 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4583         PR rtl-optimization/80193
4584         * ira.c (ira): Do not check allocation for LRA.
4586 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
4588         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
4589         (nvptx_output_simt_exit): Declare.
4590         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
4591         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
4592         (init_softstack_frame): Move initialization of crtl->is_leaf to...
4593         (nvptx_declare_function_name): ...here.  Emit declaration of local
4594         memory space buffer for omp_simt_enter insn.
4595         (nvptx_output_unisimt_switch): New.
4596         (nvptx_output_softstack_switch): New.
4597         (nvptx_output_simt_enter): New.
4598         (nvptx_output_simt_exit): New.
4599         * config/nvptx/nvptx.h (struct machine_function): New fields
4600         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
4601         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
4602         (UNSPECV_SIMT_EXIT): Ditto.
4603         (omp_simt_enter_insn): New insn.
4604         (omp_simt_enter): New expansion.
4605         (omp_simt_exit): New insn.
4606         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
4608         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
4609         (expand_GOMP_SIMT_ENTER_ALLOC): New.
4610         (expand_GOMP_SIMT_EXIT): New.
4611         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
4612         (GOMP_SIMT_ENTER_ALLOC): Ditto.
4613         (GOMP_SIMT_EXIT): Ditto.
4614         * target-insns.def (omp_simt_enter): New insn.
4615         (omp_simt_exit): Ditto.
4616         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
4617         simt_dlist.
4618         (lower_rec_simd_input_clauses): Implement SIMT privatization.
4619         (lower_rec_input_clauses): Likewise.
4620         (lower_lastprivate_clauses): Handle SIMT privatization.
4622         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
4623         (ompdevlow_adjust_simt_enter): New.
4624         (find_simtpriv_var_op): New.
4625         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
4626         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
4628         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
4629         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
4630         (copy_decl_for_dup_finish): Ditto.
4632         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
4634 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
4636         PR target/53383
4637         * config/i386/i386.c (ix86_option_override_internal): Always
4638         allow -mpreferred-stack-boundary=3 for 64-bit targets.
4640 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
4642         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
4644 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
4646         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
4647         mark new edge's irreducible flag accordign to it.
4648         (vect_do_peeling): Check loop preheader edge's irreducible flag
4649         and pass it to function slpeel_add_loop_guard.
4651 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
4653         PR tree-optimization/80218
4654         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4655         Update block frequencies and counts.
4657 2017-03-28  Richard Biener  <rguenther@suse.de>
4659         PR tree-optimization/78644
4660         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
4661         of a simplification result we may not use it at all.
4663 2017-03-28  Richard Biener  <rguenther@suse.de>
4665         PR ipa/80205
4666         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
4667         without arguments, generate default definition of a SSA name.
4669 2017-03-28  Richard Biener  <rguenther@suse.de>
4671         PR middle-end/80222
4672         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
4673         TYPE_REF_CAN_ALIAS_ALL references.
4674         * fold-const.c (fold_indirect_ref_1): Likewise.
4676 2017-03-28  Martin Liska  <mliska@suse.cz>
4678         PR ipa/80104
4679         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
4680         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
4682 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
4683             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
4685         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
4686         (EXTRA_SPECS): Define.
4687         (SUBTARGET_EXTRA_SPECS): Likewise.
4688         (SUBTARGET_CPP_SPEC): Likewise.
4689         * config/arc/elf.h (EXTRA_SPECS): Renamed to
4690         SUBTARGET_EXTRA_SPECS.
4691         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
4693 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
4695         * config/arc/simdext.md (vst64_insn): Update pattern.
4696         (vld32wh_insn): Likewise.
4697         (vld32wl_insn): Likewise.
4698         (vld64_insn): Likewise.
4699         (vld32_insn): Likewise.
4701 2017-03-28  Marek Polacek  <polacek@redhat.com>
4703         PR sanitizer/80067
4704         * fold-const.c (fold_comparison): Use protected_set_expr_location
4705         instead of SET_EXPR_LOCATION.
4707 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
4709         * tree.c (add_expr): Avoid name lookup warning.
4711 2017-03-27  Jeff Law  <law@redhat.com>
4713         PR tree-optimization/80216
4714         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
4715         function name.  Limit recursion depth.
4716         (record_temporary_equivalences): Corresponding changes.
4718 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
4720         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
4721         covered first.
4723 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4725         PR target/80102
4726         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
4727         notes.
4728         * cfgcleanup.c (reg_note_cfa_p): New array.
4729         (insns_have_identical_cfa_notes): New function.
4730         (old_insns_match_p): Don't cross-jump in between /f
4731         and non-/f instructions.  If both i1 and i2 are frame related,
4732         verify all CFA notes, their order and content.
4734 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
4736         PR target/78543
4737         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
4738         HImode and SImode with zero extend to DImode to one insn.
4739         (bswap<mode>2_extenddi): Likewise.
4740         (bswapsi2_extenddi): Likewise.
4741         (bswaphi2_extendsi): Likewise.
4742         (bswaphi2): Combine bswap HImode and SImode into one insn.
4743         Separate memory insns from swapping register.
4744         (bswapsi2): Likewise.
4745         (bswap<mode>2): Likewise.
4746         (bswaphi2_internal): Delete, no longer used.
4747         (bswapsi2_internal): Likewise.
4748         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
4749         store, and gpr<-gpr swap insns.
4750         (bswap<mode>2_store): Likewise.
4751         (bswaphi2_reg): Register only splitter, combine with the splitter.
4752         (bswaphi2 splitter): Likewise.
4753         (bswapsi2_reg): Likewise.
4754         (bswapsi2 splitter): Likewise.
4755         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
4756         the insns into load, store, and register/register insns.
4757         (bswapdi2_ldbrx): Likewise.
4758         (bswapdi2_load): Likewise.
4759         (bswapdi2_store): Likewise.
4760         (bswapdi2_reg): Likewise.
4762 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
4764         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
4765         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
4767 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4769         PR target/80103
4770         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
4771         add comments.
4772         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4773         special handling for target option conflicts between dform
4774         options (-mpower9-dform, -mpower9-dform-vector,
4775         -mpower9-dform-scalar) and -mno-direct-move.
4777 2017-03-27  Richard Biener  <rguenther@suse.de>
4779         PR tree-optimization/80181
4780         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
4782 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4784         * config/arc/predicates.md (move_double_src_operand): Replace the
4785         call to move_double_src_operand with a call to address_operand.
4787 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4789         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
4790         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
4791         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
4793 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4795         * config/arc/predicates.md (long_immediate_loadstore_operand):
4796         Consider scaled addresses cases.
4798 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4800         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
4801         restored when in interrupt.
4802         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
4803         doesn't have delay slot.
4805 2017-03-27  Richard Biener  <rguenther@suse.de>
4807         PR ipa/79776
4808         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
4809         inlined thunk clones.
4811 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4813         PR sanitizer/80168
4814         * asan.c (instrument_derefs): Copy over last operand from
4815         original COMPONENT_REF to the new COMPONENT_REF with
4816         DECL_BIT_FIELD_REPRESENTATIVE.
4817         * ubsan.c (instrument_object_size): Likewise.
4819 2017-03-27  Richard Biener  <rguenther@suse.de>
4821         PR tree-optimization/80170
4822         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
4823         sure DR/SCEV didnt fold in constants we do not see when looking
4824         at the reference base alignment.
4826 2017-03-27  Richard Biener  <rguenther@suse.de>
4828         PR middle-end/80171
4829         * gimple-fold.c (fold_ctor_reference): Properly guard against
4830         NULL return value from canonicalize_constructor_val.
4832 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
4834         PR target/80180
4835         * config/i386/i386.c (ix86_expand_builtin)
4836         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
4837         flags reg setting and flags reg using instructions.
4838         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
4839         clobbering instructions to zero extend op2.
4841 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
4843         * doc/install.texi (Configuration) <--with-aix-soname>:
4844         Update link to AIX ld.
4846 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
4848         PR rtl-optimization/80160
4849         PR rtl-optimization/80159
4850         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
4851         reg_alternate_class into account.
4853 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
4855         PR target/80148
4856         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
4857         to consider in curr_insn_transform.
4859 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
4861         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
4862         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
4863         and emit_mode_inner.
4865 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4867         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
4868         argument to the overloaded builtin variants.  Use the new flag to
4869         deprecate certain builtin variants.
4870         * config/s390/s390-builtin-types.def: Add new builtin types.
4871         * config/s390/s390-builtins.h: Support new flags field for
4872         overloaded builtins.
4873         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
4874         (s390_macro_to_expand): Enable vector float data type.
4875         (s390_cpu_cpp_builtins_internal): Indicate support of the new
4876         builtins by incrementing the __VEC__ version number.
4877         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
4878         vec_xst.
4879         (s390_resolve_overloaded_builtin): Emit error messages depending
4880         on the builtin flags.
4881         * config/s390/s390.c (s390_expand_builtin): Support additional
4882         flags argument.  Change error message to match the messages
4883         emitted in s390-c.c.
4884         * config/s390/s390.md: New UNSPEC_* constants.
4885         (op_type): Add new instruction types.
4886         * config/s390/vecintrin.h: Add new builtins and test data class
4887         constants.
4888         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
4889         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
4890         (VEC_INEXACT, VEC_NOINEXACT): New constants.
4891         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
4892         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
4893         ("vec_mergel<mode>"): V_HW -> VEC_HW.
4895         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
4896         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
4897         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
4898         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
4900         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
4901         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
4902         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
4903         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
4905         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
4906         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
4907         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
4908         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
4909         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
4910         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
4911         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
4913         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
4914         ("vec_scatter_element<V_HW_4:mode>_DI")
4915         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
4916         ("vec_fpint<mode>", "vflls")
4917         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
4918         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
4919         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
4920         ("*vec_cmphe<mode>_cc"): ... these.
4922         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
4923         mode constant instead of magic value.
4925 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4927         * config/s390/s390.c (s390_expand_vec_compare): Support other
4928         vector floating point modes than just V2DF.
4929         (s390_expand_vcond): Likewise.
4930         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
4931         (s390_cannot_change_mode_class): Prevent mode changes between TF
4932         and V1TF in vector registers.
4933         * config/s390/s390.md (DF, SF): New mode attributes.
4934         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
4935         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
4936         SFmode support for VRs.
4937         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
4938         vector fp modes.
4939         (VFT, VF_HW): New mode iterators.
4940         (vw, sdx): New mode attributes.
4941         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
4942         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
4943         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
4944         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
4945         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
4946         also the new vector floating point modes.  Renaming to ...
4948         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
4949         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
4950         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
4951         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
4952         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
4953         ("vec_unordered<mode>"): ... these.
4955         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
4956         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
4957         ("*vec_extendv2df"): New insn definitions.
4959 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4961         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
4962         ("mulditi3_2", "*muldi3_sign"): New patterns.
4963         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
4964         rename the pattern definition.
4966 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4968         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
4969         expander.
4970         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
4972 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4974         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
4975         instruction if possible.
4976         * config/s390/vector.md (vec_halfnumelts): New mode
4977         attribute.
4978         ("*vec_vllezlf<mode>"): New pattern.
4980 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4982         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
4983         ("popcountv4si2", "popcountv2di2"): Rename to ...
4984         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
4985         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
4986         condition.
4987         ("popcount<mode>2_vxe"): New pattern.
4989 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4991         * common/config/s390/s390-common.c (processor_flags_table): Add
4992         arch12.
4993         * config.gcc: Add arch12.
4994         * config/s390/driver-native.c (s390_host_detect_local_cpu):
4995         Default to arch12 for unknown CPU model numbers.
4996         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
4997         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
4998         PROCESSOR_max sanity check.
4999         * config/s390/s390-opts.h (enum processor_type): Add
5000         PROCESSOR_ARCH12.
5001         * config/s390/s390.c (processor_table): Add arch12.
5002         (s390_expand_builtin): Add check for B_VXE flag.
5003         (s390_issue_rate): Add PROCESSOR_ARCH12.
5004         (s390_get_sched_attrmask): Likewise.
5005         (s390_get_unit_mask): Likewise.
5006         (s390_sched_score): Enable z13 scheduling for arch12.
5007         (s390_sched_reorder): Likewise.
5008         (s390_sched_variable_issue): Likewise.
5009         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
5010         PF_VXE.
5011         (s390_tune_attr): Use z13 scheduling also for arch12.
5012         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
5013         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
5014         (TARGET_VXE_P): New macros.
5015         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
5016         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
5017         * config/s390/s390.opt: Add arch12 as processor_type.
5019 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5021         * config/s390/s390.md
5022         ("fixuns_truncdddi2", "fixuns_trunctddi2")
5023         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
5024         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
5026         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
5027         Rename expanders to ...
5029         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
5030         ("fixuns_truncdddi2_emu"): ... these.
5032         ("fixuns_trunc<mode>si2_emu"): New expander.
5034         ("*fixuns_truncdfdi2_z13"): Rename to ...
5035         ("*fixuns_truncdfdi2_vx"): ... this.
5037 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5039         * config/s390/2964.md: Remove the single element vector compare
5040         instructions which are no longer used.
5041         * config/s390/s390.c (s390_select_ccmode): Remove handling of
5042         vector CCmodes.
5043         (s390_canonicalize_comparison): Remove handling of DFmode
5044         compares.
5045         (s390_expand_vec_compare_scalar): Remove function.
5046         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
5047         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
5048         pattern.
5049         ("*cmp<mode>_ccs"): Add wfcdb instruction.
5051 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5053         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
5054         FP zero.
5055         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
5056         will anyway by matched by mov<mode>_64dfp.
5058 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5060         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
5061         vlef/vstef.  Add missing operand to vleif.
5063 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5065         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
5066         pair for all vector types with 64 bit elements.
5067         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
5068         * config/s390/vector.md (V_HW_64): ... here.
5069         (V_128_NOSINGLE): New mode iterator.
5070         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
5071         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
5072         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
5073         ("*vec_load_pairv2di"): Change to ...
5074         ("*vec_load_pair<mode>"): ... this one.
5076 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5078         * config/s390/constraints.md: Add comments.
5079         (jKK): Reject element sizes > 8 bytes.
5080         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
5081         s_operands.
5082         * config/s390/s390.md: Add the s_operand checks formerly in
5083         s390_split_ok_p to various splitters where they are still
5084         required.
5085         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
5086         for 128 bit vectors.  Plus two splitters.
5088 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5090         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
5091         the file.
5093 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5095         PR target/79893
5096         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
5097         error if the boundary argument is not constant.
5099 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
5101         PR rtl-optimization/80112
5102         * loop-doloop.c (doloop_condition_get): Don't check condition
5103         if cmp isn't SET with IF_THEN_ELSE src.
5105 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5107         PR tree-optimization/80158
5108         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
5109         replacing a candidate statement, also replace it for the
5110         candidate's alternate interpretation.
5111         (replace_rhs_if_not_dup): Likewise.
5112         (replace_one_candidate): Likewise.
5114 2017-03-24  Richard Biener  <rguenther@suse.de>
5116         PR tree-optimization/80167
5117         * graphite-isl-ast-to-gimple.c
5118         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
5119         properly.
5120         (translate_isl_ast_to_gimple::get_rename): Likewise.
5122 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5124         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5125         handling of certain combinations of target options, including the
5126         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
5127         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
5129 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5131         PR target/71436
5132         * config/arm/arm.md (*load_multiple): Add reload_completed to
5133         matching condition.
5135 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5136             Richard Biener  <rguenth@suse.de>
5138         PR tree-optimization/79908
5139         PR tree-optimization/80136
5140         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5141         been cast away, gimplify_and_add suffices.
5143 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
5145         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
5147 2017-03-23  Richard Biener  <rguenther@suse.de>
5149         PR tree-optimization/80032
5150         * gimplify.c (gimple_push_cleanup): Forced unconditional
5151         cleanups still have to go to the conditional_cleanups
5152         sequence.
5154 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
5156         PR tree-optimization/80072
5157         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
5158         to unsigned int.
5159         (next_operand_entry_id): Change type to unsigned int.
5160         (sort_by_operand_rank): Make sure to return the right return value
5161         even if unsigned fields are bigger than INT_MAX.
5162         (struct oecount): Change cnt and id type to unsigned int.
5163         (oecount_hasher::equal): Formatting fix.
5164         (oecount_cmp): Make sure to return the right return value
5165         even if unsigned fields are bigger than INT_MAX.
5166         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
5168         PR c++/80129
5169         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
5170         TREE_READONLY on result if writing it more than once.
5172         PR sanitizer/80110
5173         * doc/invoke.texi (-fsanitize=thread): Document that with
5174         -fnon-call-exceptions atomics are not able to throw
5175         exceptions.
5177         PR sanitizer/80110
5178         * tsan.c: Include tree-eh.h.
5179         (instrument_builtin_call): Call maybe_clean_eh_stmt or
5180         maybe_clean_or_replace_eh_stmt where needed.
5181         (instrument_memory_accesses): Add cfg_changed argument.
5182         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
5183         if it returned true.
5184         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
5186         PR rtl-optimization/63191
5187         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
5188         wrapper function, moved the whole old content into ...
5189         (ix86_delegitimize_address_1): ... this.  New inline function.
5190         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
5191         true as last argument instead of ix86_delegitimize_address.
5193 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
5195         * config/aarch64/aarch64.c (generic_branch_cost): Copy
5196         cortexa57_branch_cost.
5198 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
5200         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
5202 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5204         PR target/80123
5205         * doc/md.texi (Constraints): Document wA constraint.
5206         * config/rs6000/constraints.md (wA): New.
5207         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
5208         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
5209         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
5210         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
5212 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
5214         PR c++/80029
5215         * gimplify.c (is_oacc_declared): New function.
5216         (oacc_default_clause): Use it to set default flags for acc declared
5217         variables inside parallel regions.
5218         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
5219         declared variables.
5220         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
5221         declare attribute to any decl as necessary.
5223 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5225         PR target/80082
5226         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
5227         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
5228         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
5229         (arm_arch_lpae): This.
5230         * config/arm/arm.c (arm_arch7ve): Rename into ...
5231         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
5232         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
5233         arm_arch_lpae.
5235 2017-03-22  Martin Liska  <mliska@suse.cz>
5237         PR target/79906
5238         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
5239         error message instead of an ICE.
5241 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5243         * doc/extend.texi (6.11 Additional Floating Types): Revise.
5245 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5247         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5248         comments.
5249         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5250         comments.
5252 2017-03-21  Martin Sebor  <msebor@redhat.com>
5254         * doc/extend.texi: Use "cannot" instead of "can't."
5255         * doc/hostconfig.texi: Same.
5256         * doc/install.texi: Same.
5257         * doc/invoke.texi: Same.
5258         * doc/loop.texi: Same.
5259         * doc/md.texi: Same.
5260         * doc/objc.texi: Same.
5261         * doc/rtl.texi: Same.
5262         * doc/tm.texi: Same.
5263         * doc/tm.texi.in: Same.
5264         * doc/trouble.texi: Same.
5266 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
5268         PR debug/63238
5269         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
5270         (collect_checksum_attributes): Set it.
5271         (die_checksum_ordered): Use it.
5273 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5275         PR tree-optimization/79908
5276         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
5277         change: For a VA_ARG whose LHS has been cast away, use
5278         force_gimple_operand to construct the side effects.
5280 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
5282         PR translation/80001
5283         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
5284         more amenable to translation.
5285         (oacc_loop_auto_partitions): Likewise.
5287 2017-03-21  Marek Polacek  <polacek@redhat.com>
5288             Martin Sebor  <msebor@redhat.com>
5290         PR tree-optimization/80109
5291         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
5292         on INTEGRAL_TYPE_P.
5294 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5295             Segher Boessenkool  <segher@kernel.crashing.org>
5297         PR target/80125
5298         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
5299         check reg_used_between_p between insn and one of succ or succ2
5300         depending on if succ is artificial insn not inserted into insn
5301         stream.
5303 2017-03-21  Martin Liska  <mliska@suse.cz>
5305         PR gcov-profile/80081
5306         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
5307         * doc/gcc.texi: Include gcov-dump stuff.
5308         * doc/gcov-dump.texi: New file.
5310 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
5312         PR rtl-optimization/79150
5313         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
5314         conditional jump, if the jump is the last insn of the loop.
5316 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5317             Richard Biener  <rguenth@suse.de>
5319         PR tree-optimization/79908
5320         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5321         been cast away, use force_gimple_operand to construct the side
5322         effects.
5324 2017-03-21  Martin Liska  <mliska@suse.cz>
5326         PR libfortran/79956
5327         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
5328         to NULL.
5330 2017-03-21  Brad Spengler <spender@grsecurity.net>
5332         PR plugins/80094
5333         * plugin.c (htab_hash_plugin): New function.
5334         (add_new_plugin): Use it and adjust.
5335         (parse_plugin_arg_opt): Adjust.
5336         (init_one_plugin): Likewise.
5338 2017-03-21  Richard Biener  <rguenther@suse.de>
5340         PR tree-optimization/80032
5341         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
5342         if set force the cleanup to happen unconditionally.
5343         (gimplify_target_expr): Push inserted clobbers with force_uncond
5344         to avoid them being removed by control-dependent DCE.
5346 2017-03-21  Richard Biener  <rguenther@suse.de>
5348         PR tree-optimization/80122
5349         * tree-inline.c (copy_bb): Do not expans va-arg packs or
5350         va_arg_pack_len when the inlined call stmt requires pack
5351         expansion itself.
5352         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
5354 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5356         PR sanitizer/78158
5357         * tsan.c (instrument_builtin_call): If the memory model argument
5358         is not a constant, assume it is valid.
5360         PR c/67338
5361         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
5362         avoid UB.
5364 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5366         PR rtl-optimization/79910
5367         * combine.c (can_combine_p): Do not allow combining an I0 or I1
5368         if its dest is used by an insn before I2 (other than the combined
5369         insns themselves, which are properly handled already).
5371 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5373         Revert:
5374         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5376         * combine.c (record_used_regs): New static function.
5377         (try_combine): Handle situations where there is an additional
5378         instruction between I2 and I3 which needs to have a LOG_LINK
5379         updated.
5381         Revert:
5382         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5384         * combine.c (try_combine): Delete redundant i1 test.  Call
5385         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5387 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5389         PR target/80083
5390         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
5391         alternatives 13/14.
5393 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5395         PR tree-optimization/80054
5396         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
5397         the optimization if a PHI or any of its arguments is not dominated
5398         by the candidate's basis.  Use gphi* rather than gimple* as
5399         appropriate.
5400         (replace_profitable_candidates): Clean up a gimple* variable that
5401         should be a gphi* variable.
5403 2017-03-20  Martin Sebor  <msebor@redhat.com>
5405         PR c++/52477
5406         * doc/extend.texi (attribute constructor): Document present limitation.
5408 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5410         PR target/79963
5411         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
5412         __POWER9_VECTOR__ #ifdef control, change template definition to
5413         use Power9-specific built-in function.
5414         (vec_any_eq): Likewise.
5415         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
5416         to control outcomes from this test.
5417         (vector_ae_<mode>p): For VEC_F modes, likewise.
5419 2017-03-20  Ian Lance Taylor  <iant@google.com>
5421         * config/i386/i386.c (ix86_function_regparm): Save an extra
5422         register for -fsplit-stack with DECL_STATIC_CHAIN.
5424 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5426         PR target/79912
5427         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
5428         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
5430 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5432         * config/riscv/riscv.c (riscv_print_operand): Use "fence
5433         iorw,ow".
5434         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
5435         iorw,iorw".
5437 2017-03-20  Marek Polacek  <polacek@redhat.com>
5439         PR sanitizer/80063
5440         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
5442 2017-03-20  Richard Biener  <rguenther@suse.de>
5444         PR tree-optimization/80113
5445         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
5446         allocate extra SSA name for PHI def.
5447         (add_close_phis_to_outer_loops): Likewise.
5448         (add_close_phis_to_merge_points): Likewise.
5449         (copy_loop_close_phi_args): Likewise.
5450         (copy_cond_phi_nodes): Likewise.
5452 2017-03-20  Martin Liska  <mliska@suse.cz>
5454         PR middle-end/79753
5455         * tree-chkp.c (chkp_build_returned_bound): Do not build
5456         returned bounds for a LHS that's not a BOUNDED_P type.
5458 2017-03-20  Martin Liska  <mliska@suse.cz>
5460         PR target/79769
5461         PR target/79770
5462         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
5463         COMPLEX_CST and VECTOR_CST.
5465 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5467         PR target/78857
5468         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
5469         target operand.  A new splitter adds the clobber statement in case
5470         the target operand is dead anyway.
5472 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
5474         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
5475         to age-old versions of binutils and glibc.
5477 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
5479         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
5481 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
5483         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
5485 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
5487         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
5488         requirement for binutils 2.13.
5490 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5492         * combine.c (try_combine): Delete redundant i1 test.  Call
5493         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5495 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
5497         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
5498         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
5499         contents.
5500         <riscv64-*-elf>: Re-arrange section
5501         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
5502         <riscv32-*-linux>: Likewise.
5503         <riscv64-*-elf>: Likewise
5504         <riscv64-*-linux>: Likewise.
5506 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
5508         PR target/80052
5509         * aarch64.opt(verbose-cost-dump): Fix typo.
5511 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
5513         PR target/79951
5514         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
5515         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
5517 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5519         * reload.c (find_reloads): When reloading a nonoffsettable address,
5520         use RELOAD_OTHER for it and its address reloads.
5522         PR rtl-optimization/79910
5523         * combine.c (record_used_regs): New static function.
5524         (try_combine): Handle situations where there is an additional
5525         instruction between I2 and I3 which needs to have a LOG_LINK
5526         updated.
5528 2017-03-17  Jeff Law  <law@redhat.com>
5530         PR tree-optimization/71437
5531         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
5532         conditional in the hash table first.
5533         (vrp_dom_walker::before_dom_children): Extract condition from
5534         ASSERT_EXPR.  Record condition, its inverion and any implied
5535         conditions as well.
5537 2017-03-17  Marek Polacek  <polacek@redhat.com>
5538             Markus Trippelsdorf  <markus@trippelsdorf.de>
5540         PR tree-optimization/80079
5541         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
5542         m_stores_head.
5544 2017-03-17  Richard Biener  <rguenther@suse.de>
5546         PR middle-end/80075
5547         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
5548         Properly verify the LHS before the RHS possibly claims to be
5549         handled.
5550         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
5551         do not throw.
5553 2017-03-17  Martin Jambor  <mjambor@suse.cz>
5555         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
5556         (List of -O2 options): Likewise.
5557         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
5558         (-fipa-vrp) New.
5560 2017-03-17  Tom de Vries  <tom@codesourcery.com>
5562         * gcov-dump.c (print_usage): Print bug_report_url.
5564 2017-03-17  Richard Biener  <rguenther@suse.de>
5566         PR middle-end/80050
5567         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
5568         (parser::peek): Likewise.
5570 2017-03-17  Richard Biener  <rguenther@suse.de>
5572         PR tree-optimization/80048
5573         * sese.c (free_sese_info): Properly release rename_map and
5574         copied_bb_map elements.
5576 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
5578         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
5579         Add linked-list forward and backlinks.  Insert on
5580         construction, remove on destruction.
5581         (class pass_store_merging): Add m_stores_head field.
5582         (pass_store_merging::terminate_and_process_all_chains):
5583         Iterate over m_stores_head list.
5584         (pass_store_merging::terminate_all_aliasing_chains):
5585         Likewise.
5586         (pass_store_merging::execute): Check for debug stmts first.
5587         Push new chains onto the m_stores_head stack.
5589 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
5591         PR target/71294
5592         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
5593         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
5594         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
5596 2017-03-16  Jeff Law  <law@redhat.com>
5598         PR tree-optimization/71437
5599         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
5600         member function.  Implementation moved into after_dom_children
5601         member function and into the threader's thread_outgoing_edges
5602         function.
5603         (dom_opt_dom_walker::after_dom_children): Simplify by moving
5604         some code into new thread_outgoing_edges.
5605         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
5606         definition.  Simplify marker handling (do it here).   Assume we always
5607         have the available expression and the const/copies tables.
5608         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
5609         and tree-vrp.c
5610         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
5611         * tree-vrp.c (equiv_stack): No longer file scoped.
5612         (vrp_dom_walker): New class.
5613         (vrp_dom_walker::before_dom_children): New member function.
5614         (vrp_dom_walker::after_dom_children): Likewise.
5615         (identify_jump_threads):  Setup domwalker.  Use it rather than
5616         walking edges in a random order by hand.  Simplify setup/finalization.
5617         (finalize_jump_threads): Remove.
5618         (vrp_finalize): Do not call identify_jump_threads here.
5619         (execute_vrp): Do it here instead and call thread_through_all_blocks
5620         here too.
5622         PR tree-optimization/71437
5623         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
5624         callers changed.
5625         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
5626         callers changed.
5627         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
5628         (dom_opt_dom_walker::thread_across_edge): Remove
5629         handle_dominating_asserts argument.  All callers changed.
5630         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
5631         changes.  Remove calls to lhs_of_dominating_assert.  Other
5632         uses of handle_dominating_asserts turn into unconditional code
5633         (simplify_control_stmt_condition_1): Likewise.
5634         (simplify_control_stmt_condition): Likewise.
5635         (thread_through_normal_block, thread_across_edge): Likewise.
5636         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
5637         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
5638         object if it is not an SSA_NAME.
5639         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
5640         before calling into the VRP specific simplifiers.
5641         (identify_jump_threads): Remove handle_dominating_asserts
5642         argument.
5644 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
5646         PR fortran/79886
5647         * tree-diagnostic.c (default_tree_printer): No longer static.
5648         * tree-diagnostic.h (default_tree_printer): New prototype.
5650 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
5652         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
5653         Change ins into fmov.
5655 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5657         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
5658         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
5659         Use h_con constraint for operand 1.
5660         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5661         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
5663 2017-03-15  Jeff Law  <law@redhat.com>
5665         PR tree-optimization/71437
5666         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
5667         (record_temporary_equivalences): Use it.
5669         PR tree-optimization/71437
5670         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
5671         tree-ssa-scopedtables.
5672         (lookup_avail_expr, build_and_record_new_cond): Likewise.
5673         (record_conditions, record_cond, vuse_eq): Likewise.
5674         (record_edge_info): Adjust to API tweak of record_conditions.
5675         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
5676         (record_temporary_equivalences, optimize_stmt): Likewise.
5677         (eliminate_redundant_computations): Likewise.
5678         (record_equivalences_from_stmt): Likewise.
5679         * tree-ssa-scopedtables.c: Include options.h and params.h.
5680         (vuse_eq): New function, moved from tree-ssa-dom.c
5681         (build_and_record_new_cond): Likewise.
5682         (record_conditions): Likewise.  Accept vector of conditions rather
5683         than edge_equivalence structure for first argument.
5684         for the first argument.
5685         (avail_exprs_stack::lookup_avail_expr): New member function, moved
5686         from tree-ssa-dom.c.
5687         (avail_exprs_stack::record_cond): Likewise.
5688         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
5689         from tree-ssa-dom.c.
5690         (avail_exprs_stack): Add new member functions lookup_avail_expr
5691         and record_cond.
5692         (record_conditions): Declare.
5694 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
5696         PR target/80017
5697         * lra-constraints.c (process_alt_operands): Increase reject for
5698         reloading an input/output operand.
5700 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5702         PR target/79038
5703         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
5704         insns to convert from signed/unsigned char/short to IEEE 128-bit
5705         floating point.
5706         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
5708 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
5710         PR target/80019
5711         * config/i386/i386.c (ix86_vector_duplicate_value): Create
5712         subreg of inner mode for values already in registers.
5714 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
5716         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
5717         iteration reg is used after the loop.
5719 2017-03-14  Martin Sebor  <msebor@redhat.com>
5721         PR tree-optimization/79800
5722         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
5723         precision in negative-positive range.
5724         (format_floating): Call non-const overload with adjusted precision.
5726 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5728         PR target/79947
5729         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
5730         -mpowerpc-gfxopt.
5732 2017-03-14  Martin Sebor  <msebor@redhat.com>
5734         PR middle-end/80020
5735         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
5736         * builtins.def (aligned_alloc): Use it.
5738         PR c/79936
5739         * Makefile.in (GTFILES): Add calls.c.
5740         * calls.c: Include "gt-calls.h".
5742 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
5744         PR rtl-optimization/79728
5745         * regs.h (struct target_regs): New field
5746         x_contains_allocatable_regs_of_mode.
5747         (contains_allocatable_regs_of_mode): New macro.
5748         * reginfo.c (init_reg_sets_1): Initialize it, and change
5749         contains_reg_of_mode so it includes global regs as well.
5750         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
5751         rather than contains_regs_of_mode.
5753 2017-03-14  Martin Liska  <mliska@suse.cz>
5755         * doc/invoke.texi: Document options that can't be combined with
5756         -fcheck-pointer-bounds.
5758 2017-03-14  Martin Liska  <mliska@suse.cz>
5760         PR middle-end/79831
5761         * doc/invoke.texi (-Wchkp): Document the option.
5763 2017-03-14  Martin Liska  <mliska@suse.cz>
5765         * Makefile.in: Install gcov-dump.
5767 2017-03-14  Martin Liska  <mliska@suse.cz>
5769         * multiple_target.c (expand_target_clones): Bail out for
5770         an invalid attribute.
5772 2017-03-14  Richard Biener  <rguenther@suse.de>
5774         * alias.c (struct alias_set_entry): Pack properly.
5775         * cfgloop.h (struct loop): Likewise.
5776         * cse.c (struct set): Likewise.
5777         * ipa-utils.c (struct searchc_env): Likewise.
5778         * loop-invariant.c (struct invariant): Likewise.
5779         * lra-remat.c (struct cand): Likewise.
5780         * recog.c (struct change_t): Likewise.
5781         * rtl.h (struct address_info): Likewise.
5782         * symbol-summary.h (function_summary): Likewise.
5783         * tree-loop-distribution.c (struct partition): Likewise.
5784         * tree-object-size.c (struct object_size_info): Likewise.
5785         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
5786         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
5787         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
5788         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
5789         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
5790         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
5791         (struct _stmt_vec_info): Likewise.
5793 2017-03-14  Martin Liska  <mliska@suse.cz>
5795         PR target/79892
5796         * multiple_target.c (create_dispatcher_calls): Check that
5797         a target can create a function dispatcher.
5799 2017-03-14  Martin Liska  <mliska@suse.cz>
5801         PR lto/66295
5802         * multiple_target.c (expand_target_clones): Drop local.local
5803         flag for default implementation.
5805 2017-03-14  Richard Biener  <rguenther@suse.de>
5807         PR tree-optimization/80030
5808         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
5810 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
5812         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
5813         gcc_fallthrough() instead of __attribute__((fallthrough));
5815 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
5817         * doc/gcc.texi: Remove "up" link to (DIR).
5818         * doc/gccint.texi: Ditto.
5820 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
5822         * doc/install.texi (Specific) <avr>: Remove reference to
5823         binutils 2.13.
5825 2017-03-13  Jeff Law  <law@redhat.com>
5827         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
5828         attribute rather than comments.
5830         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
5831         match_scratch operand is highest.
5833 2017-03-13  Martin Liska  <mliska@suse.cz>
5835         PR middle-end/78339
5836         * ipa-pure-const.c (warn_function_noreturn): If the declarations
5837         is a CHKP clone, use original declaration.
5839 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5841         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
5842         (arc_conditional_register_usage): Use a different allocation order
5843         when optimizing for size.
5844         * common/config/arc/arc-common.c (arc_option_optimization_table):
5845         Section anchors default on when optimizing for size.
5847 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5849         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
5851 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5853         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
5854         * config/arc/arc.md (cpu_facility): Add cd variant.
5855         (*movqi_insn): Add code density variant.
5856         (*movhi_insn): Likewise.
5857         (*movqi_insn): Likewise.
5858         (*addsi3_mixed): Likewise.
5859         (subsi3_insn): Likewise.
5861 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5863         * config/arc/arc.md (movsi_cond_exec): Update constraint.
5865 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5867         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
5868         expressions with MINUS and UNARY ops.
5870 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5872         PR target/79911
5873         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
5874         Rename to...
5875         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
5876         between vec_select and vector argument.
5877         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
5878         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
5879         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
5880         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
5881         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
5882         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
5884 2017-03-13  Richard Biener  <rguenther@suse.de>
5886         PR other/79991
5887         * params.def (vect-max-peeling-for-alignment): Fix typo.
5889 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5891         * doc/install.texi (Specific) <mips-*-*>: Remove description of
5892         issue that only occurred with binutils below 2.18.
5894 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5896         * doc/install.texi (Specific) <cris-axis-elf>: No longer
5897         refer to binutils 2.11/2.12 minimum.
5899 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5901         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
5902         ftp.kernel.org and simplify binutils requirement.
5904 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
5906         * doc/invoke.texi (Warning Options): Fix spelling of link-time
5907         optimization.
5908         (Optimize Options): Ditto.  Also remove redundancy.
5910 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5912         PR translation/79848
5913         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
5914         "%qs".
5915         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
5916         to G_ to avoid double translation.
5918 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5920         PR translation/79923
5921         * auto-profile.c (get_combined_location): Convert leading
5922         character of diagnostics to lower case and remove trailing period.
5923         (read_profile): Likewise for various diagnostics.
5924         * config/arm/arm.c (arm_option_override): Remove trailing period
5925         from various diagnostics.
5926         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
5927         (msp430_expand_delay_cycles): Likewise.
5929 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5931         PR target/79925
5932         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
5933         full command-line argument, rather than just "str".
5934         (aarch64_validate_march): Likewise.
5935         (aarch64_validate_mtune): Likewise.
5937 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
5939         PR rtl-optimization/78911
5940         * lra-assigns.c (must_not_spill_p): New function.
5941         (spill_for): Use it.
5943 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
5945         PR tree-optimization/79981
5946         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
5947         ATOMIC_COMPARE_EXCHANGE ifn result.
5948         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
5949         IFN_ATOMIC_COMPARE_EXCHANGE.
5951 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5953         PR driver/79875
5954         * opts.c (parse_sanitizer_options): Add missing question mark to
5955         "did you mean" message.
5957 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5959         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
5960         built-in.
5961         (VMULEUH_UNS): Likewise.
5962         (VMULOUB_UNS): Likewise.
5963         (VMULOUH_UNS): Likewise.
5964         * config/rs6000/rs6000.c (builtin_function_type): Remove
5965         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
5967 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5969         PR bootstrap/79952
5970         * read-rtl-function.c (function_reader::read_rtx_operand): Update
5971         x with result of extra_parsing_for_operand_code_0.
5972         (function_reader::extra_parsing_for_operand_code_0): Convert
5973         return type from void to rtx, returning x.  When reading
5974         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
5975         larger size containing struct block_symbol.
5977 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
5979         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
5980         -mfloat128-hardware without -m64.
5982 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
5984         PR target/79941
5985         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
5986         entries to the case statement that marks unsigned arguments to
5987         overloaded functions.
5989 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5991         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
5992         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
5994 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
5996         PR target/79907
5997         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
5998         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
6000 2017-03-10  Martin Liska  <mliska@suse.cz>
6002         PR target/65705
6003         PR target/69804
6004         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
6005         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
6006         FIELD != NULL.
6008 2017-03-10  Olivier Hainque  <hainque@adacore.com>
6010         * tree-switch-conversion (array_value_type): Start by resetting
6011         candidate type to it's main variant.
6013 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
6015         PR rtl-optimization/79909
6016         * combine.c (try_combine): Use simplify_replace_rtx on individual
6017         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
6018         of the whole CALL_INSN_FUNCTION_USAGE.
6020         PR tree-optimization/79972
6021         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
6022         get_range_info on SSA_NAMEs.  Formatting fixes.
6024 2017-03-10  Richard Biener  <rguenther@suse.de>
6025             Jakub Jelinek  <jakub@redhat.com>
6027         PR tree-optimization/77975
6028         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
6029         edge to be constant.
6030         (get_val_for): For constant x return it.  Formatting fix.
6031         (loop_niter_by_eval): Avoid pointless looping if the next iteration
6032         would use the same bases as the current one.
6034 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6036         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
6037         instead of vec_select for V1TImode.
6038         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
6039         longer needed.
6040         (VSX_LE_128): Add V1TI to this mode iterator.
6041         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
6042         (*vsx_le_perm_store_<mode>): Likewise.
6043         (pre-reload splitter for VSX stores): Likewise.
6044         (post-reload splitter for VSX stores): Likewise.
6045         (*vsx_xxpermdi2_le_<mode>): Likewise.
6046         (*vsx_lxvd2x2_le_<mode>): Likewise.
6047         (*vsx_stxvd2x2_le_<mode>): Likewise.
6049 2017-03-09  Michael Eager  <eager@eagercon.com>
6051         Correct failures with --enable-checking=yes,rtl.
6053         * config/microblaze/microblaze.c (microblaze_expand_shift):
6054         Replace GET_CODE test with CONST_INT_P and INTVAL test with
6055         test for const0_rtx.
6056         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
6057         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
6059 2017-03-09  Richard Biener  <rguenther@suse.de>
6061         PR tree-optimization/79977
6062         * graphite-scop-detection.c (scop_detection::merge_sese):
6063         Handle the case of extra exits to blocks dominating the entry.
6065 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
6067         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
6068         Document rdynamic.
6070 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
6072         PR rtl-optimization/79949
6073         * lra-constraints.c (process_alt_operands): Check memory when
6074         trying to predict a cycle.  Print about the overall increase.
6076 2017-03-09  Richard Biener  <rguenther@suse.de>
6078         PR middle-end/79971
6079         * gimple-expr.c (useless_type_conversion_p): Preserve
6080         TYPE_SATURATING for fixed-point types.
6082 2017-03-09  Richard Biener  <rguenther@suse.de>
6084         PR ipa/79970
6085         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
6086         alignment of BLKmode params.
6088 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6090         PR target/79913
6091         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
6092         (VALL_NO_V2Q): Likewise.
6093         (VDQF_DF): Delete.
6094         * config/aarch64/aarch64-simd.md
6095         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
6096         iterator.
6097         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
6098         VALL_NO_V2Q mode iterator.
6099         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
6101 2017-03-09  Martin Liska  <mliska@suse.cz>
6103         PR tree-optimization/79631
6104         * tree-chkp-opt.c (chkp_is_constant_addr): Call
6105         tree_int_cst_sign_bit just for INTEGER constants.
6107 2017-03-09  Martin Liska  <mliska@suse.cz>
6109         PR target/65705
6110         PR target/69804
6111         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
6112         sanitizers.
6114 2017-03-09  Marek Polacek  <polacek@redhat.com>
6116         PR c++/79672
6117         * tree.c (inchash::add_expr): Handle TREE_VEC.
6119 2017-03-09  Martin Liska  <mliska@suse.cz>
6121         PR ipa/79764
6122         (chkp_narrow_size_and_offset): New function.
6123         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
6124         (void chkp_parse_bit_field_ref): New function.
6125         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
6126         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
6128 2017-03-09  Martin Liska  <mliska@suse.cz>
6130         PR ipa/79761
6131         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
6132         (chkp_find_bounds_1): Remove gcc_unreachable.
6134 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
6136         PR sanitizer/79944
6137         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
6138         BUILT_IN_SYNC*, determine the access type from the size suffix and
6139         always build a MEM_REF with that type.  Handle forgotten
6140         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
6142         PR target/79932
6143         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
6144         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
6145         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
6146         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
6147         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
6148         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
6149         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
6150         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
6151         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
6152         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
6153         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
6154         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
6155         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
6156         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
6157         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
6158         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
6159         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
6160         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
6161         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
6162         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
6163         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
6164         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
6165         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
6166         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
6167         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
6168         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
6169         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
6170         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
6171         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
6172         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
6173         definitions outside of __OPTIMIZE__ guarded section.
6175         PR target/79932
6176         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
6177         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
6178         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
6179         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
6180         guarded section.
6182 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6184         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
6185         ("vfenez<mode>"): Add missing constraints.
6187 2017-03-08  Martin Sebor  <msebor@redhat.com>
6189         PR target/79928
6190         * config/nds32/nds32.c (nds32_option_override):
6191         Fix misspelled diagnostic.
6193 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6195         PR c/79940
6196         * gimplify.c (gimplify_omp_for): Replace index var in outer
6197         taskloop statement with an artificial variable and add
6198         OMP_CLAUSE_PRIVATE clause for it.
6200 2017-03-08  Richard Biener  <rguenther@suse.de>
6202         PR tree-optimization/79955
6203         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6204         for accesses that are completely outside of the variable.
6206 2017-03-08  Andrew Haley  <aph@redhat.com>
6208         PR tree-optimization/79943
6209         * tree-ssa-loop-split.c (compute_new_first_bound): When
6210         calculating the new upper bound, (END-BEG) should be added, not
6211         subtracted.
6213 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6215         * config/avr/avr.md (setmemhi): Make sure match_dup
6216         operand number comes before match_scratch.
6218 2017-03-08  Richard Biener  <rguenther@suse.de>
6220         PR tree-optimization/79920
6221         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
6222         with ncopies == 1 to ...
6223         (vect_transform_slp_perm_load): ... here.  Properly compute
6224         all element loads by iterating VF times over the group.  Do
6225         not handle ncopies (computed in a broken way) in
6226         vect_create_mask_and_perm.
6228 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6230         PR sanitizer/79904
6231         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
6232         is a uniform vector, use uniform_vector_p return value instead of
6233         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
6235 2017-03-07  Marek Polacek  <polacek@redhat.com>
6237         PR middle-end/79809
6238         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
6239         (alloca_call_type): Likewise.
6241 2017-03-07  Martin Liska  <mliska@suse.cz>
6243         * gcov.c (process_args): Put comment to correct location.
6245 2017-03-07  Martin Liska  <mliska@suse.cz>
6247         PR middle-end/68270
6248         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
6249         Use array_at_struct_end_p instead of DECL_CHAIN (field).
6250         (chkp_narrow_bounds_for_field): Likewise.
6251         (chkp_parse_array_and_component_ref): Pass one more argument to
6252         call.
6254 2017-03-07  Richard Biener  <rguenther@suse.de>
6256         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
6257         preheaders.
6259 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
6261         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
6262         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
6264 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6266         PR c/79855
6267         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
6268         to end of description.
6269         (PARAM_MAX_STORES_TO_MERGE): Likewise.
6271 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
6273         PR rtl-optimization/79901
6274         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
6275         ...
6276         (*avx512f_<code><mode>3<mask_name>): ... this.
6277         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
6278         iterator instead of VI8_AVX2_AVX512BW.
6280         PR rtl-optimization/79901
6281         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
6282         min/max expander, expand it using expand_vec_cond_expr.
6284         PR sanitizer/79897
6285         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
6286         temporary.
6288 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6290         PR c++/79821
6291         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
6292         to void * for PCH reasons.
6293         * dwarf2out.c (output_loc_operands, output_die): Cast
6294         v.val_vec.array to unsigned char *.
6296 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
6298         PR target/77850
6299         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
6300         vector types.
6302 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
6304         PR rtl-optimization/79571
6305         * lra-constraints.c (process_alt_operands): Calculate static
6306         reject and subtract it from overall when only addresses will be
6307         reloaded.
6309 2017-03-06  Julia Koval  <julia.koval@intel.com>
6311         PR target/79793
6312         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
6313         incoming stack boundary to 128 for 64-bit targets.
6315 2017-03-06  Richard Biener  <rguenther@suse.de>
6317         PR tree-optimization/79894
6318         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
6319         to NULL after folding it.
6321 2017-03-06  Richard Biener  <rguenther@suse.de>
6323         PR tree-optimization/79824
6324         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
6325         check disabling peeling for gaps.
6327 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
6329         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6330         attributes): Document gettimeofday.
6332 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6334         * config/s390/s390.c (s390_option_override_internal): Set
6335         PARAM_MIN_VECT_LOOP_BOUND
6337 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6339         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
6340         * config/s390/s390.md: Likewise.
6342 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6344         PR target/79812
6345         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
6346         (<avx2_avx512>_perm<mode>): Rename to ...
6347         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
6348         of VI8F_256_512.
6349         (<avx512>_perm<mode>_mask): Rename to ...
6350         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
6351         of VI8F_256_512.
6352         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
6353         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
6354         instead of VI8F_256_512.
6355         (avx512f_perm<mode>): New define_expand.
6356         (avx512f_perm<mode>_mask): Likewise.
6357         (avx512f_perm<mode>_1<mask_name>): New define_insn.
6358         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
6360 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6362         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
6363         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
6364         if_then_else.
6365         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
6367 2017-03-06  Martin Liska  <mliska@suse.cz>
6369         PR sanitize/79783
6370         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
6371         when having a SSA NAME w/o VAR_DECL assigned to it.
6373 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6375         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
6376         msa_dpsub_<su>_d): Fix MODE for vec_select.
6378 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6380         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
6381         argument.
6382         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
6384 2017-03-06  Richard Biener  <rguenther@suse.de>
6386         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
6387         * plugin.c (register_plugin_info): Likewise.
6388         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
6390 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
6392         * config/i386/sse.md (sse_storehps, sse_storelps,
6393         avx_<castmode><avxsizesuffix>_<castmode>,
6394         avx512f_<castmode><avxsizesuffix>_<castmode>,
6395         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
6396         in condition that at least one operand is not a MEM.
6398 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6400         PR middle-end/79805
6401         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
6402         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
6403         ECF_NOTHROW.
6404         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
6405         gimple_call_nothrow_p flag based on whether original builtin can throw.
6406         If it can, emit following stmts on the fallthrough edge.
6407         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
6408         don't create new bb if inserting just debug stmts on the edge, try to
6409         insert them on the fallthru bb or just reset debug stmts.
6411 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
6413         PR target/43763
6414         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
6415         restore recog_data (including the operand rtxes inside it) around
6416         the call to get_insn_template.
6418 2017-03-03  Martin Sebor  <msebor@redhat.com>
6420         PR tree-optimization/79699
6421         * context.c (context::~context): Free MPFR caches to avoid
6422         a memory leak on program exit.
6424 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6426         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
6427         Use wide_int::ulow () instead of .elt (0).
6429 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6431         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
6432         (*pushxf): Limit oF constraint to 32bit targets and add oC
6433         constraint for 64bit targets.
6434         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
6435         (*pushdf): Change rmF constraint to rmC.
6437 2017-03-03  Martin Liska  <mliska@suse.cz>
6439         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
6440         Remove unused variable.
6442 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6444         PR target/79807
6445         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
6446         is a memory operand, increase num_memory.
6447         (ix86_expand_args_builtin): Likewise.
6449 2017-03-03  Jan Hubicka  <jh@suse.cz>
6451         PR lto/79760
6452         * ipa-devirt.c (maybe_record_node): Properly handle
6453         __cxa_pure_virtual visibility.
6455 2017-03-03  Martin Liska  <mliska@suse.cz>
6457         PR tree-optimization/79803
6458         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
6459         assert.
6460         (pass_loop_prefetch::execute): Disabled optimization if an
6461         assumption about L1 cache size is not met.
6463 2017-03-03  Martin Liska  <mliska@suse.cz>
6465         PR rtl-optimization/79574
6466         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
6467         (hash_scan_set): Likewise.
6468         (dump_hash_table): Likewise.
6469         (hoist_code): Likewise.
6471 2017-03-03  Richard Biener  <rguenther@suse.de>
6473         * fixed-value.c (fixed_from_string): Restore use of elt (1)
6474         in place of uhigh ().
6475         (fixed_convert_from_real): Likewise.
6477 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6479         PR target/79514
6480         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
6482 2017-03-03  Richard Biener  <rguenther@suse.de>
6484         PR middle-end/79818
6485         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
6486         TYPE_OVERFLOW_UNDEFINED check.
6488 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6490         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
6491         numbers.
6492         (vector_ae_<mode>_p): Likewise.
6493         (vector_nez_<mode>_p): Likewise.
6494         (vector_ne_v2di_p): Likewise.
6495         (vector_ae_v2di_p): Likewise.
6496         (vector_ne_<mode>_p): Likewise.
6497         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
6498         numbers.
6499         (vsx_tsqrt<mode>2_fe): Likewise.
6501 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
6503         PR target/79514
6504         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
6506 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
6508         PR rtl-optimization/79780
6509         * cprop.c (one_cprop_pass): When second and further conditional trap
6510         in a single basic block is turned into an unconditional trap, turn it
6511         into a deleted note to avoid RTL verification failures.
6513 2017-03-02  Richard Biener  <rguenther@suse.de>
6515         * fold-const.c (const_binop): Use ulow () instead of elt (0).
6517 2017-03-02  Richard Biener  <rguenther@suse.de>
6519         PR tree-optimization/79345
6520         PR c++/42000
6521         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
6522         param and abort the walk, returning -1 if it is hit.
6523         (walk_aliased_vdefs): Take a limit param and pass it on.
6524         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
6525         defaulting to 0 and return a signed int.
6526         * tree-ssa-uninit.c (struct check_defs_data): New struct.
6527         (check_defs): New helper.
6528         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
6529         about uninitialized memory.
6530         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
6531         bogus uninitialized warning.
6532         (fixed_convert_from_real): Likewise.
6534 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
6536         PR tree-optimization/66768
6537         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
6538         iv_use if base object can't be determined.
6540 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
6542         PR tree-optimization/79345
6543         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
6544         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
6545         (get_pattern_stats): Initialize it.
6546         * genemit.c (gen_expand): Verify match_scratch numbers come after
6547         match_operand/match_dup numbers.
6548         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
6549         match_scratch numbers.
6550         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
6551         Likewise.
6552         * config/s390/s390.md (trunctdsd2): Likewise.
6554 2017-03-02  Richard Biener  <rguenther@suse.de>
6556         * wide-int.h (wide_int_storage::operator=): Implement in terms
6557         of wi::copy.
6559 2017-03-02  Richard Biener  <rguenther@suse.de>
6561         PR tree-optimization/79777
6562         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
6563         the to insert expression to sth existing.
6565 2017-03-01  Martin Sebor  <msebor@redhat.com>
6567         PR middle-end/79692
6568         * gimple-ssa-sprintf.c
6569         (directive::known_width_and_precision): New function.
6570         (format_integer): Use it.
6571         (get_mpfr_format_length): Consider the full range of precision
6572         when computing %g output with the # flag.  Set the likely byte
6573         count to 3 rather than 1 when precision is indeterminate.
6574         (format_floating): Correct the lower bound of precision.
6576 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6578         * doc/invoke.texi: Document default code model for 64-bit Linux.
6580 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6582         PR target/79752
6583         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
6584         udiv rather than div since input pattern is unsigned.
6586 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
6588         * config/i386/i386.c (print_reg): Warn for values of
6589         unsupported size in integer register.
6591 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6593         PR target/79439
6594         * config/rs6000/predicates.md (current_file_function_operand): Do
6595         not allow self calls to be local if the function is replaceable.
6597 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6599         PR target/79395
6600         * config/rs6000/altivec.h (vec_ctz and others): Change the
6601         preprocessor macro that controls conditional compilation from
6602         _ARCH_PWR9 to __POWER9_VECTOR__.
6603         (vec_all_ne): Change parameterization of __altivec_scalar_pred
6604         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
6605         control (instead of _ARCH_PWR9 control) so that template
6606         definition uses power9-specific function.
6607         (vec_any_eq): Likewise.
6608         (vec_all_ne): Change macro definition to use a power9-specific
6609         expansion under #ifdef __POWER9_VECTOR__ control (instead of
6610         _ARCH_PWR9 control).
6611         (vec_any_eq) Likewise.
6612         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
6613         expansion for CMPNEF to remove support for xvcmpnesp instruction.
6614         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
6615         support for xvcmpnedp instruction.
6616         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
6617         macro expansion so that Power9 implementation of vec_all_ne does
6618         not use the AltiVec predicate framework.
6619         (VCMPNEH_P): Likewise.
6620         (VCMPNEW_P): Likewise.
6621         (VCMPNED_P): Likewise.
6622         (VCMPNEFP_P): Likewise.
6623         (VCMPNEDP_P): Likewise.
6624         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
6625         implementation of vec_any_eq to not use AltiVec predicate
6626         framework.
6627         (VCMPAEH_P): Likewise.
6628         (VCMPAEW_P): Likewise.
6629         (VCMPAED_P): Likewise.
6630         (VCMPAEFP_P): Likewise.
6631         (VCMPAEDP_P): Likewise.
6632         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
6633         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
6634         not use the AltiVec predicate framework.
6635         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
6636         of vec_any_eq to not use AltiVec predicate framework.
6637         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6638         support for predefined __POWER9_VECTOR__ macro to indicate that
6639         Power9 instruction selection is enabled.
6640         (altivec_overloaded_builtins): Remove extraneous
6641         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
6642         function argument types RS6000_BTI_bool_V16QI and
6643         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
6644         entry for overloaded function argument types RS6000_BTI_bool_V4SI
6645         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
6646         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
6647         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
6648         Power9 for implementations of vec_cmpne.  Change the signature for
6649         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
6650         (representing vec_all_ne) to remove the previously described first
6651         argument of type RS6000_BTI_INTSI, as this was an artifact of
6652         reliance on the AltiVec predicate framework, which is no longer
6653         used in the implementation of these functions.  Add
6654         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
6655         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
6656         since, unlike the AltiVec predicate framework implementation, we
6657         do not share function descriptors between vec_alle and vec_anyeq.
6658         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
6659         set of modes that receive special treatment even when
6660         TARGET_P9_VECTOR is true.  The special treatment emits code that
6661         does not depend on Power9 instructions.
6662         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
6663         define_expand to not rely on AltiVec predicate framework.
6664         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6665         function.
6666         (vector_ne_v2di_p): Change this define_expand to not rely on
6667         AltiVec predicate framework.
6668         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
6669         function.
6670         (vector_ne_<mode>_p): Change this define_expand to not rely on
6671         AltiVec predicate framework.
6672         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6673         function.
6674         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
6675         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
6676         define_insn pattern.
6677         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
6678         define_insn pattern because the xvcmpne<VSs>. instruction is not
6679         supported.
6680         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
6681         instruction is not supported.
6683 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6685         * config/nvptx/nvptx.c: Include intl.h.
6687 2017-03-01  Martin Jambor  <mjambor@suse.cz>
6689         PR lto/78140
6690         * ipa-prop.h (ipa_bits): Removed field known.
6691         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
6692         to pointers.  Adjusted their comments to warn about their sharing.
6693         (ipcp_transformation_summary): Change bits to a vector of pointers.
6694         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
6695         (ipa_get_ipa_bits_for_value): Declare.
6696         * tree-vrp.h (value_range): Mark as GTY((for_user)).
6697         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
6698         (ipa_bits_hash_table): Likewise.
6699         (ipa_vr_ggc_hash_traits): Likewise.
6700         (ipa_vr_hash_table): Likewise.
6701         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
6702         being pointers and vr_known being removed.
6703         (ipa_set_jf_unknown): Likewise.
6704         (ipa_get_ipa_bits_for_value): New function.
6705         (ipa_set_jfunc_bits): Likewise.
6706         (ipa_get_value_range): New overloaded functions.
6707         (ipa_set_jfunc_vr): Likewise.
6708         (ipa_compute_jump_functions_for_edge): Use the above functions to
6709         construct bits and vr parts of jump functions.
6710         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
6711         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6712         exist.
6713         (ipcp_grow_transformations_if_necessary): Also allocate
6714         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6715         exist.
6716         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
6717         them.  Fix too long lines.
6718         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
6719         vr_known being removed.
6720         (ipa_read_jump_function): Use new setter functions to construct bits
6721         and vr parts of jump functions or set them to NULL.
6722         (write_ipcp_transformation_info): Adjust for bits being pointers.
6723         (read_ipcp_transformation_info): Likewise.
6724         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
6725         space.
6726         Include gt-ipa-prop.h.
6727         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
6728         being pointers.
6729         (ipcp_store_bits_results): Likewise.
6730         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
6731         Do not write to existing jump functions but use a temporary instead.
6733 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6735         PR c++/79681
6736         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
6737         attempt to use its first operand as BIT_FIELD_REF base.
6739 2017-03-01  Richard Biener  <rguenther@suse.de>
6741         PR middle-end/79721
6742         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
6743         interpolating formula in wrapping arithmetic.
6744         (chrec_apply): Convert chrec_evaluate return value to wanted type.
6746 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6748         PR tree-optimization/79734
6749         * tree-vect-generic.c (expand_vector_condition): Optimize
6750         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
6751         Handle VEC_COND_EXPR where comparison has different inner width from
6752         type's inner width.
6754 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
6756         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
6757         markup, and similar issues.  Remove @opindex entries for things
6758         that aren't options.  Add missing -mmpy-option entries.
6760 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6762         PR tree-optimization/79737
6763         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
6764         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
6765         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
6766         instead of byte_size.  Formatting fix.
6767         (shift_bytes_in_array_right): Formatting fix.
6769 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6771         PR target/79749
6772         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
6773         condition on optimize for the leaf function test.
6775 2017-02-28  Martin Liska  <mliska@suse.cz>
6777         PR lto/79625
6778         * read-rtl-function.c (function_reader::handle_unknown_directive):
6779         Bail out when one uses -flto.
6781 2017-02-28  Martin Liska  <mliska@suse.cz>
6783         * common.opt: Replace space with tabular for options of <number>
6784         type.
6785         * config/i386/i386.opt: Show <number> value for
6786         -mlarge-data-threshold.
6787         * opts.c (print_filtered_help): Do not display number in hexadecimal
6788         format.
6790 2017-02-28  Martin Liska  <mliska@suse.cz>
6792         * common.opt: Fix --help=option -Q for options which are of
6793         an enum type.
6795 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
6797         * config/i386/i386.c (print_reg): Error out for values
6798         of 8-bit size in invalid integer register.
6800 2017-02-28  Martin Sebor  <msebor@redhat.com>
6802         PR tree-optimization/79691
6803         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
6805 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6807         PR target/79729
6808         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
6809         gcc_unreachable with output_operand_lossage.
6811 2017-02-28  Richard Biener  <rguenther@suse.de>
6813         PR tree-optimization/79740
6814         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
6815         inserts.
6816         (visit_nary_op): Insert the nary into the hashtable if we
6817         pattern-matched sth.
6818         * tree-ssa-pre.c (eliminate_insert): Robustify.
6820 2017-02-28  Richard Biener  <rguenther@suse.de>
6822         PR middle-end/79731
6823         * fold-const.c (decode_field_reference): Reject out-of-bound
6824         accesses.
6826 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6828         * config/i386/i386.c: Include intl.h.
6829         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
6830         instead of just cond ? "..." : "...".
6831         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
6832         * coverage.c (read_counts_file): Likewise.
6833         * omp-offload.c: Include intl.h.
6834         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
6835         of just cond ? "..." : "...".
6836         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
6837         of just cond ? "..." : "...".
6839 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
6841         PR target/79742
6842         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
6843         entry, if present.
6844         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
6845         'tune for' CPU name.
6846         * config/arm/arm-cpu-data.h: Regenerated.
6848 2017-02-28  Richard Biener  <rguenther@suse.de>
6850         PR tree-optimization/79732
6851         * tree-inline.c (expand_call_inline): Do not shadow var.
6853 2017-02-28  Richard Biener  <rguenther@suse.de>
6855         PR tree-optimization/79723
6856         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
6857         address-space properly.
6859 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
6861         * doc/optinfo.texi (Optimization groups): Fix option used for
6862         OPTGROUP_ALL.
6863         * doc/invoke.texi (-fopt-info): Document "omp".
6864         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
6865         (OPTGROUP_ALL): Add OPTGROUP_OMP.
6866         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
6867         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
6868         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
6870         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
6871         all users.
6872         * dumpfile.c (optgroup_options): Instead of "openmp", associate
6873         OPTGROUP_OMP with "omp".
6875 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
6877         PR target/79544
6878         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
6879         for arithmetic shift of unsigned V2DI.
6881 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
6883         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
6884         arc/linux.h headers.
6885         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
6886         (LINK_SPEC): Likewise.
6887         (ARC_TLS_EXTRA_START_SPEC): Likewise.
6888         (EXTRA_SPECS): Likewise.
6889         (STARTFILE_SPEC): Likewise.
6890         (ENDFILE_SPEC): Likewise.
6891         (LIB_SPEC): Likewise.
6892         (TARGET_SDATA_DEFAULT): Likewise.
6893         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
6894         (MULTILIB_DEFAULTS): Likewise.
6895         (DWARF2_UNWIND_INFO): Likewise.
6896         * config/arc/big.h: New file.
6897         * config/arc/elf.h: Likewise.
6898         * config/arc/linux.h: Likewise.
6899         * config/arc/t-uClibc: Remove.
6901 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
6903         PR tree-optimization/77536
6904         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
6905         (tree_transform_and_unroll_loop): Use above function to compute the
6906         estimated niter of unrolled loop and use it when scaling profile.
6907         Also use count info rather than frequency if it's non-zero.
6908         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
6909         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
6910         (vect_transform_loop): Call above function.
6912 2017-02-27  Richard Biener  <rguenther@suse.de>
6914         PR tree-optimization/45397
6915         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
6916         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
6917         (visit_nary_op): Add pattern matching for CSEing sign-changed
6918         or truncated operations with wider ones.
6920 2017-02-27  Richard Biener  <rguenther@suse.de>
6922         PR tree-optimization/79690
6923         * tree-vect-stmts.c (vectorizable_store): Use vector type
6924         built from the DR with address-space.
6926 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6928         * doc/invoke.texi (Optimize Options): Refine the description
6929         of asan-use-after-return.
6931 2017-02-25  Alan Modra  <amodra@gmail.com>
6933         PR rtl-optimization/79584
6934         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
6935         base, not ad->base_term, the reg within base.  Remove assertion
6936         that ad->base == ad->base_term.  Replace gen_int_mode using
6937         bogus mode with const0_rtx.
6939 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
6941         PR middle-end/79396
6942         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
6943         FMA_EXPR like tcc_binary or tcc_unary.
6945         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
6947         PR debug/77589
6948         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
6949         bitfield.
6950         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
6951         (output_loc_operands): Handle DW_OP_call_ref and
6952         DW_OP_GNU_variable_value.
6953         (struct variable_value_struct): New type.
6954         (struct variable_value_hasher): Likewise.
6955         (variable_value_hash): New variable.
6956         (string_types): Remove.
6957         (copy_loc_descr): New function.
6958         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
6959         (prepend_loc_descr_to_each): New function.
6960         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
6961         instead of add_loc_descr_to_each if the first argument is single
6962         location list and the second has multiple.
6963         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
6964         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
6965         when looking for variable value which doesn't have other location info.
6966         (loc_list_from_tree): Formatting fix.
6967         (gen_array_type_die): Simplify DW_AT_string_length handling.
6968         (adjust_string_types): Remove.
6969         (gen_subprogram_die): Don't call adjust_string_types nor test/set
6970         string_types.  Call resolve_variable_values.
6971         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
6972         (resolve_addr_in_expr): Likewise.  Add A argument.
6973         (copy_deref_exprloc): Remove deref argument.  Adjust for the
6974         original expression being DW_OP_GNU_variable_value with optionally
6975         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
6976         optionally after it.
6977         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
6978         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
6979         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
6980         (variable_value_hasher::hash, variable_value_hasher::equal): New
6981         methods.
6982         (resolve_variable_value_in_expr, resolve_variable_value,
6983         resolve_variable_values, note_variable_value_in_expr,
6984         note_variable_value): New functions.
6985         (dwarf2out_early_finish): Call note_variable_value on all toplevel
6986         DIEs.
6988 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
6990         PR c/79677
6991         * opts.h (handle_generated_option): Add GENERATED_P argument.
6992         * opts-common.c (handle_option): Adjust function comment.
6993         (handle_generated_option): Add GENERATED_P argument, pass it to
6994         handle_option.
6995         (control_warning_option): Pass false to handle_generated_option
6996         GENERATED_P.
6997         * opts.c (maybe_default_option): Pass true to handle_generated_option
6998         GENERATED_P.
6999         * optc-gen.awk: Likewise.
7001 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7003         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
7004         a REG, look at the REG it is a SUBREG of.
7005         (splitter for cmpeqsi_t): Ditto.
7007 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7009         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
7010         the special USEs with the pattern of the insn, not the insn itself.
7012 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
7014         PR target/79473
7015         * doc/invoke.texi: Document -mload-store-pairs.
7017 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7018             Sandra Loosemore  <sandra@codesourcery.com>
7020         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
7021         argument isn't a CONST_INT.
7022         (nios2_alternate_compare_const): Assert op is a CONST_INT.
7023         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
7024         (nios2_validate_compare): Bypass alternate compare logic if *op2
7025         is not a CONST_INT.
7026         (ldstwm_operation_p): Return false if first_base is not a REG or
7027         if first_offset is not a CONST_INT.
7029 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7031         * config/cris/cris.md: Use correct operand in a define_peephole2.
7033 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7035         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
7037 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7039         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
7040         this_insn if it is an INSN or JUMP_INSN.
7041         (force_offsettable): Look at base, not at addr.
7042         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
7043         on things that aren't necessarily CONST_INTs.
7045 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
7047         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
7048         -mfpmath=sse is the default also for x86-32 targets with SSE2
7049         instruction set when @option{-ffast-math} is enabled
7051 2017-02-24  Jeff Law  <law@redhat.com>
7053         PR rtl-optimizatoin/79286
7054         * ira.c (update_equiv_regs): Drop may_trap_p exception to
7055         dominance test.
7057 2017-02-24  Richard Biener  <rguenther@suse.de>
7059         PR tree-optimization/79389
7060         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
7061         debug insns.
7063 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
7065         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
7066         function comment to reflect reality.
7067         (loop_exits_before_overflow): Fix typo in function description.
7069 2017-02-24  Richard Biener  <rguenther@suse.de>
7071         PR tree-optimization/79389
7072         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
7073         properly that a threading opportunity exists.  Detect conditional
7074         copy/constant propagation opportunities.
7076 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
7078         * config/visium/visium.md (type): Add trap.
7079         (b): New mode attribute.
7080         (*btst): Rename into...
7081         (*btst<mode>): ...this and adjust.
7082         (*cbranchsi4_btst_insn): Rename into...
7083         (*cbranch<mode>4_btst_insn): ...this and adjust.
7084         (trap): New define_insn.
7086 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
7088         PR tree-optimization/79389
7089         * ifcvt.c (struct noce_if_info): Add rev_cond field.
7090         (noce_reversed_cond_code): New function.
7091         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
7092         reversed_comparison_code.  Formatting fix.
7093         (noce_try_store_flag): Test rev_cond != NULL in addition to
7094         reversed_comparison_code.
7095         (noce_try_store_flag_constants): Likewise.
7096         (noce_try_store_flag_mask): Likewise.
7097         (noce_try_addcc): Use rev_cond if non-NULL instead of
7098         reversed_comparison_code.
7099         (noce_try_cmove_arith): Likewise.  Formatting fixes.
7100         (noce_try_minmax, noce_try_abs): Clear rev_cond.
7101         (noce_find_if_block): Initialize rev_cond.
7102         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
7103         instead of false as last argument never attempt to reverse it
7104         afterwards.
7106 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
7108         PR tree-optimization/79663
7109         * tree-predcom.c (combine_chains): Process refs in reverse order
7110         only for ZERO length chains, and add explaining comment.
7112 2017-02-23  Jeff Law  <law@redhat.com>
7114         PR tree-optimization/79578
7115         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
7116         in call to operand_equal_p.
7118 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
7120         PR target/71017
7121         * config/i386/cpuid.h: Fix another undefined behavior.
7123 2017-02-23  Richard Biener  <rguenther@suse.de>
7125         PR tree-optimization/79683
7126         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
7127         vector types for data-refs.
7129 2017-02-23  Martin Liska  <mliska@suse.cz>
7131         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
7133 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
7135         PR middle-end/79665
7136         * internal-fn.c (get_range_pos_neg): Moved to ...
7137         * tree.c (get_range_pos_neg): ... here.  No longer static.
7138         * tree.h (get_range_pos_neg): New prototype.
7139         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
7140         are known to be in between 0 and signed maximum inclusive, try to
7141         expand both unsigned and signed divmod and use the cheaper one from
7142         those.
7144 2017-02-22  Jeff Law  <law@redhat.com>
7146         PR tree-optimization/79578
7147         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
7148         to compare base operands.
7150 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
7152         PR target/79211
7153         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
7154         gpc_reg_operand instead of fpr_reg_operand.
7156 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
7158         * config/mips/mips.c (mips_return_in_memory): Force FP
7159         vector types to be returned in memory for o32 ABI.
7161 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
7163         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
7164         instead of DW_TAG_member for static data member declarations and don't
7165         set no_linkage_name for static inline data members.
7166         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
7167         to DW_TAG_member.
7169 2017-02-22  Martin Liska  <mliska@suse.cz>
7171         * doc/invoke.texi: Replace inequality signs with square brackets
7172         for -Wnormalized.
7174 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7176         PR tree-optimization/68644
7177         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
7179 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
7181         PR target/78660
7182         * lra-constraints.c (simplify_operand_subreg): Handle
7183         WORD_REGISTER_OPERATIONS targets.
7185 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
7187         PR target/70465
7188         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
7189         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
7190         elimination by swapping fld*.
7192 2017-02-22  Richard Biener  <rguenther@suse.de>
7194         PR tree-optimization/79673
7195         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
7196         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
7197         irrelevant address-space qualifiers and avoiding a
7198         ADDR_SPACE_CONVERT_EXPR from fold_convert.
7200 2017-02-22  Richard Biener  <rguenther@suse.de>
7202         PR tree-optimization/79666
7203         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
7204         to not symbolically negate if that may introduce undefined
7205         overflow.
7207 2017-02-22  Martin Liska  <mliska@suse.cz>
7209         PR lto/79587
7210         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
7211         * data-streamer-out.c (streamer_write_gcov_count_stream):
7212         Likewise.
7213         * value-prof.c (stream_out_histogram_value): Make assert more
7214         precise based on type of counter.
7216 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
7218         PR target/79593
7219         * config/i386/i386.md (standard_x87sse_constant_load splitter):
7220         Use nonimmediate_operand instead of memory_operand for operand 1.
7221         (float-extend standard_x87sse_constant_load splitter): Ditto.
7223 2017-02-21  Jeff Law  <law@redhat.com>
7225         PR tree-optimization/79621
7226         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
7227         blocks with edges to themselves.
7229 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7231         PR target/79633
7232         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
7233         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
7234         Use gimple_call_builtin_p.
7236         PR target/79570
7237         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
7238         on temporarily removed DEBUG_INSNs.
7240         PR tree-optimization/79649
7241         * tree-loop-distribution.c (classify_partition): Give up on
7242         non-generic address space loads/stores.
7244 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
7246         * doc/loop.texi (Loop manipulation): Remove nonexistent
7247         tree_ssa_loop_version from the documentation.
7248         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
7250 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7252         PR target/79494
7253         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
7254         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
7255         * config/rs6000/rs6000.c: Include except.h.
7256         (rs6000_expand_split_stack_prologue): Call
7257         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
7259 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7261         PR lto/79579
7262         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
7263         have been analyzed.
7265 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7267         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
7268         for backward compatibility only.
7269         * doc/invoke.texi (Option Summary): Remove all references to
7270         -fipa-cp-alignment.
7272 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
7274         PR target/78660
7275         Revert:
7276         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7278         * lra-constraints.c (curr_insn_transform): Handle
7279         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7281 2017-02-21  Martin Liska  <mliska@suse.cz>
7283         * config/i386/i386.opt: Replace -masm-dialect with -masm.
7285 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
7287         PR translation/79638
7288         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
7290 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
7292         PR ada/67205
7293         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7294         (arm_function_ok_for_sibcall): Return false for an indirect call by
7295         descriptor if all the argument registers are used.
7296         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
7297         alignment of the function.
7299 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7301         PR tree-optimization/61441
7302         * simplify-rtx.c (simplify_const_unary_operation): For
7303         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
7304         the sNaN unmodified.
7306 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7308         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7309         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7310         instead of SYSTEM_HEADER_DIR.
7312 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
7313             Martin LiÅ¡ka  <mliska@suse.cz>
7315         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
7316         Fix typos and grammar, use active voice, and clarify.
7318 2017-02-20  Marek Polacek  <polacek@redhat.com>
7320         PR middle-end/79537
7321         * gimplify.c (gimplify_expr): Handle unused *&&L;.
7323         PR sanitizer/79558
7324         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
7326 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
7328         PR target/79568
7329         * config/i386/i386.c (ix86_expand_builtin): Handle
7330         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
7331         ix86_builtins_isa[fcode].isa as a requirement of those
7332         flags and any other flag in the bitmask.
7333         (ix86_init_mmx_sse_builtins): Use 0 instead of
7334         ~OPTION_MASK_ISA_64BIT as mask.
7335         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
7336         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
7337         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
7338         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
7340 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7342         PR target/78012
7343         * lra-constraints.c (split_reg): Check requested split mode
7344         is supported by the register.
7346 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7348         * lra-constraints.c (simplify_operand_subreg): Remove early
7349         return false.
7351 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7353         PR target/78660
7354         * lra-constraints.c (curr_insn_transform): Tighten condition
7355         for converting SUBREG reloads from OP_OUT to OP_INOUT.
7357 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7359         PR target/78660
7360         * lra-constraints.c (curr_insn_transform): Handle
7361         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7363 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
7365         Revert:
7366         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
7368         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7370 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
7372         PR c++/69523
7373         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
7374         description.
7376 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7378         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
7379         for FMA_EXPR.
7381 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
7383         * final.c (last_columnnum, override_columnnum): New variables.
7384         (final_start_function): Set last_columnnum, pass it to begin_prologue
7385         hook and pass 0 to dwarf2out_begin_prologue.
7386         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
7387         to source_line debug hook.
7388         (notice_source_line): Compute last_columnnum and for debug_column_info
7389         return true on column changes.
7390         * debug.h (struct gcc_debug_hooks): Add column argument to
7391         source_line and begin_prologue hooks.
7392         (debug_nothing_int_charstar_int_bool): Remove prototype.
7393         (debug_nothing_int_int_charstar,
7394         debug_nothing_int_int_charstar_int_bool): New prototypes.
7395         (dwarf2out_begin_prologue): Add column argument.
7396         * debug.c (do_nothing_debug_hooks): Adjust source_line and
7397         begin_prologue hooks.
7398         (debug_nothing_int_charstar_int_bool): Remove.
7399         (debug_nothing_int_int_charstar,
7400         debug_nothing_int_int_charstar_int_bool): New functions.
7401         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
7402         through to dwarf2out_source_line.
7403         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
7404         (dwarf2out_source_line): Add column argument, emit it if requested.
7405         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
7406         arguments.
7407         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7408         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7409         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
7410         through to dwarf2out_begin_prologue.
7411         (vmsdbgout_source_line): Add column argument, pass it through to
7412         dwarf2out_source_line.
7413         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
7414         dbxout_source_line caller.
7415         (dbxout_source_line): Add column argument.
7417         * common.opt (gno-column-info, gcolumn-info): New options.
7418         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
7419         (check_die): Also test for multiple DW_AT_decl_column attributes.
7420         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
7421         DW_AT_decl_column if requested.
7422         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
7423         if requested.
7424         (gen_variable_die): Likewise.
7425         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
7426         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
7428         PR target/79569
7429         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
7430         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
7431         (ix86_handle_option): Handle OPT_m3dnowa.
7432         * doc/invoke.texi (-m3dnowa): Document.
7433         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
7434         -m3dnowa instead of -m3dnow -march=athlon.
7436         PR target/79559
7437         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
7438         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
7440 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7442         PR target/79261
7443         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
7444         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
7445         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
7446         generator for vsx_xxpermdi_<mode>_be.
7447         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
7448         force big-endian semantics.
7449         (vsx_xxpermdi_<mode>_be): New define_expand with same
7450         implementation as previous version of vsx_xxpermdi_<mode>.
7452 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
7454         PR tree-optimization/79327
7455         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
7456         variable, its initialization and use.
7458 2017-02-17  Julia Koval  <julia.koval@intel.com>
7460         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
7461         (OPTION_MASK_ISA_PKU_UNSET): New.
7462         (ix86_handle_option): Handle -mrdpid.
7463         * config/i386/cpuid.h (bit_RDPID): New.
7464         * config/i386/driver-i386.c (host_detect_local_cpu):
7465         Detect RDPID feature.
7466         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
7467         * config/i386/i386-c.c (ix86_target_macros_internal):
7468         Handle RDPID flag.
7469         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
7470         (ix86_valid_target_attribute_inner_p): Add "rdpid".
7471         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
7472         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
7473         * config/i386/i386.md (define_insn "rdpid"): New.
7474         * config/i386/i386.opt Add -mrdpid.
7475         * config/i386/immintrin.h (_rdpid_u32): New.
7477 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
7479         PR rtl-optimization/79541
7480         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
7481         instead of transforming it into USE.
7483 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
7485         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
7486         If HONOR_SNANS (SFmode) force the input to a register.
7487         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
7488         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
7489         an frsp or similar insn.
7491 2017-02-17  Martin Liska  <mliska@suse.cz>
7493         PR rtl-optimization/79577
7494         * params.def (selsched-max-sched-times): Increase minimum to 1.
7496 2017-02-17  Martin Liska  <mliska@suse.cz>
7498         PR rtl-optimization/79574
7499         * gcse.c (want_to_gcse_p): Prevent integer overflow.
7501 2017-02-17  Martin Liska  <mliska@suse.cz>
7503         PR tree-optimization/79529
7504         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
7505         ssa_defined_default_def_p to handle cases which are implicitly
7506         defined.
7507         * tree-ssa.c (ssa_defined_default_def_p): New function.
7508         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
7509         which are implicitly defined.
7510         * tree-ssa.h (ssa_defined_default_def_p): Declare.
7512 2017-02-17  Richard Biener  <rguenther@suse.de>
7514         PR middle-end/79576
7515         * params.def (max-ssa-name-query-depth): Limit to 10.
7517 2017-02-17  Richard Biener  <rguenther@suse.de>
7519         PR tree-optimization/79552
7520         * tree-ssa-structalias.c (visit_loadstore): Properly verify
7521         default defs.
7523 2017-02-17  Richard Biener  <rguenther@suse.de>
7525         PR bootstrap/79567
7526         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
7528 2017-02-17  Marek Polacek  <polacek@redhat.com>
7530         PR middle-end/79536
7531         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
7532         (fold_negate_expr): New wrapper.
7534 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
7536         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
7537         Correct terminology and de-emphasize pre-standard behavior.
7539 2017-02-16  Alan Modra  <amodra@gmail.com>
7541         PR rtl-optimization/79286
7542         * ira.c (def_dominates_uses): New function.
7543         (update_equiv_regs): Don't create an equivalence for insns that
7544         may trap where the register def does not dominate the use.
7546 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
7548         PR rtl-optimization/78127
7549         * lra.c (lra): Call lra_eliminate before finish the loop after
7550         lra_constraint.
7552 2017-02-16  Richard Biener  <rguenther@suse.de>
7554         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
7555         isl/isl_val.h.
7556         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
7557         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
7558         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
7559         (isl_val_int_from_wi): New function.
7560         (extract_affine_gmp): Rename to ...
7561         (extract_affine_wi): ... this, take a widest_int.
7562         (extract_affine_int): Just wrap extract_affine_wi.
7563         (add_param_constraints): Use isl_val_int_from_wi.
7564         (add_loop_constraints): Likewise, and extract_affine_wi.
7566 2017-02-15  Jeff Law  <law@redhat.com>
7568         PR middle-end/79521
7569         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
7570         ira_init_register_move_cost_if_necessary.
7572 2017-02-15  Martin Sebor  <msebor@redhat.com>
7574         PR middle-end/32003
7575         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
7576         removed in a prior commit.
7578 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
7580         PR tree-optimization/79347
7581         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
7582         counters during peeling.
7584 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
7586         * Makefile.in (site.exp): Remove "set ISLVER".
7588 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
7590         PR target/79487
7591         * real.c (real_from_integer): Call real_convert even for decimal.
7593 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7595         PR target/79421
7596         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7598 2017-02-14  Andrew Pinski  <apinski@cavium.com>
7600         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
7601         cores and change the partno/implementer to be correct.
7602         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
7603         the 'B" as the implementer.
7604         * config/aarch64/aarch64-tune.md: Regenerate.
7606 2017-02-14  Carl Love  <cel@us.ibm.com>
7608         * config/rs6000/rs6000.c: Add case statement entry to make the
7609         xvcvuxdsp built-in argument unsigned.
7610         * config/rs6000/vsx.md: Fix the source and return operand types so they
7611         match the instruction definitions from the ISA document.  Fix typo
7612         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
7613         statement.
7615 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
7617         PR target/79282
7618         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
7619         member early_clobber_alts.
7620         * lra-lives.c (reg_early_clobber_p): New.
7621         (process_bb_lives): Use it.
7622         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
7623         (debug_operand_data): Initialize early_clobber_alts.
7624         (setup_operand_alternative): Set up early_clobber_alts.
7625         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
7626         alternatives to new_insn_reg.
7627         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
7628         it.
7629         (lra_update_insn_regno_info): Pass the new arg.
7631 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
7633         PR middle-end/79505
7634         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
7635         (new_oacc_loop_raw): Don't clear already cleared fields.
7637         PR target/79481
7638         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
7639         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
7640         _mm512_prefetch_i64gather_ps): New inline functions and macros.
7642 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
7644         PR target/79495
7645         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
7647 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
7649         PR target/79498
7650         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
7651         the extra instruction to the right place to store 128-bit constant
7652         when needed.
7654 2017-02-14  Martin Sebor  <msebor@redhat.com>
7656         PR middle-end/79448
7657         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
7658           warning for strings of unknown length.
7660 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
7662         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
7664 2017-02-14  Jeff Law  <law@redhat.com>
7666         PR target/79404
7667         * ira-costs.c (scan_one_insn): Initialize register move costs
7668         for pseudos seen in USE/CLOBBER insns.
7670         PR tree-optimization/79095
7671         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
7672         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
7673         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
7674         if the operands are known to be not equal, then the resulting range
7675         is ~[0,0].
7676         (intersect_ranges): If the new range is ~[0,0] and the old range is
7677         wide, then prefer ~[0,0].
7678         * tree-vrp.c (overflow_comparison_p_1): New function.
7679         (overflow_comparison_p): New function.
7680         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
7681         if NAME is used in an overflow test.
7682         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
7683         overflow check that can be expressed as an equality test, then adjust
7684         ops to be that equality test.
7686 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7688         * config/s390/s390-builtin-types.def: Remove flags argument.
7689         * config/s390/s390.c (s390_init_builtins): Likewise.
7691 2017-02-14  Martin Liska  <mliska@suse.cz>
7693         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
7694         vector.  Fix trailing white spaces.
7696 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
7698         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
7699         HFmode.
7701 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7703         PR rtl-optimization/68664
7704         * config/arm/arm.c (arm_sched_can_speculate_insn):
7705         New function.  Declare prototype.
7706         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7708 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7710         PR rtl-optimization/68664
7711         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
7712         New function.
7713         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7715 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
7717         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
7718         max skip bytes for function, loop and jump.
7720 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7722         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
7723         ABS_EXPR for gimple dump.
7725 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
7727         PR target/79462
7728         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
7730         PR tree-optimization/79408
7731         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
7732         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
7733         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
7734         also if rhs1 is INTEGER_CST.
7736 2017-02-14  Richard Biener  <rguenther@suse.de>
7738         PR middle-end/79432
7739         * tree-into-ssa.c (insert_phi_nodes): When the function can
7740         have abnormal edges rewrite SSA names with broken use-def
7741         dominance out of SSA and register them for PHI insertion.
7743 2017-02-13  Martin Sebor  <msebor@redhat.com>
7745         PR middle-end/79496
7746         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
7747         clearing info.nowrite flag when snprintf size argument is a range.
7749 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
7751         * cprop.c (cprop_jump): Add missing space in string literal.
7752         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7753         (get_constraint_for_component_ref): Likewise.
7754         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7755         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
7756         * lra-constraints.c (process_alt_operands): Likewise.
7757         * ipa-inline.c (inline_small_functions): Likewise.
7758         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
7759         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7760         * trans-mem.c (diagnose_tm_1_op): Likewise.
7761         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
7762         (grid_parallel_clauses_gridifiable): Likewise.
7764         * config/nvptx/mkoffload.c (process): Add space in between
7765         , and %d.
7767         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
7768         "MOD4_SSE_REGS" and "ALL_REGS".
7770         * spellcheck.c (test_data): Add , in between "foo" and "food".
7772 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7774         PR target/79449
7775         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
7776         boundary crossing check and subsequent code generation agree.
7778 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7780         * config/aarch64/aarch64.c (has_memory_op): Delete.
7781         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
7782         has_memory_op.
7784 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
7786         PR rtl-optimization/79388
7787         PR rtl-optimization/79450
7788         * combine.c (distribute_notes): When removing TEM_INSN for which
7789         corresponding dest has last value recorded, invalidate that last
7790         value.
7792 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7794         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
7795         of explicit '@'.  Add missing assembly comment marker on branch costs
7796         printout.
7798 2017-02-13  Nathan Sidwell  <nathan@acm.org>
7800         * gengtype-lex.l (<in_struct>): Add '/'.
7802 2017-02-13  Martin Liska  <mliska@suse.cz>
7804         PR c/79471
7805         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
7807 2017-02-13  Richard Biener  <rguenther@suse.de>
7809         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
7810         Remove.
7811         * configure: Re-generate.
7812         * config.in: Likewise.
7813         * graphite-dependences.c: Simplify as if
7814         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
7815         * graphite-isl-ast-to-gimple.c: Likewise.
7816         * graphite-optimize-isl.c: Likewise.
7817         * graphite-poly.c: Likewise.
7818         * graphite-sese-to-poly.c: Likewise.
7819         * graphite.h: Likewise.
7820         * toplev.c: Include isl/version.h and use isl_version () for
7821         printing the ISL version.
7822         * doc/install.texi: Update ISL requirement.
7824 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
7826         * doc/standards.texi (Standards): Update reference to
7827         Objective-C 2.0.
7829 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
7831         * doc/extend.texi (Named Address Spaces): sourceware.org now
7832         defaults to https.
7833         * doc/install.texi (Binaries): Ditto.
7834         (Specific): Ditto.
7836 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
7838         * doc/cpp.texi: Replace "stringify"/"stringification" with C
7839         standard terminology "stringize"/"stringizing" throughout.
7840         * doc/cppinternals.texi: Likewise.
7842 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
7844         * doc/extend.texi: Fix some spelling mistakes and typos.
7845         * doc/invoke.texi: Likewise.
7847 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
7849         PR ipa/79224
7850         * params.def (inline-min-speedup) Change from 10 to 8.
7852 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
7854         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
7855         4.5.
7857 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
7859         PR ipa/79224
7860         * ipa-inline-analysis.c (get_minimal_bb): New function.
7861         (record_modified): Use it.
7862         (remap_edge_change_prob): Handle also ancestor functions.
7864 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
7866         * doc/contrib.texi (Contributors): Remove broken link into
7867         the Mauve CVS repository.
7869 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
7871         PR middle-end/79454
7872         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
7873         result computation whenever lhs doesn't have vector mode, not
7874         just when it has BLKmode.
7876 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
7878         * doc/makefile.texi (profiledbootstrap): Refer to the
7879         installation instructions only in textual form.
7881 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7883         PR target/79295
7884         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
7886 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
7888         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
7889         (Specific): Update mingw-w64 reference.
7890         (Binaries): Ditto.
7891         (Specific): Remove broken link to Renesas RX processor.
7893 2017-02-10  Richard Biener  <rguenther@suse.de>
7895         * toplev.c (process_options): Do not mention obsolete graphite
7896         options when printing sorry message about missing graphite support.
7897         Mention -floop-nest-optimize.
7899 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
7901         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
7902         (vtst_p16): Likewise.
7903         (vtstq_p8): Likewise.
7904         (vtstq_p16): Likewise.
7905         (vtst_p64): New.
7906         (vtstq_p64): Likewise.
7907         * config/arm/arm_neon.h (vgetq_lane_p64): New.
7908         (vset_lane_p64): New.
7909         (vsetq_lane_p64): New.
7911 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
7913         PR tree-optimization/79411
7914         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
7915         stmt operands are SSA_NAMEs used in abnormal phis.
7916         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
7917         phis.
7919 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
7921         PR ipa/70795
7922         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
7923         flag if needed.
7925 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
7927         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
7929 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7931         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
7932         to avoid warning.
7934         PR c/79413
7935         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
7936         not arbitrary TREE_CONSTANT.
7938         PR c/79431
7939         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
7940         "omp declare target link" attribute unless is_global_var.
7941         * omp-offload.c (find_link_var_op): Likewise.
7943 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7944             Chung-Lin Tang  <cltang@codesourcery.com>
7946         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
7947         OMP_CLAUSE_TILE.
7948         (gimplify_adjust_omp_clauses): Don't delete TILE.
7949         (gimplify_omp_for): Deal with TILE.
7950         * internal-fn.c (expand_GOACC_TILE): New function.
7951         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
7952         (GOACC_TILE): New.
7953         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
7954         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
7955         element fields.
7956         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
7957         avoid DIV for outermost collapse var.
7958         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
7959         Remove out of date comments, fix whitespace.
7960         * omp-general.c (omp_extract_for_data): Deal with tiling.
7961         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
7962         adjust OLF_DIM_BASE value.
7963         (struct omp_for_data): Add tiling field.
7964         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
7965         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
7966         for auto loops.  Remove default auto determining, moved to
7967         oacc_loop_fixed_partitions.
7968         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
7969         stmts, add e_mask field.
7970         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
7971         (oacc_thread_numbers): Use oacc_dim_call.
7972         (oacc_xform_tile): New.
7973         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
7974         (finish_oacc_loop): Adjust for ifns vector.
7975         (oacc_loop_discover_walk): Append loop abstraction sites to list,
7976         add case for GOACC_TILE fns.
7977         (oacc_loop_xform_loop): Delete.
7978         (oacc_loop_process): Iterate over call list directly, and add
7979         handling for GOACC_TILE fns.
7980         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
7981         dump partitioning.
7982         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
7983         vector partitioning to outer loops.  Assign 2 partitions to loops
7984         when available. Add TILE handling.
7985         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
7986         (execite_oacc_device_lower): Process GOACC_TILE fns,
7987         ignore unknown specs.
7988         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
7989         * tree.c (omp_clause_num_ops): Adjust TILE ops.
7990         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
7992 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
7994         * configure.ac (ACX_BUGURL): Update.
7995         * configure: Regenerate.
7997 2017-02-09  Richard Biener  <rguenther@suse.de>
7999         PR tree-optimization/69823
8000         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8001         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
8003 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
8005         * config/arc/arc-c.def: Add __NPS400__ definition.
8006         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
8007         (TARGET_NPS400): Define.
8009 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
8011         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
8012         file.
8013         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
8014         pointer, arch_info.
8015         (arc_cpu_types): Fill the arch_info field with a pointer into the
8016         arc_arch_types table.
8017         (arc_selected_cpu): Declare.
8018         * config/arc/arc.c (arc_selected_cpu): Make global.
8019         (arc_selected_arch): Delete.
8020         (arc_base_cpu): Delete.
8021         (arc_override_options): Remove references to deleted variables,
8022         update access to arch information.
8023         (ARC_OPT): Update access to arch information.
8024         (ARC_OPTX): Likewise.
8025         * config/arc/arc.h (arc_base_cpu): Remove declaration.
8026         (TARGET_ARC600): Update access to arch information.
8027         (TARGET_ARC601): Likewise.
8028         (TARGET_ARC700): Likewise.
8029         (TARGET_EM): Likewise.
8030         (TARGET_HS): Likewise.
8031         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
8032         information.
8034 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
8036         PR target/78604
8037         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
8038         condition/operands for integer GE/LE/GEU/LEU operations.
8040 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
8042         PR translation/79397
8043         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
8044         of AltiVec.
8046 2017-02-08  Martin Jambor  <mjambor@suse.cz>
8048         PR ipa/79375
8049         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
8050         whether allocation happened.
8051         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
8052         nothing was allocated.
8054 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
8056         PR tree-optimization/79408
8057         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
8058         constant, but SSA_NAME with a known integer range, use the minimum
8059         of that range instead of op1 to determine if modulo can be replaced
8060         with its first operand.
8062 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8064         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
8066 2017-02-08  Richard Biener  <rguenther@suse.de>
8068         PR tree-optimization/71824
8069         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8070         Check all loops contained in the merged region.
8072 2017-02-07  Andrew Pinski  <apinski@cavium.com>
8074         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
8076 2017-02-07  Andrew Pinski  <apinski@cavium.com>
8078         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
8079         (thunderxt88): Likewise.
8080         (thunderxt81): Disable LSE and change v8.1 to v8.
8081         (thunderxt83): Likewise.
8083 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
8084             Richard Biener  <rguenther@suse.de>
8086         PR middle-end/79399
8087         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
8088         type from int to size_t.
8089         * ira-costs.c (struct_costs_size): Change type from int to size_t.
8091 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
8093         PR rtl-optimization/79386
8094         * cprop.c (bypass_conditional_jumps): Initialize
8095         bypass_last_basic_block already before splitting bbs after
8096         unconditional traps...
8097         (bypass_conditional_jumps): ... rather than here.
8099         PR target/79299
8100         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
8101         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
8102         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
8103         fix -masm=intel patterns.
8105 2017-02-07  Richard Biener  <rguenther@suse.de>
8107         PR tree-optimization/79256
8108         PR middle-end/79278
8109         * builtins.c (get_object_alignment_2): Use min_align_of_type
8110         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
8111         and ADJUST_FIELD_ALIGN.
8113         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
8114         type parameter.
8115         * doc/tm.texi: Regenerate.
8116         * stor-layout.c (layout_decl): Adjust.
8117         (update_alignment_for_field): Likewise.
8118         (place_field): Likewise.
8119         (min_align_of_type): Likewise.
8120         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
8121         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
8122         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
8123         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
8124         * config/frv/frv.c (frv_adjust_field_align): Likewise.
8125         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
8126         * config/i386/i386.c (x86_field_alignment): Likewise.
8127         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8128         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
8129         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8130         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8131         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
8132         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8133          Likewise.
8135         Revert
8136         2017-01-30  Richard Biener  <rguenther@suse.de>
8138         PR tree-optimization/79256
8139         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8140         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8141         alignment on TYPE.
8143 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
8145         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
8146         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
8147         builtins to SImode and emit a zero-extend, if necessary.
8149 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8151         * docs/invoke.texi (RISC-V Options): Alphabetize.
8153 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8155         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
8156         options.
8158 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8160         * config/riscv/riscv.c: New file.
8161         * gcc/common/config/riscv/riscv-common.c: Likewise.
8162         * config.gcc: Likewise.
8163         * config/riscv/constraints.md: Likewise.
8164         * config/riscv/elf.h: Likewise.
8165         * config/riscv/generic.md: Likewise.
8166         * config/riscv/linux.h: Likewise.
8167         * config/riscv/multilib-generator: Likewise.
8168         * config/riscv/peephole.md: Likewise.
8169         * config/riscv/pic.md: Likewise.
8170         * config/riscv/predicates.md: Likewise.
8171         * config/riscv/riscv-builtins.c: Likewise.
8172         * config/riscv/riscv-c.c: Likewise.
8173         * config/riscv/riscv-ftypes.def: Likewise.
8174         * config/riscv/riscv-modes.def: Likewise.
8175         * config/riscv/riscv-opts.h: Likewise.
8176         * config/riscv/riscv-protos.h: Likewise.
8177         * config/riscv/riscv.h: Likewise.
8178         * config/riscv/riscv.md: Likewise.
8179         * config/riscv/riscv.opt: Likewise.
8180         * config/riscv/sync.md: Likewise.
8181         * config/riscv/t-elf-multilib: Likewise.
8182         * config/riscv/t-linux: Likewise.
8183         * config/riscv/t-linux-multilib: Likewise.
8184         * config/riscv/t-riscv: Likewise.
8185         * configure.ac: Likewise.
8186         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
8187         Waterman as RISC-V maintainers.
8188         * doc/install.texi: Add RISC-V entries.
8189         * doc/invoke.texi: Add RISC-V options section.
8190         * doc/md.texi: Add RISC-V constraints section.
8191         * configure: Regenerated.
8193 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8195         PR target/66144
8196         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
8197         false values to be constant vectors with all 0 or all 1 bits set.
8198         (vcondu<mode><mode>): Likewise.
8199         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
8200         predicate.
8201         (fpmask_comparison_operator): Update comment.
8202         (vecint_comparison_operator): New predicate.
8203         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
8204         vector conditionals when the true and false values are constant
8205         vectors with all 0 bits or all 1 bits set.
8207 2017-02-06  Martin Sebor  <msebor@redhat.com>
8209         PR  tree-optimization/79376
8210         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
8212 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
8214         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
8215         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
8216         to simplify split condition.
8218 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8220         * omp-expand.c (oxpand_omp_atomic_fetch_op,
8221         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
8222         false.
8224 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
8226         PR rtl-optimization/68664
8227         * target.def (can_speculate_insn): New hook.
8228         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
8229         * doc/tm.texi: Regenerate.
8230         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
8231         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
8232         (rs6000_sched_can_speculate_insn): New function.
8234 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8236         PR tree-optimization/79284
8237         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
8238         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
8239         vectorizable_mask_load_store, vectorizable_operation,
8240         vect_is_simple_cond, get_same_sized_vectype): Use it instead
8241         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
8242         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
8243         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
8244         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8245         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8246         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
8247         is_gimple_assign (stmt).  Replace another such test with
8248         is_gimple_assign (stmt).
8250 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8252         PR target/78883
8253         * config/avr/avr.c (rtl-iter.h): Include it.
8254         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
8255         (avr_legitimate_combined_insn): ...and implementation.
8257 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8259         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
8260         * config/s390/s390.c (s390_const_operand_ok)
8261         (s390_canonicalize_comparison, s390_extract_part)
8262         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
8263         (s390_contiguous_bitmask_p, s390_rtx_costs)
8264         (legitimize_pic_address): Likewise.
8265         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
8266         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
8267         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
8268         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
8269         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
8271 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8273         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
8274         REGNO($0) == REGNO($1).
8276 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8278         * config/s390/linux.h(SIZE_TYPE): Add comment.
8280 2017-02-06  Julian Brown  <julian@codesourcery.com>
8281             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8282             Virendra Pathak  <virendra.pathak@broadcom.com>
8284         * config/aarch64/aarch64-cores.def: Change the scheduler
8285         to Thunderx2t99.
8286         * config/aarch64/aarch64.md: Include thunderx2t99.md.
8287         * config/aarch64/thunderx2t99.md: New file.
8289 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8291         * doc/standards.texi (Go Language): Update link to language
8292         standard.
8294 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8296         * tree-eh.c (lower_resx): Sanitize profile.
8297         (cleanup_empty_eh_move_lp): Likewise.
8299 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8301         PR tree-ssa/79347
8302         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
8303         ELSE_PROB.
8304         * cfgloopmanip.h (loop_version): Update prototype.
8305         * modulo-sched.c (sms_schedule): Update call of loop_version.
8306         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
8307         * tree-parloops.c (gen_parallel_loop): Likewise.
8308         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
8309         * tree-ssa-loop-split.c (split_loop): Likewise.
8310         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
8311         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
8313 2017-02-05  Martin Liska  <mliska@suse.cz>
8315         PR bootstrap/78985
8316         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
8317         variable to NULL.
8318         (print_operand_address): Initialize a struct to zero.
8320 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8322         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
8323         garbage collector only in textual form.
8325 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8327         * doc/extend.texi (x86 specific memory model extensions for
8328         transactional memory): Simplify a phrase.
8330 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
8332         PR target/79353
8333         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
8334         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
8335         (atomic_storedi_1): Likewise.
8337 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
8339         PR tree-optimization/79338
8340         * tree-parloops.c (gather_scalar_reductions): Don't call
8341         vect_analyze_loop_form for loop->inner before destroying loop's
8342         loop_vinfo.
8344 2017-02-03  Martin Sebor  <msebor@redhat.com>
8346         PR tree-optimization/79327
8347         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
8348         when precision has resulted in leading zeros.
8349         (format_integer): Adjust the likely counter to assume an unknown
8350         argument that may be zero is non-zero.
8352 2017-02-03  Jason Merrill  <jason@redhat.com>
8354         PR c++/78689
8355         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
8356         avoid copying non-taken branch.
8358 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8360         PR tree-optimization/79340
8361         * tree-vect-loop.c (vectorizable_reduction): Release
8362         vec_defs elements after safe_splicing them into other vectors.
8363         Formatting fixes.
8365         PR tree-optimization/79327
8366         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
8367         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
8368         dirtype.
8369         (format_integer): Use wide_int_to_tree instead of build_int_cst
8370         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
8371         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
8372         of shortest and longest sequence.
8374 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
8376         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
8377         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
8379 2017-02-03  Walter Lee  <walt@tilera.com>
8381         PR target/78862
8382         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
8383         after initial stackframe link reg save.
8384         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
8386 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8388         PR target/79354
8389         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
8390         wu for stxssp alternative.
8392 2017-02-03  Martin Sebor  <msebor@redhat.com>
8394         PR tree-optimization/79352
8395         * gimple-fold.c (get_range_strlen): Add argument.
8396         (get_range_strlen): Change return type to bool.
8397         (get_maxval_strlen): Pass in a dummy argument.
8398         * gimple-fold.h (get_range_strlen): Change return type to bool.
8399         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
8400         * tree.h (array_at_struct_end_p): Add argument.
8401         * tree.c (array_at_struct_end_p): Handle it.
8403 2017-02-03  Martin Liska  <mliska@suse.cz>
8405         PR lto/66295
8406         * multiple_target.c (create_dispatcher_calls): Redirect edge
8407         from a caller of a dispatcher.
8408         (expand_target_clones): Make the clones local.
8409         (ipa_target_clone): Do both target clones and resolvers.
8410         (ipa_dispatcher_calls): Remove the pass.
8411         (pass_dispatcher_calls::gate): Likewise.
8412         (make_pass_dispatcher_calls): Likewise.
8413         * passes.def (pass_target_clone): Put as very first IPA early
8414         pass.
8416 2017-02-03  Martin Liska  <mliska@suse.cz>
8418         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
8419         in case of a function with ifunc attribute.
8421 2017-02-03  Martin Liska  <mliska@suse.cz>
8423         * cgraph.c (cgraph_node::dump): Dump function version info.
8424         * symtab.c (symtab_node::dump_base): Add missing new line.
8426 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8428         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
8429         (ifcombine_ifandif): Use it.
8431 2017-02-03  Martin Liska  <mliska@suse.cz>
8433         * doc/invoke.texi: Document default value for
8434         use-after-scope-direct-emission-threshold.
8436 2017-02-03  Martin Liska  <mliska@suse.cz>
8438         PR tree-optimization/79339
8439         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
8440         (format_floating): Likewise.
8442 2017-02-03  Martin Liska  <mliska@suse.cz>
8444         PR ipa/79337
8445         * ipa-prop.c (ipa_node_params_t::insert): Remove current
8446         implementation.
8447         (ipa_node_params_t::remove): Likewise.
8448         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
8449         initialization from removed ipa_node_params_t::insert.
8450         (ipa_node_params::~ipa_node_params): Move from removed
8451         ipa_node_params_t::release.
8452         * symbol-summary.h (symbol_summary::m_released): New member.
8453         Do not release a summary twice.  Do not allow to call finalizer
8454         for types of a summary that live in GGC memory.
8456 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8458         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
8459         cmp_branch fusion.
8461 2017-02-02  Martin Sebor  <msebor@redhat.com>
8463         PR middle-end/79275
8464         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
8465         (format_string): Tighten up the range of output for non-constant
8466         strings and correct the expected range for wide non-constant strings.
8468 2017-02-02  Martin Sebor  <msebor@redhat.com>
8470         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
8472         PR middle-end/32003
8473         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
8474         index.
8475         (-fdump-tree-@var): Add to index and document how to come up
8476         with pass-specific option and dump file names.
8477         (-fdump-passes): Clarify where to look for output.
8479 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8481         PR middle-end/77445
8482         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
8483         statistics of the analyzed path; allow threading for speed when
8484         any of BBs along the path are optimized for speed.
8486 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
8488         PR middle-end/78468
8489         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
8490         settings of the virtual registers.
8492         Revert again
8493         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8495         * explow.c (get_dynamic_stack_size): Take known alignment of stack
8496         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
8497         needed.
8499 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8501         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
8502         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
8504 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8506         * config/s390/s390.md: Add missing comments with the expanded
8507         mnemonics.
8508         * config/s390/vector.md: Likewise.
8509         * config/s390/vx-builtins.md: Likewise.
8511 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
8513         PR target/79197
8514         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
8515         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
8516         conditions on a single line.
8518 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8520         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8521         __S390_VX__ to __VX__.
8523 2017-02-01  Andrew Pinski  <apinski@cavium.com>
8525         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
8526         stmt_info to record_stmt_cost.
8527         (vect_get_known_peeling_cost): Pass stmt_info if known to
8528         record_stmt_cost.
8529         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
8530         cpu_vector_cost field into
8531         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
8532         field into vec_int_stmt_cost and vec_fp_stmt_cost.
8533         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
8534         splitting of scalar_stmt_cost and vec_stmt_cost.
8535         (thunderx_vector_cost): Likewise.
8536         (cortexa57_vector_cost): LIkewise.
8537         (exynosm1_vector_cost): Likewise.
8538         (xgene1_vector_cost): Likewise.
8539         (thunderx2t99_vector_cost): Improve after the splitting of the two
8540         fields.
8541         (aarch64_builtin_vectorization_cost): Update for the splitting of
8542         scalar_stmt_cost and vec_stmt_cost.
8544 2017-02-01  Torvald Riegel  <triegel@redhat.com>
8545             Richard Henderson  <rth@redhat.com>
8547         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
8548         conditional on existance of a fast atomic load.
8549         * optabs-query.c (can_atomic_load_p): New function.
8550         * optabs-query.h (can_atomic_load_p): Declare it.
8551         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
8552         no fast atomic load is available for the particular size of access.
8553         (expand_atomic_compare_and_swap): Likewise.
8554         (expand_atomic_load): Likewise.
8555         (expand_atomic_store): Likewise.
8556         (expand_atomic_fetch_op): Likewise.
8557         * testsuite/lib/target-supports.exp
8558         (check_effective_target_sync_int_128): Remove x86 because it provides
8559         no fast atomic load.
8560         (check_effective_target_sync_int_128_runtime): Likewise.
8562 2017-02-01  Richard Biener  <rguenther@suse.de>
8564         * graphite.c: Include tree-vectorizer.h for find_loop_location.
8565         (graphite_transform_loops): Provide opt-info for optimized nests.
8566         * tree-parloop.c (parallelize_loops): Provide opt-info for
8567         parallelized loops.
8569 2017-02-01  Richard Biener  <rguenther@suse.de>
8571         PR middle-end/79315
8572         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
8573         was not set before.
8575 2017-02-01  Richard Biener  <rguenther@suse.de>
8577         PR tree-optimization/71824
8578         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8579         Verify the loops are valid in the merged SESE region.
8580         (scop_detection::can_represent_loop_1): Check analyzing the
8581         evolution of the number of iterations in the region succeeds.
8583 2017-01-31  Ian Lance Taylor  <iant@golang.org>
8585         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
8586         REG_ARGS_SIZE note to 32-bit push insns and call insn.
8588 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
8590         PR preprocessor/79210
8591         * input.c (get_substring_ranges_for_loc): Replace line_width
8592         assertion with error-handling.
8594 2017-01-31  Richard Biener  <rguenther@suse.de>
8596         PR tree-optimization/77318
8597         * graphite-sese-to-poly.c (extract_affine): Fix assert.
8598         (create_pw_aff_from_tree): Take loop parameter.
8599         (add_condition_to_pbb): Pass loop of the condition to
8600         create_pw_aff_from_tree.
8602 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
8604         * config/s390/s390.c (s390_asan_shadow_offset): New function.
8605         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
8607 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
8609         PR target/78597
8610         PR target/79038
8611         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
8612         no longer used.
8613         (convert_int_to_float128): Likewise.
8614         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
8615         (convert_int_to_float128): Likewise.
8616         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
8617         (UNSPEC_IEEE128_CONVERT): Likewise.
8618         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
8619         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
8620         Use local variables for IBM extended format.
8621         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
8622         (fix_trunc<mode>si2_fprs): Likewise.
8623         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8624         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
8625         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
8626         to know that we can now have integers of all sizes in vector
8627         registers.
8628         (fix<uns>_<mode>di2_hw): Likewise.
8629         (float<uns>_<mode>si2_hw): Likewise.
8630         (fix_<mode>si2_hw): Likewise.
8631         (fixuns_<mode>si2_hw): Likewise.
8632         (float<uns>_<mode>di2_hw): Likewise.
8633         (float_<mode>di2_hw): Likewise.
8634         (float_<mode>si2_hw): Likewise.
8635         (floatuns_<mode>di2_hw): Likewise.
8636         (floatuns_<mode>si2_hw): Likewise.
8637         (xscvqp<su>wz_<mode>): Delete, no longer used.
8638         (xscvqp<su>dz_<mode>): Likewise.
8639         (xscv<su>dqp_<mode>): Likewise.
8640         (ieee128_mfvsrd_64bit): Likewise.
8641         (ieee128_mfvsrd_32bit): Likewise.
8642         (ieee128_mfvsrwz): Likewise.
8643         (ieee128_mtvsrw): Likewise.
8644         (ieee128_mtvsrd_64bit): Likewise.
8645         (ieee128_mtvsrd_32bit): Likewise.
8647 2017-01-31  Martin Liska  <mliska@suse.cz>
8649         PR ipa/79285
8650         * ipa-prop.c (ipa_free_all_node_params): Call release method
8651         instead of ~sumbol_summary to not to trigger double times
8652         dtor of hash_map.
8654 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
8656         PR tree-optimization/71691
8657         * bitmap.h (class auto_bitmap): New.
8658         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
8659         is_maybe_undefined instead of ssa_undefined_value_p.
8661 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8663         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8664         __S390_ARCH_LEVEL__ to __ARCH__.
8666 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
8668         PR tree-optimization/79267
8669         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
8670         if should_remove_lhs_p is true.
8672 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
8674         PR debug/63238
8675         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
8676         (add_alignment_attribute): New.
8677         (base_type_die): Add alignment attribute.
8678         (subrange_type_die): Likewise.
8679         (modified_type_die): Likewise.
8680         (gen_array_type_die): Likewise.
8681         (gen_descr_array_type_die: Likewise.
8682         (gen_enumeration_type_die): Likewise.
8683         (gen_subprogram_die): Likewise.
8684         (gen_variable_die): Likewise.
8685         (gen_field_die): Likewise.
8686         (gen_ptr_to_mbr_type_die): Likewise.
8687         (gen_struct_or_union_type_die): Likewise.
8688         (gen_subroutine_type_die): Likewise.
8689         (gen_typedef_die): Likewise.
8690         (base_type_cmp): Compare alignment attribute.
8692 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8694         PR target/79170
8695         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
8696         (setb_unsigned) New pattern for setb with CCUNS.
8697         * config/rs6000/rs6000.c (expand_block_compare): Use a different
8698         subfc./subfe sequence to avoid overflow problems.  Generate a
8699         shorter sequence with cmpld/setb for power9.
8700         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
8701         for generating subfc. instruction.
8702         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
8703         now uses this instruction.
8705 2017-01-30  Ian Lance Taylor  <iant@google.com>
8707         PR debug/79289
8708         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
8709         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
8711 2017-01-30  Martin Sebor  <msebor@redhat.com>
8713         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
8714         Move constant to the right of a relational operator.
8715         (get_mpfr_format_length, format_character, format_string): Ditto.
8716         (should_warn_p, maybe_warn): Same.
8718         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
8720 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
8722         PR lto/79061
8723         * asan.c (get_translation_unit_decl): Remove function.
8724         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
8726 2017-01-30  Martin Liska  <mliska@suse.cz>
8728         PR gcov-profile/79259
8729         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
8730         -fprofile-generate.
8732 2017-01-30  Martin Liska  <mliska@suse.cz>
8734         PR bootstrap/78985
8735         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
8736         Initialize variables with NULL value.
8738 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
8740         PR target/79260
8741         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
8742         tm_p_file.
8743         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
8745 2017-01-30  Richard Biener  <rguenther@suse.de>
8747         PR tree-optimization/79276
8748         * tree-vrp.c (process_assert_insertions): Properly adjust common
8749         when removing a duplicate.
8751         * gcc.dg/torture/pr79276.c: New testcase.
8753 2017-01-30  Richard Biener  <rguenther@suse.de>
8755         PR tree-optimization/79256
8756         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8757         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8758         alignment on TYPE.
8759         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
8761 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8763         PR target/79240
8764         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
8765         ("*r<noxa>sbg_<mode>_sll_bitmask")
8766         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8767         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
8768         Use contiguous_bitmask_nowrap_operand.
8770 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8772         PR target/79268
8773         * config/rs6000/altivec.h (vec_xl): Revise #define.
8774         (vec_xst): Likewise.
8776 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
8778         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
8780 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
8782         PR rtl-optimization/79194
8783         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
8784         traps before call to bypass_conditional_jumps.
8786 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
8788         PR tree-optimization/71374
8789         * lra-constraints.c (check_conflict_input_operands): New.
8790         (match_reload): Use it.
8792 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
8794         PR target/79131
8795         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
8796         account to calculate conflict_set.
8798 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
8800         PR rtl-optimization/78559
8801         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
8802         other_insn in combine.
8804 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
8806         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
8807         uint16_type_node for BT_UINT16.
8809 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
8811         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
8812         "RTL Tests" to menu.
8813         (GIMPLE Tests): New node.
8814         (RTL Tests): New node.
8816 2017-01-27  Richard Biener  <rguenther@suse.de>
8818         PR tree-optimization/79245
8819         * tree-loop-distribution.c (distribute_loop): Apply cost
8820         modeling also to detected patterns.
8822 2017-01-27  Richard Biener  <rguenther@suse.de>
8824         PR tree-optimization/71433
8825         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
8826         (compare_assert_loc): New function.
8827         (process_assert_insertions): Sort and optimize assert locations
8828         to remove duplicates and push down identical assertions on
8829         edges to their destination block.
8831 2017-01-27  Richard Biener  <rguenther@suse.de>
8833         PR tree-optimization/79244
8834         * tree-vrp.c (remove_range_assertions): Forcefully propagate
8835         out SSA names even if abnormal.
8837 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
8839         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
8840         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
8841         instead of MPFR_RNDN.
8843 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
8845         PR target/79239
8846         * arm.c (arm_option_override): Don't call build_target_option_node
8847         until after doing all option overrides.
8848         (arm_valid_target_attribute_tree): Likewise.
8850 2017-01-27  Martin Liska  <mliska@suse.cz>
8852         * doc/invoke.texi (-fprofile-arcs): Document profiling support
8853         for {cd}tors and C++ {cd}tors.
8855 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8857         * config/s390/s390.md ("*setmem_long_and")
8858         ("*setmem_long_and_31z"): Use zero_extend instead of and.
8860 2017-01-26  Martin Sebor  <msebor@redhat.com>
8862         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
8863         of precision.
8865 2017-01-26  Martin Sebor  <msebor@redhat.com>
8867         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
8868         HAVE_DFmode before using XFmode or DFmode.
8869         (parse_directive): Avoid using the z length modifier to avoid
8870         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
8872         PR middle-end/78703
8873         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
8874         to accept adjustment as an array.
8875         (get_int_range): New function.
8876         (struct directive): Make width and prec arrays.
8877         (directive::set_width, directive::set_precision): Call get_int_range.
8878         (format_integer, format_floating): Handle width and precision ranges.
8879         (format_string, parse_directive): Same.
8881 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8883         PR debug/79129
8884         * dwarf2out.c (generate_skeleton_bottom_up): For children with
8885         comdat_type_p set, just clone them, but keep the children in the
8886         original DIE.
8888         PR debug/78835
8889         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
8890         which have direct callers with -fvar-tracking-assignments enabled
8891         in the current TU.
8892         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
8893         inside of type units.
8895 2017-01-26  Martin Sebor  <msebor@redhat.com>
8897         PR middle-end/78703
8898         * gimple-ssa-sprintf.c (struct result_range): Add likely and
8899         unlikely counters.
8900         (struct format_result): Replace number_chars, number_chars_min,
8901         and number_chars_max with a single member of struct result_range.
8902         Remove bounded.
8903         (format_result::operator+=): Adjust.
8904         (struct fmtresult): Remove bounded.  Handle likely and unlikely
8905         counters.
8906         (fmtresult::adjust_for_width_or_precision): New function.
8907         (fmtresult:type_max_digits): New function.
8908         (bytes_remaining): Handle likely and unlikely counters.
8909         (min_bytes_remaining): Remove.
8910         (format_percent): Simplify.
8911         (format_integer, format_floating): Set likely and unlikely counters.
8912         (get_string_length, format_character, format_string): Same.
8913         (format_plain, should_warn_p): New function.
8914         (maybe_warn): Call should_warn_p.  Update diagnostic messages
8915         and handle those for all directives, including plain strings.
8916         (format_directive): Handle likely and unlikely counters.
8917         Remove unnecessary quoting from diagnostics.  Add an informational
8918         note.
8919         (add_bytes): Remove.
8920         (pass_sprintf_length::compute_format_length): Simplify.
8921         (try_substitute_return_value): Handle likely and unlikely counters.
8923 2017-01-26  Carl Love  <cel@us.ibm.com>
8925         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
8926         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
8928 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
8930         PR target/79131
8931         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
8932         endianess for subregs into account.
8933         * lra-constraints.c (lra_constraints): Do risky transformations
8934         always on the first iteration.
8935         * lra-lives.c (check_pseudos_live_through_calls): Add arg
8936         last_call_used_reg_set.
8937         (process_bb_lives): Define and use last_call_used_reg_set.
8938         * lra.c (lra): Always continue after lra_constraints on the first
8939         iteration.
8941 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
8943         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
8944         constant.
8945         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
8947 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8949         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
8950         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
8951         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
8952         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
8953         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
8954         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
8955         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
8956         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
8957         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
8959 2017-01-26  Marek Polacek  <polacek@redhat.com>
8961         PR c/79199
8962         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
8963         for the third operand.
8965 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8967         PR middle-end/79236
8968         * omp-low.c (struct omp_context): Add simt_stmt field.
8969         (scan_omp_for): Return omp_context *.
8970         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
8971         context to the _simt_ SIMD stmt.
8972         (lower_omp_for): For combined SIMD with sibling _simt_
8973         SIMD, make sure to use the same decls in _looptemp_
8974         clauses as in the sibling.
8976 2017-01-26  David Sherwood  <david.sherwood@arm.com>
8978         PR middle-end/79212
8979         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
8980         all contexts.
8982 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8984         PR target/70465
8985         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
8986         emit fld b; fld a; if possible.
8988         * brig-builtins.def: Update copyright years.
8989         * config/arm/arm_acle_builtins.def: Update copyright years.
8991 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
8993         PR target/79179
8994         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
8995         constraint instead of o for the stxsd instruction.
8997 2017-01-25  Carl Love  <cel@us.ibm.com>
8999         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
9000         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
9002 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
9004         * doc/invoke.texi (C++ Dialect Options): Fix typo.
9006 2017-01-25  Richard Biener  <rguenther@suse.de>
9008         PR tree-optimization/69264
9009         * target.def (vector_alignment_reachable): Improve documentation.
9010         * doc/tm.texi: Regenerate.
9011         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
9012         and add a comment.
9013         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
9014         earlier changes with respect to TYPE_USER_ALIGN.
9015         (vector_alignment_reachable_p): Likewise.  Improve dumping.
9017 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9019         PR target/79145
9020         * config/arm/arm.md (xordi3): Force constant operand into a register
9021         for TARGET_IWMMXT.
9023 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9025         * doc/invoke.texi (-fstore-merging): Correct default optimization
9026         levels at which it is enabled.
9027         (-O): Move -fstore-merging from list to...
9028         (-O2): ... Here.
9030 2017-01-25  Richard Biener  <rguenther@suse.de>
9032         PR debug/78363
9033         * omp-expand.c: Include debug.h.
9034         (expand_omp_taskreg): Make sure to generate early debug before
9035         outlining anything from a function.
9036         (expand_omp_target): Likewise.
9037         (grid_expand_target_grid_body): Likewise.
9039 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
9041         PR lto/79061
9042         * asan.c (get_translation_unit_decl): New function.
9043         (asan_add_global): Extract modules file name from globals
9044         TRANSLATION_UNIT_DECL name.
9046 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
9048         PR target/77439
9049         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
9050         for long calls with APCS frame and VFP.
9052 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
9054         * cfg.c (original_copy_tables_initialized_p): New function.
9055         * cfg.h (original_copy_tables_initialized_p): New decl.
9056         * cfgrtl.c (relink_block_chain): Guard the call to
9057         free_original_copy_tables with a call to
9058         original_copy_tables_initialized_p.
9059         * cgraph.h (symtab_node::native_rtl_p): New decl.
9060         * cgraphunit.c (symtab_node::native_rtl_p): New function.
9061         (symtab_node::needed_p): Don't assert for early assembly output
9062         for __RTL functions.
9063         (cgraph_node::finalize_function): Set "force_output" for __RTL
9064         functions.
9065         (cgraph_node::analyze): Bail out early for __RTL functions.
9066         (analyze_functions): Update assertion to support __RTL functions.
9067         (cgraph_node::expand): Bail out early for __RTL functions.
9068         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
9069         __RTL functions.
9070         * function.h (struct function): Update comment for field
9071         "pass_startwith".
9072         * gimple-expr.c: Include "tree-pass.h".
9073         (gimple_has_body_p): Return false for __RTL functions.
9074         * Makefile.in (OBJS): Add run-rtl-passes.o.
9075         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
9076         accessor.
9077         (gcc::pass_manager::get_clean_slate): New accessor.
9078         * passes.c: Include "insn-addr.h".
9079         (should_skip_pass_p): Add logging.  Update logic for running
9080         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
9081         property-provider override so it is only done for gimple passes.
9082         Don't skip dfinit.
9083         (skip_pass): New function.
9084         (execute_one_pass): Call skip_pass when skipping passes.
9085         * read-md.c (md_reader::read_char): Support filtering
9086         the input to a subset of line numbers.
9087         (md_reader::md_reader): Initialize fields
9088         m_first_line and m_last_line.
9089         (md_reader::read_file_fragment): New function.
9090         * read-md.h (md_reader::read_file_fragment): New decl.
9091         (md_reader::m_first_line): New field.
9092         (md_reader::m_last_line): New field.
9093         * read-rtl-function.c (function_reader::create_function): Only
9094         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
9095         curr_properties.  Set DECL_INITIAL to a dummy block.
9096         (read_rtl_function_body_from_file_range): New function.
9097         * read-rtl-function.h (read_rtl_function_body_from_file_range):
9098         New decl.
9099         * run-rtl-passes.c: New file.
9100         * run-rtl-passes.h: New file.
9102 2017-01-24  Jeff Law  <law@redhat.com>
9104         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
9105         buffer size.
9107 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
9109         PR tree-optimization/79159
9110         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
9111         (record_nonwrapping_iv): Improve boundary using above function if no
9112         value range information.
9114 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
9115             Martin Jambor  <mjambor@suse.cz>
9117         * brig-builtins.def: New file.
9118         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
9119         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9120         (DEF_HSAIL_SAT_BUILTIN): Likewise.
9121         (DEF_HSAIL_INTR_BUILTIN): Likewise.
9122         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9123         * builtin-types.def (BT_INT8): New.
9124         (BT_INT16): Likewise.
9125         (BT_UINT8): Likewise.
9126         (BT_UINT16): Likewise.
9127         (BT_FN_ULONG): Likewise.
9128         (BT_FN_UINT_INT): Likewise.
9129         (BT_FN_UINT_ULONG): Likewise.
9130         (BT_FN_UINT_LONG): Likewise.
9131         (BT_FN_UINT_PTR): Likewise.
9132         (BT_FN_ULONG_PTR): Likewise.
9133         (BT_FN_INT8_FLOAT): Likewise.
9134         (BT_FN_INT16_FLOAT): Likewise.
9135         (BT_FN_UINT32_FLOAT): Likewise.
9136         (BT_FN_UINT16_FLOAT): Likewise.
9137         (BT_FN_UINT8_FLOAT): Likewise.
9138         (BT_FN_UINT64_FLOAT): Likewise.
9139         (BT_FN_UINT16_UINT32): Likewise.
9140         (BT_FN_UINT32_UINT16): Likewise.
9141         (BT_FN_UINT16_UINT16_UINT16): Likewise.
9142         (BT_FN_INT_PTR_INT): Likewise.
9143         (BT_FN_UINT_PTR_UINT): Likewise.
9144         (BT_FN_LONG_PTR_LONG): Likewise.
9145         (BT_FN_ULONG_PTR_ULONG): Likewise.
9146         (BT_FN_VOID_UINT64_UINT64): Likewise.
9147         (BT_FN_UINT8_UINT8_UINT8): Likewise.
9148         (BT_FN_INT8_INT8_INT8): Likewise.
9149         (BT_FN_INT16_INT16_INT16): Likewise.
9150         (BT_FN_INT_INT_INT): Likewise.
9151         (BT_FN_UINT_FLOAT_UINT): Likewise.
9152         (BT_FN_FLOAT_UINT_UINT): Likewise.
9153         (BT_FN_ULONG_UINT_UINT): Likewise.
9154         (BT_FN_ULONG_UINT_PTR): Likewise.
9155         (BT_FN_ULONG_ULONG_ULONG): Likewise.
9156         (BT_FN_UINT_UINT_UINT): Likewise.
9157         (BT_FN_VOID_UINT_PTR): Likewise.
9158         (BT_FN_UINT_UINT_PTR: Likewise.
9159         (BT_FN_UINT32_UINT64_PTR): Likewise.
9160         (BT_FN_INT_INT_UINT_UINT): Likewise.
9161         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
9162         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
9163         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
9164         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
9165         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
9166         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
9167         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
9168         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
9169         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
9170         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
9171         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
9172         * doc/frontends.texi: List BRIG FE.
9173         * doc/install.texi (Testing): Add BRIG tesring requirements.
9174         * doc/invoke.texi (Overall Options): Mention BRIG.
9175         * doc/standards.texi (Standards): Doucment BRIG HSA version.
9177 2017-01-24  Richard Biener  <rguenther@suse.de>
9179         PR translation/79208
9180         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
9182 2017-01-24  Martin Jambor  <mjambor@suse.cz>
9184         PR bootstrap/79198
9185         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
9186         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
9187         and known_contexts.
9189 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
9191         PR middle-end/79123
9192         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
9193         casts from signed to unsigned really don't have a range.
9195 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9197         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
9198         GMP_RNDx for compatiblity.
9200 2017-01-24  Martin Liska  <mliska@suse.cz>
9202         PR bootstrap/79132
9203         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
9204         that would prevent us to call alloca with -1 as argument.
9206 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
9208         * dwarf2out.c (output_compilation_unit_header, output_file_names):
9209         Avoid -Wformat-security warning.
9211 2017-01-23  Andrew Pinski  <apinski@cavium.com>
9213         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
9214         cost table.
9216 2017-01-23  Martin Sebor  <msebor@redhat.com>
9218         PR middle-end/78703
9219         * gimple-ssa-sprintf.c (warn_level): New global.
9220         (format_integer): Use it here and throughout the rest of the file.
9221         Use the same switch to compute sign as base.
9222         (maybe_warn): New function.
9223         (format_directive): Factor out warnings into maybe_warn.
9224         Add debugging output.  Use warn_level.
9225         (add_bytes): Use warn_level.
9226         (pass_sprintf_length::compute_format_length): Add debugging output.
9227         (try_substitute_return_value): Same.
9228         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
9230         PR middle-end/78703
9231         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
9232         (struct fmtresult, format_integer, format_floating): Adjust.
9233         (fmtresult::fmtresult): Set max correctly in two argument ctor.
9234         (get_string_length, format_string,format_directive): Same.
9235         (pass_sprintf_length::compute_format_length): Same.
9236         (try_substitute_return_value): Simplify slightly.
9238         PR middle-end/78703
9239         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
9240         (fmtresult::operator+=): Outlined.
9241         (struct fmtresult): Add ctors.
9242         (struct conversion_spec): Rename...
9243         (struct directive): ...to this.  Add and remove data members.
9244         (directive::set_width, directive::set_precision): New functions.
9245         (format_percent): Use fmtresult ctor.
9246         (get_width_and_precision): Remove.
9247         (format_integer): Make naming changes.  Avoid computing width and
9248         precision.
9249         (format_floating): Same.  Adjust indentation.
9250         (format_character, format_none): New functions.
9251         (format_string): Moved character handling to format_character.
9252         (format_directive): Remove arguments, change return type.
9253         (parse_directive): New function.
9254         (pass_sprintf_length::compute_format_length): Move directive
9255         parsing to parse_directive.
9257 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9259         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
9260         (assign_assembler_name_if_needed): ... this.
9261         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
9262         (assign_assembler_name_if_needed): ... this.
9263         (free_lang_data_in_cgraph): Adjust callers.
9264         * cgraphunit.c (cgraph_node::analyze): Likewise.
9265         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
9266         Likewise.
9268 2017-01-23  Richard Biener  <rguenther@suse.de>
9270         PR tree-optimization/79088
9271         PR tree-optimization/79188
9272         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
9273         resetting loop bounds after last path deletion.  Reset loop
9274         bounds of the target loop, make code match the comments.
9275         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
9276         Make sure loops need no fixups.
9278 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9280         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
9281         exponent support with double type for first argument.
9282         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
9283         type returned by __builtin_vec_extract_sig,
9284         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
9285         functions from "vector int" to "vector unsigned int" or from
9286         "vector long long int" to "vector unsigned long long int".
9287         Changed type returned by __builtin_vec_extract_exp,
9288         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
9289         functions from "vector int" to "vector unsigned int" or from
9290         "vector long long int" to "vector unsigned long long int".
9291         Changed return type of __builtin_vec_test_data_class,
9292         __builtin_vec_test_data_class_sp, and
9293         __builtin_vec_test_data_class_dp from "vector int" to
9294         "vector bool int" or from "vector long long int" to "vector bool
9295         long long int" and changed second argument type from "unsigned
9296         int" to "int".  Added new overloaded function forms "vector float
9297         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
9298         "vector float __builtin_vec_insert_exp_sp (vector float, vector
9299         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
9300         double, vector unsigned long long int)" and "vector double
9301         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
9302         long int)".  Changed return type of
9303         __builtin_scalar_test_data_class and
9304         __builtin_scalar_test_data_class_sp and
9305         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
9306         int" and changed second argument from "unsigned int" to "int".
9307         Changed type returned by __builtin_scalar_test_neg,
9308         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
9309         from "int" to "bool int".  Added new overloaded function form
9310         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
9311         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
9312         exponent double-precision with floating point first argument.
9313         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
9314         documentation of scalar_test_data_class, scalar_test_neg,
9315         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
9316         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
9317         vec_test_data_class built-in functions to reflect refinements in
9318         their type signatures.
9320 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
9322         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
9323         size of buf.
9324         (aarch64_elf_asm_destructor): Likewise.
9326 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
9328         PR rtl-optimization/78634
9329         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
9330         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
9331         * ifcvt.c (noce_try_cmove): Add missing cost check.
9333         PR rtl-optimization/71724
9334         * combine.c (if_then_else_cond): Look for situations where it is
9335         beneficial to undo the work of one of the recursive calls.
9337 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
9339         PR tree-optimization/70754
9340         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
9341         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
9342         combined stmt before it if not NULL.
9343         (combine_chains): Process refs reversely and compute dominance point
9344         for root ref.
9346 2017-01-23  Martin Liska  <mliska@suse.cz>
9348         PR tree-optimization/79196
9349         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
9350         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
9351         instead of memcmp.
9352         (strlen_optimize_stmt): Call the renamed function.
9354 2017-01-23  Michael Matz  <matz@suse.de>
9356         PR tree-optimization/78384
9357         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
9359 2017-01-23  Richard Biener  <rguenther@suse.de>
9361         PR tree-optimization/79186
9362         * tree-vrp.c (register_new_assert_for): Make sure we've seen
9363         both incoming edges before moving an assert.
9365 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9367         * ipa-prop.c (load_from_param_1): Removed.
9368         (load_from_unmodified_param): Bits from load_from_param_1 put back
9369         here.
9370         (load_from_param): Removed.
9371         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
9372         with stmt.  Reverted back to use of load_from_unmodified_param.
9374 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9376         PR ipa/79108
9377         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
9378         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
9379         field a pointer to garbage collected vector, mark lattices and
9380         ipcp_orig_node with GTY((skip)).
9381         (ipa_get_param_count): Adjust to descriptors being a pointer.
9382         (ipa_get_param): Likewise.
9383         (ipa_get_type): Likewise.
9384         (ipa_get_param_move_cost): Likewise.
9385         (ipa_set_param_used): Likewise.
9386         (ipa_get_controlled_uses): Likewise.
9387         (ipa_set_controlled_uses): Likewise.
9388         (ipa_is_param_used): Likewise.
9389         (ipa_node_params_t): Move into garbage collector.  New methods insert
9390         and remove.
9391         (ipa_node_params_sum): Annotate wth GTY(()).
9392         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
9393         garbage collected.
9394         (ipa_load_from_parm_agg): Adjust declaration.
9395         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
9396         * ipa-profile.c (ipa_profile): Likewise.
9397         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
9398         (ipa_populate_param_decls): Make descriptors parameter garbage
9399         collected.
9400         (ipa_dump_param): Adjust to descriptors being a pointer.
9401         (ipa_alloc_node_params): Likewise.
9402         (ipa_initialize_node_params): Likewise.
9403         (load_from_param_1): Make descriptors parameter garbage collected.
9404         (load_from_unmodified_param): Likewise.
9405         (load_from_param): Likewise.
9406         (ipa_load_from_parm_agg): Likewise.
9407         (ipa_node_params::~ipa_node_params): Removed.
9408         (ipa_free_all_node_params): Remove call to delete operator.
9409         (ipa_node_params_t::insert): New.
9410         (ipa_node_params_t::remove): Likewise.
9411         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
9412         copy known_csts and known_contexts vectors.
9413         (ipa_read_node_info): Adjust to descriptors being a pointer.
9414         (ipcp_modif_dom_walker): Make m_descriptors field garbage
9415         collected.
9416         (ipcp_transform_function): Make descriptors variable garbage
9417         collected.
9419 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
9421         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
9422         * config/i386/avx512dqintrin.h: Ditto.
9423         * config/i386/avx512fintrin.h: Ditto.
9424         * gcc/config/i386/i386.c: Handle new builtins.
9425         * config/i386/i386-builtin.def: Add new builtins.
9426         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
9427         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
9429 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9430             Martin Liska  <mliska@suse.cz>
9432         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
9433         * asan.c (asan_expand_poison_ifn): Support stores and use
9434         appropriate ASAN report function.
9435         * internal-fn.c (expand_ASAN_POISON_USE): New function.
9436         * internal-fn.def (ASAN_POISON_USE): Declare.
9437         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
9438         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
9439         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
9440         ASAN_POISON calls w/o LHS.
9441         * tree-ssa.c (execute_update_addresses_taken): Create clobber
9442         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
9443         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
9444         * gimplify.c (asan_poison_variables): Add attribute
9445         use_after_scope_memory to variables that really needs to live
9446         in memory.
9447         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
9448         having the attribute.
9450 2017-01-23  Martin Liska  <mliska@suse.cz>
9452         * asan.c (create_asan_shadow_var): New function.
9453         (asan_expand_poison_ifn): Likewise.
9454         * asan.h (asan_expand_poison_ifn): New declaration.
9455         * internal-fn.c (expand_ASAN_POISON): Likewise.
9456         * internal-fn.def (ASAN_POISON): New builtin.
9457         * sanopt.c (pass_sanopt::execute): Expand
9458         asan_expand_poison_ifn.
9459         * tree-inline.c (copy_decl_for_dup_finish): Make function
9460         external.
9461         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
9462         * tree-ssa.c (is_asan_mark_p): New function.
9463         (execute_update_addresses_taken): Rewrite local variables
9464         (identified just by use-after-scope as addressable) into SSA.
9466 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9468         * doc/install.texi (Specific): opensource.apple.com uses https
9469         now. Remove trailing slash.
9471 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9473         * README.Portability: Remove note on an Irix compatibility issue.
9475 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
9477         * gcov.c (INCLUDE_ALGORITHM): Define.
9478         (INCLUDE_VECTOR): Define.
9479         No longer include <vector> and <algorithm> directly.
9481 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
9483         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
9484         to https.
9485         * doc/invoke.texi (Code Gen Options): Ditto.
9487 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
9489         PR lto/78407
9490         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
9492 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9494         rtl-optimization/79125
9495         * cprop.c (local_cprop_pass): Handle cases where we make an
9496         unconditional trap.
9498 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
9500         PR target/61729
9501         PR target/77850
9502         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
9503         read from, for big endian.
9505 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
9507         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
9508         register pauth builtins for LP64 only.
9510 2017-01-20  Marek Polacek  <polacek@redhat.com>
9512         PR c/79152
9513         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
9514         non-case labels.
9516 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
9518         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
9519         of safelen status.
9520         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
9521         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
9522         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
9524 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9526         PR target/71270
9527         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
9528         in big-endian mode when they are not a single duplicated value.
9530 2017-01-20  Richard Biener  <rguenther@suse.de>
9532         * BASE-VER: Bump to 7.0.1.
9534 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
9536         * omp-low.c (omplow_simd_context): New struct.  Use it...
9537         (lower_rec_simd_input_clauses): ...here and...
9538         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
9539         references to idx, lane, max_vf, is_simt.
9541 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
9543         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
9544         mcpu=nps400.
9546 2017-01-20  Martin Jambor  <mjambor@suse.cz>
9548         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
9549         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
9550         gt-hsa-common.h.
9551         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
9552         (GTFILES): Rename hsa.c to hsa-common.c.
9553         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
9554         * hsa-dump.c: Likewise.
9555         * hsa-gen.c: Likewise.
9556         * hsa-regalloc.c: Likewise.
9557         * ipa-hsa.c: Likewise.
9558         * omp-expand.c: Likewise.
9559         * omp-low.c: Likewise.
9560         * toplev.c: Likewise.
9562 2017-01-20  Marek Polacek  <polacek@redhat.com>
9564         PR c/64279
9565         * doc/invoke.texi: Document -Wduplicated-branches.
9566         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
9567         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
9568         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
9569         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
9570         return 0 only when not OEP_LEXICOGRAPHIC.
9571         (fold_build_cleanup_point_expr): Use the expression
9572         location when building CLEANUP_POINT_EXPR.
9573         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
9574         * tree.c (add_expr): Handle error_mark_node.
9576 2017-01-20  Martin Liska  <mliska@suse.cz>
9578         PR lto/69188
9579         * tree-profile.c (init_ic_make_global_vars): Do not call
9580         finalize_decl.
9581         (gimple_init_gcov_profiler): Likewise.
9583 2017-01-20  Martin Liska  <mliska@suse.cz>
9585         PR ipa/71190
9586         * cgraph.h (maybe_create_reference): Remove argument and
9587         update comment.
9588         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
9589         argument.
9590         * ipa-cp.c (create_specialized_node): Likewise.
9591         * symtab.c (symtab_node::maybe_create_reference): Handle
9592         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
9594 2017-01-20  Martin Liska  <mliska@suse.cz>
9596         * read-rtl-function.c (function_reader::create_function): Use
9597         build_decl instread of build_decl_stat.
9599 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
9601         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
9602         * config/i386/avx512dqintrin.h: Ditto.
9603         * config/i386/avx512fintrin.h: Ditto.
9604         * config/i386/i386-builtin-types.def: Add new types.
9605         * gcc/config/i386/i386.c: Handle new types.
9606         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
9607         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
9608         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
9609         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
9610         (__builtin_ia32_kshiftridi): New.
9611         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
9613 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
9615         PR target/78875
9616         PR target/79140
9617         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
9618         define to rs6000_init_stack_protect_guard.
9619         (rs6000_init_stack_protect_guard): New function.
9621 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
9622             Yunqiang Su  <yunqiang.su@imgtec.com>
9624         * config.gcc (supported_defaults): Add madd4.
9625         (with_madd4): Add validation.
9626         (all_defaults): Add madd4.
9627         * config/mips/mips.opt (mmadd4): New option.
9628         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9629         mmadd4.
9630         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9631         __mips_no_madd4.
9632         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
9633         (ISA_HAS_FUSED_MADD4): Likewise.
9634         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
9635         * gcc/doc/install.texi (--with-madd4): Document the new option.
9637 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9639         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
9640         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
9641         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
9642         (aarch64_init_pauth_hint_builtins): New.
9643         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
9644         (aarch64_expand_builtin): Expand new builtins.
9646 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9648         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
9649         * combine-stack-adj.c (no_unhandled_cfa): Handle
9650         REG_CFA_TOGGLE_RA_MANGLE.
9651         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
9652         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
9653         info for return address signing.
9654         (aarch64_expand_epilogue): Likewise.
9656 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9658         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
9659         * config/aarch64/aarch64-protos.h
9660         (aarch64_return_address_signing_enabled): New declaration.
9661         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
9662         New function.
9663         (aarch64_expand_prologue): Sign return address before it's pushed onto
9664         stack.
9665         (aarch64_expand_epilogue): Authenticate return address fetched from
9666         stack.
9667         (aarch64_override_options): Sanity check for ILP32 and ISA level.
9668         (aarch64_attributes): New function attributes for "sign-return-address".
9669         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
9670         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
9671         ("*do_return"): Generate combined instructions according to key index.
9672         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
9673         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
9674         iterators.
9675         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
9676         * config/aarch64/aarch64.opt (msign-return-address=): New.
9677         * doc/extend.texi (AArch64 Function Attributes): Documents
9678         "sign-return-address=".
9679         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
9681 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
9683         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
9684         overall option summary.
9686 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9688         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
9689         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
9690         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
9691         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
9693 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
9695         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
9696         -mpower9-minmax by default for -mcpu=power9.
9697         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
9698         128-bit floating point.
9700 2017-01-20  Alan Modra  <amodra@gmail.com>
9702         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
9703         optimizing for size.
9705 2017-01-20  Alan Modra  <amodra@gmail.com>
9707         PR target/79144
9708         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
9709         for strcmp and strncmp from corresponding builtin decl.
9711 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9713         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
9714         instead of i386/rtems-64.h.
9715         * config/i386/rtems-64.h: Remove.
9717 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9719         PR target/78478
9720         Revert:
9721         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9723         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
9725 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
9727         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
9728         Change int to HOST_WIDE_INT.
9729         * config/aarch64/aarch64-protos.h
9730         (aarch64_simd_gen_const_vector_dup): Likewise.
9731         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
9733 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
9735         * langhooks-def.h (lhd_type_for_size): New decl.
9736         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
9737         * langhooks.c (lhd_type_for_size): New function, taken from
9738         lto_type_for_size.
9740 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
9742         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
9743         define_bypass for CR latency.
9744         (power9-cracked-alu): Update bypass latency and remove power9-branch.
9745         (power9-alu2): Add define_bypass for CR latency.
9746         (power9-cmp): New.
9747         (power9-mul): Update insn latency.
9748         (power9-mul-compare): Update insn latency, bypass latency and remove
9749         power9-branch.
9751 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9753         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9754         Delete.
9755         * config/aarch64/aarch64.md
9756         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
9757         aarch64_nopcrelative_literal_loads.
9758         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9760 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
9762         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
9763         TARGET_LOONGSON_3A.
9764         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
9766 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
9768         PR target/78176
9769         * config.gcc (supported_defaults): Add lxc1-sxc1.
9770         (with_lxc1_sxc1): Add validation.
9771         (all_defaults): Add lxc1-sxc1.
9772         * config/mips/mips.opt (mlxc1-sxc1): New option.
9773         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9774         mlxc1-sxc1.
9775         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9776         __mips_no_lxc1_sxc1.
9777         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
9778         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
9779         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
9781 2017-01-19  Richard Biener  <rguenther@suse.de>
9783         PR tree-optimization/72488
9784         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
9785         sure to restore SSA info.
9786         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
9788 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
9790         PR rtl-optimization/79121
9791         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
9792         of the inner type when shifting an extended value.
9794 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
9796         PR lto/78407
9797         * symtab.c (symtab_node::equal_address_to): Fix comparing of
9798         interposable aliases.
9800 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
9802         PR target/78516
9803         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
9804         Use the evmergelohi instruction.
9805         (mov_si<mode>_e500_subreg4_2_le): Likewise.
9806         (mov_sitf_e500_subreg8_2_be): Likewise.
9807         (mov_sitf_e500_subreg12_2_le): Likewise.
9808         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
9809         (mov_si<mode>_e500_subreg4_2_be): Likewise.
9810         (mov_sitf_e500_subreg8_2_le): Likewise.
9811         (mov_sitf_e500_subreg12_2_be): Likewise.
9813 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9815         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
9816         attribute from vecsimple to vecperm.
9817         (altivec_vbpermq2): Likewise.
9819 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9821         PR target/79040
9822         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
9824 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9825         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
9826         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
9827         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
9828         case where N arg is SIZE_MAX.
9829         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
9830         (cmpstrsi): Add pattern.
9832 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9834         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9835         __builtin_vec_revb builtins.
9836         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
9837         built-in functions to support generation of the ISA 3.0 XXBR<x>
9838         vector byte reverse instructions.
9839         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
9840         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
9841         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
9842         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
9843         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
9844         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
9845         (P9V_BUILTIN_VEC_REVB): Likewise.
9846         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
9847         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
9848         (p9_xxbrq_v16qi): Likewise.
9849         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
9850         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
9851         (p9_xxbrh_v8hi): Likewise.
9852         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
9853         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
9854         vec_revb built-in functions.
9856 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
9858         PR rtl-optimization/78952
9859         * config/i386/i386.md (any_extract): New code iterator.
9860         (*insvqi_2): Use any_extract for source operand.
9861         (*insvqi_3): Use any_shiftrt for source operand.
9863 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
9865         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
9866         New function.
9867         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
9869 2017-01-18  Matthias Klose  <doko@ubuntu.com>
9871         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
9873 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9875         * config/rs6000/altivec.h (vec_bperm): Change #define.
9876         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
9877         (altivec_vbpermq2): New define_insn.
9878         (altivec_vbpermd): Likewise.
9879         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
9880         function interface.
9881         (VBPERMD): Likewise.
9882         (VBPERM): New polymorphic function interface.
9883         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
9884         Add entries for P9V_BUILTIN_VEC_VBPERM.
9885         * doc/extend.texi: Add interfaces for vec_bperm.
9887 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9889         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
9890         first letter of error messages.
9891         (s390_resolve_overloaded_builtin): Likewise.
9892         * config/s390/s390.c (s390_expand_builtin): Likewise.
9893         (s390_invalid_arg_for_unprototyped_fn): Likewise.
9894         (s390_valid_target_attribute_inner_p): Likewise.
9895         * config/s390/s390.md ("tabort"): Likewise.
9897 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
9899         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
9900         (ISA_AVOID_DIV_HILO): New macro.
9901         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
9902         (ISA_HAS_DDIV): Likewise.
9904 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9906         * doc/invoke.texi (fabi-version): Correct number of occurrences.
9908 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9910         * doc/invoke.texi (fabi-version): Spelling fix.
9912 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9914         PR c++/70182
9915         * doc/invoke.texi (fabi-version): Mention mangling fix for
9916         operator names.
9918 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9920         PR c++/77489
9921         * doc/invoke.texi (fabi-version): Document discriminator mangling.
9923 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
9925         PR target/78875
9926         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
9927         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
9928         the new options.
9929         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
9930         flexible settings.
9931         (stack_protect_test): Ditto.
9932         * config/rs6000/rs6000.opt (mstack-protector-guard=,
9933         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
9934         options.
9935         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
9936         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
9937         -mstack-protector-guard-offset=.
9938         (RS/6000 and PowerPC Options): Ditto.
9940 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
9942         * config/i386/i386.h (MASK_CLASS_P): New define.
9943         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
9944         there are no registers from different register sets also when
9945         mask registers are used.  Update function comment.
9946         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
9947         to (*k/*r) and (*k/*km) alternatives.
9949 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
9951         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
9952         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
9953         (EH_RETURN_HANDLER_RTX): New define.
9954         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
9955         Force frame pointer in EH return functions.
9956         (aarch64_expand_epilogue): Add barrier for eh_return.
9957         (aarch64_final_eh_return_addr): Remove.
9958         (aarch64_eh_return_handler_rtx): New function.
9959         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
9960         Remove.
9961         (aarch64_eh_return_handler_rtx): New prototype.
9963 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9965         * config/rs6000/altivec.h (vec_rlmi): New #define.
9966         (vec_vrlnm): Likewise.
9967         (vec_rlnm): Likewise.
9968         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
9969         (UNSPEC_VRLNM): Likewise.
9970         (VIlong): New mode iterator.
9971         (altivec_vrl<VI_char>mi): New define_insn.
9972         (altivec_vrl<VI_char>nm): Likewise.
9973         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
9974         function entry.
9975         (VRLDNM): Likewise.
9976         (RLNM): New polymorphic function entry.
9977         (VRLWMI): New monomorphic function entry.
9978         (VRLDMI): Likewise.
9979         (RLMI): New polymorphic function entry.
9980         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
9981         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
9982         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
9983         vec_vrlnm.
9985 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
9987         PR debug/78839
9988         * dwarf2out.c (field_byte_offset): Restore the
9989         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
9990         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
9991         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
9992         of build2 + fold.
9994 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
9996         PR ada/67205
9997         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
9999 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10001         PR debug/71669
10002         * dwarf2out.c (add_data_member_location_attribute): For constant
10003         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
10004         instead of DW_AT_data_member_location, DW_AT_bit_offset and
10005         DW_AT_byte_size attributes.
10007 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10009         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
10010         after forcing to constant memory when the code model is medium.
10012 2017-01-17  Julia Koval  <julia.koval@intel.com>
10014         PR target/76731
10015         * config/i386/avx512fintrin.h
10016         (_mm512_i32gather_ps): Change __addr type to void const*.
10017         (_mm512_mask_i32gather_ps): Ditto.
10018         (_mm512_i32gather_pd): Ditto.
10019         (_mm512_mask_i32gather_pd): Ditto.
10020         (_mm512_i64gather_ps): Ditto.
10021         (_mm512_mask_i64gather_ps): Ditto.
10022         (_mm512_i64gather_pd): Ditto.
10023         (_mm512_mask_i64gather_pd): Ditto.
10024         (_mm512_i32gather_epi32): Ditto.
10025         (_mm512_mask_i32gather_epi32): Ditto.
10026         (_mm512_i32gather_epi64): Ditto.
10027         (_mm512_mask_i32gather_epi64): Ditto.
10028         (_mm512_i64gather_epi32): Ditto.
10029         (_mm512_mask_i64gather_epi32): Ditto.
10030         (_mm512_i64gather_epi64): Ditto.
10031         (_mm512_mask_i64gather_epi64): Ditto.
10032         (_mm512_i32scatter_ps): Change __addr type to void*.
10033         (_mm512_mask_i32scatter_ps): Ditto.
10034         (_mm512_i32scatter_pd): Ditto.
10035         (_mm512_mask_i32scatter_pd): Ditto.
10036         (_mm512_i64scatter_ps): Ditto.
10037         (_mm512_mask_i64scatter_ps): Ditto.
10038         (_mm512_i64scatter_pd): Ditto.
10039         (_mm512_mask_i64scatter_pd): Ditto.
10040         (_mm512_i32scatter_epi32): Ditto.
10041         (_mm512_mask_i32scatter_epi32): Ditto.
10042         (_mm512_i32scatter_epi64): Ditto.
10043         (_mm512_mask_i32scatter_epi64): Ditto.
10044         (_mm512_i64scatter_epi32): Ditto.
10045         (_mm512_mask_i64scatter_epi32): Ditto.
10046         (_mm512_i64scatter_epi64): Ditto.
10047         (_mm512_mask_i64scatter_epi64): Ditto.
10048         * config/i386/avx512pfintrin.h
10049         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
10050         (_mm512_mask_prefetch_i32gather_ps): Ditto.
10051         (_mm512_mask_prefetch_i64gather_pd): Ditto.
10052         (_mm512_mask_prefetch_i64gather_ps): Ditto.
10053         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
10054         (_mm512_prefetch_i32scatter_ps): Ditto.
10055         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
10056         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
10057         (_mm512_prefetch_i64scatter_pd): Ditto.
10058         (_mm512_prefetch_i64scatter_ps): Ditto.
10059         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
10060         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
10061         * config/i386/avx512vlintrin.h
10062         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
10063         (_mm_mmask_i32gather_ps): Ditto.
10064         (_mm256_mmask_i32gather_pd): Ditto.
10065         (_mm_mmask_i32gather_pd): Ditto.
10066         (_mm256_mmask_i64gather_ps): Ditto.
10067         (_mm_mmask_i64gather_ps): Ditto.
10068         (_mm256_mmask_i64gather_pd): Ditto.
10069         (_mm_mmask_i64gather_pd): Ditto.
10070         (_mm256_mmask_i32gather_epi32): Ditto.
10071         (_mm_mmask_i32gather_epi32): Ditto.
10072         (_mm256_mmask_i32gather_epi64): Ditto.
10073         (_mm_mmask_i32gather_epi64): Ditto.
10074         (_mm256_mmask_i64gather_epi32): Ditto.
10075         (_mm_mmask_i64gather_epi32): Ditto.
10076         (_mm256_mmask_i64gather_epi64): Ditto.
10077         (_mm_mmask_i64gather_epi64): Ditto.
10078         (_mm256_i32scatter_ps): Change __addr type to void*.
10079         (_mm256_mask_i32scatter_ps): Ditto.
10080         (_mm_i32scatter_ps): Ditto.
10081         (_mm_mask_i32scatter_ps): Ditto.
10082         (_mm256_i32scatter_pd): Ditto.
10083         (_mm256_mask_i32scatter_pd): Ditto.
10084         (_mm_i32scatter_pd): Ditto.
10085         (_mm_mask_i32scatter_pd): Ditto.
10086         (_mm256_i64scatter_ps): Ditto.
10087         (_mm256_mask_i64scatter_ps): Ditto.
10088         (_mm_i64scatter_ps): Ditto.
10089         (_mm_mask_i64scatter_ps): Ditto.
10090         (_mm256_i64scatter_pd): Ditto.
10091         (_mm256_mask_i64scatter_pd): Ditto.
10092         (_mm_i64scatter_pd): Ditto.
10093         (_mm_mask_i64scatter_pd): Ditto.
10094         (_mm256_i32scatter_epi32): Ditto.
10095         (_mm256_mask_i32scatter_epi32): Ditto.
10096         (_mm_i32scatter_epi32): Ditto.
10097         (_mm_mask_i32scatter_epi32): Ditto.
10098         (_mm256_i32scatter_epi64): Ditto.
10099         (_mm256_mask_i32scatter_epi64): Ditto.
10100         (_mm_i32scatter_epi64): Ditto.
10101         (_mm_mask_i32scatter_epi64): Ditto.
10102         (_mm256_i64scatter_epi32): Ditto.
10103         (_mm256_mask_i64scatter_epi32): Ditto.
10104         (_mm_i64scatter_epi32): Ditto.
10105         (_mm_mask_i64scatter_epi32): Ditto.
10106         (_mm256_i64scatter_epi64): Ditto.
10107         (_mm256_mask_i64scatter_epi64): Ditto.
10108         (_mm_i64scatter_epi64): Ditto.
10109         (_mm_mask_i64scatter_epi64): Ditto.
10110         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
10111         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
10112         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
10113         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
10114         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
10115         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
10116         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
10117         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
10118         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
10119         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
10120         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
10121         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
10122         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
10123         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
10124         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
10125         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
10126         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
10127         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
10128         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
10129         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
10130         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
10131         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
10132         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
10133         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
10134         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
10135         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
10136         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
10137         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
10138         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
10139         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
10140         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
10141         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
10142         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
10143         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
10144         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
10145         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
10146         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
10147         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
10148         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
10149         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
10150         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
10151         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
10152         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
10153         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
10154         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
10155         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
10156         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
10157         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
10158         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
10159         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
10160         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
10161         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
10162         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
10163         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
10164         definitions accordingly.
10166 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
10167             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
10169         PR target/79079
10170         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
10171         gen_lowpart.
10173 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
10175         PR target/79058
10176         * ira-conflicts.c (ira_build_conflicts): Update total conflict
10177         hard regs for inner regno.
10179 2017-01-17  Martin Liska  <mliska@suse.cz>
10181         PR ipa/71207
10182         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
10183         assumption and add comment.
10185 2017-01-17  Nathan Sidwell  <nathan@acm.org>
10187         * ipa-visibility.c (localize_node): New function, broken out of ...
10188         (function_and_variable_visibility): ... here. Call it.
10190 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
10192         PR middle-end/77445
10193         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
10194         correctly set frequency of oudgoing edge.
10195         (duplicate_thread_path): Fix profile updating.
10197 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10199         PR other/79046
10200         * configure.ac: Add GCC_BASE_VER.
10201         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
10202         version from BASE-VER file.
10203         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
10204         (gcc.o): Depend on $(BASEVER).
10205         * common.opt (dumpfullversion): New option.
10206         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
10207         * doc/invoke.texi: Document -dumpfullversion.
10208         * doc/install.texi: Document --with-gcc-major-version-only.
10209         * configure: Regenerated.
10211 2017-01-17  Richard Biener  <rguenther@suse.de>
10213         PR tree-optimization/71433
10214         * tree-vrp.c (register_new_assert_for): Merge same asserts
10215         on all incoming edges.
10216         (process_assert_insertions_for): Handle insertions at the
10217         beginning of BBs.
10219 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
10221         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
10222         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
10224 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10226         PR target/78633
10227         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
10228         RTL sharing.
10230 2017-01-17  Alan Modra  <amodra@gmail.com>
10232         PR target/79066
10233         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
10234         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
10235         symbolic stack limit when pic.
10237 2017-01-16  Martin Sebor  <msebor@redhat.com>
10239         PR tree-optimization/78608
10240         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
10242 2017-01-16  Jeff Law  <law@redhat.com>
10244         Revert:
10245         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
10246         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
10247         for several include directories that may be relative to sysroot.
10248         * config/i386/x-mingw32 (gplus_includedir): Define.
10249         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
10250         (native_system_includedir): Likewise.
10251         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
10252         override if TARGET_SYSTEM_ROOT is defined.
10253         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
10255         PR tree-optimization/79090
10256         PR tree-optimization/33562
10257         PR tree-optimization/61912
10258         PR tree-optimization/77485
10259         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
10260         and computed trims into the dump file.
10262 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
10264         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
10266 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
10268         PR c/79089
10269         * gimplify.c (gimplify_init_constructor): If want_value and
10270         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
10271         fix.
10273         PR target/79080
10274         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
10275         sequence.  Formatting fixes.
10276         (doloop_optimize): Formatting fixes.
10278         PR driver/49726
10279         * gcc.c (debug_level_greater_than_spec_func): New function.
10280         (static_spec_functions): Add debug-level-gt spec function.
10281         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
10282         !g0.
10283         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10284         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10285         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
10286         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
10287         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
10288         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
10290 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
10292         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
10293         QImode fixups to general and mask registers only.
10295 2017-01-16  Carl Love  <cel@us.ibm.com>
10297         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
10298         for built-in functions
10299         vector signed char vec_nabs (vector signed char)
10300         vector signed short vec_nabs (vector signed short)
10301         vector signed int vec_nabs (vector signed int)
10302         vector signed long long vec_nabs (vector signed long long)
10303         vector float vec_nabs (vector float)
10304         vector double vec_nabs (vector double)
10305         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
10306         and NABS overload.
10307         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
10308         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
10309         * doc/extend.texi: Update the documentation file for the new built-in
10310         functions.
10312 2017-01-16  Martin Sebor  <msebor@redhat.com>
10314         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
10315         message.
10317 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10319         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
10320         UNSPEC_VSX__XXSPLTD to require special splat handling.
10322 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
10324         PR bootstrap/78616
10325         * system.h: Poison strndup.
10327 2017-01-16  Alan Modra  <amodra@gmail.com>
10329         PR target/79098
10330         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
10331         use a switch.
10333 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
10335         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
10337 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
10339         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
10340         call recog here.  Assert that INSN_CODE (insn) is non-negative.
10342 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10344         PR target/72749
10345         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
10346         fallthrough.
10347         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
10348         in the currently scheduled RTL fragment.
10350 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10352         PR rtl-optimization/78751
10353         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
10354         give up.
10356 2017-01-14  Jeff Law  <law@redhat.com>
10358         PR tree-optimization/79090
10359         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
10360         variable length stores.
10361         (compute_trims): Delete dead assignment to *trim_tail.
10362         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
10363         zero length.
10365 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
10367         PR rtl-optimization/78626
10368         PR rtl-optimization/78727
10369         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
10370         of a block, and split such blocks after everything else is finished.
10372 2017-01-14  Alan Modra  <amodra@gmail.com>
10374         PR target/72749
10375         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
10376         target legitimate_combined_insn.
10377         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
10378         (rs6000_legitimate_combined_insn): New function.
10379         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
10380         all uses.
10381         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
10382         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
10383         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
10385 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
10387         * doc/frontends.texi (G++ and GCC): Remove references to Java.
10389 2017-01-13  Jeff Law  <law@redhat.com>
10391         PR tree-optimization/33562
10392         PR tree-optimization/61912
10393         PR tree-optimization/77485
10394         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
10395         a statement.
10396         (delete_dead_assignment): Likewise.
10397         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
10398         statement to delete_dead_call and delete_dead_assignment.
10400 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
10402         PR c/78304
10403         * substring-locations.c (format_warning_va): Strengthen case 1 so
10404         that both endpoints of the substring must be within the format
10405         range for just the substring to be printed.
10407 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
10409         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
10410         * config/i386/i386.c (ix86_target_string): Add missing options
10411         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
10412         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
10413         flags_other and ix86_target_other to flags2_other.  Display unknown
10414         isa2 options.
10415         (ix86_valid_target_attribute_inner_p): Add missing options and
10416         reorder options by implied ISAs, as in ix86_target_string.
10418 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10420         * hash-table.h (hash_table::too_empty_p): New function.
10421         (hash_table::expand): Use it.
10422         (hash_table::traverse): Likewise.
10423         (hash_table::empty_slot): Use sizeof (value_type) instead of
10424         sizeof (PTR) to convert bytes to elements.  Shrink the table
10425         if the current size is excessive for the current number of
10426         elements.
10428 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10430         * ira-costs.c (record_reg_classes): Break from the inner loop
10431         early once alt_fail is known to be true.  Update outer loop
10432         handling accordingly.
10434 2017-01-13  Jeff Law  <law@redhat.com>
10436         * tree-ssa-dse.c (decrement_count): New function.
10437         (increment_start_addr, maybe_trim_memstar_call): Likewise.
10438         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
10439         when we know the partially dead statement is a mem* function.
10441         PR tree-optimization/61912
10442         PR tree-optimization/77485
10443         * tree-ssa-dse.c: Include expr.h.
10444         (maybe_trim_constructor_store): New function.
10445         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
10447         PR tree-optimization/33562
10448         PR tree-optimization/61912
10449         PR tree-optimization/77485
10450         * doc/invoke.texi: Document new dse-max-object-size param.
10451         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
10452         * tree-ssa-dse.c: Include params.h.
10453         (dse_store_status): New enum.
10454         (initialize_ao_ref_for_dse): New, partially extracted from
10455         dse_optimize_stmt.
10456         (valid_ao_ref_for_dse, normalize_ref): New.
10457         (setup_live_bytes_from_ref, compute_trims): Likewise.
10458         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
10459         (maybe_trim_partially_dead_store): Likewise.
10460         (maybe_trim_complex_store): Likewise.
10461         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
10462         Track what bytes live from the original store.  Return tri-state
10463         for dead, partially dead or live.
10464         (dse_dom_walker): Add constructor, destructor and new private members.
10465         (delete_dead_call, delete_dead_assignment): New extracted from
10466         dse_optimize_stmt.
10467         (dse_optimize_stmt): Make a member of dse_dom_walker.
10468         Use initialize_ao_ref_for_dse.
10470         PR tree-optimization/33562
10471         PR tree-optimization/61912
10472         PR tree-optimization/77485
10473         * sbitmap.h (bitmap_count_bits): Prototype.
10474         (bitmap_clear_range, bitmap_set_range): Likewise.
10475         * sbitmap.c (bitmap_clear_range): New function.
10476         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
10478 2017-01-13  Martin Liska  <mliska@suse.cz>
10480         PR ipa/79043
10481         * function.c (set_cfun): Add new argument force.
10482         * function.h (set_cfun): Likewise.
10483         * ipa-inline-transform.c (inline_call): Use the function when
10484         strict alising from is dropped for function we inline to.
10486 2017-01-13  Richard Biener  <rguenther@suse.de>
10488         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
10489         for dumping GIMPLE INTEGER_CSTs.
10491 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10493         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
10494         to 201112L since C++17.
10496 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
10498         PR sanitizer/78887
10499         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
10500         if -fsanitize=kernel-address is present.
10502 2017-01-13  Richard Biener  <rguenther@suse.de>
10504         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
10505         as _Literal ( type ) number in case usual suffixes do not
10506         preserve all information.
10508 2017-01-13  Richard Biener  <rguenther@suse.de>
10510         PR tree-optimization/77283
10511         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
10512         and ssa-iterators.h.
10513         (is_feasible_trace): Implement a cost model based on joiner
10514         PHI node uses.
10516 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10518         PR target/79004
10519         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
10520         char or short to __float128/_Float128 directly.
10522 2017-01-12  Martin Sebor  <msebor@redhat.com>
10524         to -Wformat-overflow.
10525         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
10526         (min_bytes_remaining): Same.
10527         (get_string_length): Same.
10528         (format_string): Same.
10529         (format_directive): Same.
10530         (add_bytes): Same.
10531         (pass_sprintf_length::handle_gimple_call): Same.
10533 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
10535         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
10536         info.nowrite calls with no lhs that can't throw.  Return bool
10537         whether gsi_remove has been called or not.
10538         (pass_sprintf_length::handle_gimple_call): Return bool whether
10539         try_substitute_return_value called gsi_remove.  Formatting fix.
10540         (pass_sprintf_length::execute): Don't use gsi_remove if
10541         handle_gimple_call returned true.
10543         PR bootstrap/79069
10544         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
10545         be removed due to side-effects, don't remove following barrier nor
10546         turn the successor edge into fallthru edge.
10548 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10550         PR target/79044
10551         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
10552         element-reversing loads and stores as not swappable.
10554 2017-01-12  Nathan Sidwell  <nathan@acm.org>
10555             Nicolai Stange  <nicstange@gmail.com>
10557         * combine.c (try_combine): Don't ignore result of overlap checking
10558         loop.  Combine overlap & asm check into single loop.
10560 2017-01-12  Richard Biener  <rguenther@suse.de>
10562         * tree-pretty-print.c (dump_generic_node): Provide -gimple
10563         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
10565 2017-01-12  Richard Biener  <rguenther@suse.de>
10567         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
10568         and TS_TARGET_OPTION directly derive from TS_BASE.
10569         * tree-core.h (tree_optimization_option): Derive from tree_base.
10570         (tree_target_option): Likewise.
10572 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
10574         * config/i386/i386.c (memory_address_length): Increase len
10575         only when rip_relative_addr_p returns false.
10577 2017-01-11  Julia Koval  <julia.koval@intel.com>
10579         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
10580         (OPTION_MASK_ISA_SGX_SET): New.
10581         (ix86_handle_option): Handle OPT_msgx.
10582         * config.gcc: Added sgxintrin.h.
10583         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
10584         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
10585         * config/i386/i386.c (ix86_target_string): Add -msgx.
10586         (PTA_SGX): New.
10587         (ix86_option_override_internal): Handle new options.
10588         (ix86_valid_target_attribute_inner_p): Add sgx.
10589         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
10590         * config/i386/i386.opt: Add msgx.
10591         * config/i386/sgxintrin.h: New file.
10592         * config/i386/x86intrin.h: Add sgxintrin.h.
10594 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
10596         PR c++/71537
10597         * fold-const.c (maybe_nonzero_address): Return 1 for function
10598         local objects.
10599         (tree_single_nonzero_warnv_p): Don't handle function local objects
10600         here.
10602         PR c++/72813
10603         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
10604         of c-header.
10606 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
10608         PR driver/78877
10609         * opts.c: Include "spellcheck.h"
10610         (struct string_fragment): New struct.
10611         (struct edit_distance_traits<const string_fragment &>): New
10612         struct.
10613         (get_closest_sanitizer_option): New function.
10614         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
10616 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
10618         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
10619         by 12.
10620         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
10621         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
10622         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
10623         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
10624         for initial die_offset if dwarf_split_debug_info.
10625         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
10626         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
10627         fields.
10628         (output_skeleton_debug_sections): Formatting fix.  Use
10629         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
10630         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
10632 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
10634         * config/arm/cortex-a53.md: Add bypasses for
10635         cortex_a53_r2f_cvt.
10636         (cortex_a53_r2f): Only use for transfers.
10637         (cortex_a53_f2r): Likewise.
10638         (cortex_a53_r2f_cvt): Add reservation for conversions.
10639         (cortex_a53_f2r_cvt): Likewise.
10641 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
10643         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
10644         to all inlined functions, change static to extern.
10646 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
10648         PR target/78253
10649         * config/arm/arm.c (legitimize_pic_address): Handle reference to
10650         weak symbol.
10651         (arm_assemble_integer): Likewise.
10653 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
10655         * config.gcc: Use new awk script to check CPU, FPU and architecture
10656         parameters for --with-... options.
10657         * config/arm/parsecpu.awk: New file
10658         * config/arm/arm-cpus.in: New file.
10659         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
10660         files.
10661         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
10662         files.
10663         * config/arm/t-arm: Update dependency rules.
10664         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
10665         of processing .def files.
10666         * config/arm/genopt.sh: Deleted.
10667         * config/arm/gentune.sh: Deleted.
10668         * config/arm/arm-cores.def: Deleted.
10669         * config/arm/arm-arches.def: Deleted.
10670         * config/arm/arm-fpus.def: Deleted.
10671         * config/arm/arm-tune.md: Regenerated.
10672         * config/arm/arm-tables.opt: Regenerated.
10673         * config/arm/arm-cpu.h: New generated file.
10674         * config/arm/arm-cpu-data.h: New generated file.
10675         * config/arm/arm-cpu-cdata.h: New generated file.
10677 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
10679         PR lto/79042
10680         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
10681         bit.
10682         (input_varpool_node): Unpack dynamically_initialized bit.
10684 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10686         PR rtl-optimization/79032
10687         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
10688         the alignment of the adjusted memory reference against that of MODE,
10689         instead of the alignment of the original memory reference.
10691 2017-01-11  Martin Jambor  <mjambor@suse.cz>
10693         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
10694         test.
10695         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
10696         decorated functions.
10698 2017-01-11  Richard Biener  <rguenther@suse.de>
10700         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
10701         set range/nonnull info for PHI results.  Do not set it on
10702         stmts marked for removal.
10704 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
10706         * expr.c (store_field): In the bitfield case, fetch the return value
10707         from the registers before applying a single big-endian adjustment.
10708         Always do a final load for a BLKmode value not larger than a word.
10710 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
10712         PR c++/77949
10713         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
10714         that we correctly handle column numbers greater than
10715         LINE_MAP_MAX_COLUMN_NUMBER.
10717 2017-01-10  Martin Sebor  <msebor@redhat.com>
10719         PR middle-end/78245
10720         * gimple-ssa-sprintf.c (get_destination_size): Call
10721         {init,fini}object_sizes.
10722         * tree-object-size.c (addr_object_size): Adjust.
10723         (pass_through_call): Adjust.
10724         (pass_object_sizes::execute): Adjust.
10725         * tree-object-size.h (fini_object_sizes): Declare.
10727 2017-01-10  Martin Sebor  <msebor@redhat.com>
10729         PR tree-optimization/78775
10730         * builtins.c (get_size_range): Move...
10731         * calls.c: ...to here.
10732         (alloc_max_size): Accept zero argument.
10733         (operand_signed_p): Remove.
10734         (maybe_warn_alloc_args_overflow): Call get_size_range.
10735         * calls.h (get_size_range): Declare.
10737 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
10739         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
10740         from TI's devices.csv file as of September 2016.
10741         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
10743 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
10745         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
10746         * doc/invoke.texi: Likewise.
10747         * doc/md.texi: Likewise.
10748         * doc/objc.texi: Likewise.
10750 2017-01-10  Joshua Conner  <joshconner@google.com>
10752         * config/arm/fuchsia-elf.h: New file.
10753         * config/fuchsia.h: New file.
10754         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
10755         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
10756         targets.
10757         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
10759 2016-01-10  Richard Biener  <rguenther@suse.de>
10761         PR tree-optimization/79034
10762         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10763         Propagate out degenerate PHIs in the joiner.
10765 2017-01-10  Martin Liska  <mliska@suse.cz>
10767         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
10768         (sort_congruence_classes_by_decl_uid): Likewise.
10769         (sort_congruence_class_groups_by_decl_uid): Likewise.
10770         (sem_item_optimizer::merge_classes): Sort class, groups in these
10771         classes and members in the groups by DECL_UID of declarations.
10772         This would make merge operations stable.
10774 2017-01-10  Martin Liska  <mliska@suse.cz>
10776         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
10777         usage of m_classes_vec.
10778         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
10779         (sem_item_optimizer::get_group_by_hash): Likewise.
10780         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10781         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
10782         (sem_item_optimizer::verify_classes): Likewise.
10783         (sem_item_optimizer::process_cong_reduction): Likewise.
10784         (sem_item_optimizer::dump_cong_classes): Likewise.
10785         (sem_item_optimizer::merge_classes): Likewise.
10786         * ipa-icf.h (congruence_class_hash): Rename from
10787         congruence_class_group_hash.  Remove declaration of m_classes_vec.
10789 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
10791         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
10792         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
10793         * config.gcc: Add avx512vpopcntdqintrin.h.
10794         * config/i386/avx512vpopcntdqintrin.h: New.
10795         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
10796         * config/i386/i386-builtin-types.def: Add new types.
10797         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
10798         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
10799         __builtin_ia32_vpopcountq_v8di_mask): New.
10800         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10801         __AVX512VPOPCNTDQ__.
10802         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
10803         (PTA_AVX512VPOPCNTDQ): Define.
10804         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
10805         TARGET_AVX512VPOPCNTDQ_P): Define.
10806         * config/i386/i386.opt: Add mavx512vpopcntdq.
10807         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
10808         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
10810 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
10812         PR middle-end/77484
10813         * predict.def (PRED_CALL): Set to 67.
10815 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
10817         * expr.c (store_field): In the bitfield case, if the value comes from
10818         a function call and is of an aggregate type returned in registers, do
10819         not modify the field mode; extract the value in all cases if the mode
10820         is BLKmode and the size is not larger than a word.
10822 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
10824         PR target/71017
10825         * config/i386/cpuid.h: Fix undefined behavior.
10827 2017-01-04  Jeff Law  <law@redhat.com>
10829         PR tree-optimization/79007
10830         PR tree-optimization/67955
10831         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
10832         conservative for pt.null when flag_non_call_exceptions is on.
10834 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
10836         PR translation/79019
10837         PR translation/79020
10838         * params.def (PARAM_INLINE_MIN_SPEEDUP,
10839         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
10840         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
10841         in descriptions.
10842         * config/avr/avr.opt (maccumulate-args): Likewise.
10843         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
10844         * common.opt (freport-bug): Likewise.
10845         * cif-code.def (CIF_FINAL_ERROR): Likewise.
10846         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
10847         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
10848         translatable string.
10849         * config/i386/i386.c (function_value_32): Likewise.
10850         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
10851         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
10852         Likewise.
10853         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
10854         * common/config/msp430/msp430-common.c (msp430_handle_option):
10855         Likewise.
10856         * symtab.c (symtab_node::verify_base): Likewise.
10857         * opts.c (set_debug_level): Likewise.
10858         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
10859         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10860         missing whitespace to translatable strings.
10861         * config/avr/avr.md (bswapsi2): Fix typo in comment.
10862         * config/sh/superh.h: Likewise.
10863         * config/i386/xopintrin.h: Likewise.
10864         * config/i386/znver1.md: Likewise.
10865         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
10866         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
10867         * double-int.h (struct double_int): Likewise.
10868         * double-int.c (div_and_round_double): Likewise.
10869         * wide-int.cc: Likewise.
10870         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
10871         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
10872         * cfgcleanup.c (crossjumps_occured): Renamed to ...
10873         (crossjumps_occurred): ... this.
10874         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
10875         Adjust all uses.
10877         PR tree-optimization/78899
10878         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
10879         returning bool return struct loop *, NULL for failure and the new
10880         loop on success.
10881         (versionable_outer_loop_p): Don't version outer loop if it has
10882         dont_vectorized bit set.
10883         (tree_if_conversion): When versioning outer loop, ensure
10884         tree_if_conversion is performed also on the inner loop of the
10885         non-vectorizable outer loop copy.
10886         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
10887         LOOP_VECTORIZED in inner loop of the scalar outer loop and
10888         prevent vectorization of it.
10889         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
10890         the outer loop vectorization of the non-scalar version is attempted
10891         before vectorization of the inner loop in scalar version.  If
10892         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
10893         vectorization of its inner loop.
10894         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
10895         has 2 inner loops, rename also on edges from bb whose single pred
10896         is outer_loop->header.  Fix typo in function comment.
10898 2017-01-09  Martin Sebor  <msebor@redhat.com>
10900         PR bootstrap/79033
10901         * asan.c (asan_emit_stack_protection): Increase local buffer size
10902         to avoid snprintf truncation warning.
10904 2017-01-09  Andrew Pinski  <apinski@cavium.com>
10906         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
10907         to reference thunderx2t99 for the tuning structure
10908         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
10909         Rename to ...
10910         (thunderx2t99_extra_costs): This.
10911         * config/aarch64/aarch64-tune.md: Regenerate.
10912         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
10913         (vulcan_addrcost_table): This.
10914         (vulcan_regmove_cost): Rename to ...
10915         (thunderx2t99_regmove_cost): This.
10916         (vulcan_vector_cost): Rename to ...
10917         (thunderx2t99_vector_cost): this.
10918         (vulcan_branch_cost): Rename to ...
10919         (thunderx2t99_branch_cost): This.
10920         (vulcan_tunings): Rename to ...
10921         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
10922         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
10924 2017-01-09  Martin Jambor  <mjambor@suse.cz>
10926         PR ipa/78365
10927         PR ipa/78599
10928         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
10929         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
10930         (propagate_vr_accross_jump_function): Use the above function for all
10931         value range computations for pass-through jump functions and type
10932         converasion from explicit value range values.
10933         (ipcp_propagate_stage): Do not attempt to deduce types of formal
10934         parameters from TYPE_ARG_TYPES.
10935         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
10936         (ipa_write_node_info): Stream type of the actual argument.
10937         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
10939 2017-01-09  Martin Liska  <mliska@suse.cz>
10941         PR pch/78970
10942         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
10943         (lookup_compiler): Do not show error message with have_E.
10945 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
10947         PR tree-optimization/78938
10948         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
10949         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
10950         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
10951         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
10952         fixes.
10954 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10956         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
10957         is const0_rtx.
10959 2017-01-09  Richard Biener  <rguenther@suse.de>
10961         PR tree-optimization/78997
10962         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
10963         name condition properly.
10965 2017-01-09  Richard Biener  <rguenther@suse.de>
10967         PR debug/79000
10968         * dwarf2out.c (is_cxx): New overload with context.
10969         (is_naming_typedef_decl): Use it.
10971 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
10973         * invoke.texi (Option Summary): Correct spacing in option lists
10974         and add line breaks to fix over-long lines.
10976 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
10978         PR middle-end/17660
10980         * extend.texi (Common Variable Attributes): Add xref to GCC
10981         Internals manual to explain mode attribute keywords.
10983 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
10985         PR other/16519
10986         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
10987         and Preprocessor Options.
10988         (Options for Linking): Document -pthread here....
10989         (RS/6000 and PowerPC Options): ...not here.
10990         (Solaris 2 Options): ...or here.
10991         * doc/cppopts.texi: Document -pthread.
10993 2017-01-08  Martin Sebor  <msebor@redhat.com>
10995         PR middle-end/77708
10996         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
10997         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
10998         New member functions.
10999         (format_directive): Used them.
11000         (add_bytes): Same.
11001         (pass_sprintf_length::handle_gimple_call): Same.
11002         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
11003         to avoid truncation for any argument.
11004         (extract_affine_mul): Same.
11005         * tree.c (get_file_function_name): Same.
11007 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11009         PR middle-end/77484
11010         * predict.def (PRED_INDIR_CALL): Set to 86.
11012 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11014         PR preprocessor/54124
11015         * doc/cppopts.texi: Reformat -d subtable to list the full name
11016         of the options.  Add cross-reference to the docs for the general
11017         compiler -d options.
11018         * doc/invoke.texi (Developer Options): Add cross-reference to the
11019         preprocessor-specific -d option documentation.
11021 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11023         PR preprocessor/13498
11024         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
11025         redudant material, and reflect new command-line options.
11026         (System Headers): Likewise.
11028 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11030         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
11031         -isystem, and -idirafter.  Copy-edit.
11032         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
11033         default for -ftrack-macro-expansion.  Delete obsolete and
11034         badly-formatted implementation details about -fdebug-cpp output.
11035         * doc/cppwarnopts.texi: Copy-edit.
11037 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
11039         PR c++/72803
11040         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11041         that the transition from a max line width >= 1<<10 to narrower
11042         lines works correctly.
11044 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
11046         * doc/options.texi (PerFunction): New.
11047         * opt-functions.awk (switch_flags): Map both Optimization and
11048         PerFunction to CL_OPTIMIZATION.
11049         * opth-gen.awk: Test for PerFunction flag along with
11050         Optimization.
11051         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
11052         it only when the latter is present.  Skip those that don't in
11053         the hash function generator.
11054         * common.opt (fvar-tracking): Mark as PerFunction instead of
11055         Optimization.
11056         (fvar-tracking-assignments): Likewise.
11057         (fvar-tracking-assignments-toggle): Likewise.
11058         (fvar-tracking-uninit): Likewise.
11060 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
11062         PR translation/79018
11063         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
11064         the and store.
11066 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
11068         PR target/57583
11069         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
11070         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
11071         TARGET_LONG_JUMP_TABLE_OFFSETS.
11072         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11073         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11074         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
11075         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
11076         * config/m68k/m68k.md (tablejump expander): Likewise.
11077         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
11078         TARGET_LONG_JUMP_TABLE_OFFSETS.
11079         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
11080         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
11082 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11083             David Holsgrove <david.holsgrove@xilinx.com>
11085         * common/config/microblaze/microblaze-common.c
11086         (TARGET_EXCEPT_UNWIND_INFO): Remove.
11087         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
11088         New prototype.
11089         * config/microblaze/microblaze.c (microblaze_must_save_register)
11090         (microblaze_expand_epilogue, microblaze_return_addr): Handle
11091         calls_eh_return.
11092         (microblaze_eh_return): New function.
11093         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
11094         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
11095         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
11096         * config/microblaze/microblaze.md (eh_return): New pattern.
11098 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
11100         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
11101         GCC_DIAGNOSTIC_STRINGIFY): Define.
11103         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
11105 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11107         * config/arm/arm.md (<mcrr>): New.
11108         (<mrrc>): New.
11109         * config/arm/arm.c (arm_arch5te): New.
11110         (arm_option_override): Set arm_arch5te.
11111         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
11112         and mrrc2.
11113         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
11114         (arm_mcrr_qualifiers): ... this. New.
11115         (MRRC_QUALIFIERS): Define to...
11116         (arm_mrrc_qualifiers): ... this. New.
11117         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
11118         __arm_mrrc2): New.
11119         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
11120         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
11121         (MRRCI, mrrc, MRRC): New.
11122         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
11123         VUNSPEC_MRRC2): New.
11125 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11127         * config/arm/arm.md (<mcr>): New.
11128         (<mrc>): New.
11129         * config/arm/arm.c (arm_coproc_builtin_available): Add
11130         support for mcr, mrc, mcr2 and mrc2.
11131         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
11132         (arm_mcr_qualifiers): ... this. New.
11133         (MRC_QUALIFIERS): Define to ...
11134         (arm_mrc_qualifiers): ... this. New.
11135         (MCR_QUALIFIERS): Define to ...
11136         (arm_mcr_qualifiers): ... this. New.
11137         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
11138         __arm_mrc2): New.
11139         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
11140         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
11141         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
11142         VUNSPEC_MRC2): New.
11144 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11146         * config/arm/arm.md (*ldc): New.
11147         (*stc): New.
11148         (<ldc>): New.
11149         (<stc>): New.
11150         * config/arm/arm.c (arm_coproc_builtin_available): Add
11151         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
11152         (arm_coproc_ldc_stc_legitimate_address): New.
11153         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
11154         'qualifier_const_pointer'.
11155         (LDC_QUALIFIERS): Define to...
11156         (arm_ldc_qualifiers): ... this. New.
11157         (STC_QUALIFIERS): Define to...
11158         (arm_stc_qualifiers): ... this. New.
11159         * config/arm/arm-protos.h
11160         (arm_coproc_ldc_stc_legitimate_address): New.
11161         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
11162         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
11163         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
11164         stc2, stcl, stc2l): New.
11165         * config/arm/constraints.md (Uz): New.
11166         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
11167         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
11168         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
11169         VUNSPEC_STC2L): New.
11171 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11173         * config/arm/arm.md (<cdp>): New.
11174         * config/arm/arm.c (neon_const_bounds): Rename this ...
11175         (arm_const_bounds): ... this.
11176         (arm_coproc_builtin_available): New.
11177         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
11178         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
11179         (CDP_QUALIFIERS): Define to...
11180         (arm_cdp_qualifiers): ... this. New.
11181         (void_UP): Define.
11182         (arm_expand_builtin_args): Add case for 6 arguments.
11183         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
11184         (arm_const_bounds): ... this.
11185         (arm_coproc_builtin_available): New.
11186         * config/arm/arm_acle.h (__arm_cdp): New.
11187         (__arm_cdp2): New.
11188         * config/arm/arm_acle_builtins.def (cdp): New.
11189         (cdp2): New.
11190         * config/arm/iterators.md (CDPI,CDP,cdp): New.
11191         * config/arm/neon.md: Rename all 'neon_const_bounds' to
11192         'arm_const_bounds'.
11193         * config/arm/types.md (coproc): New.
11194         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
11195         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
11196         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
11197         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
11199 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11201         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
11202         (UBINOP_QUALIFIERS): New.
11203         (si_UP): Define.
11204         (acle_builtin_data): New. Change comment.
11205         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
11206         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
11207         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
11208         arm_acle_builtins.def.
11209         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
11210         (arm_init_acle_builtins): New.
11211         (CRC32_BUILTIN): Remove.
11212         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
11213         crc32cb, crc32ch and crc32cw.
11214         (arm_init_crc32_builtins): Remove.
11215         (arm_init_builtins): Use arm_init_acle_builtins rather
11216         than arm_init_crc32_builtins.
11217         (arm_expand_acle_builtin): New.
11218         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
11219         * config/arm/arm_acle_builtins.def: New.
11221 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11223         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
11224         (arm_builtin_datum): ... this.
11225         (arm_init_neon_builtin): Rename to ...
11226         (arm_init_builtin): ... this. Add a new parameters PREFIX
11227         and USE_SIG_IN_NAME.
11228         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
11229         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
11230         'arm_builtin_datum'.
11231         (arm_init_vfp_builtins): Likewise.
11232         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
11233         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
11234         (arm_expand_neon_args): Rename to ...
11235         (arm_expand_builtin_args): ... this. Rename builtin_arg
11236         enum values and differentiate between ARG_BUILTIN_MEMORY
11237         and ARG_BUILTIN_NEON_MEMORY.
11238         (arm_expand_neon_builtin_1): Rename to ...
11239         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
11240         values, arm_expand_builtin_args and add bool parameter NEON.
11241         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
11242         (arm_expand_vfp_builtin): Likewise.
11243         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
11245 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11247         PR middle-end/77484
11248         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
11249         * predict.c (tree_estimate_probability_bb): Reverse direction of
11250         polymorphic call predictor.
11252 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
11254         * passes.c (execute_one_pass): Split out pass-skipping logic into...
11255         (determine_pass_name_match): ...this new function and...
11256         (should_skip_pass_p): ...this new function.
11258 2017-01-06  Nathan Sidwell  <nathan@acm.org>
11260         * ipa-visibility.c (function_and_variable_visibility): Reformat
11261         comments and long lines.  Remove extrneous if.
11262         * symtab.c (symtab_node::make_decl_local): Fix code format.
11263         (symtab_node::set_section_for_node): Fix comment typo.
11265 2017-01-06  Martin Liska  <mliska@suse.cz>
11267         PR bootstrap/79003
11268         * lra-constraints.c: Rename invariant to lra_invariant.
11269         * predict.c (set_even_probabilities): Initialize e to NULL.
11271 2017-01-05  Martin Sebor  <msebor@redhat.com>
11273         PR tree-optimization/78910
11274         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
11275         (format_integer): Correct off-by-one error in the handling
11276         of precision with negative numbers in signed conversions..
11278 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11280         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
11282 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11284         PR tree-optimization/71016
11285         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
11286         factor_out_conditional_conversion.  Formatting fix.
11287         (factor_out_conditional_conversion): Add cond_stmt argument.
11288         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
11289         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
11290         Formatting fix.
11292 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
11294         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
11295         read-rtl-function.o, and selftest-rtl.o.
11296         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
11297         (selftest::aarch64_test_loading_full_dump): New function.
11298         (selftest::aarch64_run_selftests): New function.
11299         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
11300         selftest::aarch64_run_selftests.
11301         * config/i386/i386.c
11302         (selftest::ix86_test_loading_dump_fragment_1): New function.
11303         (selftest::ix86_test_loading_call_insn): New function.
11304         (selftest::ix86_test_loading_full_dump): New function.
11305         (selftest::ix86_test_loading_unspec): New function.
11306         (selftest::ix86_run_selftests): Call the new functions.
11307         * emit-rtl.c (maybe_set_max_label_num): New function.
11308         * emit-rtl.h (maybe_set_max_label_num): New decl.
11309         * function.c (instantiate_decls): Guard call to
11310         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
11311         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
11312         "static".
11313         * gensupport.c (gen_reader::gen_reader): Pass "false"
11314         for new "compact" param of rtx_reader.
11315         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
11316         rather than an empty string for NULL strings.
11317         * read-md.c: Potentially include config.h rather than bconfig.h.
11318         Wrap include of errors.h with #ifdef GENERATOR_FILE.
11319         (have_error): New global, copied from errors.c.
11320         (md_reader::read_name): Rename to...
11321         (md_reader::read_name_1): ...this, adding "out_loc" param,
11322         and converting "missing name or number" to returning false, rather
11323         than failing.
11324         (md_reader::read_name): Reimplement in terms of read_name_1.
11325         (md_reader::read_name_or_nil): New function.
11326         (md_reader::read_string): Handle "(nil)" by returning NULL.
11327         (md_reader::md_reader): Add new param "compact".
11328         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
11329         (md_reader::read_file): New method.
11330         * read-md.h (md_reader::md_reader): Add new param "compact".
11331         (md_reader::read_file): New method.
11332         (md_reader::is_compact): New accessor.
11333         (md_reader::read_name): Convert return type from void to file_location.
11334         (md_reader::read_name_or_nil): New decl.
11335         (md_reader::read_name_1): New decl.
11336         (md_reader::m_compact): New field.
11337         (noop_reader::noop_reader): Pass "false" for new "compact" param
11338         of rtx_reader.
11339         (rtx_reader::rtx_reader): Add new "compact" param.
11340         (rtx_reader::read_rtx_operand): Make virtual and convert return
11341         type from void to rtx.
11342         (rtx_reader::read_until): New decl.
11343         (rtx_reader::handle_any_trailing_information): New virtual function.
11344         (rtx_reader::postprocess): New virtual function.
11345         (rtx_reader::finalize_string): New virtual function.
11346         (rtx_reader::m_in_call_function_usage): New field.
11347         (rtx_reader::m_reuse_rtx_by_id): New field.
11348         * read-rtl-function.c: New file.
11349         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
11350         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
11351         (selftest::verify_three_block_rtl_cfg): New decl.
11352         * read-rtl-function.h: New file.
11353         * read-rtl.c: Potentially include config.h rather than bconfig.h.
11354         For host, include function.h, memmodel.h, and emit-rtl.h.
11355         (one_time_initialization): New function.
11356         (struct compact_insn_name): New struct.
11357         (compact_insn_names): New array.
11358         (find_code): Handle insn codes in compact dumps.
11359         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
11360         (bind_subst_iter_and_attr): Likewise.
11361         (add_condition_to_string): Likewise.
11362         (add_condition_to_rtx): Likewise.
11363         (apply_attribute_uses): Likewise.
11364         (add_current_iterators): Likewise.
11365         (apply_iterators): Likewise.
11366         (initialize_iterators): Guard usage of apply_subst_iterator with
11367         #ifdef GENERATOR_FILE.
11368         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
11369         (md_reader::read_mapping): Likewise.
11370         (add_define_attr_for_define_subst): Likewise.
11371         (add_define_subst_attr): Likewise.
11372         (read_subst_mapping): Likewise.
11373         (check_code_iterator): Likewise.
11374         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
11375         logic to...
11376         (one_time_initialization): New function.
11377         (rtx_reader::read_until): New method.
11378         (read_flags): New function.
11379         (parse_reg_note_name): New function.
11380         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
11381         Handle reuse_rtx ids.
11382         Wrap iterator lookup within #ifdef GENERATOR_FILE.
11383         Add parsing support for RTL dumps, mirroring the special-cases in
11384         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
11385         values, and calling handle_any_trailing_information.
11386         (rtx_reader::read_rtx_operand): Convert return type from void
11387         to rtx, returning return_rtx.  Handle case 'e'.  Call
11388         finalize_string on XSTR and XTMPL fields.
11389         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
11390          "(nil)" values were omitted.  Call the postprocess vfunc on the
11391         return_rtx.
11392         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
11393         class ctor.  Initialize m_in_call_function_usage.  Call
11394         one_time_initialization.
11395         * rtl-tests.c (selftest::test_uncond_jump): Call
11396         set_new_first_and_last_insn.
11397         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
11398         * selftest-rtl.c: New file.
11399         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
11400         (selftest::get_insn_by_uid): New decl.
11401         * selftest-run-tests.c (selftest::run_tests): Call
11402         read_rtl_function_c_tests.
11403         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
11404         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
11405         dumps.
11407 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
11409         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
11410         operands in a special way.  Assert that pos+len <= mode precision.
11412 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11414         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
11415         3 argument Alias with unlimited for the negative form.
11416         (fno-vect-cost-model): Removed.
11418 2017-01-05  Martin Liska  <mliska@suse.cz>
11420         * hsa-gen.c (gen_hsa_divmod): New function.
11421         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
11423 2017-01-05  Martin Liska  <mliska@suse.cz>
11425         PR pch/78970
11426         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
11427         header.
11429 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11431         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
11432         small constant length operands.
11434 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11436         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
11437         between loop iterations.
11439 2017-01-05  Martin Liska  <mliska@suse.cz>
11441         PR sanitizer/78815
11442         * gimplify.c (gimplify_decl_expr): Compare to
11443         asan_poisoned_variables instread of checking flags.
11444         (gimplify_target_expr): Likewise.
11445         (gimplify_expr): Likewise.
11446         (gimplify_function_tree): Conditionally initialize
11447         asan_poisoned_variables.
11449 2017-01-04  Jeff Law  <law@redhat.com>
11451         PR tree-optimizatin/78812
11452         * rtl.h (contains_mem_rtx_p): Prototype.
11453         * ifcvt.c (containts_mem_rtx_p): Move from here to...
11454         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
11455         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
11456         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
11457         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
11459 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11461         * input.c (assert_char_at_range): Default-initialize actual_range.
11463 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11465         * df-scan.c (df_ref_create_structure): Make regno unsigned,
11466         to match the caller.
11468 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11470         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
11471         insns after final jump in test to emit dummy move.
11473 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11475         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
11476         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
11478 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11480         * multiple_target.c (create_dispatcher_calls): Init e_next.
11481         * tree-ssa-loop-split.c (split_loop): Init border.
11482         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
11483         scalar_type.
11485 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11487         PR target/71977
11488         PR target/70568
11489         PR target/78823
11490         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
11491         (altivec_register_operand): Do not return true if the operand
11492         contains a SUBREG mixing SImode and SFmode.
11493         (vsx_register_operand): Likewise.
11494         (vsx_reg_sfsubreg_ok): New predicate.
11495         (vfloat_operand): Do not return true if the operand contains a
11496         SUBREG mixing SImode and SFmode.
11497         (vint_operand): Likewise.
11498         (vlogical_operand): Likewise.
11499         (gpc_reg_operand): Likewise.
11500         (int_reg_operand): Likewise.
11501         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
11502         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
11503         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
11504         SImode and SFmode.
11505         (rs6000_emit_move_si_sf_subreg): New helper function.
11506         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
11507         fixup SUBREGs involving SImode and SFmode.
11508         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
11509         numbers for the new peephole2 optimization.
11510         (peephole2 for SFmode unions): New peephole2 to optimize cases in
11511         the GLIBC math library that do AND/IOR/XOR operations on single
11512         precision floating point.
11513         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
11514         target macros to say whether we need to avoid SUBREGs mixing
11515         SImode and SFmode.
11516         (TARGET_ALLOW_SF_SUBREG): Likewise.
11517         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
11518         (UNSPEC_SI_FROM_SF): Likewise.
11519         (iorxor): Change spacing.
11520         (and_ior_xor): New iterator for AND, IOR, and XOR.
11521         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
11522         (movdi_from_sf_zero_ext): Likewise.
11523         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
11524         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
11525         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
11526         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
11527         (fms<mode>4): Likewise.
11528         (fnma<mode>4): Likewise.
11529         (fnms<mode>4): Likewise.
11530         (nfma<mode>4): Likewise.
11531         (nfms<mode>4): Likewise.
11533 2017-01-04  Marek Polacek  <polacek@redhat.com>
11535         PR c++/64767
11536         * doc/invoke.texi: Document -Wpointer-compare.
11538 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11540         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
11541         RejectNegative.
11543         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
11544         descriptions for -gdwarf-5 and emit them as uleb128 instead of
11545         2-byte data.
11547 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11549         PR target/78056
11550         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
11551         documentation of the powerpc_popcntb_ok attribute.
11552         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11553         code to issue warning messages if a requested CPU configuration is
11554         not supported by the binary (assembler and loader) toolchain.
11555         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
11556         made to define a built-in function that has been disabled.
11557         (paired_init_builtins): Add assertion to prevent ICE if attempt is
11558         made to define a built-in function that has been disabled.
11559         (altivec_init_builtins): Add comment explaining why definition
11560         of the DST built-in functions is not preceded by an assertion
11561         check.  Add assertions to prevent ICE if attempts are made to
11562         define an altivec predicate or an abs* built-in function that has
11563         been disabled.
11564         (htm_init_builtins): Add comment explaining why definition of the
11565         htm built-in functions is not preceded by an assertion check.
11567 2017-01-04  Jeff Law  <law@redhat.com>
11569         PR tree-optimizatin/67955
11570         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
11571         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
11572         the points-to solution does not include pt_null.  Use DECL_PT_UID
11573         unconditionally.
11575 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
11577         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
11578         Use gen_int_mode instead of gen_lopwart for const_int operands.
11580 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11582         PR tree-optimization/71563
11583         * match.pd: Simplify X << Y into X if Y is known to be 0 or
11584         out of range value - has low bits known to be zero.
11586 2017-01-04  Alan Modra  <amodra@gmail.com>
11588         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
11589         * configure: Regenerate.
11590         * config.in: Regenerate.
11592 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11594         PR bootstrap/77569
11595         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
11596         a substring of the message, but strcmp with the whole message.  Ifdef
11597         ENABLE_NLS, translate the message first using dgettext.
11599 2017-01-03  Jeff Law  <law@redhat.com>
11601         PR tree-optimizatin/78856
11602         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
11603         (mark_threaded_blocks): Remove code to truncate thread paths that
11604         cross multiple loop headers.  Instead invalidate the cached loop
11605         iteration information and handle case of a thread path walking
11606         into an irreducible region.
11608 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11610         PR target/78900
11611         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
11612         assertions.  Add support for doing the signbit if the IEEE 128-bit
11613         floating point value is in a GPR.
11614         * config/rs6000/rs6000.md (Fsignbit): Delete.
11615         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
11616         Update the length attribute if the value is in a GPR.
11617         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
11618         the sign or zero extension instruction, since the value is always 0/1.
11619         (signbit<mode>2_dm2): Delete using <Fsignbit>.
11621         PR target/78953
11622         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
11623         extracting SImode to a GPR register so that we can generate a
11624         store, limit the vector to be in a traditional Altivec register
11625         for the vextuwrx instruction.
11627 2017-01-03  Ian Lance Taylor  <iant@google.com>
11629         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
11631 2017-01-03  Martin Sebor  <msebor@redhat.com>
11633         PR tree-optimization/78696
11634         * gimple-ssa-sprintf.c (format_floating): Correct handling of
11635         precision.  Use MPFR for %f for greater fidelity.  Correct handling
11636         of %g.
11637         (pass_sprintf_length::compute_format_length): Set width and precision
11638         specified by asrerisk to void_node for vararg functions.
11639         (try_substitute_return_value): Adjust dump output.
11641 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
11643         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
11645 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11647         * doc/invoke.texi (SPARC options): Document -mlra as the default.
11648         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
11649         -mlra/-mno-lra was passed to the compiler.
11651 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
11653         PR rtl-optimization/65618
11654         * emit-rtl.c (try_split): Move initialization of "before" and
11655         "after" to just before the call to emit_insn_after_setloc.
11657 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
11659         * doc/md.texi (Standard Names): Remove reference to Java frontend.
11661 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
11663         * dwarf2out.c (gen_enumeration_type_die): When
11664         -gno-strict-dwarf, add a DW_AT_encoding attribute.
11666 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
11668         PR tree-optimization/78965
11669         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11670         Change first argument from const call_info & to call_info &.  For %n
11671         set info.nowrite to false.
11673         PR middle-end/78901
11674         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
11675         possibly throwing calls.
11677         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
11678         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
11679         and fns handling, rather than in a separate case SSA_NAME.
11681 2017-01-02  Jeff Law  <law@redhat.com>
11683         * config/darwin-driver.c (darwin_driver_init): Const-correctness
11684         fixes for first_period and second_period variables.
11686 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
11688         PR target/78967
11689         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
11690         (*insvqi_1): New insn pattern.
11691         (*insvqi_1_mem_rex64): Ditto.
11692         (*insvqi_2): Ditto.
11693         (*insvqi_3): Rename from *insvqi.
11695         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
11697 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
11699         * doc/cfg.texi (Edges): Remove reference to Java.
11700         (Maintaining the CFG): Ditto.
11702 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11704         PR middle-end/77674
11705         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
11706         transparent aliases.
11708 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11710         PR middle-end/77484
11711         * predict.def (PRED_CALL): Update hitrate.
11712         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
11713         * predict.c (tree_estimate_probability_bb): Split CALL predictor
11714         into direct/indirect/polymorphic variants.
11716 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11718         Update copyright years.
11720         * gcc.c (process_command): Update copyright notice dates.
11721         * gcov-dump.c (print_version): Ditto.
11722         * gcov.c (print_version): Ditto.
11723         * gcov-tool.c (print_version): Ditto.
11724         * gengtype.c (create_file): Ditto.
11725         * doc/cpp.texi: Bump @copying's copyright year.
11726         * doc/cppinternals.texi: Ditto.
11727         * doc/gcc.texi: Ditto.
11728         * doc/gccint.texi: Ditto.
11729         * doc/gcov.texi: Ditto.
11730         * doc/install.texi: Ditto.
11731         * doc/invoke.texi: Ditto.
11733 Copyright (C) 2017 Free Software Foundation, Inc.
11735 Copying and distribution of this file, with or without modification,
11736 are permitted in any medium without royalty provided the copyright
11737 notice and this notice are preserved.