Remove dump_file_info::dump_file_info and replace it with macro.
[official-gcc.git] / gcc / ChangeLog
blob2475e7afbc41a0e40a9e5f31ab6213b965f82e15
1 2017-05-30  Martin Liska  <mliska@suse.cz>
3         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
4         * dumpfile.h (struct dump_file_info): Remove ctors.
6 2017-05-30  Martin Liska  <mliska@suse.cz>
8         * predict.def: Fix GNU coding style.
10 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
12         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
13         Mark 'to' argument with ATTRIBUTE_UNUSED.
15 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
17         * config/xtensa/xtensa.c (xtensa_emit_call): Use
18         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
19         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
20         format string.
22 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
24         * doc/install.texi (Options specification): Restore entry of
25         --enable-sjlj-exceptions.
27 2017-05-27  Michael Eager  <eager@eagercon.com>
29         Revert:
30         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
32         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
34         * config/microblaze/microblaze.h
35         (FIXED_REGISTERS): Update in macro.
36         (CALL_USED_REGISTERS): Update in macro.
38 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
40         * doc/install.texi: Add links to macOS binary distributions.
42 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
44         PR bootstrap/80887
45         Revert:
46         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
48         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
50 2017-05-26  Martin Liska  <mliska@suse.cz>
52         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
54 2017-05-26  Martin Liska  <mliska@suse.cz>
56         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
57         always leading ';; '.
58         (dump_bb_info): Likewise.
59         (brief_dump_cfg): Likewise.
60         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
61         * dumpfile.c: Remove usage of TDF_VERBOSE.
62         * dumpfile.h (enum dump_kind): Likewise.
63         (dump_gimple_bb_header): Do not use TDF_COMMENT.
64         * print-tree.c (debug_verbose): Remove.
65         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
66         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
67         * tree-diagnostic.c (default_tree_printer): Replace
68         TDF_DIAGNOSTIC with TDF_SLIM.
70 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
72         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
73         in parameter loop, rather than loop_vinfo.
74         (create_intersect_range_checks): Ditto.
75         (vect_create_cond_for_alias_checks): Update call to above functions.
77 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
79         PR tree-optimization/80815
80         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
81         for merging runtime alias checks.  Handle negative DR_STEPs.
83 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
85         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
86         Move from ...
87         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
88         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
89         out code pruning runtime alias checks.
90         * tree-data-ref.c (prune_runtime_alias_test_list): New function
91         factored out from above.
92         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
93         Move from ...
94         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
95         ... to here.
96         (prune_runtime_alias_test_list): New decalaration.
98 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
100         * tree-vect-data-refs.c (compare_tree): Rename and move ...
101         * tree-data-ref.c (data_ref_compare_tree): ... to here.
102         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
103         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
104         (operator==, comp_dr_with_seg_len_pair): Ditto.
105         (vect_prune_runtime_alias_test_list): Ditto.
107 2017-05-26  Martin Liska  <mliska@suse.cz>
109         PR ipa/80663
110         * params.def: Bound partial-inlining-entry-probability param.
112 2017-05-26  Marek Polacek  <polacek@redhat.com>
114         PR sanitizer/80875
115         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
116         can be negated.
118 2017-05-26  Richard Biener  <rguenther@suse.de>
120         PR tree-optimization/80842
121         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
122         value.
124 2017-05-26  Richard Biener  <rguenther@suse.de>
126         PR tree-optimization/80844
127         * tree-vectorizer.c (adjust_simduid_builtins): Propagate
128         results.
130 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
132         * doc/md.texi (Machine Constraints): Update x86 family
133         machine constraints section to match 'config/i386/constraints.md'.
135 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
137         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
139 2017-05-25  Nathan Sidwell  <nathan@acm.org>
141         * doc/invoke.texi (--enable-languages): Update documentation.
143 2017-05-25  Martin Liska  <mliska@suse.cz>
145         * dumpfile.c: Add TDF_FOLDING.
146         * dumpfile.h (enum dump_kind): Likewise.
147         * genmatch.c (dt_simplify::gen_1): Use it.
149 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
151         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
153 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
155         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
156         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
158 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
160         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
161         * match.pd (X == C): Rewrite it here.
162         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
163         with_certain_nonzero_bits2): New predicates.
164         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
166 2017-05-24  Nathan Sidwell  <nathan@acm.org>
168         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
169         avoid warning.
171         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
172         warning.
174 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
176         * config/powerpcspe: New port.  Files are copied from the rs6000
177         port, with "rs6000" in filenames replaced by "powerpcspe".
179 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
181         PR rtl-optimization/80754
182         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
184 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
186         * config/sparc/sparc.md (length): Return the correct value for -mflat
187         sibcalls to match output_sibcall.
189 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
191         PR bootstrap/80860
192         PR bootstrap/80843
193         * config/rs6000/rs6000.c (struct machine_function): Add new field
194         n_components.
195         (rs6000_get_separate_components): Init that field, use it.
196         (rs6000_components_for_bb): Use the field.
198 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
200         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
202 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
204         PR middle-end/80823
205         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
207 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
209         PR target/80725
210         * config/s390/s390.c (s390_check_qrst_address): Check incoming
211         address against address_operand predicate.
212         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
214 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
216         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
217         parameters passed indirectly.
219 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
221         * config/i386/i386.md (*movdi_internal): Remove SSE4
222         alternative 18 (?r, *v).  Update insn attributes.
223         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
224         Update insn attributes.
225         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
226         Update insn attributes.
227         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
228         alternative 1 (r, v). Remove isa attribute.
229         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
230         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
231         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
233 2017-05-23  Tom de Vries  <tom@codesourcery.com>
235         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
236         dg-line directive.
238 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
240         * cgraphunit.c (symbol_table::process_new_functions): Update.
241         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
242         (inline_generate_summary): Rename to ...
243         (ipa_fn_summary_generate): ... this one.
244         (inline_read_summary): Rename to ...
245         (ipa_fn_summary_read): ... this one.
246         (inline_write_summary): Rename to ...
247         (ipa_fn_summary_write): ... this one.
248         (inline_free_summary): Rename to ...
249         (ipa_free_fn_summary): ... this one.
250         (pass_data_local_fn_summary, pass_local_fn_summary,
251         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
252         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
253         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
254         make_pass_ipa_fn_summary): New.
255         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
256         inline_write_summary, inline_free_summary): Remove.
257         (ipa_free_fn_summary) : New.
258         * ipa-inline.c (ipa_inline): Update.
259         (pass_ipa_inline): Do not generate summaries.
260         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
261         Remove.
262         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
263         and add pass_ipa_fn_summary.
264         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
265         New.
266         (make_pass_inline_parameters): Remove.
268 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
270         * omp-low.c (struct omp_context): Remove "default_kind" member.
271         Adjust all users.
273         * omp-offload.c (execute_oacc_device_lower): Remove the
274         parallelism dimensions function attributes for unparallelized
275         OpenACC kernels constructs.
277 2017-05-23  Martin Liska  <mliska@suse.cz>
279         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
280         functions.
281         (cgraph_edge::make_speculative): Likewise.
282         (cgraph_edge::resolve_speculation): Likewise.
283         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
284         (cgraph_node::dump): Likewise.
285         * cgraph.h: Likewise.
286         * cgraphunit.c (analyze_functions): Likewise.
287         (symbol_table::compile): Likewise.
288         * ipa-cp.c (print_all_lattices): Likewise.
289         (determine_versionability): Likewise.
290         (initialize_node_lattices): Likewise.
291         (ipcp_verify_propagated_values): Likewise.
292         (estimate_local_effects): Likewise.
293         (update_profiling_info): Likewise.
294         (create_specialized_node): Likewise.
295         (perhaps_add_new_callers): Likewise.
296         (decide_about_value): Likewise.
297         (decide_whether_version_node): Likewise.
298         (identify_dead_nodes): Likewise.
299         (ipcp_store_bits_results): Likewise.
300         * ipa-devirt.c (dump_targets): Likewise.
301         (ipa_devirt): Likewise.
302         * ipa-icf.c (sem_item::dump): Likewise.
303         (sem_function::equals): Likewise.
304         (sem_variable::equals): Likewise.
305         (sem_item_optimizer::read_section): Likewise.
306         (sem_item_optimizer::execute): Likewise.
307         (congruence_class::dump): Likewise.
308         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
309         (dump_inline_summary): Likewise.
310         (estimate_node_size_and_time): Likewise.
311         (inline_analyze_function): Likewise.
312         * ipa-inline-transform.c (inline_call): Likewise.
313         * ipa-inline.c (report_inline_failed_reason): Likewise.
314         (want_early_inline_function_p): Likewise.
315         (edge_badness): Likewise.
316         (update_edge_key): Likewise.
317         (inline_small_functions): Likewise.
318         * ipa-profile.c (ipa_profile): Likewise.
319         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
320         (ipa_make_edge_direct_to_target): Likewise.
321         (remove_described_reference): Likewise.
322         (ipa_impossible_devirt_target): Likewise.
323         (propagate_controlled_uses): Likewise.
324         (ipa_print_node_params): Likewise.
325         (ipcp_transform_function): Likewise.
326         * ipa-pure-const.c (pure_const_read_summary): Likewise.
327         (propagate_pure_const): Likewise.
328         * ipa-reference.c (generate_summary): Likewise.
329         (read_write_all_from_decl): Likewise.
330         (propagate): Likewise.
331         (ipa_reference_read_optimization_summary): Likewise.
332         * ipa-utils.c (ipa_merge_profiles): Likewise.
333         * ipa.c (walk_polymorphic_call_targets): Likewise.
334         (symbol_table::remove_unreachable_nodes): Likewise.
335         (ipa_single_use): Likewise.
336         * passes.c (execute_todo): Likewise.
337         * predict.c (drop_profile): Likewise.
338         * symtab.c (symtab_node::get_dump_name): New function.
339         (symtab_node::dump_name): Likewise.
340         (symtab_node::dump_asm_name): Likewise.
341         (symtab_node::dump_references): Likewise.
342         (symtab_node::dump_referring): Likewise.
343         (symtab_node::dump_base): Likewise.
344         (symtab_node::debug_symtab): Likewise.
345         * tree-sra.c (convert_callers_for_node): Likewise.
346         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
347         * value-prof.c (init_node_map): Likewise.
349 2017-05-23  Martin Liska  <mliska@suse.cz>
351         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
352         and symtab_node::debug_symtab to symbol_table::debug.
353         * cgraphunit.c (analyze_functions): Use the renamed function.
354         (symbol_table::compile): Likewise.
355         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
356         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
357         * passes.c (execute_todo): Likewise.
358         * symtab.c (symbol_table::dump): New function.
359         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
361 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
363         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
364         that nonconst implies exec.
366 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
368         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
369         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
370         (inline_edge_summary_vec): Turn into ...
371         (ipa_call_summaries): ... this one.
372         (redirect_to_unreachable, edge_set_predicate,
373         evaluate_properties_for_edge, inline_summary_alloc,
374         reset_ipa_call_summary, reset_inline_summary,
375         inline_summary_t::duplicate): Update.
376         (inline_edge_duplication_hook): Turn to ...
377         (ipa_call_summary_t::duplicate): ... this one.
378         (inline_edge_removal_hook): Turn to ...
379         (ipa_call_summary_t::remove): ... this one.
380         (dump_inline_edge_summary): Turn to ...
381         (dump_ipa_call_summary): ... this one.
382         (estimate_function_body_sizes): Update.
383         (inline_update_callee_summaries): Update.
384         (remap_edge_change_prob): Update.
385         (remap_edge_summaries): Update.
386         (inline_merge_summary): Update.
387         (do_estimate_edge_time): Update.
388         (inline_generate_summary): Update.
389         (inline_read_section): Update.
390         (inline_read_summary): Update.
391         (inline_free_summary): Update.
392         * ipa-inline.c (can_inline_edge_p): Update.
393         (compute_inlined_call_time): Update.
394         (want_inline_small_function_p): Update.
395         (edge_badness): Update.
396         (early_inliner): Update.
397         * ipa-inline.h (inline_edge_summary): Turn to ...
398         (ipa_call_summary): ... this one.
399         (ipa_call_summary_t): New class.
400         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
401         (ipa_call_summaries): New.
402         (inline_edge_summary): Remove.
403         (estimate_edge_growth): Update.
404         * ipa-profile.c (ipa_propagate_frequency_1): Update.
405         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
406         * ipa-split.c (execute_split_functions): Update.
407         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
409 2017-05-23  Tom de Vries  <tom@codesourcery.com>
411         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
412         attributes): Document rdrand effective target.
414 2017-05-23  Tom de Vries  <tom@codesourcery.com>
416         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
417         attributes): Sort alphabetically.
419 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
421         * config/avr/genmultilib.awk: Use gsub instead of gensub.
423 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
425         PR target/80718
426         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
427         V2DF/V2DI splat into two separate patterns, one that handles
428         registers, and the other that only handles memory.  Drop support
429         for splatting from a GPR on ISA 2.07 and then splitting the
430         splat into direct move and splat.
431         (vsx_splat_<mode>_reg): Likewise.
432         (vsx_splat_<mode>_mem): Likewise.
434 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
436         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
438 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
440         PR middle-end/80809
441         * omp-low.c (finish_taskreg_remap): New function.
442         (finish_taskreg_scan): If unit size of ctx->record_type
443         is non-constant, unshare the size expression and replace
444         decls in it with possible outer var refs.
446         PR middle-end/80809
447         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
448         GOVD_SHARED rather than GOVD_PRIVATE with it.
449         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
450         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
452         PR middle-end/80853
453         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
454         as last argument to build_outer_var_ref for pointer bases of array
455         section reductions.
457 2017-05-19  Martin Sebor  <msebor@redhat.com>
459         * print-tree.c (print_node): Print DECL_READ_P flag.
461 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
463         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
464         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
465         * cgraph.c: Likewise.
466         * cgraphunit.c: Likewise.
467         * gengtype.c: Likewise.
468         * ipa-cp.c: Likewise.
469         * ipa-devirt.c: Likewise.
470         * ipa-icf.c: Likewise.
471         * ipa-predicate.c: Likewise.
472         * ipa-profile.c: Likewise.
473         * ipa-prop.c: Likewise.
474         * ipa-split.c: Likewise.
475         * ipa.c: Likewise.
476         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
477         edge_predicate_pool, dump_inline_hints,
478         inline_summary::account_size_time, redirect_to_unreachable,
479         edge_set_predicate, set_hint_predicate,
480         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
481         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
482         inline_summary_t::remove, remap_hint_predicate_after_duplication,
483         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
484         ipa_call_summary_t::remove, initialize_growth_caches,
485         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
486         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
487         mark_modified, unmodified_parm_1, unmodified_parm,
488         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
489         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
490         compute_bb_predicates, will_be_nonconstant_expr_predicate,
491         will_be_nonconstant_predicate, record_modified_bb_info,
492         get_minimal_bb, record_modified, param_change_prob,
493         phi_result_unknown_predicate, predicate_for_phi_result,
494         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
495         estimate_function_body_sizes, compute_inline_parameters,
496         compute_inline_parameters_for_curren, pass_data_inline_parameters,
497         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
498         inline_update_callee_summaries, remap_edge_change_prob,
499         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
500         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
501         inline_analyze_function, inline_summary_t::insert,
502         inline_generate_summary, read_ipa_call_summary, inline_read_section,
503         inline_read_summary, write_ipa_call_summary, inline_write_summary,
504         inline_free_summary): Move to ipa-fnsummary.h
505         (predicate_t): Remove.
506         * ipa-fnsummary.c: New file.
507         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
508         (enum inline_hints_vals, inline_hints, agg_position_info,
509         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
510         inline_summaries, ipa_call_summary, ipa_call_summary_t,
511         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
512         dump_inline_summary, dump_inline_hints, inline_generate_summary,
513         inline_read_summary, inline_write_summary, inline_free_summary,
514         inline_analyze_function, initialize_inline_failed,
515         inline_merge_summary, inline_update_overall_summary,
516         compute_inline_parameters): Move to ipa-fnsummary.h
517         * ipa-fnsummary.h: New file.
518         * ipa-inline-transform.h: Include ipa-inline.h.
519         * ipa-inline.c: LIkewise.
521 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
523         * ipa-inline.c (edge_badness): Use inlined_time instead of
524         inline_summaries->get.
526 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
528         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
530 2017-05-22  Nathan Sidwell  <nathan@acm.org>
532         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
533         (fdump-lang): Document 'raw' option.
534         * dumpfile.h (TDI_tu): Delete.
535         * dumpfile.c (dump_files): Remove translation-unit.
536         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
538 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
540         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
541         command option from $(AWK) call.
542         * config/avr/genmultilib.awk: Simplify and rewrite so that it
543         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
544         [FORMAT]: Remove handling of variable.
545         * config/avr/t-multilib: Regenerate.
547 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
549         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
550         self_time.
551         (dump_inline_summary): Do not print self_time.
552         (estimate_function_body_sizes): Do not set self_time.
553         (compute_inline_parameters): Likewise.
554         (inline_read_section, inline_write_summary): Do not stream self_time.
555         * ipa-inline.h (inline_summary): Drop self_time.
557 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
559         * ipa-inline-analysis.c (account_size_time): Rename to ...
560         (inline_summary::account_size_time): ... this one.
561         (reset_ipa_call_summary): Turn to ...
562         (ipa_call_summary::reset): ... this one.
563         (reset_inline_summary): Turn to ...
564         (inline_summary::reset): ... this one.
565         (inline_summary_t::remove): Update.
566         (inline_summary_t::duplicate): Update.
567         (ipa_call_summary_t::remove): Update.
568         (dump_inline_summary): Update.
569         (estimate_function_body_sizes): Update.
570         (compute_inline_parameters): Update.
571         (estimate_node_size_and_time): Update.
572         (inline_merge_summary): Update.
573         (inline_update_overall_summary): Update.
574         (inline_read_section): Update.
575         (inline_write_summary): Update.
576         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
577         add account_size_time and reset member functions.
578         (ipa_call_summary): Add reset function.
579         * ipa-predicate.h (predicate::operator &): Constify.
581 2017-05-22  Richard Biener  <rguenther@suse.de>
583         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
585 2017-05-19  Jason Merrill  <jason@redhat.com>
587         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
589 2017-05-19  Marek Polacek  <polacek@redhat.com>
591         PR sanitizer/80800
592         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
593         TYPE_OVERFLOW_WRAPS checks.
595 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
597         * tree-core.h (enum omp_clause_default_kind): Add
598         "OMP_CLAUSE_DEFAULT_PRESENT".
599         * tree-pretty-print.c (dump_omp_clause): Handle it.
600         * gimplify.c (enum gimplify_omp_var_data): Add
601         "GOVD_MAP_FORCE_PRESENT".
602         (gimplify_adjust_omp_clauses_1): Map it to
603         "GOMP_MAP_FORCE_PRESENT".
604         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
606         * gimplify.c (oacc_default_clause): Clarify.
608 2017-05-19  Nathan Sidwell  <nathan@acm.org>
610         LANG_HOOK_REGISTER_DUMPS
611         * toplev.c (general_init): Call register dump lang hook.
612         * doc/invoke.texi: Document -fdump-lang option family.
613         * dumpfile.c (dump_files): Remove class dump here.
614         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
615         * dumpfile.h (tree_dump_index): Remove TDI_class.
616         * langhooks-def.h (lhd_register_dumps): Declare.
617         (LANG_HOOKS_REGISTER_DUMPS): Define.
618         (LANG_HOOKS_INITIALIZER): Add it.
619         * langhooks.c (lhd_register_dumps): Define.
620         * langhooks.h (struct lang_hooks): Add register_dumps.
622 2017-05-19  Nathan Sidwell  <nathan@acm.org>
624         * context.h (context::set_passes): New.
625         * context.c (context::context): Do not create pass manager.
626         * toplev.c (general_init): Create pass manager here.
628 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
630         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
631         use this splitter if two add or or instructions would also work for
632         the constant we want to generate.
634 2017-05-19  Richard Biener  <rguenther@suse.de>
636         PR build/80821
637         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
638         predicate evaluation.
640 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
642         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
643         add ctor.
644         * ipa-inline.c (want_inline_small_function_p): Do not cast to
645         unsigned.
647 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
649         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
650         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
651         (inline_edge_summary_vec): Turn into ...
652         (ipa_call_summaries): ... this one.
653         (redirect_to_unreachable, edge_set_predicate,
654         evaluate_properties_for_edge, inline_summary_alloc,
655         reset_ipa_call_summary, reset_inline_summary,
656         inline_summary_t::duplicate): Update.
657         (inline_edge_duplication_hook): Turn to ...
658         (ipa_call_summary_t::duplicate): ... this one.
659         (inline_edge_removal_hook): Turn to ...
660         (ipa_call_summary_t::remove): ... this one.
661         (dump_inline_edge_summary): Turn to ...
662         (dump_ipa_call_summary): ... this one.
663         (estimate_function_body_sizes): Update.
664         (inline_update_callee_summaries): Update.
665         (remap_edge_change_prob): Update.
666         (remap_edge_summaries): Update.
667         (inline_merge_summary): Update.
668         (do_estimate_edge_time): Update.
669         (inline_generate_summary): Update.
670         (inline_read_section): Update.
671         (inline_read_summary): Update.
672         (inline_free_summary): Update.
673         * ipa-inline.c (can_inline_edge_p): Update.
674         (compute_inlined_call_time): Update.
675         (want_inline_small_function_p): Update.
676         (edge_badness): Update.
677         (early_inliner): Update.
678         * ipa-inline.h (inline_edge_summary): Turn to ...
679         (ipa_call_summary): ... this one.
680         (ipa_call_summary_t): New class.
681         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
682         (ipa_call_summaries): New.
683         (inline_edge_summary): Remove.
684         (estimate_edge_growth): Update.
685         * ipa-profile.c (ipa_propagate_frequency_1): Update.
686         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
687         * ipa-split.c (execute_split_functions): Update.
688         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
690 2017-05-19  Richard Biener  <rguenther@suse.de>
692         PR middle-end/80764
693         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
695 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
697         * config/rs6000/rs6000.c (struct machine_function): Add field
698         fpr_is_wrapped_separately.
699         (rs6000_get_separate_components): Use 64 components.  Handle the
700         new FPR components.
701         (rs6000_components_for_bb): Handle the FPR components.
702         (rs6000_emit_prologue_components): Handle the FPR components.
703         (rs6000_emit_epilogue_components): Handle the FPR components.
704         (rs6000_set_handled_components): Handle the FPR components.
705         (rs6000_emit_prologue): Don't output prologue code for those FPRs
706         that are already separately shrink-wrapped.
707         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
708         that are already separately shrink-wrapped.
710 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
712         PR target/80510
713         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
714         New predicate.
716         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
717         (define_peephole2 for Altivec d-form load): Add peepholes to catch
718         cases where the register allocator uses a move and an offsettable
719         memory operation to/from a FPR register on ISA 2.06/2.07.
720         (define_peephole2 for Altivec d-form store): Likewise.
722 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
724         PR target/80799
725         * config/i386/mmx.md (*mov<mode>_internal): Enable
726         alternatives 11, 12, 13 and 14 also for 32bit targets.
727         Remove alternatives 15, 16, 17 and 18.
728         * config/i386/sse.md (vec_concatv2di): Change
729         alternative (!x, *y) to (x, ?!*Yn).
731 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
733         * dumpfile.h (enum dump_kind): Remove stray comma.
735 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
737         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
738         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
739         predicate::num_conditions
740         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
741         (CHANGED): turn into predicate::changed.
742         (agg_position_info): Move to ipa-predicate.h
743         (add_condition, predicate::add_clause, predicate::operator &=,
744         predicate::or_with, predicate::evaluate, predicate::probability,
745         dump_condition, dump_clause, predicate::dump,
746         predicate::remap_after_duplication, predicate::remap_after_inlining,
747         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
748         (evaluate_conditions_for_known_args): Update.
749         (set_cond_stmt_execution_predicate): Update.
750         * ipa-inline.h: Include ipa-predicate.h
751         (condition, inline_param_summary, conditions, agg_position_info,
752         predicate): Move to ipa-predicate.h
753         * ipa-predicate.c: New file.
754         * ipa-predicate.h: New file.
756 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
758         * final.c (leaf_function_p): Check we are not in a sequence.
760 2017-05-18  Martin Liska  <mliska@suse.cz>
762         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
763         * dumpfile.c (dump_register): Use new enum dump_kind.
764         (get_dump_file_name): Likewise.
765         (dump_enable_all): Likewise.
766         (dump_switch_p_1): Likewise.
767         (enable_rtl_dump_file): Remove usage of TDF_RTL.
768         * dumpfile.h (enum dump_kind): New enum type.
769         (struct dump_file_info): Create constructor and
770         format fields and comments.
771         * passes.c (pass_manager::register_one_dump_file):
772         Use num dump_kind.
773         * statistics.c (statistics_early_init): Likewise.
774         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
775         TDF_TREE with TDF_SLIM.
776         (gather_memory_references_ref): Likewise.
778 2017-05-18  Martin Liska  <mliska@suse.cz>
780         * vec.h (struct vnull): Use it.
782 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
784         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
785         (true_predicate, false_predicate, true_predicate_p,
786         false_predicate_p): Remove.
787         (single_cond_predicate, not_inlined_predicate): Turn to member function
788         in ipa-inline.h
789         (add_condition): Update.
790         (add_clause): Turn to...
791         (predicate::add_clause): ... this one; update; allow passing NULL
792         as parameter.
793         (and_predicates): Turn to ...
794         (predicate::operator &=): ... this one.
795         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
796         (or_predicates): Turn to ...
797         (predicate::or_with): ... this one.
798         (evaluate_predicate): Turn to ...
799         (predicate::evaluate): ... this one.
800         (predicate_probability): Turn to ...
801         (predicate::probability): ... this one.
802         (dump_condition): Update.
803         (dump_predicate): Turn to ...
804         (predicate::dump): ... this one.
805         (account_size_time): Update.
806         (edge_set_predicate): Update.
807         (set_hint_predicate): UPdate.
808         (evaluate_conditions_for_known_args): Update.
809         (evaluate_properties_for_edge): Update.
810         (remap_predicate_after_duplication): Turn to...
811         (predicate::remap_after_duplication): ... this one.
812         (remap_hint_predicate_after_duplication): Update.
813         (inline_summary_t::duplicate): UPdate.
814         (dump_inline_edge_summary): Update.
815         (dump_inline_summary): Update.
816         (set_cond_stmt_execution_predicate): Update.
817         (set_switch_stmt_execution_predicate): Update.
818         (compute_bb_predicates): Update.
819         (will_be_nonconstant_expr_predicate): Update.
820         (will_be_nonconstant_predicate): Update.
821         (phi_result_unknown_predicate): Update.
822         (predicate_for_phi_result): Update.
823         (array_index_predicate): Update.
824         (estimate_function_body_sizes): Update.
825         (estimate_node_size_and_time): Update.
826         (estimate_ipcp_clone_size_and_time): Update.
827         (remap_predicate): Rename to ...
828         (predicate::remap_after_inlining): ... this one.
829         (remap_hint_predicate): Update.
830         (inline_merge_summary): Update.
831         (inline_update_overall_summary): Update.
832         (estimate_size_after_inlining): Update.
833         (read_predicate): Rename to ...
834         (predicate::stream_in): ... this one.
835         (read_inline_edge_summary): Update.
836         (write_predicate): Rename to ...
837         (predicate::stream_out): ... this one.
838         (write_inline_edge_summary): Update.
839         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
840         (clause_t): Turn to uint32_t
841         (predicate): Turn to class; implement constructor and operators
842         ==, !=, &
843         (size_time_entry): Update.
844         (inline_summary): Update.
845         (inline_edge_summary): Update.
847 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
849         * fold-const.c (fold_binary_loc): Move transformation...
850         * match.pd (C - X CMP X): ... here.
852 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
854         * config/sparc/sparc.c (sparc_option_override): Set function
855         alignment for -mcpu=niagara7 to 64 to match the I$ line.
856         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
857         latency to 1.
858         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
859         latency to 2.
860         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
862 2017-05-18  Marek Polacek  <polacek@redhat.com>
864         PR sanitizer/80797
865         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
866         (pass_ubsan::execute): Call gimple_assign_single_p instead of
867         gimple_assign_load_p.
869 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
871         PR middle-end/80692
872         * real.c (do_compare): Give decimal_do_compare preference over
873         comparing just the signs.
875 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
877         * doc/md.texi (Canonicalization of Instructions): Describe the
878         canonical form of instructions that inherently set a condition
879         code register.
881 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
883         PR middle-end/80775
884         * tree-cfg.c: Move deletion of unreachable case statements to after
885         the merging of consecutive case labels.
887 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
889         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
890         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
891         restoring of callee-saved registers.
893 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
895         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
896         * config/visium/visium.c (single_set_and_flags): Likewise.
897         * config/visium/visium.md (Substitutions): Likewise.
899 2017-05-17  Martin Liska  <mliska@suse.cz>
901         * cfg.c: Introduce dump_flags_t type and
902         use it instead of int type.
903         * cfg.h: Likewise.
904         * cfghooks.c: Likewise.
905         * cfghooks.h (struct cfg_hooks): Likewise.
906         * cfgrtl.c: Likewise.
907         * cfgrtl.h: Likewise.
908         * cgraph.c (cgraph_node::get_body): Likewise.
909         * coretypes.h: Likewise.
910         * domwalk.c: Likewise.
911         * domwalk.h: Likewise.
912         * dumpfile.c (struct dump_option_value_info): Likewise.
913         (dump_enable_all): Likewise.
914         (dump_switch_p_1): Likewise.
915         (opt_info_switch_p): Likewise.
916         * dumpfile.h (enum tree_dump_index): Likewise.
917         (struct dump_file_info): Likewise.
918         * genemit.c: Likewise.
919         * generic-match-head.c: Likewise.
920         * gengtype.c (open_base_files): Likewise.
921         * gimple-pretty-print.c: Likewise.
922         * gimple-pretty-print.h: Likewise.
923         * graph.c (print_graph_cfg): Likewise.
924         * graphite-scop-detection.c (dot_all_sese): Likewise.
925         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
926         * loop-unroll.c (report_unroll): Likewise.
927         * passes.c (pass_manager::register_one_dump_file): Likewise.
928         * print-tree.c: Likewise.
929         * statistics.c: Likewise.
930         * tree-cfg.c: Likewise.
931         * tree-cfg.h: Likewise.
932         * tree-dfa.c: Likewise.
933         * tree-dfa.h: Likewise.
934         * tree-dump.c (dump_function): Likewise.
935         * tree-dump.h (struct dump_info): Likewise.
936         * tree-pretty-print.c: Likewise.
937         * tree-pretty-print.h: Likewise.
938         * tree-ssa-live.c: Likewise.
939         * tree-ssa-live.h: Likewise.
940         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
941         * tree-vect-loop.c: Likewise.
942         * tree-vect-slp.c: Likewise.
944 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
945             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
947         PR tree-optimization/80457
948         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
949         of all arguments to a statement as scalar_to_vec operations.
950         (vectorizable_call): Adjust call to vect_model_simple_cost for
951         new parameter.
952         (vectorizable_conversion): Likewise.
953         (vectorizable_assignment): Likewise.
954         (vectorizable_shift): Likewise.
955         (vectorizable_operation): Likewise.
956         (vectorizable_comparison): Likewise.
957         (vect_is_simple_cond): Record the def types for operands.
958         (vectorizable_condition): Likewise, call vect_model_simple_cost.
959         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
960         for statement argument count.
962 2017-05-16  Carl Love  <cel@us.ibm.com>
964         * config/rs6000/rs6000-c: Add support for built-in functions
965         vector unsigned long long vec_bperm (vector unsigned long long,
966                                              vector unsigned char)
967         vector signed long long vec_mule (vector signed int,
968                                           vector signed int)
969         vector unsigned long long vec_mule (vector unsigned int,
970                                             vector unsigned int)
971         vector signed long long vec_mulo (vector signed int,
972                                           vector signed int)
973         vector unsigned long long vec_mulo (vector unsigned int,
974                                             vector unsigned int)
975         vector signed char vec_sldw (vector signed char,
976                                      vector signed char,
977                                      const int)
978         vector unsigned char vec_sldw (vector unsigned char,
979                                        vector unsigned char,
980                                        const int)
981         vector signed short vec_sldw (vector signed short,
982                                       vector signed short,
983                                       const int)
984         vector unsigned short vec_sldw (vector unsigned short,
985                                         vector unsigned short,
986                                         const int)
987         vector signed int vec_sldw (vector signed int,
988                                     vector signed int,
989                                     const int)
990         vector unsigned int vec_sldw (vector unsigned int,
991                                       vector unsigned int,
992                                       const int)
993         vector signed long long vec_sldw (vector signed long long,
994                                           vector signed long long,
995                                           const int)
996         vector unsigned long long vec_sldw (vector unsigned long long,
997                                             vector unsigned long long,
998                                             const int)
999         * config/rs6000/rs6000-c: Add support for built-in functions
1000         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
1001         * config/rs6000/altivec.h: Add defintion for vec_sldw.
1002         * doc/extend.texi: Update the built-in documentation for the
1003         new built-in functions.
1005 2017-05-16  Marek Polacek  <polacek@redhat.com>
1007         PR sanitizer/80536
1008         PR sanitizer/80386
1009         * tree.c (save_expr): Don't fold the expression.
1011 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
1013         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
1014         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
1015         and (?*y,m).  Update insn attributes.
1017 2017-05-16  Martin Liska  <mliska@suse.cz>
1019         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
1020         flags argument of print_gimple_stmt, print_gimple_expr,
1021         print_generic_stmt and print_generic_expr.
1022         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1023         * coretypes.h: Likewise.
1024         * except.c (dump_eh_tree): Likewise.
1025         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1026         * gimple-pretty-print.h: Likewise.
1027         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
1028         (backprop::push_to_worklist): Likewise.
1029         (backprop::pop_from_worklist): Likewise.
1030         (backprop::process_use): Likewise.
1031         (backprop::intersect_uses): Likewise.
1032         (note_replacement): Likewise.
1033         * gimple-ssa-store-merging.c
1034         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
1035         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1036         (pass_store_merging::execute): Likewise.
1037         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
1038         (ssa_base_cand_dump_callback): Likewise.
1039         (dump_incr_vec): Likewise.
1040         (replace_refs): Likewise.
1041         (replace_mult_candidate): Likewise.
1042         (create_add_on_incoming_edge): Likewise.
1043         (create_phi_basis): Likewise.
1044         (insert_initializers): Likewise.
1045         (all_phi_incrs_profitable): Likewise.
1046         (introduce_cast_before_cand): Likewise.
1047         (replace_one_candidate): Likewise.
1048         * gimplify.c (gimplify_expr): Likewise.
1049         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
1050         (set_rename): Likewise.
1051         (rename_uses): Likewise.
1052         (copy_loop_phi_nodes): Likewise.
1053         (add_close_phis_to_merge_points): Likewise.
1054         (copy_loop_close_phi_args): Likewise.
1055         (copy_cond_phi_args): Likewise.
1056         (graphite_copy_stmts_from_block): Likewise.
1057         (translate_pending_phi_nodes): Likewise.
1058         * graphite-poly.c (print_pdr): Likewise.
1059         (dump_gbb_cases): Likewise.
1060         (dump_gbb_conditions): Likewise.
1061         (print_scop_params): Likewise.
1062         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
1063         (build_cross_bb_scalars_use): Likewise.
1064         (gather_bbs::before_dom_children): Likewise.
1065         * hsa-dump.c (dump_hsa_immed): Likewise.
1066         * ipa-cp.c (print_ipcp_constant_value): Likewise.
1067         (get_replacement_map): Likewise.
1068         * ipa-inline-analysis.c (dump_condition): Likewise.
1069         (estimate_function_body_sizes): Likewise.
1070         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
1071         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
1072         * ipa-prop.c (ipa_dump_param): Likewise.
1073         (ipa_print_node_jump_functions_for_edge): Likewise.
1074         (ipa_modify_call_arguments): Likewise.
1075         (ipa_modify_expr): Likewise.
1076         (ipa_dump_param_adjustments): Likewise.
1077         (ipa_dump_agg_replacement_values): Likewise.
1078         (ipcp_modif_dom_walker::before_dom_children): Likewise.
1079         * ipa-pure-const.c (check_stmt): Likewise.
1080         (pass_nothrow::execute): Likewise.
1081         * ipa-split.c (execute_split_functions): Likewise.
1082         * omp-offload.c (dump_oacc_loop_part): Likewise.
1083         (dump_oacc_loop): Likewise.
1084         * trans-mem.c (tm_log_emit): Likewise.
1085         (tm_memopt_accumulate_memops): Likewise.
1086         (dump_tm_memopt_set): Likewise.
1087         (dump_tm_memopt_transform): Likewise.
1088         * tree-cfg.c (gimple_verify_flow_info): Likewise.
1089         (print_loop): Likewise.
1090         * tree-chkp-opt.c (chkp_print_addr): Likewise.
1091         (chkp_gather_checks_info): Likewise.
1092         (chkp_get_check_result): Likewise.
1093         (chkp_remove_check_if_pass): Likewise.
1094         (chkp_use_outer_bounds_if_possible): Likewise.
1095         (chkp_reduce_bounds_lifetime): Likewise.
1096         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
1097         (chkp_mark_completed_bounds): Likewise.
1098         (chkp_register_incomplete_bounds): Likewise.
1099         (chkp_mark_invalid_bounds): Likewise.
1100         (chkp_maybe_copy_and_register_bounds): Likewise.
1101         (chkp_build_returned_bound): Likewise.
1102         (chkp_get_bound_for_parm): Likewise.
1103         (chkp_build_bndldx): Likewise.
1104         (chkp_get_bounds_by_definition): Likewise.
1105         (chkp_generate_extern_var_bounds): Likewise.
1106         (chkp_get_bounds_for_decl_addr): Likewise.
1107         * tree-chrec.c (chrec_apply): Likewise.
1108         * tree-data-ref.c (dump_data_reference): Likewise.
1109         (dump_subscript): Likewise.
1110         (dump_data_dependence_relation): Likewise.
1111         (analyze_overlapping_iterations): Likewise.
1112         * tree-inline.c (expand_call_inline): Likewise.
1113         (tree_function_versioning): Likewise.
1114         * tree-into-ssa.c (dump_defs_stack): Likewise.
1115         (dump_currdefs): Likewise.
1116         (dump_names_replaced_by): Likewise.
1117         (dump_update_ssa): Likewise.
1118         (update_ssa): Likewise.
1119         * tree-object-size.c (pass_object_sizes::execute): Likewise.
1120         * tree-parloops.c (build_new_reduction): Likewise.
1121         (try_create_reduction_list): Likewise.
1122         (ref_conflicts_with_region): Likewise.
1123         (oacc_entry_exit_ok_1): Likewise.
1124         (oacc_entry_exit_single_gang): Likewise.
1125         * tree-pretty-print.h: Likewise.
1126         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
1127         (get_scalar_evolution): Likewise.
1128         (add_to_evolution): Likewise.
1129         (get_loop_exit_condition): Likewise.
1130         (analyze_evolution_in_loop): Likewise.
1131         (analyze_initial_condition): Likewise.
1132         (analyze_scalar_evolution): Likewise.
1133         (instantiate_scev): Likewise.
1134         (number_of_latch_executions): Likewise.
1135         (gather_chrec_stats): Likewise.
1136         (final_value_replacement_loop): Likewise.
1137         (scev_const_prop): Likewise.
1138         * tree-sra.c (dump_access): Likewise.
1139         (disqualify_candidate): Likewise.
1140         (create_access): Likewise.
1141         (reject): Likewise.
1142         (maybe_add_sra_candidate): Likewise.
1143         (create_access_replacement): Likewise.
1144         (analyze_access_subtree): Likewise.
1145         (analyze_all_variable_accesses): Likewise.
1146         (sra_modify_assign): Likewise.
1147         (initialize_constant_pool_replacements): Likewise.
1148         (find_param_candidates): Likewise.
1149         (decide_one_param_reduction): Likewise.
1150         (replace_removed_params_ssa_names): Likewise.
1151         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1152         * tree-ssa-copy.c (dump_copy_of): Likewise.
1153         (copy_prop_visit_cond_stmt): Likewise.
1154         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
1155         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
1156         (record_equivalences_from_stmt): Likewise.
1157         * tree-ssa-dse.c (compute_trims): Likewise.
1158         (delete_dead_call): Likewise.
1159         (delete_dead_assignment): Likewise.
1160         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
1161         (forward_propagate_into_cond): Likewise.
1162         (pass_forwprop::execute): Likewise.
1163         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1164         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
1165         Likewise.
1166         (move_computations_worker): Likewise.
1167         (execute_sm): Likewise.
1168         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
1169         (remove_exits_and_undefined_stmts): Likewise.
1170         (remove_redundant_iv_tests): Likewise.
1171         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
1172         (adjust_iv_update_pos): Likewise.
1173         * tree-ssa-math-opts.c (bswap_replace): Likewise.
1174         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
1175         (value_replacement): Likewise.
1176         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1177         * tree-ssa-pre.c (print_pre_expr): Likewise.
1178         (get_representative_for): Likewise.
1179         (create_expression_by_pieces): Likewise.
1180         (insert_into_preds_of_block): Likewise.
1181         (eliminate_insert): Likewise.
1182         (eliminate_dom_walker::before_dom_children): Likewise.
1183         (eliminate): Likewise.
1184         (remove_dead_inserted_code): Likewise.
1185         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1186         * tree-ssa-reassoc.c (get_rank): Likewise.
1187         (eliminate_duplicate_pair): Likewise.
1188         (eliminate_plus_minus_pair): Likewise.
1189         (eliminate_not_pairs): Likewise.
1190         (undistribute_ops_list): Likewise.
1191         (eliminate_redundant_comparison): Likewise.
1192         (update_range_test): Likewise.
1193         (optimize_range_tests_var_bound): Likewise.
1194         (optimize_vec_cond_expr): Likewise.
1195         (rewrite_expr_tree): Likewise.
1196         (rewrite_expr_tree_parallel): Likewise.
1197         (linearize_expr): Likewise.
1198         (break_up_subtract): Likewise.
1199         (linearize_expr_tree): Likewise.
1200         (attempt_builtin_powi): Likewise.
1201         (attempt_builtin_copysign): Likewise.
1202         (transform_stmt_to_copy): Likewise.
1203         (transform_stmt_to_multiply): Likewise.
1204         (dump_ops_vector): Likewise.
1205         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
1206         (print_scc): Likewise.
1207         (set_ssa_val_to): Likewise.
1208         (visit_reference_op_store): Likewise.
1209         (visit_use): Likewise.
1210         (sccvn_dom_walker::before_dom_children): Likewise.
1211         (run_scc_vn): Likewise.
1212         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
1213         Likewise.
1214         (expr_hash_elt::print): Likewise.
1215         (const_and_copies::pop_to_marker): Likewise.
1216         (const_and_copies::record_const_or_copy_raw): Likewise.
1217         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
1218         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
1219         (dump_predicates): Likewise.
1220         (find_uninit_use): Likewise.
1221         (warn_uninitialized_phi): Likewise.
1222         (pass_late_warn_uninitialized::execute): Likewise.
1223         * tree-ssa.c (verify_vssa): Likewise.
1224         (verify_ssa): Likewise.
1225         (maybe_optimize_var): Likewise.
1226         * tree-vrp.c (dump_value_range): Likewise.
1227         (dump_all_value_ranges): Likewise.
1228         (dump_asserts_for): Likewise.
1229         (register_edge_assert_for_2): Likewise.
1230         (vrp_visit_cond_stmt): Likewise.
1231         (vrp_visit_switch_stmt): Likewise.
1232         (vrp_visit_stmt): Likewise.
1233         (vrp_visit_phi_node): Likewise.
1234         (simplify_cond_using_ranges_1): Likewise.
1235         (fold_predicate_in): Likewise.
1236         (evrp_dom_walker::before_dom_children): Likewise.
1237         (evrp_dom_walker::push_value_range): Likewise.
1238         (evrp_dom_walker::pop_value_range): Likewise.
1239         (execute_early_vrp): Likewise.
1241 2017-05-16  Richard Biener  <rguenther@suse.de>
1243         * dwarf2out.c (loc_list_from_tree_1): Do not create
1244         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
1246 2017-05-16  Richard Biener  <rguenther@suse.de>
1248         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
1249         just generated.
1250         (note_variable_value_in_expr): If we resolved the decl ref
1251         do not push to the stack.
1253 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1255         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
1256         operations in fast-math mode.
1257         (vaddq_f16): Likewise.
1258         (vmul_f16): Likewise.
1259         (vmulq_f16): Likewise.
1260         (vsub_f16): Likewise.
1261         (vsubq_f16): Likewise.
1262         * config/arm/neon.md (add<mode>3): New.
1263         (sub<mode>3): New.
1264         (fma:<VH:mode>3): New.  Also remove outdated comment.
1265         (mul<mode>3): New.
1267 2017-05-16  Martin Liska  <mliska@suse.cz>
1269         PR ipa/79849.
1270         PR ipa/79850.
1271         * ipa-devirt.c (warn_types_mismatch): Fix typo.
1272         (odr_types_equivalent_p): Likewise.
1274 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
1276         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
1278 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
1280         PR target/80425
1281         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
1282         non-interunit SSE move alternatives with '?'.
1283         (zero-extendsidi peephole2): New peephole to skip intermediate
1284         general register in SSE zero-extend sequence.
1286 2017-05-15  Jeff Law  <law@redhat.com>
1288         * reorg.c (relax_delay_slots): Create a new variable to hold
1289         the temporary target rather than clobbering TARGET_LABEL.
1291         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
1292         missing argument to extract_bit_field call.
1293         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1295 2017-05-15  Martin Liska  <mliska@suse.cz>
1297         PR driver/31468
1298         * gcc.c (process_command): Do not allow empty argument of -o option.
1300 2017-05-15  Renlin Li  <renlin.li@arm.com>
1302         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
1303         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
1304         * config/aarch64/constraints.md (Usf): Add long call check.
1305         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
1306         (call_value): Likewise.
1307         (sibcall): Likewise.
1308         (sibcall_value): Likewise.
1309         (call_insn): New.
1310         (call_value_insn): New.
1311         (sibcall_insn): Update rtx pattern.
1312         (sibcall_value_insn): Likewise.
1313         (call_internal): Remove.
1314         (call_value_internal): Likewise.
1315         (sibcall_internal): Likewise.
1316         (sibcall_value_internal): Likewise.
1317         (call_reg): Likewise.
1318         (call_symbol): Likewise.
1319         (call_value_reg): Likewise.
1320         (call_value_symbol): Likewise.
1322 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
1324         PR target/80600
1325         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
1327 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
1329         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
1330         compatible with CCGOCmode and with CCZmode.
1332 2017-05-14  Martin Sebor  <msebor@redhat.com>
1334         PR middle-end/77671
1335         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
1336         (gimple_fold_builtin_snprintf): Same.
1337         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
1338         (gimple_fold_builtin_snprintf): Same.
1339         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
1340         of character types.
1341         (is_call_safe): New function.
1342         (try_substitute_return_value): Call it.
1343         (try_simplify_call): New function.
1344         (pass_sprintf_length::handle_gimple_call): Call it.
1346 2017-05-14  Martin Sebor  <msebor@redhat.com>
1348         PR middle-end/80669
1349         * builtins.c (expand_builtin_stpncpy): Simplify.
1351 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
1353         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
1354         * config/i386/i386.h
1355         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
1356         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
1357         (struct machine_function): Add new members call_ms2sysv,
1358         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
1359         (struct machine_frame_state): New fields sp_realigned and
1360         sp_realigned_offset.
1361         * config/i386/i386.c
1362         (enum xlogue_stub): New enum.
1363         (enum xlogue_stub_sets): New enum.
1364         (class xlogue_layout): New class.
1365         (struct ix86_frame): New fields stack_realign_allocate_offset,
1366         stack_realign_offset and outlined_save_offset.  Modify comments to
1367         detail stack layout when using out-of-line stubs.
1368         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
1369         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
1370         -mcall-ms2sysv-xlogues.
1371         (stub_managed_regs): New static variable.
1372         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
1373         registers managed by out-of-line stub.
1374         (disable_call_ms2sysv_xlogues): New function.
1375         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
1376         m->call_ms2sysv when appropriate and compute frame layout for
1377         out-of-line stubs.
1378         (sp_valid_at, fp_valid_at): New inline functions.
1379         (choose_basereg): New function.
1380         (choose_baseaddr): Add align parameter, use choose_basereg and modify
1381         all callers.
1382         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
1383         Use align parameter of choose_baseaddr to generated aligned SSE movs
1384         when possible.
1385         (pro_epilogue_adjust_stack): Modify to track
1386         machine_frame_state::sp_realigned.
1387         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
1388         (ix86_nsaved_sseregs): Likewise.
1389         (ix86_emit_save_regs): Likewise.
1390         (ix86_emit_save_regs_using_mov): Likewise.
1391         (ix86_emit_save_sse_regs_using_mov): Likewise.
1392         (get_scratch_register_on_entry): Likewise.
1393         (gen_frame_set): New function.
1394         (gen_frame_load): Likewise.
1395         (gen_frame_store): Likewise.
1396         (emit_outlined_ms2sysv_save): Likewise.
1397         (emit_outlined_ms2sysv_restore): Likewise.
1398         (ix86_expand_prologue): Modify stack re-alignment code and call
1399         emit_outlined_ms2sysv_save when appropriate.
1400         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
1401         parameter rtx_insn *insn, which allows the function to be used to only
1402         generate the notes.
1403         (ix86_expand_epilogue): Modify validity checks of frame and stack
1404         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
1405         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
1406         * config/i386/predicates.md
1407         (save_multiple): New predicate.
1408         (restore_multiple): Likewise.
1409         * config/i386/sse.md
1410         (save_multiple<mode>): New pattern.
1411         (save_multiple_realign<mode>): Likewise.
1412         (restore_multiple<mode>): Likewise.
1413         (restore_multiple_and_return<mode>): Likewise.
1414         (restore_multiple_leave_return<mode>): Likewise.
1415         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
1417 2017-05-14  Julia Koval  <julia.koval@intel.com>
1419         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
1420         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
1421         (__builtin_ia32_xsetbv): New builtins.
1422         * config/i386/i386.c (ix86_expand_special_args_builtin):
1423         Process new types.
1424         (ix86_expand_builtin): Special expand for new intrinsics.
1425         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
1426         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
1427         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
1429 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1431         * cfganal.c (inverted_post_order_compute): Change argument type
1432         to vec *.
1433         * cfganal.h (inverted_post_order_compute): Adjust prototype.
1434         * df-core.c (rest_of_handle_df_initialize): Adjust.
1435         (rest_of_handle_df_finish): Likewise.
1436         (df_analyze_1): Likewise.
1437         (df_analyze): Likewise.
1438         (loop_inverted_post_order_compute): Change argument to be a vec *.
1439         (df_analyze_loop): Adjust.
1440         (df_get_n_blocks): Likewise.
1441         (df_get_postorder): Likewise.
1442         * df.h (struct df_d): Change field to be a vec.
1443         * lcm.c (compute_laterin): Adjust.
1444         (compute_available): Likewise.
1445         * lra-lives.c (lra_create_live_ranges_1): Likewise.
1446         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1447         * tree-ssa-pre.c (compute_antic): Likewise.
1449 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1451         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
1452         (depth_first_search::depth_first_search): Change structure init
1453         function to this constructor.
1454         (depth_first_search::add_bb): Rename function to this member.
1455         (depth_first_search::execute): Likewise.
1456         (flow_dfs_compute_reverse_finish): Adjust.
1458 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1460         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
1461         (longest_simple_path): Likewise.
1462         * shrink-wrap.c (spread_components): Likewise.
1463         (disqualify_problematic_components): Likewise.
1464         (emit_common_heads_for_components): Likewise.
1465         (emit_common_tails_for_components): Likewise.
1466         (insert_prologue_epilogue_for_components): Likewise.
1468 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1470         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
1471         auto_sbitmap.
1473 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1475         * df-core.c (df_set_blocks): Start using auto_bitmap.
1476         (df_compact_blocks): Likewise.
1477         * df-problems.c (df_rd_confluence_n): Likewise.
1478         * df-scan.c (df_insn_rescan_all): Likewise.
1479         (df_process_deferred_rescans): Likewise.
1480         (df_update_entry_block_defs): Likewise.
1481         (df_update_exit_block_uses): Likewise.
1482         (df_entry_block_bitmap_verify): Likewise.
1483         (df_exit_block_bitmap_verify): Likewise.
1484         (df_scan_verify): Likewise.
1485         * lra-constraints.c (lra_constraints): Likewise.
1486         (undo_optional_reloads): Likewise.
1487         (lra_undo_inheritance): Likewise.
1488         * lra-remat.c (calculate_gen_cands): Likewise.
1489         (do_remat): Likewise.
1490         * lra-spills.c (assign_spill_hard_regs): Likewise.
1491         (spill_pseudos): Likewise.
1492         * tree-ssa-pre.c (bitmap_set_and): Likewise.
1493         (bitmap_set_subtract_values): Likewise.
1495 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1497         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
1498         management with auto_bitmap.
1499         (fix_inter_tick): Likewise.
1500         (fix_recovery_deps): Likewise.
1501         * ira.c (add_store_equivs): Likewise.
1502         (find_moveable_pseudos): Likewise.
1503         (split_live_ranges_for_shrink_wrap): Likewise.
1504         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
1505         (rtx_reuse_manager::seen_def_p): Likewise.
1506         (rtx_reuse_manager::set_seen_def): Likewise.
1507         * print-rtl.h (class rtx_reuse_manager): Likewise.
1509 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1511         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
1512         lifetime.
1513         (migrate_btr_def): Likewise.
1514         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
1515         * df-core.c (loop_post_order_compute): Likewise.
1516         (loop_inverted_post_order_compute): Likewise.
1517         * hsa-common.h: Likewise.
1518         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
1519         * init-regs.c (initialize_uninitialized_regs): Likewise.
1520         * ipa-inline.c (resolve_noninline_speculation): Likewise.
1521         (inline_small_functions): Likewise.
1522         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
1523         * ira.c (combine_and_move_insns): Likewise.
1524         (build_insn_chain): Likewise.
1525         * loop-invariant.c (find_invariants): Likewise.
1526         * lower-subreg.c (propagate_pseudo_copies): Likewise.
1527         * predict.c (tree_predict_by_opcode): Likewise.
1528         (predict_paths_leading_to): Likewise.
1529         (predict_paths_leading_to_edge): Likewise.
1530         (estimate_loops_at_level): Likewise.
1531         (estimate_loops): Likewise.
1532         * shrink-wrap.c (try_shrink_wrapping): Likewise.
1533         (spread_components): Likewise.
1534         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
1535         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
1536         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
1537         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
1538         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
1539         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1540         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1541         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
1542         (mark_threaded_blocks): Likewise.
1543         (thread_through_all_blocks): Likewise.
1544         * tree-ssa.c (verify_ssa): Likewise.
1545         (execute_update_addresses_taken): Likewise.
1546         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
1548 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1550         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
1551         auto_vec.
1552         (post_order_compute): Likewise.
1553         (inverted_post_order_compute): Likewise.
1554         (pre_and_rev_post_order_compute_fn): Likewise.
1556 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1558         * genrecog.c (int_set::int_set): Explicitly construct our
1559         auto_vec base class.
1560         * vec.h (auto_vec::auto_vec): New constructor.
1562 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1564         * bitmap.h (class auto_bitmap): New constructor taking
1565         bitmap_obstack * argument.
1567 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1569         * bitmap.h (class auto_bitmap): Change type of m_bits to
1570         bitmap_head, and adjust ctor / dtor and member operators.
1572 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
1574         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
1575         when returned register mode doesn't match original mode.
1577 2017-05-12  Jeff Law  <law@redhat.com>
1578             Jakub Jelinek  <jakub@redhat.com>
1580         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
1581         we look for cc setter after the compare-elim changes.
1582         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
1583         within the vector to match what compare-elim now expects.
1584         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
1585         (xorsi3_flags, one_cmplsi2_flags): Likewise.
1587         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
1588         after the compare-elim changes.
1589         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
1590         the vector to match what compare-elim now expects.
1591         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
1592         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
1593         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
1594         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
1595         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
1597         * config/visium/visium.c (single_set_and_flags): Fix where
1598         we look for cc setter after the compare-elim changes.
1599         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
1600         with the vector to match what compare-elim now expects.
1601         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
1602         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
1603         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
1604         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
1605         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
1606         (neg<mode>2_insn_set_overflow): Likewise.
1608 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
1610         PR middle-end/79794
1611         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
1612         maybe_expand_insn call, set ops[0].target.  If still set after call,
1613         set alt_rtl.  Add extra arg to recursive calls.
1614         (extract_bit_field): Add alt_rtl argument.  Pass to
1615         extract_bit_field.
1616         * expmed.h (extract_bit_field): Fix prototype.
1617         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
1618         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
1619         to extract_bit_field_calls.
1620         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
1621         Pass alt_rtl to extract_bit_field calls.
1622         * calls.c (store_unaligned_arguments_into_psuedos)
1623         load_register_parameters): Pass extra NULL to extract_bit_field calls.
1624         * optabs.c (maybe_legitimize_operand): Clear op->target when call
1625         gen_reg_rtx.
1626         * optabs.h (struct expand_operand): Add target bitfield.
1628 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
1630         * compare-elim.c (try_eliminate_compare): Canonicalize
1631         operation with embedded compare to
1632         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
1633          (set (reg) (operation)].
1635         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
1637 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
1639         PR target/80723
1640         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
1641         cost of adding a carry flag for ADC instruction.
1642         [case MINUS]: Ignore the cost of subtracting a carry flag
1643         for SBB instruction.
1645 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
1647         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
1648         and x86intrin.h
1649         * config/rs6000/bmiintrin.h: New file.
1650         * config/rs6000/bmi2intrin.h: New file.
1651         * config/rs6000/x86intrin.h: New file.
1653 2017-05-12  Jeff Law  <law@redhat.com>
1655         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
1656         markers.
1658 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
1660         PR middle-end/80707
1661         * tree-cfg.c: Remove cfg edges of unreachable case statements.
1663 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1665         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1666         early expansion of vector divide builtins.
1667         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
1668         builtins identified as having unsigned arguments.
1670 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1672         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
1673         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
1674         expansion of vector logical operations (and, andc, or, xor,
1675         nor, orc, nand).
1677 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1679         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
1680         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
1682 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1684         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1685         early GIMPLE expansion of vector multiplies.
1687 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1689         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
1690         TARGET_HAVE_MOVT conditional.
1691         (movt splitter): Likewise.
1693 2017-05-12  Richard Biener  <rguenther@suse.de>
1695         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
1696         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1697         Fold all stmts not inplace.
1699 2017-05-12  Richard Biener  <rguenther@suse.de>
1701         PR tree-optimization/80713
1702         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
1703         inserted_exprs bit for not removed stmts.
1705 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1707         PR middle-end/69921
1708         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
1709         parallelized" attribute for parallelized OpenACC kernels.
1710         * omp-offload.c (execute_oacc_device_lower): Use it.
1712         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
1713         Set "oacc kernels" attribute.
1714         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
1715         parameter.  Adjust all users.
1716         (oacc_fn_attrib_kernels_p): Remove function.
1717         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
1718         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
1719         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1720         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
1721         assert "oacc kernels" attribute is set.
1723 2017-05-11  Carl Love  <cel@us.ibm.com>
1725         * config/rs6000/rs6000-c: Add support for built-in functions
1726         vector unsigned char vec_popcnt (vector signed char)
1727         vector unsigned char vec_popcnt (vector unsigned char)
1728         vector unsigned short vec_popcnt (vector signed short)
1729         vector unsigned short vec_popcnt (vector unsigned short)
1730         vector unsigned int vec_popcnt (vector signed int)
1731         vector unsigned int vec_popcnt (vector unsigned int)
1732         vector unsigned long long vec_popcnt (vector signed long long)
1733         vector unsigned long long vec_popcnt (vector unsigned long long)
1734         vector signed long long vec_slo (vector signed long long,
1735                                          vector signed char)
1736         vector signed long long vec_slo (vector signed long long,
1737                                          vector unsigned char)
1738         vector unsigned long long vec_slo (vector unsigned long long,
1739                                            vector signed char)
1740         vector unsigned long long vec_slo (vector unsigned long long,
1741                                            vector unsigned char)
1742         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
1743         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
1744         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
1745         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
1746         * doc/extend.texi: Update the built-in documentation file for the
1747         new built-in functions.
1749 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1751         * attribs.h (sorted_attr_string): Move machine independent
1752         functions for target clone support from the i386 port to common
1753         code.  Rename ix86_function_versions to common_function_versions.
1754         Rename make_name to make_unique_name.
1755         (common_function_versions): Likewise.
1756         (make_unique_name): Likewise.
1757         (make_dispatcher_decl): Likewise.
1758         (is_function_default_version): Likewise.
1759         * attribs.c (attr_strcmp): Likewise.
1760         (sorted_attr_string): Likewise.
1761         (common_function_versions): Likewise.
1762         (make_unique_name): Likewise.
1763         (make_dispatcher_decl): Likewise.
1764         (is_function_default_version): Likewise.
1765         * config/i386/i386.c (attr_strcmp): Likewise.
1766         (sorted_attr_string): Likewise.
1767         (ix86_function_versions): Likewise.
1768         (make_name): Likewise.
1769         (make_dispatcher_decl): Likewise.
1770         (is_function_default_version): Likewise.
1771         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
1773 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1775         PR target/80695
1776         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1777         Account for direct move costs for vec_construct of integer
1778         vectors.
1780 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
1782         PR target/80706
1783         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
1784         (UNSPEC_STX_ATOMIC): Ditto.
1785         (loaddi_via_sse): New insn.
1786         (storedi_via_sse): Ditto.
1787         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
1788         Update corresponding peephole2 patterns.
1789         (atomic_storedi_fpu): Ditto.
1791 2017-05-11  Julia Koval  <julia.koval@intel.com>
1793         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
1794         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
1795         New intrinsics.
1796         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
1797         (__builtin_ia32_rsqrt14ss_mask): New builtins.
1798         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
1800 2017-05-11  Nathan Sidwell  <nathan@acm.org>
1802         * graphite-poly.c: Include dumpfile.h.
1804         * dumpfle.h (dump_function): Declare here ...
1805         * tree-dump.h (dump_function): ... not here.
1806         * dumpfile.c: #include tree-cfg.h.
1807         (dump_function): Move here from ...
1808         * tree-dump.c (dump_function): ... here.
1809         * gimplify.c: #include splay-tree.h, not tree-dump.h.
1810         * graphite-poly.c: Don't include tree-dump.h.
1811         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
1812         * print-tree.c: Likewise.
1813         * stor-layout.c: Likewise.
1814         * tree-nested.c: Likewise.
1816         * dumpfile.c (dump_start): Use TDF_FLAGS.
1817         (dump_enable_all): Fix TDF_KIND check thinko.
1819 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1821         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1822         array entries to represent two legal parameterizations of the
1823         overloaded __builtin_cmpb function, as represented by the
1824         P6_OV_BUILTIN_CMPB constant.
1825         (altivec_resolve_overloaded_builtin): Add special case handling
1826         for the __builtin_cmpb function, as represented by the
1827         P6_OV_BUILTIN_CMPB constant.
1828         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
1829         (BU_P6_64BIT_2): New macro.
1830         (BU_P6_OVERLOAD_2): New macro
1831         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
1832         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
1833         (CMPB): Add overload support to represent both 32-bit and 64-bit
1834         compare-bytes function.
1835         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1836         support for TARGET_CMPB.
1837         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
1838         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1839         documentation of the __builtin_cmpb overloaded built-in function.
1841 2017-05-11  Richard Biener  <rguenther@suse.de>
1843         PR tree-optimization/80705
1844         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
1845         bases are not vectorizable.
1847 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1849         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
1850         when counting register pressure.
1852 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1854         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
1855         (iv_ca_more_deps): Renamed to ...
1856         (iv_ca_compare_deps): ... this.
1857         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
1859 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1861         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
1862         to ...
1863         (determine_group_iv_costs): ... here.
1864         (find_inv_vars_cb): Record inv var if it's not recorded before.
1866 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1868         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
1869         (get_shiftadd_cost): Ditto.
1871 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1873         * tree-ssa-address.c: Include header file.
1874         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
1875         address.
1876         (add_to_parts): Refactor.
1877         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
1878         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
1879         in new order.
1881 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1883         PR tree-optimization/53090
1884         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
1885         COMP_IV_EXPR_2.
1886         (extract_cond_operands): Detect condition with IV on both sides
1887         and return COMP_IV_EXPR_2.
1888         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
1889         (rewrite_use_compare): Simplify by removing call to function
1890         extract_cond_operands.
1892 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1894         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
1895         (extract_cond_operands): Detect condition comparing against non-
1896         invariant bound and return appropriate enum value.
1897         (find_interesting_uses_cond): Update use of extract_cond_operands.
1898         Handle its return value accordingly.
1899         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
1901 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1903         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
1904         nonlinear iv_use computation in loop invariant sensitive way.
1906 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1908         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
1909         (find_iv_candidates): Call relate_compare_use_with_all_cands.
1911 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1913         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
1914         (dump_cand): Support iv_cand.inv_exprs.
1915         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
1916         for candidates.
1917         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
1918         iv_cand.inv_exprs.
1920 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1922         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
1923         from ...
1924         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
1925         as local function.  Include necessary header files.
1926         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
1928 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1930         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
1932 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1934         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
1935         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
1936         RSHIFT_EXPR and BIT_NOT_EXPR.
1938 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1940         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
1941         (adjust_setup_cost): New parameter supporting round up adjustment.
1942         (struct address_cost_data): Delete.
1943         (force_expr_to_var_cost): Don't bound cost with spill_cost.
1944         (split_address_cost, ptr_difference_cost): Delete.
1945         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
1946         (struct ainc_cost_data): New struct.
1947         (get_address_cost_ainc): New function.
1948         (get_address_cost, get_computation_cost): Reimplement.
1949         (determine_group_iv_cost_address): Record inv_expr for all uses of
1950         a group.
1951         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
1952         (iv_ca_has_deps): Reimplemented to ...
1953         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
1954         than OLD_CP.
1955         (iv_ca_extend): Call iv_ca_more_deps.
1957 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1959         * tree-ssa-address.c (struct mem_address): Move to header file.
1960         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
1961         * tree-ssa-address.h (struct mem_address): Move from C file.
1962         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
1964 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1966         * tree-affine.h (aff_combination_type): New interface.
1967         (aff_combination_zero_p): Remove static.
1968         (aff_combination_const_p): New interface.
1969         (aff_combination_singleton_var_p): New interfaces.
1971 2017-05-11  Richard Biener  <rguenther@suse.de>
1973         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1974         Skip unreachable blocks and destinations.
1975         (eliminate): Move stmt removal and fixup ...
1976         (fini_eliminate): ... here.  Skip inserted exprs.
1977         (pass_pre::execute): Move fini_pre after fini_eliminate.
1978         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
1979         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
1980         PRE to get rid of dead code that has invalid SSA form and
1981         split critical edges again.
1983 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1985         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1987 2017-05-11  Richard Biener  <rguenther@suse.de>
1989         * passes.c (execute_function_todo): Verify loops if they are
1990         said to be up-to-date.
1991         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
1992         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
1994 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
1996         PR target/80090
1997         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
1998         handle calling assemble_external ourself.
2000         PR target/79027
2001         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
2002         modes with zero size.  Enhance comment.
2004 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2006         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
2007         built-ins for vec_xl and vec_xst with short and char pointer
2008         arguments.
2010 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
2012         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
2013         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
2014         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
2015         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
2016         (_mm_maskz_min_round_ss): New intrinsics.
2017         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
2018         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
2019         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
2020         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
2021         (__builtin_ia32_minss_mask_round): New builtins.
2022         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2023         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2024         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
2025         Rename to ...
2026         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
2027         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
2028         Change to ...
2029         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
2030         ... this.
2032 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
2034         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
2035         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
2036         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
2037         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
2038         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
2039         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
2040         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
2041         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2042         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2043         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
2044         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
2045         (__builtin_ia32_mulss_mask_round): New builtins.
2046         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2047         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2048         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
2049         Rename to ...
2050         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
2051         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2052         Change to ...
2053         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2054         ... this.
2056 2017-05-10  Julia Koval  <julia.koval@intel.com>
2058         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
2059         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
2060         (_mm256_setr_m128i): New intrinsics.
2062 2017-05-10  Julia Koval  <julia.koval@intel.com>
2064         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
2065         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
2066         (_mm_maskz_rcp14_ss): New intrinsics.
2067         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
2068         (__builtin_ia32_rcp14ss_mask): New builtins.
2069         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
2071 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
2073         PR tree-optimization/51513
2074         * tree-cfg.c (gimple_seq_unreachable_p): New function.
2075         (assert_unreachable_fallthru_edge_p): Use it.
2076         (group_case_labels_stmt): Likewise.
2077         * tree-cfg.h: Prototype it.
2078         * stmt.c: Include cfghooks.h and tree-cfg.h.
2079         (emit_case_dispatch_table) <gap_label>: New local variable.
2080         Use it to fill dispatch table gaps.
2081         Test for default_label before updating probabilities.
2082         (expand_case) <default_label>: Remove unneeded initialization.
2083         Test for unreachable default case statement and remove its edge.
2084         Set default_label accordingly.
2085         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
2087 2017-05-10  Carl Love  <cel@us.ibm.com>
2089         * config/rs6000/rs6000-c: Add support for built-in functions
2090         vector signed char        vec_neg (vector signed char)
2091         vector signed short int   vec_neg (vector short int)
2092         vector signed int         vec_neg (vector signed int)
2093         vector signed long long   vec_neg (vector signed long long)
2094         vector float              vec_neg (vector float)
2095         vector double             vec_neg (vector double)
2096         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
2097         overload.
2098         * config/rs6000/altivec.h: Add define for vec_neg
2099         * doc/extend.texi: Update the built-in documentation for the
2100         new built-in functions.
2102 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2104         PR tree-optimization/77644
2105         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
2107 2017-05-10  Nathan Sidwell  <nathan@acm.org>
2109         * dumpfile.h (TDI_lang_all): New.
2110         (TDF_KIND): New. Renumber others
2111         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
2112         than bits.
2113         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
2114         lang-all.
2115         (get_dump_file_name): Adjust suffix generation.
2116         (dump_enable_all): Use TDF_KIND.
2117         * doc/invoke.texi (-fdump-lang-all): Document.
2119         * dumpfile.h: Tabify.
2121 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
2123         PR target/80671
2124         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
2125         Move member access before delete.
2127 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
2129         * tree-inline.c (expand_call_inline): Split block at stmt
2130         before the call.
2132 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2134         PR target/68163
2135         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
2136         are now unused after splitting mov{sf,sd}_hardfloat.
2137         (f32_lr2): Likewise.
2138         (f32_lm): Likewise.
2139         (f32_lm2): Likewise.
2140         (f32_li): Likewise.
2141         (f32_li2): Likewise.
2142         (f32_lv): Likewise.
2143         (f32_sr): Likewise.
2144         (f32_sr2): Likewise.
2145         (f32_sm): Likewise.
2146         (f32_sm2): Likewise.
2147         (f32_si): Likewise.
2148         (f32_si2): Likewise.
2149         (f32_sv): Likewise.
2150         (f32_dm): Likewise.
2151         (f32_vsx): Likewise.
2152         (f32_av): Likewise.
2153         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
2154         For movsf, order stores so the VSX stores occur before the GPR
2155         store which encourages the register allocator to use a traditional
2156         FPR instead of a GPR.  For movsd, order the stores so that the GPR
2157         store comes before the VSX stores to allow the power6 to work.
2158         This is due to the power6 not having a 32-bit integer store
2159         instruction from a FPR.
2160         (movsf_hardfloat): Likewise.
2161         (movsd_hardfloat): Likewise.
2163 2017-05-09  Martin Sebor  <msebor@redhat.com>
2165         PR translation/80280
2166         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
2167         added in r247778.
2169         PR translation/80280
2170         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
2171         data member added in r247778.
2172         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
2174 2017-05-09  Nathan Sidwell  <nathan@acm.org>
2176         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
2178         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
2179         typedefs.
2181 2017-05-09  Marek Polacek  <polacek@redhat.com>
2183         * doc/invoke.texi: Fix typo.
2185 2017-05-09  Richard Biener  <rguenther@suse.de>
2187         * tree-vrp.c (vrp_val_is_max): Adjust comment.
2188         (vrp_val_is_min): Likewise.
2189         (set_value_range_to_value): Likewise.
2190         (set_value_range_to_nonnegative): Likewise.
2191         (gimple_assign_nonzero_p): Likewise.
2192         (gimple_stmt_nonzero_p): Likewise.
2193         (vrp_int_const_binop): Likewise.  Remove unreachable case.
2194         (adjust_range_with_scev): Adjust comments.
2195         (compare_range_with_value): Likewise.
2196         (extract_range_from_phi_node): Likewise.
2197         (test_for_singularity): Likewise.
2199 2017-05-09  Richard Biener  <rguenther@suse.de>
2201         * tree-vrp.c (get_single_symbol): Add assert that we don't
2202         get overflowed constants as invariant part.
2203         (compare_values_warnv): Add comment before the TREE_NO_WARNING
2204         checks.  Use wi::cmp instead of recursing for integer constants.
2205         (compare_values): Just ignore whether we assumed undefined
2206         overflow instead of failing the compare.
2207         (extract_range_for_var_from_comparison_expr): Add comment before the
2208         TREE_NO_WARNING sets.
2209         (test_for_singularity): Likewise.
2210         (extract_range_from_comparison): Do not disable optimization
2211         when we assumed undefined overflow.
2212         (extract_range_basic): Remove init of unused var.
2214 2017-05-09  Richard Biener  <rguenther@suse.de>
2216         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
2217         (extract_range_from_multiplicative_op_1): Adjust.
2218         (extract_range_from_binary_expr_1): Use int_const_binop.
2220 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2222         PR target/80101
2223         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
2224         rs6000_store_data_bypass_p in seven define_bypass directives and
2225         in several comments.
2226         * config/rs6000/rs6000-protos.h: Add prototype for
2227         rs6000_store_data_bypass_p function.
2228         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
2229         function implements slightly different (rs6000-specific) semantics
2230         than store_data_bypass_p, returning false rather than aborting
2231         with assertion error when arguments do not satisfy the
2232         requirements of store data bypass.
2233         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
2234         rs6000_store_data_bypass_p.
2236 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
2238         * config/xtensa/xtensa-protos.h
2239         (xtensa_initial_elimination_offset): New declaration.
2240         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
2241         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
2242         macro definition, add case for FRAME_POINTER_REGNUM when
2243         FRAME_GROWS_DOWNWARD.
2244         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
2245         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
2246         xtensa_initial_elimination_offset.
2248 2017-05-08  Nathan Sidwell  <nathan@acm.org>
2250         * doc/invoke.texi: Alphabetize -fdump options.
2252 2017-05-08  Martin Sebor  <msebor@redhat.com>
2254         PR translation/80280
2255         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
2257 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2259         * target.def (compute_frame_layout): New optional target hook.
2260         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
2261         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
2262         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
2263         target hook.
2264         * reload1.c (verify_initial_elim_offsets): Likewise.
2265         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
2266         (use_simple_return_p): Call arm_compute_frame_layout if needed.
2267         (arm_get_frame_offsets): Split up into this ...
2268         (arm_compute_frame_layout): ... and this function.
2270 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
2272         * config/aarch64/constraints.md (Usa): New constraint.
2273         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
2275 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2277         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
2278         with_multilib_list after it has been checked.
2280 2017-05-08  Richard Biener  <rguenther@suse.de>
2282         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
2283         (bitmap_set_subtract_values): Likewise.
2285 2017-05-08  Richard Biener  <rguenther@suse.de>
2287         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
2288         (gimple_assign_nonzero): ... this and remove strict_overflow_p
2289         argument.
2290         (gimple_stmt_nonzero_warnv_p): Rename to ...
2291         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
2292         argument.
2293         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
2294         (extract_range_basic): Adjust, do not disable propagation on
2295         strict overflow sensitive simplification.
2296         (vrp_visit_cond_stmt): Likewise.
2298 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
2300         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
2301         body size unconditionally.
2303 2017-05-07  Jeff Law  <law@redhat.com>
2305         Revert:
2306         2017-05-06  Jeff Law  <law@redhat.com>
2307         PR tree-optimization/78496
2308         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
2309         code.
2311         PR tree-optimization/78496
2312         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
2313         (simplify_stmt_using_ranges): Call it.
2314         (vrp_dom_walker::before_dom_children): Extract equivalences
2315         from an ASSERT_EXPR with an equality comparison against a
2316         constant.
2318 2017-05-06  Jeff Law  <law@redhat.com>
2320         PR tree-optimization/78496
2321         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
2322         code.
2324         PR tree-optimization/78496
2325         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
2326         (simplify_stmt_using_ranges): Call it.
2327         (vrp_dom_walker::before_dom_children): Extract equivalences
2328         from an ASSERT_EXPR with an equality comparison against a
2329         constant.
2331 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
2333         * lra-constraints.c (lra_copy_reg_equiv): New function.
2334         (split_reg): Use it to copy equivalence information from the
2335         original register to the spill register.
2337 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
2339         PR rtl-optimization/75964
2340         * simplify-rtx.c (simplify_const_relational_operation): Remove
2341         invalid handling of comparisons of integer ABS.
2343 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
2345         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
2346         initialize to zero.
2347         (init_regs): Remove declaration.
2348         (function_arg_advance_32): Initialize error_p as boolean variable.
2350 2017-05-05  Nathan Sidwell  <nathan@acm.org>
2352         * store-motion.c (remove_reachable_equiv_notes): Reformat long
2353         lines.  Use for (;;).
2355 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2357         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
2358         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
2359         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
2360         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
2361         VF=2 that require versioning.
2363 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2365         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
2366         int.
2368 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2370         * diagnostic.h (diagnostic_override_option_index): Convert from
2371         macro to inline function.
2373 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2375         * diagnostic.c (last_module_changed_p): New function.
2376         (set_last_module): New function.
2377         (diagnostic_report_current_module): Convert macro usage to
2378         the above functions.
2379         * diagnostic.h (diagnostic_context::last_module): Strengthen
2380         from const line_map * to const line_map_ordinary *.
2381         (diagnostic_last_module_changed): Delete macro.
2382         (diagnostic_set_last_module): Delete macro.
2384 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2386         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
2387         with diagnostic_report_diagnostic.
2388         (diagnostic_n_impl_richloc): Likewise.
2389         * diagnostic.h (report_diagnostic): Delete macro.
2390         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
2391         with diagnostic_report_diagnostic.
2392         * substring-locations.c (format_warning_va): Likewise.
2394 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2396         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
2397         save/restor of format_spec.  Move option-printing code to...
2398         (print_option_information): ...this new function, and
2399         reimplement by simply printing to the pretty_printer,
2400         rather than appending to the format string.
2402 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2404         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
2405         handling logic into...
2406         (update_effective_level_from_pragmas): ...this new function.
2408 2017-05-04  Andrew Waterman  <andrew@sifive.com>
2410         * config/riscv/riscv.opt (mstrict-align): New option.
2411         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
2412         (SLOW_UNALIGNED_ACCESS): Define.
2413         (riscv_slow_unaligned_access): Declare.
2414         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
2415         field.
2416         (riscv_slow_unaligned_access): New variable.
2417         (rocket_tune_info): Set slow_unaligned_access to true.
2418         (optimize_size_tune_info): Set slow_unaligned_access to false.
2419         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
2420         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
2421         (riscv_option_override): Set riscv_slow_unaligned_access.
2422         * doc/invoke.texi: Add -mstrict-align to RISC-V.
2424 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
2426         * config/riscv/riscv.md: Unify indentation.
2428 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2430         PR target/79038
2431         PR target/79202
2432         PR target/79203
2433         * config/rs6000/rs6000.md (u code attribute): Add FIX and
2434         UNSIGNED_FIX.
2435         (extendsi<mode>2): Add support for doing sign extension via
2436         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
2437         don't have ISA 3.0 instructions.
2438         (extendsi<mode>2 splitter): Likewise.
2439         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
2440         generate the normal insns since SImode can now go in vector
2441         registers.  Disallow the special UNSPECs needed for previous
2442         machines to hide SImode being used.  Add new insns
2443         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
2444         (fix_trunc<mode>si2_stfiwx): Likewise.
2445         (fix_trunc<mode>si2_internal): Likewise.
2446         (fixuns_trunc<mode>si2): Likewise.
2447         (fixuns_trunc<mode>si2_stfiwx): Likewise.
2448         (fctiw<u>z_<mode>_smallint): Likewise.
2449         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
2450         of floating point to 32-bit integer from doing a direct move to
2451         the GPR registers to do a store.
2452         (fctiwz_<mode>): Break long line.
2454 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
2456         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
2457         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
2458         (addr_list, addr_offset_valid_p): New.
2459         (split_address_groups): Check offset validity with above function.
2460         (gt-tree-ssa-loop-ivopts.h): Include header file.
2462 2017-05-05  Nathan Sidwell  <nathan@acm.org>
2464         * config.gcc (arm*-*-*): Add missing 'fi'.
2466 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
2468         * doc/invoke.texi (-fopt-info): Explicitly say order of options
2469         included in -fopt-info does not matter.
2470         * doc/optinfo.texi (-fopt-info): Fix description of default
2471         behavour. Explicitly say order of options included in -fopt-info
2472         does not matter.
2474 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2476         * config.gcc: Allow combinations of aprofile and rmprofile values for
2477         --with-multilib-list.
2478         * config/arm/t-multilib: New file.
2479         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
2480         variables.  Remove setting of ISA and floating-point ABI in
2481         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
2482         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
2483         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
2484         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
2485         CPU options.
2486         * config/arm/t-rmprofile: Likewise except for the matches changes.
2487         * doc/install.texi (--with-multilib-list): Document the combination of
2488         aprofile and rmprofile values and warn about pitfalls in doing that.
2490 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
2492         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
2493         (movdi_aarch64): Likewise.
2495 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
2497         PR tree-optimization/80632
2498         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
2499         field.
2500         (build_arrays): Initialize it for virtual phis.
2501         (fix_phi_nodes): Use it for virtual phis.
2503         PR tree-optimization/80558
2504         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
2505         [x, y] op z into [x op, y op z] for op & or | if conditions
2506         are met.
2508 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2509             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2511         PR target/71607
2512         * config/arm/arm.md (use_literal_pool): Remove.
2513         (64-bit immediate split): No longer takes cost into consideration
2514         if arm_disable_literal_pool is enabled.
2515         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
2516         used when arm_disable_literal_pool is enabled.
2517         (arm_max_const_double_inline_cost): Remove use of
2518         arm_disable_literal_pool.
2519         (push_minipool_fix): Add assert.
2520         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
2521         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
2522         (no_literal_pool_sf_immediate): New.
2524 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2526         PR tree-optimization/80613
2527         * tree-ssa-dce.c (propagate_necessity): Remove cases for
2528         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2530 2017-05-05  Richard Biener  <rguenther@suse.de>
2532         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
2534 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
2536         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
2537         of this flag from insn conditions due to removal from r247495.
2539 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
2541         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
2542         New function.
2543         (arm_early_store_addr_dep_ptr): Likewise.
2544         * config/arm/aarch-common-protos.h
2545         (arm_early_load_addr_dep_ptr): Add prototype.
2546         (arm_early_store_addr_dep_ptr): Likewise.
2547         * config/arm/cortex-a53.md: Add new bypasses.
2549 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
2551         * tree.c (next_type_uid): Change type to unsigned.
2552         (type_hash_canon): Decrement back next_type_uid if
2553         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
2554         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
2555         if possible.
2557 2017-05-04  Martin Sebor  <msebor@redhat.com>
2559         * builtins.c: Fix a trivial typo in a comment.
2561         PR middle-end/79234
2562         * builtins.c (check_sizes): Adjust to handle reading past the end.
2563         Avoid printing excessive upper bound of ranges.  Use %E to print
2564         tree nodes instead of converting them to %wu.
2565         (expand_builtin_memchr): New function.
2566         (compute_dest_size): Rename...
2567         (compute_objsize): ...to this.
2568         (expand_builtin_memcpy): Adjust.
2569         (expand_builtin_mempcpy): Adjust.
2570         (expand_builtin_strcat): Adjust.
2571         (expand_builtin_strcpy): Adjust.
2572         (check_strncat_sizes): Adjust.
2573         (expand_builtin_strncat): Adjust.
2574         (expand_builtin_strncpy): Adjust and simplify.
2575         (expand_builtin_memset): Adjust.
2576         (expand_builtin_bzero): Adjust.
2577         (expand_builtin_memcmp): Adjust.
2578         (expand_builtin): Handle memcmp.
2579         (maybe_emit_chk_warning): Check strncat just once.
2581 2017-05-04  Martin Sebor  <msebor@redhat.com>
2583         PR preprocessor/79214
2584         PR middle-end/79222
2585         PR middle-end/79223
2586         * builtins.c (check_sizes): Add inlining context and issue
2587         warnings even when -Wno-system-headers is set.
2588         (check_strncat_sizes): Same.
2589         (expand_builtin_strncat): Same.
2590         (expand_builtin_memmove): New function.
2591         (expand_builtin_stpncpy): Same.
2592         (expand_builtin): Handle memmove and stpncpy.
2594 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
2596         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
2597         which is not used any more.
2599 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2601         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
2603 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2605         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
2606         (cortexa53_tunings): Likewise.
2607         (cortexa57_tunings): Likewise.
2608         (cortexa72_tunings): Likewise.
2609         (cortexa73_tunings): Likewise.
2611 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2613         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
2614         Set loop alignment to 8.
2616 2017-05-04  Martin Sebor  <msebor@redhat.com>
2618         PR translation/80280
2619         * builtins.c (expand_builtin_object_size): Add missing quoting to
2620         %D and like directives.
2621         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
2622         (hsa_type_for_tree_type): Same.
2623         (verify_function_arguments): Same.
2624         * symtab.c (symbol_table::change_decl_assembler_name): Same.
2625         * varasm.c (get_section): Same.
2626         (mark_weak): Same.
2628 2017-05-04  Martin Sebor  <msebor@redhat.com>
2630         PR translation/80280
2631         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
2633 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2635         * config/aarch64/aarch64.c (generic_addrcost_table):
2636         Change HI/TI mode setting.
2638 2017-05-04  Martin Jambor  <mjambor@suse.cz>
2640         PR tree-optimization/80622
2641         * tree-sra.c (comes_initialized_p): New function.
2642         (build_accesses_from_assign): Only set write lazily when
2643         comes_initialized_p is false.
2644         (analyze_access_subtree): Use comes_initialized_p.
2645         (propagate_subaccesses_across_link): Assert !comes_initialized_p
2646         instead of testing for PARM_DECL.
2648 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2650         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
2651         constraint on operand 0 to allow more general addressing modes.
2652         Adjust output template.
2653         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
2654         New function.
2655         * config/aarch64/aarch64-protos.h
2656         (aarch64_address_valid_for_prefetch_p): Declare prototype.
2657         * config/aarch64/constraints.md (Dp): New address constraint.
2658         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
2659         predicate.
2661 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
2663         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
2664         update use of estimate_ipcp_clone_size_and_time.
2665         (estimate_local_effects): Update use of
2666         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
2667         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
2668         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
2669         Return nonspecialized time.
2671 2017-05-04  Richard Biener  <rguenther@suse.de>
2673         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
2674         for the last VUSE which def dominates the PHI.  Directly call
2675         maybe_skip_until.
2676         (get_continuation_for_phi_1): Remove.
2678 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2680         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
2681         to explain the use of truncating division.  Cap the number of
2682         iterations to the maximum given by nb_iterations_upper_bound,
2683         if defined.
2685 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2687         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
2688         * configure: Regenerate.
2689         * config.in: Regenerate.
2690         * config/i386/driver-mingw32.c: new file.
2691         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
2692         * config.host: Link driver-mingw32.o on MinGW host.
2693         * doc/install.texi: Document new --enable-mingw-wildcard configure
2694         option.
2696 2017-05-04  Marek Polacek  <polacek@redhat.com>
2698         PR tree-optimization/80612
2699         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
2701 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2702             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
2704         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
2705         (movt splitter): Likewise.
2706         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
2707         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
2708         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
2709         block for Thumb-1 with MOVT.
2710         (thumb2_legitimate_address_p): Move code block ...
2711         (can_avoid_literal_pool_for_label_p): ... into this new function.
2712         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
2713         literal pool.
2714         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
2715         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
2716         "M-profile targets with the MOVT instruction".
2718 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2720         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
2721         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
2722         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
2724 2017-05-04  Martin Liska  <mliska@suse.cz>
2726         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
2727         variable cond_code.
2729 2017-05-04  Richard Biener  <rguenther@suse.de>
2731         * tree.c (array_at_struct_end_p): Handle arrays at struct
2732         end with flexarrays more conservatively.  Refactor and treat
2733         arrays of arrays or aggregates more strict.  Fix
2734         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
2735         * tree.c (array_at_struct_end_p): Adjust prototype.
2736         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
2737         * gimple-fold.c (get_range_strlen): Likewise.
2738         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
2740 2017-05-04  Richard Biener  <rguenther@suse.de>
2742         PR tree-optimization/31130
2743         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
2744         false.
2745         (supports_overflow_infinity): Likewise.
2746         (is_negative_overflow_infinity): Likewise.
2747         (is_positive_overflow_infinity): Likewise.
2748         (is_overflow_infinity): Likewise.
2749         (stmt_overflow_infinity): Likewise.
2750         (overflow_infinity_range_p): Likewise.
2751         (usable_range_p): Remove as always returning true.
2752         (make_overflow_infinity): Remove.
2753         (negative_overflow_infinity): Likewise.
2754         (positive_overflow_infinity): Likewise.
2755         (avoid_overflow_infinity): Likewise.
2756         (set_value_range): Adjust accordingly.
2757         (set_value_range_to_nonnegative): Likewise, remove now unused
2758         overflow_infinity arg.
2759         (vrp_operand_equal_p): Adjust.
2760         (update_value_range): Likewise.
2761         (range_int_cst_singleton_p): Likewise.
2762         (operand_less_p): Likewise.
2763         (compare_values_warnv): Likewise.
2764         (extract_range_for_var_from_comparison_expr): Likewise.
2765         (vrp_int_const_binop): Likewise.
2766         (zero_nonzero_bits_from_vr): Likewise.
2767         (extract_range_from_multiplicative_op_1): Likewise.
2768         (extract_range_from_binary_expr_1): Likewise.
2769         (extract_range_from_unary_expr): Likewise.
2770         (extract_range_from_comparison): Likewise.
2771         (extract_range_basic): Likewise.
2772         (adjust_range_with_scev): Likewise.
2773         (compare_ranges): Likewise.
2774         (compare_range_with_value): Likewise.
2775         (dump_value_range): Likewise.
2776         (test_for_singularity): Likewise, remove strict_overflow_p parameter
2777         never used.
2778         (simplify_cond_using_ranges): Adjust.
2780 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2782         * brig-builtins.def: Added a builtin for class_f64.
2783         * builtin-types.def: Added a builtin type needed by class_f64.
2785 2017-05-03  Jason Merrill  <jason@redhat.com>
2787         * timevar.def: Add TV_CONSTEXPR.
2789 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2791         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
2793 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2795         * ipa-prop.c (ipa_update_after_lto_read): Removed.
2796         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
2797         * ipa-cp.c (ipcp_propagate_stage): Do not call
2798         ipa_update_after_lto_read.
2799         * ipa-inline.c (ipa_inline): Likewise.
2801 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2803         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
2804         tag.  Added a default constructor and a destructor.
2805         (ipa_edge_args_sum_t): New class;
2806         (ipa_edge_args_sum): Declare.
2807         (ipa_edge_args_vector): Remove declaration.
2808         (IPA_EDGE_REF): Use ipa_edge_args_sum.
2809         (ipa_free_edge_args_substructures): Remove declaration.
2810         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
2811         (ipa_edge_args_info_available_for_edge_p): Likewise.
2812         * ipa-prop.c (ipa_edge_args_vector): Removed.
2813         (edge_removal_hook_holder): Likewise.
2814         (edge_duplication_hook_holder): Likewise.
2815         (ipa_edge_args_sum): New variable.
2816         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
2817         ipa_edge_args_vector.
2818         (ipa_free_edge_args_substructures): Likewise.
2819         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
2820         ipa_edge_args_vector.
2821         (ipa_edge_removal_hook): Turned into method
2822         ipa_edge_args_sum_t::remove.
2823         (ipa_edge_duplication_hook): Turned into method
2824         ipa_edge_args_sum_t::duplicate.
2825         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
2826         registering edge hooks.
2827         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
2828         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
2829         ipa_edge_args_sum instead of ipa_edge_args_vector.
2830         * ipa-profile.c (ipa_profile): Likewise.
2832 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2834         * symbol-summary.h (function_summary): New method exists.
2835         (function_summary::symtab_removal): Deallocate through release.
2836         (call_summary): New class.
2837         (gt_ggc_mx): New overload.
2838         (gt_pch_nx): Likewise.
2839         (gt_pch_nx): Likewise.
2841 2017-05-03  Jeff Law  <law@redhat.com>
2843         PR tree-optimization/78496
2844         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
2845         from simplify_cond_using_ranges.  Split off code to walk
2846         backwards through casts into ...
2847         (simplify_cond_using_ranges_2): New function.
2848         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
2849         (execute_vrp): After identifying jump threads, call
2850         simplify_cond_using_ranges_2.
2852 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
2854         PR bootstrap/80609
2855         * ipa-inline.h (inline_summary): Add ctor.
2856         (create_ggc): Do not use ggc_cleared_alloc.
2858 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
2859             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2861         * gcc.c (handle_braces): Support escaping in switch matching
2862         text.
2863         * doc/invoke.texi (Spec Files): Document it.
2864         Remove superfluous @code markup in items.
2866 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2868         * diagnostic-show-locus.c (struct column_range): New struct.
2869         (get_affected_columns): New function.
2870         (get_printed_columns): New function.
2871         (struct correction): New struct.
2872         (correction::ensure_capacity): New function.
2873         (correction::ensure_terminated): New function.
2874         (struct line_corrections): New struct.
2875         (line_corrections::~line_corrections): New dtor.
2876         (line_corrections::add_hint): New function.
2877         (layout::print_trailing_fixits): Reimplement in terms of the new
2878         classes.
2879         (selftest::test_overlapped_fixit_printing): New function.
2880         (selftest::diagnostic_show_locus_c_tests): Call it.
2882 2017-05-03  Nathan Sidwell  <nathan@acm.org>
2884         Canonicalize canonical type hashing
2885         * tree.h (type_hash_canon_hash): Declare.
2886         * tree.c (type_hash_list, attribute_hash_list): Move into
2887         type_hash_canon_hash.
2888         (build_type_attribute_qual_variant): Break out hash code calc into
2889         type_hash_canon_hash.
2890         (type_hash_canon_hash): New.  Generic type hash computation.
2891         (build_range_type_1, build_array_type_1, build_function_type,
2892         build_method_type_directly, build_offset_type, build_complex_type,
2893         make_vector_type): Call it.
2895 2017-05-03  Richard Biener  <rguenther@suse.de>
2897         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2898         When all DRs have unknown misaligned do not always peel
2899         when there is a store but apply the same costing model as if
2900         there were only loads.
2902 2017-05-03  Richard Biener  <rguenther@suse.de>
2904         Revert
2905         PR tree-optimization/80492
2906         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
2907         compare_base_decls returning dont-know properly.
2909 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2911         * config/arm/iterators.md (CCSI): New mode iterator.
2912         (arch): New mode attribute.
2913         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
2914         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
2915         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
2916         code iterator for success result mode.
2917         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
2918         the corresponding new insn generators.
2920 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
2922         Revert r247509
2923         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2924         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2926 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2928         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
2929         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
2930         (DDR_A): Wrap DDR argument in brackets.
2931         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
2932         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
2933         (DDR_REVERSED_P): Likewise.
2935 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
2937         PR tree-optimization/79472
2938         * tree-switch-conversion.c (struct switch_conv_info): Add
2939         contiguous_range and default_case_nonstandard fields.
2940         (collect_switch_conv_info): Compute contiguous_range and
2941         default_case_nonstandard fields, don't clear final_bb if
2942         contiguous_range and only the default case doesn't have the required
2943         structure.
2944         (check_all_empty_except_final): Set default_case_nonstandard instead
2945         of failing if contiguous_range and the default case doesn't have empty
2946         block.
2947         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
2948         and only the default case doesn't have the required constants.  Skip
2949         virtual phis.
2950         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
2951         if default_case_nonstandard.
2952         (build_constructors): Build constant 1 just once.  Assert that default
2953         values aren't inserted in between cases if contiguous_range.  Skip
2954         virtual phis.
2955         (build_arrays): Skip virtual phis.
2956         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
2957         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
2958         Handle virtual phis.
2959         (gen_inbound_check): Handle default_case_nonstandard case.
2960         (process_switch): Adjust check_final_bb caller.  Call
2961         gather_default_values with the first non-default case instead of
2962         default case if default_case_nonstandard.
2964 2017-05-02  Nathan Sidwell  <nathan@acm.org>
2966         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
2967         check.  Fix formatting.
2969 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
2971         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
2972         errors when comparing specialized and unspecialized times.
2974 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
2976         * diagnostic-show-locus.c
2977         (layout::should_print_annotation_line_p): Make private.
2978         (layout::print_annotation_line): Make private.
2979         (layout::annotation_line_showed_range_p): Make private.
2980         (layout::show_ruler): Make private.
2981         (layout::print_source_line): Make private.  Pass in line and
2982         line_width, rather than calling location_get_source_line.  Drop
2983         returned value.
2984         (layout::print_leading_fixits): New method.
2985         (layout::print_any_fixits): Rename to...
2986         (layout::print_trailing_fixits): ...this, and make private.
2987         Don't print newline fixits.
2988         (diagnostic_show_locus): Move logic for printing one row into...
2989         (layout::print_line): ...this new function.  Move the
2990         location_get_source_line call and error-handling from
2991         print_source_line to here.  Call print_leading_fixits, and rename
2992         print_any_fixits to print_trailing_fixits.
2993         (selftest::test_fixit_insert_containing_newline): Update now that
2994         newlines are partially supported.
2995         (selftest::test_fixit_insert_containing_newline_2): New test.
2996         (selftest::test_fixit_replace_containing_newline): Update comments.
2997         (selftest::diagnostic_show_locus_c_tests): Call the new test.
2998         * edit-context.c (class added_line): New class.
2999         (class edited_line): Describe newline handling in comment.
3000         (edited_line::actually_edited_p): New method.
3001         (edited_line::print_content): Delete redundant decl.
3002         (edited_line::m_predecessors): New field.
3003         (edited_file::print_content): Call edited_line::print_content.
3004         (edited_file::print_diff): Update to support newlines.
3005         (edited_file::print_diff_hunk): Likewise.
3006         (edited_file::print_run_of_changed_lines): New function.
3007         (edited_file::print_diff_line): Convert to...
3008         (print_diff_line): ...this.
3009         (edited_file::get_effective_line_count): New function.
3010         (edited_line::edited_line): Initialize new field m_predecessors.
3011         (edited_line::~edited_line): Clean up m_predecessors.
3012         (edited_line::apply_fixit): Handle newlines.
3013         (edited_line::get_effective_line_count): New function.
3014         (edited_line::print_content): New function.
3015         (edited_line::print_diff_lines): New function.
3016         (selftest::test_applying_fixits_insert_containing_newline): New
3017         test.
3018         (selftest::test_applying_fixits_replace_containing_newline): New
3019         test.
3020         (selftest::insert_line): New function.
3021         (selftest::test_applying_fixits_multiple_lines): Add example of
3022         inserting a line.
3023         (selftest::edit_context_c_tests): Call the new tests.
3025 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3027         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
3028         parameter cand.  Update dump information.
3029         (get_computation_cost): Update uses.
3031 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3033         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
3034         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
3035         (get_computation_at, rewrite_use_address): Update use of
3036         get_computation_aff.
3038 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3040         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
3041         (get_computation): Delete.
3042         (get_computation_cost): Implement like get_computation_cost_at.
3043         Use get_computation_at.
3044         (get_computation_cost_at): Delete.
3045         (rewrite_use_nonlinear_expr): Use get_computation_at.
3046         (rewrite_use_compare, remove_unused_ivs): Ditto.
3048 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3050         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
3052 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3054         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
3055         (ivopts_global_cost_for_size): Rename parameter and update uses.
3056         (iv_ca_recount_cost): Update uses.
3057         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
3058         candidates seperately in n_invs and n_cands.
3059         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
3061 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3063         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
3064         (find_inv_vars_cb): New.
3065         (find_depends): Renamed to ...
3066         (find_inv_vars): ... this.
3067         (add_candidate_1, force_var_cost): Call find_inv_vars.
3068         (split_address_cost, determine_group_iv_cost_cond): Ditto.
3070 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3072         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
3073         inv_vars.  Add inv_exprs.
3074         (struct iv_cand): Rename depends_on to inv_vars.
3075         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
3076         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
3077         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
3078         (dump_cand): Dump inv_vars.
3079         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
3080         (record_invariant, find_depends, add_candidate_1): Ditto.
3081         (set_group_iv_cost, force_var_cost): Ditto.
3082         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
3083         (get_computation_cost_at, get_computation_cost): Ditto.
3084         (determine_group_iv_cost_generic): Ditto.
3085         (determine_group_iv_cost_address): Ditto.
3086         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
3087         (determine_group_iv_costs): Ditto.
3088         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
3089         (iv_ca_set_remove_invariants): Renamed to ...
3090         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
3091         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
3092         (iv_ca_set_add_invariants):  Renamed to ...
3093         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
3094         (iv_ca_set_cp): Use iv_ca_set_add_invs.
3095         (iv_ca_has_deps): Support inv_vars and inv_exprs.
3096         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
3097         (create_new_ivs): Remove useless dump.
3099 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3101         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
3102         iv_cand code.
3103         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
3104         (iv_ca_set_no_cp, create_new_iv): Ditto.
3106 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3108         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3110 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
3112         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
3113         function tree_check2.
3115 2017-05-02  Martin Liska  <mliska@suse.cz>
3117         * doc/gcov.texi: Add missing preposition.
3118         * gcov.c (function_info::function_info): Properly fill up
3119         all member variables.
3121 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
3123         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
3125 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
3127         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
3129 2017-05-02  Martin Liska  <mliska@suse.cz>
3131         PR lto/77954.
3132         * lto-streamer-in.c (lto_read_tree_1): Remove
3133         LTO_STREAMER_DEBUG.
3134         * lto-streamer.c (struct tree_hash_entry): Likewise.
3135         (struct tree_entry_hasher): Likewise.
3136         (tree_entry_hasher::hash): Likewise.
3137         (tree_entry_hasher::equal): Likewise.
3138         (lto_streamer_init): Likewise.
3139         (lto_orig_address_map): Likewise.
3140         (lto_orig_address_get): Likewise.
3141         (lto_orig_address_remove): Likewise.
3142         * lto-streamer.h: Likewise.
3143         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
3144         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
3146 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
3148         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
3149         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
3150         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
3151         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
3152         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
3153         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
3154         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
3155         (mm_maskz_sub_ss): New intrinsics.
3156         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3157         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
3158         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
3159         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
3160         (__builtin_ia32_subss_mask_round): New builtins.
3161         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3162         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3163         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
3164         Renamed to ...
3165         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
3166         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
3167         Changed to ...
3168         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
3169         ... this.
3171 2017-05-02  Martin Jambor  <mjambor@suse.cz>
3173         PR tree-optimization/78687
3174         * tree-sra.c (access): New field parent.
3175         (process_subtree_disqualification): New function.
3176         (disqualify_candidate): Call it.
3177         (build_accesses_from_assign): Reset write flag if creating an
3178         assighnment link.
3179         (build_access_subtree): Fill in parent field and also prpagate
3180         down grp_write flag.
3181         (create_artificial_child_access): New parameter set_grp_write, set
3182         grp_write to its value.
3183         (propagate_subaccesses_across_link): Also propagate grp_write flag
3184         values.
3185         (propagate_all_subaccesses): Push the closest parent back to work
3186         queue if add_access_to_work_queue returned true.
3188 2017-05-02  Richard Biener  <rguenther@suse.de>
3190         * common.opt (fstrict-overflow): Alias negative to fwrapv.
3191         * doc/invoke.texi (fstrict-overflow): Remove all traces of
3192         -fstrict-overflow documentation.
3193         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
3194         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
3195         flag_strict_overflow.
3196         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
3197         * lto-opts.c (lto_write_options): Do not stream it.
3198         * lto-wrapper.c (merge_and_complain): Do not handle it.
3199         * opts.c (default_options_table): Do not set -fstrict-overflow.
3200         (finish_options): Likewise do not clear it when sanitizing.
3201         * simplify-rtx.c (simplify_const_relational_operation): Do not
3202         test flag_strict_overflow.
3204 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
3206         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
3207         using enabled attribute.
3208         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
3209         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
3210         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
3211         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
3212         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
3213         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
3214         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
3215         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
3216         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
3217         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
3219 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
3221         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
3223 2017-05-02  Richard Biener  <rguenther@suse.de>
3225         PR tree-optimization/80591
3226         Revert
3227         2017-04-10  Richard Biener  <rguenther@suse.de>
3229         * tree-ssa-structalias.c (find_func_aliases): Properly handle
3230         asm inputs.
3232 2017-05-02  Richard Biener  <rguenther@suse.de>
3234         PR tree-optimization/80549
3235         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
3236         (cleanup_tree_cfg_noloop): Create forwarders to known loop
3237         headers if they do not have a preheader.
3239 2017-05-02  Martin Liska  <mliska@suse.cz>
3241         PR other/80589
3242         * common.opt: Fix typo.
3243         * doc/invoke.texi: Likewise.
3245 2017-05-01  Jan Beulich  <jbeulich@suse.com>
3247         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
3248         swapping, add (x,x,m,x,n) alternative.
3250 2017-05-01  Nathan Sidwell  <nathan@acm.org>
3252         * calls.c (combine_pending_stack_adjustment_and_call): Remove
3253         unnecessary unadjusted_alignment check.
3255 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
3257         PR c++/80038
3258         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
3259         operations here.
3260         * gimplify.c (gimplify_cilk_detach): New function.
3261         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
3262         * tree-core.h: Document EXPR_CILK_SPAWN.
3263         * tree.h (EXPR_CILK_SPAWN): Define.
3265 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
3267         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
3268         to use new fixit_hint representation, using the "replace" logic.
3269         (get_line_span_for_fixit_hint): Likewise.
3270         (layout::print_any_fixits): Likewise.
3271         (selftest::test_one_liner_many_fixits): Rename to...
3272         (selftest::test_one_liner_many_fixits_1): ...this, and update
3273         comment and expected output to reflect that the multiple fix-it
3274         hints are now consolidated into one insertion.
3275         (selftest::test_one_liner_many_fixits_2): New test.
3276         (selftest::test_diagnostic_show_locus_one_liner): Update for
3277         above.
3278         (selftest::test_fixit_consolidation): Update for fix-it API
3279         change.
3280         * diagnostic.c (print_parseable_fixits): Likewise.
3281         * edit-context.c (edited_line::m_line_events): Convert from
3282         auto_vec <line_event *> to auto_vec <line_event>.
3283         (class line_event): Convert from abstract base class to a concrete
3284         class, taking over the role of replace_event.
3285         (class insert_event): Delete.
3286         (class replace_event): Rename to class line_event.  Convert to
3287         half-open range.
3288         (edit_context::add_fixits): Reimplement.
3289         (edit_context::apply_insert): Delete.
3290         (edit_context::apply_replace): Rename to...
3291         (edit_context::apply_fixit): ...this.  Convert to half-open range.
3292         (edited_file::apply_insert): Delete.
3293         (edited_file::apply_replace): Rename to...
3294         (edited_file::apply_fixit): ...this.
3295         (edited_line::~edited_line): Drop deletion of events.
3296         (edited_line::apply_insert): Delete.
3297         (edited_line::apply_replace): Rename to...
3298         (edited_line::apply_fixit): ...this.  Convert to half-open range.
3299         Update for change to type of m_line_events.
3300         * edit-context.h (edit_context::apply_insert): Delete.
3301         (edit_context::apply_replace): Rename to...
3302         (edit_context::apply_fixit): ...this.
3304 2017-05-01  Martin Sebor  <msebor@redhat.com>
3306         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
3307         known.
3309 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
3311         PR target/68491
3312         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
3313         __get_cpuid_max returns 0.
3314         (__get_cpuid_count): Ditto.
3316 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
3318         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
3319         replacement expression is another instance of one of its arguments.
3321 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
3323         PR target/79430
3324         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
3325         check for stack push/pop autoinc.
3326         * config/i386/i386.c (ix86_agi_dependent): Return false
3327         if the only reason why modified_in_p returned true is that
3328         addr is SP based and set_insn is a push or pop.
3330 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
3332         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
3333         overflow check.
3335 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
3337         PR ipa/79224
3338         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
3339         (account_size_time): Use two predicates - exec_pred and
3340         nonconst_pred_ptr.
3341         (evaluate_conditions_for_known_args): Compute both clause and
3342         nonspec_clause.
3343         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
3344         (inline_summary_t::duplicate): Update.
3345         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
3346         separately.
3347         (compute_inline_parameters): Likewise.
3348         (estimate_edge_size_and_time): Update caluclation of time.
3349         (estimate_node_size_and_time): Compute both time and nonspecialized
3350         time.
3351         (estimate_ipcp_clone_size_and_time): Update.
3352         (inline_merge_summary): Update.
3353         (do_estimate_edge_time): Update.
3354         (do_estimate_edge_size): Update.
3355         (do_estimate_edge_hints): Update.
3356         (inline_read_section, inline_write_summary): Stream both new predicates.
3357         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
3358         as argument.
3359         (compute_inlined_call_time): Cleanup.
3360         (big_speedup_p): Update.
3361         (edge_badness): Update.
3362         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
3363         (size_time_entry): Replace predicate by exec_predicate and
3364         nonconst_predicate.
3365         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
3366         (estimate_edge_time): Return also nonspec_time.
3367         (reset_edge_growth_cache): Update.
3369 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
3371         PR rtl-optimization/80491
3372         * ifcvt.c (noce_process_if_block): When looking for x setter
3373         with missing else_bb, don't check only the insn right before
3374         cond_earliest, but look for the last insn that x is modified in
3375         within the same bb.
3377         PR rtl-optimization/80491
3378         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
3380 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
3382         PR tree-optimization/80487
3383         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
3385 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3387         PR tree-optimization/79697
3388         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
3389         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
3390         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
3391         BUILT_IN_STRNDUP.
3392         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
3393         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
3395 2017-04-28  Martin Sebor  <msebor@redhat.com>
3397         PR tree-optimization/80523
3398         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
3399         (init_target_to_host_charmap, target_to_host, target_strtol10): New
3400         functions.
3401         (maybe_warn, format_directive, parse_directive): Use new functions.
3402         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
3404 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
3406         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
3408 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3410         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
3411         target_header_dir): Set correctly.
3412         * configure: Regenerated.
3413         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3414         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3415         instead of SYSTEM_HEADER_DIR.
3417 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
3419         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
3420         (estimate_local_effects): Likewise.
3421         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
3422         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
3423         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
3424         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
3425         do_estimate_edge_time, estimate_edge_time): Likewise.
3426         * ipa-inline-analysis.c (estimate_node_size_and_time,
3427         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
3428         (estimate_time_after_inlining): Remove.
3430 2017-04-28  Martin Liska  <mliska@suse.cz>
3432         * doc/gcov.texi: Enhance documentation of gcov.
3434 2017-04-28  Martin Liska  <mliska@suse.cz>
3436         * doc/gcov.texi: Sort options in alphabetic order.
3437         * doc/gcov-dump.texi: Likewise.
3438         * doc/gcov-tool.texi: Likewise.
3439         * gcov.c (print_usage): Likewise.
3440         * gcov-dump.c (print_usage): Likewise.
3441         * gcov-tool.c (print_merge_usage_message): Likewise.
3442         (print_rewrite_usage_message): Likewise.
3443         (print_overlap_usage_message): Likewise.
3445 2017-04-28  Martin Liska  <mliska@suse.cz>
3447         PR gcov-profile/53915
3448         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
3450 2017-04-28  Martin Liska  <mliska@suse.cz>
3452         PR gcov-profile/79891
3453         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
3454         is marked by compiler as living on a line.
3455         (get_cycles_count): Remove usage of the union.
3456         (output_intermediate_file): Likewise.
3457         (find_source): Fix GNU coding style.
3458         (accumulate_line_counts): Remove old non-all block mode.
3459         (output_lines): Remove usage of the union.
3460         * profile.c (output_location): Include all BBs, even if
3461         belonging to a same line (and file) as a previous BB.
3463 2017-04-28  Martin Liska  <mliska@suse.cz>
3465         * gcov.c (process_args): Handle new argument 'w'.
3466         (read_graph_file): Assign ID to BBs.
3467         (output_branch_count): Display BB # if verbose flag is set.
3468         (output_lines): Likewise for arcs.
3469         (print_usage): Add '--verbose' option help.
3470         * doc/gcov.texi: Document --verbose (-w) option.
3472 2017-04-28  Martin Liska  <mliska@suse.cz>
3474         * gcov.c (struct block_location_info): New struct.
3475         (process_file): Fill up the new structure.
3476         (read_graph_file): Replace usage of encoding by the newly added
3477         struct.
3478         (add_line_counts): Likewise.
3479         (accumulate_line_counts): Remove usage of the union.
3480         (function_info::function_info): New function.
3481         (function_info::~function_info): Likewise.
3482         (process_file): Call delete instead of release_function.
3483         (release_function): Release the function.
3484         (release_structures): Call delete instead of release_function.
3485         (solve_flow_graph): Replace usage of num_blocks.
3486         (find_exception_blocks): Likewise.
3487         (output_lines): Fix GNU coding style.
3489 2017-04-28  Martin Liska  <mliska@suse.cz>
3491         PR driver/56469
3492         * coverage.c (coverage_remove_note_file): New function.
3493         * coverage.h: Declare the function.
3494         * toplev.c (finalize): Clean if an error has been seen.
3496 2017-04-28  Martin Liska  <mliska@suse.cz>
3498         PR gcov-profile/80031
3499         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
3500         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
3501         * gcov.c (read_graph_file): Read just number of blocks.
3502         * profile.c (branch_prob): Do not stream 0 flags per a basic
3503         block.
3505 2017-04-28  Martin Liska  <mliska@suse.cz>
3507         * gcov-dump.c (tag_*): Add new argument to declarations.
3508         (dump_gcov_file): Likewise.
3509         (tag_blocks): Add and use new argument depth.
3510         (tag_arcs): Likewise.
3511         (tag_lines): Likewise.
3512         (tag_counters): Likewise.
3513         (tag_summary): Likewise.
3514         (dump_working_sets): Use depth to do a proper indentation.
3516 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
3518         PR bootstrap/80531
3519         * cgraph.h (symtab_node::debug_symtab): No longer inline.
3520         * symtab.c (symtab_node::debug_symtab): Move definition here.
3522 2017-04-28  Richard Biener  <rguenther@suse.de>
3524         * lto-streamer.h (LTO_major_version): Bump to 7.
3526 2017-04-28  Richard Biener  <rguenther@suse.de>
3528         * tree-vrp.c (assert_info): New struct.
3529         (add_assert_info): New helper.
3530         (register_edge_assert_for_2): Refactor to add asserts to a vector
3531         of assert_info.
3532         (register_edge_assert_for_1): Likewise.
3533         (register_edge_assert_for): Likewise.
3534         (finish_register_edge_assert_for): New helper actually registering
3535         asserts where live on edge.
3536         (find_conditional_asserts): Adjust.
3537         (find_switch_asserts): Likewise.
3538         (evrp_dom_walker::try_find_new_range): Generalize.
3539         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
3541 2017-04-27  Marek Polacek  <polacek@redhat.com>
3543         PR sanitizer/80349
3544         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
3545         arg10 and arg11 to itype.
3547 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
3549         * doc/extend.texi (Object Size Checking): Improve grammar.
3551 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
3553         PR target/80530
3554         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
3555         that the logic for permitting reciprocal estimates matches that
3556         in use_rsqrt_p.
3558 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3560         PR c++/80534
3561         * tree.c (type_cache_hasher::equal): Only compare
3562         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
3563         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
3564         non-aggregate element types.
3565         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
3566         about the flag on ARRAY_TYPEs in the comment, formatting fix.
3568 2017-04-27  Richard Biener  <rguenther@suse.de>
3570         PR middle-end/80533
3571         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
3572         stripping ARRAY_REFs from MEM_EXPR make sure we're not
3573         keeping a reference to a trailing array.
3575 2017-04-27  Richard Biener  <rguenther@suse.de>
3577         PR middle-end/80539
3578         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
3579         being in loop-closed SSA form conservatively.
3580         (chrec_fold_multiply_poly_poly): Likewise.
3582 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
3584         PR middle-end/79665
3585         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
3586         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
3588 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3590         PR target/77728
3591         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
3592         (aarch64_function_arg_alignment): Return unsigned int again, but still
3593         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
3594         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3595         Don't emit -Wpsabi note.
3596         (aarch64_function_arg_boundary): Likewise.
3597         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3598         caller.
3600 2017-04-26  Nathan Sidwell  <nathan@acm.org>
3602         * tree.h (crc32_unsigned_n): Declare.
3603         (crc32_unsigned, crc32_unsigned): Make inline.
3604         * tree.c (crc32_unsigned_bits): Replace with ...
3605         (crc32_unsigned_n): ... this.
3606         (crc32_unsigned, crc32_byte): Remove.
3607         (crc32_string): Remove unnecessary braces.
3609 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
3611         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
3612         * ipa-inline-analysis.c (MAX_TIME): Remove.
3613         (account_size_time): Use sreal for time.
3614         (dump_inline_summary): Update.
3615         (estimate_function_body_sizes): Update.
3616         (estimate_edge_size_and_time): Update.
3617         (estimate_calls_size_and_time): Update.
3618         (estimate_node_size_and_time): Update.
3619         (inline_merge_summary): Update.
3620         (inline_update_overall_summary): Update.
3621         (estimate_time_after_inlining): Update.
3622         (inline_read_section): Update.
3623         (inline_write_summary): Update.
3624         * ipa-inline.c (compute_uninlined_call_time): Update.
3625         (compute_inlined_call_time): Update.
3626         (recursive_inlining): Update.
3627         (inline_small_functions): Update.
3628         (dump_overall_stats): Update.
3629         * ipa-inline.h: Include sreal.h.
3630         (size_time_entry): Turn time to sreal.
3631         (inline_summary): Turn self_time nad time to sreal.
3633 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
3635         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
3636         data-streamer.h
3637         (sreal::stream_out, sreal::stream_in): New.
3638         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
3640 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3642         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
3643         environment.
3645 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
3647         PR target/70799
3648         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3649         Handle ASHIFTRT.
3650         (dimode_scalar_chain::compute_convert_gain): Ditto.
3651         (dimode_scalar_chain::make_vector_copies): Ditto.
3652         (dimode_scalar_chain::convert_reg): Ditto.
3653         (dimode_scalar_chain::convert_insn): Ditto.
3654         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
3655         (VI248_AVX512BW_1): New mode iterator.
3656         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
3657         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
3658         mode iterator.
3660 2017-04-25  Martin Sebor  <msebor@redhat.com>
3662         PR tree-optimization/80497
3663         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
3664         constants are representable in HOST_WIDE_INT.
3665         (parse_directive): Ditto.
3667 2017-04-25  Martin Sebor  <msebor@redhat.com>
3669         PR bootstrap/80486
3670         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
3671         (new_zero_array): Adjust signature.
3672         (dom_info::dom_init): Used unsigned rather that size_t.
3673         (dom_info::dom_info): Same.
3675 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3676             Jakub Jelinek  <jakub@redhat.com>
3678         PR target/77728
3679         * config/arm/arm.c: Include gimple.h.
3680         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3681         returns negative, increment ncrn only if it returned positive.
3682         (arm_needs_doubleword_align): Return int instead of bool,
3683         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
3684         members, but if there is any such non-FIELD_DECL
3685         > PARM_BOUNDARY aligned decl, return -1 instead of false.
3686         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3687         returns negative, increment nregs only if it returned positive.
3688         (arm_setup_incoming_varargs): Likewise.
3689         (arm_function_arg_boundary): Emit -Wpsabi note if
3690         arm_needs_doubleword_align returns negative, return
3691         DOUBLEWORD_ALIGNMENT only if it returned positive.
3693 2017-04-25  Marek Polacek  <polacek@redhat.com>
3695         PR sanitizer/80349
3696         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3697         first argument to type.
3699 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3701         PR target/80482
3702         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
3703         type checks to test for compatibility instead of equality.
3705 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3706             Jakub Jelinek  <jakub@redhat.com>
3708         PR target/77728
3709         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
3710         type.
3711         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
3712         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
3713         the alignment computation, but return their maximum in warn_alignment.
3714         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3715         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
3716         is smaller.
3717         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
3718         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3719         caller.
3721 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3723         * config/arc/simdext.md (dmpyh): Fix typo.
3725 2017-04-25  Richard Biener  <rguenther@suse.de>
3727         PR tree-optimization/80492
3728         * alias.c (compare_base_decls): Handle registers with asm
3729         specification conservatively.
3730         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3731         compare_base_decls returning dont-know properly.
3733 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3735         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
3736         (legitimate_offset_address_p): New function.
3737         (arc_legitimate_address_p): Use above function.
3739 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3741         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
3743 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3745         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
3746         ACCH registers whenever they are available.
3748 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3750         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
3751         double regs fix when not used.
3753 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3755         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
3756         core registers.
3757         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
3758         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
3760 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3762         * config/arc/arc.c (arc_output_addsi): Check for h-register class
3763         when emitting short ADD instructions.
3765 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3767         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
3768         constraint.
3769         (cmpsi_cc_c_insn): Likewise.
3770         (cbranchsi4_scratch): Compute proper instruction length using
3771         compact_hreg_operand.
3772         * config/arc/predicates.md (compact_hreg_operand): New predicate.
3774 2017-04-25  Richard Biener  <rguenther@suse.de>
3776         PR middle-end/80509
3777         * passes.c (pass_manager::pass_manager): Initialize
3778         m_name_to_pass_map.
3780 2017-04-25  Richard Biener  <rguenther@suse.de>
3782         PR tree-optimization/79201
3783         * tree-ssa-sink.c (statement_sink_location): Handle calls.
3785 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3787         PR target/80464
3788         * config/s390/vector.md: Split MEM->GPR vector moves for
3789         non-s_operand addresses.
3791 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3793         PR target/79895
3794         * config/s390/predicates.md (reload_const_wide_int_operand): New
3795         predicate.
3796         * config/s390/s390.md ("movti"): Remove d/P alternative.
3797         ("movti_bigconst"): New pattern definition.
3799 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3801         PR target/80080
3802         * s390-protos.h (s390_expand_cs_hqi): Removed.
3803         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
3804         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
3805         modes as well as CCZ1mode and CCZmode.
3806         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
3807         signature of s390_emit_compare_and_swap.
3808         (s390_expand_cs_hqi): Likewise, make static.
3809         (s390_expand_cs_tdsi): Generate an explicit compare before trying
3810         compare-and-swap, in some cases.
3811         (s390_expand_cs): Wrapper function.
3812         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
3813         atomic_exchange.
3814         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
3815         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
3816         patterns for small and large integers.  Forbid symref memory operands.
3817         Move expander to s390.c.  Require cc register.
3818         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
3819         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
3820         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
3821         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
3822         symref memory operands.  Remove CC mode and call s390_match_ccmode
3823         instead.
3824         ("atomic_exchange<mode>"): Allow and implement all integer modes.
3826 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3828         * config/s390/s390.md (define_peephole2): New peephole to help
3829         combining the load-and-test pattern with volatile memory.
3831 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3833         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
3834         with CCZmode for TARGET_Z196.
3836 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3838         PR rtl-optimization/80501
3839         * combine.c (make_compound_operation_int): Set subreg_code to SET
3840         even for AND with mask of the sign bit of mode.
3842         PR rtl-optimization/80500
3843         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
3844         sum's initial value.
3846 2017-04-25  Julian Brown  <julian@codesourcery.com>
3847             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3849         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
3851 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
3853         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
3855 2017-04-25  Julian Brown  <julian@codesourcery.com>
3856             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3858         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
3859         (thunderx2t99_sha): New Reservation.
3861 2017-04-25  Julian Brown  <julian@codesourcery.com>
3862             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3864         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
3865         type for 1-element load.
3867 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
3869         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
3871 2017-04-24  Martin Jambor  <mjambor@suse.cz>
3873         PR tree-optimization/80293
3874         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
3875         char arrays not totally scalarizable if it is false.
3876         (analyze_all_variable_accesses): Pass correct value in the new
3877         parameter.  Add a statistics counter.
3879 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
3881         PR middle-end/79931
3882         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
3884 2017-04-24  Richard Biener  <rguenther@suse.de>
3886         PR tree-optimization/80494
3887         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
3888         out for complex types.
3890 2017-04-24  Richard Biener  <rguenther@suse.de>
3892         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
3893         * tree-ssa-sccvn.c (print_scc): Print SCC size.
3894         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
3895         (DFS): Adjust and never fail.
3896         (sccvn_dom_walker::fail): Remove.
3897         (sccvn_dom_walker::before_dom_children): Adjust.
3898         (run_scc_vn): Likewise and never fail.
3899         * tree-ssa-pre.c (pass_pre::execute): Adjust.
3900         (pass_fre::execute): Likewise.
3902 2017-04-24  Richard Biener  <rguenther@suse.de>
3904         PR tree-optimization/79725
3905         * tree-ssa-sink.c (statement_sink_location): Return whether
3906         failure reason was zero uses.  Move that check later.
3907         (sink_code_in_bb): Deal with zero uses by removing the stmt
3908         if possible.
3910 2017-04-24  Richard Biener  <rguenther@suse.de>
3912         PR c++/2972
3913         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
3914         pointer-based references.
3916 2017-04-24  Richard Biener  <rguenther@suse.de>
3918         PR bootstrap/79814
3919         * pass_manager.h (pass_manager::operator new): Remove.
3920         (pass_manager::operator delete): Likewise.
3921         * passes.c (pass_manager::operator new): Remove.
3922         (pass_manager::operator delete): Likewise.
3923         (pass_manager::pass_manager): Zero individual pass members.
3925 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
3927         PR target/70799
3928         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
3929         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
3930         Check "XEXP (src, 1)" operand here.
3931         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
3932         Check "XEXP (src, 1)" operand here.
3933         (dimode_scalar_chain::make_vector_copies): Detect count register
3934         of a shift instruction.  Zero extend count register from QImode
3935         to DImode to satisfy vector shift pattern count operand predicate.
3936         Substitute vector shift count operand with a DImode copy.
3937         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
3938         vector register.
3940 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
3942         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
3943         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3944         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
3945         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3946         (UNSPEC_NOREX_MEM): Remove definition.
3948 2017-04-21  Richard Biener  <rguenther@suse.de>
3950         PR tree-optimization/79547
3951         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3952         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
3953         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
3954         without any constraints.
3956 2017-04-21  Richard Biener  <rguenther@suse.de>
3958         PR tree-optimization/78847
3959         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
3961 2017-04-21  Richard Biener  <rguenther@suse.de>
3963         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
3964         (build_distinct_type_copy): Likewise.
3965         (build_variant_type_copy): Likewise.
3966         * tree.c (build_qualified_type): Pass down mem-stat info.
3967         (build_distinct_type_copy): Likewise.
3968         (build_variant_type_copy): Likewise.
3970 2017-04-21  Richard Biener  <rguenther@suse.de>
3972         PR tree-optimization/80237
3973         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
3974         defaulted to NULL.
3975         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
3976         for a simplified result.
3978 2016-04-21  Richard Biener  <rguenther@suse.de>
3980         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
3981         sth as strict as a simple_iv but a chrec without symbols and an
3982         operand defined in the loop we are peeling (and not some subloop).
3983         (propagate_constants_for_unrolling): Propagate all constants.
3985 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3987         PR target/79804
3988         * config/i386/i386.c (print_reg): Remove assert for disalowed
3989         regno values, call output_operand_lossage instead.
3991 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3993         PR target/78090
3994         * config/i386/constraints.md (Yc): New register constraint.
3995         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
3996         Use Yc constraint for alternative 2 of operand 0.  Remove
3997         preferred_for_speed attribute.
3999 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4001         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
4002         lastprivate clauses in SIMT case.
4004 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
4006         * doc/invoke.texi (-Wextra-semi): Document new warning option.
4008 2017-04-20  Richard Biener  <rguenther@suse.de>
4010         PR tree-optimization/57796
4011         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
4012         as N scalar stores.
4013         (vect_model_load_cost): Cost gathers as N scalar loads.
4015 2017-04-20  Richard Biener  <rguenther@suse.de>
4017         * ggc-page.c (ggc_allocated_p): Rename to ...
4018         (safe_lookup_page_table_entry): ... this and return the lookup
4019         result.
4020         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
4022 2017-04-20  Richard Biener  <rguenther@suse.de>
4024         PR tree-optimization/80453
4025         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
4026         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
4027         from the conditions.
4028         (vn_phi_eq): Pass them down.
4029         (vn_phi_lookup): Record them.
4030         (vn_phi_insert): Likewise.
4032 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
4034         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
4035         uninitialized variable warning to avoid buffer overrun.
4037 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4039         PR other/71250
4040         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
4041         is suppressed for '{ 0 }' in C.
4043 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4045         * BASE-VER: Set to 8.0.0.
4047 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4049         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
4050         priority .init_array and .fini_array section with SECTION_NOTYPE
4051         flag.
4053 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4055         PR middle-end/80423
4056         * tree.h (build_array_type): Add typeless_storage default argument.
4057         * tree.c (type_cache_hasher::equal): Also compare
4058         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
4059         (build_array_type): Add typeless_storage argument, set
4060         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
4061         recursive call.
4062         (build_nonshared_array_type): Adjust build_array_type_1 caller.
4063         (build_array_type): Likewise.  Add typeless_storage argument.
4065 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4066             Jakub Jelinek  <jakub@redhat.com>
4068         PR tree-optimization/80426
4069         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
4070         operation on symbolic operands, also compute the overflow for the
4071         invariant part when the operation degenerates into a negation.
4073 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
4075         PR debug/80461
4076         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
4077         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
4079         PR debug/80436
4080         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
4082 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
4084         PR target/80462
4085         * config/avr/avr.c (tree.h): Include it.
4086         (cgraph.h): Include it.
4087         (avr_encode_section_info): Don't warn for uninitialized progmem
4088         variable if it's just an alias.
4090 2017-04-19  Richard Biener  <rguenther@suse.de>
4092         PR ipa/65972
4093         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
4094         when needed by AutoPGO.
4096 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
4098         PR lto/50345
4099         * doc/lto.texi: Remove an extra 'that'.
4101 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
4103         PR rtl-optimization/80429
4104         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
4105         are only used in debug insns.
4107 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4108             Vladimir Makarov  <vmakarov@redhat.com>
4110         * config/sparc/predicates.md (input_operand): Add comment.  Return
4111         true for any memory operand when LRA is in progress.
4112         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
4114 2017-04-18  Jeff Law  <law@redhat.com>
4116         PR target/74563
4117         * mips.md ({return,simple_return}_internal): Do not overwrite
4118         operands[0].
4120 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
4122         PR tree-optimization/80443
4123         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
4124         instead of adding 1, subtract -1 and similarly instead of subtracting
4125         1 add -1.
4127 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
4129         PR rtl-optimization/80357
4130         * haifa-sched.c (tmp_bitmap): New variable.
4131         (model_recompute): Handle duplicate use records.
4132         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
4133         (free_global_sched_pressure_data): Free it.
4135 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4137         Revert:
4138         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4139         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
4140         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
4141         instead of SYSTEM_HEADER_DIR.
4143 2017-04-18  Jeff Law  <law@redhat.com>
4145         PR middle-end/80422
4146         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
4147         predecessors after walking up the insn chain.
4149 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
4151         PR debug/80263
4152         * dwarf2out.c (modified_type_die): Try harder not to emit internal
4153         sizetype type into debug info.
4155 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4157         PR target/80099
4158         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
4159         unneeded test for TARGET_UPPER_REGS_SF.
4160         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
4162 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
4164         PR sanitizer/80444
4165         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
4166         instead of gsi_after_labels.
4168 2017-04-18  Jeff Law  <law@redhat.com>
4170         * regcprop.c (maybe_mode_change): Avoid creating copies of the
4171         stack pointer.
4173         Revert:
4174         2017-04-13  Jeff Law  <law@redhat.com>
4175         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
4176         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
4178 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
4180         PR target/79453
4181         * config/avr/avr.c (intl.h): Include it.
4182         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
4184 2017-04-18  Martin Liska  <mliska@suse.cz>
4186         PR gcov-profile/78783
4187         * gcov-tool.c (gcov_output_files): Validate that destination
4188         file is either removed by the tool or by a user.
4190 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
4191             Guy Benyei  <guybe@mellanox.com>
4193         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
4194         block, and do not negate it, the stored id is already negative.
4196 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
4198         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
4200 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4202         PR target/80098
4203         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
4204         masks of options that should be turned off if the VSX vector
4205         options are turned off.
4206         (OTHER_P8_VECTOR_MASKS): Likewise.
4207         (OTHER_VSX_VECTOR_MASKS): Likewise.
4208         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
4209         rs6000_disable_incompatible_switches to validate no type switches
4210         like -mvsx.
4211         (rs6000_incompatible_switch): New function to disallow turning on
4212         other vector options if -mno-vsx, -mno-power8-vector, or
4213         -mno-power9-vector are specified.
4215 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
4217         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
4219 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
4221         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
4222         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
4223         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
4224         (ARG_POINTER_CFA_OFFSET): Likewise.
4226 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
4228         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
4229         conditions to take advantage of various optimizations.
4231 2017-04-13  Jeff Law  <law@redhat.com>
4233         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
4234         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
4235         (zero_extendsidi2_dext): Likewise.
4237 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
4239         PR sanitizer/80403
4240         * fold-const.c (fold_ternary_loc): Revert
4241         use op0 instead of fold_convert_loc (loc, type, arg0) part of
4242         2017-04-12 change.
4244 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4246         PR rtl-optimization/80343
4247         * lra-remat.c (update_scratch_ops): Assign original hard reg to
4248         new scratch pseudo.
4250 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
4252         PR sanitizer/80414
4253         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
4254         to ubsan_encode_value.
4256 2017-04-13  Jeff Law  <law@redhat.com>
4258         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
4259         appearing in DEBUG_INSNs.
4261 2017-04-13  Martin Liska  <mliska@suse.cz>
4263         PR gcov-profile/80413
4264         * gcov-io.c (gcov_write_string): Copy to buffer just when
4265         allocated size is greater than zero.
4267 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
4269         PR debug/80321
4270         * dwarf2out.c (decls_for_scope): Ignore declarations of
4271         current_function_decl in BLOCK_NONLOCALIZED_VARS.
4273 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
4275         PR lto/69953
4276         * ipa-visibility.c (non_local_p): Fix typos.
4277         (localize_node): When localizing symbol in same comdat group,
4278         dissolve the group only when we know external symbols are going
4279         to be privatized.
4280         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
4282 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
4284         PR tree-optimization/79390
4285         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
4286         order does not result in usable sequence, retry with reversed operand
4287         order.
4289         PR sanitizer/80403
4290         PR sanitizer/80404
4291         PR sanitizer/80405
4292         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
4293         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
4294         op0 instead of fold_convert_loc (loc, type, arg0).
4296 2017-04-12  Jeff Law  <law@redhat.com>
4298         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
4299         has a delay slot in the generated code.
4301         * config/cris/cris.md (cris_preferred_reload_class): Return
4302         GENNONACR_REGS rather than GENERAL_REGS.
4304 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
4306         PR c/80163
4307         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
4308         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
4309         signedness of the result type.
4311 2017-04-12  Richard Biener  <rguenther@suse.de>
4312             Jeff Law  <law@redhat.com>
4314         PR tree-optimization/80359
4315         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
4316         trim stores to TARGET_MEM_REFs.
4318 2017-04-12  Richard Biener  <rguenther@suse.de>
4320         PR tree-optimization/79390
4321         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
4322         threading case even more.
4324 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
4326         PR target/80382
4327         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
4328         for quad_address_p for TImode, instead of just not indexed_address.
4330 2017-04-12  Richard Biener  <rguenther@suse.de>
4331             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4333         PR middle-end/79671
4334         * alias.c (component_uses_parent_alias_set_from): Handle
4335         TYPE_TYPELESS_STORAGE.
4336         (get_alias_set): Likewise.
4337         * tree-core.h (tree_type_common): Add typeless_storage flag.
4338         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
4339         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
4340         for types containing members with TYPE_TYPELESS_STORAGE.
4341         (place_field): Likewise.
4342         (layout_type): Likewise for ARRAY_TYPE.
4343         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
4344         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
4345         TYPE_TYPELESS_STORAGE.
4346         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4348 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
4350         PR sanitizer/80349
4351         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
4352         first argument to type.
4354 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4356         PR target/80376
4357         PR target/80315
4358         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4359         CONST0_RTX (mode) rather than const0_rtx where appropriate.
4360         (rs6000_expand_binop_builtin): Likewise.
4361         (rs6000_expand_ternop_builtin): Likewise; also add missing
4362         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
4363         vshasigma built-ins.
4364         * doc/extend.texi: Document that vec_xxpermdi's third argument
4365         must be a constant.
4367 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
4369         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
4370         Use shift_const cost parameter when calculating gain of STV shifts.
4372 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4374         PR rtl-optimization/70478
4375         * lra-constraints.c (process_alt_operands): Check memory for
4376         disfavoring memory insn operand.
4378 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
4380         PR middle-end/80100
4381         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
4382         left shift in unsigned HOST_WIDE_INT type.
4384         PR rtl-optimization/80385
4385         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
4386         (not (neg X)) into (plus X -1) for complex or non-integral modes.
4388         PR libgomp/80394
4389         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
4390         if they have any depend clauses.
4392 2017-04-11  Martin Liska  <mliska@suse.cz>
4394         PR ipa/80212
4395         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
4396         * ipa-split.c (split_function): Create a local comdat symbol
4397         if caller is in a comdat group.
4399 2017-04-11  Martin Liska  <mliska@suse.cz>
4401         PR ipa/80212
4402         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
4403         flags.
4405 2017-04-11  Martin Sebor  <msebor@redhat.com>
4407         PR middle-end/80364
4408         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
4409         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
4410         for INTEGER_TYPE.
4411         (directive::set_width, directive::set_precision, format_character):
4412         Adjust.
4413         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
4414         INTEGER_TYPE.
4416 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
4418         PR target/80389
4419         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
4420         conflict, set target->arch_name instead of target->cpu_name.
4422 2017-04-11  Richard Biener  <rguenther@suse.de>
4424         PR tree-optimization/80374
4425         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
4426         build_zero_cst, remove fold_convertible_p check again.
4428 2017-04-11  Martin Liska  <mliska@suse.cz>
4430         PR sanitizer/70878
4431         * ubsan.c (instrument_object_size): Do not instrument register
4432         variables.
4434 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
4436         PR target/80381
4437         * config/i386/i386-builtin-types.def
4438         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
4439         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
4440         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
4441         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
4442         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
4443         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
4444         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
4445         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
4446         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
4447         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
4448         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
4449         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
4450         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
4451         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
4452         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
4453         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
4454         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
4455         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
4456         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
4457         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
4458         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
4459         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
4460         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
4461         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
4462         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
4463         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
4464         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
4465         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
4466         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
4467         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
4468         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
4469         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
4470         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
4471         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
4472         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
4473         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
4474         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
4475         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
4476         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
4477         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
4478         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
4479         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
4480         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
4481         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
4482         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
4483         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
4484         aliases.
4485         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
4486         flag to second_arg_count, handle 4 argument function type _COUNT
4487         aliases, handle second_arg_count on second argument rather than last.
4489 2017-04-10  Jeff Law  <law@redhat.com>
4491         PR tree-optimization/80374
4492         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
4493         record anything if we can not convert integer_zero_node to the
4494         desired type.
4496 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4498         PR target/80108
4499         * config/rs6000/rs6000.c (rs6000_option_override_internal):
4500         Enhance special handling given to the TARGET_P9_MINMAX option in
4501         relation to certain other options.
4503 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
4505         PR tree-optimization/80153
4506         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
4507         remove POINTER_PLUS_EXPR's base part directly, rather than through
4508         aff_tree.
4510 2017-04-10  Richard Biener  <rguenther@suse.de>
4511             Bin Cheng  <bin.cheng@arm.com>
4513         PR tree-optimization/80153
4514         * tree-affine.c (aff_combination_to_tree): Get base pointer from
4515         the first element of pointer type aff_tree.  Build result expr in
4516         aff_tree's type.
4517         (add_elt_to_tree): Convert to type unconditionally.  Remove other
4518         fold_convert calls.
4519         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
4520         (rewrite_use_nonlinear_expr): Check invariant using iv information.
4522 2017-04-10  Richard Biener  <rguenther@suse.de>
4524         * tree-ssa-structalias.c (find_func_aliases): Properly handle
4525         asm inputs.
4527 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
4529         PR rtl-optimization/70478
4530         * lra-constraints.c (curr_small_class_check): New.
4531         (update_and_check_small_class_inputs): New.
4532         (process_alt_operands): Update curr_small_class_check.  Disfavor
4533         alternative insn memory operands.  Check available regs for small
4534         class operands.
4536 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4538         PR target/80057
4539         * config/mips/mips.opt (-mvirt): Update description.
4540         * doc/invoke.texi (-mvirt): Likewise.
4542 2017-04-10  Richard Biener  <rguenther@suse.de>
4544         PR middle-end/80362
4545         * fold-const.c (fold_binary_loc): Look at unstripped ops when
4546         looking for NEGATE_EXPR in -A / -B to A / B folding.
4548 2017-04-10  Martin Liska  <mliska@suse.cz>
4550         PR gcov-profile/80224
4551         * gcov.c (print_usage): Fix usage string.
4552         (get_gcov_intermediate_filename): Remove.
4553         (output_gcov_file): Use both for normal and intermediate format.
4554         (generate_results): Do not initialize special file for
4555         intermediate format.
4557 2017-04-10  Richard Biener  <rguenther@suse.de>
4559         PR tree-optimization/80304
4560         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
4561         for safelen.
4563 2017-04-10  Nathan Sidwell  <nathan@acm.org>
4565         PR target/79905
4566         * config/rs6000/rs6000.c (rs6000_vector_type): New.
4567         (rs6000_init_builtins): Use it.
4569 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4571         * config/arm/arm.md (<mrc>): Add mode to SET source.
4572         (<mrrc>): Likewise.
4574 2017-04-10  Richard Biener  <rguenther@suse.de>
4576         PR middle-end/80344
4577         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
4579 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
4581         PR target/80324
4582         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
4583         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
4584         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
4585         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
4586         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
4587         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
4588         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
4589         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
4590         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
4591         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
4592         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
4593         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
4594         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
4595         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
4596         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
4597         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
4598         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
4599         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
4600         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
4601         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
4602         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
4603         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
4604         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
4606 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4608         PR rtl-optimization/70478
4609         * lra-constraints.c: Reverse the last patch.
4611 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
4613         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
4614         Add comment for WCHAR_T.
4616 2017-04-08  Martin Liska  <mliska@suse.cz>
4618         Revert:
4619         2017-04-07  Martin Liska  <mliska@suse.cz>
4621         PR ipa/80212
4622         * ipa-split.c (split_function): Add function part to a same comdat
4623         group.
4625 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4627         PR target/80358
4628         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
4630 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
4632         * rs6000/rs6000.c (vec_load_pendulum): Rename...
4633         (vec_pairing): ...to this.
4634         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
4635         (rs6000_sched_init): Adjust for name change.
4636         (struct rs6000_sched_context): Likewise.
4637         (rs6000_init_sched_context): Likewise.
4638         (rs6000_set_sched_context): Likewise.
4640 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
4642         PR target/80322
4643         PR target/80323
4644         PR target/80325
4645         PR target/80326
4646         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
4647         intrinsics.
4648         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
4649         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
4650         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
4652 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
4654         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
4656 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
4658         PR rtl-optimization/70703
4659         * ira-color.c (update_conflict_hard_regno_costs): Use
4660         int64_t instead of HOST_WIDE_INT.
4662 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
4664         PR rtl-optimization/70478
4665         * lra-constraints.c (process_alt_operands): Disfavor alternative
4666         insn memory operands.
4668 2017-04-07  Jeff Law  <law@redhat.com>
4670         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
4671         CALL and NOTE_INSN_CALL_ARG_LOCATION.
4673 2017-04-07  Martin Liska  <mliska@suse.cz>
4675         PR target/79889
4676         * config/aarch64/aarch64.c (aarch64_process_target_attr):
4677         Show error message instead of an ICE.
4679 2017-04-07  Martin Liska  <mliska@suse.cz>
4681         PR ipa/80212
4682         * ipa-split.c (split_function): Add function part to a same comdat
4683         group.
4685 2017-04-07  Richard Biener  <rguenther@suse.de>
4687         PR middle-end/80341
4688         * tree.c (get_unwidened): Also handle ! for_type case for
4689         INTEGER_CSTs.
4690         * convert.c (do_narrow): Split out from ...
4691         (convert_to_integer_1): ... here.  Do not pass final truncation
4692         type to get_unwidened for TRUNC_DIV_EXPR.
4694 2017-04-07  Richard Biener  <rguenther@suse.de>
4696         * tree-affine.c (wide_int_ext_for_comb): Take type rather
4697         than aff_tree.
4698         (aff_combination_const): Adjust.
4699         (aff_combination_scale): Likewise.
4700         (aff_combination_add_elt): Likewise.
4701         (aff_combination_add_cst): Likewise.
4702         (aff_combination_convert): Likewise.
4703         (add_elt_to_tree): Likewise.  Remove unused argument.
4704         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
4706 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4708         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
4709         definition.
4710         * config/arm/arm.c (arm_default_short_enums): Use
4711         ARM_DEFAULT_SHORT_ENUMS.
4712         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
4714 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
4716         PR debug/80234
4717         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
4718         members with redundant out-of-class redeclaration.
4720 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
4722         PR target/80286
4723         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
4724         * config/i386/i386.md (*zero_extendsidi2):
4725         Add (?*x,*x) and (?*v,*v) alternatives.
4727 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
4729         PR target/79733
4730         * config/i386/i386.c (ix86_expand_builtin)
4731         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
4732         mode from insn data. Convert operands to insn operand mode.
4733         Copy operands that don't satisfy insn predicate to a register.
4735 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
4737         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
4738         Update comments.
4740 2017-04-06  Richard Biener  <rguenther@suse.de>
4742         PR tree-optimization/80334
4743         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
4744         preserve alignment of accesses.
4746 2017-04-06  Richard Biener  <rguenther@suse.de>
4748         PR tree-optimization/80262
4749         * tree-sra.c (build_ref_for_offset): Preserve address-space
4750         information.
4751         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4752         Drop useless address-space information on MEM_REF offsets.
4754 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
4756         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
4758 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4760         PR rtl-optimization/70703
4761         * ira-color.c (update_conflict_hard_regno_costs): Use
4762         HOST_WIDE_INT instead of long.
4764 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
4766         PR target/80298
4767         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
4768         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
4769         is not defined.
4770         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
4771         for x86_64 target.  Handle -m3dnowa option.
4773 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4775         PR rtl-optimization/70703
4776         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
4777         (update_conflict_hard_regno_costs): Use long instead of unsigned
4778         arithmetic for cost calculation.
4780 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4781             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4783         PR sanitizer/80308
4784         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
4785         for big endian.
4787 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4789         PR target/78002
4790         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
4791         ptr_mode with Pmode throughout.
4792         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
4793         into probe_stack_range and use DImode.
4795 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4797         PR target/79890
4798         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
4799         call_eh_return is true.
4801 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4803         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
4804         Initialize last_match_fntype_index.
4806 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4808         PR target/80310
4809         * tree-nvr.c: Include internal-fn.h.
4810         (pass_return_slot::execute): Ignore internal calls without
4811         direct optab.
4813 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4814             Richard Biener  <rguenther@suse.de>
4816         PR c++/80297
4817         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
4818         captures used multiple times, except for the last use.
4819         * generic-match-head.c: Include gimplify.h.
4821 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4823         PR tree-optimization/79390
4824         * target.h (struct noce_if_info): Declare.
4825         * targhooks.h (default_noce_conversion_profitable_p): Declare.
4826         * target.def (noce_conversion_profitable_p): New target hook.
4827         * ifcvt.h (struct noce_if_info): New type, moved from ...
4828         * ifcvt.c (struct noce_if_info): ... here.
4829         (noce_conversion_profitable_p): Renamed to ...
4830         (default_noce_conversion_profitable_p): ... this.  No longer
4831         static nor inline.
4832         (noce_try_store_flag_constants, noce_try_addcc,
4833         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
4834         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
4835         instead of noce_conversion_profitable_p.
4836         * config/i386/i386.c: Include ifcvt.h.
4837         (ix86_option_override_internal): Don't override
4838         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
4839         (ix86_noce_conversion_profitable_p): New function.
4840         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
4841         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
4842         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
4843         * doc/tm.texi: Regenerated.
4845 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4847         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
4848         correction.
4850 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4852         PR target/80307
4853         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
4854         instructions for small multiply cores.
4856 2017-04-04  Jeff Law  <law@redhat.com>
4858         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
4859         added member.
4860         (mips_expand_vec_perm_const): Initialize elements in orig_perm
4861         that are not set by the loop over the elements.
4863 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4865         PR target/80286
4866         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
4867         int mode, convert_modes it to mode as unsigned, otherwise use
4868         lowpart_subreg to mode rather than SImode.
4869         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
4870         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
4871         Use DImode instead of SImode for the shift count operand.
4872         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
4873         Likewise.
4875 2017-04-04  Richard Biener  <rguenther@suse.de>
4877         PR middle-end/80281
4878         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
4879         arithmetic done for the negate or the plus.  Simplify.
4880         (A - (-B) -> A + B): Likewise.
4881         * fold-const.c (split_tree): Make sure to not negate pointers.
4883 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
4885         PR rtl-optimization/60818
4886         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
4887         a compare of comparisons with the thing compared if this results
4888         in a different machine mode.
4890 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
4892         * alias.c (base_alias_check): Fix typo in comment.
4893         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
4894         * cgraphunit.c (symbol_table::compile): Likewise.
4895         * collect2.c (maybe_run_lto_and_relink): Likewise.
4896         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
4897         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
4898         * config/avr/avr.c (avr_map_op_t): Likewise.
4899         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
4900         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
4901         * config/epiphany/epiphany.md (movcc): Likewise.
4902         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
4903         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
4904         Likewise.
4905         * config/mips/mips.c (mips_save_restore_reg): Likewise.
4906         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
4907         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
4908         * config/sh/sh.c (sh_rtx_costs): Likewise.
4909         * fold-const.c (fold_truth_andor): Likewise.
4910         * genautomata.c (collapse_flag): Likewise.
4911         * gengtype.h (struct type::u::s): Likewise.
4912         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
4913         * input.c (FORMAT_AMOUNT): Likewise.
4914         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
4915         (known_aggs_to_agg_replacement_list): Likewise.
4916         * ipa-inline-analysis.c: Likewise.
4917         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
4918         * ipa-polymorphic-call.c
4919         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
4920         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
4921         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
4922         Likewise.
4923         * modulo-sched.c (apply_reg_moves): Likewise.
4924         * omp-expand.c (build_omp_regions_1): Likewise.
4925         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
4926         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
4927         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
4928         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4929         * value-prof.c: Likewise.
4930         * var-tracking.c (val_reset): Likewise.
4932 2017-04-03  Richard Biener  <rguenther@suse.de>
4934         PR tree-optimization/80275
4935         * fold-const.c (split_address_to_core_and_offset): Handle
4936         POINTER_PLUS_EXPR.
4938 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
4940         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
4941         descriptors is at least equal to that of functions.
4943 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4945         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
4947 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4949         PR target/80250
4950         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
4951         (mov<IMOD4:mode>): New expander.
4952         (*mov<IMOD4:mode>_internal): New insn and split pattern.
4954 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
4956         PR rtl-optimization/79405
4957         * fwprop.c (propagations_left): New variable.
4958         (forward_propagate_into): Decrement it.
4959         (fwprop_init): Initialize it.
4960         (fw_prop): If the variable has reached zero, stop propagating.
4961         (fwprop_addr): Ditto.
4963 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4965         PR debug/79255
4966         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
4967         a FUNCTION_DECL, pass it as decl instead of origin to
4968         process_scope_var.
4970 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
4972         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
4973         string.
4975 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
4977         PR target/80107
4978         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
4979         TARGET_VSX_SMALL_INTEGER.
4981 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4983         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4984         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
4986 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4988         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
4989         extraction from odd-numbered MSA register.
4991 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4993         PR middle-end/80173
4994         * expmed.c (store_bit_field_1): Don't attempt to create
4995         a word subreg out of hard registers wider than word if they
4996         have HARD_REGNO_NREGS of 1 for their mode.
4998         PR middle-end/80163
4999         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
5000         conversions to integer types wider than word and pointer.
5002         PR debug/80025
5003         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
5004         (rtx_equal_for_cselib_p): Pass 0 to it.
5005         * cselib.c (cselib_hasher::equal): Likewise.
5006         (rtx_equal_for_cselib_1): Add depth argument.  If depth
5007         is 128, don't look up VALUE locs and punt.  Increment
5008         depth in recursive calls when walking VALUE locs.
5010 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5012         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
5013         (make_gcov_file_name): Use the canonical path name for generating
5014         the MD5 value.
5015         (read_line): Fix handling of files with ascii null bytes.
5017 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
5019         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
5020         to initialise a vector register instead
5021         of using a const_int.
5023 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
5025         PR translation/80189
5026         * gimplify.c (omp_default_clause): Use %qs instead of %s in
5027         diagnostic messages.
5029 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
5031         PR target/80246
5032         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
5033         (dfp_diex_<mode>): Update mode of operand 1.
5034         * doc/extend.texi (dxex, dxexq): Document change to return type.
5035         (diex, diexq): Document change to argument type.
5037 2017-03-30  Martin Jambor  <mjambor@suse.cz>
5039         PR ipa/77333
5040         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
5041         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
5042         it reflects the signature changes performed at the callee side.
5043         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
5044         to cgraph_build_function_type_skip_args.
5045         (build_function_decl_skip_args): Adjust call to the above function.
5047 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
5049         PR target/80206
5050         * config/i386/sse.md
5051         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
5052         register as dest whenever it is a MEM not rtx_equal_p to the
5053         corresponding dup operand, and when forcing into reg move the
5054         reg into the memory afterwards.
5055         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
5056         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
5057         for the force_reg mode.
5058         (avx512vl_vextractf128<mode>): Use register as dest either
5059         always when a MEM, or when it is a MEM not rtx_equal_p to the
5060         corresponding dup operand, or even not when it is a CONST_VECTOR
5061         depending on the mode and lo vs. hi.
5062         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
5063         parens.
5064         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
5065         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
5066         Likewise.  Require that operands[2] is even.
5067         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
5068         Remove extraneous parens.  Require that operands[2] is a multiple
5069         of 4.
5070         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
5071         operands[0] is a MEM if <mask_applied>, the predicates/constraints
5072         disallow memory then.
5074 2017-03-30  Richard Biener  <rguenther@suse.de>
5076         PR tree-optimization/77498
5077         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
5078         to non-constants over backedges.
5080 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
5082         PR rtl-optimization/80233
5083         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
5084         as last_combined_insn.  Do not test for BARRIER_P separately.
5086 2017-03-29  Andreas Schwab  <schwab@suse.de>
5088         PR ada/80146
5089         * calls.c (prepare_call_address): Convert funexp to Pmode before
5090         copying to temp reg.
5092 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5094         PR tree-optimization/80158
5095         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
5096         Handle possible future case of more than one alternate
5097         interpretation.
5098         (replace_rhs_if_not_dup): Likewise.
5099         (replace_one_candidate): Likewise.
5101 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5103         PR rtl-optimization/80193
5104         * ira.c (ira): Do not check allocation for LRA.
5106 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
5108         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
5109         (nvptx_output_simt_exit): Declare.
5110         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
5111         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
5112         (init_softstack_frame): Move initialization of crtl->is_leaf to...
5113         (nvptx_declare_function_name): ...here.  Emit declaration of local
5114         memory space buffer for omp_simt_enter insn.
5115         (nvptx_output_unisimt_switch): New.
5116         (nvptx_output_softstack_switch): New.
5117         (nvptx_output_simt_enter): New.
5118         (nvptx_output_simt_exit): New.
5119         * config/nvptx/nvptx.h (struct machine_function): New fields
5120         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
5121         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
5122         (UNSPECV_SIMT_EXIT): Ditto.
5123         (omp_simt_enter_insn): New insn.
5124         (omp_simt_enter): New expansion.
5125         (omp_simt_exit): New insn.
5126         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
5128         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
5129         (expand_GOMP_SIMT_ENTER_ALLOC): New.
5130         (expand_GOMP_SIMT_EXIT): New.
5131         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
5132         (GOMP_SIMT_ENTER_ALLOC): Ditto.
5133         (GOMP_SIMT_EXIT): Ditto.
5134         * target-insns.def (omp_simt_enter): New insn.
5135         (omp_simt_exit): Ditto.
5136         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
5137         simt_dlist.
5138         (lower_rec_simd_input_clauses): Implement SIMT privatization.
5139         (lower_rec_input_clauses): Likewise.
5140         (lower_lastprivate_clauses): Handle SIMT privatization.
5142         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
5143         (ompdevlow_adjust_simt_enter): New.
5144         (find_simtpriv_var_op): New.
5145         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
5146         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
5148         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
5149         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
5150         (copy_decl_for_dup_finish): Ditto.
5152         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
5154 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
5156         PR target/53383
5157         * config/i386/i386.c (ix86_option_override_internal): Always
5158         allow -mpreferred-stack-boundary=3 for 64-bit targets.
5160 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
5162         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
5164 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
5166         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
5167         mark new edge's irreducible flag accordign to it.
5168         (vect_do_peeling): Check loop preheader edge's irreducible flag
5169         and pass it to function slpeel_add_loop_guard.
5171 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
5173         PR tree-optimization/80218
5174         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5175         Update block frequencies and counts.
5177 2017-03-28  Richard Biener  <rguenther@suse.de>
5179         PR tree-optimization/78644
5180         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
5181         of a simplification result we may not use it at all.
5183 2017-03-28  Richard Biener  <rguenther@suse.de>
5185         PR ipa/80205
5186         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
5187         without arguments, generate default definition of a SSA name.
5189 2017-03-28  Richard Biener  <rguenther@suse.de>
5191         PR middle-end/80222
5192         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
5193         TYPE_REF_CAN_ALIAS_ALL references.
5194         * fold-const.c (fold_indirect_ref_1): Likewise.
5196 2017-03-28  Martin Liska  <mliska@suse.cz>
5198         PR ipa/80104
5199         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
5200         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
5202 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
5203             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
5205         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
5206         (EXTRA_SPECS): Define.
5207         (SUBTARGET_EXTRA_SPECS): Likewise.
5208         (SUBTARGET_CPP_SPEC): Likewise.
5209         * config/arc/elf.h (EXTRA_SPECS): Renamed to
5210         SUBTARGET_EXTRA_SPECS.
5211         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
5213 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
5215         * config/arc/simdext.md (vst64_insn): Update pattern.
5216         (vld32wh_insn): Likewise.
5217         (vld32wl_insn): Likewise.
5218         (vld64_insn): Likewise.
5219         (vld32_insn): Likewise.
5221 2017-03-28  Marek Polacek  <polacek@redhat.com>
5223         PR sanitizer/80067
5224         * fold-const.c (fold_comparison): Use protected_set_expr_location
5225         instead of SET_EXPR_LOCATION.
5227 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
5229         * tree.c (add_expr): Avoid name lookup warning.
5231 2017-03-27  Jeff Law  <law@redhat.com>
5233         PR tree-optimization/80216
5234         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
5235         function name.  Limit recursion depth.
5236         (record_temporary_equivalences): Corresponding changes.
5238 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
5240         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
5241         covered first.
5243 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
5245         PR target/80102
5246         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
5247         notes.
5248         * cfgcleanup.c (reg_note_cfa_p): New array.
5249         (insns_have_identical_cfa_notes): New function.
5250         (old_insns_match_p): Don't cross-jump in between /f
5251         and non-/f instructions.  If both i1 and i2 are frame related,
5252         verify all CFA notes, their order and content.
5254 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5256         PR target/78543
5257         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
5258         HImode and SImode with zero extend to DImode to one insn.
5259         (bswap<mode>2_extenddi): Likewise.
5260         (bswapsi2_extenddi): Likewise.
5261         (bswaphi2_extendsi): Likewise.
5262         (bswaphi2): Combine bswap HImode and SImode into one insn.
5263         Separate memory insns from swapping register.
5264         (bswapsi2): Likewise.
5265         (bswap<mode>2): Likewise.
5266         (bswaphi2_internal): Delete, no longer used.
5267         (bswapsi2_internal): Likewise.
5268         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
5269         store, and gpr<-gpr swap insns.
5270         (bswap<mode>2_store): Likewise.
5271         (bswaphi2_reg): Register only splitter, combine with the splitter.
5272         (bswaphi2 splitter): Likewise.
5273         (bswapsi2_reg): Likewise.
5274         (bswapsi2 splitter): Likewise.
5275         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
5276         the insns into load, store, and register/register insns.
5277         (bswapdi2_ldbrx): Likewise.
5278         (bswapdi2_load): Likewise.
5279         (bswapdi2_store): Likewise.
5280         (bswapdi2_reg): Likewise.
5282 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
5284         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
5285         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
5287 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5289         PR target/80103
5290         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
5291         add comments.
5292         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5293         special handling for target option conflicts between dform
5294         options (-mpower9-dform, -mpower9-dform-vector,
5295         -mpower9-dform-scalar) and -mno-direct-move.
5297 2017-03-27  Richard Biener  <rguenther@suse.de>
5299         PR tree-optimization/80181
5300         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
5302 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
5304         * config/arc/predicates.md (move_double_src_operand): Replace the
5305         call to move_double_src_operand with a call to address_operand.
5307 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
5309         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
5310         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
5311         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
5313 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
5315         * config/arc/predicates.md (long_immediate_loadstore_operand):
5316         Consider scaled addresses cases.
5318 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
5320         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
5321         restored when in interrupt.
5322         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
5323         doesn't have delay slot.
5325 2017-03-27  Richard Biener  <rguenther@suse.de>
5327         PR ipa/79776
5328         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
5329         inlined thunk clones.
5331 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
5333         PR sanitizer/80168
5334         * asan.c (instrument_derefs): Copy over last operand from
5335         original COMPONENT_REF to the new COMPONENT_REF with
5336         DECL_BIT_FIELD_REPRESENTATIVE.
5337         * ubsan.c (instrument_object_size): Likewise.
5339 2017-03-27  Richard Biener  <rguenther@suse.de>
5341         PR tree-optimization/80170
5342         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
5343         sure DR/SCEV didnt fold in constants we do not see when looking
5344         at the reference base alignment.
5346 2017-03-27  Richard Biener  <rguenther@suse.de>
5348         PR middle-end/80171
5349         * gimple-fold.c (fold_ctor_reference): Properly guard against
5350         NULL return value from canonicalize_constructor_val.
5352 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
5354         PR target/80180
5355         * config/i386/i386.c (ix86_expand_builtin)
5356         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
5357         flags reg setting and flags reg using instructions.
5358         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
5359         clobbering instructions to zero extend op2.
5361 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
5363         * doc/install.texi (Configuration) <--with-aix-soname>:
5364         Update link to AIX ld.
5366 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
5368         PR rtl-optimization/80160
5369         PR rtl-optimization/80159
5370         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
5371         reg_alternate_class into account.
5373 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
5375         PR target/80148
5376         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
5377         to consider in curr_insn_transform.
5379 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
5381         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
5382         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
5383         and emit_mode_inner.
5385 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5387         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
5388         argument to the overloaded builtin variants.  Use the new flag to
5389         deprecate certain builtin variants.
5390         * config/s390/s390-builtin-types.def: Add new builtin types.
5391         * config/s390/s390-builtins.h: Support new flags field for
5392         overloaded builtins.
5393         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
5394         (s390_macro_to_expand): Enable vector float data type.
5395         (s390_cpu_cpp_builtins_internal): Indicate support of the new
5396         builtins by incrementing the __VEC__ version number.
5397         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
5398         vec_xst.
5399         (s390_resolve_overloaded_builtin): Emit error messages depending
5400         on the builtin flags.
5401         * config/s390/s390.c (s390_expand_builtin): Support additional
5402         flags argument.  Change error message to match the messages
5403         emitted in s390-c.c.
5404         * config/s390/s390.md: New UNSPEC_* constants.
5405         (op_type): Add new instruction types.
5406         * config/s390/vecintrin.h: Add new builtins and test data class
5407         constants.
5408         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
5409         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
5410         (VEC_INEXACT, VEC_NOINEXACT): New constants.
5411         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
5412         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
5413         ("vec_mergel<mode>"): V_HW -> VEC_HW.
5415         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
5416         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
5417         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
5418         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
5420         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
5421         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
5422         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
5423         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
5425         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
5426         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
5427         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
5428         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
5429         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
5430         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
5431         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
5433         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
5434         ("vec_scatter_element<V_HW_4:mode>_DI")
5435         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
5436         ("vec_fpint<mode>", "vflls")
5437         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
5438         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
5439         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
5440         ("*vec_cmphe<mode>_cc"): ... these.
5442         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
5443         mode constant instead of magic value.
5445 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5447         * config/s390/s390.c (s390_expand_vec_compare): Support other
5448         vector floating point modes than just V2DF.
5449         (s390_expand_vcond): Likewise.
5450         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
5451         (s390_cannot_change_mode_class): Prevent mode changes between TF
5452         and V1TF in vector registers.
5453         * config/s390/s390.md (DF, SF): New mode attributes.
5454         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
5455         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
5456         SFmode support for VRs.
5457         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
5458         vector fp modes.
5459         (VFT, VF_HW): New mode iterators.
5460         (vw, sdx): New mode attributes.
5461         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
5462         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
5463         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
5464         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
5465         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
5466         also the new vector floating point modes.  Renaming to ...
5468         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
5469         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
5470         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
5471         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
5472         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
5473         ("vec_unordered<mode>"): ... these.
5475         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
5476         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
5477         ("*vec_extendv2df"): New insn definitions.
5479 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5481         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
5482         ("mulditi3_2", "*muldi3_sign"): New patterns.
5483         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
5484         rename the pattern definition.
5486 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5488         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
5489         expander.
5490         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
5492 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5494         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
5495         instruction if possible.
5496         * config/s390/vector.md (vec_halfnumelts): New mode
5497         attribute.
5498         ("*vec_vllezlf<mode>"): New pattern.
5500 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5502         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
5503         ("popcountv4si2", "popcountv2di2"): Rename to ...
5504         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
5505         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
5506         condition.
5507         ("popcount<mode>2_vxe"): New pattern.
5509 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5511         * common/config/s390/s390-common.c (processor_flags_table): Add
5512         arch12.
5513         * config.gcc: Add arch12.
5514         * config/s390/driver-native.c (s390_host_detect_local_cpu):
5515         Default to arch12 for unknown CPU model numbers.
5516         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
5517         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
5518         PROCESSOR_max sanity check.
5519         * config/s390/s390-opts.h (enum processor_type): Add
5520         PROCESSOR_ARCH12.
5521         * config/s390/s390.c (processor_table): Add arch12.
5522         (s390_expand_builtin): Add check for B_VXE flag.
5523         (s390_issue_rate): Add PROCESSOR_ARCH12.
5524         (s390_get_sched_attrmask): Likewise.
5525         (s390_get_unit_mask): Likewise.
5526         (s390_sched_score): Enable z13 scheduling for arch12.
5527         (s390_sched_reorder): Likewise.
5528         (s390_sched_variable_issue): Likewise.
5529         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
5530         PF_VXE.
5531         (s390_tune_attr): Use z13 scheduling also for arch12.
5532         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
5533         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
5534         (TARGET_VXE_P): New macros.
5535         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
5536         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
5537         * config/s390/s390.opt: Add arch12 as processor_type.
5539 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5541         * config/s390/s390.md
5542         ("fixuns_truncdddi2", "fixuns_trunctddi2")
5543         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
5544         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
5546         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
5547         Rename expanders to ...
5549         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
5550         ("fixuns_truncdddi2_emu"): ... these.
5552         ("fixuns_trunc<mode>si2_emu"): New expander.
5554         ("*fixuns_truncdfdi2_z13"): Rename to ...
5555         ("*fixuns_truncdfdi2_vx"): ... this.
5557 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5559         * config/s390/2964.md: Remove the single element vector compare
5560         instructions which are no longer used.
5561         * config/s390/s390.c (s390_select_ccmode): Remove handling of
5562         vector CCmodes.
5563         (s390_canonicalize_comparison): Remove handling of DFmode
5564         compares.
5565         (s390_expand_vec_compare_scalar): Remove function.
5566         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
5567         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
5568         pattern.
5569         ("*cmp<mode>_ccs"): Add wfcdb instruction.
5571 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5573         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
5574         FP zero.
5575         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
5576         will anyway by matched by mov<mode>_64dfp.
5578 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5580         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
5581         vlef/vstef.  Add missing operand to vleif.
5583 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5585         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
5586         pair for all vector types with 64 bit elements.
5587         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
5588         * config/s390/vector.md (V_HW_64): ... here.
5589         (V_128_NOSINGLE): New mode iterator.
5590         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
5591         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
5592         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
5593         ("*vec_load_pairv2di"): Change to ...
5594         ("*vec_load_pair<mode>"): ... this one.
5596 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5598         * config/s390/constraints.md: Add comments.
5599         (jKK): Reject element sizes > 8 bytes.
5600         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
5601         s_operands.
5602         * config/s390/s390.md: Add the s_operand checks formerly in
5603         s390_split_ok_p to various splitters where they are still
5604         required.
5605         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
5606         for 128 bit vectors.  Plus two splitters.
5608 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5610         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
5611         the file.
5613 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5615         PR target/79893
5616         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
5617         error if the boundary argument is not constant.
5619 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
5621         PR rtl-optimization/80112
5622         * loop-doloop.c (doloop_condition_get): Don't check condition
5623         if cmp isn't SET with IF_THEN_ELSE src.
5625 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5627         PR tree-optimization/80158
5628         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
5629         replacing a candidate statement, also replace it for the
5630         candidate's alternate interpretation.
5631         (replace_rhs_if_not_dup): Likewise.
5632         (replace_one_candidate): Likewise.
5634 2017-03-24  Richard Biener  <rguenther@suse.de>
5636         PR tree-optimization/80167
5637         * graphite-isl-ast-to-gimple.c
5638         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
5639         properly.
5640         (translate_isl_ast_to_gimple::get_rename): Likewise.
5642 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5644         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5645         handling of certain combinations of target options, including the
5646         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
5647         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
5649 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5651         PR target/71436
5652         * config/arm/arm.md (*load_multiple): Add reload_completed to
5653         matching condition.
5655 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5656             Richard Biener  <rguenth@suse.de>
5658         PR tree-optimization/79908
5659         PR tree-optimization/80136
5660         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5661         been cast away, gimplify_and_add suffices.
5663 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
5665         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
5667 2017-03-23  Richard Biener  <rguenther@suse.de>
5669         PR tree-optimization/80032
5670         * gimplify.c (gimple_push_cleanup): Forced unconditional
5671         cleanups still have to go to the conditional_cleanups
5672         sequence.
5674 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
5676         PR tree-optimization/80072
5677         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
5678         to unsigned int.
5679         (next_operand_entry_id): Change type to unsigned int.
5680         (sort_by_operand_rank): Make sure to return the right return value
5681         even if unsigned fields are bigger than INT_MAX.
5682         (struct oecount): Change cnt and id type to unsigned int.
5683         (oecount_hasher::equal): Formatting fix.
5684         (oecount_cmp): Make sure to return the right return value
5685         even if unsigned fields are bigger than INT_MAX.
5686         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
5688         PR c++/80129
5689         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
5690         TREE_READONLY on result if writing it more than once.
5692         PR sanitizer/80110
5693         * doc/invoke.texi (-fsanitize=thread): Document that with
5694         -fnon-call-exceptions atomics are not able to throw
5695         exceptions.
5697         PR sanitizer/80110
5698         * tsan.c: Include tree-eh.h.
5699         (instrument_builtin_call): Call maybe_clean_eh_stmt or
5700         maybe_clean_or_replace_eh_stmt where needed.
5701         (instrument_memory_accesses): Add cfg_changed argument.
5702         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
5703         if it returned true.
5704         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
5706         PR rtl-optimization/63191
5707         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
5708         wrapper function, moved the whole old content into ...
5709         (ix86_delegitimize_address_1): ... this.  New inline function.
5710         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
5711         true as last argument instead of ix86_delegitimize_address.
5713 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
5715         * config/aarch64/aarch64.c (generic_branch_cost): Copy
5716         cortexa57_branch_cost.
5718 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
5720         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
5722 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5724         PR target/80123
5725         * doc/md.texi (Constraints): Document wA constraint.
5726         * config/rs6000/constraints.md (wA): New.
5727         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
5728         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
5729         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
5730         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
5732 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
5734         PR c++/80029
5735         * gimplify.c (is_oacc_declared): New function.
5736         (oacc_default_clause): Use it to set default flags for acc declared
5737         variables inside parallel regions.
5738         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
5739         declared variables.
5740         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
5741         declare attribute to any decl as necessary.
5743 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5745         PR target/80082
5746         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
5747         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
5748         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
5749         (arm_arch_lpae): This.
5750         * config/arm/arm.c (arm_arch7ve): Rename into ...
5751         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
5752         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
5753         arm_arch_lpae.
5755 2017-03-22  Martin Liska  <mliska@suse.cz>
5757         PR target/79906
5758         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
5759         error message instead of an ICE.
5761 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5763         * doc/extend.texi (6.11 Additional Floating Types): Revise.
5765 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5767         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5768         comments.
5769         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5770         comments.
5772 2017-03-21  Martin Sebor  <msebor@redhat.com>
5774         * doc/extend.texi: Use "cannot" instead of "can't."
5775         * doc/hostconfig.texi: Same.
5776         * doc/install.texi: Same.
5777         * doc/invoke.texi: Same.
5778         * doc/loop.texi: Same.
5779         * doc/md.texi: Same.
5780         * doc/objc.texi: Same.
5781         * doc/rtl.texi: Same.
5782         * doc/tm.texi: Same.
5783         * doc/tm.texi.in: Same.
5784         * doc/trouble.texi: Same.
5786 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
5788         PR debug/63238
5789         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
5790         (collect_checksum_attributes): Set it.
5791         (die_checksum_ordered): Use it.
5793 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5795         PR tree-optimization/79908
5796         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
5797         change: For a VA_ARG whose LHS has been cast away, use
5798         force_gimple_operand to construct the side effects.
5800 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
5802         PR translation/80001
5803         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
5804         more amenable to translation.
5805         (oacc_loop_auto_partitions): Likewise.
5807 2017-03-21  Marek Polacek  <polacek@redhat.com>
5808             Martin Sebor  <msebor@redhat.com>
5810         PR tree-optimization/80109
5811         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
5812         on INTEGRAL_TYPE_P.
5814 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5815             Segher Boessenkool  <segher@kernel.crashing.org>
5817         PR target/80125
5818         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
5819         check reg_used_between_p between insn and one of succ or succ2
5820         depending on if succ is artificial insn not inserted into insn
5821         stream.
5823 2017-03-21  Martin Liska  <mliska@suse.cz>
5825         PR gcov-profile/80081
5826         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
5827         * doc/gcc.texi: Include gcov-dump stuff.
5828         * doc/gcov-dump.texi: New file.
5830 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
5832         PR rtl-optimization/79150
5833         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
5834         conditional jump, if the jump is the last insn of the loop.
5836 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5837             Richard Biener  <rguenth@suse.de>
5839         PR tree-optimization/79908
5840         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5841         been cast away, use force_gimple_operand to construct the side
5842         effects.
5844 2017-03-21  Martin Liska  <mliska@suse.cz>
5846         PR libfortran/79956
5847         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
5848         to NULL.
5850 2017-03-21  Brad Spengler <spender@grsecurity.net>
5852         PR plugins/80094
5853         * plugin.c (htab_hash_plugin): New function.
5854         (add_new_plugin): Use it and adjust.
5855         (parse_plugin_arg_opt): Adjust.
5856         (init_one_plugin): Likewise.
5858 2017-03-21  Richard Biener  <rguenther@suse.de>
5860         PR tree-optimization/80032
5861         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
5862         if set force the cleanup to happen unconditionally.
5863         (gimplify_target_expr): Push inserted clobbers with force_uncond
5864         to avoid them being removed by control-dependent DCE.
5866 2017-03-21  Richard Biener  <rguenther@suse.de>
5868         PR tree-optimization/80122
5869         * tree-inline.c (copy_bb): Do not expans va-arg packs or
5870         va_arg_pack_len when the inlined call stmt requires pack
5871         expansion itself.
5872         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
5874 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5876         PR sanitizer/78158
5877         * tsan.c (instrument_builtin_call): If the memory model argument
5878         is not a constant, assume it is valid.
5880         PR c/67338
5881         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
5882         avoid UB.
5884 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5886         PR rtl-optimization/79910
5887         * combine.c (can_combine_p): Do not allow combining an I0 or I1
5888         if its dest is used by an insn before I2 (other than the combined
5889         insns themselves, which are properly handled already).
5891 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5893         Revert:
5894         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5896         * combine.c (record_used_regs): New static function.
5897         (try_combine): Handle situations where there is an additional
5898         instruction between I2 and I3 which needs to have a LOG_LINK
5899         updated.
5901         Revert:
5902         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5904         * combine.c (try_combine): Delete redundant i1 test.  Call
5905         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5907 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5909         PR target/80083
5910         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
5911         alternatives 13/14.
5913 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5915         PR tree-optimization/80054
5916         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
5917         the optimization if a PHI or any of its arguments is not dominated
5918         by the candidate's basis.  Use gphi* rather than gimple* as
5919         appropriate.
5920         (replace_profitable_candidates): Clean up a gimple* variable that
5921         should be a gphi* variable.
5923 2017-03-20  Martin Sebor  <msebor@redhat.com>
5925         PR c++/52477
5926         * doc/extend.texi (attribute constructor): Document present limitation.
5928 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5930         PR target/79963
5931         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
5932         __POWER9_VECTOR__ #ifdef control, change template definition to
5933         use Power9-specific built-in function.
5934         (vec_any_eq): Likewise.
5935         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
5936         to control outcomes from this test.
5937         (vector_ae_<mode>p): For VEC_F modes, likewise.
5939 2017-03-20  Ian Lance Taylor  <iant@google.com>
5941         * config/i386/i386.c (ix86_function_regparm): Save an extra
5942         register for -fsplit-stack with DECL_STATIC_CHAIN.
5944 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5946         PR target/79912
5947         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
5948         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
5950 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5952         * config/riscv/riscv.c (riscv_print_operand): Use "fence
5953         iorw,ow".
5954         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
5955         iorw,iorw".
5957 2017-03-20  Marek Polacek  <polacek@redhat.com>
5959         PR sanitizer/80063
5960         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
5962 2017-03-20  Richard Biener  <rguenther@suse.de>
5964         PR tree-optimization/80113
5965         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
5966         allocate extra SSA name for PHI def.
5967         (add_close_phis_to_outer_loops): Likewise.
5968         (add_close_phis_to_merge_points): Likewise.
5969         (copy_loop_close_phi_args): Likewise.
5970         (copy_cond_phi_nodes): Likewise.
5972 2017-03-20  Martin Liska  <mliska@suse.cz>
5974         PR middle-end/79753
5975         * tree-chkp.c (chkp_build_returned_bound): Do not build
5976         returned bounds for a LHS that's not a BOUNDED_P type.
5978 2017-03-20  Martin Liska  <mliska@suse.cz>
5980         PR target/79769
5981         PR target/79770
5982         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
5983         COMPLEX_CST and VECTOR_CST.
5985 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5987         PR target/78857
5988         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
5989         target operand.  A new splitter adds the clobber statement in case
5990         the target operand is dead anyway.
5992 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
5994         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
5995         to age-old versions of binutils and glibc.
5997 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
5999         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
6001 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
6003         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
6005 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
6007         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
6008         requirement for binutils 2.13.
6010 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
6012         * combine.c (try_combine): Delete redundant i1 test.  Call
6013         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6015 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
6017         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
6018         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
6019         contents.
6020         <riscv64-*-elf>: Re-arrange section
6021         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
6022         <riscv32-*-linux>: Likewise.
6023         <riscv64-*-elf>: Likewise
6024         <riscv64-*-linux>: Likewise.
6026 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
6028         PR target/80052
6029         * aarch64.opt(verbose-cost-dump): Fix typo.
6031 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
6033         PR target/79951
6034         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
6035         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
6037 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
6039         * reload.c (find_reloads): When reloading a nonoffsettable address,
6040         use RELOAD_OTHER for it and its address reloads.
6042         PR rtl-optimization/79910
6043         * combine.c (record_used_regs): New static function.
6044         (try_combine): Handle situations where there is an additional
6045         instruction between I2 and I3 which needs to have a LOG_LINK
6046         updated.
6048 2017-03-17  Jeff Law  <law@redhat.com>
6050         PR tree-optimization/71437
6051         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
6052         conditional in the hash table first.
6053         (vrp_dom_walker::before_dom_children): Extract condition from
6054         ASSERT_EXPR.  Record condition, its inverion and any implied
6055         conditions as well.
6057 2017-03-17  Marek Polacek  <polacek@redhat.com>
6058             Markus Trippelsdorf  <markus@trippelsdorf.de>
6060         PR tree-optimization/80079
6061         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
6062         m_stores_head.
6064 2017-03-17  Richard Biener  <rguenther@suse.de>
6066         PR middle-end/80075
6067         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
6068         Properly verify the LHS before the RHS possibly claims to be
6069         handled.
6070         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
6071         do not throw.
6073 2017-03-17  Martin Jambor  <mjambor@suse.cz>
6075         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
6076         (List of -O2 options): Likewise.
6077         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
6078         (-fipa-vrp) New.
6080 2017-03-17  Tom de Vries  <tom@codesourcery.com>
6082         * gcov-dump.c (print_usage): Print bug_report_url.
6084 2017-03-17  Richard Biener  <rguenther@suse.de>
6086         PR middle-end/80050
6087         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
6088         (parser::peek): Likewise.
6090 2017-03-17  Richard Biener  <rguenther@suse.de>
6092         PR tree-optimization/80048
6093         * sese.c (free_sese_info): Properly release rename_map and
6094         copied_bb_map elements.
6096 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
6098         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
6099         Add linked-list forward and backlinks.  Insert on
6100         construction, remove on destruction.
6101         (class pass_store_merging): Add m_stores_head field.
6102         (pass_store_merging::terminate_and_process_all_chains):
6103         Iterate over m_stores_head list.
6104         (pass_store_merging::terminate_all_aliasing_chains):
6105         Likewise.
6106         (pass_store_merging::execute): Check for debug stmts first.
6107         Push new chains onto the m_stores_head stack.
6109 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
6111         PR target/71294
6112         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
6113         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
6114         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
6116 2017-03-16  Jeff Law  <law@redhat.com>
6118         PR tree-optimization/71437
6119         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
6120         member function.  Implementation moved into after_dom_children
6121         member function and into the threader's thread_outgoing_edges
6122         function.
6123         (dom_opt_dom_walker::after_dom_children): Simplify by moving
6124         some code into new thread_outgoing_edges.
6125         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
6126         definition.  Simplify marker handling (do it here).   Assume we always
6127         have the available expression and the const/copies tables.
6128         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
6129         and tree-vrp.c
6130         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
6131         * tree-vrp.c (equiv_stack): No longer file scoped.
6132         (vrp_dom_walker): New class.
6133         (vrp_dom_walker::before_dom_children): New member function.
6134         (vrp_dom_walker::after_dom_children): Likewise.
6135         (identify_jump_threads):  Setup domwalker.  Use it rather than
6136         walking edges in a random order by hand.  Simplify setup/finalization.
6137         (finalize_jump_threads): Remove.
6138         (vrp_finalize): Do not call identify_jump_threads here.
6139         (execute_vrp): Do it here instead and call thread_through_all_blocks
6140         here too.
6142         PR tree-optimization/71437
6143         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
6144         callers changed.
6145         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
6146         callers changed.
6147         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
6148         (dom_opt_dom_walker::thread_across_edge): Remove
6149         handle_dominating_asserts argument.  All callers changed.
6150         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
6151         changes.  Remove calls to lhs_of_dominating_assert.  Other
6152         uses of handle_dominating_asserts turn into unconditional code
6153         (simplify_control_stmt_condition_1): Likewise.
6154         (simplify_control_stmt_condition): Likewise.
6155         (thread_through_normal_block, thread_across_edge): Likewise.
6156         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
6157         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
6158         object if it is not an SSA_NAME.
6159         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
6160         before calling into the VRP specific simplifiers.
6161         (identify_jump_threads): Remove handle_dominating_asserts
6162         argument.
6164 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
6166         PR fortran/79886
6167         * tree-diagnostic.c (default_tree_printer): No longer static.
6168         * tree-diagnostic.h (default_tree_printer): New prototype.
6170 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
6172         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
6173         Change ins into fmov.
6175 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6177         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
6178         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
6179         Use h_con constraint for operand 1.
6180         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
6181         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
6183 2017-03-15  Jeff Law  <law@redhat.com>
6185         PR tree-optimization/71437
6186         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
6187         (record_temporary_equivalences): Use it.
6189         PR tree-optimization/71437
6190         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
6191         tree-ssa-scopedtables.
6192         (lookup_avail_expr, build_and_record_new_cond): Likewise.
6193         (record_conditions, record_cond, vuse_eq): Likewise.
6194         (record_edge_info): Adjust to API tweak of record_conditions.
6195         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
6196         (record_temporary_equivalences, optimize_stmt): Likewise.
6197         (eliminate_redundant_computations): Likewise.
6198         (record_equivalences_from_stmt): Likewise.
6199         * tree-ssa-scopedtables.c: Include options.h and params.h.
6200         (vuse_eq): New function, moved from tree-ssa-dom.c
6201         (build_and_record_new_cond): Likewise.
6202         (record_conditions): Likewise.  Accept vector of conditions rather
6203         than edge_equivalence structure for first argument.
6204         for the first argument.
6205         (avail_exprs_stack::lookup_avail_expr): New member function, moved
6206         from tree-ssa-dom.c.
6207         (avail_exprs_stack::record_cond): Likewise.
6208         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
6209         from tree-ssa-dom.c.
6210         (avail_exprs_stack): Add new member functions lookup_avail_expr
6211         and record_cond.
6212         (record_conditions): Declare.
6214 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
6216         PR target/80017
6217         * lra-constraints.c (process_alt_operands): Increase reject for
6218         reloading an input/output operand.
6220 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6222         PR target/79038
6223         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
6224         insns to convert from signed/unsigned char/short to IEEE 128-bit
6225         floating point.
6226         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
6228 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
6230         PR target/80019
6231         * config/i386/i386.c (ix86_vector_duplicate_value): Create
6232         subreg of inner mode for values already in registers.
6234 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
6236         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
6237         iteration reg is used after the loop.
6239 2017-03-14  Martin Sebor  <msebor@redhat.com>
6241         PR tree-optimization/79800
6242         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
6243         precision in negative-positive range.
6244         (format_floating): Call non-const overload with adjusted precision.
6246 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6248         PR target/79947
6249         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
6250         -mpowerpc-gfxopt.
6252 2017-03-14  Martin Sebor  <msebor@redhat.com>
6254         PR middle-end/80020
6255         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
6256         * builtins.def (aligned_alloc): Use it.
6258         PR c/79936
6259         * Makefile.in (GTFILES): Add calls.c.
6260         * calls.c: Include "gt-calls.h".
6262 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
6264         PR rtl-optimization/79728
6265         * regs.h (struct target_regs): New field
6266         x_contains_allocatable_regs_of_mode.
6267         (contains_allocatable_regs_of_mode): New macro.
6268         * reginfo.c (init_reg_sets_1): Initialize it, and change
6269         contains_reg_of_mode so it includes global regs as well.
6270         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
6271         rather than contains_regs_of_mode.
6273 2017-03-14  Martin Liska  <mliska@suse.cz>
6275         * doc/invoke.texi: Document options that can't be combined with
6276         -fcheck-pointer-bounds.
6278 2017-03-14  Martin Liska  <mliska@suse.cz>
6280         PR middle-end/79831
6281         * doc/invoke.texi (-Wchkp): Document the option.
6283 2017-03-14  Martin Liska  <mliska@suse.cz>
6285         * Makefile.in: Install gcov-dump.
6287 2017-03-14  Martin Liska  <mliska@suse.cz>
6289         * multiple_target.c (expand_target_clones): Bail out for
6290         an invalid attribute.
6292 2017-03-14  Richard Biener  <rguenther@suse.de>
6294         * alias.c (struct alias_set_entry): Pack properly.
6295         * cfgloop.h (struct loop): Likewise.
6296         * cse.c (struct set): Likewise.
6297         * ipa-utils.c (struct searchc_env): Likewise.
6298         * loop-invariant.c (struct invariant): Likewise.
6299         * lra-remat.c (struct cand): Likewise.
6300         * recog.c (struct change_t): Likewise.
6301         * rtl.h (struct address_info): Likewise.
6302         * symbol-summary.h (function_summary): Likewise.
6303         * tree-loop-distribution.c (struct partition): Likewise.
6304         * tree-object-size.c (struct object_size_info): Likewise.
6305         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
6306         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
6307         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
6308         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
6309         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
6310         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
6311         (struct _stmt_vec_info): Likewise.
6313 2017-03-14  Martin Liska  <mliska@suse.cz>
6315         PR target/79892
6316         * multiple_target.c (create_dispatcher_calls): Check that
6317         a target can create a function dispatcher.
6319 2017-03-14  Martin Liska  <mliska@suse.cz>
6321         PR lto/66295
6322         * multiple_target.c (expand_target_clones): Drop local.local
6323         flag for default implementation.
6325 2017-03-14  Richard Biener  <rguenther@suse.de>
6327         PR tree-optimization/80030
6328         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
6330 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
6332         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
6333         gcc_fallthrough() instead of __attribute__((fallthrough));
6335 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
6337         * doc/gcc.texi: Remove "up" link to (DIR).
6338         * doc/gccint.texi: Ditto.
6340 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
6342         * doc/install.texi (Specific) <avr>: Remove reference to
6343         binutils 2.13.
6345 2017-03-13  Jeff Law  <law@redhat.com>
6347         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
6348         attribute rather than comments.
6350         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
6351         match_scratch operand is highest.
6353 2017-03-13  Martin Liska  <mliska@suse.cz>
6355         PR middle-end/78339
6356         * ipa-pure-const.c (warn_function_noreturn): If the declarations
6357         is a CHKP clone, use original declaration.
6359 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
6361         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
6362         (arc_conditional_register_usage): Use a different allocation order
6363         when optimizing for size.
6364         * common/config/arc/arc-common.c (arc_option_optimization_table):
6365         Section anchors default on when optimizing for size.
6367 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
6369         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
6371 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
6373         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
6374         * config/arc/arc.md (cpu_facility): Add cd variant.
6375         (*movqi_insn): Add code density variant.
6376         (*movhi_insn): Likewise.
6377         (*movqi_insn): Likewise.
6378         (*addsi3_mixed): Likewise.
6379         (subsi3_insn): Likewise.
6381 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
6383         * config/arc/arc.md (movsi_cond_exec): Update constraint.
6385 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
6387         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
6388         expressions with MINUS and UNARY ops.
6390 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6392         PR target/79911
6393         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
6394         Rename to...
6395         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
6396         between vec_select and vector argument.
6397         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
6398         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
6399         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
6400         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
6401         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
6402         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
6404 2017-03-13  Richard Biener  <rguenther@suse.de>
6406         PR other/79991
6407         * params.def (vect-max-peeling-for-alignment): Fix typo.
6409 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
6411         * doc/install.texi (Specific) <mips-*-*>: Remove description of
6412         issue that only occurred with binutils below 2.18.
6414 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
6416         * doc/install.texi (Specific) <cris-axis-elf>: No longer
6417         refer to binutils 2.11/2.12 minimum.
6419 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
6421         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
6422         ftp.kernel.org and simplify binutils requirement.
6424 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
6426         * doc/invoke.texi (Warning Options): Fix spelling of link-time
6427         optimization.
6428         (Optimize Options): Ditto.  Also remove redundancy.
6430 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6432         PR translation/79848
6433         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
6434         "%qs".
6435         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
6436         to G_ to avoid double translation.
6438 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6440         PR translation/79923
6441         * auto-profile.c (get_combined_location): Convert leading
6442         character of diagnostics to lower case and remove trailing period.
6443         (read_profile): Likewise for various diagnostics.
6444         * config/arm/arm.c (arm_option_override): Remove trailing period
6445         from various diagnostics.
6446         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
6447         (msp430_expand_delay_cycles): Likewise.
6449 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6451         PR target/79925
6452         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
6453         full command-line argument, rather than just "str".
6454         (aarch64_validate_march): Likewise.
6455         (aarch64_validate_mtune): Likewise.
6457 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
6459         PR rtl-optimization/78911
6460         * lra-assigns.c (must_not_spill_p): New function.
6461         (spill_for): Use it.
6463 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
6465         PR tree-optimization/79981
6466         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
6467         ATOMIC_COMPARE_EXCHANGE ifn result.
6468         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
6469         IFN_ATOMIC_COMPARE_EXCHANGE.
6471 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6473         PR driver/79875
6474         * opts.c (parse_sanitizer_options): Add missing question mark to
6475         "did you mean" message.
6477 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6479         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
6480         built-in.
6481         (VMULEUH_UNS): Likewise.
6482         (VMULOUB_UNS): Likewise.
6483         (VMULOUH_UNS): Likewise.
6484         * config/rs6000/rs6000.c (builtin_function_type): Remove
6485         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
6487 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6489         PR bootstrap/79952
6490         * read-rtl-function.c (function_reader::read_rtx_operand): Update
6491         x with result of extra_parsing_for_operand_code_0.
6492         (function_reader::extra_parsing_for_operand_code_0): Convert
6493         return type from void to rtx, returning x.  When reading
6494         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
6495         larger size containing struct block_symbol.
6497 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
6499         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
6500         -mfloat128-hardware without -m64.
6502 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
6504         PR target/79941
6505         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
6506         entries to the case statement that marks unsigned arguments to
6507         overloaded functions.
6509 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6511         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
6512         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
6514 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
6516         PR target/79907
6517         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
6518         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
6520 2017-03-10  Martin Liska  <mliska@suse.cz>
6522         PR target/65705
6523         PR target/69804
6524         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
6525         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
6526         FIELD != NULL.
6528 2017-03-10  Olivier Hainque  <hainque@adacore.com>
6530         * tree-switch-conversion (array_value_type): Start by resetting
6531         candidate type to it's main variant.
6533 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
6535         PR rtl-optimization/79909
6536         * combine.c (try_combine): Use simplify_replace_rtx on individual
6537         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
6538         of the whole CALL_INSN_FUNCTION_USAGE.
6540         PR tree-optimization/79972
6541         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
6542         get_range_info on SSA_NAMEs.  Formatting fixes.
6544 2017-03-10  Richard Biener  <rguenther@suse.de>
6545             Jakub Jelinek  <jakub@redhat.com>
6547         PR tree-optimization/77975
6548         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
6549         edge to be constant.
6550         (get_val_for): For constant x return it.  Formatting fix.
6551         (loop_niter_by_eval): Avoid pointless looping if the next iteration
6552         would use the same bases as the current one.
6554 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6556         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
6557         instead of vec_select for V1TImode.
6558         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
6559         longer needed.
6560         (VSX_LE_128): Add V1TI to this mode iterator.
6561         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
6562         (*vsx_le_perm_store_<mode>): Likewise.
6563         (pre-reload splitter for VSX stores): Likewise.
6564         (post-reload splitter for VSX stores): Likewise.
6565         (*vsx_xxpermdi2_le_<mode>): Likewise.
6566         (*vsx_lxvd2x2_le_<mode>): Likewise.
6567         (*vsx_stxvd2x2_le_<mode>): Likewise.
6569 2017-03-09  Michael Eager  <eager@eagercon.com>
6571         Correct failures with --enable-checking=yes,rtl.
6573         * config/microblaze/microblaze.c (microblaze_expand_shift):
6574         Replace GET_CODE test with CONST_INT_P and INTVAL test with
6575         test for const0_rtx.
6576         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
6577         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
6579 2017-03-09  Richard Biener  <rguenther@suse.de>
6581         PR tree-optimization/79977
6582         * graphite-scop-detection.c (scop_detection::merge_sese):
6583         Handle the case of extra exits to blocks dominating the entry.
6585 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
6587         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
6588         Document rdynamic.
6590 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
6592         PR rtl-optimization/79949
6593         * lra-constraints.c (process_alt_operands): Check memory when
6594         trying to predict a cycle.  Print about the overall increase.
6596 2017-03-09  Richard Biener  <rguenther@suse.de>
6598         PR middle-end/79971
6599         * gimple-expr.c (useless_type_conversion_p): Preserve
6600         TYPE_SATURATING for fixed-point types.
6602 2017-03-09  Richard Biener  <rguenther@suse.de>
6604         PR ipa/79970
6605         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
6606         alignment of BLKmode params.
6608 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6610         PR target/79913
6611         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
6612         (VALL_NO_V2Q): Likewise.
6613         (VDQF_DF): Delete.
6614         * config/aarch64/aarch64-simd.md
6615         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
6616         iterator.
6617         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
6618         VALL_NO_V2Q mode iterator.
6619         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
6621 2017-03-09  Martin Liska  <mliska@suse.cz>
6623         PR tree-optimization/79631
6624         * tree-chkp-opt.c (chkp_is_constant_addr): Call
6625         tree_int_cst_sign_bit just for INTEGER constants.
6627 2017-03-09  Martin Liska  <mliska@suse.cz>
6629         PR target/65705
6630         PR target/69804
6631         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
6632         sanitizers.
6634 2017-03-09  Marek Polacek  <polacek@redhat.com>
6636         PR c++/79672
6637         * tree.c (inchash::add_expr): Handle TREE_VEC.
6639 2017-03-09  Martin Liska  <mliska@suse.cz>
6641         PR ipa/79764
6642         (chkp_narrow_size_and_offset): New function.
6643         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
6644         (void chkp_parse_bit_field_ref): New function.
6645         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
6646         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
6648 2017-03-09  Martin Liska  <mliska@suse.cz>
6650         PR ipa/79761
6651         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
6652         (chkp_find_bounds_1): Remove gcc_unreachable.
6654 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
6656         PR sanitizer/79944
6657         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
6658         BUILT_IN_SYNC*, determine the access type from the size suffix and
6659         always build a MEM_REF with that type.  Handle forgotten
6660         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
6662         PR target/79932
6663         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
6664         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
6665         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
6666         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
6667         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
6668         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
6669         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
6670         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
6671         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
6672         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
6673         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
6674         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
6675         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
6676         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
6677         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
6678         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
6679         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
6680         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
6681         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
6682         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
6683         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
6684         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
6685         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
6686         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
6687         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
6688         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
6689         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
6690         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
6691         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
6692         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
6693         definitions outside of __OPTIMIZE__ guarded section.
6695         PR target/79932
6696         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
6697         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
6698         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
6699         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
6700         guarded section.
6702 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6704         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
6705         ("vfenez<mode>"): Add missing constraints.
6707 2017-03-08  Martin Sebor  <msebor@redhat.com>
6709         PR target/79928
6710         * config/nds32/nds32.c (nds32_option_override):
6711         Fix misspelled diagnostic.
6713 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6715         PR c/79940
6716         * gimplify.c (gimplify_omp_for): Replace index var in outer
6717         taskloop statement with an artificial variable and add
6718         OMP_CLAUSE_PRIVATE clause for it.
6720 2017-03-08  Richard Biener  <rguenther@suse.de>
6722         PR tree-optimization/79955
6723         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6724         for accesses that are completely outside of the variable.
6726 2017-03-08  Andrew Haley  <aph@redhat.com>
6728         PR tree-optimization/79943
6729         * tree-ssa-loop-split.c (compute_new_first_bound): When
6730         calculating the new upper bound, (END-BEG) should be added, not
6731         subtracted.
6733 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6735         * config/avr/avr.md (setmemhi): Make sure match_dup
6736         operand number comes before match_scratch.
6738 2017-03-08  Richard Biener  <rguenther@suse.de>
6740         PR tree-optimization/79920
6741         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
6742         with ncopies == 1 to ...
6743         (vect_transform_slp_perm_load): ... here.  Properly compute
6744         all element loads by iterating VF times over the group.  Do
6745         not handle ncopies (computed in a broken way) in
6746         vect_create_mask_and_perm.
6748 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6750         PR sanitizer/79904
6751         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
6752         is a uniform vector, use uniform_vector_p return value instead of
6753         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
6755 2017-03-07  Marek Polacek  <polacek@redhat.com>
6757         PR middle-end/79809
6758         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
6759         (alloca_call_type): Likewise.
6761 2017-03-07  Martin Liska  <mliska@suse.cz>
6763         * gcov.c (process_args): Put comment to correct location.
6765 2017-03-07  Martin Liska  <mliska@suse.cz>
6767         PR middle-end/68270
6768         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
6769         Use array_at_struct_end_p instead of DECL_CHAIN (field).
6770         (chkp_narrow_bounds_for_field): Likewise.
6771         (chkp_parse_array_and_component_ref): Pass one more argument to
6772         call.
6774 2017-03-07  Richard Biener  <rguenther@suse.de>
6776         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
6777         preheaders.
6779 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
6781         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
6782         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
6784 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6786         PR c/79855
6787         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
6788         to end of description.
6789         (PARAM_MAX_STORES_TO_MERGE): Likewise.
6791 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
6793         PR rtl-optimization/79901
6794         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
6795         ...
6796         (*avx512f_<code><mode>3<mask_name>): ... this.
6797         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
6798         iterator instead of VI8_AVX2_AVX512BW.
6800         PR rtl-optimization/79901
6801         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
6802         min/max expander, expand it using expand_vec_cond_expr.
6804         PR sanitizer/79897
6805         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
6806         temporary.
6808 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6810         PR c++/79821
6811         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
6812         to void * for PCH reasons.
6813         * dwarf2out.c (output_loc_operands, output_die): Cast
6814         v.val_vec.array to unsigned char *.
6816 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
6818         PR target/77850
6819         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
6820         vector types.
6822 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
6824         PR rtl-optimization/79571
6825         * lra-constraints.c (process_alt_operands): Calculate static
6826         reject and subtract it from overall when only addresses will be
6827         reloaded.
6829 2017-03-06  Julia Koval  <julia.koval@intel.com>
6831         PR target/79793
6832         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
6833         incoming stack boundary to 128 for 64-bit targets.
6835 2017-03-06  Richard Biener  <rguenther@suse.de>
6837         PR tree-optimization/79894
6838         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
6839         to NULL after folding it.
6841 2017-03-06  Richard Biener  <rguenther@suse.de>
6843         PR tree-optimization/79824
6844         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
6845         check disabling peeling for gaps.
6847 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
6849         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6850         attributes): Document gettimeofday.
6852 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6854         * config/s390/s390.c (s390_option_override_internal): Set
6855         PARAM_MIN_VECT_LOOP_BOUND
6857 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6859         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
6860         * config/s390/s390.md: Likewise.
6862 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6864         PR target/79812
6865         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
6866         (<avx2_avx512>_perm<mode>): Rename to ...
6867         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
6868         of VI8F_256_512.
6869         (<avx512>_perm<mode>_mask): Rename to ...
6870         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
6871         of VI8F_256_512.
6872         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
6873         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
6874         instead of VI8F_256_512.
6875         (avx512f_perm<mode>): New define_expand.
6876         (avx512f_perm<mode>_mask): Likewise.
6877         (avx512f_perm<mode>_1<mask_name>): New define_insn.
6878         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
6880 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6882         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
6883         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
6884         if_then_else.
6885         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
6887 2017-03-06  Martin Liska  <mliska@suse.cz>
6889         PR sanitize/79783
6890         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
6891         when having a SSA NAME w/o VAR_DECL assigned to it.
6893 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6895         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
6896         msa_dpsub_<su>_d): Fix MODE for vec_select.
6898 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6900         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
6901         argument.
6902         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
6904 2017-03-06  Richard Biener  <rguenther@suse.de>
6906         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
6907         * plugin.c (register_plugin_info): Likewise.
6908         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
6910 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
6912         * config/i386/sse.md (sse_storehps, sse_storelps,
6913         avx_<castmode><avxsizesuffix>_<castmode>,
6914         avx512f_<castmode><avxsizesuffix>_<castmode>,
6915         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
6916         in condition that at least one operand is not a MEM.
6918 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6920         PR middle-end/79805
6921         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
6922         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
6923         ECF_NOTHROW.
6924         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
6925         gimple_call_nothrow_p flag based on whether original builtin can throw.
6926         If it can, emit following stmts on the fallthrough edge.
6927         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
6928         don't create new bb if inserting just debug stmts on the edge, try to
6929         insert them on the fallthru bb or just reset debug stmts.
6931 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
6933         PR target/43763
6934         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
6935         restore recog_data (including the operand rtxes inside it) around
6936         the call to get_insn_template.
6938 2017-03-03  Martin Sebor  <msebor@redhat.com>
6940         PR tree-optimization/79699
6941         * context.c (context::~context): Free MPFR caches to avoid
6942         a memory leak on program exit.
6944 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6946         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
6947         Use wide_int::ulow () instead of .elt (0).
6949 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6951         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
6952         (*pushxf): Limit oF constraint to 32bit targets and add oC
6953         constraint for 64bit targets.
6954         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
6955         (*pushdf): Change rmF constraint to rmC.
6957 2017-03-03  Martin Liska  <mliska@suse.cz>
6959         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
6960         Remove unused variable.
6962 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6964         PR target/79807
6965         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
6966         is a memory operand, increase num_memory.
6967         (ix86_expand_args_builtin): Likewise.
6969 2017-03-03  Jan Hubicka  <jh@suse.cz>
6971         PR lto/79760
6972         * ipa-devirt.c (maybe_record_node): Properly handle
6973         __cxa_pure_virtual visibility.
6975 2017-03-03  Martin Liska  <mliska@suse.cz>
6977         PR tree-optimization/79803
6978         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
6979         assert.
6980         (pass_loop_prefetch::execute): Disabled optimization if an
6981         assumption about L1 cache size is not met.
6983 2017-03-03  Martin Liska  <mliska@suse.cz>
6985         PR rtl-optimization/79574
6986         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
6987         (hash_scan_set): Likewise.
6988         (dump_hash_table): Likewise.
6989         (hoist_code): Likewise.
6991 2017-03-03  Richard Biener  <rguenther@suse.de>
6993         * fixed-value.c (fixed_from_string): Restore use of elt (1)
6994         in place of uhigh ().
6995         (fixed_convert_from_real): Likewise.
6997 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6999         PR target/79514
7000         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
7002 2017-03-03  Richard Biener  <rguenther@suse.de>
7004         PR middle-end/79818
7005         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
7006         TYPE_OVERFLOW_UNDEFINED check.
7008 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7010         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
7011         numbers.
7012         (vector_ae_<mode>_p): Likewise.
7013         (vector_nez_<mode>_p): Likewise.
7014         (vector_ne_v2di_p): Likewise.
7015         (vector_ae_v2di_p): Likewise.
7016         (vector_ne_<mode>_p): Likewise.
7017         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
7018         numbers.
7019         (vsx_tsqrt<mode>2_fe): Likewise.
7021 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
7023         PR target/79514
7024         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
7026 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
7028         PR rtl-optimization/79780
7029         * cprop.c (one_cprop_pass): When second and further conditional trap
7030         in a single basic block is turned into an unconditional trap, turn it
7031         into a deleted note to avoid RTL verification failures.
7033 2017-03-02  Richard Biener  <rguenther@suse.de>
7035         * fold-const.c (const_binop): Use ulow () instead of elt (0).
7037 2017-03-02  Richard Biener  <rguenther@suse.de>
7039         PR tree-optimization/79345
7040         PR c++/42000
7041         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
7042         param and abort the walk, returning -1 if it is hit.
7043         (walk_aliased_vdefs): Take a limit param and pass it on.
7044         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
7045         defaulting to 0 and return a signed int.
7046         * tree-ssa-uninit.c (struct check_defs_data): New struct.
7047         (check_defs): New helper.
7048         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
7049         about uninitialized memory.
7050         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
7051         bogus uninitialized warning.
7052         (fixed_convert_from_real): Likewise.
7054 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
7056         PR tree-optimization/66768
7057         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
7058         iv_use if base object can't be determined.
7060 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
7062         PR tree-optimization/79345
7063         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
7064         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
7065         (get_pattern_stats): Initialize it.
7066         * genemit.c (gen_expand): Verify match_scratch numbers come after
7067         match_operand/match_dup numbers.
7068         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
7069         match_scratch numbers.
7070         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
7071         Likewise.
7072         * config/s390/s390.md (trunctdsd2): Likewise.
7074 2017-03-02  Richard Biener  <rguenther@suse.de>
7076         * wide-int.h (wide_int_storage::operator=): Implement in terms
7077         of wi::copy.
7079 2017-03-02  Richard Biener  <rguenther@suse.de>
7081         PR tree-optimization/79777
7082         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
7083         the to insert expression to sth existing.
7085 2017-03-01  Martin Sebor  <msebor@redhat.com>
7087         PR middle-end/79692
7088         * gimple-ssa-sprintf.c
7089         (directive::known_width_and_precision): New function.
7090         (format_integer): Use it.
7091         (get_mpfr_format_length): Consider the full range of precision
7092         when computing %g output with the # flag.  Set the likely byte
7093         count to 3 rather than 1 when precision is indeterminate.
7094         (format_floating): Correct the lower bound of precision.
7096 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7098         * doc/invoke.texi: Document default code model for 64-bit Linux.
7100 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7102         PR target/79752
7103         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
7104         udiv rather than div since input pattern is unsigned.
7106 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
7108         * config/i386/i386.c (print_reg): Warn for values of
7109         unsupported size in integer register.
7111 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7113         PR target/79439
7114         * config/rs6000/predicates.md (current_file_function_operand): Do
7115         not allow self calls to be local if the function is replaceable.
7117 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7119         PR target/79395
7120         * config/rs6000/altivec.h (vec_ctz and others): Change the
7121         preprocessor macro that controls conditional compilation from
7122         _ARCH_PWR9 to __POWER9_VECTOR__.
7123         (vec_all_ne): Change parameterization of __altivec_scalar_pred
7124         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
7125         control (instead of _ARCH_PWR9 control) so that template
7126         definition uses power9-specific function.
7127         (vec_any_eq): Likewise.
7128         (vec_all_ne): Change macro definition to use a power9-specific
7129         expansion under #ifdef __POWER9_VECTOR__ control (instead of
7130         _ARCH_PWR9 control).
7131         (vec_any_eq) Likewise.
7132         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
7133         expansion for CMPNEF to remove support for xvcmpnesp instruction.
7134         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
7135         support for xvcmpnedp instruction.
7136         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
7137         macro expansion so that Power9 implementation of vec_all_ne does
7138         not use the AltiVec predicate framework.
7139         (VCMPNEH_P): Likewise.
7140         (VCMPNEW_P): Likewise.
7141         (VCMPNED_P): Likewise.
7142         (VCMPNEFP_P): Likewise.
7143         (VCMPNEDP_P): Likewise.
7144         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
7145         implementation of vec_any_eq to not use AltiVec predicate
7146         framework.
7147         (VCMPAEH_P): Likewise.
7148         (VCMPAEW_P): Likewise.
7149         (VCMPAED_P): Likewise.
7150         (VCMPAEFP_P): Likewise.
7151         (VCMPAEDP_P): Likewise.
7152         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
7153         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
7154         not use the AltiVec predicate framework.
7155         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
7156         of vec_any_eq to not use AltiVec predicate framework.
7157         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
7158         support for predefined __POWER9_VECTOR__ macro to indicate that
7159         Power9 instruction selection is enabled.
7160         (altivec_overloaded_builtins): Remove extraneous
7161         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
7162         function argument types RS6000_BTI_bool_V16QI and
7163         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
7164         entry for overloaded function argument types RS6000_BTI_bool_V4SI
7165         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
7166         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
7167         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
7168         Power9 for implementations of vec_cmpne.  Change the signature for
7169         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
7170         (representing vec_all_ne) to remove the previously described first
7171         argument of type RS6000_BTI_INTSI, as this was an artifact of
7172         reliance on the AltiVec predicate framework, which is no longer
7173         used in the implementation of these functions.  Add
7174         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
7175         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
7176         since, unlike the AltiVec predicate framework implementation, we
7177         do not share function descriptors between vec_alle and vec_anyeq.
7178         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
7179         set of modes that receive special treatment even when
7180         TARGET_P9_VECTOR is true.  The special treatment emits code that
7181         does not depend on Power9 instructions.
7182         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
7183         define_expand to not rely on AltiVec predicate framework.
7184         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
7185         function.
7186         (vector_ne_v2di_p): Change this define_expand to not rely on
7187         AltiVec predicate framework.
7188         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
7189         function.
7190         (vector_ne_<mode>_p): Change this define_expand to not rely on
7191         AltiVec predicate framework.
7192         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
7193         function.
7194         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
7195         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
7196         define_insn pattern.
7197         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
7198         define_insn pattern because the xvcmpne<VSs>. instruction is not
7199         supported.
7200         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
7201         instruction is not supported.
7203 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
7205         * config/nvptx/nvptx.c: Include intl.h.
7207 2017-03-01  Martin Jambor  <mjambor@suse.cz>
7209         PR lto/78140
7210         * ipa-prop.h (ipa_bits): Removed field known.
7211         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
7212         to pointers.  Adjusted their comments to warn about their sharing.
7213         (ipcp_transformation_summary): Change bits to a vector of pointers.
7214         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
7215         (ipa_get_ipa_bits_for_value): Declare.
7216         * tree-vrp.h (value_range): Mark as GTY((for_user)).
7217         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
7218         (ipa_bits_hash_table): Likewise.
7219         (ipa_vr_ggc_hash_traits): Likewise.
7220         (ipa_vr_hash_table): Likewise.
7221         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
7222         being pointers and vr_known being removed.
7223         (ipa_set_jf_unknown): Likewise.
7224         (ipa_get_ipa_bits_for_value): New function.
7225         (ipa_set_jfunc_bits): Likewise.
7226         (ipa_get_value_range): New overloaded functions.
7227         (ipa_set_jfunc_vr): Likewise.
7228         (ipa_compute_jump_functions_for_edge): Use the above functions to
7229         construct bits and vr parts of jump functions.
7230         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
7231         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
7232         exist.
7233         (ipcp_grow_transformations_if_necessary): Also allocate
7234         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
7235         exist.
7236         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
7237         them.  Fix too long lines.
7238         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
7239         vr_known being removed.
7240         (ipa_read_jump_function): Use new setter functions to construct bits
7241         and vr parts of jump functions or set them to NULL.
7242         (write_ipcp_transformation_info): Adjust for bits being pointers.
7243         (read_ipcp_transformation_info): Likewise.
7244         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
7245         space.
7246         Include gt-ipa-prop.h.
7247         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
7248         being pointers.
7249         (ipcp_store_bits_results): Likewise.
7250         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
7251         Do not write to existing jump functions but use a temporary instead.
7253 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
7255         PR c++/79681
7256         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
7257         attempt to use its first operand as BIT_FIELD_REF base.
7259 2017-03-01  Richard Biener  <rguenther@suse.de>
7261         PR middle-end/79721
7262         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
7263         interpolating formula in wrapping arithmetic.
7264         (chrec_apply): Convert chrec_evaluate return value to wanted type.
7266 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
7268         PR tree-optimization/79734
7269         * tree-vect-generic.c (expand_vector_condition): Optimize
7270         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
7271         Handle VEC_COND_EXPR where comparison has different inner width from
7272         type's inner width.
7274 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
7276         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
7277         markup, and similar issues.  Remove @opindex entries for things
7278         that aren't options.  Add missing -mmpy-option entries.
7280 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
7282         PR tree-optimization/79737
7283         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
7284         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
7285         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
7286         instead of byte_size.  Formatting fix.
7287         (shift_bytes_in_array_right): Formatting fix.
7289 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
7291         PR target/79749
7292         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
7293         condition on optimize for the leaf function test.
7295 2017-02-28  Martin Liska  <mliska@suse.cz>
7297         PR lto/79625
7298         * read-rtl-function.c (function_reader::handle_unknown_directive):
7299         Bail out when one uses -flto.
7301 2017-02-28  Martin Liska  <mliska@suse.cz>
7303         * common.opt: Replace space with tabular for options of <number>
7304         type.
7305         * config/i386/i386.opt: Show <number> value for
7306         -mlarge-data-threshold.
7307         * opts.c (print_filtered_help): Do not display number in hexadecimal
7308         format.
7310 2017-02-28  Martin Liska  <mliska@suse.cz>
7312         * common.opt: Fix --help=option -Q for options which are of
7313         an enum type.
7315 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
7317         * config/i386/i386.c (print_reg): Error out for values
7318         of 8-bit size in invalid integer register.
7320 2017-02-28  Martin Sebor  <msebor@redhat.com>
7322         PR tree-optimization/79691
7323         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
7325 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
7327         PR target/79729
7328         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
7329         gcc_unreachable with output_operand_lossage.
7331 2017-02-28  Richard Biener  <rguenther@suse.de>
7333         PR tree-optimization/79740
7334         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
7335         inserts.
7336         (visit_nary_op): Insert the nary into the hashtable if we
7337         pattern-matched sth.
7338         * tree-ssa-pre.c (eliminate_insert): Robustify.
7340 2017-02-28  Richard Biener  <rguenther@suse.de>
7342         PR middle-end/79731
7343         * fold-const.c (decode_field_reference): Reject out-of-bound
7344         accesses.
7346 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
7348         * config/i386/i386.c: Include intl.h.
7349         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
7350         instead of just cond ? "..." : "...".
7351         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
7352         * coverage.c (read_counts_file): Likewise.
7353         * omp-offload.c: Include intl.h.
7354         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
7355         of just cond ? "..." : "...".
7356         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
7357         of just cond ? "..." : "...".
7359 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
7361         PR target/79742
7362         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
7363         entry, if present.
7364         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
7365         'tune for' CPU name.
7366         * config/arm/arm-cpu-data.h: Regenerated.
7368 2017-02-28  Richard Biener  <rguenther@suse.de>
7370         PR tree-optimization/79732
7371         * tree-inline.c (expand_call_inline): Do not shadow var.
7373 2017-02-28  Richard Biener  <rguenther@suse.de>
7375         PR tree-optimization/79723
7376         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
7377         address-space properly.
7379 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
7381         * doc/optinfo.texi (Optimization groups): Fix option used for
7382         OPTGROUP_ALL.
7383         * doc/invoke.texi (-fopt-info): Document "omp".
7384         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
7385         (OPTGROUP_ALL): Add OPTGROUP_OMP.
7386         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
7387         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
7388         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
7390         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
7391         all users.
7392         * dumpfile.c (optgroup_options): Instead of "openmp", associate
7393         OPTGROUP_OMP with "omp".
7395 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
7397         PR target/79544
7398         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
7399         for arithmetic shift of unsigned V2DI.
7401 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
7403         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
7404         arc/linux.h headers.
7405         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
7406         (LINK_SPEC): Likewise.
7407         (ARC_TLS_EXTRA_START_SPEC): Likewise.
7408         (EXTRA_SPECS): Likewise.
7409         (STARTFILE_SPEC): Likewise.
7410         (ENDFILE_SPEC): Likewise.
7411         (LIB_SPEC): Likewise.
7412         (TARGET_SDATA_DEFAULT): Likewise.
7413         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
7414         (MULTILIB_DEFAULTS): Likewise.
7415         (DWARF2_UNWIND_INFO): Likewise.
7416         * config/arc/big.h: New file.
7417         * config/arc/elf.h: Likewise.
7418         * config/arc/linux.h: Likewise.
7419         * config/arc/t-uClibc: Remove.
7421 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
7423         PR tree-optimization/77536
7424         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
7425         (tree_transform_and_unroll_loop): Use above function to compute the
7426         estimated niter of unrolled loop and use it when scaling profile.
7427         Also use count info rather than frequency if it's non-zero.
7428         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
7429         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
7430         (vect_transform_loop): Call above function.
7432 2017-02-27  Richard Biener  <rguenther@suse.de>
7434         PR tree-optimization/45397
7435         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
7436         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
7437         (visit_nary_op): Add pattern matching for CSEing sign-changed
7438         or truncated operations with wider ones.
7440 2017-02-27  Richard Biener  <rguenther@suse.de>
7442         PR tree-optimization/79690
7443         * tree-vect-stmts.c (vectorizable_store): Use vector type
7444         built from the DR with address-space.
7446 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7448         * doc/invoke.texi (Optimize Options): Refine the description
7449         of asan-use-after-return.
7451 2017-02-25  Alan Modra  <amodra@gmail.com>
7453         PR rtl-optimization/79584
7454         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
7455         base, not ad->base_term, the reg within base.  Remove assertion
7456         that ad->base == ad->base_term.  Replace gen_int_mode using
7457         bogus mode with const0_rtx.
7459 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
7461         PR middle-end/79396
7462         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
7463         FMA_EXPR like tcc_binary or tcc_unary.
7465         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
7467         PR debug/77589
7468         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
7469         bitfield.
7470         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
7471         (output_loc_operands): Handle DW_OP_call_ref and
7472         DW_OP_GNU_variable_value.
7473         (struct variable_value_struct): New type.
7474         (struct variable_value_hasher): Likewise.
7475         (variable_value_hash): New variable.
7476         (string_types): Remove.
7477         (copy_loc_descr): New function.
7478         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
7479         (prepend_loc_descr_to_each): New function.
7480         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
7481         instead of add_loc_descr_to_each if the first argument is single
7482         location list and the second has multiple.
7483         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
7484         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
7485         when looking for variable value which doesn't have other location info.
7486         (loc_list_from_tree): Formatting fix.
7487         (gen_array_type_die): Simplify DW_AT_string_length handling.
7488         (adjust_string_types): Remove.
7489         (gen_subprogram_die): Don't call adjust_string_types nor test/set
7490         string_types.  Call resolve_variable_values.
7491         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
7492         (resolve_addr_in_expr): Likewise.  Add A argument.
7493         (copy_deref_exprloc): Remove deref argument.  Adjust for the
7494         original expression being DW_OP_GNU_variable_value with optionally
7495         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
7496         optionally after it.
7497         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
7498         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
7499         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
7500         (variable_value_hasher::hash, variable_value_hasher::equal): New
7501         methods.
7502         (resolve_variable_value_in_expr, resolve_variable_value,
7503         resolve_variable_values, note_variable_value_in_expr,
7504         note_variable_value): New functions.
7505         (dwarf2out_early_finish): Call note_variable_value on all toplevel
7506         DIEs.
7508 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
7510         PR c/79677
7511         * opts.h (handle_generated_option): Add GENERATED_P argument.
7512         * opts-common.c (handle_option): Adjust function comment.
7513         (handle_generated_option): Add GENERATED_P argument, pass it to
7514         handle_option.
7515         (control_warning_option): Pass false to handle_generated_option
7516         GENERATED_P.
7517         * opts.c (maybe_default_option): Pass true to handle_generated_option
7518         GENERATED_P.
7519         * optc-gen.awk: Likewise.
7521 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7523         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
7524         a REG, look at the REG it is a SUBREG of.
7525         (splitter for cmpeqsi_t): Ditto.
7527 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7529         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
7530         the special USEs with the pattern of the insn, not the insn itself.
7532 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
7534         PR target/79473
7535         * doc/invoke.texi: Document -mload-store-pairs.
7537 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7538             Sandra Loosemore  <sandra@codesourcery.com>
7540         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
7541         argument isn't a CONST_INT.
7542         (nios2_alternate_compare_const): Assert op is a CONST_INT.
7543         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
7544         (nios2_validate_compare): Bypass alternate compare logic if *op2
7545         is not a CONST_INT.
7546         (ldstwm_operation_p): Return false if first_base is not a REG or
7547         if first_offset is not a CONST_INT.
7549 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7551         * config/cris/cris.md: Use correct operand in a define_peephole2.
7553 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7555         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
7557 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7559         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
7560         this_insn if it is an INSN or JUMP_INSN.
7561         (force_offsettable): Look at base, not at addr.
7562         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
7563         on things that aren't necessarily CONST_INTs.
7565 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
7567         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
7568         -mfpmath=sse is the default also for x86-32 targets with SSE2
7569         instruction set when @option{-ffast-math} is enabled
7571 2017-02-24  Jeff Law  <law@redhat.com>
7573         PR rtl-optimizatoin/79286
7574         * ira.c (update_equiv_regs): Drop may_trap_p exception to
7575         dominance test.
7577 2017-02-24  Richard Biener  <rguenther@suse.de>
7579         PR tree-optimization/79389
7580         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
7581         debug insns.
7583 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
7585         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
7586         function comment to reflect reality.
7587         (loop_exits_before_overflow): Fix typo in function description.
7589 2017-02-24  Richard Biener  <rguenther@suse.de>
7591         PR tree-optimization/79389
7592         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
7593         properly that a threading opportunity exists.  Detect conditional
7594         copy/constant propagation opportunities.
7596 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
7598         * config/visium/visium.md (type): Add trap.
7599         (b): New mode attribute.
7600         (*btst): Rename into...
7601         (*btst<mode>): ...this and adjust.
7602         (*cbranchsi4_btst_insn): Rename into...
7603         (*cbranch<mode>4_btst_insn): ...this and adjust.
7604         (trap): New define_insn.
7606 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
7608         PR tree-optimization/79389
7609         * ifcvt.c (struct noce_if_info): Add rev_cond field.
7610         (noce_reversed_cond_code): New function.
7611         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
7612         reversed_comparison_code.  Formatting fix.
7613         (noce_try_store_flag): Test rev_cond != NULL in addition to
7614         reversed_comparison_code.
7615         (noce_try_store_flag_constants): Likewise.
7616         (noce_try_store_flag_mask): Likewise.
7617         (noce_try_addcc): Use rev_cond if non-NULL instead of
7618         reversed_comparison_code.
7619         (noce_try_cmove_arith): Likewise.  Formatting fixes.
7620         (noce_try_minmax, noce_try_abs): Clear rev_cond.
7621         (noce_find_if_block): Initialize rev_cond.
7622         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
7623         instead of false as last argument never attempt to reverse it
7624         afterwards.
7626 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
7628         PR tree-optimization/79663
7629         * tree-predcom.c (combine_chains): Process refs in reverse order
7630         only for ZERO length chains, and add explaining comment.
7632 2017-02-23  Jeff Law  <law@redhat.com>
7634         PR tree-optimization/79578
7635         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
7636         in call to operand_equal_p.
7638 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
7640         PR target/71017
7641         * config/i386/cpuid.h: Fix another undefined behavior.
7643 2017-02-23  Richard Biener  <rguenther@suse.de>
7645         PR tree-optimization/79683
7646         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
7647         vector types for data-refs.
7649 2017-02-23  Martin Liska  <mliska@suse.cz>
7651         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
7653 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
7655         PR middle-end/79665
7656         * internal-fn.c (get_range_pos_neg): Moved to ...
7657         * tree.c (get_range_pos_neg): ... here.  No longer static.
7658         * tree.h (get_range_pos_neg): New prototype.
7659         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
7660         are known to be in between 0 and signed maximum inclusive, try to
7661         expand both unsigned and signed divmod and use the cheaper one from
7662         those.
7664 2017-02-22  Jeff Law  <law@redhat.com>
7666         PR tree-optimization/79578
7667         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
7668         to compare base operands.
7670 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
7672         PR target/79211
7673         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
7674         gpc_reg_operand instead of fpr_reg_operand.
7676 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
7678         * config/mips/mips.c (mips_return_in_memory): Force FP
7679         vector types to be returned in memory for o32 ABI.
7681 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
7683         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
7684         instead of DW_TAG_member for static data member declarations and don't
7685         set no_linkage_name for static inline data members.
7686         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
7687         to DW_TAG_member.
7689 2017-02-22  Martin Liska  <mliska@suse.cz>
7691         * doc/invoke.texi: Replace inequality signs with square brackets
7692         for -Wnormalized.
7694 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7696         PR tree-optimization/68644
7697         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
7699 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
7701         PR target/78660
7702         * lra-constraints.c (simplify_operand_subreg): Handle
7703         WORD_REGISTER_OPERATIONS targets.
7705 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
7707         PR target/70465
7708         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
7709         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
7710         elimination by swapping fld*.
7712 2017-02-22  Richard Biener  <rguenther@suse.de>
7714         PR tree-optimization/79673
7715         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
7716         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
7717         irrelevant address-space qualifiers and avoiding a
7718         ADDR_SPACE_CONVERT_EXPR from fold_convert.
7720 2017-02-22  Richard Biener  <rguenther@suse.de>
7722         PR tree-optimization/79666
7723         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
7724         to not symbolically negate if that may introduce undefined
7725         overflow.
7727 2017-02-22  Martin Liska  <mliska@suse.cz>
7729         PR lto/79587
7730         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
7731         * data-streamer-out.c (streamer_write_gcov_count_stream):
7732         Likewise.
7733         * value-prof.c (stream_out_histogram_value): Make assert more
7734         precise based on type of counter.
7736 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
7738         PR target/79593
7739         * config/i386/i386.md (standard_x87sse_constant_load splitter):
7740         Use nonimmediate_operand instead of memory_operand for operand 1.
7741         (float-extend standard_x87sse_constant_load splitter): Ditto.
7743 2017-02-21  Jeff Law  <law@redhat.com>
7745         PR tree-optimization/79621
7746         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
7747         blocks with edges to themselves.
7749 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7751         PR target/79633
7752         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
7753         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
7754         Use gimple_call_builtin_p.
7756         PR target/79570
7757         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
7758         on temporarily removed DEBUG_INSNs.
7760         PR tree-optimization/79649
7761         * tree-loop-distribution.c (classify_partition): Give up on
7762         non-generic address space loads/stores.
7764 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
7766         * doc/loop.texi (Loop manipulation): Remove nonexistent
7767         tree_ssa_loop_version from the documentation.
7768         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
7770 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7772         PR target/79494
7773         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
7774         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
7775         * config/rs6000/rs6000.c: Include except.h.
7776         (rs6000_expand_split_stack_prologue): Call
7777         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
7779 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7781         PR lto/79579
7782         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
7783         have been analyzed.
7785 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7787         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
7788         for backward compatibility only.
7789         * doc/invoke.texi (Option Summary): Remove all references to
7790         -fipa-cp-alignment.
7792 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
7794         PR target/78660
7795         Revert:
7796         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7798         * lra-constraints.c (curr_insn_transform): Handle
7799         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7801 2017-02-21  Martin Liska  <mliska@suse.cz>
7803         * config/i386/i386.opt: Replace -masm-dialect with -masm.
7805 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
7807         PR translation/79638
7808         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
7810 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
7812         PR ada/67205
7813         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7814         (arm_function_ok_for_sibcall): Return false for an indirect call by
7815         descriptor if all the argument registers are used.
7816         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
7817         alignment of the function.
7819 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7821         PR tree-optimization/61441
7822         * simplify-rtx.c (simplify_const_unary_operation): For
7823         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
7824         the sNaN unmodified.
7826 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7828         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7829         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7830         instead of SYSTEM_HEADER_DIR.
7832 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
7833             Martin Liška  <mliska@suse.cz>
7835         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
7836         Fix typos and grammar, use active voice, and clarify.
7838 2017-02-20  Marek Polacek  <polacek@redhat.com>
7840         PR middle-end/79537
7841         * gimplify.c (gimplify_expr): Handle unused *&&L;.
7843         PR sanitizer/79558
7844         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
7846 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
7848         PR target/79568
7849         * config/i386/i386.c (ix86_expand_builtin): Handle
7850         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
7851         ix86_builtins_isa[fcode].isa as a requirement of those
7852         flags and any other flag in the bitmask.
7853         (ix86_init_mmx_sse_builtins): Use 0 instead of
7854         ~OPTION_MASK_ISA_64BIT as mask.
7855         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
7856         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
7857         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
7858         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
7860 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7862         PR target/78012
7863         * lra-constraints.c (split_reg): Check requested split mode
7864         is supported by the register.
7866 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7868         * lra-constraints.c (simplify_operand_subreg): Remove early
7869         return false.
7871 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7873         PR target/78660
7874         * lra-constraints.c (curr_insn_transform): Tighten condition
7875         for converting SUBREG reloads from OP_OUT to OP_INOUT.
7877 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7879         PR target/78660
7880         * lra-constraints.c (curr_insn_transform): Handle
7881         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7883 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
7885         Revert:
7886         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
7888         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7890 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
7892         PR c++/69523
7893         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
7894         description.
7896 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7898         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
7899         for FMA_EXPR.
7901 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
7903         * final.c (last_columnnum, override_columnnum): New variables.
7904         (final_start_function): Set last_columnnum, pass it to begin_prologue
7905         hook and pass 0 to dwarf2out_begin_prologue.
7906         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
7907         to source_line debug hook.
7908         (notice_source_line): Compute last_columnnum and for debug_column_info
7909         return true on column changes.
7910         * debug.h (struct gcc_debug_hooks): Add column argument to
7911         source_line and begin_prologue hooks.
7912         (debug_nothing_int_charstar_int_bool): Remove prototype.
7913         (debug_nothing_int_int_charstar,
7914         debug_nothing_int_int_charstar_int_bool): New prototypes.
7915         (dwarf2out_begin_prologue): Add column argument.
7916         * debug.c (do_nothing_debug_hooks): Adjust source_line and
7917         begin_prologue hooks.
7918         (debug_nothing_int_charstar_int_bool): Remove.
7919         (debug_nothing_int_int_charstar,
7920         debug_nothing_int_int_charstar_int_bool): New functions.
7921         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
7922         through to dwarf2out_source_line.
7923         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
7924         (dwarf2out_source_line): Add column argument, emit it if requested.
7925         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
7926         arguments.
7927         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7928         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7929         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
7930         through to dwarf2out_begin_prologue.
7931         (vmsdbgout_source_line): Add column argument, pass it through to
7932         dwarf2out_source_line.
7933         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
7934         dbxout_source_line caller.
7935         (dbxout_source_line): Add column argument.
7937         * common.opt (gno-column-info, gcolumn-info): New options.
7938         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
7939         (check_die): Also test for multiple DW_AT_decl_column attributes.
7940         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
7941         DW_AT_decl_column if requested.
7942         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
7943         if requested.
7944         (gen_variable_die): Likewise.
7945         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
7946         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
7948         PR target/79569
7949         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
7950         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
7951         (ix86_handle_option): Handle OPT_m3dnowa.
7952         * doc/invoke.texi (-m3dnowa): Document.
7953         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
7954         -m3dnowa instead of -m3dnow -march=athlon.
7956         PR target/79559
7957         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
7958         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
7960 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7962         PR target/79261
7963         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
7964         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
7965         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
7966         generator for vsx_xxpermdi_<mode>_be.
7967         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
7968         force big-endian semantics.
7969         (vsx_xxpermdi_<mode>_be): New define_expand with same
7970         implementation as previous version of vsx_xxpermdi_<mode>.
7972 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
7974         PR tree-optimization/79327
7975         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
7976         variable, its initialization and use.
7978 2017-02-17  Julia Koval  <julia.koval@intel.com>
7980         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
7981         (OPTION_MASK_ISA_PKU_UNSET): New.
7982         (ix86_handle_option): Handle -mrdpid.
7983         * config/i386/cpuid.h (bit_RDPID): New.
7984         * config/i386/driver-i386.c (host_detect_local_cpu):
7985         Detect RDPID feature.
7986         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
7987         * config/i386/i386-c.c (ix86_target_macros_internal):
7988         Handle RDPID flag.
7989         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
7990         (ix86_valid_target_attribute_inner_p): Add "rdpid".
7991         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
7992         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
7993         * config/i386/i386.md (define_insn "rdpid"): New.
7994         * config/i386/i386.opt Add -mrdpid.
7995         * config/i386/immintrin.h (_rdpid_u32): New.
7997 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
7999         PR rtl-optimization/79541
8000         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
8001         instead of transforming it into USE.
8003 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
8005         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
8006         If HONOR_SNANS (SFmode) force the input to a register.
8007         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
8008         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
8009         an frsp or similar insn.
8011 2017-02-17  Martin Liska  <mliska@suse.cz>
8013         PR rtl-optimization/79577
8014         * params.def (selsched-max-sched-times): Increase minimum to 1.
8016 2017-02-17  Martin Liska  <mliska@suse.cz>
8018         PR rtl-optimization/79574
8019         * gcse.c (want_to_gcse_p): Prevent integer overflow.
8021 2017-02-17  Martin Liska  <mliska@suse.cz>
8023         PR tree-optimization/79529
8024         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
8025         ssa_defined_default_def_p to handle cases which are implicitly
8026         defined.
8027         * tree-ssa.c (ssa_defined_default_def_p): New function.
8028         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
8029         which are implicitly defined.
8030         * tree-ssa.h (ssa_defined_default_def_p): Declare.
8032 2017-02-17  Richard Biener  <rguenther@suse.de>
8034         PR middle-end/79576
8035         * params.def (max-ssa-name-query-depth): Limit to 10.
8037 2017-02-17  Richard Biener  <rguenther@suse.de>
8039         PR tree-optimization/79552
8040         * tree-ssa-structalias.c (visit_loadstore): Properly verify
8041         default defs.
8043 2017-02-17  Richard Biener  <rguenther@suse.de>
8045         PR bootstrap/79567
8046         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
8048 2017-02-17  Marek Polacek  <polacek@redhat.com>
8050         PR middle-end/79536
8051         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
8052         (fold_negate_expr): New wrapper.
8054 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
8056         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
8057         Correct terminology and de-emphasize pre-standard behavior.
8059 2017-02-16  Alan Modra  <amodra@gmail.com>
8061         PR rtl-optimization/79286
8062         * ira.c (def_dominates_uses): New function.
8063         (update_equiv_regs): Don't create an equivalence for insns that
8064         may trap where the register def does not dominate the use.
8066 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
8068         PR rtl-optimization/78127
8069         * lra.c (lra): Call lra_eliminate before finish the loop after
8070         lra_constraint.
8072 2017-02-16  Richard Biener  <rguenther@suse.de>
8074         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
8075         isl/isl_val.h.
8076         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
8077         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
8078         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
8079         (isl_val_int_from_wi): New function.
8080         (extract_affine_gmp): Rename to ...
8081         (extract_affine_wi): ... this, take a widest_int.
8082         (extract_affine_int): Just wrap extract_affine_wi.
8083         (add_param_constraints): Use isl_val_int_from_wi.
8084         (add_loop_constraints): Likewise, and extract_affine_wi.
8086 2017-02-15  Jeff Law  <law@redhat.com>
8088         PR middle-end/79521
8089         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
8090         ira_init_register_move_cost_if_necessary.
8092 2017-02-15  Martin Sebor  <msebor@redhat.com>
8094         PR middle-end/32003
8095         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
8096         removed in a prior commit.
8098 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
8100         PR tree-optimization/79347
8101         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
8102         counters during peeling.
8104 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
8106         * Makefile.in (site.exp): Remove "set ISLVER".
8108 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
8110         PR target/79487
8111         * real.c (real_from_integer): Call real_convert even for decimal.
8113 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8115         PR target/79421
8116         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8118 2017-02-14  Andrew Pinski  <apinski@cavium.com>
8120         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
8121         cores and change the partno/implementer to be correct.
8122         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
8123         the 'B" as the implementer.
8124         * config/aarch64/aarch64-tune.md: Regenerate.
8126 2017-02-14  Carl Love  <cel@us.ibm.com>
8128         * config/rs6000/rs6000.c: Add case statement entry to make the
8129         xvcvuxdsp built-in argument unsigned.
8130         * config/rs6000/vsx.md: Fix the source and return operand types so they
8131         match the instruction definitions from the ISA document.  Fix typo
8132         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
8133         statement.
8135 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
8137         PR target/79282
8138         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
8139         member early_clobber_alts.
8140         * lra-lives.c (reg_early_clobber_p): New.
8141         (process_bb_lives): Use it.
8142         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
8143         (debug_operand_data): Initialize early_clobber_alts.
8144         (setup_operand_alternative): Set up early_clobber_alts.
8145         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
8146         alternatives to new_insn_reg.
8147         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
8148         it.
8149         (lra_update_insn_regno_info): Pass the new arg.
8151 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
8153         PR middle-end/79505
8154         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
8155         (new_oacc_loop_raw): Don't clear already cleared fields.
8157         PR target/79481
8158         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
8159         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
8160         _mm512_prefetch_i64gather_ps): New inline functions and macros.
8162 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
8164         PR target/79495
8165         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
8167 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
8169         PR target/79498
8170         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
8171         the extra instruction to the right place to store 128-bit constant
8172         when needed.
8174 2017-02-14  Martin Sebor  <msebor@redhat.com>
8176         PR middle-end/79448
8177         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
8178           warning for strings of unknown length.
8180 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
8182         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
8184 2017-02-14  Jeff Law  <law@redhat.com>
8186         PR target/79404
8187         * ira-costs.c (scan_one_insn): Initialize register move costs
8188         for pseudos seen in USE/CLOBBER insns.
8190         PR tree-optimization/79095
8191         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
8192         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
8193         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
8194         if the operands are known to be not equal, then the resulting range
8195         is ~[0,0].
8196         (intersect_ranges): If the new range is ~[0,0] and the old range is
8197         wide, then prefer ~[0,0].
8198         * tree-vrp.c (overflow_comparison_p_1): New function.
8199         (overflow_comparison_p): New function.
8200         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
8201         if NAME is used in an overflow test.
8202         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
8203         overflow check that can be expressed as an equality test, then adjust
8204         ops to be that equality test.
8206 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8208         * config/s390/s390-builtin-types.def: Remove flags argument.
8209         * config/s390/s390.c (s390_init_builtins): Likewise.
8211 2017-02-14  Martin Liska  <mliska@suse.cz>
8213         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
8214         vector.  Fix trailing white spaces.
8216 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
8218         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
8219         HFmode.
8221 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8223         PR rtl-optimization/68664
8224         * config/arm/arm.c (arm_sched_can_speculate_insn):
8225         New function.  Declare prototype.
8226         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
8228 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8230         PR rtl-optimization/68664
8231         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
8232         New function.
8233         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
8235 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
8237         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
8238         max skip bytes for function, loop and jump.
8240 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8242         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
8243         ABS_EXPR for gimple dump.
8245 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
8247         PR target/79462
8248         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
8250         PR tree-optimization/79408
8251         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
8252         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
8253         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
8254         also if rhs1 is INTEGER_CST.
8256 2017-02-14  Richard Biener  <rguenther@suse.de>
8258         PR middle-end/79432
8259         * tree-into-ssa.c (insert_phi_nodes): When the function can
8260         have abnormal edges rewrite SSA names with broken use-def
8261         dominance out of SSA and register them for PHI insertion.
8263 2017-02-13  Martin Sebor  <msebor@redhat.com>
8265         PR middle-end/79496
8266         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
8267         clearing info.nowrite flag when snprintf size argument is a range.
8269 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
8271         * cprop.c (cprop_jump): Add missing space in string literal.
8272         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8273         (get_constraint_for_component_ref): Likewise.
8274         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8275         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
8276         * lra-constraints.c (process_alt_operands): Likewise.
8277         * ipa-inline.c (inline_small_functions): Likewise.
8278         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
8279         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8280         * trans-mem.c (diagnose_tm_1_op): Likewise.
8281         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
8282         (grid_parallel_clauses_gridifiable): Likewise.
8284         * config/nvptx/mkoffload.c (process): Add space in between
8285         , and %d.
8287         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
8288         "MOD4_SSE_REGS" and "ALL_REGS".
8290         * spellcheck.c (test_data): Add , in between "foo" and "food".
8292 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8294         PR target/79449
8295         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
8296         boundary crossing check and subsequent code generation agree.
8298 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8300         * config/aarch64/aarch64.c (has_memory_op): Delete.
8301         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
8302         has_memory_op.
8304 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
8306         PR rtl-optimization/79388
8307         PR rtl-optimization/79450
8308         * combine.c (distribute_notes): When removing TEM_INSN for which
8309         corresponding dest has last value recorded, invalidate that last
8310         value.
8312 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8314         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
8315         of explicit '@'.  Add missing assembly comment marker on branch costs
8316         printout.
8318 2017-02-13  Nathan Sidwell  <nathan@acm.org>
8320         * gengtype-lex.l (<in_struct>): Add '/'.
8322 2017-02-13  Martin Liska  <mliska@suse.cz>
8324         PR c/79471
8325         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
8327 2017-02-13  Richard Biener  <rguenther@suse.de>
8329         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
8330         Remove.
8331         * configure: Re-generate.
8332         * config.in: Likewise.
8333         * graphite-dependences.c: Simplify as if
8334         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
8335         * graphite-isl-ast-to-gimple.c: Likewise.
8336         * graphite-optimize-isl.c: Likewise.
8337         * graphite-poly.c: Likewise.
8338         * graphite-sese-to-poly.c: Likewise.
8339         * graphite.h: Likewise.
8340         * toplev.c: Include isl/version.h and use isl_version () for
8341         printing the ISL version.
8342         * doc/install.texi: Update ISL requirement.
8344 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
8346         * doc/standards.texi (Standards): Update reference to
8347         Objective-C 2.0.
8349 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
8351         * doc/extend.texi (Named Address Spaces): sourceware.org now
8352         defaults to https.
8353         * doc/install.texi (Binaries): Ditto.
8354         (Specific): Ditto.
8356 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
8358         * doc/cpp.texi: Replace "stringify"/"stringification" with C
8359         standard terminology "stringize"/"stringizing" throughout.
8360         * doc/cppinternals.texi: Likewise.
8362 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
8364         * doc/extend.texi: Fix some spelling mistakes and typos.
8365         * doc/invoke.texi: Likewise.
8367 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
8369         PR ipa/79224
8370         * params.def (inline-min-speedup) Change from 10 to 8.
8372 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
8374         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
8375         4.5.
8377 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
8379         PR ipa/79224
8380         * ipa-inline-analysis.c (get_minimal_bb): New function.
8381         (record_modified): Use it.
8382         (remap_edge_change_prob): Handle also ancestor functions.
8384 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
8386         * doc/contrib.texi (Contributors): Remove broken link into
8387         the Mauve CVS repository.
8389 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
8391         PR middle-end/79454
8392         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
8393         result computation whenever lhs doesn't have vector mode, not
8394         just when it has BLKmode.
8396 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
8398         * doc/makefile.texi (profiledbootstrap): Refer to the
8399         installation instructions only in textual form.
8401 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8403         PR target/79295
8404         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
8406 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
8408         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
8409         (Specific): Update mingw-w64 reference.
8410         (Binaries): Ditto.
8411         (Specific): Remove broken link to Renesas RX processor.
8413 2017-02-10  Richard Biener  <rguenther@suse.de>
8415         * toplev.c (process_options): Do not mention obsolete graphite
8416         options when printing sorry message about missing graphite support.
8417         Mention -floop-nest-optimize.
8419 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
8421         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
8422         (vtst_p16): Likewise.
8423         (vtstq_p8): Likewise.
8424         (vtstq_p16): Likewise.
8425         (vtst_p64): New.
8426         (vtstq_p64): Likewise.
8427         * config/arm/arm_neon.h (vgetq_lane_p64): New.
8428         (vset_lane_p64): New.
8429         (vsetq_lane_p64): New.
8431 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
8433         PR tree-optimization/79411
8434         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
8435         stmt operands are SSA_NAMEs used in abnormal phis.
8436         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
8437         phis.
8439 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
8441         PR ipa/70795
8442         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
8443         flag if needed.
8445 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
8447         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
8449 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
8451         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
8452         to avoid warning.
8454         PR c/79413
8455         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
8456         not arbitrary TREE_CONSTANT.
8458         PR c/79431
8459         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
8460         "omp declare target link" attribute unless is_global_var.
8461         * omp-offload.c (find_link_var_op): Likewise.
8463 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
8464             Chung-Lin Tang  <cltang@codesourcery.com>
8466         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
8467         OMP_CLAUSE_TILE.
8468         (gimplify_adjust_omp_clauses): Don't delete TILE.
8469         (gimplify_omp_for): Deal with TILE.
8470         * internal-fn.c (expand_GOACC_TILE): New function.
8471         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
8472         (GOACC_TILE): New.
8473         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
8474         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
8475         element fields.
8476         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
8477         avoid DIV for outermost collapse var.
8478         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
8479         Remove out of date comments, fix whitespace.
8480         * omp-general.c (omp_extract_for_data): Deal with tiling.
8481         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
8482         adjust OLF_DIM_BASE value.
8483         (struct omp_for_data): Add tiling field.
8484         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
8485         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
8486         for auto loops.  Remove default auto determining, moved to
8487         oacc_loop_fixed_partitions.
8488         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
8489         stmts, add e_mask field.
8490         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
8491         (oacc_thread_numbers): Use oacc_dim_call.
8492         (oacc_xform_tile): New.
8493         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
8494         (finish_oacc_loop): Adjust for ifns vector.
8495         (oacc_loop_discover_walk): Append loop abstraction sites to list,
8496         add case for GOACC_TILE fns.
8497         (oacc_loop_xform_loop): Delete.
8498         (oacc_loop_process): Iterate over call list directly, and add
8499         handling for GOACC_TILE fns.
8500         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
8501         dump partitioning.
8502         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
8503         vector partitioning to outer loops.  Assign 2 partitions to loops
8504         when available. Add TILE handling.
8505         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
8506         (execite_oacc_device_lower): Process GOACC_TILE fns,
8507         ignore unknown specs.
8508         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
8509         * tree.c (omp_clause_num_ops): Adjust TILE ops.
8510         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
8512 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
8514         * configure.ac (ACX_BUGURL): Update.
8515         * configure: Regenerate.
8517 2017-02-09  Richard Biener  <rguenther@suse.de>
8519         PR tree-optimization/69823
8520         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8521         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
8523 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
8525         * config/arc/arc-c.def: Add __NPS400__ definition.
8526         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
8527         (TARGET_NPS400): Define.
8529 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
8531         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
8532         file.
8533         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
8534         pointer, arch_info.
8535         (arc_cpu_types): Fill the arch_info field with a pointer into the
8536         arc_arch_types table.
8537         (arc_selected_cpu): Declare.
8538         * config/arc/arc.c (arc_selected_cpu): Make global.
8539         (arc_selected_arch): Delete.
8540         (arc_base_cpu): Delete.
8541         (arc_override_options): Remove references to deleted variables,
8542         update access to arch information.
8543         (ARC_OPT): Update access to arch information.
8544         (ARC_OPTX): Likewise.
8545         * config/arc/arc.h (arc_base_cpu): Remove declaration.
8546         (TARGET_ARC600): Update access to arch information.
8547         (TARGET_ARC601): Likewise.
8548         (TARGET_ARC700): Likewise.
8549         (TARGET_EM): Likewise.
8550         (TARGET_HS): Likewise.
8551         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
8552         information.
8554 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
8556         PR target/78604
8557         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
8558         condition/operands for integer GE/LE/GEU/LEU operations.
8560 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
8562         PR translation/79397
8563         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
8564         of AltiVec.
8566 2017-02-08  Martin Jambor  <mjambor@suse.cz>
8568         PR ipa/79375
8569         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
8570         whether allocation happened.
8571         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
8572         nothing was allocated.
8574 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
8576         PR tree-optimization/79408
8577         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
8578         constant, but SSA_NAME with a known integer range, use the minimum
8579         of that range instead of op1 to determine if modulo can be replaced
8580         with its first operand.
8582 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8584         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
8586 2017-02-08  Richard Biener  <rguenther@suse.de>
8588         PR tree-optimization/71824
8589         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8590         Check all loops contained in the merged region.
8592 2017-02-07  Andrew Pinski  <apinski@cavium.com>
8594         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
8596 2017-02-07  Andrew Pinski  <apinski@cavium.com>
8598         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
8599         (thunderxt88): Likewise.
8600         (thunderxt81): Disable LSE and change v8.1 to v8.
8601         (thunderxt83): Likewise.
8603 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
8604             Richard Biener  <rguenther@suse.de>
8606         PR middle-end/79399
8607         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
8608         type from int to size_t.
8609         * ira-costs.c (struct_costs_size): Change type from int to size_t.
8611 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
8613         PR rtl-optimization/79386
8614         * cprop.c (bypass_conditional_jumps): Initialize
8615         bypass_last_basic_block already before splitting bbs after
8616         unconditional traps...
8617         (bypass_conditional_jumps): ... rather than here.
8619         PR target/79299
8620         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
8621         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
8622         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
8623         fix -masm=intel patterns.
8625 2017-02-07  Richard Biener  <rguenther@suse.de>
8627         PR tree-optimization/79256
8628         PR middle-end/79278
8629         * builtins.c (get_object_alignment_2): Use min_align_of_type
8630         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
8631         and ADJUST_FIELD_ALIGN.
8633         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
8634         type parameter.
8635         * doc/tm.texi: Regenerate.
8636         * stor-layout.c (layout_decl): Adjust.
8637         (update_alignment_for_field): Likewise.
8638         (place_field): Likewise.
8639         (min_align_of_type): Likewise.
8640         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
8641         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
8642         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
8643         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
8644         * config/frv/frv.c (frv_adjust_field_align): Likewise.
8645         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
8646         * config/i386/i386.c (x86_field_alignment): Likewise.
8647         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8648         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
8649         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8650         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8651         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
8652         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8653          Likewise.
8655         Revert
8656         2017-01-30  Richard Biener  <rguenther@suse.de>
8658         PR tree-optimization/79256
8659         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8660         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8661         alignment on TYPE.
8663 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
8665         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
8666         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
8667         builtins to SImode and emit a zero-extend, if necessary.
8669 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8671         * docs/invoke.texi (RISC-V Options): Alphabetize.
8673 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8675         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
8676         options.
8678 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8680         * config/riscv/riscv.c: New file.
8681         * gcc/common/config/riscv/riscv-common.c: Likewise.
8682         * config.gcc: Likewise.
8683         * config/riscv/constraints.md: Likewise.
8684         * config/riscv/elf.h: Likewise.
8685         * config/riscv/generic.md: Likewise.
8686         * config/riscv/linux.h: Likewise.
8687         * config/riscv/multilib-generator: Likewise.
8688         * config/riscv/peephole.md: Likewise.
8689         * config/riscv/pic.md: Likewise.
8690         * config/riscv/predicates.md: Likewise.
8691         * config/riscv/riscv-builtins.c: Likewise.
8692         * config/riscv/riscv-c.c: Likewise.
8693         * config/riscv/riscv-ftypes.def: Likewise.
8694         * config/riscv/riscv-modes.def: Likewise.
8695         * config/riscv/riscv-opts.h: Likewise.
8696         * config/riscv/riscv-protos.h: Likewise.
8697         * config/riscv/riscv.h: Likewise.
8698         * config/riscv/riscv.md: Likewise.
8699         * config/riscv/riscv.opt: Likewise.
8700         * config/riscv/sync.md: Likewise.
8701         * config/riscv/t-elf-multilib: Likewise.
8702         * config/riscv/t-linux: Likewise.
8703         * config/riscv/t-linux-multilib: Likewise.
8704         * config/riscv/t-riscv: Likewise.
8705         * configure.ac: Likewise.
8706         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
8707         Waterman as RISC-V maintainers.
8708         * doc/install.texi: Add RISC-V entries.
8709         * doc/invoke.texi: Add RISC-V options section.
8710         * doc/md.texi: Add RISC-V constraints section.
8711         * configure: Regenerated.
8713 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8715         PR target/66144
8716         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
8717         false values to be constant vectors with all 0 or all 1 bits set.
8718         (vcondu<mode><mode>): Likewise.
8719         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
8720         predicate.
8721         (fpmask_comparison_operator): Update comment.
8722         (vecint_comparison_operator): New predicate.
8723         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
8724         vector conditionals when the true and false values are constant
8725         vectors with all 0 bits or all 1 bits set.
8727 2017-02-06  Martin Sebor  <msebor@redhat.com>
8729         PR  tree-optimization/79376
8730         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
8732 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
8734         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
8735         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
8736         to simplify split condition.
8738 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8740         * omp-expand.c (oxpand_omp_atomic_fetch_op,
8741         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
8742         false.
8744 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
8746         PR rtl-optimization/68664
8747         * target.def (can_speculate_insn): New hook.
8748         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
8749         * doc/tm.texi: Regenerate.
8750         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
8751         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
8752         (rs6000_sched_can_speculate_insn): New function.
8754 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8756         PR tree-optimization/79284
8757         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
8758         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
8759         vectorizable_mask_load_store, vectorizable_operation,
8760         vect_is_simple_cond, get_same_sized_vectype): Use it instead
8761         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
8762         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
8763         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
8764         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8765         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8766         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
8767         is_gimple_assign (stmt).  Replace another such test with
8768         is_gimple_assign (stmt).
8770 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8772         PR target/78883
8773         * config/avr/avr.c (rtl-iter.h): Include it.
8774         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
8775         (avr_legitimate_combined_insn): ...and implementation.
8777 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8779         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
8780         * config/s390/s390.c (s390_const_operand_ok)
8781         (s390_canonicalize_comparison, s390_extract_part)
8782         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
8783         (s390_contiguous_bitmask_p, s390_rtx_costs)
8784         (legitimize_pic_address): Likewise.
8785         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
8786         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
8787         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
8788         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
8789         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
8791 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8793         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
8794         REGNO($0) == REGNO($1).
8796 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8798         * config/s390/linux.h(SIZE_TYPE): Add comment.
8800 2017-02-06  Julian Brown  <julian@codesourcery.com>
8801             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8802             Virendra Pathak  <virendra.pathak@broadcom.com>
8804         * config/aarch64/aarch64-cores.def: Change the scheduler
8805         to Thunderx2t99.
8806         * config/aarch64/aarch64.md: Include thunderx2t99.md.
8807         * config/aarch64/thunderx2t99.md: New file.
8809 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8811         * doc/standards.texi (Go Language): Update link to language
8812         standard.
8814 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8816         * tree-eh.c (lower_resx): Sanitize profile.
8817         (cleanup_empty_eh_move_lp): Likewise.
8819 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8821         PR tree-ssa/79347
8822         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
8823         ELSE_PROB.
8824         * cfgloopmanip.h (loop_version): Update prototype.
8825         * modulo-sched.c (sms_schedule): Update call of loop_version.
8826         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
8827         * tree-parloops.c (gen_parallel_loop): Likewise.
8828         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
8829         * tree-ssa-loop-split.c (split_loop): Likewise.
8830         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
8831         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
8833 2017-02-05  Martin Liska  <mliska@suse.cz>
8835         PR bootstrap/78985
8836         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
8837         variable to NULL.
8838         (print_operand_address): Initialize a struct to zero.
8840 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8842         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
8843         garbage collector only in textual form.
8845 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8847         * doc/extend.texi (x86 specific memory model extensions for
8848         transactional memory): Simplify a phrase.
8850 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
8852         PR target/79353
8853         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
8854         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
8855         (atomic_storedi_1): Likewise.
8857 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
8859         PR tree-optimization/79338
8860         * tree-parloops.c (gather_scalar_reductions): Don't call
8861         vect_analyze_loop_form for loop->inner before destroying loop's
8862         loop_vinfo.
8864 2017-02-03  Martin Sebor  <msebor@redhat.com>
8866         PR tree-optimization/79327
8867         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
8868         when precision has resulted in leading zeros.
8869         (format_integer): Adjust the likely counter to assume an unknown
8870         argument that may be zero is non-zero.
8872 2017-02-03  Jason Merrill  <jason@redhat.com>
8874         PR c++/78689
8875         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
8876         avoid copying non-taken branch.
8878 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8880         PR tree-optimization/79340
8881         * tree-vect-loop.c (vectorizable_reduction): Release
8882         vec_defs elements after safe_splicing them into other vectors.
8883         Formatting fixes.
8885         PR tree-optimization/79327
8886         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
8887         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
8888         dirtype.
8889         (format_integer): Use wide_int_to_tree instead of build_int_cst
8890         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
8891         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
8892         of shortest and longest sequence.
8894 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
8896         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
8897         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
8899 2017-02-03  Walter Lee  <walt@tilera.com>
8901         PR target/78862
8902         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
8903         after initial stackframe link reg save.
8904         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
8906 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8908         PR target/79354
8909         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
8910         wu for stxssp alternative.
8912 2017-02-03  Martin Sebor  <msebor@redhat.com>
8914         PR tree-optimization/79352
8915         * gimple-fold.c (get_range_strlen): Add argument.
8916         (get_range_strlen): Change return type to bool.
8917         (get_maxval_strlen): Pass in a dummy argument.
8918         * gimple-fold.h (get_range_strlen): Change return type to bool.
8919         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
8920         * tree.h (array_at_struct_end_p): Add argument.
8921         * tree.c (array_at_struct_end_p): Handle it.
8923 2017-02-03  Martin Liska  <mliska@suse.cz>
8925         PR lto/66295
8926         * multiple_target.c (create_dispatcher_calls): Redirect edge
8927         from a caller of a dispatcher.
8928         (expand_target_clones): Make the clones local.
8929         (ipa_target_clone): Do both target clones and resolvers.
8930         (ipa_dispatcher_calls): Remove the pass.
8931         (pass_dispatcher_calls::gate): Likewise.
8932         (make_pass_dispatcher_calls): Likewise.
8933         * passes.def (pass_target_clone): Put as very first IPA early
8934         pass.
8936 2017-02-03  Martin Liska  <mliska@suse.cz>
8938         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
8939         in case of a function with ifunc attribute.
8941 2017-02-03  Martin Liska  <mliska@suse.cz>
8943         * cgraph.c (cgraph_node::dump): Dump function version info.
8944         * symtab.c (symtab_node::dump_base): Add missing new line.
8946 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8948         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
8949         (ifcombine_ifandif): Use it.
8951 2017-02-03  Martin Liska  <mliska@suse.cz>
8953         * doc/invoke.texi: Document default value for
8954         use-after-scope-direct-emission-threshold.
8956 2017-02-03  Martin Liska  <mliska@suse.cz>
8958         PR tree-optimization/79339
8959         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
8960         (format_floating): Likewise.
8962 2017-02-03  Martin Liska  <mliska@suse.cz>
8964         PR ipa/79337
8965         * ipa-prop.c (ipa_node_params_t::insert): Remove current
8966         implementation.
8967         (ipa_node_params_t::remove): Likewise.
8968         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
8969         initialization from removed ipa_node_params_t::insert.
8970         (ipa_node_params::~ipa_node_params): Move from removed
8971         ipa_node_params_t::release.
8972         * symbol-summary.h (symbol_summary::m_released): New member.
8973         Do not release a summary twice.  Do not allow to call finalizer
8974         for types of a summary that live in GGC memory.
8976 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8978         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
8979         cmp_branch fusion.
8981 2017-02-02  Martin Sebor  <msebor@redhat.com>
8983         PR middle-end/79275
8984         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
8985         (format_string): Tighten up the range of output for non-constant
8986         strings and correct the expected range for wide non-constant strings.
8988 2017-02-02  Martin Sebor  <msebor@redhat.com>
8990         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
8992         PR middle-end/32003
8993         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
8994         index.
8995         (-fdump-tree-@var): Add to index and document how to come up
8996         with pass-specific option and dump file names.
8997         (-fdump-passes): Clarify where to look for output.
8999 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
9001         PR middle-end/77445
9002         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
9003         statistics of the analyzed path; allow threading for speed when
9004         any of BBs along the path are optimized for speed.
9006 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
9008         PR middle-end/78468
9009         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
9010         settings of the virtual registers.
9012         Revert again
9013         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9015         * explow.c (get_dynamic_stack_size): Take known alignment of stack
9016         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
9017         needed.
9019 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9021         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
9022         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
9024 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9026         * config/s390/s390.md: Add missing comments with the expanded
9027         mnemonics.
9028         * config/s390/vector.md: Likewise.
9029         * config/s390/vx-builtins.md: Likewise.
9031 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
9033         PR target/79197
9034         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
9035         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
9036         conditions on a single line.
9038 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9040         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
9041         __S390_VX__ to __VX__.
9043 2017-02-01  Andrew Pinski  <apinski@cavium.com>
9045         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
9046         stmt_info to record_stmt_cost.
9047         (vect_get_known_peeling_cost): Pass stmt_info if known to
9048         record_stmt_cost.
9049         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
9050         cpu_vector_cost field into
9051         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
9052         field into vec_int_stmt_cost and vec_fp_stmt_cost.
9053         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
9054         splitting of scalar_stmt_cost and vec_stmt_cost.
9055         (thunderx_vector_cost): Likewise.
9056         (cortexa57_vector_cost): LIkewise.
9057         (exynosm1_vector_cost): Likewise.
9058         (xgene1_vector_cost): Likewise.
9059         (thunderx2t99_vector_cost): Improve after the splitting of the two
9060         fields.
9061         (aarch64_builtin_vectorization_cost): Update for the splitting of
9062         scalar_stmt_cost and vec_stmt_cost.
9064 2017-02-01  Torvald Riegel  <triegel@redhat.com>
9065             Richard Henderson  <rth@redhat.com>
9067         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
9068         conditional on existance of a fast atomic load.
9069         * optabs-query.c (can_atomic_load_p): New function.
9070         * optabs-query.h (can_atomic_load_p): Declare it.
9071         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
9072         no fast atomic load is available for the particular size of access.
9073         (expand_atomic_compare_and_swap): Likewise.
9074         (expand_atomic_load): Likewise.
9075         (expand_atomic_store): Likewise.
9076         (expand_atomic_fetch_op): Likewise.
9077         * testsuite/lib/target-supports.exp
9078         (check_effective_target_sync_int_128): Remove x86 because it provides
9079         no fast atomic load.
9080         (check_effective_target_sync_int_128_runtime): Likewise.
9082 2017-02-01  Richard Biener  <rguenther@suse.de>
9084         * graphite.c: Include tree-vectorizer.h for find_loop_location.
9085         (graphite_transform_loops): Provide opt-info for optimized nests.
9086         * tree-parloop.c (parallelize_loops): Provide opt-info for
9087         parallelized loops.
9089 2017-02-01  Richard Biener  <rguenther@suse.de>
9091         PR middle-end/79315
9092         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
9093         was not set before.
9095 2017-02-01  Richard Biener  <rguenther@suse.de>
9097         PR tree-optimization/71824
9098         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
9099         Verify the loops are valid in the merged SESE region.
9100         (scop_detection::can_represent_loop_1): Check analyzing the
9101         evolution of the number of iterations in the region succeeds.
9103 2017-01-31  Ian Lance Taylor  <iant@golang.org>
9105         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
9106         REG_ARGS_SIZE note to 32-bit push insns and call insn.
9108 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
9110         PR preprocessor/79210
9111         * input.c (get_substring_ranges_for_loc): Replace line_width
9112         assertion with error-handling.
9114 2017-01-31  Richard Biener  <rguenther@suse.de>
9116         PR tree-optimization/77318
9117         * graphite-sese-to-poly.c (extract_affine): Fix assert.
9118         (create_pw_aff_from_tree): Take loop parameter.
9119         (add_condition_to_pbb): Pass loop of the condition to
9120         create_pw_aff_from_tree.
9122 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
9124         * config/s390/s390.c (s390_asan_shadow_offset): New function.
9125         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
9127 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
9129         PR target/78597
9130         PR target/79038
9131         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
9132         no longer used.
9133         (convert_int_to_float128): Likewise.
9134         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
9135         (convert_int_to_float128): Likewise.
9136         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
9137         (UNSPEC_IEEE128_CONVERT): Likewise.
9138         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
9139         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
9140         Use local variables for IBM extended format.
9141         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
9142         (fix_trunc<mode>si2_fprs): Likewise.
9143         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9144         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
9145         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
9146         to know that we can now have integers of all sizes in vector
9147         registers.
9148         (fix<uns>_<mode>di2_hw): Likewise.
9149         (float<uns>_<mode>si2_hw): Likewise.
9150         (fix_<mode>si2_hw): Likewise.
9151         (fixuns_<mode>si2_hw): Likewise.
9152         (float<uns>_<mode>di2_hw): Likewise.
9153         (float_<mode>di2_hw): Likewise.
9154         (float_<mode>si2_hw): Likewise.
9155         (floatuns_<mode>di2_hw): Likewise.
9156         (floatuns_<mode>si2_hw): Likewise.
9157         (xscvqp<su>wz_<mode>): Delete, no longer used.
9158         (xscvqp<su>dz_<mode>): Likewise.
9159         (xscv<su>dqp_<mode>): Likewise.
9160         (ieee128_mfvsrd_64bit): Likewise.
9161         (ieee128_mfvsrd_32bit): Likewise.
9162         (ieee128_mfvsrwz): Likewise.
9163         (ieee128_mtvsrw): Likewise.
9164         (ieee128_mtvsrd_64bit): Likewise.
9165         (ieee128_mtvsrd_32bit): Likewise.
9167 2017-01-31  Martin Liska  <mliska@suse.cz>
9169         PR ipa/79285
9170         * ipa-prop.c (ipa_free_all_node_params): Call release method
9171         instead of ~sumbol_summary to not to trigger double times
9172         dtor of hash_map.
9174 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
9176         PR tree-optimization/71691
9177         * bitmap.h (class auto_bitmap): New.
9178         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
9179         is_maybe_undefined instead of ssa_undefined_value_p.
9181 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9183         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
9184         __S390_ARCH_LEVEL__ to __ARCH__.
9186 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
9188         PR tree-optimization/79267
9189         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
9190         if should_remove_lhs_p is true.
9192 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
9194         PR debug/63238
9195         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
9196         (add_alignment_attribute): New.
9197         (base_type_die): Add alignment attribute.
9198         (subrange_type_die): Likewise.
9199         (modified_type_die): Likewise.
9200         (gen_array_type_die): Likewise.
9201         (gen_descr_array_type_die: Likewise.
9202         (gen_enumeration_type_die): Likewise.
9203         (gen_subprogram_die): Likewise.
9204         (gen_variable_die): Likewise.
9205         (gen_field_die): Likewise.
9206         (gen_ptr_to_mbr_type_die): Likewise.
9207         (gen_struct_or_union_type_die): Likewise.
9208         (gen_subroutine_type_die): Likewise.
9209         (gen_typedef_die): Likewise.
9210         (base_type_cmp): Compare alignment attribute.
9212 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9214         PR target/79170
9215         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
9216         (setb_unsigned) New pattern for setb with CCUNS.
9217         * config/rs6000/rs6000.c (expand_block_compare): Use a different
9218         subfc./subfe sequence to avoid overflow problems.  Generate a
9219         shorter sequence with cmpld/setb for power9.
9220         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
9221         for generating subfc. instruction.
9222         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
9223         now uses this instruction.
9225 2017-01-30  Ian Lance Taylor  <iant@google.com>
9227         PR debug/79289
9228         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
9229         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
9231 2017-01-30  Martin Sebor  <msebor@redhat.com>
9233         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
9234         Move constant to the right of a relational operator.
9235         (get_mpfr_format_length, format_character, format_string): Ditto.
9236         (should_warn_p, maybe_warn): Same.
9238         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
9240 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
9242         PR lto/79061
9243         * asan.c (get_translation_unit_decl): Remove function.
9244         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
9246 2017-01-30  Martin Liska  <mliska@suse.cz>
9248         PR gcov-profile/79259
9249         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
9250         -fprofile-generate.
9252 2017-01-30  Martin Liska  <mliska@suse.cz>
9254         PR bootstrap/78985
9255         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
9256         Initialize variables with NULL value.
9258 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
9260         PR target/79260
9261         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
9262         tm_p_file.
9263         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
9265 2017-01-30  Richard Biener  <rguenther@suse.de>
9267         PR tree-optimization/79276
9268         * tree-vrp.c (process_assert_insertions): Properly adjust common
9269         when removing a duplicate.
9271         * gcc.dg/torture/pr79276.c: New testcase.
9273 2017-01-30  Richard Biener  <rguenther@suse.de>
9275         PR tree-optimization/79256
9276         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
9277         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
9278         alignment on TYPE.
9279         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
9281 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9283         PR target/79240
9284         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
9285         ("*r<noxa>sbg_<mode>_sll_bitmask")
9286         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
9287         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
9288         Use contiguous_bitmask_nowrap_operand.
9290 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9292         PR target/79268
9293         * config/rs6000/altivec.h (vec_xl): Revise #define.
9294         (vec_xst): Likewise.
9296 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
9298         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
9300 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
9302         PR rtl-optimization/79194
9303         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
9304         traps before call to bypass_conditional_jumps.
9306 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
9308         PR tree-optimization/71374
9309         * lra-constraints.c (check_conflict_input_operands): New.
9310         (match_reload): Use it.
9312 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
9314         PR target/79131
9315         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
9316         account to calculate conflict_set.
9318 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
9320         PR rtl-optimization/78559
9321         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
9322         other_insn in combine.
9324 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
9326         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
9327         uint16_type_node for BT_UINT16.
9329 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
9331         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
9332         "RTL Tests" to menu.
9333         (GIMPLE Tests): New node.
9334         (RTL Tests): New node.
9336 2017-01-27  Richard Biener  <rguenther@suse.de>
9338         PR tree-optimization/79245
9339         * tree-loop-distribution.c (distribute_loop): Apply cost
9340         modeling also to detected patterns.
9342 2017-01-27  Richard Biener  <rguenther@suse.de>
9344         PR tree-optimization/71433
9345         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
9346         (compare_assert_loc): New function.
9347         (process_assert_insertions): Sort and optimize assert locations
9348         to remove duplicates and push down identical assertions on
9349         edges to their destination block.
9351 2017-01-27  Richard Biener  <rguenther@suse.de>
9353         PR tree-optimization/79244
9354         * tree-vrp.c (remove_range_assertions): Forcefully propagate
9355         out SSA names even if abnormal.
9357 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
9359         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
9360         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
9361         instead of MPFR_RNDN.
9363 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
9365         PR target/79239
9366         * arm.c (arm_option_override): Don't call build_target_option_node
9367         until after doing all option overrides.
9368         (arm_valid_target_attribute_tree): Likewise.
9370 2017-01-27  Martin Liska  <mliska@suse.cz>
9372         * doc/invoke.texi (-fprofile-arcs): Document profiling support
9373         for {cd}tors and C++ {cd}tors.
9375 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9377         * config/s390/s390.md ("*setmem_long_and")
9378         ("*setmem_long_and_31z"): Use zero_extend instead of and.
9380 2017-01-26  Martin Sebor  <msebor@redhat.com>
9382         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
9383         of precision.
9385 2017-01-26  Martin Sebor  <msebor@redhat.com>
9387         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
9388         HAVE_DFmode before using XFmode or DFmode.
9389         (parse_directive): Avoid using the z length modifier to avoid
9390         the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
9392         PR middle-end/78703
9393         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
9394         to accept adjustment as an array.
9395         (get_int_range): New function.
9396         (struct directive): Make width and prec arrays.
9397         (directive::set_width, directive::set_precision): Call get_int_range.
9398         (format_integer, format_floating): Handle width and precision ranges.
9399         (format_string, parse_directive): Same.
9401 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9403         PR debug/79129
9404         * dwarf2out.c (generate_skeleton_bottom_up): For children with
9405         comdat_type_p set, just clone them, but keep the children in the
9406         original DIE.
9408         PR debug/78835
9409         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
9410         which have direct callers with -fvar-tracking-assignments enabled
9411         in the current TU.
9412         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
9413         inside of type units.
9415 2017-01-26  Martin Sebor  <msebor@redhat.com>
9417         PR middle-end/78703
9418         * gimple-ssa-sprintf.c (struct result_range): Add likely and
9419         unlikely counters.
9420         (struct format_result): Replace number_chars, number_chars_min,
9421         and number_chars_max with a single member of struct result_range.
9422         Remove bounded.
9423         (format_result::operator+=): Adjust.
9424         (struct fmtresult): Remove bounded.  Handle likely and unlikely
9425         counters.
9426         (fmtresult::adjust_for_width_or_precision): New function.
9427         (fmtresult:type_max_digits): New function.
9428         (bytes_remaining): Handle likely and unlikely counters.
9429         (min_bytes_remaining): Remove.
9430         (format_percent): Simplify.
9431         (format_integer, format_floating): Set likely and unlikely counters.
9432         (get_string_length, format_character, format_string): Same.
9433         (format_plain, should_warn_p): New function.
9434         (maybe_warn): Call should_warn_p.  Update diagnostic messages
9435         and handle those for all directives, including plain strings.
9436         (format_directive): Handle likely and unlikely counters.
9437         Remove unnecessary quoting from diagnostics.  Add an informational
9438         note.
9439         (add_bytes): Remove.
9440         (pass_sprintf_length::compute_format_length): Simplify.
9441         (try_substitute_return_value): Handle likely and unlikely counters.
9443 2017-01-26  Carl Love  <cel@us.ibm.com>
9445         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
9446         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
9448 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
9450         PR target/79131
9451         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
9452         endianess for subregs into account.
9453         * lra-constraints.c (lra_constraints): Do risky transformations
9454         always on the first iteration.
9455         * lra-lives.c (check_pseudos_live_through_calls): Add arg
9456         last_call_used_reg_set.
9457         (process_bb_lives): Define and use last_call_used_reg_set.
9458         * lra.c (lra): Always continue after lra_constraints on the first
9459         iteration.
9461 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
9463         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
9464         constant.
9465         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
9467 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9469         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
9470         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
9471         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
9472         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
9473         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
9474         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
9475         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
9476         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
9477         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
9479 2017-01-26  Marek Polacek  <polacek@redhat.com>
9481         PR c/79199
9482         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
9483         for the third operand.
9485 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9487         PR middle-end/79236
9488         * omp-low.c (struct omp_context): Add simt_stmt field.
9489         (scan_omp_for): Return omp_context *.
9490         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
9491         context to the _simt_ SIMD stmt.
9492         (lower_omp_for): For combined SIMD with sibling _simt_
9493         SIMD, make sure to use the same decls in _looptemp_
9494         clauses as in the sibling.
9496 2017-01-26  David Sherwood  <david.sherwood@arm.com>
9498         PR middle-end/79212
9499         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
9500         all contexts.
9502 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9504         PR target/70465
9505         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
9506         emit fld b; fld a; if possible.
9508         * brig-builtins.def: Update copyright years.
9509         * config/arm/arm_acle_builtins.def: Update copyright years.
9511 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9513         PR target/79179
9514         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
9515         constraint instead of o for the stxsd instruction.
9517 2017-01-25  Carl Love  <cel@us.ibm.com>
9519         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
9520         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
9522 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
9524         * doc/invoke.texi (C++ Dialect Options): Fix typo.
9526 2017-01-25  Richard Biener  <rguenther@suse.de>
9528         PR tree-optimization/69264
9529         * target.def (vector_alignment_reachable): Improve documentation.
9530         * doc/tm.texi: Regenerate.
9531         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
9532         and add a comment.
9533         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
9534         earlier changes with respect to TYPE_USER_ALIGN.
9535         (vector_alignment_reachable_p): Likewise.  Improve dumping.
9537 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9539         PR target/79145
9540         * config/arm/arm.md (xordi3): Force constant operand into a register
9541         for TARGET_IWMMXT.
9543 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9545         * doc/invoke.texi (-fstore-merging): Correct default optimization
9546         levels at which it is enabled.
9547         (-O): Move -fstore-merging from list to...
9548         (-O2): ... Here.
9550 2017-01-25  Richard Biener  <rguenther@suse.de>
9552         PR debug/78363
9553         * omp-expand.c: Include debug.h.
9554         (expand_omp_taskreg): Make sure to generate early debug before
9555         outlining anything from a function.
9556         (expand_omp_target): Likewise.
9557         (grid_expand_target_grid_body): Likewise.
9559 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
9561         PR lto/79061
9562         * asan.c (get_translation_unit_decl): New function.
9563         (asan_add_global): Extract modules file name from globals
9564         TRANSLATION_UNIT_DECL name.
9566 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
9568         PR target/77439
9569         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
9570         for long calls with APCS frame and VFP.
9572 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
9574         * cfg.c (original_copy_tables_initialized_p): New function.
9575         * cfg.h (original_copy_tables_initialized_p): New decl.
9576         * cfgrtl.c (relink_block_chain): Guard the call to
9577         free_original_copy_tables with a call to
9578         original_copy_tables_initialized_p.
9579         * cgraph.h (symtab_node::native_rtl_p): New decl.
9580         * cgraphunit.c (symtab_node::native_rtl_p): New function.
9581         (symtab_node::needed_p): Don't assert for early assembly output
9582         for __RTL functions.
9583         (cgraph_node::finalize_function): Set "force_output" for __RTL
9584         functions.
9585         (cgraph_node::analyze): Bail out early for __RTL functions.
9586         (analyze_functions): Update assertion to support __RTL functions.
9587         (cgraph_node::expand): Bail out early for __RTL functions.
9588         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
9589         __RTL functions.
9590         * function.h (struct function): Update comment for field
9591         "pass_startwith".
9592         * gimple-expr.c: Include "tree-pass.h".
9593         (gimple_has_body_p): Return false for __RTL functions.
9594         * Makefile.in (OBJS): Add run-rtl-passes.o.
9595         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
9596         accessor.
9597         (gcc::pass_manager::get_clean_slate): New accessor.
9598         * passes.c: Include "insn-addr.h".
9599         (should_skip_pass_p): Add logging.  Update logic for running
9600         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
9601         property-provider override so it is only done for gimple passes.
9602         Don't skip dfinit.
9603         (skip_pass): New function.
9604         (execute_one_pass): Call skip_pass when skipping passes.
9605         * read-md.c (md_reader::read_char): Support filtering
9606         the input to a subset of line numbers.
9607         (md_reader::md_reader): Initialize fields
9608         m_first_line and m_last_line.
9609         (md_reader::read_file_fragment): New function.
9610         * read-md.h (md_reader::read_file_fragment): New decl.
9611         (md_reader::m_first_line): New field.
9612         (md_reader::m_last_line): New field.
9613         * read-rtl-function.c (function_reader::create_function): Only
9614         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
9615         curr_properties.  Set DECL_INITIAL to a dummy block.
9616         (read_rtl_function_body_from_file_range): New function.
9617         * read-rtl-function.h (read_rtl_function_body_from_file_range):
9618         New decl.
9619         * run-rtl-passes.c: New file.
9620         * run-rtl-passes.h: New file.
9622 2017-01-24  Jeff Law  <law@redhat.com>
9624         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
9625         buffer size.
9627 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
9629         PR tree-optimization/79159
9630         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
9631         (record_nonwrapping_iv): Improve boundary using above function if no
9632         value range information.
9634 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
9635             Martin Jambor  <mjambor@suse.cz>
9637         * brig-builtins.def: New file.
9638         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
9639         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9640         (DEF_HSAIL_SAT_BUILTIN): Likewise.
9641         (DEF_HSAIL_INTR_BUILTIN): Likewise.
9642         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9643         * builtin-types.def (BT_INT8): New.
9644         (BT_INT16): Likewise.
9645         (BT_UINT8): Likewise.
9646         (BT_UINT16): Likewise.
9647         (BT_FN_ULONG): Likewise.
9648         (BT_FN_UINT_INT): Likewise.
9649         (BT_FN_UINT_ULONG): Likewise.
9650         (BT_FN_UINT_LONG): Likewise.
9651         (BT_FN_UINT_PTR): Likewise.
9652         (BT_FN_ULONG_PTR): Likewise.
9653         (BT_FN_INT8_FLOAT): Likewise.
9654         (BT_FN_INT16_FLOAT): Likewise.
9655         (BT_FN_UINT32_FLOAT): Likewise.
9656         (BT_FN_UINT16_FLOAT): Likewise.
9657         (BT_FN_UINT8_FLOAT): Likewise.
9658         (BT_FN_UINT64_FLOAT): Likewise.
9659         (BT_FN_UINT16_UINT32): Likewise.
9660         (BT_FN_UINT32_UINT16): Likewise.
9661         (BT_FN_UINT16_UINT16_UINT16): Likewise.
9662         (BT_FN_INT_PTR_INT): Likewise.
9663         (BT_FN_UINT_PTR_UINT): Likewise.
9664         (BT_FN_LONG_PTR_LONG): Likewise.
9665         (BT_FN_ULONG_PTR_ULONG): Likewise.
9666         (BT_FN_VOID_UINT64_UINT64): Likewise.
9667         (BT_FN_UINT8_UINT8_UINT8): Likewise.
9668         (BT_FN_INT8_INT8_INT8): Likewise.
9669         (BT_FN_INT16_INT16_INT16): Likewise.
9670         (BT_FN_INT_INT_INT): Likewise.
9671         (BT_FN_UINT_FLOAT_UINT): Likewise.
9672         (BT_FN_FLOAT_UINT_UINT): Likewise.
9673         (BT_FN_ULONG_UINT_UINT): Likewise.
9674         (BT_FN_ULONG_UINT_PTR): Likewise.
9675         (BT_FN_ULONG_ULONG_ULONG): Likewise.
9676         (BT_FN_UINT_UINT_UINT): Likewise.
9677         (BT_FN_VOID_UINT_PTR): Likewise.
9678         (BT_FN_UINT_UINT_PTR: Likewise.
9679         (BT_FN_UINT32_UINT64_PTR): Likewise.
9680         (BT_FN_INT_INT_UINT_UINT): Likewise.
9681         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
9682         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
9683         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
9684         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
9685         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
9686         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
9687         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
9688         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
9689         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
9690         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
9691         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
9692         * doc/frontends.texi: List BRIG FE.
9693         * doc/install.texi (Testing): Add BRIG tesring requirements.
9694         * doc/invoke.texi (Overall Options): Mention BRIG.
9695         * doc/standards.texi (Standards): Doucment BRIG HSA version.
9697 2017-01-24  Richard Biener  <rguenther@suse.de>
9699         PR translation/79208
9700         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
9702 2017-01-24  Martin Jambor  <mjambor@suse.cz>
9704         PR bootstrap/79198
9705         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
9706         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
9707         and known_contexts.
9709 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
9711         PR middle-end/79123
9712         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
9713         casts from signed to unsigned really don't have a range.
9715 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9717         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
9718         GMP_RNDx for compatiblity.
9720 2017-01-24  Martin Liska  <mliska@suse.cz>
9722         PR bootstrap/79132
9723         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
9724         that would prevent us to call alloca with -1 as argument.
9726 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
9728         * dwarf2out.c (output_compilation_unit_header, output_file_names):
9729         Avoid -Wformat-security warning.
9731 2017-01-23  Andrew Pinski  <apinski@cavium.com>
9733         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
9734         cost table.
9736 2017-01-23  Martin Sebor  <msebor@redhat.com>
9738         PR middle-end/78703
9739         * gimple-ssa-sprintf.c (warn_level): New global.
9740         (format_integer): Use it here and throughout the rest of the file.
9741         Use the same switch to compute sign as base.
9742         (maybe_warn): New function.
9743         (format_directive): Factor out warnings into maybe_warn.
9744         Add debugging output.  Use warn_level.
9745         (add_bytes): Use warn_level.
9746         (pass_sprintf_length::compute_format_length): Add debugging output.
9747         (try_substitute_return_value): Same.
9748         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
9750         PR middle-end/78703
9751         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
9752         (struct fmtresult, format_integer, format_floating): Adjust.
9753         (fmtresult::fmtresult): Set max correctly in two argument ctor.
9754         (get_string_length, format_string,format_directive): Same.
9755         (pass_sprintf_length::compute_format_length): Same.
9756         (try_substitute_return_value): Simplify slightly.
9758         PR middle-end/78703
9759         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
9760         (fmtresult::operator+=): Outlined.
9761         (struct fmtresult): Add ctors.
9762         (struct conversion_spec): Rename...
9763         (struct directive): ...to this.  Add and remove data members.
9764         (directive::set_width, directive::set_precision): New functions.
9765         (format_percent): Use fmtresult ctor.
9766         (get_width_and_precision): Remove.
9767         (format_integer): Make naming changes.  Avoid computing width and
9768         precision.
9769         (format_floating): Same.  Adjust indentation.
9770         (format_character, format_none): New functions.
9771         (format_string): Moved character handling to format_character.
9772         (format_directive): Remove arguments, change return type.
9773         (parse_directive): New function.
9774         (pass_sprintf_length::compute_format_length): Move directive
9775         parsing to parse_directive.
9777 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9779         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
9780         (assign_assembler_name_if_needed): ... this.
9781         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
9782         (assign_assembler_name_if_needed): ... this.
9783         (free_lang_data_in_cgraph): Adjust callers.
9784         * cgraphunit.c (cgraph_node::analyze): Likewise.
9785         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
9786         Likewise.
9788 2017-01-23  Richard Biener  <rguenther@suse.de>
9790         PR tree-optimization/79088
9791         PR tree-optimization/79188
9792         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
9793         resetting loop bounds after last path deletion.  Reset loop
9794         bounds of the target loop, make code match the comments.
9795         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
9796         Make sure loops need no fixups.
9798 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9800         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
9801         exponent support with double type for first argument.
9802         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
9803         type returned by __builtin_vec_extract_sig,
9804         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
9805         functions from "vector int" to "vector unsigned int" or from
9806         "vector long long int" to "vector unsigned long long int".
9807         Changed type returned by __builtin_vec_extract_exp,
9808         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
9809         functions from "vector int" to "vector unsigned int" or from
9810         "vector long long int" to "vector unsigned long long int".
9811         Changed return type of __builtin_vec_test_data_class,
9812         __builtin_vec_test_data_class_sp, and
9813         __builtin_vec_test_data_class_dp from "vector int" to
9814         "vector bool int" or from "vector long long int" to "vector bool
9815         long long int" and changed second argument type from "unsigned
9816         int" to "int".  Added new overloaded function forms "vector float
9817         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
9818         "vector float __builtin_vec_insert_exp_sp (vector float, vector
9819         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
9820         double, vector unsigned long long int)" and "vector double
9821         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
9822         long int)".  Changed return type of
9823         __builtin_scalar_test_data_class and
9824         __builtin_scalar_test_data_class_sp and
9825         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
9826         int" and changed second argument from "unsigned int" to "int".
9827         Changed type returned by __builtin_scalar_test_neg,
9828         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
9829         from "int" to "bool int".  Added new overloaded function form
9830         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
9831         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
9832         exponent double-precision with floating point first argument.
9833         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
9834         documentation of scalar_test_data_class, scalar_test_neg,
9835         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
9836         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
9837         vec_test_data_class built-in functions to reflect refinements in
9838         their type signatures.
9840 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
9842         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
9843         size of buf.
9844         (aarch64_elf_asm_destructor): Likewise.
9846 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
9848         PR rtl-optimization/78634
9849         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
9850         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
9851         * ifcvt.c (noce_try_cmove): Add missing cost check.
9853         PR rtl-optimization/71724
9854         * combine.c (if_then_else_cond): Look for situations where it is
9855         beneficial to undo the work of one of the recursive calls.
9857 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
9859         PR tree-optimization/70754
9860         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
9861         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
9862         combined stmt before it if not NULL.
9863         (combine_chains): Process refs reversely and compute dominance point
9864         for root ref.
9866 2017-01-23  Martin Liska  <mliska@suse.cz>
9868         PR tree-optimization/79196
9869         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
9870         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
9871         instead of memcmp.
9872         (strlen_optimize_stmt): Call the renamed function.
9874 2017-01-23  Michael Matz  <matz@suse.de>
9876         PR tree-optimization/78384
9877         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
9879 2017-01-23  Richard Biener  <rguenther@suse.de>
9881         PR tree-optimization/79186
9882         * tree-vrp.c (register_new_assert_for): Make sure we've seen
9883         both incoming edges before moving an assert.
9885 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9887         * ipa-prop.c (load_from_param_1): Removed.
9888         (load_from_unmodified_param): Bits from load_from_param_1 put back
9889         here.
9890         (load_from_param): Removed.
9891         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
9892         with stmt.  Reverted back to use of load_from_unmodified_param.
9894 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9896         PR ipa/79108
9897         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
9898         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
9899         field a pointer to garbage collected vector, mark lattices and
9900         ipcp_orig_node with GTY((skip)).
9901         (ipa_get_param_count): Adjust to descriptors being a pointer.
9902         (ipa_get_param): Likewise.
9903         (ipa_get_type): Likewise.
9904         (ipa_get_param_move_cost): Likewise.
9905         (ipa_set_param_used): Likewise.
9906         (ipa_get_controlled_uses): Likewise.
9907         (ipa_set_controlled_uses): Likewise.
9908         (ipa_is_param_used): Likewise.
9909         (ipa_node_params_t): Move into garbage collector.  New methods insert
9910         and remove.
9911         (ipa_node_params_sum): Annotate wth GTY(()).
9912         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
9913         garbage collected.
9914         (ipa_load_from_parm_agg): Adjust declaration.
9915         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
9916         * ipa-profile.c (ipa_profile): Likewise.
9917         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
9918         (ipa_populate_param_decls): Make descriptors parameter garbage
9919         collected.
9920         (ipa_dump_param): Adjust to descriptors being a pointer.
9921         (ipa_alloc_node_params): Likewise.
9922         (ipa_initialize_node_params): Likewise.
9923         (load_from_param_1): Make descriptors parameter garbage collected.
9924         (load_from_unmodified_param): Likewise.
9925         (load_from_param): Likewise.
9926         (ipa_load_from_parm_agg): Likewise.
9927         (ipa_node_params::~ipa_node_params): Removed.
9928         (ipa_free_all_node_params): Remove call to delete operator.
9929         (ipa_node_params_t::insert): New.
9930         (ipa_node_params_t::remove): Likewise.
9931         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
9932         copy known_csts and known_contexts vectors.
9933         (ipa_read_node_info): Adjust to descriptors being a pointer.
9934         (ipcp_modif_dom_walker): Make m_descriptors field garbage
9935         collected.
9936         (ipcp_transform_function): Make descriptors variable garbage
9937         collected.
9939 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
9941         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
9942         * config/i386/avx512dqintrin.h: Ditto.
9943         * config/i386/avx512fintrin.h: Ditto.
9944         * gcc/config/i386/i386.c: Handle new builtins.
9945         * config/i386/i386-builtin.def: Add new builtins.
9946         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
9947         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
9949 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9950             Martin Liska  <mliska@suse.cz>
9952         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
9953         * asan.c (asan_expand_poison_ifn): Support stores and use
9954         appropriate ASAN report function.
9955         * internal-fn.c (expand_ASAN_POISON_USE): New function.
9956         * internal-fn.def (ASAN_POISON_USE): Declare.
9957         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
9958         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
9959         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
9960         ASAN_POISON calls w/o LHS.
9961         * tree-ssa.c (execute_update_addresses_taken): Create clobber
9962         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
9963         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
9964         * gimplify.c (asan_poison_variables): Add attribute
9965         use_after_scope_memory to variables that really needs to live
9966         in memory.
9967         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
9968         having the attribute.
9970 2017-01-23  Martin Liska  <mliska@suse.cz>
9972         * asan.c (create_asan_shadow_var): New function.
9973         (asan_expand_poison_ifn): Likewise.
9974         * asan.h (asan_expand_poison_ifn): New declaration.
9975         * internal-fn.c (expand_ASAN_POISON): Likewise.
9976         * internal-fn.def (ASAN_POISON): New builtin.
9977         * sanopt.c (pass_sanopt::execute): Expand
9978         asan_expand_poison_ifn.
9979         * tree-inline.c (copy_decl_for_dup_finish): Make function
9980         external.
9981         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
9982         * tree-ssa.c (is_asan_mark_p): New function.
9983         (execute_update_addresses_taken): Rewrite local variables
9984         (identified just by use-after-scope as addressable) into SSA.
9986 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9988         * doc/install.texi (Specific): opensource.apple.com uses https
9989         now. Remove trailing slash.
9991 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9993         * README.Portability: Remove note on an Irix compatibility issue.
9995 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
9997         * gcov.c (INCLUDE_ALGORITHM): Define.
9998         (INCLUDE_VECTOR): Define.
9999         No longer include <vector> and <algorithm> directly.
10001 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
10003         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
10004         to https.
10005         * doc/invoke.texi (Code Gen Options): Ditto.
10007 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
10009         PR lto/78407
10010         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
10012 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
10014         rtl-optimization/79125
10015         * cprop.c (local_cprop_pass): Handle cases where we make an
10016         unconditional trap.
10018 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
10020         PR target/61729
10021         PR target/77850
10022         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
10023         read from, for big endian.
10025 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
10027         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
10028         register pauth builtins for LP64 only.
10030 2017-01-20  Marek Polacek  <polacek@redhat.com>
10032         PR c/79152
10033         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
10034         non-case labels.
10036 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
10038         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
10039         of safelen status.
10040         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
10041         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
10042         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
10044 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10046         PR target/71270
10047         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
10048         in big-endian mode when they are not a single duplicated value.
10050 2017-01-20  Richard Biener  <rguenther@suse.de>
10052         * BASE-VER: Bump to 7.0.1.
10054 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
10056         * omp-low.c (omplow_simd_context): New struct.  Use it...
10057         (lower_rec_simd_input_clauses): ...here and...
10058         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
10059         references to idx, lane, max_vf, is_simt.
10061 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
10063         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
10064         mcpu=nps400.
10066 2017-01-20  Martin Jambor  <mjambor@suse.cz>
10068         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
10069         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
10070         gt-hsa-common.h.
10071         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
10072         (GTFILES): Rename hsa.c to hsa-common.c.
10073         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
10074         * hsa-dump.c: Likewise.
10075         * hsa-gen.c: Likewise.
10076         * hsa-regalloc.c: Likewise.
10077         * ipa-hsa.c: Likewise.
10078         * omp-expand.c: Likewise.
10079         * omp-low.c: Likewise.
10080         * toplev.c: Likewise.
10082 2017-01-20  Marek Polacek  <polacek@redhat.com>
10084         PR c/64279
10085         * doc/invoke.texi: Document -Wduplicated-branches.
10086         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
10087         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
10088         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
10089         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
10090         return 0 only when not OEP_LEXICOGRAPHIC.
10091         (fold_build_cleanup_point_expr): Use the expression
10092         location when building CLEANUP_POINT_EXPR.
10093         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
10094         * tree.c (add_expr): Handle error_mark_node.
10096 2017-01-20  Martin Liska  <mliska@suse.cz>
10098         PR lto/69188
10099         * tree-profile.c (init_ic_make_global_vars): Do not call
10100         finalize_decl.
10101         (gimple_init_gcov_profiler): Likewise.
10103 2017-01-20  Martin Liska  <mliska@suse.cz>
10105         PR ipa/71190
10106         * cgraph.h (maybe_create_reference): Remove argument and
10107         update comment.
10108         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
10109         argument.
10110         * ipa-cp.c (create_specialized_node): Likewise.
10111         * symtab.c (symtab_node::maybe_create_reference): Handle
10112         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
10114 2017-01-20  Martin Liska  <mliska@suse.cz>
10116         * read-rtl-function.c (function_reader::create_function): Use
10117         build_decl instread of build_decl_stat.
10119 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
10121         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
10122         * config/i386/avx512dqintrin.h: Ditto.
10123         * config/i386/avx512fintrin.h: Ditto.
10124         * config/i386/i386-builtin-types.def: Add new types.
10125         * gcc/config/i386/i386.c: Handle new types.
10126         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
10127         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
10128         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
10129         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
10130         (__builtin_ia32_kshiftridi): New.
10131         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
10133 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
10135         PR target/78875
10136         PR target/79140
10137         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
10138         define to rs6000_init_stack_protect_guard.
10139         (rs6000_init_stack_protect_guard): New function.
10141 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
10142             Yunqiang Su  <yunqiang.su@imgtec.com>
10144         * config.gcc (supported_defaults): Add madd4.
10145         (with_madd4): Add validation.
10146         (all_defaults): Add madd4.
10147         * config/mips/mips.opt (mmadd4): New option.
10148         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10149         mmadd4.
10150         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
10151         __mips_no_madd4.
10152         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
10153         (ISA_HAS_FUSED_MADD4): Likewise.
10154         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
10155         * gcc/doc/install.texi (--with-madd4): Document the new option.
10157 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
10159         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
10160         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
10161         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
10162         (aarch64_init_pauth_hint_builtins): New.
10163         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
10164         (aarch64_expand_builtin): Expand new builtins.
10166 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
10168         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
10169         * combine-stack-adj.c (no_unhandled_cfa): Handle
10170         REG_CFA_TOGGLE_RA_MANGLE.
10171         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
10172         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
10173         info for return address signing.
10174         (aarch64_expand_epilogue): Likewise.
10176 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
10178         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
10179         * config/aarch64/aarch64-protos.h
10180         (aarch64_return_address_signing_enabled): New declaration.
10181         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
10182         New function.
10183         (aarch64_expand_prologue): Sign return address before it's pushed onto
10184         stack.
10185         (aarch64_expand_epilogue): Authenticate return address fetched from
10186         stack.
10187         (aarch64_override_options): Sanity check for ILP32 and ISA level.
10188         (aarch64_attributes): New function attributes for "sign-return-address".
10189         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
10190         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
10191         ("*do_return"): Generate combined instructions according to key index.
10192         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
10193         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
10194         iterators.
10195         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
10196         * config/aarch64/aarch64.opt (msign-return-address=): New.
10197         * doc/extend.texi (AArch64 Function Attributes): Documents
10198         "sign-return-address=".
10199         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
10201 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
10203         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
10204         overall option summary.
10206 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
10208         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
10209         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
10210         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
10211         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
10213 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10215         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
10216         -mpower9-minmax by default for -mcpu=power9.
10217         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
10218         128-bit floating point.
10220 2017-01-20  Alan Modra  <amodra@gmail.com>
10222         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
10223         optimizing for size.
10225 2017-01-20  Alan Modra  <amodra@gmail.com>
10227         PR target/79144
10228         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
10229         for strcmp and strncmp from corresponding builtin decl.
10231 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
10233         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
10234         instead of i386/rtems-64.h.
10235         * config/i386/rtems-64.h: Remove.
10237 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
10239         PR target/78478
10240         Revert:
10241         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
10243         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
10245 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
10247         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
10248         Change int to HOST_WIDE_INT.
10249         * config/aarch64/aarch64-protos.h
10250         (aarch64_simd_gen_const_vector_dup): Likewise.
10251         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
10253 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
10255         * langhooks-def.h (lhd_type_for_size): New decl.
10256         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
10257         * langhooks.c (lhd_type_for_size): New function, taken from
10258         lto_type_for_size.
10260 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
10262         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
10263         define_bypass for CR latency.
10264         (power9-cracked-alu): Update bypass latency and remove power9-branch.
10265         (power9-alu2): Add define_bypass for CR latency.
10266         (power9-cmp): New.
10267         (power9-mul): Update insn latency.
10268         (power9-mul-compare): Update insn latency, bypass latency and remove
10269         power9-branch.
10271 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10273         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10274         Delete.
10275         * config/aarch64/aarch64.md
10276         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
10277         aarch64_nopcrelative_literal_loads.
10278         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10280 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
10282         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
10283         TARGET_LOONGSON_3A.
10284         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
10286 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
10288         PR target/78176
10289         * config.gcc (supported_defaults): Add lxc1-sxc1.
10290         (with_lxc1_sxc1): Add validation.
10291         (all_defaults): Add lxc1-sxc1.
10292         * config/mips/mips.opt (mlxc1-sxc1): New option.
10293         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10294         mlxc1-sxc1.
10295         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
10296         __mips_no_lxc1_sxc1.
10297         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
10298         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
10299         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
10301 2017-01-19  Richard Biener  <rguenther@suse.de>
10303         PR tree-optimization/72488
10304         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
10305         sure to restore SSA info.
10306         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
10308 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
10310         PR rtl-optimization/79121
10311         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
10312         of the inner type when shifting an extended value.
10314 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
10316         PR lto/78407
10317         * symtab.c (symtab_node::equal_address_to): Fix comparing of
10318         interposable aliases.
10320 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
10322         PR target/78516
10323         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
10324         Use the evmergelohi instruction.
10325         (mov_si<mode>_e500_subreg4_2_le): Likewise.
10326         (mov_sitf_e500_subreg8_2_be): Likewise.
10327         (mov_sitf_e500_subreg12_2_le): Likewise.
10328         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
10329         (mov_si<mode>_e500_subreg4_2_be): Likewise.
10330         (mov_sitf_e500_subreg8_2_le): Likewise.
10331         (mov_sitf_e500_subreg12_2_be): Likewise.
10333 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10335         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
10336         attribute from vecsimple to vecperm.
10337         (altivec_vbpermq2): Likewise.
10339 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10341         PR target/79040
10342         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
10344 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10345         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
10346         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
10347         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
10348         case where N arg is SIZE_MAX.
10349         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
10350         (cmpstrsi): Add pattern.
10352 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
10354         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10355         __builtin_vec_revb builtins.
10356         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
10357         built-in functions to support generation of the ISA 3.0 XXBR<x>
10358         vector byte reverse instructions.
10359         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
10360         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
10361         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
10362         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
10363         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
10364         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
10365         (P9V_BUILTIN_VEC_REVB): Likewise.
10366         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
10367         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
10368         (p9_xxbrq_v16qi): Likewise.
10369         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
10370         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
10371         (p9_xxbrh_v8hi): Likewise.
10372         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
10373         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
10374         vec_revb built-in functions.
10376 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
10378         PR rtl-optimization/78952
10379         * config/i386/i386.md (any_extract): New code iterator.
10380         (*insvqi_2): Use any_extract for source operand.
10381         (*insvqi_3): Use any_shiftrt for source operand.
10383 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
10385         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
10386         New function.
10387         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
10389 2017-01-18  Matthias Klose  <doko@ubuntu.com>
10391         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
10393 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10395         * config/rs6000/altivec.h (vec_bperm): Change #define.
10396         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
10397         (altivec_vbpermq2): New define_insn.
10398         (altivec_vbpermd): Likewise.
10399         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
10400         function interface.
10401         (VBPERMD): Likewise.
10402         (VBPERM): New polymorphic function interface.
10403         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
10404         Add entries for P9V_BUILTIN_VEC_VBPERM.
10405         * doc/extend.texi: Add interfaces for vec_bperm.
10407 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10409         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
10410         first letter of error messages.
10411         (s390_resolve_overloaded_builtin): Likewise.
10412         * config/s390/s390.c (s390_expand_builtin): Likewise.
10413         (s390_invalid_arg_for_unprototyped_fn): Likewise.
10414         (s390_valid_target_attribute_inner_p): Likewise.
10415         * config/s390/s390.md ("tabort"): Likewise.
10417 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
10419         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
10420         (ISA_AVOID_DIV_HILO): New macro.
10421         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
10422         (ISA_HAS_DDIV): Likewise.
10424 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
10426         * doc/invoke.texi (fabi-version): Correct number of occurrences.
10428 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
10430         * doc/invoke.texi (fabi-version): Spelling fix.
10432 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
10434         PR c++/70182
10435         * doc/invoke.texi (fabi-version): Mention mangling fix for
10436         operator names.
10438 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
10440         PR c++/77489
10441         * doc/invoke.texi (fabi-version): Document discriminator mangling.
10443 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10445         PR target/78875
10446         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
10447         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
10448         the new options.
10449         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
10450         flexible settings.
10451         (stack_protect_test): Ditto.
10452         * config/rs6000/rs6000.opt (mstack-protector-guard=,
10453         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
10454         options.
10455         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
10456         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
10457         -mstack-protector-guard-offset=.
10458         (RS/6000 and PowerPC Options): Ditto.
10460 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
10462         * config/i386/i386.h (MASK_CLASS_P): New define.
10463         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
10464         there are no registers from different register sets also when
10465         mask registers are used.  Update function comment.
10466         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
10467         to (*k/*r) and (*k/*km) alternatives.
10469 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
10471         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
10472         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
10473         (EH_RETURN_HANDLER_RTX): New define.
10474         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
10475         Force frame pointer in EH return functions.
10476         (aarch64_expand_epilogue): Add barrier for eh_return.
10477         (aarch64_final_eh_return_addr): Remove.
10478         (aarch64_eh_return_handler_rtx): New function.
10479         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
10480         Remove.
10481         (aarch64_eh_return_handler_rtx): New prototype.
10483 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10485         * config/rs6000/altivec.h (vec_rlmi): New #define.
10486         (vec_vrlnm): Likewise.
10487         (vec_rlnm): Likewise.
10488         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
10489         (UNSPEC_VRLNM): Likewise.
10490         (VIlong): New mode iterator.
10491         (altivec_vrl<VI_char>mi): New define_insn.
10492         (altivec_vrl<VI_char>nm): Likewise.
10493         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
10494         function entry.
10495         (VRLDNM): Likewise.
10496         (RLNM): New polymorphic function entry.
10497         (VRLWMI): New monomorphic function entry.
10498         (VRLDMI): Likewise.
10499         (RLMI): New polymorphic function entry.
10500         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
10501         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
10502         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
10503         vec_vrlnm.
10505 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10507         PR debug/78839
10508         * dwarf2out.c (field_byte_offset): Restore the
10509         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
10510         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
10511         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
10512         of build2 + fold.
10514 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10516         PR ada/67205
10517         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
10519 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10521         PR debug/71669
10522         * dwarf2out.c (add_data_member_location_attribute): For constant
10523         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
10524         instead of DW_AT_data_member_location, DW_AT_bit_offset and
10525         DW_AT_byte_size attributes.
10527 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10529         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
10530         after forcing to constant memory when the code model is medium.
10532 2017-01-17  Julia Koval  <julia.koval@intel.com>
10534         PR target/76731
10535         * config/i386/avx512fintrin.h
10536         (_mm512_i32gather_ps): Change __addr type to void const*.
10537         (_mm512_mask_i32gather_ps): Ditto.
10538         (_mm512_i32gather_pd): Ditto.
10539         (_mm512_mask_i32gather_pd): Ditto.
10540         (_mm512_i64gather_ps): Ditto.
10541         (_mm512_mask_i64gather_ps): Ditto.
10542         (_mm512_i64gather_pd): Ditto.
10543         (_mm512_mask_i64gather_pd): Ditto.
10544         (_mm512_i32gather_epi32): Ditto.
10545         (_mm512_mask_i32gather_epi32): Ditto.
10546         (_mm512_i32gather_epi64): Ditto.
10547         (_mm512_mask_i32gather_epi64): Ditto.
10548         (_mm512_i64gather_epi32): Ditto.
10549         (_mm512_mask_i64gather_epi32): Ditto.
10550         (_mm512_i64gather_epi64): Ditto.
10551         (_mm512_mask_i64gather_epi64): Ditto.
10552         (_mm512_i32scatter_ps): Change __addr type to void*.
10553         (_mm512_mask_i32scatter_ps): Ditto.
10554         (_mm512_i32scatter_pd): Ditto.
10555         (_mm512_mask_i32scatter_pd): Ditto.
10556         (_mm512_i64scatter_ps): Ditto.
10557         (_mm512_mask_i64scatter_ps): Ditto.
10558         (_mm512_i64scatter_pd): Ditto.
10559         (_mm512_mask_i64scatter_pd): Ditto.
10560         (_mm512_i32scatter_epi32): Ditto.
10561         (_mm512_mask_i32scatter_epi32): Ditto.
10562         (_mm512_i32scatter_epi64): Ditto.
10563         (_mm512_mask_i32scatter_epi64): Ditto.
10564         (_mm512_i64scatter_epi32): Ditto.
10565         (_mm512_mask_i64scatter_epi32): Ditto.
10566         (_mm512_i64scatter_epi64): Ditto.
10567         (_mm512_mask_i64scatter_epi64): Ditto.
10568         * config/i386/avx512pfintrin.h
10569         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
10570         (_mm512_mask_prefetch_i32gather_ps): Ditto.
10571         (_mm512_mask_prefetch_i64gather_pd): Ditto.
10572         (_mm512_mask_prefetch_i64gather_ps): Ditto.
10573         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
10574         (_mm512_prefetch_i32scatter_ps): Ditto.
10575         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
10576         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
10577         (_mm512_prefetch_i64scatter_pd): Ditto.
10578         (_mm512_prefetch_i64scatter_ps): Ditto.
10579         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
10580         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
10581         * config/i386/avx512vlintrin.h
10582         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
10583         (_mm_mmask_i32gather_ps): Ditto.
10584         (_mm256_mmask_i32gather_pd): Ditto.
10585         (_mm_mmask_i32gather_pd): Ditto.
10586         (_mm256_mmask_i64gather_ps): Ditto.
10587         (_mm_mmask_i64gather_ps): Ditto.
10588         (_mm256_mmask_i64gather_pd): Ditto.
10589         (_mm_mmask_i64gather_pd): Ditto.
10590         (_mm256_mmask_i32gather_epi32): Ditto.
10591         (_mm_mmask_i32gather_epi32): Ditto.
10592         (_mm256_mmask_i32gather_epi64): Ditto.
10593         (_mm_mmask_i32gather_epi64): Ditto.
10594         (_mm256_mmask_i64gather_epi32): Ditto.
10595         (_mm_mmask_i64gather_epi32): Ditto.
10596         (_mm256_mmask_i64gather_epi64): Ditto.
10597         (_mm_mmask_i64gather_epi64): Ditto.
10598         (_mm256_i32scatter_ps): Change __addr type to void*.
10599         (_mm256_mask_i32scatter_ps): Ditto.
10600         (_mm_i32scatter_ps): Ditto.
10601         (_mm_mask_i32scatter_ps): Ditto.
10602         (_mm256_i32scatter_pd): Ditto.
10603         (_mm256_mask_i32scatter_pd): Ditto.
10604         (_mm_i32scatter_pd): Ditto.
10605         (_mm_mask_i32scatter_pd): Ditto.
10606         (_mm256_i64scatter_ps): Ditto.
10607         (_mm256_mask_i64scatter_ps): Ditto.
10608         (_mm_i64scatter_ps): Ditto.
10609         (_mm_mask_i64scatter_ps): Ditto.
10610         (_mm256_i64scatter_pd): Ditto.
10611         (_mm256_mask_i64scatter_pd): Ditto.
10612         (_mm_i64scatter_pd): Ditto.
10613         (_mm_mask_i64scatter_pd): Ditto.
10614         (_mm256_i32scatter_epi32): Ditto.
10615         (_mm256_mask_i32scatter_epi32): Ditto.
10616         (_mm_i32scatter_epi32): Ditto.
10617         (_mm_mask_i32scatter_epi32): Ditto.
10618         (_mm256_i32scatter_epi64): Ditto.
10619         (_mm256_mask_i32scatter_epi64): Ditto.
10620         (_mm_i32scatter_epi64): Ditto.
10621         (_mm_mask_i32scatter_epi64): Ditto.
10622         (_mm256_i64scatter_epi32): Ditto.
10623         (_mm256_mask_i64scatter_epi32): Ditto.
10624         (_mm_i64scatter_epi32): Ditto.
10625         (_mm_mask_i64scatter_epi32): Ditto.
10626         (_mm256_i64scatter_epi64): Ditto.
10627         (_mm256_mask_i64scatter_epi64): Ditto.
10628         (_mm_i64scatter_epi64): Ditto.
10629         (_mm_mask_i64scatter_epi64): Ditto.
10630         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
10631         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
10632         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
10633         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
10634         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
10635         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
10636         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
10637         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
10638         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
10639         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
10640         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
10641         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
10642         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
10643         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
10644         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
10645         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
10646         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
10647         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
10648         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
10649         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
10650         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
10651         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
10652         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
10653         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
10654         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
10655         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
10656         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
10657         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
10658         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
10659         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
10660         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
10661         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
10662         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
10663         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
10664         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
10665         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
10666         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
10667         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
10668         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
10669         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
10670         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
10671         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
10672         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
10673         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
10674         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
10675         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
10676         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
10677         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
10678         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
10679         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
10680         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
10681         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
10682         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
10683         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
10684         definitions accordingly.
10686 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
10687             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
10689         PR target/79079
10690         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
10691         gen_lowpart.
10693 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
10695         PR target/79058
10696         * ira-conflicts.c (ira_build_conflicts): Update total conflict
10697         hard regs for inner regno.
10699 2017-01-17  Martin Liska  <mliska@suse.cz>
10701         PR ipa/71207
10702         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
10703         assumption and add comment.
10705 2017-01-17  Nathan Sidwell  <nathan@acm.org>
10707         * ipa-visibility.c (localize_node): New function, broken out of ...
10708         (function_and_variable_visibility): ... here. Call it.
10710 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
10712         PR middle-end/77445
10713         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
10714         correctly set frequency of oudgoing edge.
10715         (duplicate_thread_path): Fix profile updating.
10717 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10719         PR other/79046
10720         * configure.ac: Add GCC_BASE_VER.
10721         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
10722         version from BASE-VER file.
10723         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
10724         (gcc.o): Depend on $(BASEVER).
10725         * common.opt (dumpfullversion): New option.
10726         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
10727         * doc/invoke.texi: Document -dumpfullversion.
10728         * doc/install.texi: Document --with-gcc-major-version-only.
10729         * configure: Regenerated.
10731 2017-01-17  Richard Biener  <rguenther@suse.de>
10733         PR tree-optimization/71433
10734         * tree-vrp.c (register_new_assert_for): Merge same asserts
10735         on all incoming edges.
10736         (process_assert_insertions_for): Handle insertions at the
10737         beginning of BBs.
10739 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
10741         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
10742         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
10744 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10746         PR target/78633
10747         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
10748         RTL sharing.
10750 2017-01-17  Alan Modra  <amodra@gmail.com>
10752         PR target/79066
10753         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
10754         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
10755         symbolic stack limit when pic.
10757 2017-01-16  Martin Sebor  <msebor@redhat.com>
10759         PR tree-optimization/78608
10760         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
10762 2017-01-16  Jeff Law  <law@redhat.com>
10764         Revert:
10765         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
10766         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
10767         for several include directories that may be relative to sysroot.
10768         * config/i386/x-mingw32 (gplus_includedir): Define.
10769         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
10770         (native_system_includedir): Likewise.
10771         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
10772         override if TARGET_SYSTEM_ROOT is defined.
10773         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
10775         PR tree-optimization/79090
10776         PR tree-optimization/33562
10777         PR tree-optimization/61912
10778         PR tree-optimization/77485
10779         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
10780         and computed trims into the dump file.
10782 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
10784         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
10786 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
10788         PR c/79089
10789         * gimplify.c (gimplify_init_constructor): If want_value and
10790         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
10791         fix.
10793         PR target/79080
10794         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
10795         sequence.  Formatting fixes.
10796         (doloop_optimize): Formatting fixes.
10798         PR driver/49726
10799         * gcc.c (debug_level_greater_than_spec_func): New function.
10800         (static_spec_functions): Add debug-level-gt spec function.
10801         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
10802         !g0.
10803         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10804         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10805         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
10806         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
10807         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
10808         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
10810 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
10812         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
10813         QImode fixups to general and mask registers only.
10815 2017-01-16  Carl Love  <cel@us.ibm.com>
10817         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
10818         for built-in functions
10819         vector signed char vec_nabs (vector signed char)
10820         vector signed short vec_nabs (vector signed short)
10821         vector signed int vec_nabs (vector signed int)
10822         vector signed long long vec_nabs (vector signed long long)
10823         vector float vec_nabs (vector float)
10824         vector double vec_nabs (vector double)
10825         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
10826         and NABS overload.
10827         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
10828         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
10829         * doc/extend.texi: Update the documentation file for the new built-in
10830         functions.
10832 2017-01-16  Martin Sebor  <msebor@redhat.com>
10834         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
10835         message.
10837 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10839         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
10840         UNSPEC_VSX__XXSPLTD to require special splat handling.
10842 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
10844         PR bootstrap/78616
10845         * system.h: Poison strndup.
10847 2017-01-16  Alan Modra  <amodra@gmail.com>
10849         PR target/79098
10850         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
10851         use a switch.
10853 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
10855         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
10857 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
10859         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
10860         call recog here.  Assert that INSN_CODE (insn) is non-negative.
10862 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10864         PR target/72749
10865         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
10866         fallthrough.
10867         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
10868         in the currently scheduled RTL fragment.
10870 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10872         PR rtl-optimization/78751
10873         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
10874         give up.
10876 2017-01-14  Jeff Law  <law@redhat.com>
10878         PR tree-optimization/79090
10879         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
10880         variable length stores.
10881         (compute_trims): Delete dead assignment to *trim_tail.
10882         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
10883         zero length.
10885 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
10887         PR rtl-optimization/78626
10888         PR rtl-optimization/78727
10889         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
10890         of a block, and split such blocks after everything else is finished.
10892 2017-01-14  Alan Modra  <amodra@gmail.com>
10894         PR target/72749
10895         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
10896         target legitimate_combined_insn.
10897         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
10898         (rs6000_legitimate_combined_insn): New function.
10899         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
10900         all uses.
10901         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
10902         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
10903         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
10905 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
10907         * doc/frontends.texi (G++ and GCC): Remove references to Java.
10909 2017-01-13  Jeff Law  <law@redhat.com>
10911         PR tree-optimization/33562
10912         PR tree-optimization/61912
10913         PR tree-optimization/77485
10914         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
10915         a statement.
10916         (delete_dead_assignment): Likewise.
10917         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
10918         statement to delete_dead_call and delete_dead_assignment.
10920 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
10922         PR c/78304
10923         * substring-locations.c (format_warning_va): Strengthen case 1 so
10924         that both endpoints of the substring must be within the format
10925         range for just the substring to be printed.
10927 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
10929         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
10930         * config/i386/i386.c (ix86_target_string): Add missing options
10931         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
10932         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
10933         flags_other and ix86_target_other to flags2_other.  Display unknown
10934         isa2 options.
10935         (ix86_valid_target_attribute_inner_p): Add missing options and
10936         reorder options by implied ISAs, as in ix86_target_string.
10938 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10940         * hash-table.h (hash_table::too_empty_p): New function.
10941         (hash_table::expand): Use it.
10942         (hash_table::traverse): Likewise.
10943         (hash_table::empty_slot): Use sizeof (value_type) instead of
10944         sizeof (PTR) to convert bytes to elements.  Shrink the table
10945         if the current size is excessive for the current number of
10946         elements.
10948 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10950         * ira-costs.c (record_reg_classes): Break from the inner loop
10951         early once alt_fail is known to be true.  Update outer loop
10952         handling accordingly.
10954 2017-01-13  Jeff Law  <law@redhat.com>
10956         * tree-ssa-dse.c (decrement_count): New function.
10957         (increment_start_addr, maybe_trim_memstar_call): Likewise.
10958         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
10959         when we know the partially dead statement is a mem* function.
10961         PR tree-optimization/61912
10962         PR tree-optimization/77485
10963         * tree-ssa-dse.c: Include expr.h.
10964         (maybe_trim_constructor_store): New function.
10965         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
10967         PR tree-optimization/33562
10968         PR tree-optimization/61912
10969         PR tree-optimization/77485
10970         * doc/invoke.texi: Document new dse-max-object-size param.
10971         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
10972         * tree-ssa-dse.c: Include params.h.
10973         (dse_store_status): New enum.
10974         (initialize_ao_ref_for_dse): New, partially extracted from
10975         dse_optimize_stmt.
10976         (valid_ao_ref_for_dse, normalize_ref): New.
10977         (setup_live_bytes_from_ref, compute_trims): Likewise.
10978         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
10979         (maybe_trim_partially_dead_store): Likewise.
10980         (maybe_trim_complex_store): Likewise.
10981         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
10982         Track what bytes live from the original store.  Return tri-state
10983         for dead, partially dead or live.
10984         (dse_dom_walker): Add constructor, destructor and new private members.
10985         (delete_dead_call, delete_dead_assignment): New extracted from
10986         dse_optimize_stmt.
10987         (dse_optimize_stmt): Make a member of dse_dom_walker.
10988         Use initialize_ao_ref_for_dse.
10990         PR tree-optimization/33562
10991         PR tree-optimization/61912
10992         PR tree-optimization/77485
10993         * sbitmap.h (bitmap_count_bits): Prototype.
10994         (bitmap_clear_range, bitmap_set_range): Likewise.
10995         * sbitmap.c (bitmap_clear_range): New function.
10996         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
10998 2017-01-13  Martin Liska  <mliska@suse.cz>
11000         PR ipa/79043
11001         * function.c (set_cfun): Add new argument force.
11002         * function.h (set_cfun): Likewise.
11003         * ipa-inline-transform.c (inline_call): Use the function when
11004         strict alising from is dropped for function we inline to.
11006 2017-01-13  Richard Biener  <rguenther@suse.de>
11008         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
11009         for dumping GIMPLE INTEGER_CSTs.
11011 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11013         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
11014         to 201112L since C++17.
11016 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
11018         PR sanitizer/78887
11019         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
11020         if -fsanitize=kernel-address is present.
11022 2017-01-13  Richard Biener  <rguenther@suse.de>
11024         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
11025         as _Literal ( type ) number in case usual suffixes do not
11026         preserve all information.
11028 2017-01-13  Richard Biener  <rguenther@suse.de>
11030         PR tree-optimization/77283
11031         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
11032         and ssa-iterators.h.
11033         (is_feasible_trace): Implement a cost model based on joiner
11034         PHI node uses.
11036 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11038         PR target/79004
11039         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
11040         char or short to __float128/_Float128 directly.
11042 2017-01-12  Martin Sebor  <msebor@redhat.com>
11044         to -Wformat-overflow.
11045         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
11046         (min_bytes_remaining): Same.
11047         (get_string_length): Same.
11048         (format_string): Same.
11049         (format_directive): Same.
11050         (add_bytes): Same.
11051         (pass_sprintf_length::handle_gimple_call): Same.
11053 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
11055         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
11056         info.nowrite calls with no lhs that can't throw.  Return bool
11057         whether gsi_remove has been called or not.
11058         (pass_sprintf_length::handle_gimple_call): Return bool whether
11059         try_substitute_return_value called gsi_remove.  Formatting fix.
11060         (pass_sprintf_length::execute): Don't use gsi_remove if
11061         handle_gimple_call returned true.
11063         PR bootstrap/79069
11064         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
11065         be removed due to side-effects, don't remove following barrier nor
11066         turn the successor edge into fallthru edge.
11068 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11070         PR target/79044
11071         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
11072         element-reversing loads and stores as not swappable.
11074 2017-01-12  Nathan Sidwell  <nathan@acm.org>
11075             Nicolai Stange  <nicstange@gmail.com>
11077         * combine.c (try_combine): Don't ignore result of overlap checking
11078         loop.  Combine overlap & asm check into single loop.
11080 2017-01-12  Richard Biener  <rguenther@suse.de>
11082         * tree-pretty-print.c (dump_generic_node): Provide -gimple
11083         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
11085 2017-01-12  Richard Biener  <rguenther@suse.de>
11087         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
11088         and TS_TARGET_OPTION directly derive from TS_BASE.
11089         * tree-core.h (tree_optimization_option): Derive from tree_base.
11090         (tree_target_option): Likewise.
11092 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
11094         * config/i386/i386.c (memory_address_length): Increase len
11095         only when rip_relative_addr_p returns false.
11097 2017-01-11  Julia Koval  <julia.koval@intel.com>
11099         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
11100         (OPTION_MASK_ISA_SGX_SET): New.
11101         (ix86_handle_option): Handle OPT_msgx.
11102         * config.gcc: Added sgxintrin.h.
11103         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
11104         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
11105         * config/i386/i386.c (ix86_target_string): Add -msgx.
11106         (PTA_SGX): New.
11107         (ix86_option_override_internal): Handle new options.
11108         (ix86_valid_target_attribute_inner_p): Add sgx.
11109         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
11110         * config/i386/i386.opt: Add msgx.
11111         * config/i386/sgxintrin.h: New file.
11112         * config/i386/x86intrin.h: Add sgxintrin.h.
11114 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
11116         PR c++/71537
11117         * fold-const.c (maybe_nonzero_address): Return 1 for function
11118         local objects.
11119         (tree_single_nonzero_warnv_p): Don't handle function local objects
11120         here.
11122         PR c++/72813
11123         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
11124         of c-header.
11126 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
11128         PR driver/78877
11129         * opts.c: Include "spellcheck.h"
11130         (struct string_fragment): New struct.
11131         (struct edit_distance_traits<const string_fragment &>): New
11132         struct.
11133         (get_closest_sanitizer_option): New function.
11134         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
11136 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
11138         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
11139         by 12.
11140         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
11141         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
11142         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
11143         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
11144         for initial die_offset if dwarf_split_debug_info.
11145         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
11146         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
11147         fields.
11148         (output_skeleton_debug_sections): Formatting fix.  Use
11149         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
11150         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
11152 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
11154         * config/arm/cortex-a53.md: Add bypasses for
11155         cortex_a53_r2f_cvt.
11156         (cortex_a53_r2f): Only use for transfers.
11157         (cortex_a53_f2r): Likewise.
11158         (cortex_a53_r2f_cvt): Add reservation for conversions.
11159         (cortex_a53_f2r_cvt): Likewise.
11161 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
11163         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
11164         to all inlined functions, change static to extern.
11166 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
11168         PR target/78253
11169         * config/arm/arm.c (legitimize_pic_address): Handle reference to
11170         weak symbol.
11171         (arm_assemble_integer): Likewise.
11173 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
11175         * config.gcc: Use new awk script to check CPU, FPU and architecture
11176         parameters for --with-... options.
11177         * config/arm/parsecpu.awk: New file
11178         * config/arm/arm-cpus.in: New file.
11179         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
11180         files.
11181         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
11182         files.
11183         * config/arm/t-arm: Update dependency rules.
11184         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
11185         of processing .def files.
11186         * config/arm/genopt.sh: Deleted.
11187         * config/arm/gentune.sh: Deleted.
11188         * config/arm/arm-cores.def: Deleted.
11189         * config/arm/arm-arches.def: Deleted.
11190         * config/arm/arm-fpus.def: Deleted.
11191         * config/arm/arm-tune.md: Regenerated.
11192         * config/arm/arm-tables.opt: Regenerated.
11193         * config/arm/arm-cpu.h: New generated file.
11194         * config/arm/arm-cpu-data.h: New generated file.
11195         * config/arm/arm-cpu-cdata.h: New generated file.
11197 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
11199         PR lto/79042
11200         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
11201         bit.
11202         (input_varpool_node): Unpack dynamically_initialized bit.
11204 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
11206         PR rtl-optimization/79032
11207         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
11208         the alignment of the adjusted memory reference against that of MODE,
11209         instead of the alignment of the original memory reference.
11211 2017-01-11  Martin Jambor  <mjambor@suse.cz>
11213         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
11214         test.
11215         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
11216         decorated functions.
11218 2017-01-11  Richard Biener  <rguenther@suse.de>
11220         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
11221         set range/nonnull info for PHI results.  Do not set it on
11222         stmts marked for removal.
11224 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
11226         * expr.c (store_field): In the bitfield case, fetch the return value
11227         from the registers before applying a single big-endian adjustment.
11228         Always do a final load for a BLKmode value not larger than a word.
11230 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
11232         PR c++/77949
11233         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11234         that we correctly handle column numbers greater than
11235         LINE_MAP_MAX_COLUMN_NUMBER.
11237 2017-01-10  Martin Sebor  <msebor@redhat.com>
11239         PR middle-end/78245
11240         * gimple-ssa-sprintf.c (get_destination_size): Call
11241         {init,fini}object_sizes.
11242         * tree-object-size.c (addr_object_size): Adjust.
11243         (pass_through_call): Adjust.
11244         (pass_object_sizes::execute): Adjust.
11245         * tree-object-size.h (fini_object_sizes): Declare.
11247 2017-01-10  Martin Sebor  <msebor@redhat.com>
11249         PR tree-optimization/78775
11250         * builtins.c (get_size_range): Move...
11251         * calls.c: ...to here.
11252         (alloc_max_size): Accept zero argument.
11253         (operand_signed_p): Remove.
11254         (maybe_warn_alloc_args_overflow): Call get_size_range.
11255         * calls.h (get_size_range): Declare.
11257 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
11259         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
11260         from TI's devices.csv file as of September 2016.
11261         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
11263 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
11265         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
11266         * doc/invoke.texi: Likewise.
11267         * doc/md.texi: Likewise.
11268         * doc/objc.texi: Likewise.
11270 2017-01-10  Joshua Conner  <joshconner@google.com>
11272         * config/arm/fuchsia-elf.h: New file.
11273         * config/fuchsia.h: New file.
11274         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
11275         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
11276         targets.
11277         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
11279 2016-01-10  Richard Biener  <rguenther@suse.de>
11281         PR tree-optimization/79034
11282         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
11283         Propagate out degenerate PHIs in the joiner.
11285 2017-01-10  Martin Liska  <mliska@suse.cz>
11287         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
11288         (sort_congruence_classes_by_decl_uid): Likewise.
11289         (sort_congruence_class_groups_by_decl_uid): Likewise.
11290         (sem_item_optimizer::merge_classes): Sort class, groups in these
11291         classes and members in the groups by DECL_UID of declarations.
11292         This would make merge operations stable.
11294 2017-01-10  Martin Liska  <mliska@suse.cz>
11296         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
11297         usage of m_classes_vec.
11298         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
11299         (sem_item_optimizer::get_group_by_hash): Likewise.
11300         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
11301         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
11302         (sem_item_optimizer::verify_classes): Likewise.
11303         (sem_item_optimizer::process_cong_reduction): Likewise.
11304         (sem_item_optimizer::dump_cong_classes): Likewise.
11305         (sem_item_optimizer::merge_classes): Likewise.
11306         * ipa-icf.h (congruence_class_hash): Rename from
11307         congruence_class_group_hash.  Remove declaration of m_classes_vec.
11309 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
11311         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
11312         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
11313         * config.gcc: Add avx512vpopcntdqintrin.h.
11314         * config/i386/avx512vpopcntdqintrin.h: New.
11315         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
11316         * config/i386/i386-builtin-types.def: Add new types.
11317         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
11318         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
11319         __builtin_ia32_vpopcountq_v8di_mask): New.
11320         * config/i386/i386-c.c (ix86_target_macros_internal): Define
11321         __AVX512VPOPCNTDQ__.
11322         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
11323         (PTA_AVX512VPOPCNTDQ): Define.
11324         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
11325         TARGET_AVX512VPOPCNTDQ_P): Define.
11326         * config/i386/i386.opt: Add mavx512vpopcntdq.
11327         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
11328         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
11330 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11332         PR middle-end/77484
11333         * predict.def (PRED_CALL): Set to 67.
11335 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
11337         * expr.c (store_field): In the bitfield case, if the value comes from
11338         a function call and is of an aggregate type returned in registers, do
11339         not modify the field mode; extract the value in all cases if the mode
11340         is BLKmode and the size is not larger than a word.
11342 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
11344         PR target/71017
11345         * config/i386/cpuid.h: Fix undefined behavior.
11347 2017-01-04  Jeff Law  <law@redhat.com>
11349         PR tree-optimization/79007
11350         PR tree-optimization/67955
11351         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
11352         conservative for pt.null when flag_non_call_exceptions is on.
11354 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
11356         PR translation/79019
11357         PR translation/79020
11358         * params.def (PARAM_INLINE_MIN_SPEEDUP,
11359         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
11360         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
11361         in descriptions.
11362         * config/avr/avr.opt (maccumulate-args): Likewise.
11363         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
11364         * common.opt (freport-bug): Likewise.
11365         * cif-code.def (CIF_FINAL_ERROR): Likewise.
11366         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
11367         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
11368         translatable string.
11369         * config/i386/i386.c (function_value_32): Likewise.
11370         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
11371         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
11372         Likewise.
11373         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
11374         * common/config/msp430/msp430-common.c (msp430_handle_option):
11375         Likewise.
11376         * symtab.c (symtab_node::verify_base): Likewise.
11377         * opts.c (set_debug_level): Likewise.
11378         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
11379         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11380         missing whitespace to translatable strings.
11381         * config/avr/avr.md (bswapsi2): Fix typo in comment.
11382         * config/sh/superh.h: Likewise.
11383         * config/i386/xopintrin.h: Likewise.
11384         * config/i386/znver1.md: Likewise.
11385         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
11386         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
11387         * double-int.h (struct double_int): Likewise.
11388         * double-int.c (div_and_round_double): Likewise.
11389         * wide-int.cc: Likewise.
11390         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
11391         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
11392         * cfgcleanup.c (crossjumps_occured): Renamed to ...
11393         (crossjumps_occurred): ... this.
11394         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
11395         Adjust all uses.
11397         PR tree-optimization/78899
11398         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
11399         returning bool return struct loop *, NULL for failure and the new
11400         loop on success.
11401         (versionable_outer_loop_p): Don't version outer loop if it has
11402         dont_vectorized bit set.
11403         (tree_if_conversion): When versioning outer loop, ensure
11404         tree_if_conversion is performed also on the inner loop of the
11405         non-vectorizable outer loop copy.
11406         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
11407         LOOP_VECTORIZED in inner loop of the scalar outer loop and
11408         prevent vectorization of it.
11409         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
11410         the outer loop vectorization of the non-scalar version is attempted
11411         before vectorization of the inner loop in scalar version.  If
11412         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
11413         vectorization of its inner loop.
11414         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
11415         has 2 inner loops, rename also on edges from bb whose single pred
11416         is outer_loop->header.  Fix typo in function comment.
11418 2017-01-09  Martin Sebor  <msebor@redhat.com>
11420         PR bootstrap/79033
11421         * asan.c (asan_emit_stack_protection): Increase local buffer size
11422         to avoid snprintf truncation warning.
11424 2017-01-09  Andrew Pinski  <apinski@cavium.com>
11426         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
11427         to reference thunderx2t99 for the tuning structure
11428         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
11429         Rename to ...
11430         (thunderx2t99_extra_costs): This.
11431         * config/aarch64/aarch64-tune.md: Regenerate.
11432         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
11433         (vulcan_addrcost_table): This.
11434         (vulcan_regmove_cost): Rename to ...
11435         (thunderx2t99_regmove_cost): This.
11436         (vulcan_vector_cost): Rename to ...
11437         (thunderx2t99_vector_cost): this.
11438         (vulcan_branch_cost): Rename to ...
11439         (thunderx2t99_branch_cost): This.
11440         (vulcan_tunings): Rename to ...
11441         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
11442         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
11444 2017-01-09  Martin Jambor  <mjambor@suse.cz>
11446         PR ipa/78365
11447         PR ipa/78599
11448         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
11449         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
11450         (propagate_vr_accross_jump_function): Use the above function for all
11451         value range computations for pass-through jump functions and type
11452         converasion from explicit value range values.
11453         (ipcp_propagate_stage): Do not attempt to deduce types of formal
11454         parameters from TYPE_ARG_TYPES.
11455         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
11456         (ipa_write_node_info): Stream type of the actual argument.
11457         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
11459 2017-01-09  Martin Liska  <mliska@suse.cz>
11461         PR pch/78970
11462         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
11463         (lookup_compiler): Do not show error message with have_E.
11465 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
11467         PR tree-optimization/78938
11468         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
11469         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
11470         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
11471         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
11472         fixes.
11474 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11476         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
11477         is const0_rtx.
11479 2017-01-09  Richard Biener  <rguenther@suse.de>
11481         PR tree-optimization/78997
11482         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
11483         name condition properly.
11485 2017-01-09  Richard Biener  <rguenther@suse.de>
11487         PR debug/79000
11488         * dwarf2out.c (is_cxx): New overload with context.
11489         (is_naming_typedef_decl): Use it.
11491 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
11493         * invoke.texi (Option Summary): Correct spacing in option lists
11494         and add line breaks to fix over-long lines.
11496 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
11498         PR middle-end/17660
11500         * extend.texi (Common Variable Attributes): Add xref to GCC
11501         Internals manual to explain mode attribute keywords.
11503 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
11505         PR other/16519
11506         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
11507         and Preprocessor Options.
11508         (Options for Linking): Document -pthread here....
11509         (RS/6000 and PowerPC Options): ...not here.
11510         (Solaris 2 Options): ...or here.
11511         * doc/cppopts.texi: Document -pthread.
11513 2017-01-08  Martin Sebor  <msebor@redhat.com>
11515         PR middle-end/77708
11516         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
11517         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
11518         New member functions.
11519         (format_directive): Used them.
11520         (add_bytes): Same.
11521         (pass_sprintf_length::handle_gimple_call): Same.
11522         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
11523         to avoid truncation for any argument.
11524         (extract_affine_mul): Same.
11525         * tree.c (get_file_function_name): Same.
11527 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11529         PR middle-end/77484
11530         * predict.def (PRED_INDIR_CALL): Set to 86.
11532 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11534         PR preprocessor/54124
11535         * doc/cppopts.texi: Reformat -d subtable to list the full name
11536         of the options.  Add cross-reference to the docs for the general
11537         compiler -d options.
11538         * doc/invoke.texi (Developer Options): Add cross-reference to the
11539         preprocessor-specific -d option documentation.
11541 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11543         PR preprocessor/13498
11544         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
11545         redudant material, and reflect new command-line options.
11546         (System Headers): Likewise.
11548 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11550         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
11551         -isystem, and -idirafter.  Copy-edit.
11552         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
11553         default for -ftrack-macro-expansion.  Delete obsolete and
11554         badly-formatted implementation details about -fdebug-cpp output.
11555         * doc/cppwarnopts.texi: Copy-edit.
11557 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
11559         PR c++/72803
11560         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11561         that the transition from a max line width >= 1<<10 to narrower
11562         lines works correctly.
11564 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
11566         * doc/options.texi (PerFunction): New.
11567         * opt-functions.awk (switch_flags): Map both Optimization and
11568         PerFunction to CL_OPTIMIZATION.
11569         * opth-gen.awk: Test for PerFunction flag along with
11570         Optimization.
11571         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
11572         it only when the latter is present.  Skip those that don't in
11573         the hash function generator.
11574         * common.opt (fvar-tracking): Mark as PerFunction instead of
11575         Optimization.
11576         (fvar-tracking-assignments): Likewise.
11577         (fvar-tracking-assignments-toggle): Likewise.
11578         (fvar-tracking-uninit): Likewise.
11580 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
11582         PR translation/79018
11583         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
11584         the and store.
11586 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
11588         PR target/57583
11589         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
11590         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
11591         TARGET_LONG_JUMP_TABLE_OFFSETS.
11592         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11593         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11594         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
11595         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
11596         * config/m68k/m68k.md (tablejump expander): Likewise.
11597         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
11598         TARGET_LONG_JUMP_TABLE_OFFSETS.
11599         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
11600         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
11602 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11603             David Holsgrove <david.holsgrove@xilinx.com>
11605         * common/config/microblaze/microblaze-common.c
11606         (TARGET_EXCEPT_UNWIND_INFO): Remove.
11607         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
11608         New prototype.
11609         * config/microblaze/microblaze.c (microblaze_must_save_register)
11610         (microblaze_expand_epilogue, microblaze_return_addr): Handle
11611         calls_eh_return.
11612         (microblaze_eh_return): New function.
11613         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
11614         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
11615         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
11616         * config/microblaze/microblaze.md (eh_return): New pattern.
11618 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
11620         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
11621         GCC_DIAGNOSTIC_STRINGIFY): Define.
11623         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
11625 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11627         * config/arm/arm.md (<mcrr>): New.
11628         (<mrrc>): New.
11629         * config/arm/arm.c (arm_arch5te): New.
11630         (arm_option_override): Set arm_arch5te.
11631         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
11632         and mrrc2.
11633         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
11634         (arm_mcrr_qualifiers): ... this. New.
11635         (MRRC_QUALIFIERS): Define to...
11636         (arm_mrrc_qualifiers): ... this. New.
11637         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
11638         __arm_mrrc2): New.
11639         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
11640         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
11641         (MRRCI, mrrc, MRRC): New.
11642         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
11643         VUNSPEC_MRRC2): New.
11645 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11647         * config/arm/arm.md (<mcr>): New.
11648         (<mrc>): New.
11649         * config/arm/arm.c (arm_coproc_builtin_available): Add
11650         support for mcr, mrc, mcr2 and mrc2.
11651         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
11652         (arm_mcr_qualifiers): ... this. New.
11653         (MRC_QUALIFIERS): Define to ...
11654         (arm_mrc_qualifiers): ... this. New.
11655         (MCR_QUALIFIERS): Define to ...
11656         (arm_mcr_qualifiers): ... this. New.
11657         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
11658         __arm_mrc2): New.
11659         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
11660         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
11661         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
11662         VUNSPEC_MRC2): New.
11664 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11666         * config/arm/arm.md (*ldc): New.
11667         (*stc): New.
11668         (<ldc>): New.
11669         (<stc>): New.
11670         * config/arm/arm.c (arm_coproc_builtin_available): Add
11671         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
11672         (arm_coproc_ldc_stc_legitimate_address): New.
11673         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
11674         'qualifier_const_pointer'.
11675         (LDC_QUALIFIERS): Define to...
11676         (arm_ldc_qualifiers): ... this. New.
11677         (STC_QUALIFIERS): Define to...
11678         (arm_stc_qualifiers): ... this. New.
11679         * config/arm/arm-protos.h
11680         (arm_coproc_ldc_stc_legitimate_address): New.
11681         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
11682         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
11683         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
11684         stc2, stcl, stc2l): New.
11685         * config/arm/constraints.md (Uz): New.
11686         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
11687         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
11688         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
11689         VUNSPEC_STC2L): New.
11691 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11693         * config/arm/arm.md (<cdp>): New.
11694         * config/arm/arm.c (neon_const_bounds): Rename this ...
11695         (arm_const_bounds): ... this.
11696         (arm_coproc_builtin_available): New.
11697         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
11698         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
11699         (CDP_QUALIFIERS): Define to...
11700         (arm_cdp_qualifiers): ... this. New.
11701         (void_UP): Define.
11702         (arm_expand_builtin_args): Add case for 6 arguments.
11703         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
11704         (arm_const_bounds): ... this.
11705         (arm_coproc_builtin_available): New.
11706         * config/arm/arm_acle.h (__arm_cdp): New.
11707         (__arm_cdp2): New.
11708         * config/arm/arm_acle_builtins.def (cdp): New.
11709         (cdp2): New.
11710         * config/arm/iterators.md (CDPI,CDP,cdp): New.
11711         * config/arm/neon.md: Rename all 'neon_const_bounds' to
11712         'arm_const_bounds'.
11713         * config/arm/types.md (coproc): New.
11714         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
11715         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
11716         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
11717         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
11719 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11721         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
11722         (UBINOP_QUALIFIERS): New.
11723         (si_UP): Define.
11724         (acle_builtin_data): New. Change comment.
11725         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
11726         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
11727         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
11728         arm_acle_builtins.def.
11729         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
11730         (arm_init_acle_builtins): New.
11731         (CRC32_BUILTIN): Remove.
11732         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
11733         crc32cb, crc32ch and crc32cw.
11734         (arm_init_crc32_builtins): Remove.
11735         (arm_init_builtins): Use arm_init_acle_builtins rather
11736         than arm_init_crc32_builtins.
11737         (arm_expand_acle_builtin): New.
11738         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
11739         * config/arm/arm_acle_builtins.def: New.
11741 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11743         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
11744         (arm_builtin_datum): ... this.
11745         (arm_init_neon_builtin): Rename to ...
11746         (arm_init_builtin): ... this. Add a new parameters PREFIX
11747         and USE_SIG_IN_NAME.
11748         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
11749         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
11750         'arm_builtin_datum'.
11751         (arm_init_vfp_builtins): Likewise.
11752         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
11753         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
11754         (arm_expand_neon_args): Rename to ...
11755         (arm_expand_builtin_args): ... this. Rename builtin_arg
11756         enum values and differentiate between ARG_BUILTIN_MEMORY
11757         and ARG_BUILTIN_NEON_MEMORY.
11758         (arm_expand_neon_builtin_1): Rename to ...
11759         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
11760         values, arm_expand_builtin_args and add bool parameter NEON.
11761         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
11762         (arm_expand_vfp_builtin): Likewise.
11763         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
11765 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11767         PR middle-end/77484
11768         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
11769         * predict.c (tree_estimate_probability_bb): Reverse direction of
11770         polymorphic call predictor.
11772 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
11774         * passes.c (execute_one_pass): Split out pass-skipping logic into...
11775         (determine_pass_name_match): ...this new function and...
11776         (should_skip_pass_p): ...this new function.
11778 2017-01-06  Nathan Sidwell  <nathan@acm.org>
11780         * ipa-visibility.c (function_and_variable_visibility): Reformat
11781         comments and long lines.  Remove extrneous if.
11782         * symtab.c (symtab_node::make_decl_local): Fix code format.
11783         (symtab_node::set_section_for_node): Fix comment typo.
11785 2017-01-06  Martin Liska  <mliska@suse.cz>
11787         PR bootstrap/79003
11788         * lra-constraints.c: Rename invariant to lra_invariant.
11789         * predict.c (set_even_probabilities): Initialize e to NULL.
11791 2017-01-05  Martin Sebor  <msebor@redhat.com>
11793         PR tree-optimization/78910
11794         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
11795         (format_integer): Correct off-by-one error in the handling
11796         of precision with negative numbers in signed conversions..
11798 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11800         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
11802 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11804         PR tree-optimization/71016
11805         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
11806         factor_out_conditional_conversion.  Formatting fix.
11807         (factor_out_conditional_conversion): Add cond_stmt argument.
11808         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
11809         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
11810         Formatting fix.
11812 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
11814         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
11815         read-rtl-function.o, and selftest-rtl.o.
11816         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
11817         (selftest::aarch64_test_loading_full_dump): New function.
11818         (selftest::aarch64_run_selftests): New function.
11819         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
11820         selftest::aarch64_run_selftests.
11821         * config/i386/i386.c
11822         (selftest::ix86_test_loading_dump_fragment_1): New function.
11823         (selftest::ix86_test_loading_call_insn): New function.
11824         (selftest::ix86_test_loading_full_dump): New function.
11825         (selftest::ix86_test_loading_unspec): New function.
11826         (selftest::ix86_run_selftests): Call the new functions.
11827         * emit-rtl.c (maybe_set_max_label_num): New function.
11828         * emit-rtl.h (maybe_set_max_label_num): New decl.
11829         * function.c (instantiate_decls): Guard call to
11830         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
11831         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
11832         "static".
11833         * gensupport.c (gen_reader::gen_reader): Pass "false"
11834         for new "compact" param of rtx_reader.
11835         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
11836         rather than an empty string for NULL strings.
11837         * read-md.c: Potentially include config.h rather than bconfig.h.
11838         Wrap include of errors.h with #ifdef GENERATOR_FILE.
11839         (have_error): New global, copied from errors.c.
11840         (md_reader::read_name): Rename to...
11841         (md_reader::read_name_1): ...this, adding "out_loc" param,
11842         and converting "missing name or number" to returning false, rather
11843         than failing.
11844         (md_reader::read_name): Reimplement in terms of read_name_1.
11845         (md_reader::read_name_or_nil): New function.
11846         (md_reader::read_string): Handle "(nil)" by returning NULL.
11847         (md_reader::md_reader): Add new param "compact".
11848         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
11849         (md_reader::read_file): New method.
11850         * read-md.h (md_reader::md_reader): Add new param "compact".
11851         (md_reader::read_file): New method.
11852         (md_reader::is_compact): New accessor.
11853         (md_reader::read_name): Convert return type from void to file_location.
11854         (md_reader::read_name_or_nil): New decl.
11855         (md_reader::read_name_1): New decl.
11856         (md_reader::m_compact): New field.
11857         (noop_reader::noop_reader): Pass "false" for new "compact" param
11858         of rtx_reader.
11859         (rtx_reader::rtx_reader): Add new "compact" param.
11860         (rtx_reader::read_rtx_operand): Make virtual and convert return
11861         type from void to rtx.
11862         (rtx_reader::read_until): New decl.
11863         (rtx_reader::handle_any_trailing_information): New virtual function.
11864         (rtx_reader::postprocess): New virtual function.
11865         (rtx_reader::finalize_string): New virtual function.
11866         (rtx_reader::m_in_call_function_usage): New field.
11867         (rtx_reader::m_reuse_rtx_by_id): New field.
11868         * read-rtl-function.c: New file.
11869         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
11870         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
11871         (selftest::verify_three_block_rtl_cfg): New decl.
11872         * read-rtl-function.h: New file.
11873         * read-rtl.c: Potentially include config.h rather than bconfig.h.
11874         For host, include function.h, memmodel.h, and emit-rtl.h.
11875         (one_time_initialization): New function.
11876         (struct compact_insn_name): New struct.
11877         (compact_insn_names): New array.
11878         (find_code): Handle insn codes in compact dumps.
11879         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
11880         (bind_subst_iter_and_attr): Likewise.
11881         (add_condition_to_string): Likewise.
11882         (add_condition_to_rtx): Likewise.
11883         (apply_attribute_uses): Likewise.
11884         (add_current_iterators): Likewise.
11885         (apply_iterators): Likewise.
11886         (initialize_iterators): Guard usage of apply_subst_iterator with
11887         #ifdef GENERATOR_FILE.
11888         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
11889         (md_reader::read_mapping): Likewise.
11890         (add_define_attr_for_define_subst): Likewise.
11891         (add_define_subst_attr): Likewise.
11892         (read_subst_mapping): Likewise.
11893         (check_code_iterator): Likewise.
11894         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
11895         logic to...
11896         (one_time_initialization): New function.
11897         (rtx_reader::read_until): New method.
11898         (read_flags): New function.
11899         (parse_reg_note_name): New function.
11900         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
11901         Handle reuse_rtx ids.
11902         Wrap iterator lookup within #ifdef GENERATOR_FILE.
11903         Add parsing support for RTL dumps, mirroring the special-cases in
11904         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
11905         values, and calling handle_any_trailing_information.
11906         (rtx_reader::read_rtx_operand): Convert return type from void
11907         to rtx, returning return_rtx.  Handle case 'e'.  Call
11908         finalize_string on XSTR and XTMPL fields.
11909         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
11910          "(nil)" values were omitted.  Call the postprocess vfunc on the
11911         return_rtx.
11912         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
11913         class ctor.  Initialize m_in_call_function_usage.  Call
11914         one_time_initialization.
11915         * rtl-tests.c (selftest::test_uncond_jump): Call
11916         set_new_first_and_last_insn.
11917         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
11918         * selftest-rtl.c: New file.
11919         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
11920         (selftest::get_insn_by_uid): New decl.
11921         * selftest-run-tests.c (selftest::run_tests): Call
11922         read_rtl_function_c_tests.
11923         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
11924         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
11925         dumps.
11927 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
11929         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
11930         operands in a special way.  Assert that pos+len <= mode precision.
11932 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11934         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
11935         3 argument Alias with unlimited for the negative form.
11936         (fno-vect-cost-model): Removed.
11938 2017-01-05  Martin Liska  <mliska@suse.cz>
11940         * hsa-gen.c (gen_hsa_divmod): New function.
11941         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
11943 2017-01-05  Martin Liska  <mliska@suse.cz>
11945         PR pch/78970
11946         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
11947         header.
11949 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11951         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
11952         small constant length operands.
11954 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11956         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
11957         between loop iterations.
11959 2017-01-05  Martin Liska  <mliska@suse.cz>
11961         PR sanitizer/78815
11962         * gimplify.c (gimplify_decl_expr): Compare to
11963         asan_poisoned_variables instread of checking flags.
11964         (gimplify_target_expr): Likewise.
11965         (gimplify_expr): Likewise.
11966         (gimplify_function_tree): Conditionally initialize
11967         asan_poisoned_variables.
11969 2017-01-04  Jeff Law  <law@redhat.com>
11971         PR tree-optimizatin/78812
11972         * rtl.h (contains_mem_rtx_p): Prototype.
11973         * ifcvt.c (containts_mem_rtx_p): Move from here to...
11974         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
11975         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
11976         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
11977         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
11979 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11981         * input.c (assert_char_at_range): Default-initialize actual_range.
11983 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11985         * df-scan.c (df_ref_create_structure): Make regno unsigned,
11986         to match the caller.
11988 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11990         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
11991         insns after final jump in test to emit dummy move.
11993 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11995         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
11996         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
11998 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12000         * multiple_target.c (create_dispatcher_calls): Init e_next.
12001         * tree-ssa-loop-split.c (split_loop): Init border.
12002         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
12003         scalar_type.
12005 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12007         PR target/71977
12008         PR target/70568
12009         PR target/78823
12010         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
12011         (altivec_register_operand): Do not return true if the operand
12012         contains a SUBREG mixing SImode and SFmode.
12013         (vsx_register_operand): Likewise.
12014         (vsx_reg_sfsubreg_ok): New predicate.
12015         (vfloat_operand): Do not return true if the operand contains a
12016         SUBREG mixing SImode and SFmode.
12017         (vint_operand): Likewise.
12018         (vlogical_operand): Likewise.
12019         (gpc_reg_operand): Likewise.
12020         (int_reg_operand): Likewise.
12021         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
12022         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
12023         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
12024         SImode and SFmode.
12025         (rs6000_emit_move_si_sf_subreg): New helper function.
12026         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
12027         fixup SUBREGs involving SImode and SFmode.
12028         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
12029         numbers for the new peephole2 optimization.
12030         (peephole2 for SFmode unions): New peephole2 to optimize cases in
12031         the GLIBC math library that do AND/IOR/XOR operations on single
12032         precision floating point.
12033         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
12034         target macros to say whether we need to avoid SUBREGs mixing
12035         SImode and SFmode.
12036         (TARGET_ALLOW_SF_SUBREG): Likewise.
12037         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
12038         (UNSPEC_SI_FROM_SF): Likewise.
12039         (iorxor): Change spacing.
12040         (and_ior_xor): New iterator for AND, IOR, and XOR.
12041         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
12042         (movdi_from_sf_zero_ext): Likewise.
12043         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
12044         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
12045         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
12046         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
12047         (fms<mode>4): Likewise.
12048         (fnma<mode>4): Likewise.
12049         (fnms<mode>4): Likewise.
12050         (nfma<mode>4): Likewise.
12051         (nfms<mode>4): Likewise.
12053 2017-01-04  Marek Polacek  <polacek@redhat.com>
12055         PR c++/64767
12056         * doc/invoke.texi: Document -Wpointer-compare.
12058 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12060         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
12061         RejectNegative.
12063         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
12064         descriptions for -gdwarf-5 and emit them as uleb128 instead of
12065         2-byte data.
12067 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12069         PR target/78056
12070         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
12071         documentation of the powerpc_popcntb_ok attribute.
12072         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12073         code to issue warning messages if a requested CPU configuration is
12074         not supported by the binary (assembler and loader) toolchain.
12075         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
12076         made to define a built-in function that has been disabled.
12077         (paired_init_builtins): Add assertion to prevent ICE if attempt is
12078         made to define a built-in function that has been disabled.
12079         (altivec_init_builtins): Add comment explaining why definition
12080         of the DST built-in functions is not preceded by an assertion
12081         check.  Add assertions to prevent ICE if attempts are made to
12082         define an altivec predicate or an abs* built-in function that has
12083         been disabled.
12084         (htm_init_builtins): Add comment explaining why definition of the
12085         htm built-in functions is not preceded by an assertion check.
12087 2017-01-04  Jeff Law  <law@redhat.com>
12089         PR tree-optimizatin/67955
12090         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
12091         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
12092         the points-to solution does not include pt_null.  Use DECL_PT_UID
12093         unconditionally.
12095 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
12097         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
12098         Use gen_int_mode instead of gen_lopwart for const_int operands.
12100 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12102         PR tree-optimization/71563
12103         * match.pd: Simplify X << Y into X if Y is known to be 0 or
12104         out of range value - has low bits known to be zero.
12106 2017-01-04  Alan Modra  <amodra@gmail.com>
12108         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
12109         * configure: Regenerate.
12110         * config.in: Regenerate.
12112 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12114         PR bootstrap/77569
12115         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
12116         a substring of the message, but strcmp with the whole message.  Ifdef
12117         ENABLE_NLS, translate the message first using dgettext.
12119 2017-01-03  Jeff Law  <law@redhat.com>
12121         PR tree-optimizatin/78856
12122         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
12123         (mark_threaded_blocks): Remove code to truncate thread paths that
12124         cross multiple loop headers.  Instead invalidate the cached loop
12125         iteration information and handle case of a thread path walking
12126         into an irreducible region.
12128 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12130         PR target/78900
12131         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
12132         assertions.  Add support for doing the signbit if the IEEE 128-bit
12133         floating point value is in a GPR.
12134         * config/rs6000/rs6000.md (Fsignbit): Delete.
12135         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
12136         Update the length attribute if the value is in a GPR.
12137         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
12138         the sign or zero extension instruction, since the value is always 0/1.
12139         (signbit<mode>2_dm2): Delete using <Fsignbit>.
12141         PR target/78953
12142         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
12143         extracting SImode to a GPR register so that we can generate a
12144         store, limit the vector to be in a traditional Altivec register
12145         for the vextuwrx instruction.
12147 2017-01-03  Ian Lance Taylor  <iant@google.com>
12149         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
12151 2017-01-03  Martin Sebor  <msebor@redhat.com>
12153         PR tree-optimization/78696
12154         * gimple-ssa-sprintf.c (format_floating): Correct handling of
12155         precision.  Use MPFR for %f for greater fidelity.  Correct handling
12156         of %g.
12157         (pass_sprintf_length::compute_format_length): Set width and precision
12158         specified by asrerisk to void_node for vararg functions.
12159         (try_substitute_return_value): Adjust dump output.
12161 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
12163         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
12165 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12167         * doc/invoke.texi (SPARC options): Document -mlra as the default.
12168         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
12169         -mlra/-mno-lra was passed to the compiler.
12171 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
12173         PR rtl-optimization/65618
12174         * emit-rtl.c (try_split): Move initialization of "before" and
12175         "after" to just before the call to emit_insn_after_setloc.
12177 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
12179         * doc/md.texi (Standard Names): Remove reference to Java frontend.
12181 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
12183         * dwarf2out.c (gen_enumeration_type_die): When
12184         -gno-strict-dwarf, add a DW_AT_encoding attribute.
12186 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
12188         PR tree-optimization/78965
12189         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12190         Change first argument from const call_info & to call_info &.  For %n
12191         set info.nowrite to false.
12193         PR middle-end/78901
12194         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
12195         possibly throwing calls.
12197         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
12198         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
12199         and fns handling, rather than in a separate case SSA_NAME.
12201 2017-01-02  Jeff Law  <law@redhat.com>
12203         * config/darwin-driver.c (darwin_driver_init): Const-correctness
12204         fixes for first_period and second_period variables.
12206 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
12208         PR target/78967
12209         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
12210         (*insvqi_1): New insn pattern.
12211         (*insvqi_1_mem_rex64): Ditto.
12212         (*insvqi_2): Ditto.
12213         (*insvqi_3): Rename from *insvqi.
12215         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
12217 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12219         * doc/cfg.texi (Edges): Remove reference to Java.
12220         (Maintaining the CFG): Ditto.
12222 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12224         PR middle-end/77674
12225         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
12226         transparent aliases.
12228 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12230         PR middle-end/77484
12231         * predict.def (PRED_CALL): Update hitrate.
12232         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
12233         * predict.c (tree_estimate_probability_bb): Split CALL predictor
12234         into direct/indirect/polymorphic variants.
12236 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12238         Update copyright years.
12240         * gcc.c (process_command): Update copyright notice dates.
12241         * gcov-dump.c (print_version): Ditto.
12242         * gcov.c (print_version): Ditto.
12243         * gcov-tool.c (print_version): Ditto.
12244         * gengtype.c (create_file): Ditto.
12245         * doc/cpp.texi: Bump @copying's copyright year.
12246         * doc/cppinternals.texi: Ditto.
12247         * doc/gcc.texi: Ditto.
12248         * doc/gccint.texi: Ditto.
12249         * doc/gcov.texi: Ditto.
12250         * doc/install.texi: Ditto.
12251         * doc/invoke.texi: Ditto.
12253 Copyright (C) 2017 Free Software Foundation, Inc.
12255 Copying and distribution of this file, with or without modification,
12256 are permitted in any medium without royalty provided the copyright
12257 notice and this notice are preserved.