* ipa-split.c (split_function): Initialize return bb profile.
[official-gcc.git] / gcc / ChangeLog
blob8a5960f7efbc94e00e7409cdea33a77a3c1e2cba
1 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
3         * ipa-split.c (split_function): Initialize return bb profile.
5 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
7         * profile.c (compute_branch_probabilities): Also initialize
8         EXIT_BLOCK profile.
10 2017-06-06  Richard Biener  <rguenther@suse.de>
12         PR tree-optimization/80928
13         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
14         (vect_analyze_loop_operations): Properly guard analysis for
15         pure SLP case.
16         (vect_transform_loop): Likewise.
17         (vect_analyze_loop_2): Also reset SLP type on PHIs.
18         (vect_model_induction_cost): Do not cost for pure SLP.
19         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
20         of induction in inner loop vectorization.
21         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
22         (vect_get_and_check_slp_defs): Handle vect_induction_def.
23         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
24         recursion.
25         (vect_analyze_slp_cost_1): Cost induction.
26         (vect_detect_hybrid_slp_stmts): Handle PHIs.
27         (vect_get_slp_vect_defs): Likewise.
28         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
29         (vect_transform_stmt): Handle SLP reductions.
30         * tree-vectorizer.h (vectorizable_induction): Adjust.
32 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
34         * config/rs6000/rs6000.c (make_resolver_func): Update
35         init_lowered_empty_function call.
37 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39         * doc/invoke.texi: Document the -fprofile-abs-path option.
40         * common.opt (fprofile-abs-path): New option.
41         * gcov-io.h (gcov_write_filename): Declare.
42         * gcov-io.c (gcov_write_filename): New function.
43         * coverage.c (coverage_begin_function): Use gcov_write_filename.
44         * profile.c (output_location): Likewise.
46 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
48         * shring-wrap.c: Revert accidental commit.
50 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
52         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
54 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
56         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
57         new edge.
58         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
59         profile in callgraph edge.
60         * profile-count.h (apply_probability): If THIS is 0, then result is 0
61         (apply_scale): Likewise.
62         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
63         Also scale profile when inlining function with zero profile.
64         (initialize_cfun): Update exit block profile even when it is zero.
65         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
66         when profile is read.
68 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
70         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
71         (CLONE_*): New constants to define the processors we can generate
72         code for with the target_clone attribute.
73         (rs6000_clone_map): New array to identify which clone processors
74         the current program is running on.
75         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
76         target_clone attribute.
77         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
78         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
79         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
80         (cpu_expand_builtin): Add support for target_clone attribute.
81         (rs6000_valid_attribute_p): Allow "default" attribute.
82         (get_decl_name): New debug function to simplify printing the
83         current function name in debugging statements.
84         (rs6000_clone_priority): New functions to support the target_clone
85         attribute, and be able to generate code to switch between ISA 2.05
86         through ISA 3.0 (power6 through power9).
87         (rs6000_compare_version_priority): Likewise.
88         (rs6000_get_function_versions_dispatcher): Likewise.
89         (make_resolver_func): Likewise.
90         (add_condition_to_bb): Likewise.
91         (dispatch_function_versions): Likewise.
92         (rs6000_generate_version_dispatcher_body): Likewise.
93         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
94         (fusion_gpr_load_p): Fix a spacing issue.
95         * doc/extend.texi (Common Function Attributes): Document that the
96         PowerPC supports the target_clone attribute.
98 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
100         * config/arm/arm.h: explain F symbol found in description of ARM
101         register allocation in its legend.
103 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
105         * config/mips/frame-header-opt.c: Include profile-count.h.
106         * config/riscv/riscv.c: Include profile-count.h
108 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
110         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
111         update profile.
112         (sm_set_flag_if_changed): Add bbs field.
113         (execute_sm_if_changed_flag_set): Pass BBS.
114         (execute_sm): Update.
116 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
118         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
119         New pattern.
121 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
123         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
124         (peephole2): New peephole2 to emit the above.
125         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
127 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
129         * config/aarch64/aarch64.c (define_peephole2 above
130         *sub_<shift>_<mode>): New peephole.
132 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
134         * config/i386/i386.c (make_resolver_func): Update.
135         * Makefile.in: Add profile-count.h and profile-count.o
136         * auto-profile.c (afdo_indirect_call): Update to new API.
137         (afdo_set_bb_count): Update.
138         (afdo_propagate_edge): Update.
139         (afdo_propagate_circuit): Update.
140         (afdo_calculate_branch_prob): Update.
141         (afdo_annotate_cfg): Update.
142         * basic-block.h: Include profile-count.h
143         (struct edge_def): Turn count to profile_count.
144         (struct basic_block_def): Likewie.
145         (REG_BR_PROB_BASE): Move to profile-count.h
146         (RDIV): Move to profile-count.h
147         * bb-reorder.c (max_entry_count): Turn to profile_count.
148         (find_traces): Update.
149         (rotate_loop):Update.
150         (connect_traces):Update.
151         (sanitize_hot_paths):Update.
152         * bt-load.c (migrate_btr_defs): Update.
153         * cfg.c (RDIV): Remove.
154         (init_flow): Use alloc_block.
155         (alloc_block): Uninitialize count.
156         (unchecked_make_edge): Uninitialize count.
157         (check_bb_profile): Update.
158         (dump_edge_info): Update.
159         (dump_bb_info): Update.
160         (update_bb_profile_for_threading): Update.
161         (scale_bbs_frequencies_int): Update.
162         (scale_bbs_frequencies_gcov_type): Update.
163         (scale_bbs_frequencies_profile_count): New.
164         * cfg.h (update_bb_profile_for_threading): Update.
165         (scale_bbs_frequencies_profile_count): Declare.
166         * cfgbuild.c (compute_outgoing_frequencies): Update.
167         (find_many_sub_basic_blocks): Update.
168         * cfgcleanup.c (try_forward_edges): Update.
169         (try_crossjump_to_edge): Update.
170         * cfgexpand.c (expand_gimple_tailcall): Update.
171         (construct_exit_block): Update.
172         * cfghooks.c (verify_flow_info): Update.
173         (dump_bb_for_graph): Update.
174         (split_edge): Update.
175         (make_forwarder_block): Update.
176         (duplicate_block): Update.
177         (account_profile_record): Update.
178         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
179         (get_estimated_loop_iterations): Update.
180         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
181         (single_likely_exit): Update.
182         * cfgloopmanip.c (scale_loop_profile): Update.
183         (loopify): Update.
184         (set_zero_probability): Update.
185         (lv_adjust_loop_entry_edge): Update.
186         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
187         (purge_dead_edges): Update.
188         (rtl_account_profile_record): Update.
189         * cgraph.c (cgraph_node::create): Uninitialize count.
190         (symbol_table::create_edge): Uninitialize count.
191         (cgraph_update_edges_for_call_stmt_node): Update.
192         (cgraph_edge::dump_edge_flags): Update.
193         (cgraph_node::dump): Update.
194         (cgraph_edge::maybe_hot_p): Update.
195         * cgraph.h: Include profile-count.h
196         (create_clone), create_edge, create_indirect_edge): Update.
197         (cgraph_node): Turn count to profile_count.
198         (cgraph_edge0: Likewise.
199         (make_speculative, clone): Update.
200         (create_edge): Update.
201         (init_lowered_empty_function): Update.
202         * cgraphclones.c (cgraph_edge::clone): Update.
203         (duplicate_thunk_for_node): Update.
204         (cgraph_node::create_clone): Update.
205         * cgraphunit.c (cgraph_node::analyze): Update.
206         (cgraph_node::expand_thunk): Update.
207         * final.c (dump_basic_block_info): Update.
208         * gimple-streamer-in.c (input_bb): Update.
209         * gimple-streamer-out.c (output_bb): Update.
210         * graphite.c (print_global_statistics): Update.
211         (print_graphite_scop_statistics): Update.
212         * hsa-brig.c: Include basic-block.h.
213         * hsa-dump.c: Include basic-block.h.
214         * hsa-gen.c (T sum_slice): Update.
215         (convert_switch_statements):Update.
216         * hsa-regalloc.c: Include basic-block.h.
217         * ipa-chkp.c (chkp_produce_thunks): Update.
218         * ipa-cp.c (struct caller_statistics): Update.
219         (init_caller_stats): Update.
220         (gather_caller_stats): Update.
221         (ipcp_cloning_candidate_p): Update.
222         (good_cloning_opportunity_p): Update.
223         (get_info_about_necessary_edges): Update.
224         (dump_profile_updates): Update.
225         (update_profiling_info): Update.
226         (update_specialized_profile): Update.
227         (perhaps_add_new_callers): Update.
228         (decide_about_value): Update.
229         (ipa_cp_c_finalize): Update.
230         * ipa-devirt.c (struct odr_type_warn_count): Update.
231         (struct decl_warn_count): Update.
232         (struct final_warning_record): Update.
233         (possible_polymorphic_call_targets): Update.
234         (ipa_devirt): Update.
235         * ipa-fnsummary.c (redirect_to_unreachable): Update.
236         * ipa-icf.c (sem_function::merge): Update.
237         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
238         * ipa-inline.c (compute_uninlined_call_time): Update.
239         (compute_inlined_call_time): Update.
240         (want_inline_small_function_p): Update.
241         (want_inline_self_recursive_call_p): Update.
242         (edge_badness): Update.
243         (lookup_recursive_calls): Update.
244         (recursive_inlining): Update.
245         (inline_small_functions): Update.
246         (dump_overall_stats): Update.
247         (dump_inline_stats): Update.
248         * ipa-profile.c (ipa_profile_generate_summary): Update.
249         (ipa_propagate_frequency): Update.
250         (ipa_profile): Update.
251         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
252         * ipa-utils.c (ipa_merge_profiles): Update.
253         * loop-doloop.c (doloop_modify): Update.
254         * loop-unroll.c (report_unroll): Update.
255         (unroll_loop_runtime_iterations): Update.
256         * lto-cgraph.c (lto_output_edge): Update.
257         (lto_output_node): Update.
258         (input_node): Update.
259         (input_edge): Update.
260         (merge_profile_summaries): Update.
261         * lto-streamer-in.c (input_cfg): Update.
262         * lto-streamer-out.c (output_cfg): Update.
263         * mcf.c (create_fixup_graph): Update.
264         (adjust_cfg_counts): Update.
265         (sum_edge_counts): Update.
266         * modulo-sched.c (sms_schedule): Update.
267         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
268         * predict.c (maybe_hot_count_p): Update.
269         (probably_never_executed): Update.
270         (dump_prediction): Update.
271         (combine_predictions_for_bb): Update.
272         (propagate_freq): Update.
273         (handle_missing_profiles): Update.
274         (counts_to_freqs): Update.
275         (rebuild_frequencies): Update.
276         (force_edge_cold): Update.
277         * predict.h: Include profile-count.h
278         (maybe_hot_count_p, counts_to_freqs): UPdate.
279         * print-rtl-function.c: Do not include cfg.h
280         * print-rtl.c: Include basic-block.h
281         * profile-count.c: New file.
282         * profile-count.h: New file.
283         * profile.c (is_edge_inconsistent): Update.
284         (correct_negative_edge_counts): Update.
285         (is_inconsistent): Update.
286         (set_bb_counts): Update.
287         (read_profile_edge_counts): Update.
288         (compute_frequency_overlap): Update.
289         (compute_branch_probabilities): Update; Initialize and deinitialize
290         gcov_count tables.
291         (branch_prob): Update.
292         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
293         (edge_gcov_count): New.
294         (bb_gcov_count): New.
295         * shrink-wrap.c (try_shrink_wrapping): Update.
296         * tracer.c (better_p): Update.
297         * trans-mem.c (expand_transaction): Update.
298         (ipa_tm_insert_irr_call): Update.
299         (ipa_tm_insert_gettmclone_call): Update.
300         * tree-call-cdce.c: Update.
301         * tree-cfg.c (gimple_duplicate_sese_region): Update.
302         (gimple_duplicate_sese_tail): Update.
303         (gimple_account_profile_record): Update.
304         (execute_fixup_cfg): Update.
305         * tree-inline.c (copy_bb): Update.
306         (copy_edges_for_bb): Update.
307         (initialize_cfun): Update.
308         (freqs_to_counts): Update.
309         (copy_cfg_body): Update.
310         (expand_call_inline): Update.
311         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
312         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
313         (try_unroll_loop_completely): Update.
314         (try_peel_loop): Update.
315         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
316         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
317         * tree-ssa-loop-split.c (connect_loops): Update.
318         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
319         * tree-ssa-reassoc.c (branch_fixup): Update.
320         * tree-ssa-tail-merge.c (replace_block_by): Update.
321         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
322         (compute_path_counts): Update.
323         (update_profile): Update.
324         (recompute_probabilities): Update.
325         (update_joiner_offpath_counts): Update.
326         (estimated_freqs_path): Update.
327         (freqs_to_counts_path): Update.
328         (clear_counts_path): Update.
329         (ssa_fix_duplicate_block_edges): Update.
330         (duplicate_thread_path): Update.
331         * tree-switch-conversion.c (case_bit_test_cmp): Update.
332         (struct switch_conv_info): Update.
333         * tree-tailcall.c (decrease_profile): Update.
334         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
335         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
336         * value-prof.c (check_counter): Update.
337         (gimple_divmod_fixed_value): Update.
338         (gimple_mod_pow2): Update.
339         (gimple_mod_subtract): Update.
340         (gimple_ic_transform): Update.
341         (gimple_stringop_fixed_value): Update.
342         * value-prof.h (gimple_ic): Update.
344 2017-06-02  Carl Love  <cel@us.ibm.com>
346         * config/rs6000/rs6000-c: Add support for built-in functions
347         vector double vec_doublee (vector signed int);
348         vector double vec_doublee (vector unsigned int);
349         vector double vec_doublee (vector float);
350         vector double vec_doubleh (vector signed int);
351         vector double vec_doubleh (vector unsigned int);
352         vector double vec_doubleh (vector float);
353         vector double vec_doublel (vector signed int);
354         vector double vec_doublel (vector unsigned int);
355         vector double vec_doublel (vector float);
356         vector double vec_doubleo (vector signed int);
357         vector double vec_doubleo (vector unsigned int);
358         vector double vec_doubleo (vector float);.
359         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
360         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
361         UNS_DOUBLEL.
362         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
363         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
364         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
365         VS_sxwsp.
366         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
367         vec_doublel, vec_doubleh.
368         * doc/extend.texi: Update the built-in documentation file for the
369         new built-in functions.
371 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
373         PR jit/80954
374         * ipa-inline-analysis.c (free_growth_caches): Set
375         edge_removal_hook_holder to NULL after removing it.
377 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
379         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
380         comparision with zero.
382 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
383         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
384         for early expansion of vec_min and vec_max builtins.
385         (builtin_function_type): Add min/max unsigned variants to those
386         identified as having unsigned arguments.
388 2017-06-02  Olivier Hainque  <hainque@adacore.com>
390         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
392 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
394         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
395         Use VALL_F16 iterator rather than VALL.
397 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
399         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
400         Emit CBNZ inside loop when doing a strong exchange and comparing
401         against zero.  Generate the CC flags after the loop.
403 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
405         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
406         (dl_section_ref): New.
407         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
408         On AIX, append an expression to subtract the size of the
409         section length to dl_section_ref.
411 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
413         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
414         for early expansion of vector absolute builtins.
416 2017-06-02  Richard Biener  <rguenther@suse.de>
418         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
419         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
421 2017-06-02  Richard Biener  <rguenther@suse.de>
423         PR tree-optimization/80948
424         * tree-tailcall.c (find_tail_calls): Track stmts to move in
425         stmt order as well.
427 2017-06-02  Richard Biener  <rguenther@suse.de>
429         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
430         PHIs are ok.
431         * tree-vect-stmts.c (process_use): Do not mark backedge defs
432         for inductions as relevant.
434 2017-06-02  Richard Biener  <rguenther@suse.de>
436         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
437         (vectorizable_induction): ... this.  Remove dead code.
439 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
441         * builtins. (expand_builtin_alloca): Remove second parameter and
442         infer its value from the first parameter instead.
443         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
445 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
447         PR rtl-optimization/80903
448         * loop-doloop.c (add_test): Unshare sequence.
450 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
452         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
454 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
456         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
457         static.
458         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
459         xlogue_layout::get_instance, logue_layout::xlogue_layout,
460         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
461         (xlogue_layout::get_stub_rtx): Make static.
462         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
463         (xlogue_layout::compute_stub_managed_regs): Rename to...
464         (xlogue_layout::count_stub_managed_regs): ...this.
465         (xlogue_layout::is_stub_managed_reg): New function.
466         (xlogue_layout::m_stub_names): Rename to...
467         (xlogue_layout::s_stub_names): ...this, make static.
468         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
469         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
470         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
471         xlogue_layout::s_stub_names): Instantiate statics.
472         (stub_managed_regs): Remove.
473         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
474         (disable_call_ms2sysv_xlogues): Rename to...
475         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
476         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
477         warning logic.
478         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
479         change after reload_completed.
480         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
481         directly.
482         (ix86_expand_prologue): Likewise.
483         (ix86_expand_epilogue): Likewise.
484         (ix86_expand_split_stack_prologue): Likewise.
485         (ix86_compute_frame_layout): Remove frame parameter ...
486         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
487         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
488         only if necessary.
489         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
490         (ix86_frame): Move from here ...
491         * config/i386/i386.h (ix86_frame): ... to here.
492         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
493         complete ix86_frame data structure instead.  Remove some_ld_name.
495 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
497         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
498         symbols that hold a DECL_VALUE_EXPR.
500 2017-06-01  Martin Jambor  <mjambor@suse.cz>
502         PR tree-optimization/80898
503         * tree-sra.c (process_subtree_disqualification): Removed.
504         (disqualify_candidate): Do not acll
505         process_subtree_disqualification.
506         (subtree_mark_written_and_enqueue): New function.
507         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
508         RHS has been disqualified and re-queue LHS if necessary.  Apart
509         from that, ignore disqualified RHS.
511 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
513         * config/s390/s390.c (s390_emit_epilogue): Disable early return
514         address fetch for z10 or later.
516 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
518         * config/arc/arc.md (tst_movb): Add guard when splitting.
520 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
522         * config/arc/arc.c (arc_can_eliminate): Test against
523         arc_frame_pointer_needed.
525 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
527         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
528         to prevent store reordering.
529         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
530         (type): Add block type.
531         (stack_tie): Define special instruction to be used in
532         expand_prologue.
534 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
536         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
537         constraint. It is not valid for the pattern.
538         (noncommutative_binary_comparison): Likewise.
540 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
542         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
543         scaled addresses.
545 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
547         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
548         be used by the reg-alloc.
550 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
552         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
553         reg-alloc when having mul64 or mul32x16 instructions.
554         (mulsidi3): Likewise.
555         (umulsidi3): Likewise.
556         (mulsi32x16): New pattern.
557         (mulsi64): Likewise.
558         (mulsidi64): Likewise.
559         (umulsidi64): Likewise.
560         (MUL32x16_REG): Define.
561         (mul64_600): Use MUL32x16_REG.
562         (mac64_600): Likewise.
563         (umul64_600): Likewise.
564         (umac64_600): Likewise.
566 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
568         * config/arc/arc.md (mulsi3_700): Make it commutative.
570 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
572         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
573         type for movstouw.
574         (*sign_extendsidi2_insn): Likewise for movstosw.
576 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
578         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
579         the type of the input discriminant value.  Convert the
580         discriminant value of signedness vary.
582 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
584         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
585         Add to -Wall section.
587 2017-06-01  Richard Biener  <rguenther@suse.de>
589         PR middle-end/66313
590         * fold-const.c (fold_plusminus_mult_expr): If the factored
591         factor may be zero use a wrapping type for the inner operation.
592         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
593         and handle moved defs.
594         (process_assignment): Properly guard the unary op case.  Return a
595         tri-state indicating that moving the stmt before the call may allow
596         to continue.  Pass through to_move.
597         (find_tail_calls): Handle moving unrelated defs before
598         the call.
600 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
602         PR target/80618
603         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
604         splitter result in the canonical way.
606 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
608         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
609         also for 32bit target.  Update insn attributes.
610         (zero-extendsidi2 splitter): Allow all registers for operand 1.
612 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
614         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
615         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
616         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
617         (_mm_maskz_min_ss): New intrinsics.
619 2017-05-31  Martin Liska  <mliska@suse.cz>
621         * tree-vect-loop.c (vect_create_epilog_for_reduction):
622         Change comment style to one we normally use.
623         (vectorizable_reduction): Likewise.
624         (vectorizable_induction): Likewise.
625         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
626         (vectorizable_call): Likewise.
627         (vectorizable_simd_clone_call): Likewise.
628         (vectorizable_conversion): Likewise.
629         (vectorizable_assignment): Likewise.
630         (vectorizable_shift): Likewise.
631         (vectorizable_operation): Likewise.
632         (vectorizable_store): Likewise.
633         (vectorizable_load): Likewise.
634         * tree-vectorizer.h: Likewise.
636 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
638         * passes.c (emergency_dump_function): New.
639         * tree-pass.h (emergency_dump_function): Declare.
640         * plugin.c (plugins_internal_error_function): Remove.
641         * plugin.h (plugins_internal_error_function): Remove declaration.
642         * toplev.c (internal_error_function): New static function.  Use it...
643         (general_init): ...here.
645 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
647         * config/arc/arc.c (arc_print_operand): Handle constant operands.
648         (arc_rtx_costs): Add costs for new patterns.
649         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
650         * config/arc/predicates.md: Add _1_2_3_operand predicate.
652 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
654         * tree-ssa-strlen.c (get_next_strinfo): New function.
655         (get_stridx_plus_constant): Use it.
656         (zero_length_string): Likewise.
657         (adjust_related_strinfos): Likewise.
658         (adjust_last_stmt): Likewise.
660 2017-05-31  Richard Biener  <rguenther@suse.de>
662         PR target/80880
663         * config/i386/i386.c (ix86_expand_builtin): Remove assert
664         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
666 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
668         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
669         loop_vinfo argument and use of dependence distance vectors.
670         Check instead whether the two references differ only in their
671         initial value and assume that they have the same alignment if the
672         difference is a multiple of the vector alignment.
673         (vect_analyze_data_refs_alignment): Update call accordingly.
675 2017-05-31  Martin Liska  <mliska@suse.cz>
677         PR target/79155
678         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
680 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
682         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
683         (create_intersect_range_checks): Move from ...
684         * tree-data-ref.c (create_intersect_range_checks_index)
685         (create_intersect_range_checks): ... to here.
686         (create_runtime_alias_checks): New function factored from ...
687         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
688         here.  Call above function.
689         * tree-data-ref.h (create_runtime_alias_checks): New function.
691 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
693         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
694         segment length for dr_b and compute it in wide_int.
696 2017-05-31  Richard Biener  <rguenther@suse.de>
698         PR tree-optimization/80906
699         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
700         and pass through iv_map.
701         (copy_bb_and_scalar_dependences): Adjust.
702         (translate_pending_phi_nodes): Likewise.
703         (copy_loop_close_phi_args): Handle code-generating IVs instead
704         of ICEing.
706 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
708         * diagnostic-color.c (color_dict): Add "type-diff".
709         (parse_gcc_colors): Update comment.
710         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
711         -fdiagnostics-show-template-tree and -fno-elide-type.
712         (GCC_COLORS): Add type-diff to example.
713         (type-diff=): New.
714         (-fdiagnostics-show-template-tree): New.
715         (-fno-elide-type): New.
716         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
717         the pp_format_decoder callback.  Call any m_format_postprocessor's
718         "handle" method.
719         (pretty_printer::pretty_printer): Initialize
720         m_format_postprocessor.
721         (pretty_printer::~pretty_printer): Delete any
722         m_format_postprocessor.
723         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
724         (class format_postprocessor): New class.
725         (struct pretty_printer::format_decoder): Document the new parameters.
726         (struct pretty_printer::m_format_postprocessor): New field.
727         * tree-diagnostic.c (default_tree_printer): Update for new
728         bool and const char ** params.
729         * tree-diagnostic.h (default_tree_printer): Likewise.
731 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
733         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
734         (lwa_operand): Delete rs6000_gen_cell_microcode test.
735         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
736         rs6000_gen_cell_microcode code.
737         (rs6000_final_prescan_insn): Delete.
738         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
739         "warn-cell-microcode" entries.
740         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
741         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
742         throughout.  Change cc_reg_not_micro_cr0_operand to
743         cc_reg_not_cr0_operand throughout.
744         (*extendhi<mode>2_noload): Delete.
745         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
746         (mwarn-cell-microcode): Delete.
747         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
748         -mgen-cell-microcode and -mwarn-cell-microcode.
750 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
752         PR target/80833
753         * config/i386/constraints.md (Yd): New constraint.
754         (Ye): Ditto.
755         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
756         and (?Yd, r) alternatives.  Update insn attributes.
757         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
758         and (?*Yd, r) alternatives.  Update insn attributes.
759         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
761 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
763         * gimplify.c (gimplify_modify_expr): Don't create a
764         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
765         function.
767 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
769         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
771 2017-05-30  Richard Biener  <rguenther@suse.de>
773         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
774         and reduc_def fields.
775         (STMT_VINFO_REDUC_TYPE): New define.
776         (STMT_VINFO_REDUC_DEF): Likewise.
777         (vect_force_simple_reduction): Adjust prototype.
778         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
779         (vect_is_simple_reduction): Remove check_reduction argument.
780         (vect_force_simple_reduction): Adjust and set
781         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
782         (vectorizable_reduction): Do not re-do reduction analysis
783         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
784         * tree-parloops.c (gather_scalar_reductions): Adjust.
786 2017-05-30  Richard Biener  <rguenther@suse.de>
788         PR middle-end/80901
789         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
790         split_edge code.
792 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
794         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
795         Introduce unknown_misalignment parameter and remove vf.
796         (vect_peeling_hash_get_lowest_cost):
797         Pass unknown_misalignment parameter.
798         (vect_enhance_data_refs_alignment):
799         Fix unsupportable data ref treatment.
801 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
803         * tree-vect-data-refs.c (vect_get_data_access_cost):
804         Workaround for SLP handling.
805         (vect_enhance_data_refs_alignment):
806         Compute costs for doing no peeling at all, compare to the best
807         peeling costs so far and avoid peeling if cheaper.
809 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
811         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
812         Return peeling info and set costs to zero for unlimited cost
813         model.
814         (vect_enhance_data_refs_alignment): Also inspect all datarefs
815         with unknown misalignment. Compute and costs for unknown
816         misalignment, compare them to the costs for known misalignment
817         and choose the cheapest for peeling.
819 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
821         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
822         (vect_get_peeling_costs_all_drs): Create function.
823         (vect_peeling_hash_get_lowest_cost):
824         Use vect_get_peeling_costs_all_drs.
825         (vect_peeling_supportable): Create function.
826         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
828 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
830         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
831         DR_HAS_NEGATIVE_STEP.
832         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
833         (vect_enhance_data_refs_alignment): Use.
834         (vect_duplicate_ssa_name_ptr_info): Use.
835         * tree-vectorizer.h (dr_misalignment): Use.
836         (known_alignment_for_access_p): Use.
838 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
840         PR target/78838
841         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
842         .lowtext.
843         (has_section_name): New function.
845 2017-05-30  Martin Liska  <mliska@suse.cz>
847         PR other/80909
848         * auto-profile.c (get_function_decl_from_block): Fix
849         parenthesis.
851 2017-05-30  Richard Biener  <rguenther@suse.de>
853         PR middle-end/80876
854         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
856 2017-05-30  Martin Liska  <mliska@suse.cz>
858         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
859         * dumpfile.h (struct dump_file_info): Remove ctors.
861 2017-05-30  Martin Liska  <mliska@suse.cz>
863         * predict.def: Fix GNU coding style.
865 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
867         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
868         Mark 'to' argument with ATTRIBUTE_UNUSED.
870 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
872         * config/xtensa/xtensa.c (xtensa_emit_call): Use
873         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
874         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
875         format string.
877 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
879         * doc/install.texi (Options specification): Restore entry of
880         --enable-sjlj-exceptions.
882 2017-05-27  Michael Eager  <eager@eagercon.com>
884         Revert:
885         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
887         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
889         * config/microblaze/microblaze.h
890         (FIXED_REGISTERS): Update in macro.
891         (CALL_USED_REGISTERS): Update in macro.
893 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
895         * doc/install.texi: Add links to macOS binary distributions.
897 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
899         PR bootstrap/80887
900         Revert:
901         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
903         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
905 2017-05-26  Martin Liska  <mliska@suse.cz>
907         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
909 2017-05-26  Martin Liska  <mliska@suse.cz>
911         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
912         always leading ';; '.
913         (dump_bb_info): Likewise.
914         (brief_dump_cfg): Likewise.
915         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
916         * dumpfile.c: Remove usage of TDF_VERBOSE.
917         * dumpfile.h (enum dump_kind): Likewise.
918         (dump_gimple_bb_header): Do not use TDF_COMMENT.
919         * print-tree.c (debug_verbose): Remove.
920         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
921         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
922         * tree-diagnostic.c (default_tree_printer): Replace
923         TDF_DIAGNOSTIC with TDF_SLIM.
925 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
927         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
928         in parameter loop, rather than loop_vinfo.
929         (create_intersect_range_checks): Ditto.
930         (vect_create_cond_for_alias_checks): Update call to above functions.
932 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
934         PR tree-optimization/80815
935         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
936         for merging runtime alias checks.  Handle negative DR_STEPs.
938 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
940         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
941         Move from ...
942         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
943         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
944         out code pruning runtime alias checks.
945         * tree-data-ref.c (prune_runtime_alias_test_list): New function
946         factored out from above.
947         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
948         Move from ...
949         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
950         ... to here.
951         (prune_runtime_alias_test_list): New decalaration.
953 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
955         * tree-vect-data-refs.c (compare_tree): Rename and move ...
956         * tree-data-ref.c (data_ref_compare_tree): ... to here.
957         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
958         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
959         (operator==, comp_dr_with_seg_len_pair): Ditto.
960         (vect_prune_runtime_alias_test_list): Ditto.
962 2017-05-26  Martin Liska  <mliska@suse.cz>
964         PR ipa/80663
965         * params.def: Bound partial-inlining-entry-probability param.
967 2017-05-26  Marek Polacek  <polacek@redhat.com>
969         PR sanitizer/80875
970         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
971         can be negated.
973 2017-05-26  Richard Biener  <rguenther@suse.de>
975         PR tree-optimization/80842
976         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
977         value.
979 2017-05-26  Richard Biener  <rguenther@suse.de>
981         PR tree-optimization/80844
982         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
984 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
986         * doc/md.texi (Machine Constraints): Update x86 family
987         machine constraints section to match 'config/i386/constraints.md'.
989 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
991         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
993 2017-05-25  Nathan Sidwell  <nathan@acm.org>
995         * doc/invoke.texi (--enable-languages): Update documentation.
997 2017-05-25  Martin Liska  <mliska@suse.cz>
999         * dumpfile.c: Add TDF_FOLDING.
1000         * dumpfile.h (enum dump_kind): Likewise.
1001         * genmatch.c (dt_simplify::gen_1): Use it.
1003 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1005         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
1007 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1009         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1010         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
1012 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1014         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
1015         * match.pd (X == C): Rewrite it here.
1016         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
1017         with_certain_nonzero_bits2): New predicates.
1018         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
1020 2017-05-24  Nathan Sidwell  <nathan@acm.org>
1022         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
1023         avoid warning.
1025         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
1026         warning.
1028 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
1030         * config/powerpcspe: New port.  Files are copied from the rs6000
1031         port, with "rs6000" in filenames replaced by "powerpcspe".
1033 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
1035         PR rtl-optimization/80754
1036         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
1038 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
1040         * config/sparc/sparc.md (length): Return the correct value for -mflat
1041         sibcalls to match output_sibcall.
1043 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
1045         PR bootstrap/80860
1046         PR bootstrap/80843
1047         * config/rs6000/rs6000.c (struct machine_function): Add new field
1048         n_components.
1049         (rs6000_get_separate_components): Init that field, use it.
1050         (rs6000_components_for_bb): Use the field.
1052 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1054         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
1056 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
1058         PR middle-end/80823
1059         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
1061 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1063         PR target/80725
1064         * config/s390/s390.c (s390_check_qrst_address): Check incoming
1065         address against address_operand predicate.
1066         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
1068 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1070         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
1071         parameters passed indirectly.
1073 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
1075         * config/i386/i386.md (*movdi_internal): Remove SSE4
1076         alternative 18 (?r, *v).  Update insn attributes.
1077         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
1078         Update insn attributes.
1079         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
1080         Update insn attributes.
1081         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
1082         alternative 1 (r, v). Remove isa attribute.
1083         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
1084         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
1085         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1087 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1089         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
1090         dg-line directive.
1092 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1094         * cgraphunit.c (symbol_table::process_new_functions): Update.
1095         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
1096         (inline_generate_summary): Rename to ...
1097         (ipa_fn_summary_generate): ... this one.
1098         (inline_read_summary): Rename to ...
1099         (ipa_fn_summary_read): ... this one.
1100         (inline_write_summary): Rename to ...
1101         (ipa_fn_summary_write): ... this one.
1102         (inline_free_summary): Rename to ...
1103         (ipa_free_fn_summary): ... this one.
1104         (pass_data_local_fn_summary, pass_local_fn_summary,
1105         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
1106         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
1107         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
1108         make_pass_ipa_fn_summary): New.
1109         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
1110         inline_write_summary, inline_free_summary): Remove.
1111         (ipa_free_fn_summary) : New.
1112         * ipa-inline.c (ipa_inline): Update.
1113         (pass_ipa_inline): Do not generate summaries.
1114         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
1115         Remove.
1116         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
1117         and add pass_ipa_fn_summary.
1118         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
1119         New.
1120         (make_pass_inline_parameters): Remove.
1122 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
1124         * omp-low.c (struct omp_context): Remove "default_kind" member.
1125         Adjust all users.
1127         * omp-offload.c (execute_oacc_device_lower): Remove the
1128         parallelism dimensions function attributes for unparallelized
1129         OpenACC kernels constructs.
1131 2017-05-23  Martin Liska  <mliska@suse.cz>
1133         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
1134         functions.
1135         (cgraph_edge::make_speculative): Likewise.
1136         (cgraph_edge::resolve_speculation): Likewise.
1137         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1138         (cgraph_node::dump): Likewise.
1139         * cgraph.h: Likewise.
1140         * cgraphunit.c (analyze_functions): Likewise.
1141         (symbol_table::compile): Likewise.
1142         * ipa-cp.c (print_all_lattices): Likewise.
1143         (determine_versionability): Likewise.
1144         (initialize_node_lattices): Likewise.
1145         (ipcp_verify_propagated_values): Likewise.
1146         (estimate_local_effects): Likewise.
1147         (update_profiling_info): Likewise.
1148         (create_specialized_node): Likewise.
1149         (perhaps_add_new_callers): Likewise.
1150         (decide_about_value): Likewise.
1151         (decide_whether_version_node): Likewise.
1152         (identify_dead_nodes): Likewise.
1153         (ipcp_store_bits_results): Likewise.
1154         * ipa-devirt.c (dump_targets): Likewise.
1155         (ipa_devirt): Likewise.
1156         * ipa-icf.c (sem_item::dump): Likewise.
1157         (sem_function::equals): Likewise.
1158         (sem_variable::equals): Likewise.
1159         (sem_item_optimizer::read_section): Likewise.
1160         (sem_item_optimizer::execute): Likewise.
1161         (congruence_class::dump): Likewise.
1162         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
1163         (dump_inline_summary): Likewise.
1164         (estimate_node_size_and_time): Likewise.
1165         (inline_analyze_function): Likewise.
1166         * ipa-inline-transform.c (inline_call): Likewise.
1167         * ipa-inline.c (report_inline_failed_reason): Likewise.
1168         (want_early_inline_function_p): Likewise.
1169         (edge_badness): Likewise.
1170         (update_edge_key): Likewise.
1171         (inline_small_functions): Likewise.
1172         * ipa-profile.c (ipa_profile): Likewise.
1173         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1174         (ipa_make_edge_direct_to_target): Likewise.
1175         (remove_described_reference): Likewise.
1176         (ipa_impossible_devirt_target): Likewise.
1177         (propagate_controlled_uses): Likewise.
1178         (ipa_print_node_params): Likewise.
1179         (ipcp_transform_function): Likewise.
1180         * ipa-pure-const.c (pure_const_read_summary): Likewise.
1181         (propagate_pure_const): Likewise.
1182         * ipa-reference.c (generate_summary): Likewise.
1183         (read_write_all_from_decl): Likewise.
1184         (propagate): Likewise.
1185         (ipa_reference_read_optimization_summary): Likewise.
1186         * ipa-utils.c (ipa_merge_profiles): Likewise.
1187         * ipa.c (walk_polymorphic_call_targets): Likewise.
1188         (symbol_table::remove_unreachable_nodes): Likewise.
1189         (ipa_single_use): Likewise.
1190         * passes.c (execute_todo): Likewise.
1191         * predict.c (drop_profile): Likewise.
1192         * symtab.c (symtab_node::get_dump_name): New function.
1193         (symtab_node::dump_name): Likewise.
1194         (symtab_node::dump_asm_name): Likewise.
1195         (symtab_node::dump_references): Likewise.
1196         (symtab_node::dump_referring): Likewise.
1197         (symtab_node::dump_base): Likewise.
1198         (symtab_node::debug_symtab): Likewise.
1199         * tree-sra.c (convert_callers_for_node): Likewise.
1200         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
1201         * value-prof.c (init_node_map): Likewise.
1203 2017-05-23  Martin Liska  <mliska@suse.cz>
1205         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
1206         and symtab_node::debug_symtab to symbol_table::debug.
1207         * cgraphunit.c (analyze_functions): Use the renamed function.
1208         (symbol_table::compile): Likewise.
1209         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
1210         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1211         * passes.c (execute_todo): Likewise.
1212         * symtab.c (symbol_table::dump): New function.
1213         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
1215 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1217         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
1218         that nonconst implies exec.
1220 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1222         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
1223         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
1224         (inline_edge_summary_vec): Turn into ...
1225         (ipa_call_summaries): ... this one.
1226         (redirect_to_unreachable, edge_set_predicate,
1227         evaluate_properties_for_edge, inline_summary_alloc,
1228         reset_ipa_call_summary, reset_inline_summary,
1229         inline_summary_t::duplicate): Update.
1230         (inline_edge_duplication_hook): Turn to ...
1231         (ipa_call_summary_t::duplicate): ... this one.
1232         (inline_edge_removal_hook): Turn to ...
1233         (ipa_call_summary_t::remove): ... this one.
1234         (dump_inline_edge_summary): Turn to ...
1235         (dump_ipa_call_summary): ... this one.
1236         (estimate_function_body_sizes): Update.
1237         (inline_update_callee_summaries): Update.
1238         (remap_edge_change_prob): Update.
1239         (remap_edge_summaries): Update.
1240         (inline_merge_summary): Update.
1241         (do_estimate_edge_time): Update.
1242         (inline_generate_summary): Update.
1243         (inline_read_section): Update.
1244         (inline_read_summary): Update.
1245         (inline_free_summary): Update.
1246         * ipa-inline.c (can_inline_edge_p): Update.
1247         (compute_inlined_call_time): Update.
1248         (want_inline_small_function_p): Update.
1249         (edge_badness): Update.
1250         (early_inliner): Update.
1251         * ipa-inline.h (inline_edge_summary): Turn to ...
1252         (ipa_call_summary): ... this one.
1253         (ipa_call_summary_t): New class.
1254         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
1255         (ipa_call_summaries): New.
1256         (inline_edge_summary): Remove.
1257         (estimate_edge_growth): Update.
1258         * ipa-profile.c (ipa_propagate_frequency_1): Update.
1259         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1260         * ipa-split.c (execute_split_functions): Update.
1261         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
1263 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1265         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
1266         attributes): Document rdrand effective target.
1268 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1270         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
1271         attributes): Sort alphabetically.
1273 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
1275         * config/avr/genmultilib.awk: Use gsub instead of gensub.
1277 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1279         PR target/80718
1280         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
1281         V2DF/V2DI splat into two separate patterns, one that handles
1282         registers, and the other that only handles memory.  Drop support
1283         for splatting from a GPR on ISA 2.07 and then splitting the
1284         splat into direct move and splat.
1285         (vsx_splat_<mode>_reg): Likewise.
1286         (vsx_splat_<mode>_mem): Likewise.
1288 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
1290         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
1292 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
1294         PR middle-end/80809
1295         * omp-low.c (finish_taskreg_remap): New function.
1296         (finish_taskreg_scan): If unit size of ctx->record_type
1297         is non-constant, unshare the size expression and replace
1298         decls in it with possible outer var refs.
1300         PR middle-end/80809
1301         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
1302         GOVD_SHARED rather than GOVD_PRIVATE with it.
1303         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
1304         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
1306         PR middle-end/80853
1307         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
1308         as last argument to build_outer_var_ref for pointer bases of array
1309         section reductions.
1311 2017-05-19  Martin Sebor  <msebor@redhat.com>
1313         * print-tree.c (print_node): Print DECL_READ_P flag.
1315 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1317         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
1318         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
1319         * cgraph.c: Likewise.
1320         * cgraphunit.c: Likewise.
1321         * gengtype.c: Likewise.
1322         * ipa-cp.c: Likewise.
1323         * ipa-devirt.c: Likewise.
1324         * ipa-icf.c: Likewise.
1325         * ipa-predicate.c: Likewise.
1326         * ipa-profile.c: Likewise.
1327         * ipa-prop.c: Likewise.
1328         * ipa-split.c: Likewise.
1329         * ipa.c: Likewise.
1330         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
1331         edge_predicate_pool, dump_inline_hints,
1332         inline_summary::account_size_time, redirect_to_unreachable,
1333         edge_set_predicate, set_hint_predicate,
1334         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
1335         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
1336         inline_summary_t::remove, remap_hint_predicate_after_duplication,
1337         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
1338         ipa_call_summary_t::remove, initialize_growth_caches,
1339         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
1340         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
1341         mark_modified, unmodified_parm_1, unmodified_parm,
1342         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
1343         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
1344         compute_bb_predicates, will_be_nonconstant_expr_predicate,
1345         will_be_nonconstant_predicate, record_modified_bb_info,
1346         get_minimal_bb, record_modified, param_change_prob,
1347         phi_result_unknown_predicate, predicate_for_phi_result,
1348         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
1349         estimate_function_body_sizes, compute_inline_parameters,
1350         compute_inline_parameters_for_curren, pass_data_inline_parameters,
1351         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
1352         inline_update_callee_summaries, remap_edge_change_prob,
1353         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
1354         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
1355         inline_analyze_function, inline_summary_t::insert,
1356         inline_generate_summary, read_ipa_call_summary, inline_read_section,
1357         inline_read_summary, write_ipa_call_summary, inline_write_summary,
1358         inline_free_summary): Move to ipa-fnsummary.h
1359         (predicate_t): Remove.
1360         * ipa-fnsummary.c: New file.
1361         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
1362         (enum inline_hints_vals, inline_hints, agg_position_info,
1363         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
1364         inline_summaries, ipa_call_summary, ipa_call_summary_t,
1365         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
1366         dump_inline_summary, dump_inline_hints, inline_generate_summary,
1367         inline_read_summary, inline_write_summary, inline_free_summary,
1368         inline_analyze_function, initialize_inline_failed,
1369         inline_merge_summary, inline_update_overall_summary,
1370         compute_inline_parameters): Move to ipa-fnsummary.h
1371         * ipa-fnsummary.h: New file.
1372         * ipa-inline-transform.h: Include ipa-inline.h.
1373         * ipa-inline.c: LIkewise.
1375 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1377         * ipa-inline.c (edge_badness): Use inlined_time instead of
1378         inline_summaries->get.
1380 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1382         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
1384 2017-05-22  Nathan Sidwell  <nathan@acm.org>
1386         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
1387         (fdump-lang): Document 'raw' option.
1388         * dumpfile.h (TDI_tu): Delete.
1389         * dumpfile.c (dump_files): Remove translation-unit.
1390         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
1392 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
1394         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
1395         command option from $(AWK) call.
1396         * config/avr/genmultilib.awk: Simplify and rewrite so that it
1397         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
1398         [FORMAT]: Remove handling of variable.
1399         * config/avr/t-multilib: Regenerate.
1401 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1403         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
1404         self_time.
1405         (dump_inline_summary): Do not print self_time.
1406         (estimate_function_body_sizes): Do not set self_time.
1407         (compute_inline_parameters): Likewise.
1408         (inline_read_section, inline_write_summary): Do not stream self_time.
1409         * ipa-inline.h (inline_summary): Drop self_time.
1411 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1413         * ipa-inline-analysis.c (account_size_time): Rename to ...
1414         (inline_summary::account_size_time): ... this one.
1415         (reset_ipa_call_summary): Turn to ...
1416         (ipa_call_summary::reset): ... this one.
1417         (reset_inline_summary): Turn to ...
1418         (inline_summary::reset): ... this one.
1419         (inline_summary_t::remove): Update.
1420         (inline_summary_t::duplicate): Update.
1421         (ipa_call_summary_t::remove): Update.
1422         (dump_inline_summary): Update.
1423         (estimate_function_body_sizes): Update.
1424         (compute_inline_parameters): Update.
1425         (estimate_node_size_and_time): Update.
1426         (inline_merge_summary): Update.
1427         (inline_update_overall_summary): Update.
1428         (inline_read_section): Update.
1429         (inline_write_summary): Update.
1430         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
1431         add account_size_time and reset member functions.
1432         (ipa_call_summary): Add reset function.
1433         * ipa-predicate.h (predicate::operator &): Constify.
1435 2017-05-22  Richard Biener  <rguenther@suse.de>
1437         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
1439 2017-05-19  Jason Merrill  <jason@redhat.com>
1441         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
1443 2017-05-19  Marek Polacek  <polacek@redhat.com>
1445         PR sanitizer/80800
1446         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
1447         TYPE_OVERFLOW_WRAPS checks.
1449 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1451         * tree-core.h (enum omp_clause_default_kind): Add
1452         "OMP_CLAUSE_DEFAULT_PRESENT".
1453         * tree-pretty-print.c (dump_omp_clause): Handle it.
1454         * gimplify.c (enum gimplify_omp_var_data): Add
1455         "GOVD_MAP_FORCE_PRESENT".
1456         (gimplify_adjust_omp_clauses_1): Map it to
1457         "GOMP_MAP_FORCE_PRESENT".
1458         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
1460         * gimplify.c (oacc_default_clause): Clarify.
1462 2017-05-19  Nathan Sidwell  <nathan@acm.org>
1464         LANG_HOOK_REGISTER_DUMPS
1465         * toplev.c (general_init): Call register dump lang hook.
1466         * doc/invoke.texi: Document -fdump-lang option family.
1467         * dumpfile.c (dump_files): Remove class dump here.
1468         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
1469         * dumpfile.h (tree_dump_index): Remove TDI_class.
1470         * langhooks-def.h (lhd_register_dumps): Declare.
1471         (LANG_HOOKS_REGISTER_DUMPS): Define.
1472         (LANG_HOOKS_INITIALIZER): Add it.
1473         * langhooks.c (lhd_register_dumps): Define.
1474         * langhooks.h (struct lang_hooks): Add register_dumps.
1476 2017-05-19  Nathan Sidwell  <nathan@acm.org>
1478         * context.h (context::set_passes): New.
1479         * context.c (context::context): Do not create pass manager.
1480         * toplev.c (general_init): Create pass manager here.
1482 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1484         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
1485         use this splitter if two add or or instructions would also work for
1486         the constant we want to generate.
1488 2017-05-19  Richard Biener  <rguenther@suse.de>
1490         PR build/80821
1491         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
1492         predicate evaluation.
1494 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
1496         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
1497         add ctor.
1498         * ipa-inline.c (want_inline_small_function_p): Do not cast to
1499         unsigned.
1501 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
1503         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
1504         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
1505         (inline_edge_summary_vec): Turn into ...
1506         (ipa_call_summaries): ... this one.
1507         (redirect_to_unreachable, edge_set_predicate,
1508         evaluate_properties_for_edge, inline_summary_alloc,
1509         reset_ipa_call_summary, reset_inline_summary,
1510         inline_summary_t::duplicate): Update.
1511         (inline_edge_duplication_hook): Turn to ...
1512         (ipa_call_summary_t::duplicate): ... this one.
1513         (inline_edge_removal_hook): Turn to ...
1514         (ipa_call_summary_t::remove): ... this one.
1515         (dump_inline_edge_summary): Turn to ...
1516         (dump_ipa_call_summary): ... this one.
1517         (estimate_function_body_sizes): Update.
1518         (inline_update_callee_summaries): Update.
1519         (remap_edge_change_prob): Update.
1520         (remap_edge_summaries): Update.
1521         (inline_merge_summary): Update.
1522         (do_estimate_edge_time): Update.
1523         (inline_generate_summary): Update.
1524         (inline_read_section): Update.
1525         (inline_read_summary): Update.
1526         (inline_free_summary): Update.
1527         * ipa-inline.c (can_inline_edge_p): Update.
1528         (compute_inlined_call_time): Update.
1529         (want_inline_small_function_p): Update.
1530         (edge_badness): Update.
1531         (early_inliner): Update.
1532         * ipa-inline.h (inline_edge_summary): Turn to ...
1533         (ipa_call_summary): ... this one.
1534         (ipa_call_summary_t): New class.
1535         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
1536         (ipa_call_summaries): New.
1537         (inline_edge_summary): Remove.
1538         (estimate_edge_growth): Update.
1539         * ipa-profile.c (ipa_propagate_frequency_1): Update.
1540         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1541         * ipa-split.c (execute_split_functions): Update.
1542         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
1544 2017-05-19  Richard Biener  <rguenther@suse.de>
1546         PR middle-end/80764
1547         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
1549 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
1551         * config/rs6000/rs6000.c (struct machine_function): Add field
1552         fpr_is_wrapped_separately.
1553         (rs6000_get_separate_components): Use 64 components.  Handle the
1554         new FPR components.
1555         (rs6000_components_for_bb): Handle the FPR components.
1556         (rs6000_emit_prologue_components): Handle the FPR components.
1557         (rs6000_emit_epilogue_components): Handle the FPR components.
1558         (rs6000_set_handled_components): Handle the FPR components.
1559         (rs6000_emit_prologue): Don't output prologue code for those FPRs
1560         that are already separately shrink-wrapped.
1561         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
1562         that are already separately shrink-wrapped.
1564 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1566         PR target/80510
1567         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
1568         New predicate.
1570         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
1571         (define_peephole2 for Altivec d-form load): Add peepholes to catch
1572         cases where the register allocator uses a move and an offsettable
1573         memory operation to/from a FPR register on ISA 2.06/2.07.
1574         (define_peephole2 for Altivec d-form store): Likewise.
1576 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
1578         PR target/80799
1579         * config/i386/mmx.md (*mov<mode>_internal): Enable
1580         alternatives 11, 12, 13 and 14 also for 32bit targets.
1581         Remove alternatives 15, 16, 17 and 18.
1582         * config/i386/sse.md (vec_concatv2di): Change
1583         alternative (!x, *y) to (x, ?!*Yn).
1585 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
1587         * dumpfile.h (enum dump_kind): Remove stray comma.
1589 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
1591         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
1592         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
1593         predicate::num_conditions
1594         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
1595         (CHANGED): turn into predicate::changed.
1596         (agg_position_info): Move to ipa-predicate.h
1597         (add_condition, predicate::add_clause, predicate::operator &=,
1598         predicate::or_with, predicate::evaluate, predicate::probability,
1599         dump_condition, dump_clause, predicate::dump,
1600         predicate::remap_after_duplication, predicate::remap_after_inlining,
1601         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
1602         (evaluate_conditions_for_known_args): Update.
1603         (set_cond_stmt_execution_predicate): Update.
1604         * ipa-inline.h: Include ipa-predicate.h
1605         (condition, inline_param_summary, conditions, agg_position_info,
1606         predicate): Move to ipa-predicate.h
1607         * ipa-predicate.c: New file.
1608         * ipa-predicate.h: New file.
1610 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
1612         * final.c (leaf_function_p): Check we are not in a sequence.
1614 2017-05-18  Martin Liska  <mliska@suse.cz>
1616         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
1617         * dumpfile.c (dump_register): Use new enum dump_kind.
1618         (get_dump_file_name): Likewise.
1619         (dump_enable_all): Likewise.
1620         (dump_switch_p_1): Likewise.
1621         (enable_rtl_dump_file): Remove usage of TDF_RTL.
1622         * dumpfile.h (enum dump_kind): New enum type.
1623         (struct dump_file_info): Create constructor and
1624         format fields and comments.
1625         * passes.c (pass_manager::register_one_dump_file):
1626         Use num dump_kind.
1627         * statistics.c (statistics_early_init): Likewise.
1628         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
1629         TDF_TREE with TDF_SLIM.
1630         (gather_memory_references_ref): Likewise.
1632 2017-05-18  Martin Liska  <mliska@suse.cz>
1634         * vec.h (struct vnull): Use it.
1636 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
1638         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
1639         (true_predicate, false_predicate, true_predicate_p,
1640         false_predicate_p): Remove.
1641         (single_cond_predicate, not_inlined_predicate): Turn to member function
1642         in ipa-inline.h
1643         (add_condition): Update.
1644         (add_clause): Turn to...
1645         (predicate::add_clause): ... this one; update; allow passing NULL
1646         as parameter.
1647         (and_predicates): Turn to ...
1648         (predicate::operator &=): ... this one.
1649         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
1650         (or_predicates): Turn to ...
1651         (predicate::or_with): ... this one.
1652         (evaluate_predicate): Turn to ...
1653         (predicate::evaluate): ... this one.
1654         (predicate_probability): Turn to ...
1655         (predicate::probability): ... this one.
1656         (dump_condition): Update.
1657         (dump_predicate): Turn to ...
1658         (predicate::dump): ... this one.
1659         (account_size_time): Update.
1660         (edge_set_predicate): Update.
1661         (set_hint_predicate): UPdate.
1662         (evaluate_conditions_for_known_args): Update.
1663         (evaluate_properties_for_edge): Update.
1664         (remap_predicate_after_duplication): Turn to...
1665         (predicate::remap_after_duplication): ... this one.
1666         (remap_hint_predicate_after_duplication): Update.
1667         (inline_summary_t::duplicate): UPdate.
1668         (dump_inline_edge_summary): Update.
1669         (dump_inline_summary): Update.
1670         (set_cond_stmt_execution_predicate): Update.
1671         (set_switch_stmt_execution_predicate): Update.
1672         (compute_bb_predicates): Update.
1673         (will_be_nonconstant_expr_predicate): Update.
1674         (will_be_nonconstant_predicate): Update.
1675         (phi_result_unknown_predicate): Update.
1676         (predicate_for_phi_result): Update.
1677         (array_index_predicate): Update.
1678         (estimate_function_body_sizes): Update.
1679         (estimate_node_size_and_time): Update.
1680         (estimate_ipcp_clone_size_and_time): Update.
1681         (remap_predicate): Rename to ...
1682         (predicate::remap_after_inlining): ... this one.
1683         (remap_hint_predicate): Update.
1684         (inline_merge_summary): Update.
1685         (inline_update_overall_summary): Update.
1686         (estimate_size_after_inlining): Update.
1687         (read_predicate): Rename to ...
1688         (predicate::stream_in): ... this one.
1689         (read_inline_edge_summary): Update.
1690         (write_predicate): Rename to ...
1691         (predicate::stream_out): ... this one.
1692         (write_inline_edge_summary): Update.
1693         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
1694         (clause_t): Turn to uint32_t
1695         (predicate): Turn to class; implement constructor and operators
1696         ==, !=, &
1697         (size_time_entry): Update.
1698         (inline_summary): Update.
1699         (inline_edge_summary): Update.
1701 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
1703         * fold-const.c (fold_binary_loc): Move transformation...
1704         * match.pd (C - X CMP X): ... here.
1706 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
1708         * config/sparc/sparc.c (sparc_option_override): Set function
1709         alignment for -mcpu=niagara7 to 64 to match the I$ line.
1710         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
1711         latency to 1.
1712         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
1713         latency to 2.
1714         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
1716 2017-05-18  Marek Polacek  <polacek@redhat.com>
1718         PR sanitizer/80797
1719         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
1720         (pass_ubsan::execute): Call gimple_assign_single_p instead of
1721         gimple_assign_load_p.
1723 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
1725         PR middle-end/80692
1726         * real.c (do_compare): Give decimal_do_compare preference over
1727         comparing just the signs.
1729 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
1731         * doc/md.texi (Canonicalization of Instructions): Describe the
1732         canonical form of instructions that inherently set a condition
1733         code register.
1735 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
1737         PR middle-end/80775
1738         * tree-cfg.c: Move deletion of unreachable case statements to after
1739         the merging of consecutive case labels.
1741 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1743         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
1744         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
1745         restoring of callee-saved registers.
1747 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1749         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
1750         * config/visium/visium.c (single_set_and_flags): Likewise.
1751         * config/visium/visium.md (Substitutions): Likewise.
1753 2017-05-17  Martin Liska  <mliska@suse.cz>
1755         * cfg.c: Introduce dump_flags_t type and
1756         use it instead of int type.
1757         * cfg.h: Likewise.
1758         * cfghooks.c: Likewise.
1759         * cfghooks.h (struct cfg_hooks): Likewise.
1760         * cfgrtl.c: Likewise.
1761         * cfgrtl.h: Likewise.
1762         * cgraph.c (cgraph_node::get_body): Likewise.
1763         * coretypes.h: Likewise.
1764         * domwalk.c: Likewise.
1765         * domwalk.h: Likewise.
1766         * dumpfile.c (struct dump_option_value_info): Likewise.
1767         (dump_enable_all): Likewise.
1768         (dump_switch_p_1): Likewise.
1769         (opt_info_switch_p): Likewise.
1770         * dumpfile.h (enum tree_dump_index): Likewise.
1771         (struct dump_file_info): Likewise.
1772         * genemit.c: Likewise.
1773         * generic-match-head.c: Likewise.
1774         * gengtype.c (open_base_files): Likewise.
1775         * gimple-pretty-print.c: Likewise.
1776         * gimple-pretty-print.h: Likewise.
1777         * graph.c (print_graph_cfg): Likewise.
1778         * graphite-scop-detection.c (dot_all_sese): Likewise.
1779         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
1780         * loop-unroll.c (report_unroll): Likewise.
1781         * passes.c (pass_manager::register_one_dump_file): Likewise.
1782         * print-tree.c: Likewise.
1783         * statistics.c: Likewise.
1784         * tree-cfg.c: Likewise.
1785         * tree-cfg.h: Likewise.
1786         * tree-dfa.c: Likewise.
1787         * tree-dfa.h: Likewise.
1788         * tree-dump.c (dump_function): Likewise.
1789         * tree-dump.h (struct dump_info): Likewise.
1790         * tree-pretty-print.c: Likewise.
1791         * tree-pretty-print.h: Likewise.
1792         * tree-ssa-live.c: Likewise.
1793         * tree-ssa-live.h: Likewise.
1794         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1795         * tree-vect-loop.c: Likewise.
1796         * tree-vect-slp.c: Likewise.
1798 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
1799             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1801         PR tree-optimization/80457
1802         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
1803         of all arguments to a statement as scalar_to_vec operations.
1804         (vectorizable_call): Adjust call to vect_model_simple_cost for
1805         new parameter.
1806         (vectorizable_conversion): Likewise.
1807         (vectorizable_assignment): Likewise.
1808         (vectorizable_shift): Likewise.
1809         (vectorizable_operation): Likewise.
1810         (vectorizable_comparison): Likewise.
1811         (vect_is_simple_cond): Record the def types for operands.
1812         (vectorizable_condition): Likewise, call vect_model_simple_cost.
1813         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
1814         for statement argument count.
1816 2017-05-16  Carl Love  <cel@us.ibm.com>
1818         * config/rs6000/rs6000-c: Add support for built-in functions
1819         vector unsigned long long vec_bperm (vector unsigned long long,
1820                                              vector unsigned char)
1821         vector signed long long vec_mule (vector signed int,
1822                                           vector signed int)
1823         vector unsigned long long vec_mule (vector unsigned int,
1824                                             vector unsigned int)
1825         vector signed long long vec_mulo (vector signed int,
1826                                           vector signed int)
1827         vector unsigned long long vec_mulo (vector unsigned int,
1828                                             vector unsigned int)
1829         vector signed char vec_sldw (vector signed char,
1830                                      vector signed char,
1831                                      const int)
1832         vector unsigned char vec_sldw (vector unsigned char,
1833                                        vector unsigned char,
1834                                        const int)
1835         vector signed short vec_sldw (vector signed short,
1836                                       vector signed short,
1837                                       const int)
1838         vector unsigned short vec_sldw (vector unsigned short,
1839                                         vector unsigned short,
1840                                         const int)
1841         vector signed int vec_sldw (vector signed int,
1842                                     vector signed int,
1843                                     const int)
1844         vector unsigned int vec_sldw (vector unsigned int,
1845                                       vector unsigned int,
1846                                       const int)
1847         vector signed long long vec_sldw (vector signed long long,
1848                                           vector signed long long,
1849                                           const int)
1850         vector unsigned long long vec_sldw (vector unsigned long long,
1851                                             vector unsigned long long,
1852                                             const int)
1853         * config/rs6000/rs6000-c: Add support for built-in functions
1854         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
1855         * config/rs6000/altivec.h: Add defintion for vec_sldw.
1856         * doc/extend.texi: Update the built-in documentation for the
1857         new built-in functions.
1859 2017-05-16  Marek Polacek  <polacek@redhat.com>
1861         PR sanitizer/80536
1862         PR sanitizer/80386
1863         * tree.c (save_expr): Don't fold the expression.
1865 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
1867         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
1868         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
1869         and (?*y,m).  Update insn attributes.
1871 2017-05-16  Martin Liska  <mliska@suse.cz>
1873         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
1874         flags argument of print_gimple_stmt, print_gimple_expr,
1875         print_generic_stmt and print_generic_expr.
1876         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1877         * coretypes.h: Likewise.
1878         * except.c (dump_eh_tree): Likewise.
1879         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1880         * gimple-pretty-print.h: Likewise.
1881         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
1882         (backprop::push_to_worklist): Likewise.
1883         (backprop::pop_from_worklist): Likewise.
1884         (backprop::process_use): Likewise.
1885         (backprop::intersect_uses): Likewise.
1886         (note_replacement): Likewise.
1887         * gimple-ssa-store-merging.c
1888         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
1889         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1890         (pass_store_merging::execute): Likewise.
1891         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
1892         (ssa_base_cand_dump_callback): Likewise.
1893         (dump_incr_vec): Likewise.
1894         (replace_refs): Likewise.
1895         (replace_mult_candidate): Likewise.
1896         (create_add_on_incoming_edge): Likewise.
1897         (create_phi_basis): Likewise.
1898         (insert_initializers): Likewise.
1899         (all_phi_incrs_profitable): Likewise.
1900         (introduce_cast_before_cand): Likewise.
1901         (replace_one_candidate): Likewise.
1902         * gimplify.c (gimplify_expr): Likewise.
1903         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
1904         (set_rename): Likewise.
1905         (rename_uses): Likewise.
1906         (copy_loop_phi_nodes): Likewise.
1907         (add_close_phis_to_merge_points): Likewise.
1908         (copy_loop_close_phi_args): Likewise.
1909         (copy_cond_phi_args): Likewise.
1910         (graphite_copy_stmts_from_block): Likewise.
1911         (translate_pending_phi_nodes): Likewise.
1912         * graphite-poly.c (print_pdr): Likewise.
1913         (dump_gbb_cases): Likewise.
1914         (dump_gbb_conditions): Likewise.
1915         (print_scop_params): Likewise.
1916         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
1917         (build_cross_bb_scalars_use): Likewise.
1918         (gather_bbs::before_dom_children): Likewise.
1919         * hsa-dump.c (dump_hsa_immed): Likewise.
1920         * ipa-cp.c (print_ipcp_constant_value): Likewise.
1921         (get_replacement_map): Likewise.
1922         * ipa-inline-analysis.c (dump_condition): Likewise.
1923         (estimate_function_body_sizes): Likewise.
1924         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
1925         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
1926         * ipa-prop.c (ipa_dump_param): Likewise.
1927         (ipa_print_node_jump_functions_for_edge): Likewise.
1928         (ipa_modify_call_arguments): Likewise.
1929         (ipa_modify_expr): Likewise.
1930         (ipa_dump_param_adjustments): Likewise.
1931         (ipa_dump_agg_replacement_values): Likewise.
1932         (ipcp_modif_dom_walker::before_dom_children): Likewise.
1933         * ipa-pure-const.c (check_stmt): Likewise.
1934         (pass_nothrow::execute): Likewise.
1935         * ipa-split.c (execute_split_functions): Likewise.
1936         * omp-offload.c (dump_oacc_loop_part): Likewise.
1937         (dump_oacc_loop): Likewise.
1938         * trans-mem.c (tm_log_emit): Likewise.
1939         (tm_memopt_accumulate_memops): Likewise.
1940         (dump_tm_memopt_set): Likewise.
1941         (dump_tm_memopt_transform): Likewise.
1942         * tree-cfg.c (gimple_verify_flow_info): Likewise.
1943         (print_loop): Likewise.
1944         * tree-chkp-opt.c (chkp_print_addr): Likewise.
1945         (chkp_gather_checks_info): Likewise.
1946         (chkp_get_check_result): Likewise.
1947         (chkp_remove_check_if_pass): Likewise.
1948         (chkp_use_outer_bounds_if_possible): Likewise.
1949         (chkp_reduce_bounds_lifetime): Likewise.
1950         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
1951         (chkp_mark_completed_bounds): Likewise.
1952         (chkp_register_incomplete_bounds): Likewise.
1953         (chkp_mark_invalid_bounds): Likewise.
1954         (chkp_maybe_copy_and_register_bounds): Likewise.
1955         (chkp_build_returned_bound): Likewise.
1956         (chkp_get_bound_for_parm): Likewise.
1957         (chkp_build_bndldx): Likewise.
1958         (chkp_get_bounds_by_definition): Likewise.
1959         (chkp_generate_extern_var_bounds): Likewise.
1960         (chkp_get_bounds_for_decl_addr): Likewise.
1961         * tree-chrec.c (chrec_apply): Likewise.
1962         * tree-data-ref.c (dump_data_reference): Likewise.
1963         (dump_subscript): Likewise.
1964         (dump_data_dependence_relation): Likewise.
1965         (analyze_overlapping_iterations): Likewise.
1966         * tree-inline.c (expand_call_inline): Likewise.
1967         (tree_function_versioning): Likewise.
1968         * tree-into-ssa.c (dump_defs_stack): Likewise.
1969         (dump_currdefs): Likewise.
1970         (dump_names_replaced_by): Likewise.
1971         (dump_update_ssa): Likewise.
1972         (update_ssa): Likewise.
1973         * tree-object-size.c (pass_object_sizes::execute): Likewise.
1974         * tree-parloops.c (build_new_reduction): Likewise.
1975         (try_create_reduction_list): Likewise.
1976         (ref_conflicts_with_region): Likewise.
1977         (oacc_entry_exit_ok_1): Likewise.
1978         (oacc_entry_exit_single_gang): Likewise.
1979         * tree-pretty-print.h: Likewise.
1980         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
1981         (get_scalar_evolution): Likewise.
1982         (add_to_evolution): Likewise.
1983         (get_loop_exit_condition): Likewise.
1984         (analyze_evolution_in_loop): Likewise.
1985         (analyze_initial_condition): Likewise.
1986         (analyze_scalar_evolution): Likewise.
1987         (instantiate_scev): Likewise.
1988         (number_of_latch_executions): Likewise.
1989         (gather_chrec_stats): Likewise.
1990         (final_value_replacement_loop): Likewise.
1991         (scev_const_prop): Likewise.
1992         * tree-sra.c (dump_access): Likewise.
1993         (disqualify_candidate): Likewise.
1994         (create_access): Likewise.
1995         (reject): Likewise.
1996         (maybe_add_sra_candidate): Likewise.
1997         (create_access_replacement): Likewise.
1998         (analyze_access_subtree): Likewise.
1999         (analyze_all_variable_accesses): Likewise.
2000         (sra_modify_assign): Likewise.
2001         (initialize_constant_pool_replacements): Likewise.
2002         (find_param_candidates): Likewise.
2003         (decide_one_param_reduction): Likewise.
2004         (replace_removed_params_ssa_names): Likewise.
2005         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2006         * tree-ssa-copy.c (dump_copy_of): Likewise.
2007         (copy_prop_visit_cond_stmt): Likewise.
2008         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
2009         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
2010         (record_equivalences_from_stmt): Likewise.
2011         * tree-ssa-dse.c (compute_trims): Likewise.
2012         (delete_dead_call): Likewise.
2013         (delete_dead_assignment): Likewise.
2014         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
2015         (forward_propagate_into_cond): Likewise.
2016         (pass_forwprop::execute): Likewise.
2017         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2018         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
2019         Likewise.
2020         (move_computations_worker): Likewise.
2021         (execute_sm): Likewise.
2022         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
2023         (remove_exits_and_undefined_stmts): Likewise.
2024         (remove_redundant_iv_tests): Likewise.
2025         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
2026         (adjust_iv_update_pos): Likewise.
2027         * tree-ssa-math-opts.c (bswap_replace): Likewise.
2028         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
2029         (value_replacement): Likewise.
2030         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2031         * tree-ssa-pre.c (print_pre_expr): Likewise.
2032         (get_representative_for): Likewise.
2033         (create_expression_by_pieces): Likewise.
2034         (insert_into_preds_of_block): Likewise.
2035         (eliminate_insert): Likewise.
2036         (eliminate_dom_walker::before_dom_children): Likewise.
2037         (eliminate): Likewise.
2038         (remove_dead_inserted_code): Likewise.
2039         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2040         * tree-ssa-reassoc.c (get_rank): Likewise.
2041         (eliminate_duplicate_pair): Likewise.
2042         (eliminate_plus_minus_pair): Likewise.
2043         (eliminate_not_pairs): Likewise.
2044         (undistribute_ops_list): Likewise.
2045         (eliminate_redundant_comparison): Likewise.
2046         (update_range_test): Likewise.
2047         (optimize_range_tests_var_bound): Likewise.
2048         (optimize_vec_cond_expr): Likewise.
2049         (rewrite_expr_tree): Likewise.
2050         (rewrite_expr_tree_parallel): Likewise.
2051         (linearize_expr): Likewise.
2052         (break_up_subtract): Likewise.
2053         (linearize_expr_tree): Likewise.
2054         (attempt_builtin_powi): Likewise.
2055         (attempt_builtin_copysign): Likewise.
2056         (transform_stmt_to_copy): Likewise.
2057         (transform_stmt_to_multiply): Likewise.
2058         (dump_ops_vector): Likewise.
2059         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
2060         (print_scc): Likewise.
2061         (set_ssa_val_to): Likewise.
2062         (visit_reference_op_store): Likewise.
2063         (visit_use): Likewise.
2064         (sccvn_dom_walker::before_dom_children): Likewise.
2065         (run_scc_vn): Likewise.
2066         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2067         Likewise.
2068         (expr_hash_elt::print): Likewise.
2069         (const_and_copies::pop_to_marker): Likewise.
2070         (const_and_copies::record_const_or_copy_raw): Likewise.
2071         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
2072         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
2073         (dump_predicates): Likewise.
2074         (find_uninit_use): Likewise.
2075         (warn_uninitialized_phi): Likewise.
2076         (pass_late_warn_uninitialized::execute): Likewise.
2077         * tree-ssa.c (verify_vssa): Likewise.
2078         (verify_ssa): Likewise.
2079         (maybe_optimize_var): Likewise.
2080         * tree-vrp.c (dump_value_range): Likewise.
2081         (dump_all_value_ranges): Likewise.
2082         (dump_asserts_for): Likewise.
2083         (register_edge_assert_for_2): Likewise.
2084         (vrp_visit_cond_stmt): Likewise.
2085         (vrp_visit_switch_stmt): Likewise.
2086         (vrp_visit_stmt): Likewise.
2087         (vrp_visit_phi_node): Likewise.
2088         (simplify_cond_using_ranges_1): Likewise.
2089         (fold_predicate_in): Likewise.
2090         (evrp_dom_walker::before_dom_children): Likewise.
2091         (evrp_dom_walker::push_value_range): Likewise.
2092         (evrp_dom_walker::pop_value_range): Likewise.
2093         (execute_early_vrp): Likewise.
2095 2017-05-16  Richard Biener  <rguenther@suse.de>
2097         * dwarf2out.c (loc_list_from_tree_1): Do not create
2098         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
2100 2017-05-16  Richard Biener  <rguenther@suse.de>
2102         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
2103         just generated.
2104         (note_variable_value_in_expr): If we resolved the decl ref
2105         do not push to the stack.
2107 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
2109         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
2110         operations in fast-math mode.
2111         (vaddq_f16): Likewise.
2112         (vmul_f16): Likewise.
2113         (vmulq_f16): Likewise.
2114         (vsub_f16): Likewise.
2115         (vsubq_f16): Likewise.
2116         * config/arm/neon.md (add<mode>3): New.
2117         (sub<mode>3): New.
2118         (fma:<VH:mode>3): New.  Also remove outdated comment.
2119         (mul<mode>3): New.
2121 2017-05-16  Martin Liska  <mliska@suse.cz>
2123         PR ipa/79849.
2124         PR ipa/79850.
2125         * ipa-devirt.c (warn_types_mismatch): Fix typo.
2126         (odr_types_equivalent_p): Likewise.
2128 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
2130         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
2132 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
2134         PR target/80425
2135         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
2136         non-interunit SSE move alternatives with '?'.
2137         (zero-extendsidi peephole2): New peephole to skip intermediate
2138         general register in SSE zero-extend sequence.
2140 2017-05-15  Jeff Law  <law@redhat.com>
2142         * reorg.c (relax_delay_slots): Create a new variable to hold
2143         the temporary target rather than clobbering TARGET_LABEL.
2145         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
2146         missing argument to extract_bit_field call.
2147         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2149 2017-05-15  Martin Liska  <mliska@suse.cz>
2151         PR driver/31468
2152         * gcc.c (process_command): Do not allow empty argument of -o option.
2154 2017-05-15  Renlin Li  <renlin.li@arm.com>
2156         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
2157         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
2158         * config/aarch64/constraints.md (Usf): Add long call check.
2159         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
2160         (call_value): Likewise.
2161         (sibcall): Likewise.
2162         (sibcall_value): Likewise.
2163         (call_insn): New.
2164         (call_value_insn): New.
2165         (sibcall_insn): Update rtx pattern.
2166         (sibcall_value_insn): Likewise.
2167         (call_internal): Remove.
2168         (call_value_internal): Likewise.
2169         (sibcall_internal): Likewise.
2170         (sibcall_value_internal): Likewise.
2171         (call_reg): Likewise.
2172         (call_symbol): Likewise.
2173         (call_value_reg): Likewise.
2174         (call_value_symbol): Likewise.
2176 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
2178         PR target/80600
2179         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
2181 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
2183         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
2184         compatible with CCGOCmode and with CCZmode.
2186 2017-05-14  Martin Sebor  <msebor@redhat.com>
2188         PR middle-end/77671
2189         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
2190         (gimple_fold_builtin_snprintf): Same.
2191         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
2192         (gimple_fold_builtin_snprintf): Same.
2193         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
2194         of character types.
2195         (is_call_safe): New function.
2196         (try_substitute_return_value): Call it.
2197         (try_simplify_call): New function.
2198         (pass_sprintf_length::handle_gimple_call): Call it.
2200 2017-05-14  Martin Sebor  <msebor@redhat.com>
2202         PR middle-end/80669
2203         * builtins.c (expand_builtin_stpncpy): Simplify.
2205 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
2207         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
2208         * config/i386/i386.h
2209         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
2210         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
2211         (struct machine_function): Add new members call_ms2sysv,
2212         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
2213         (struct machine_frame_state): New fields sp_realigned and
2214         sp_realigned_offset.
2215         * config/i386/i386.c
2216         (enum xlogue_stub): New enum.
2217         (enum xlogue_stub_sets): New enum.
2218         (class xlogue_layout): New class.
2219         (struct ix86_frame): New fields stack_realign_allocate_offset,
2220         stack_realign_offset and outlined_save_offset.  Modify comments to
2221         detail stack layout when using out-of-line stubs.
2222         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
2223         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
2224         -mcall-ms2sysv-xlogues.
2225         (stub_managed_regs): New static variable.
2226         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
2227         registers managed by out-of-line stub.
2228         (disable_call_ms2sysv_xlogues): New function.
2229         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
2230         m->call_ms2sysv when appropriate and compute frame layout for
2231         out-of-line stubs.
2232         (sp_valid_at, fp_valid_at): New inline functions.
2233         (choose_basereg): New function.
2234         (choose_baseaddr): Add align parameter, use choose_basereg and modify
2235         all callers.
2236         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
2237         Use align parameter of choose_baseaddr to generated aligned SSE movs
2238         when possible.
2239         (pro_epilogue_adjust_stack): Modify to track
2240         machine_frame_state::sp_realigned.
2241         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
2242         (ix86_nsaved_sseregs): Likewise.
2243         (ix86_emit_save_regs): Likewise.
2244         (ix86_emit_save_regs_using_mov): Likewise.
2245         (ix86_emit_save_sse_regs_using_mov): Likewise.
2246         (get_scratch_register_on_entry): Likewise.
2247         (gen_frame_set): New function.
2248         (gen_frame_load): Likewise.
2249         (gen_frame_store): Likewise.
2250         (emit_outlined_ms2sysv_save): Likewise.
2251         (emit_outlined_ms2sysv_restore): Likewise.
2252         (ix86_expand_prologue): Modify stack re-alignment code and call
2253         emit_outlined_ms2sysv_save when appropriate.
2254         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
2255         parameter rtx_insn *insn, which allows the function to be used to only
2256         generate the notes.
2257         (ix86_expand_epilogue): Modify validity checks of frame and stack
2258         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
2259         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
2260         * config/i386/predicates.md
2261         (save_multiple): New predicate.
2262         (restore_multiple): Likewise.
2263         * config/i386/sse.md
2264         (save_multiple<mode>): New pattern.
2265         (save_multiple_realign<mode>): Likewise.
2266         (restore_multiple<mode>): Likewise.
2267         (restore_multiple_and_return<mode>): Likewise.
2268         (restore_multiple_leave_return<mode>): Likewise.
2269         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
2271 2017-05-14  Julia Koval  <julia.koval@intel.com>
2273         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
2274         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
2275         (__builtin_ia32_xsetbv): New builtins.
2276         * config/i386/i386.c (ix86_expand_special_args_builtin):
2277         Process new types.
2278         (ix86_expand_builtin): Special expand for new intrinsics.
2279         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
2280         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
2281         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
2283 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2285         * cfganal.c (inverted_post_order_compute): Change argument type
2286         to vec *.
2287         * cfganal.h (inverted_post_order_compute): Adjust prototype.
2288         * df-core.c (rest_of_handle_df_initialize): Adjust.
2289         (rest_of_handle_df_finish): Likewise.
2290         (df_analyze_1): Likewise.
2291         (df_analyze): Likewise.
2292         (loop_inverted_post_order_compute): Change argument to be a vec *.
2293         (df_analyze_loop): Adjust.
2294         (df_get_n_blocks): Likewise.
2295         (df_get_postorder): Likewise.
2296         * df.h (struct df_d): Change field to be a vec.
2297         * lcm.c (compute_laterin): Adjust.
2298         (compute_available): Likewise.
2299         * lra-lives.c (lra_create_live_ranges_1): Likewise.
2300         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2301         * tree-ssa-pre.c (compute_antic): Likewise.
2303 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2305         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
2306         (depth_first_search::depth_first_search): Change structure init
2307         function to this constructor.
2308         (depth_first_search::add_bb): Rename function to this member.
2309         (depth_first_search::execute): Likewise.
2310         (flow_dfs_compute_reverse_finish): Adjust.
2312 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2314         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
2315         (longest_simple_path): Likewise.
2316         * shrink-wrap.c (spread_components): Likewise.
2317         (disqualify_problematic_components): Likewise.
2318         (emit_common_heads_for_components): Likewise.
2319         (emit_common_tails_for_components): Likewise.
2320         (insert_prologue_epilogue_for_components): Likewise.
2322 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2324         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
2325         auto_sbitmap.
2327 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2329         * df-core.c (df_set_blocks): Start using auto_bitmap.
2330         (df_compact_blocks): Likewise.
2331         * df-problems.c (df_rd_confluence_n): Likewise.
2332         * df-scan.c (df_insn_rescan_all): Likewise.
2333         (df_process_deferred_rescans): Likewise.
2334         (df_update_entry_block_defs): Likewise.
2335         (df_update_exit_block_uses): Likewise.
2336         (df_entry_block_bitmap_verify): Likewise.
2337         (df_exit_block_bitmap_verify): Likewise.
2338         (df_scan_verify): Likewise.
2339         * lra-constraints.c (lra_constraints): Likewise.
2340         (undo_optional_reloads): Likewise.
2341         (lra_undo_inheritance): Likewise.
2342         * lra-remat.c (calculate_gen_cands): Likewise.
2343         (do_remat): Likewise.
2344         * lra-spills.c (assign_spill_hard_regs): Likewise.
2345         (spill_pseudos): Likewise.
2346         * tree-ssa-pre.c (bitmap_set_and): Likewise.
2347         (bitmap_set_subtract_values): Likewise.
2349 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2351         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
2352         management with auto_bitmap.
2353         (fix_inter_tick): Likewise.
2354         (fix_recovery_deps): Likewise.
2355         * ira.c (add_store_equivs): Likewise.
2356         (find_moveable_pseudos): Likewise.
2357         (split_live_ranges_for_shrink_wrap): Likewise.
2358         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
2359         (rtx_reuse_manager::seen_def_p): Likewise.
2360         (rtx_reuse_manager::set_seen_def): Likewise.
2361         * print-rtl.h (class rtx_reuse_manager): Likewise.
2363 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2365         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
2366         lifetime.
2367         (migrate_btr_def): Likewise.
2368         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
2369         * df-core.c (loop_post_order_compute): Likewise.
2370         (loop_inverted_post_order_compute): Likewise.
2371         * hsa-common.h: Likewise.
2372         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
2373         * init-regs.c (initialize_uninitialized_regs): Likewise.
2374         * ipa-inline.c (resolve_noninline_speculation): Likewise.
2375         (inline_small_functions): Likewise.
2376         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
2377         * ira.c (combine_and_move_insns): Likewise.
2378         (build_insn_chain): Likewise.
2379         * loop-invariant.c (find_invariants): Likewise.
2380         * lower-subreg.c (propagate_pseudo_copies): Likewise.
2381         * predict.c (tree_predict_by_opcode): Likewise.
2382         (predict_paths_leading_to): Likewise.
2383         (predict_paths_leading_to_edge): Likewise.
2384         (estimate_loops_at_level): Likewise.
2385         (estimate_loops): Likewise.
2386         * shrink-wrap.c (try_shrink_wrapping): Likewise.
2387         (spread_components): Likewise.
2388         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
2389         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
2390         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
2391         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
2392         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
2393         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
2394         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2395         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
2396         (mark_threaded_blocks): Likewise.
2397         (thread_through_all_blocks): Likewise.
2398         * tree-ssa.c (verify_ssa): Likewise.
2399         (execute_update_addresses_taken): Likewise.
2400         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
2402 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2404         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
2405         auto_vec.
2406         (post_order_compute): Likewise.
2407         (inverted_post_order_compute): Likewise.
2408         (pre_and_rev_post_order_compute_fn): Likewise.
2410 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2412         * genrecog.c (int_set::int_set): Explicitly construct our
2413         auto_vec base class.
2414         * vec.h (auto_vec::auto_vec): New constructor.
2416 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2418         * bitmap.h (class auto_bitmap): New constructor taking
2419         bitmap_obstack * argument.
2421 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2423         * bitmap.h (class auto_bitmap): Change type of m_bits to
2424         bitmap_head, and adjust ctor / dtor and member operators.
2426 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
2428         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
2429         when returned register mode doesn't match original mode.
2431 2017-05-12  Jeff Law  <law@redhat.com>
2432             Jakub Jelinek  <jakub@redhat.com>
2434         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
2435         we look for cc setter after the compare-elim changes.
2436         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
2437         within the vector to match what compare-elim now expects.
2438         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
2439         (xorsi3_flags, one_cmplsi2_flags): Likewise.
2441         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
2442         after the compare-elim changes.
2443         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
2444         the vector to match what compare-elim now expects.
2445         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
2446         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
2447         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
2448         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
2449         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
2451         * config/visium/visium.c (single_set_and_flags): Fix where
2452         we look for cc setter after the compare-elim changes.
2453         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
2454         with the vector to match what compare-elim now expects.
2455         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
2456         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
2457         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
2458         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
2459         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
2460         (neg<mode>2_insn_set_overflow): Likewise.
2462 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
2464         PR middle-end/79794
2465         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
2466         maybe_expand_insn call, set ops[0].target.  If still set after call,
2467         set alt_rtl.  Add extra arg to recursive calls.
2468         (extract_bit_field): Add alt_rtl argument.  Pass to
2469         extract_bit_field.
2470         * expmed.h (extract_bit_field): Fix prototype.
2471         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
2472         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
2473         to extract_bit_field_calls.
2474         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
2475         Pass alt_rtl to extract_bit_field calls.
2476         * calls.c (store_unaligned_arguments_into_psuedos)
2477         load_register_parameters): Pass extra NULL to extract_bit_field calls.
2478         * optabs.c (maybe_legitimize_operand): Clear op->target when call
2479         gen_reg_rtx.
2480         * optabs.h (struct expand_operand): Add target bitfield.
2482 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
2484         * compare-elim.c (try_eliminate_compare): Canonicalize
2485         operation with embedded compare to
2486         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
2487          (set (reg) (operation)].
2489         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
2491 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
2493         PR target/80723
2494         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
2495         cost of adding a carry flag for ADC instruction.
2496         [case MINUS]: Ignore the cost of subtracting a carry flag
2497         for SBB instruction.
2499 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
2501         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
2502         and x86intrin.h
2503         * config/rs6000/bmiintrin.h: New file.
2504         * config/rs6000/bmi2intrin.h: New file.
2505         * config/rs6000/x86intrin.h: New file.
2507 2017-05-12  Jeff Law  <law@redhat.com>
2509         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
2510         markers.
2512 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
2514         PR middle-end/80707
2515         * tree-cfg.c: Remove cfg edges of unreachable case statements.
2517 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2519         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
2520         early expansion of vector divide builtins.
2521         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
2522         builtins identified as having unsigned arguments.
2524 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2526         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
2527         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
2528         expansion of vector logical operations (and, andc, or, xor,
2529         nor, orc, nand).
2531 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2533         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
2534         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
2536 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2538         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
2539         early GIMPLE expansion of vector multiplies.
2541 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2543         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
2544         TARGET_HAVE_MOVT conditional.
2545         (movt splitter): Likewise.
2547 2017-05-12  Richard Biener  <rguenther@suse.de>
2549         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
2550         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2551         Fold all stmts not inplace.
2553 2017-05-12  Richard Biener  <rguenther@suse.de>
2555         PR tree-optimization/80713
2556         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
2557         inserted_exprs bit for not removed stmts.
2559 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2561         PR middle-end/69921
2562         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
2563         parallelized" attribute for parallelized OpenACC kernels.
2564         * omp-offload.c (execute_oacc_device_lower): Use it.
2566         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
2567         Set "oacc kernels" attribute.
2568         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
2569         parameter.  Adjust all users.
2570         (oacc_fn_attrib_kernels_p): Remove function.
2571         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
2572         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
2573         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2574         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
2575         assert "oacc kernels" attribute is set.
2577 2017-05-11  Carl Love  <cel@us.ibm.com>
2579         * config/rs6000/rs6000-c: Add support for built-in functions
2580         vector unsigned char vec_popcnt (vector signed char)
2581         vector unsigned char vec_popcnt (vector unsigned char)
2582         vector unsigned short vec_popcnt (vector signed short)
2583         vector unsigned short vec_popcnt (vector unsigned short)
2584         vector unsigned int vec_popcnt (vector signed int)
2585         vector unsigned int vec_popcnt (vector unsigned int)
2586         vector unsigned long long vec_popcnt (vector signed long long)
2587         vector unsigned long long vec_popcnt (vector unsigned long long)
2588         vector signed long long vec_slo (vector signed long long,
2589                                          vector signed char)
2590         vector signed long long vec_slo (vector signed long long,
2591                                          vector unsigned char)
2592         vector unsigned long long vec_slo (vector unsigned long long,
2593                                            vector signed char)
2594         vector unsigned long long vec_slo (vector unsigned long long,
2595                                            vector unsigned char)
2596         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
2597         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
2598         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
2599         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
2600         * doc/extend.texi: Update the built-in documentation file for the
2601         new built-in functions.
2603 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2605         * attribs.h (sorted_attr_string): Move machine independent
2606         functions for target clone support from the i386 port to common
2607         code.  Rename ix86_function_versions to common_function_versions.
2608         Rename make_name to make_unique_name.
2609         (common_function_versions): Likewise.
2610         (make_unique_name): Likewise.
2611         (make_dispatcher_decl): Likewise.
2612         (is_function_default_version): Likewise.
2613         * attribs.c (attr_strcmp): Likewise.
2614         (sorted_attr_string): Likewise.
2615         (common_function_versions): Likewise.
2616         (make_unique_name): Likewise.
2617         (make_dispatcher_decl): Likewise.
2618         (is_function_default_version): Likewise.
2619         * config/i386/i386.c (attr_strcmp): Likewise.
2620         (sorted_attr_string): Likewise.
2621         (ix86_function_versions): Likewise.
2622         (make_name): Likewise.
2623         (make_dispatcher_decl): Likewise.
2624         (is_function_default_version): Likewise.
2625         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
2627 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2629         PR target/80695
2630         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2631         Account for direct move costs for vec_construct of integer
2632         vectors.
2634 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
2636         PR target/80706
2637         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
2638         (UNSPEC_STX_ATOMIC): Ditto.
2639         (loaddi_via_sse): New insn.
2640         (storedi_via_sse): Ditto.
2641         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
2642         Update corresponding peephole2 patterns.
2643         (atomic_storedi_fpu): Ditto.
2645 2017-05-11  Julia Koval  <julia.koval@intel.com>
2647         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
2648         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
2649         New intrinsics.
2650         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
2651         (__builtin_ia32_rsqrt14ss_mask): New builtins.
2652         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
2654 2017-05-11  Nathan Sidwell  <nathan@acm.org>
2656         * graphite-poly.c: Include dumpfile.h.
2658         * dumpfle.h (dump_function): Declare here ...
2659         * tree-dump.h (dump_function): ... not here.
2660         * dumpfile.c: #include tree-cfg.h.
2661         (dump_function): Move here from ...
2662         * tree-dump.c (dump_function): ... here.
2663         * gimplify.c: #include splay-tree.h, not tree-dump.h.
2664         * graphite-poly.c: Don't include tree-dump.h.
2665         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
2666         * print-tree.c: Likewise.
2667         * stor-layout.c: Likewise.
2668         * tree-nested.c: Likewise.
2670         * dumpfile.c (dump_start): Use TDF_FLAGS.
2671         (dump_enable_all): Fix TDF_KIND check thinko.
2673 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2675         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2676         array entries to represent two legal parameterizations of the
2677         overloaded __builtin_cmpb function, as represented by the
2678         P6_OV_BUILTIN_CMPB constant.
2679         (altivec_resolve_overloaded_builtin): Add special case handling
2680         for the __builtin_cmpb function, as represented by the
2681         P6_OV_BUILTIN_CMPB constant.
2682         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
2683         (BU_P6_64BIT_2): New macro.
2684         (BU_P6_OVERLOAD_2): New macro
2685         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
2686         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
2687         (CMPB): Add overload support to represent both 32-bit and 64-bit
2688         compare-bytes function.
2689         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2690         support for TARGET_CMPB.
2691         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
2692         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
2693         documentation of the __builtin_cmpb overloaded built-in function.
2695 2017-05-11  Richard Biener  <rguenther@suse.de>
2697         PR tree-optimization/80705
2698         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
2699         bases are not vectorizable.
2701 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2703         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
2704         when counting register pressure.
2706 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2708         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
2709         (iv_ca_more_deps): Renamed to ...
2710         (iv_ca_compare_deps): ... this.
2711         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
2713 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2715         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
2716         to ...
2717         (determine_group_iv_costs): ... here.
2718         (find_inv_vars_cb): Record inv var if it's not recorded before.
2720 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2722         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
2723         (get_shiftadd_cost): Ditto.
2725 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2727         * tree-ssa-address.c: Include header file.
2728         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
2729         address.
2730         (add_to_parts): Refactor.
2731         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
2732         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
2733         in new order.
2735 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2737         PR tree-optimization/53090
2738         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
2739         COMP_IV_EXPR_2.
2740         (extract_cond_operands): Detect condition with IV on both sides
2741         and return COMP_IV_EXPR_2.
2742         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
2743         (rewrite_use_compare): Simplify by removing call to function
2744         extract_cond_operands.
2746 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2748         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
2749         (extract_cond_operands): Detect condition comparing against non-
2750         invariant bound and return appropriate enum value.
2751         (find_interesting_uses_cond): Update use of extract_cond_operands.
2752         Handle its return value accordingly.
2753         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
2755 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2757         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
2758         nonlinear iv_use computation in loop invariant sensitive way.
2760 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2762         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
2763         (find_iv_candidates): Call relate_compare_use_with_all_cands.
2765 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2767         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
2768         (dump_cand): Support iv_cand.inv_exprs.
2769         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
2770         for candidates.
2771         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
2772         iv_cand.inv_exprs.
2774 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2776         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
2777         from ...
2778         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
2779         as local function.  Include necessary header files.
2780         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
2782 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2784         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
2786 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2788         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
2789         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
2790         RSHIFT_EXPR and BIT_NOT_EXPR.
2792 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2794         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
2795         (adjust_setup_cost): New parameter supporting round up adjustment.
2796         (struct address_cost_data): Delete.
2797         (force_expr_to_var_cost): Don't bound cost with spill_cost.
2798         (split_address_cost, ptr_difference_cost): Delete.
2799         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
2800         (struct ainc_cost_data): New struct.
2801         (get_address_cost_ainc): New function.
2802         (get_address_cost, get_computation_cost): Reimplement.
2803         (determine_group_iv_cost_address): Record inv_expr for all uses of
2804         a group.
2805         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
2806         (iv_ca_has_deps): Reimplemented to ...
2807         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
2808         than OLD_CP.
2809         (iv_ca_extend): Call iv_ca_more_deps.
2811 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2813         * tree-ssa-address.c (struct mem_address): Move to header file.
2814         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
2815         * tree-ssa-address.h (struct mem_address): Move from C file.
2816         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
2818 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2820         * tree-affine.h (aff_combination_type): New interface.
2821         (aff_combination_zero_p): Remove static.
2822         (aff_combination_const_p): New interface.
2823         (aff_combination_singleton_var_p): New interfaces.
2825 2017-05-11  Richard Biener  <rguenther@suse.de>
2827         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2828         Skip unreachable blocks and destinations.
2829         (eliminate): Move stmt removal and fixup ...
2830         (fini_eliminate): ... here.  Skip inserted exprs.
2831         (pass_pre::execute): Move fini_pre after fini_eliminate.
2832         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
2833         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
2834         PRE to get rid of dead code that has invalid SSA form and
2835         split critical edges again.
2837 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2839         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2841 2017-05-11  Richard Biener  <rguenther@suse.de>
2843         * passes.c (execute_function_todo): Verify loops if they are
2844         said to be up-to-date.
2845         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
2846         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
2848 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
2850         PR target/80090
2851         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
2852         handle calling assemble_external ourself.
2854         PR target/79027
2855         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
2856         modes with zero size.  Enhance comment.
2858 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2860         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
2861         built-ins for vec_xl and vec_xst with short and char pointer
2862         arguments.
2864 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
2866         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
2867         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
2868         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
2869         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
2870         (_mm_maskz_min_round_ss): New intrinsics.
2871         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
2872         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
2873         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
2874         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
2875         (__builtin_ia32_minss_mask_round): New builtins.
2876         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2877         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2878         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
2879         Rename to ...
2880         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
2881         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
2882         Change to ...
2883         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
2884         ... this.
2886 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
2888         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
2889         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
2890         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
2891         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
2892         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
2893         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
2894         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
2895         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2896         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2897         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
2898         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
2899         (__builtin_ia32_mulss_mask_round): New builtins.
2900         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2901         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2902         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
2903         Rename to ...
2904         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
2905         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2906         Change to ...
2907         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2908         ... this.
2910 2017-05-10  Julia Koval  <julia.koval@intel.com>
2912         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
2913         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
2914         (_mm256_setr_m128i): New intrinsics.
2916 2017-05-10  Julia Koval  <julia.koval@intel.com>
2918         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
2919         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
2920         (_mm_maskz_rcp14_ss): New intrinsics.
2921         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
2922         (__builtin_ia32_rcp14ss_mask): New builtins.
2923         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
2925 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
2927         PR tree-optimization/51513
2928         * tree-cfg.c (gimple_seq_unreachable_p): New function.
2929         (assert_unreachable_fallthru_edge_p): Use it.
2930         (group_case_labels_stmt): Likewise.
2931         * tree-cfg.h: Prototype it.
2932         * stmt.c: Include cfghooks.h and tree-cfg.h.
2933         (emit_case_dispatch_table) <gap_label>: New local variable.
2934         Use it to fill dispatch table gaps.
2935         Test for default_label before updating probabilities.
2936         (expand_case) <default_label>: Remove unneeded initialization.
2937         Test for unreachable default case statement and remove its edge.
2938         Set default_label accordingly.
2939         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
2941 2017-05-10  Carl Love  <cel@us.ibm.com>
2943         * config/rs6000/rs6000-c: Add support for built-in functions
2944         vector signed char        vec_neg (vector signed char)
2945         vector signed short int   vec_neg (vector short int)
2946         vector signed int         vec_neg (vector signed int)
2947         vector signed long long   vec_neg (vector signed long long)
2948         vector float              vec_neg (vector float)
2949         vector double             vec_neg (vector double)
2950         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
2951         overload.
2952         * config/rs6000/altivec.h: Add define for vec_neg
2953         * doc/extend.texi: Update the built-in documentation for the
2954         new built-in functions.
2956 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2958         PR tree-optimization/77644
2959         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
2961 2017-05-10  Nathan Sidwell  <nathan@acm.org>
2963         * dumpfile.h (TDI_lang_all): New.
2964         (TDF_KIND): New. Renumber others
2965         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
2966         than bits.
2967         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
2968         lang-all.
2969         (get_dump_file_name): Adjust suffix generation.
2970         (dump_enable_all): Use TDF_KIND.
2971         * doc/invoke.texi (-fdump-lang-all): Document.
2973         * dumpfile.h: Tabify.
2975 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
2977         PR target/80671
2978         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
2979         Move member access before delete.
2981 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
2983         * tree-inline.c (expand_call_inline): Split block at stmt
2984         before the call.
2986 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2988         PR target/68163
2989         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
2990         are now unused after splitting mov{sf,sd}_hardfloat.
2991         (f32_lr2): Likewise.
2992         (f32_lm): Likewise.
2993         (f32_lm2): Likewise.
2994         (f32_li): Likewise.
2995         (f32_li2): Likewise.
2996         (f32_lv): Likewise.
2997         (f32_sr): Likewise.
2998         (f32_sr2): Likewise.
2999         (f32_sm): Likewise.
3000         (f32_sm2): Likewise.
3001         (f32_si): Likewise.
3002         (f32_si2): Likewise.
3003         (f32_sv): Likewise.
3004         (f32_dm): Likewise.
3005         (f32_vsx): Likewise.
3006         (f32_av): Likewise.
3007         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
3008         For movsf, order stores so the VSX stores occur before the GPR
3009         store which encourages the register allocator to use a traditional
3010         FPR instead of a GPR.  For movsd, order the stores so that the GPR
3011         store comes before the VSX stores to allow the power6 to work.
3012         This is due to the power6 not having a 32-bit integer store
3013         instruction from a FPR.
3014         (movsf_hardfloat): Likewise.
3015         (movsd_hardfloat): Likewise.
3017 2017-05-09  Martin Sebor  <msebor@redhat.com>
3019         PR translation/80280
3020         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
3021         added in r247778.
3023         PR translation/80280
3024         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
3025         data member added in r247778.
3026         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
3028 2017-05-09  Nathan Sidwell  <nathan@acm.org>
3030         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
3032         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
3033         typedefs.
3035 2017-05-09  Marek Polacek  <polacek@redhat.com>
3037         * doc/invoke.texi: Fix typo.
3039 2017-05-09  Richard Biener  <rguenther@suse.de>
3041         * tree-vrp.c (vrp_val_is_max): Adjust comment.
3042         (vrp_val_is_min): Likewise.
3043         (set_value_range_to_value): Likewise.
3044         (set_value_range_to_nonnegative): Likewise.
3045         (gimple_assign_nonzero_p): Likewise.
3046         (gimple_stmt_nonzero_p): Likewise.
3047         (vrp_int_const_binop): Likewise.  Remove unreachable case.
3048         (adjust_range_with_scev): Adjust comments.
3049         (compare_range_with_value): Likewise.
3050         (extract_range_from_phi_node): Likewise.
3051         (test_for_singularity): Likewise.
3053 2017-05-09  Richard Biener  <rguenther@suse.de>
3055         * tree-vrp.c (get_single_symbol): Add assert that we don't
3056         get overflowed constants as invariant part.
3057         (compare_values_warnv): Add comment before the TREE_NO_WARNING
3058         checks.  Use wi::cmp instead of recursing for integer constants.
3059         (compare_values): Just ignore whether we assumed undefined
3060         overflow instead of failing the compare.
3061         (extract_range_for_var_from_comparison_expr): Add comment before the
3062         TREE_NO_WARNING sets.
3063         (test_for_singularity): Likewise.
3064         (extract_range_from_comparison): Do not disable optimization
3065         when we assumed undefined overflow.
3066         (extract_range_basic): Remove init of unused var.
3068 2017-05-09  Richard Biener  <rguenther@suse.de>
3070         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
3071         (extract_range_from_multiplicative_op_1): Adjust.
3072         (extract_range_from_binary_expr_1): Use int_const_binop.
3074 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3076         PR target/80101
3077         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
3078         rs6000_store_data_bypass_p in seven define_bypass directives and
3079         in several comments.
3080         * config/rs6000/rs6000-protos.h: Add prototype for
3081         rs6000_store_data_bypass_p function.
3082         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
3083         function implements slightly different (rs6000-specific) semantics
3084         than store_data_bypass_p, returning false rather than aborting
3085         with assertion error when arguments do not satisfy the
3086         requirements of store data bypass.
3087         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
3088         rs6000_store_data_bypass_p.
3090 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
3092         * config/xtensa/xtensa-protos.h
3093         (xtensa_initial_elimination_offset): New declaration.
3094         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
3095         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
3096         macro definition, add case for FRAME_POINTER_REGNUM when
3097         FRAME_GROWS_DOWNWARD.
3098         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
3099         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
3100         xtensa_initial_elimination_offset.
3102 2017-05-08  Nathan Sidwell  <nathan@acm.org>
3104         * doc/invoke.texi: Alphabetize -fdump options.
3106 2017-05-08  Martin Sebor  <msebor@redhat.com>
3108         PR translation/80280
3109         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
3111 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3113         * target.def (compute_frame_layout): New optional target hook.
3114         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
3115         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
3116         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
3117         target hook.
3118         * reload1.c (verify_initial_elim_offsets): Likewise.
3119         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
3120         (use_simple_return_p): Call arm_compute_frame_layout if needed.
3121         (arm_get_frame_offsets): Split up into this ...
3122         (arm_compute_frame_layout): ... and this function.
3124 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
3126         * config/aarch64/constraints.md (Usa): New constraint.
3127         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
3129 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3131         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
3132         with_multilib_list after it has been checked.
3134 2017-05-08  Richard Biener  <rguenther@suse.de>
3136         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
3137         (bitmap_set_subtract_values): Likewise.
3139 2017-05-08  Richard Biener  <rguenther@suse.de>
3141         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
3142         (gimple_assign_nonzero): ... this and remove strict_overflow_p
3143         argument.
3144         (gimple_stmt_nonzero_warnv_p): Rename to ...
3145         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
3146         argument.
3147         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
3148         (extract_range_basic): Adjust, do not disable propagation on
3149         strict overflow sensitive simplification.
3150         (vrp_visit_cond_stmt): Likewise.
3152 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
3154         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
3155         body size unconditionally.
3157 2017-05-07  Jeff Law  <law@redhat.com>
3159         Revert:
3160         2017-05-06  Jeff Law  <law@redhat.com>
3161         PR tree-optimization/78496
3162         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3163         code.
3165         PR tree-optimization/78496
3166         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3167         (simplify_stmt_using_ranges): Call it.
3168         (vrp_dom_walker::before_dom_children): Extract equivalences
3169         from an ASSERT_EXPR with an equality comparison against a
3170         constant.
3172 2017-05-06  Jeff Law  <law@redhat.com>
3174         PR tree-optimization/78496
3175         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3176         code.
3178         PR tree-optimization/78496
3179         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3180         (simplify_stmt_using_ranges): Call it.
3181         (vrp_dom_walker::before_dom_children): Extract equivalences
3182         from an ASSERT_EXPR with an equality comparison against a
3183         constant.
3185 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
3187         * lra-constraints.c (lra_copy_reg_equiv): New function.
3188         (split_reg): Use it to copy equivalence information from the
3189         original register to the spill register.
3191 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
3193         PR rtl-optimization/75964
3194         * simplify-rtx.c (simplify_const_relational_operation): Remove
3195         invalid handling of comparisons of integer ABS.
3197 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
3199         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
3200         initialize to zero.
3201         (init_regs): Remove declaration.
3202         (function_arg_advance_32): Initialize error_p as boolean variable.
3204 2017-05-05  Nathan Sidwell  <nathan@acm.org>
3206         * store-motion.c (remove_reachable_equiv_notes): Reformat long
3207         lines.  Use for (;;).
3209 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3211         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
3212         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
3213         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
3214         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
3215         VF=2 that require versioning.
3217 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3219         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
3220         int.
3222 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3224         * diagnostic.h (diagnostic_override_option_index): Convert from
3225         macro to inline function.
3227 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3229         * diagnostic.c (last_module_changed_p): New function.
3230         (set_last_module): New function.
3231         (diagnostic_report_current_module): Convert macro usage to
3232         the above functions.
3233         * diagnostic.h (diagnostic_context::last_module): Strengthen
3234         from const line_map * to const line_map_ordinary *.
3235         (diagnostic_last_module_changed): Delete macro.
3236         (diagnostic_set_last_module): Delete macro.
3238 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3240         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
3241         with diagnostic_report_diagnostic.
3242         (diagnostic_n_impl_richloc): Likewise.
3243         * diagnostic.h (report_diagnostic): Delete macro.
3244         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
3245         with diagnostic_report_diagnostic.
3246         * substring-locations.c (format_warning_va): Likewise.
3248 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3250         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
3251         save/restor of format_spec.  Move option-printing code to...
3252         (print_option_information): ...this new function, and
3253         reimplement by simply printing to the pretty_printer,
3254         rather than appending to the format string.
3256 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3258         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
3259         handling logic into...
3260         (update_effective_level_from_pragmas): ...this new function.
3262 2017-05-04  Andrew Waterman  <andrew@sifive.com>
3264         * config/riscv/riscv.opt (mstrict-align): New option.
3265         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
3266         (SLOW_UNALIGNED_ACCESS): Define.
3267         (riscv_slow_unaligned_access): Declare.
3268         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
3269         field.
3270         (riscv_slow_unaligned_access): New variable.
3271         (rocket_tune_info): Set slow_unaligned_access to true.
3272         (optimize_size_tune_info): Set slow_unaligned_access to false.
3273         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
3274         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
3275         (riscv_option_override): Set riscv_slow_unaligned_access.
3276         * doc/invoke.texi: Add -mstrict-align to RISC-V.
3278 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
3280         * config/riscv/riscv.md: Unify indentation.
3282 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3284         PR target/79038
3285         PR target/79202
3286         PR target/79203
3287         * config/rs6000/rs6000.md (u code attribute): Add FIX and
3288         UNSIGNED_FIX.
3289         (extendsi<mode>2): Add support for doing sign extension via
3290         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
3291         don't have ISA 3.0 instructions.
3292         (extendsi<mode>2 splitter): Likewise.
3293         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
3294         generate the normal insns since SImode can now go in vector
3295         registers.  Disallow the special UNSPECs needed for previous
3296         machines to hide SImode being used.  Add new insns
3297         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
3298         (fix_trunc<mode>si2_stfiwx): Likewise.
3299         (fix_trunc<mode>si2_internal): Likewise.
3300         (fixuns_trunc<mode>si2): Likewise.
3301         (fixuns_trunc<mode>si2_stfiwx): Likewise.
3302         (fctiw<u>z_<mode>_smallint): Likewise.
3303         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
3304         of floating point to 32-bit integer from doing a direct move to
3305         the GPR registers to do a store.
3306         (fctiwz_<mode>): Break long line.
3308 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
3310         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
3311         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
3312         (addr_list, addr_offset_valid_p): New.
3313         (split_address_groups): Check offset validity with above function.
3314         (gt-tree-ssa-loop-ivopts.h): Include header file.
3316 2017-05-05  Nathan Sidwell  <nathan@acm.org>
3318         * config.gcc (arm*-*-*): Add missing 'fi'.
3320 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
3322         * doc/invoke.texi (-fopt-info): Explicitly say order of options
3323         included in -fopt-info does not matter.
3324         * doc/optinfo.texi (-fopt-info): Fix description of default
3325         behavour. Explicitly say order of options included in -fopt-info
3326         does not matter.
3328 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3330         * config.gcc: Allow combinations of aprofile and rmprofile values for
3331         --with-multilib-list.
3332         * config/arm/t-multilib: New file.
3333         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
3334         variables.  Remove setting of ISA and floating-point ABI in
3335         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
3336         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
3337         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
3338         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
3339         CPU options.
3340         * config/arm/t-rmprofile: Likewise except for the matches changes.
3341         * doc/install.texi (--with-multilib-list): Document the combination of
3342         aprofile and rmprofile values and warn about pitfalls in doing that.
3344 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
3346         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
3347         (movdi_aarch64): Likewise.
3349 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
3351         PR tree-optimization/80632
3352         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
3353         field.
3354         (build_arrays): Initialize it for virtual phis.
3355         (fix_phi_nodes): Use it for virtual phis.
3357         PR tree-optimization/80558
3358         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
3359         [x, y] op z into [x op, y op z] for op & or | if conditions
3360         are met.
3362 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3363             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3365         PR target/71607
3366         * config/arm/arm.md (use_literal_pool): Remove.
3367         (64-bit immediate split): No longer takes cost into consideration
3368         if arm_disable_literal_pool is enabled.
3369         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
3370         used when arm_disable_literal_pool is enabled.
3371         (arm_max_const_double_inline_cost): Remove use of
3372         arm_disable_literal_pool.
3373         (push_minipool_fix): Add assert.
3374         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
3375         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
3376         (no_literal_pool_sf_immediate): New.
3378 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3380         PR tree-optimization/80613
3381         * tree-ssa-dce.c (propagate_necessity): Remove cases for
3382         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
3384 2017-05-05  Richard Biener  <rguenther@suse.de>
3386         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
3388 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
3390         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
3391         of this flag from insn conditions due to removal from r247495.
3393 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
3395         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
3396         New function.
3397         (arm_early_store_addr_dep_ptr): Likewise.
3398         * config/arm/aarch-common-protos.h
3399         (arm_early_load_addr_dep_ptr): Add prototype.
3400         (arm_early_store_addr_dep_ptr): Likewise.
3401         * config/arm/cortex-a53.md: Add new bypasses.
3403 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
3405         * tree.c (next_type_uid): Change type to unsigned.
3406         (type_hash_canon): Decrement back next_type_uid if
3407         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
3408         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
3409         if possible.
3411 2017-05-04  Martin Sebor  <msebor@redhat.com>
3413         * builtins.c: Fix a trivial typo in a comment.
3415         PR middle-end/79234
3416         * builtins.c (check_sizes): Adjust to handle reading past the end.
3417         Avoid printing excessive upper bound of ranges.  Use %E to print
3418         tree nodes instead of converting them to %wu.
3419         (expand_builtin_memchr): New function.
3420         (compute_dest_size): Rename...
3421         (compute_objsize): ...to this.
3422         (expand_builtin_memcpy): Adjust.
3423         (expand_builtin_mempcpy): Adjust.
3424         (expand_builtin_strcat): Adjust.
3425         (expand_builtin_strcpy): Adjust.
3426         (check_strncat_sizes): Adjust.
3427         (expand_builtin_strncat): Adjust.
3428         (expand_builtin_strncpy): Adjust and simplify.
3429         (expand_builtin_memset): Adjust.
3430         (expand_builtin_bzero): Adjust.
3431         (expand_builtin_memcmp): Adjust.
3432         (expand_builtin): Handle memcmp.
3433         (maybe_emit_chk_warning): Check strncat just once.
3435 2017-05-04  Martin Sebor  <msebor@redhat.com>
3437         PR preprocessor/79214
3438         PR middle-end/79222
3439         PR middle-end/79223
3440         * builtins.c (check_sizes): Add inlining context and issue
3441         warnings even when -Wno-system-headers is set.
3442         (check_strncat_sizes): Same.
3443         (expand_builtin_strncat): Same.
3444         (expand_builtin_memmove): New function.
3445         (expand_builtin_stpncpy): Same.
3446         (expand_builtin): Handle memmove and stpncpy.
3448 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
3450         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
3451         which is not used any more.
3453 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3455         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
3457 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3459         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
3460         (cortexa53_tunings): Likewise.
3461         (cortexa57_tunings): Likewise.
3462         (cortexa72_tunings): Likewise.
3463         (cortexa73_tunings): Likewise.
3465 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3467         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
3468         Set loop alignment to 8.
3470 2017-05-04  Martin Sebor  <msebor@redhat.com>
3472         PR translation/80280
3473         * builtins.c (expand_builtin_object_size): Add missing quoting to
3474         %D and like directives.
3475         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
3476         (hsa_type_for_tree_type): Same.
3477         (verify_function_arguments): Same.
3478         * symtab.c (symbol_table::change_decl_assembler_name): Same.
3479         * varasm.c (get_section): Same.
3480         (mark_weak): Same.
3482 2017-05-04  Martin Sebor  <msebor@redhat.com>
3484         PR translation/80280
3485         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
3487 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3489         * config/aarch64/aarch64.c (generic_addrcost_table):
3490         Change HI/TI mode setting.
3492 2017-05-04  Martin Jambor  <mjambor@suse.cz>
3494         PR tree-optimization/80622
3495         * tree-sra.c (comes_initialized_p): New function.
3496         (build_accesses_from_assign): Only set write lazily when
3497         comes_initialized_p is false.
3498         (analyze_access_subtree): Use comes_initialized_p.
3499         (propagate_subaccesses_across_link): Assert !comes_initialized_p
3500         instead of testing for PARM_DECL.
3502 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3504         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
3505         constraint on operand 0 to allow more general addressing modes.
3506         Adjust output template.
3507         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
3508         New function.
3509         * config/aarch64/aarch64-protos.h
3510         (aarch64_address_valid_for_prefetch_p): Declare prototype.
3511         * config/aarch64/constraints.md (Dp): New address constraint.
3512         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
3513         predicate.
3515 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
3517         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
3518         update use of estimate_ipcp_clone_size_and_time.
3519         (estimate_local_effects): Update use of
3520         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
3521         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
3522         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
3523         Return nonspecialized time.
3525 2017-05-04  Richard Biener  <rguenther@suse.de>
3527         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
3528         for the last VUSE which def dominates the PHI.  Directly call
3529         maybe_skip_until.
3530         (get_continuation_for_phi_1): Remove.
3532 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
3534         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
3535         to explain the use of truncating division.  Cap the number of
3536         iterations to the maximum given by nb_iterations_upper_bound,
3537         if defined.
3539 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3541         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
3542         * configure: Regenerate.
3543         * config.in: Regenerate.
3544         * config/i386/driver-mingw32.c: new file.
3545         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
3546         * config.host: Link driver-mingw32.o on MinGW host.
3547         * doc/install.texi: Document new --enable-mingw-wildcard configure
3548         option.
3550 2017-05-04  Marek Polacek  <polacek@redhat.com>
3552         PR tree-optimization/80612
3553         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
3555 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3556             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
3558         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
3559         (movt splitter): Likewise.
3560         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
3561         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
3562         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
3563         block for Thumb-1 with MOVT.
3564         (thumb2_legitimate_address_p): Move code block ...
3565         (can_avoid_literal_pool_for_label_p): ... into this new function.
3566         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
3567         literal pool.
3568         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
3569         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
3570         "M-profile targets with the MOVT instruction".
3572 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3574         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
3575         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
3576         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
3578 2017-05-04  Martin Liska  <mliska@suse.cz>
3580         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
3581         variable cond_code.
3583 2017-05-04  Richard Biener  <rguenther@suse.de>
3585         * tree.c (array_at_struct_end_p): Handle arrays at struct
3586         end with flexarrays more conservatively.  Refactor and treat
3587         arrays of arrays or aggregates more strict.  Fix
3588         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
3589         * tree.c (array_at_struct_end_p): Adjust prototype.
3590         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
3591         * gimple-fold.c (get_range_strlen): Likewise.
3592         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
3594 2017-05-04  Richard Biener  <rguenther@suse.de>
3596         PR tree-optimization/31130
3597         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
3598         false.
3599         (supports_overflow_infinity): Likewise.
3600         (is_negative_overflow_infinity): Likewise.
3601         (is_positive_overflow_infinity): Likewise.
3602         (is_overflow_infinity): Likewise.
3603         (stmt_overflow_infinity): Likewise.
3604         (overflow_infinity_range_p): Likewise.
3605         (usable_range_p): Remove as always returning true.
3606         (make_overflow_infinity): Remove.
3607         (negative_overflow_infinity): Likewise.
3608         (positive_overflow_infinity): Likewise.
3609         (avoid_overflow_infinity): Likewise.
3610         (set_value_range): Adjust accordingly.
3611         (set_value_range_to_nonnegative): Likewise, remove now unused
3612         overflow_infinity arg.
3613         (vrp_operand_equal_p): Adjust.
3614         (update_value_range): Likewise.
3615         (range_int_cst_singleton_p): Likewise.
3616         (operand_less_p): Likewise.
3617         (compare_values_warnv): Likewise.
3618         (extract_range_for_var_from_comparison_expr): Likewise.
3619         (vrp_int_const_binop): Likewise.
3620         (zero_nonzero_bits_from_vr): Likewise.
3621         (extract_range_from_multiplicative_op_1): Likewise.
3622         (extract_range_from_binary_expr_1): Likewise.
3623         (extract_range_from_unary_expr): Likewise.
3624         (extract_range_from_comparison): Likewise.
3625         (extract_range_basic): Likewise.
3626         (adjust_range_with_scev): Likewise.
3627         (compare_ranges): Likewise.
3628         (compare_range_with_value): Likewise.
3629         (dump_value_range): Likewise.
3630         (test_for_singularity): Likewise, remove strict_overflow_p parameter
3631         never used.
3632         (simplify_cond_using_ranges): Adjust.
3634 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
3636         * brig-builtins.def: Added a builtin for class_f64.
3637         * builtin-types.def: Added a builtin type needed by class_f64.
3639 2017-05-03  Jason Merrill  <jason@redhat.com>
3641         * timevar.def: Add TV_CONSTEXPR.
3643 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
3645         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
3647 2017-05-03  Martin Jambor  <mjambor@suse.cz>
3649         * ipa-prop.c (ipa_update_after_lto_read): Removed.
3650         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
3651         * ipa-cp.c (ipcp_propagate_stage): Do not call
3652         ipa_update_after_lto_read.
3653         * ipa-inline.c (ipa_inline): Likewise.
3655 2017-05-03  Martin Jambor  <mjambor@suse.cz>
3657         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
3658         tag.  Added a default constructor and a destructor.
3659         (ipa_edge_args_sum_t): New class;
3660         (ipa_edge_args_sum): Declare.
3661         (ipa_edge_args_vector): Remove declaration.
3662         (IPA_EDGE_REF): Use ipa_edge_args_sum.
3663         (ipa_free_edge_args_substructures): Remove declaration.
3664         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
3665         (ipa_edge_args_info_available_for_edge_p): Likewise.
3666         * ipa-prop.c (ipa_edge_args_vector): Removed.
3667         (edge_removal_hook_holder): Likewise.
3668         (edge_duplication_hook_holder): Likewise.
3669         (ipa_edge_args_sum): New variable.
3670         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
3671         ipa_edge_args_vector.
3672         (ipa_free_edge_args_substructures): Likewise.
3673         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
3674         ipa_edge_args_vector.
3675         (ipa_edge_removal_hook): Turned into method
3676         ipa_edge_args_sum_t::remove.
3677         (ipa_edge_duplication_hook): Turned into method
3678         ipa_edge_args_sum_t::duplicate.
3679         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
3680         registering edge hooks.
3681         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
3682         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
3683         ipa_edge_args_sum instead of ipa_edge_args_vector.
3684         * ipa-profile.c (ipa_profile): Likewise.
3686 2017-05-03  Martin Jambor  <mjambor@suse.cz>
3688         * symbol-summary.h (function_summary): New method exists.
3689         (function_summary::symtab_removal): Deallocate through release.
3690         (call_summary): New class.
3691         (gt_ggc_mx): New overload.
3692         (gt_pch_nx): Likewise.
3693         (gt_pch_nx): Likewise.
3695 2017-05-03  Jeff Law  <law@redhat.com>
3697         PR tree-optimization/78496
3698         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
3699         from simplify_cond_using_ranges.  Split off code to walk
3700         backwards through casts into ...
3701         (simplify_cond_using_ranges_2): New function.
3702         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
3703         (execute_vrp): After identifying jump threads, call
3704         simplify_cond_using_ranges_2.
3706 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
3708         PR bootstrap/80609
3709         * ipa-inline.h (inline_summary): Add ctor.
3710         (create_ggc): Do not use ggc_cleared_alloc.
3712 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
3713             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3715         * gcc.c (handle_braces): Support escaping in switch matching
3716         text.
3717         * doc/invoke.texi (Spec Files): Document it.
3718         Remove superfluous @code markup in items.
3720 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
3722         * diagnostic-show-locus.c (struct column_range): New struct.
3723         (get_affected_columns): New function.
3724         (get_printed_columns): New function.
3725         (struct correction): New struct.
3726         (correction::ensure_capacity): New function.
3727         (correction::ensure_terminated): New function.
3728         (struct line_corrections): New struct.
3729         (line_corrections::~line_corrections): New dtor.
3730         (line_corrections::add_hint): New function.
3731         (layout::print_trailing_fixits): Reimplement in terms of the new
3732         classes.
3733         (selftest::test_overlapped_fixit_printing): New function.
3734         (selftest::diagnostic_show_locus_c_tests): Call it.
3736 2017-05-03  Nathan Sidwell  <nathan@acm.org>
3738         Canonicalize canonical type hashing
3739         * tree.h (type_hash_canon_hash): Declare.
3740         * tree.c (type_hash_list, attribute_hash_list): Move into
3741         type_hash_canon_hash.
3742         (build_type_attribute_qual_variant): Break out hash code calc into
3743         type_hash_canon_hash.
3744         (type_hash_canon_hash): New.  Generic type hash computation.
3745         (build_range_type_1, build_array_type_1, build_function_type,
3746         build_method_type_directly, build_offset_type, build_complex_type,
3747         make_vector_type): Call it.
3749 2017-05-03  Richard Biener  <rguenther@suse.de>
3751         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3752         When all DRs have unknown misaligned do not always peel
3753         when there is a store but apply the same costing model as if
3754         there were only loads.
3756 2017-05-03  Richard Biener  <rguenther@suse.de>
3758         Revert
3759         PR tree-optimization/80492
3760         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3761         compare_base_decls returning dont-know properly.
3763 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3765         * config/arm/iterators.md (CCSI): New mode iterator.
3766         (arch): New mode attribute.
3767         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
3768         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
3769         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
3770         code iterator for success result mode.
3771         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
3772         the corresponding new insn generators.
3774 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
3776         Revert r247509
3777         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3778         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3780 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3782         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
3783         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
3784         (DDR_A): Wrap DDR argument in brackets.
3785         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
3786         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
3787         (DDR_REVERSED_P): Likewise.
3789 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
3791         PR tree-optimization/79472
3792         * tree-switch-conversion.c (struct switch_conv_info): Add
3793         contiguous_range and default_case_nonstandard fields.
3794         (collect_switch_conv_info): Compute contiguous_range and
3795         default_case_nonstandard fields, don't clear final_bb if
3796         contiguous_range and only the default case doesn't have the required
3797         structure.
3798         (check_all_empty_except_final): Set default_case_nonstandard instead
3799         of failing if contiguous_range and the default case doesn't have empty
3800         block.
3801         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
3802         and only the default case doesn't have the required constants.  Skip
3803         virtual phis.
3804         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
3805         if default_case_nonstandard.
3806         (build_constructors): Build constant 1 just once.  Assert that default
3807         values aren't inserted in between cases if contiguous_range.  Skip
3808         virtual phis.
3809         (build_arrays): Skip virtual phis.
3810         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
3811         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
3812         Handle virtual phis.
3813         (gen_inbound_check): Handle default_case_nonstandard case.
3814         (process_switch): Adjust check_final_bb caller.  Call
3815         gather_default_values with the first non-default case instead of
3816         default case if default_case_nonstandard.
3818 2017-05-02  Nathan Sidwell  <nathan@acm.org>
3820         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
3821         check.  Fix formatting.
3823 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
3825         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
3826         errors when comparing specialized and unspecialized times.
3828 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
3830         * diagnostic-show-locus.c
3831         (layout::should_print_annotation_line_p): Make private.
3832         (layout::print_annotation_line): Make private.
3833         (layout::annotation_line_showed_range_p): Make private.
3834         (layout::show_ruler): Make private.
3835         (layout::print_source_line): Make private.  Pass in line and
3836         line_width, rather than calling location_get_source_line.  Drop
3837         returned value.
3838         (layout::print_leading_fixits): New method.
3839         (layout::print_any_fixits): Rename to...
3840         (layout::print_trailing_fixits): ...this, and make private.
3841         Don't print newline fixits.
3842         (diagnostic_show_locus): Move logic for printing one row into...
3843         (layout::print_line): ...this new function.  Move the
3844         location_get_source_line call and error-handling from
3845         print_source_line to here.  Call print_leading_fixits, and rename
3846         print_any_fixits to print_trailing_fixits.
3847         (selftest::test_fixit_insert_containing_newline): Update now that
3848         newlines are partially supported.
3849         (selftest::test_fixit_insert_containing_newline_2): New test.
3850         (selftest::test_fixit_replace_containing_newline): Update comments.
3851         (selftest::diagnostic_show_locus_c_tests): Call the new test.
3852         * edit-context.c (class added_line): New class.
3853         (class edited_line): Describe newline handling in comment.
3854         (edited_line::actually_edited_p): New method.
3855         (edited_line::print_content): Delete redundant decl.
3856         (edited_line::m_predecessors): New field.
3857         (edited_file::print_content): Call edited_line::print_content.
3858         (edited_file::print_diff): Update to support newlines.
3859         (edited_file::print_diff_hunk): Likewise.
3860         (edited_file::print_run_of_changed_lines): New function.
3861         (edited_file::print_diff_line): Convert to...
3862         (print_diff_line): ...this.
3863         (edited_file::get_effective_line_count): New function.
3864         (edited_line::edited_line): Initialize new field m_predecessors.
3865         (edited_line::~edited_line): Clean up m_predecessors.
3866         (edited_line::apply_fixit): Handle newlines.
3867         (edited_line::get_effective_line_count): New function.
3868         (edited_line::print_content): New function.
3869         (edited_line::print_diff_lines): New function.
3870         (selftest::test_applying_fixits_insert_containing_newline): New
3871         test.
3872         (selftest::test_applying_fixits_replace_containing_newline): New
3873         test.
3874         (selftest::insert_line): New function.
3875         (selftest::test_applying_fixits_multiple_lines): Add example of
3876         inserting a line.
3877         (selftest::edit_context_c_tests): Call the new tests.
3879 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3881         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
3882         parameter cand.  Update dump information.
3883         (get_computation_cost): Update uses.
3885 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3887         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
3888         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
3889         (get_computation_at, rewrite_use_address): Update use of
3890         get_computation_aff.
3892 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3894         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
3895         (get_computation): Delete.
3896         (get_computation_cost): Implement like get_computation_cost_at.
3897         Use get_computation_at.
3898         (get_computation_cost_at): Delete.
3899         (rewrite_use_nonlinear_expr): Use get_computation_at.
3900         (rewrite_use_compare, remove_unused_ivs): Ditto.
3902 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3904         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
3906 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3908         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
3909         (ivopts_global_cost_for_size): Rename parameter and update uses.
3910         (iv_ca_recount_cost): Update uses.
3911         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
3912         candidates seperately in n_invs and n_cands.
3913         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
3915 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3917         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
3918         (find_inv_vars_cb): New.
3919         (find_depends): Renamed to ...
3920         (find_inv_vars): ... this.
3921         (add_candidate_1, force_var_cost): Call find_inv_vars.
3922         (split_address_cost, determine_group_iv_cost_cond): Ditto.
3924 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3926         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
3927         inv_vars.  Add inv_exprs.
3928         (struct iv_cand): Rename depends_on to inv_vars.
3929         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
3930         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
3931         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
3932         (dump_cand): Dump inv_vars.
3933         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
3934         (record_invariant, find_depends, add_candidate_1): Ditto.
3935         (set_group_iv_cost, force_var_cost): Ditto.
3936         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
3937         (get_computation_cost_at, get_computation_cost): Ditto.
3938         (determine_group_iv_cost_generic): Ditto.
3939         (determine_group_iv_cost_address): Ditto.
3940         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
3941         (determine_group_iv_costs): Ditto.
3942         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
3943         (iv_ca_set_remove_invariants): Renamed to ...
3944         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
3945         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
3946         (iv_ca_set_add_invariants):  Renamed to ...
3947         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
3948         (iv_ca_set_cp): Use iv_ca_set_add_invs.
3949         (iv_ca_has_deps): Support inv_vars and inv_exprs.
3950         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
3951         (create_new_ivs): Remove useless dump.
3953 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3955         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
3956         iv_cand code.
3957         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
3958         (iv_ca_set_no_cp, create_new_iv): Ditto.
3960 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3962         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3964 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
3966         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
3967         function tree_check2.
3969 2017-05-02  Martin Liska  <mliska@suse.cz>
3971         * doc/gcov.texi: Add missing preposition.
3972         * gcov.c (function_info::function_info): Properly fill up
3973         all member variables.
3975 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
3977         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
3979 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
3981         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
3983 2017-05-02  Martin Liska  <mliska@suse.cz>
3985         PR lto/77954.
3986         * lto-streamer-in.c (lto_read_tree_1): Remove
3987         LTO_STREAMER_DEBUG.
3988         * lto-streamer.c (struct tree_hash_entry): Likewise.
3989         (struct tree_entry_hasher): Likewise.
3990         (tree_entry_hasher::hash): Likewise.
3991         (tree_entry_hasher::equal): Likewise.
3992         (lto_streamer_init): Likewise.
3993         (lto_orig_address_map): Likewise.
3994         (lto_orig_address_get): Likewise.
3995         (lto_orig_address_remove): Likewise.
3996         * lto-streamer.h: Likewise.
3997         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
3998         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
4000 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
4002         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
4003         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
4004         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
4005         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
4006         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
4007         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
4008         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
4009         (mm_maskz_sub_ss): New intrinsics.
4010         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4011         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
4012         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
4013         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
4014         (__builtin_ia32_subss_mask_round): New builtins.
4015         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4016         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
4017         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
4018         Renamed to ...
4019         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
4020         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
4021         Changed to ...
4022         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
4023         ... this.
4025 2017-05-02  Martin Jambor  <mjambor@suse.cz>
4027         PR tree-optimization/78687
4028         * tree-sra.c (access): New field parent.
4029         (process_subtree_disqualification): New function.
4030         (disqualify_candidate): Call it.
4031         (build_accesses_from_assign): Reset write flag if creating an
4032         assighnment link.
4033         (build_access_subtree): Fill in parent field and also prpagate
4034         down grp_write flag.
4035         (create_artificial_child_access): New parameter set_grp_write, set
4036         grp_write to its value.
4037         (propagate_subaccesses_across_link): Also propagate grp_write flag
4038         values.
4039         (propagate_all_subaccesses): Push the closest parent back to work
4040         queue if add_access_to_work_queue returned true.
4042 2017-05-02  Richard Biener  <rguenther@suse.de>
4044         * common.opt (fstrict-overflow): Alias negative to fwrapv.
4045         * doc/invoke.texi (fstrict-overflow): Remove all traces of
4046         -fstrict-overflow documentation.
4047         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
4048         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
4049         flag_strict_overflow.
4050         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
4051         * lto-opts.c (lto_write_options): Do not stream it.
4052         * lto-wrapper.c (merge_and_complain): Do not handle it.
4053         * opts.c (default_options_table): Do not set -fstrict-overflow.
4054         (finish_options): Likewise do not clear it when sanitizing.
4055         * simplify-rtx.c (simplify_const_relational_operation): Do not
4056         test flag_strict_overflow.
4058 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
4060         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
4061         using enabled attribute.
4062         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
4063         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
4064         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
4065         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
4066         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
4067         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
4068         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
4069         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
4070         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
4071         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
4073 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
4075         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
4077 2017-05-02  Richard Biener  <rguenther@suse.de>
4079         PR tree-optimization/80591
4080         Revert
4081         2017-04-10  Richard Biener  <rguenther@suse.de>
4083         * tree-ssa-structalias.c (find_func_aliases): Properly handle
4084         asm inputs.
4086 2017-05-02  Richard Biener  <rguenther@suse.de>
4088         PR tree-optimization/80549
4089         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
4090         (cleanup_tree_cfg_noloop): Create forwarders to known loop
4091         headers if they do not have a preheader.
4093 2017-05-02  Martin Liska  <mliska@suse.cz>
4095         PR other/80589
4096         * common.opt: Fix typo.
4097         * doc/invoke.texi: Likewise.
4099 2017-05-01  Jan Beulich  <jbeulich@suse.com>
4101         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
4102         swapping, add (x,x,m,x,n) alternative.
4104 2017-05-01  Nathan Sidwell  <nathan@acm.org>
4106         * calls.c (combine_pending_stack_adjustment_and_call): Remove
4107         unnecessary unadjusted_alignment check.
4109 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
4111         PR c++/80038
4112         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
4113         operations here.
4114         * gimplify.c (gimplify_cilk_detach): New function.
4115         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
4116         * tree-core.h: Document EXPR_CILK_SPAWN.
4117         * tree.h (EXPR_CILK_SPAWN): Define.
4119 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
4121         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
4122         to use new fixit_hint representation, using the "replace" logic.
4123         (get_line_span_for_fixit_hint): Likewise.
4124         (layout::print_any_fixits): Likewise.
4125         (selftest::test_one_liner_many_fixits): Rename to...
4126         (selftest::test_one_liner_many_fixits_1): ...this, and update
4127         comment and expected output to reflect that the multiple fix-it
4128         hints are now consolidated into one insertion.
4129         (selftest::test_one_liner_many_fixits_2): New test.
4130         (selftest::test_diagnostic_show_locus_one_liner): Update for
4131         above.
4132         (selftest::test_fixit_consolidation): Update for fix-it API
4133         change.
4134         * diagnostic.c (print_parseable_fixits): Likewise.
4135         * edit-context.c (edited_line::m_line_events): Convert from
4136         auto_vec <line_event *> to auto_vec <line_event>.
4137         (class line_event): Convert from abstract base class to a concrete
4138         class, taking over the role of replace_event.
4139         (class insert_event): Delete.
4140         (class replace_event): Rename to class line_event.  Convert to
4141         half-open range.
4142         (edit_context::add_fixits): Reimplement.
4143         (edit_context::apply_insert): Delete.
4144         (edit_context::apply_replace): Rename to...
4145         (edit_context::apply_fixit): ...this.  Convert to half-open range.
4146         (edited_file::apply_insert): Delete.
4147         (edited_file::apply_replace): Rename to...
4148         (edited_file::apply_fixit): ...this.
4149         (edited_line::~edited_line): Drop deletion of events.
4150         (edited_line::apply_insert): Delete.
4151         (edited_line::apply_replace): Rename to...
4152         (edited_line::apply_fixit): ...this.  Convert to half-open range.
4153         Update for change to type of m_line_events.
4154         * edit-context.h (edit_context::apply_insert): Delete.
4155         (edit_context::apply_replace): Rename to...
4156         (edit_context::apply_fixit): ...this.
4158 2017-05-01  Martin Sebor  <msebor@redhat.com>
4160         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
4161         known.
4163 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
4165         PR target/68491
4166         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
4167         __get_cpuid_max returns 0.
4168         (__get_cpuid_count): Ditto.
4170 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4172         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
4173         replacement expression is another instance of one of its arguments.
4175 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
4177         PR target/79430
4178         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
4179         check for stack push/pop autoinc.
4180         * config/i386/i386.c (ix86_agi_dependent): Return false
4181         if the only reason why modified_in_p returned true is that
4182         addr is SP based and set_insn is a push or pop.
4184 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
4186         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
4187         overflow check.
4189 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
4191         PR ipa/79224
4192         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
4193         (account_size_time): Use two predicates - exec_pred and
4194         nonconst_pred_ptr.
4195         (evaluate_conditions_for_known_args): Compute both clause and
4196         nonspec_clause.
4197         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
4198         (inline_summary_t::duplicate): Update.
4199         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
4200         separately.
4201         (compute_inline_parameters): Likewise.
4202         (estimate_edge_size_and_time): Update caluclation of time.
4203         (estimate_node_size_and_time): Compute both time and nonspecialized
4204         time.
4205         (estimate_ipcp_clone_size_and_time): Update.
4206         (inline_merge_summary): Update.
4207         (do_estimate_edge_time): Update.
4208         (do_estimate_edge_size): Update.
4209         (do_estimate_edge_hints): Update.
4210         (inline_read_section, inline_write_summary): Stream both new predicates.
4211         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
4212         as argument.
4213         (compute_inlined_call_time): Cleanup.
4214         (big_speedup_p): Update.
4215         (edge_badness): Update.
4216         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
4217         (size_time_entry): Replace predicate by exec_predicate and
4218         nonconst_predicate.
4219         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
4220         (estimate_edge_time): Return also nonspec_time.
4221         (reset_edge_growth_cache): Update.
4223 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
4225         PR rtl-optimization/80491
4226         * ifcvt.c (noce_process_if_block): When looking for x setter
4227         with missing else_bb, don't check only the insn right before
4228         cond_earliest, but look for the last insn that x is modified in
4229         within the same bb.
4231         PR rtl-optimization/80491
4232         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
4234 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
4236         PR tree-optimization/80487
4237         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
4239 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4241         PR tree-optimization/79697
4242         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
4243         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
4244         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
4245         BUILT_IN_STRNDUP.
4246         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
4247         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
4249 2017-04-28  Martin Sebor  <msebor@redhat.com>
4251         PR tree-optimization/80523
4252         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
4253         (init_target_to_host_charmap, target_to_host, target_strtol10): New
4254         functions.
4255         (maybe_warn, format_directive, parse_directive): Use new functions.
4256         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
4258 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
4260         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
4262 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4264         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
4265         target_header_dir): Set correctly.
4266         * configure: Regenerated.
4267         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
4268         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
4269         instead of SYSTEM_HEADER_DIR.
4271 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
4273         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
4274         (estimate_local_effects): Likewise.
4275         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
4276         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
4277         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
4278         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
4279         do_estimate_edge_time, estimate_edge_time): Likewise.
4280         * ipa-inline-analysis.c (estimate_node_size_and_time,
4281         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
4282         (estimate_time_after_inlining): Remove.
4284 2017-04-28  Martin Liska  <mliska@suse.cz>
4286         * doc/gcov.texi: Enhance documentation of gcov.
4288 2017-04-28  Martin Liska  <mliska@suse.cz>
4290         * doc/gcov.texi: Sort options in alphabetic order.
4291         * doc/gcov-dump.texi: Likewise.
4292         * doc/gcov-tool.texi: Likewise.
4293         * gcov.c (print_usage): Likewise.
4294         * gcov-dump.c (print_usage): Likewise.
4295         * gcov-tool.c (print_merge_usage_message): Likewise.
4296         (print_rewrite_usage_message): Likewise.
4297         (print_overlap_usage_message): Likewise.
4299 2017-04-28  Martin Liska  <mliska@suse.cz>
4301         PR gcov-profile/53915
4302         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
4304 2017-04-28  Martin Liska  <mliska@suse.cz>
4306         PR gcov-profile/79891
4307         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
4308         is marked by compiler as living on a line.
4309         (get_cycles_count): Remove usage of the union.
4310         (output_intermediate_file): Likewise.
4311         (find_source): Fix GNU coding style.
4312         (accumulate_line_counts): Remove old non-all block mode.
4313         (output_lines): Remove usage of the union.
4314         * profile.c (output_location): Include all BBs, even if
4315         belonging to a same line (and file) as a previous BB.
4317 2017-04-28  Martin Liska  <mliska@suse.cz>
4319         * gcov.c (process_args): Handle new argument 'w'.
4320         (read_graph_file): Assign ID to BBs.
4321         (output_branch_count): Display BB # if verbose flag is set.
4322         (output_lines): Likewise for arcs.
4323         (print_usage): Add '--verbose' option help.
4324         * doc/gcov.texi: Document --verbose (-w) option.
4326 2017-04-28  Martin Liska  <mliska@suse.cz>
4328         * gcov.c (struct block_location_info): New struct.
4329         (process_file): Fill up the new structure.
4330         (read_graph_file): Replace usage of encoding by the newly added
4331         struct.
4332         (add_line_counts): Likewise.
4333         (accumulate_line_counts): Remove usage of the union.
4334         (function_info::function_info): New function.
4335         (function_info::~function_info): Likewise.
4336         (process_file): Call delete instead of release_function.
4337         (release_function): Release the function.
4338         (release_structures): Call delete instead of release_function.
4339         (solve_flow_graph): Replace usage of num_blocks.
4340         (find_exception_blocks): Likewise.
4341         (output_lines): Fix GNU coding style.
4343 2017-04-28  Martin Liska  <mliska@suse.cz>
4345         PR driver/56469
4346         * coverage.c (coverage_remove_note_file): New function.
4347         * coverage.h: Declare the function.
4348         * toplev.c (finalize): Clean if an error has been seen.
4350 2017-04-28  Martin Liska  <mliska@suse.cz>
4352         PR gcov-profile/80031
4353         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
4354         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
4355         * gcov.c (read_graph_file): Read just number of blocks.
4356         * profile.c (branch_prob): Do not stream 0 flags per a basic
4357         block.
4359 2017-04-28  Martin Liska  <mliska@suse.cz>
4361         * gcov-dump.c (tag_*): Add new argument to declarations.
4362         (dump_gcov_file): Likewise.
4363         (tag_blocks): Add and use new argument depth.
4364         (tag_arcs): Likewise.
4365         (tag_lines): Likewise.
4366         (tag_counters): Likewise.
4367         (tag_summary): Likewise.
4368         (dump_working_sets): Use depth to do a proper indentation.
4370 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
4372         PR bootstrap/80531
4373         * cgraph.h (symtab_node::debug_symtab): No longer inline.
4374         * symtab.c (symtab_node::debug_symtab): Move definition here.
4376 2017-04-28  Richard Biener  <rguenther@suse.de>
4378         * lto-streamer.h (LTO_major_version): Bump to 7.
4380 2017-04-28  Richard Biener  <rguenther@suse.de>
4382         * tree-vrp.c (assert_info): New struct.
4383         (add_assert_info): New helper.
4384         (register_edge_assert_for_2): Refactor to add asserts to a vector
4385         of assert_info.
4386         (register_edge_assert_for_1): Likewise.
4387         (register_edge_assert_for): Likewise.
4388         (finish_register_edge_assert_for): New helper actually registering
4389         asserts where live on edge.
4390         (find_conditional_asserts): Adjust.
4391         (find_switch_asserts): Likewise.
4392         (evrp_dom_walker::try_find_new_range): Generalize.
4393         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
4395 2017-04-27  Marek Polacek  <polacek@redhat.com>
4397         PR sanitizer/80349
4398         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
4399         arg10 and arg11 to itype.
4401 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
4403         * doc/extend.texi (Object Size Checking): Improve grammar.
4405 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
4407         PR target/80530
4408         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
4409         that the logic for permitting reciprocal estimates matches that
4410         in use_rsqrt_p.
4412 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4414         PR c++/80534
4415         * tree.c (type_cache_hasher::equal): Only compare
4416         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
4417         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
4418         non-aggregate element types.
4419         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
4420         about the flag on ARRAY_TYPEs in the comment, formatting fix.
4422 2017-04-27  Richard Biener  <rguenther@suse.de>
4424         PR middle-end/80533
4425         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
4426         stripping ARRAY_REFs from MEM_EXPR make sure we're not
4427         keeping a reference to a trailing array.
4429 2017-04-27  Richard Biener  <rguenther@suse.de>
4431         PR middle-end/80539
4432         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
4433         being in loop-closed SSA form conservatively.
4434         (chrec_fold_multiply_poly_poly): Likewise.
4436 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
4438         PR middle-end/79665
4439         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
4440         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
4442 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4444         PR target/77728
4445         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
4446         (aarch64_function_arg_alignment): Return unsigned int again, but still
4447         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
4448         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
4449         Don't emit -Wpsabi note.
4450         (aarch64_function_arg_boundary): Likewise.
4451         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
4452         caller.
4454 2017-04-26  Nathan Sidwell  <nathan@acm.org>
4456         * tree.h (crc32_unsigned_n): Declare.
4457         (crc32_unsigned, crc32_unsigned): Make inline.
4458         * tree.c (crc32_unsigned_bits): Replace with ...
4459         (crc32_unsigned_n): ... this.
4460         (crc32_unsigned, crc32_byte): Remove.
4461         (crc32_string): Remove unnecessary braces.
4463 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
4465         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
4466         * ipa-inline-analysis.c (MAX_TIME): Remove.
4467         (account_size_time): Use sreal for time.
4468         (dump_inline_summary): Update.
4469         (estimate_function_body_sizes): Update.
4470         (estimate_edge_size_and_time): Update.
4471         (estimate_calls_size_and_time): Update.
4472         (estimate_node_size_and_time): Update.
4473         (inline_merge_summary): Update.
4474         (inline_update_overall_summary): Update.
4475         (estimate_time_after_inlining): Update.
4476         (inline_read_section): Update.
4477         (inline_write_summary): Update.
4478         * ipa-inline.c (compute_uninlined_call_time): Update.
4479         (compute_inlined_call_time): Update.
4480         (recursive_inlining): Update.
4481         (inline_small_functions): Update.
4482         (dump_overall_stats): Update.
4483         * ipa-inline.h: Include sreal.h.
4484         (size_time_entry): Turn time to sreal.
4485         (inline_summary): Turn self_time nad time to sreal.
4487 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
4489         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
4490         data-streamer.h
4491         (sreal::stream_out, sreal::stream_in): New.
4492         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
4494 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
4496         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
4497         environment.
4499 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
4501         PR target/70799
4502         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4503         Handle ASHIFTRT.
4504         (dimode_scalar_chain::compute_convert_gain): Ditto.
4505         (dimode_scalar_chain::make_vector_copies): Ditto.
4506         (dimode_scalar_chain::convert_reg): Ditto.
4507         (dimode_scalar_chain::convert_insn): Ditto.
4508         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
4509         (VI248_AVX512BW_1): New mode iterator.
4510         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
4511         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
4512         mode iterator.
4514 2017-04-25  Martin Sebor  <msebor@redhat.com>
4516         PR tree-optimization/80497
4517         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
4518         constants are representable in HOST_WIDE_INT.
4519         (parse_directive): Ditto.
4521 2017-04-25  Martin Sebor  <msebor@redhat.com>
4523         PR bootstrap/80486
4524         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
4525         (new_zero_array): Adjust signature.
4526         (dom_info::dom_init): Used unsigned rather that size_t.
4527         (dom_info::dom_info): Same.
4529 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4530             Jakub Jelinek  <jakub@redhat.com>
4532         PR target/77728
4533         * config/arm/arm.c: Include gimple.h.
4534         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
4535         returns negative, increment ncrn only if it returned positive.
4536         (arm_needs_doubleword_align): Return int instead of bool,
4537         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
4538         members, but if there is any such non-FIELD_DECL
4539         > PARM_BOUNDARY aligned decl, return -1 instead of false.
4540         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
4541         returns negative, increment nregs only if it returned positive.
4542         (arm_setup_incoming_varargs): Likewise.
4543         (arm_function_arg_boundary): Emit -Wpsabi note if
4544         arm_needs_doubleword_align returns negative, return
4545         DOUBLEWORD_ALIGNMENT only if it returned positive.
4547 2017-04-25  Marek Polacek  <polacek@redhat.com>
4549         PR sanitizer/80349
4550         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
4551         first argument to type.
4553 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4555         PR target/80482
4556         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
4557         type checks to test for compatibility instead of equality.
4559 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4560             Jakub Jelinek  <jakub@redhat.com>
4562         PR target/77728
4563         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
4564         type.
4565         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
4566         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
4567         the alignment computation, but return their maximum in warn_alignment.
4568         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
4569         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
4570         is smaller.
4571         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
4572         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
4573         caller.
4575 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4577         * config/arc/simdext.md (dmpyh): Fix typo.
4579 2017-04-25  Richard Biener  <rguenther@suse.de>
4581         PR tree-optimization/80492
4582         * alias.c (compare_base_decls): Handle registers with asm
4583         specification conservatively.
4584         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
4585         compare_base_decls returning dont-know properly.
4587 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4589         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
4590         (legitimate_offset_address_p): New function.
4591         (arc_legitimate_address_p): Use above function.
4593 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4595         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
4597 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4599         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
4600         ACCH registers whenever they are available.
4602 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4604         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
4605         double regs fix when not used.
4607 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4609         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
4610         core registers.
4611         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
4612         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
4614 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4616         * config/arc/arc.c (arc_output_addsi): Check for h-register class
4617         when emitting short ADD instructions.
4619 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4621         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
4622         constraint.
4623         (cmpsi_cc_c_insn): Likewise.
4624         (cbranchsi4_scratch): Compute proper instruction length using
4625         compact_hreg_operand.
4626         * config/arc/predicates.md (compact_hreg_operand): New predicate.
4628 2017-04-25  Richard Biener  <rguenther@suse.de>
4630         PR middle-end/80509
4631         * passes.c (pass_manager::pass_manager): Initialize
4632         m_name_to_pass_map.
4634 2017-04-25  Richard Biener  <rguenther@suse.de>
4636         PR tree-optimization/79201
4637         * tree-ssa-sink.c (statement_sink_location): Handle calls.
4639 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4641         PR target/80464
4642         * config/s390/vector.md: Split MEM->GPR vector moves for
4643         non-s_operand addresses.
4645 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4647         PR target/79895
4648         * config/s390/predicates.md (reload_const_wide_int_operand): New
4649         predicate.
4650         * config/s390/s390.md ("movti"): Remove d/P alternative.
4651         ("movti_bigconst"): New pattern definition.
4653 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4655         PR target/80080
4656         * s390-protos.h (s390_expand_cs_hqi): Removed.
4657         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
4658         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
4659         modes as well as CCZ1mode and CCZmode.
4660         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
4661         signature of s390_emit_compare_and_swap.
4662         (s390_expand_cs_hqi): Likewise, make static.
4663         (s390_expand_cs_tdsi): Generate an explicit compare before trying
4664         compare-and-swap, in some cases.
4665         (s390_expand_cs): Wrapper function.
4666         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
4667         atomic_exchange.
4668         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
4669         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
4670         patterns for small and large integers.  Forbid symref memory operands.
4671         Move expander to s390.c.  Require cc register.
4672         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
4673         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
4674         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
4675         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
4676         symref memory operands.  Remove CC mode and call s390_match_ccmode
4677         instead.
4678         ("atomic_exchange<mode>"): Allow and implement all integer modes.
4680 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4682         * config/s390/s390.md (define_peephole2): New peephole to help
4683         combining the load-and-test pattern with volatile memory.
4685 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4687         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
4688         with CCZmode for TARGET_Z196.
4690 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
4692         PR rtl-optimization/80501
4693         * combine.c (make_compound_operation_int): Set subreg_code to SET
4694         even for AND with mask of the sign bit of mode.
4696         PR rtl-optimization/80500
4697         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
4698         sum's initial value.
4700 2017-04-25  Julian Brown  <julian@codesourcery.com>
4701             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4703         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
4705 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
4707         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
4709 2017-04-25  Julian Brown  <julian@codesourcery.com>
4710             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4712         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
4713         (thunderx2t99_sha): New Reservation.
4715 2017-04-25  Julian Brown  <julian@codesourcery.com>
4716             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4718         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
4719         type for 1-element load.
4721 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
4723         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
4725 2017-04-24  Martin Jambor  <mjambor@suse.cz>
4727         PR tree-optimization/80293
4728         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
4729         char arrays not totally scalarizable if it is false.
4730         (analyze_all_variable_accesses): Pass correct value in the new
4731         parameter.  Add a statistics counter.
4733 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
4735         PR middle-end/79931
4736         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
4738 2017-04-24  Richard Biener  <rguenther@suse.de>
4740         PR tree-optimization/80494
4741         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
4742         out for complex types.
4744 2017-04-24  Richard Biener  <rguenther@suse.de>
4746         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
4747         * tree-ssa-sccvn.c (print_scc): Print SCC size.
4748         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
4749         (DFS): Adjust and never fail.
4750         (sccvn_dom_walker::fail): Remove.
4751         (sccvn_dom_walker::before_dom_children): Adjust.
4752         (run_scc_vn): Likewise and never fail.
4753         * tree-ssa-pre.c (pass_pre::execute): Adjust.
4754         (pass_fre::execute): Likewise.
4756 2017-04-24  Richard Biener  <rguenther@suse.de>
4758         PR tree-optimization/79725
4759         * tree-ssa-sink.c (statement_sink_location): Return whether
4760         failure reason was zero uses.  Move that check later.
4761         (sink_code_in_bb): Deal with zero uses by removing the stmt
4762         if possible.
4764 2017-04-24  Richard Biener  <rguenther@suse.de>
4766         PR c++/2972
4767         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
4768         pointer-based references.
4770 2017-04-24  Richard Biener  <rguenther@suse.de>
4772         PR bootstrap/79814
4773         * pass_manager.h (pass_manager::operator new): Remove.
4774         (pass_manager::operator delete): Likewise.
4775         * passes.c (pass_manager::operator new): Remove.
4776         (pass_manager::operator delete): Likewise.
4777         (pass_manager::pass_manager): Zero individual pass members.
4779 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
4781         PR target/70799
4782         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
4783         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
4784         Check "XEXP (src, 1)" operand here.
4785         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
4786         Check "XEXP (src, 1)" operand here.
4787         (dimode_scalar_chain::make_vector_copies): Detect count register
4788         of a shift instruction.  Zero extend count register from QImode
4789         to DImode to satisfy vector shift pattern count operand predicate.
4790         Substitute vector shift count operand with a DImode copy.
4791         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
4792         vector register.
4794 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
4796         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
4797         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
4798         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
4799         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
4800         (UNSPEC_NOREX_MEM): Remove definition.
4802 2017-04-21  Richard Biener  <rguenther@suse.de>
4804         PR tree-optimization/79547
4805         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4806         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
4807         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
4808         without any constraints.
4810 2017-04-21  Richard Biener  <rguenther@suse.de>
4812         PR tree-optimization/78847
4813         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
4815 2017-04-21  Richard Biener  <rguenther@suse.de>
4817         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
4818         (build_distinct_type_copy): Likewise.
4819         (build_variant_type_copy): Likewise.
4820         * tree.c (build_qualified_type): Pass down mem-stat info.
4821         (build_distinct_type_copy): Likewise.
4822         (build_variant_type_copy): Likewise.
4824 2017-04-21  Richard Biener  <rguenther@suse.de>
4826         PR tree-optimization/80237
4827         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
4828         defaulted to NULL.
4829         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
4830         for a simplified result.
4832 2016-04-21  Richard Biener  <rguenther@suse.de>
4834         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
4835         sth as strict as a simple_iv but a chrec without symbols and an
4836         operand defined in the loop we are peeling (and not some subloop).
4837         (propagate_constants_for_unrolling): Propagate all constants.
4839 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
4841         PR target/79804
4842         * config/i386/i386.c (print_reg): Remove assert for disalowed
4843         regno values, call output_operand_lossage instead.
4845 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
4847         PR target/78090
4848         * config/i386/constraints.md (Yc): New register constraint.
4849         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
4850         Use Yc constraint for alternative 2 of operand 0.  Remove
4851         preferred_for_speed attribute.
4853 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4855         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
4856         lastprivate clauses in SIMT case.
4858 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
4860         * doc/invoke.texi (-Wextra-semi): Document new warning option.
4862 2017-04-20  Richard Biener  <rguenther@suse.de>
4864         PR tree-optimization/57796
4865         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
4866         as N scalar stores.
4867         (vect_model_load_cost): Cost gathers as N scalar loads.
4869 2017-04-20  Richard Biener  <rguenther@suse.de>
4871         * ggc-page.c (ggc_allocated_p): Rename to ...
4872         (safe_lookup_page_table_entry): ... this and return the lookup
4873         result.
4874         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
4876 2017-04-20  Richard Biener  <rguenther@suse.de>
4878         PR tree-optimization/80453
4879         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
4880         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
4881         from the conditions.
4882         (vn_phi_eq): Pass them down.
4883         (vn_phi_lookup): Record them.
4884         (vn_phi_insert): Likewise.
4886 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
4888         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
4889         uninitialized variable warning to avoid buffer overrun.
4891 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4893         PR other/71250
4894         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
4895         is suppressed for '{ 0 }' in C.
4897 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4899         * BASE-VER: Set to 8.0.0.
4901 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4903         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
4904         priority .init_array and .fini_array section with SECTION_NOTYPE
4905         flag.
4907 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4909         PR middle-end/80423
4910         * tree.h (build_array_type): Add typeless_storage default argument.
4911         * tree.c (type_cache_hasher::equal): Also compare
4912         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
4913         (build_array_type): Add typeless_storage argument, set
4914         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
4915         recursive call.
4916         (build_nonshared_array_type): Adjust build_array_type_1 caller.
4917         (build_array_type): Likewise.  Add typeless_storage argument.
4919 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4920             Jakub Jelinek  <jakub@redhat.com>
4922         PR tree-optimization/80426
4923         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
4924         operation on symbolic operands, also compute the overflow for the
4925         invariant part when the operation degenerates into a negation.
4927 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
4929         PR debug/80461
4930         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
4931         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
4933         PR debug/80436
4934         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
4936 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
4938         PR target/80462
4939         * config/avr/avr.c (tree.h): Include it.
4940         (cgraph.h): Include it.
4941         (avr_encode_section_info): Don't warn for uninitialized progmem
4942         variable if it's just an alias.
4944 2017-04-19  Richard Biener  <rguenther@suse.de>
4946         PR ipa/65972
4947         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
4948         when needed by AutoPGO.
4950 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
4952         PR lto/50345
4953         * doc/lto.texi: Remove an extra 'that'.
4955 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
4957         PR rtl-optimization/80429
4958         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
4959         are only used in debug insns.
4961 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4962             Vladimir Makarov  <vmakarov@redhat.com>
4964         * config/sparc/predicates.md (input_operand): Add comment.  Return
4965         true for any memory operand when LRA is in progress.
4966         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
4968 2017-04-18  Jeff Law  <law@redhat.com>
4970         PR target/74563
4971         * mips.md ({return,simple_return}_internal): Do not overwrite
4972         operands[0].
4974 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
4976         PR tree-optimization/80443
4977         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
4978         instead of adding 1, subtract -1 and similarly instead of subtracting
4979         1 add -1.
4981 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
4983         PR rtl-optimization/80357
4984         * haifa-sched.c (tmp_bitmap): New variable.
4985         (model_recompute): Handle duplicate use records.
4986         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
4987         (free_global_sched_pressure_data): Free it.
4989 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4991         Revert:
4992         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4993         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
4994         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
4995         instead of SYSTEM_HEADER_DIR.
4997 2017-04-18  Jeff Law  <law@redhat.com>
4999         PR middle-end/80422
5000         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
5001         predecessors after walking up the insn chain.
5003 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5005         PR debug/80263
5006         * dwarf2out.c (modified_type_die): Try harder not to emit internal
5007         sizetype type into debug info.
5009 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5011         PR target/80099
5012         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
5013         unneeded test for TARGET_UPPER_REGS_SF.
5014         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
5016 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5018         PR sanitizer/80444
5019         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
5020         instead of gsi_after_labels.
5022 2017-04-18  Jeff Law  <law@redhat.com>
5024         * regcprop.c (maybe_mode_change): Avoid creating copies of the
5025         stack pointer.
5027         Revert:
5028         2017-04-13  Jeff Law  <law@redhat.com>
5029         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5030         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5032 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
5034         PR target/79453
5035         * config/avr/avr.c (intl.h): Include it.
5036         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
5038 2017-04-18  Martin Liska  <mliska@suse.cz>
5040         PR gcov-profile/78783
5041         * gcov-tool.c (gcov_output_files): Validate that destination
5042         file is either removed by the tool or by a user.
5044 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
5045             Guy Benyei  <guybe@mellanox.com>
5047         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
5048         block, and do not negate it, the stored id is already negative.
5050 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
5052         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
5054 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5056         PR target/80098
5057         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
5058         masks of options that should be turned off if the VSX vector
5059         options are turned off.
5060         (OTHER_P8_VECTOR_MASKS): Likewise.
5061         (OTHER_VSX_VECTOR_MASKS): Likewise.
5062         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
5063         rs6000_disable_incompatible_switches to validate no type switches
5064         like -mvsx.
5065         (rs6000_incompatible_switch): New function to disallow turning on
5066         other vector options if -mno-vsx, -mno-power8-vector, or
5067         -mno-power9-vector are specified.
5069 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5071         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
5073 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5075         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
5076         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
5077         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
5078         (ARG_POINTER_CFA_OFFSET): Likewise.
5080 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5082         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
5083         conditions to take advantage of various optimizations.
5085 2017-04-13  Jeff Law  <law@redhat.com>
5087         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5088         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5089         (zero_extendsidi2_dext): Likewise.
5091 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
5093         PR sanitizer/80403
5094         * fold-const.c (fold_ternary_loc): Revert
5095         use op0 instead of fold_convert_loc (loc, type, arg0) part of
5096         2017-04-12 change.
5098 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5100         PR rtl-optimization/80343
5101         * lra-remat.c (update_scratch_ops): Assign original hard reg to
5102         new scratch pseudo.
5104 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
5106         PR sanitizer/80414
5107         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
5108         to ubsan_encode_value.
5110 2017-04-13  Jeff Law  <law@redhat.com>
5112         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
5113         appearing in DEBUG_INSNs.
5115 2017-04-13  Martin Liska  <mliska@suse.cz>
5117         PR gcov-profile/80413
5118         * gcov-io.c (gcov_write_string): Copy to buffer just when
5119         allocated size is greater than zero.
5121 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
5123         PR debug/80321
5124         * dwarf2out.c (decls_for_scope): Ignore declarations of
5125         current_function_decl in BLOCK_NONLOCALIZED_VARS.
5127 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
5129         PR lto/69953
5130         * ipa-visibility.c (non_local_p): Fix typos.
5131         (localize_node): When localizing symbol in same comdat group,
5132         dissolve the group only when we know external symbols are going
5133         to be privatized.
5134         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
5136 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5138         PR tree-optimization/79390
5139         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
5140         order does not result in usable sequence, retry with reversed operand
5141         order.
5143         PR sanitizer/80403
5144         PR sanitizer/80404
5145         PR sanitizer/80405
5146         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
5147         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
5148         op0 instead of fold_convert_loc (loc, type, arg0).
5150 2017-04-12  Jeff Law  <law@redhat.com>
5152         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
5153         has a delay slot in the generated code.
5155         * config/cris/cris.md (cris_preferred_reload_class): Return
5156         GENNONACR_REGS rather than GENERAL_REGS.
5158 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5160         PR c/80163
5161         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
5162         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
5163         signedness of the result type.
5165 2017-04-12  Richard Biener  <rguenther@suse.de>
5166             Jeff Law  <law@redhat.com>
5168         PR tree-optimization/80359
5169         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
5170         trim stores to TARGET_MEM_REFs.
5172 2017-04-12  Richard Biener  <rguenther@suse.de>
5174         PR tree-optimization/79390
5175         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
5176         threading case even more.
5178 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
5180         PR target/80382
5181         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
5182         for quad_address_p for TImode, instead of just not indexed_address.
5184 2017-04-12  Richard Biener  <rguenther@suse.de>
5185             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5187         PR middle-end/79671
5188         * alias.c (component_uses_parent_alias_set_from): Handle
5189         TYPE_TYPELESS_STORAGE.
5190         (get_alias_set): Likewise.
5191         * tree-core.h (tree_type_common): Add typeless_storage flag.
5192         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
5193         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
5194         for types containing members with TYPE_TYPELESS_STORAGE.
5195         (place_field): Likewise.
5196         (layout_type): Likewise for ARRAY_TYPE.
5197         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
5198         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
5199         TYPE_TYPELESS_STORAGE.
5200         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5202 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5204         PR sanitizer/80349
5205         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5206         first argument to type.
5208 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5210         PR target/80376
5211         PR target/80315
5212         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5213         CONST0_RTX (mode) rather than const0_rtx where appropriate.
5214         (rs6000_expand_binop_builtin): Likewise.
5215         (rs6000_expand_ternop_builtin): Likewise; also add missing
5216         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
5217         vshasigma built-ins.
5218         * doc/extend.texi: Document that vec_xxpermdi's third argument
5219         must be a constant.
5221 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
5223         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
5224         Use shift_const cost parameter when calculating gain of STV shifts.
5226 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5228         PR rtl-optimization/70478
5229         * lra-constraints.c (process_alt_operands): Check memory for
5230         disfavoring memory insn operand.
5232 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
5234         PR middle-end/80100
5235         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
5236         left shift in unsigned HOST_WIDE_INT type.
5238         PR rtl-optimization/80385
5239         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
5240         (not (neg X)) into (plus X -1) for complex or non-integral modes.
5242         PR libgomp/80394
5243         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
5244         if they have any depend clauses.
5246 2017-04-11  Martin Liska  <mliska@suse.cz>
5248         PR ipa/80212
5249         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
5250         * ipa-split.c (split_function): Create a local comdat symbol
5251         if caller is in a comdat group.
5253 2017-04-11  Martin Liska  <mliska@suse.cz>
5255         PR ipa/80212
5256         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
5257         flags.
5259 2017-04-11  Martin Sebor  <msebor@redhat.com>
5261         PR middle-end/80364
5262         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
5263         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
5264         for INTEGER_TYPE.
5265         (directive::set_width, directive::set_precision, format_character):
5266         Adjust.
5267         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
5268         INTEGER_TYPE.
5270 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
5272         PR target/80389
5273         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
5274         conflict, set target->arch_name instead of target->cpu_name.
5276 2017-04-11  Richard Biener  <rguenther@suse.de>
5278         PR tree-optimization/80374
5279         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
5280         build_zero_cst, remove fold_convertible_p check again.
5282 2017-04-11  Martin Liska  <mliska@suse.cz>
5284         PR sanitizer/70878
5285         * ubsan.c (instrument_object_size): Do not instrument register
5286         variables.
5288 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
5290         PR target/80381
5291         * config/i386/i386-builtin-types.def
5292         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
5293         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
5294         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
5295         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
5296         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
5297         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
5298         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
5299         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
5300         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
5301         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
5302         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
5303         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
5304         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
5305         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
5306         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
5307         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
5308         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
5309         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
5310         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
5311         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
5312         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
5313         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
5314         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
5315         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
5316         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
5317         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
5318         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
5319         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
5320         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
5321         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
5322         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
5323         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
5324         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
5325         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
5326         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
5327         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
5328         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
5329         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
5330         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
5331         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
5332         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
5333         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
5334         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
5335         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
5336         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
5337         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
5338         aliases.
5339         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
5340         flag to second_arg_count, handle 4 argument function type _COUNT
5341         aliases, handle second_arg_count on second argument rather than last.
5343 2017-04-10  Jeff Law  <law@redhat.com>
5345         PR tree-optimization/80374
5346         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
5347         record anything if we can not convert integer_zero_node to the
5348         desired type.
5350 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5352         PR target/80108
5353         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5354         Enhance special handling given to the TARGET_P9_MINMAX option in
5355         relation to certain other options.
5357 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
5359         PR tree-optimization/80153
5360         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
5361         remove POINTER_PLUS_EXPR's base part directly, rather than through
5362         aff_tree.
5364 2017-04-10  Richard Biener  <rguenther@suse.de>
5365             Bin Cheng  <bin.cheng@arm.com>
5367         PR tree-optimization/80153
5368         * tree-affine.c (aff_combination_to_tree): Get base pointer from
5369         the first element of pointer type aff_tree.  Build result expr in
5370         aff_tree's type.
5371         (add_elt_to_tree): Convert to type unconditionally.  Remove other
5372         fold_convert calls.
5373         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
5374         (rewrite_use_nonlinear_expr): Check invariant using iv information.
5376 2017-04-10  Richard Biener  <rguenther@suse.de>
5378         * tree-ssa-structalias.c (find_func_aliases): Properly handle
5379         asm inputs.
5381 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5383         PR rtl-optimization/70478
5384         * lra-constraints.c (curr_small_class_check): New.
5385         (update_and_check_small_class_inputs): New.
5386         (process_alt_operands): Update curr_small_class_check.  Disfavor
5387         alternative insn memory operands.  Check available regs for small
5388         class operands.
5390 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
5392         PR target/80057
5393         * config/mips/mips.opt (-mvirt): Update description.
5394         * doc/invoke.texi (-mvirt): Likewise.
5396 2017-04-10  Richard Biener  <rguenther@suse.de>
5398         PR middle-end/80362
5399         * fold-const.c (fold_binary_loc): Look at unstripped ops when
5400         looking for NEGATE_EXPR in -A / -B to A / B folding.
5402 2017-04-10  Martin Liska  <mliska@suse.cz>
5404         PR gcov-profile/80224
5405         * gcov.c (print_usage): Fix usage string.
5406         (get_gcov_intermediate_filename): Remove.
5407         (output_gcov_file): Use both for normal and intermediate format.
5408         (generate_results): Do not initialize special file for
5409         intermediate format.
5411 2017-04-10  Richard Biener  <rguenther@suse.de>
5413         PR tree-optimization/80304
5414         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
5415         for safelen.
5417 2017-04-10  Nathan Sidwell  <nathan@acm.org>
5419         PR target/79905
5420         * config/rs6000/rs6000.c (rs6000_vector_type): New.
5421         (rs6000_init_builtins): Use it.
5423 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5425         * config/arm/arm.md (<mrc>): Add mode to SET source.
5426         (<mrrc>): Likewise.
5428 2017-04-10  Richard Biener  <rguenther@suse.de>
5430         PR middle-end/80344
5431         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
5433 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
5435         PR target/80324
5436         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
5437         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
5438         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
5439         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
5440         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
5441         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
5442         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
5443         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
5444         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
5445         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
5446         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
5447         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
5448         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
5449         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
5450         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
5451         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
5452         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
5453         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
5454         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
5455         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
5456         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
5457         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
5458         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
5460 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5462         PR rtl-optimization/70478
5463         * lra-constraints.c: Reverse the last patch.
5465 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
5467         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
5468         Add comment for WCHAR_T.
5470 2017-04-08  Martin Liska  <mliska@suse.cz>
5472         Revert:
5473         2017-04-07  Martin Liska  <mliska@suse.cz>
5475         PR ipa/80212
5476         * ipa-split.c (split_function): Add function part to a same comdat
5477         group.
5479 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5481         PR target/80358
5482         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
5484 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
5486         * rs6000/rs6000.c (vec_load_pendulum): Rename...
5487         (vec_pairing): ...to this.
5488         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
5489         (rs6000_sched_init): Adjust for name change.
5490         (struct rs6000_sched_context): Likewise.
5491         (rs6000_init_sched_context): Likewise.
5492         (rs6000_set_sched_context): Likewise.
5494 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
5496         PR target/80322
5497         PR target/80323
5498         PR target/80325
5499         PR target/80326
5500         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
5501         intrinsics.
5502         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
5503         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
5504         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
5506 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
5508         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
5510 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5512         PR rtl-optimization/70703
5513         * ira-color.c (update_conflict_hard_regno_costs): Use
5514         int64_t instead of HOST_WIDE_INT.
5516 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5518         PR rtl-optimization/70478
5519         * lra-constraints.c (process_alt_operands): Disfavor alternative
5520         insn memory operands.
5522 2017-04-07  Jeff Law  <law@redhat.com>
5524         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
5525         CALL and NOTE_INSN_CALL_ARG_LOCATION.
5527 2017-04-07  Martin Liska  <mliska@suse.cz>
5529         PR target/79889
5530         * config/aarch64/aarch64.c (aarch64_process_target_attr):
5531         Show error message instead of an ICE.
5533 2017-04-07  Martin Liska  <mliska@suse.cz>
5535         PR ipa/80212
5536         * ipa-split.c (split_function): Add function part to a same comdat
5537         group.
5539 2017-04-07  Richard Biener  <rguenther@suse.de>
5541         PR middle-end/80341
5542         * tree.c (get_unwidened): Also handle ! for_type case for
5543         INTEGER_CSTs.
5544         * convert.c (do_narrow): Split out from ...
5545         (convert_to_integer_1): ... here.  Do not pass final truncation
5546         type to get_unwidened for TRUNC_DIV_EXPR.
5548 2017-04-07  Richard Biener  <rguenther@suse.de>
5550         * tree-affine.c (wide_int_ext_for_comb): Take type rather
5551         than aff_tree.
5552         (aff_combination_const): Adjust.
5553         (aff_combination_scale): Likewise.
5554         (aff_combination_add_elt): Likewise.
5555         (aff_combination_add_cst): Likewise.
5556         (aff_combination_convert): Likewise.
5557         (add_elt_to_tree): Likewise.  Remove unused argument.
5558         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
5560 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5562         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
5563         definition.
5564         * config/arm/arm.c (arm_default_short_enums): Use
5565         ARM_DEFAULT_SHORT_ENUMS.
5566         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
5568 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
5570         PR debug/80234
5571         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
5572         members with redundant out-of-class redeclaration.
5574 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
5576         PR target/80286
5577         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
5578         * config/i386/i386.md (*zero_extendsidi2):
5579         Add (?*x,*x) and (?*v,*v) alternatives.
5581 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
5583         PR target/79733
5584         * config/i386/i386.c (ix86_expand_builtin)
5585         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
5586         mode from insn data. Convert operands to insn operand mode.
5587         Copy operands that don't satisfy insn predicate to a register.
5589 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
5591         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
5592         Update comments.
5594 2017-04-06  Richard Biener  <rguenther@suse.de>
5596         PR tree-optimization/80334
5597         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
5598         preserve alignment of accesses.
5600 2017-04-06  Richard Biener  <rguenther@suse.de>
5602         PR tree-optimization/80262
5603         * tree-sra.c (build_ref_for_offset): Preserve address-space
5604         information.
5605         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5606         Drop useless address-space information on MEM_REF offsets.
5608 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
5610         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
5612 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
5614         PR rtl-optimization/70703
5615         * ira-color.c (update_conflict_hard_regno_costs): Use
5616         HOST_WIDE_INT instead of long.
5618 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
5620         PR target/80298
5621         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
5622         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
5623         is not defined.
5624         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
5625         for x86_64 target.  Handle -m3dnowa option.
5627 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
5629         PR rtl-optimization/70703
5630         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
5631         (update_conflict_hard_regno_costs): Use long instead of unsigned
5632         arithmetic for cost calculation.
5634 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
5635             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5637         PR sanitizer/80308
5638         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
5639         for big endian.
5641 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5643         PR target/78002
5644         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
5645         ptr_mode with Pmode throughout.
5646         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
5647         into probe_stack_range and use DImode.
5649 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5651         PR target/79890
5652         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
5653         call_eh_return is true.
5655 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5657         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
5658         Initialize last_match_fntype_index.
5660 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
5662         PR target/80310
5663         * tree-nvr.c: Include internal-fn.h.
5664         (pass_return_slot::execute): Ignore internal calls without
5665         direct optab.
5667 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
5668             Richard Biener  <rguenther@suse.de>
5670         PR c++/80297
5671         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
5672         captures used multiple times, except for the last use.
5673         * generic-match-head.c: Include gimplify.h.
5675 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
5677         PR tree-optimization/79390
5678         * target.h (struct noce_if_info): Declare.
5679         * targhooks.h (default_noce_conversion_profitable_p): Declare.
5680         * target.def (noce_conversion_profitable_p): New target hook.
5681         * ifcvt.h (struct noce_if_info): New type, moved from ...
5682         * ifcvt.c (struct noce_if_info): ... here.
5683         (noce_conversion_profitable_p): Renamed to ...
5684         (default_noce_conversion_profitable_p): ... this.  No longer
5685         static nor inline.
5686         (noce_try_store_flag_constants, noce_try_addcc,
5687         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
5688         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
5689         instead of noce_conversion_profitable_p.
5690         * config/i386/i386.c: Include ifcvt.h.
5691         (ix86_option_override_internal): Don't override
5692         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
5693         (ix86_noce_conversion_profitable_p): New function.
5694         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
5695         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
5696         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
5697         * doc/tm.texi: Regenerated.
5699 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5701         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
5702         correction.
5704 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5706         PR target/80307
5707         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
5708         instructions for small multiply cores.
5710 2017-04-04  Jeff Law  <law@redhat.com>
5712         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
5713         added member.
5714         (mips_expand_vec_perm_const): Initialize elements in orig_perm
5715         that are not set by the loop over the elements.
5717 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
5719         PR target/80286
5720         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
5721         int mode, convert_modes it to mode as unsigned, otherwise use
5722         lowpart_subreg to mode rather than SImode.
5723         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
5724         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
5725         Use DImode instead of SImode for the shift count operand.
5726         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
5727         Likewise.
5729 2017-04-04  Richard Biener  <rguenther@suse.de>
5731         PR middle-end/80281
5732         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
5733         arithmetic done for the negate or the plus.  Simplify.
5734         (A - (-B) -> A + B): Likewise.
5735         * fold-const.c (split_tree): Make sure to not negate pointers.
5737 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
5739         PR rtl-optimization/60818
5740         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
5741         a compare of comparisons with the thing compared if this results
5742         in a different machine mode.
5744 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
5746         * alias.c (base_alias_check): Fix typo in comment.
5747         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
5748         * cgraphunit.c (symbol_table::compile): Likewise.
5749         * collect2.c (maybe_run_lto_and_relink): Likewise.
5750         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
5751         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
5752         * config/avr/avr.c (avr_map_op_t): Likewise.
5753         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
5754         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
5755         * config/epiphany/epiphany.md (movcc): Likewise.
5756         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
5757         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
5758         Likewise.
5759         * config/mips/mips.c (mips_save_restore_reg): Likewise.
5760         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
5761         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
5762         * config/sh/sh.c (sh_rtx_costs): Likewise.
5763         * fold-const.c (fold_truth_andor): Likewise.
5764         * genautomata.c (collapse_flag): Likewise.
5765         * gengtype.h (struct type::u::s): Likewise.
5766         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
5767         * input.c (FORMAT_AMOUNT): Likewise.
5768         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
5769         (known_aggs_to_agg_replacement_list): Likewise.
5770         * ipa-inline-analysis.c: Likewise.
5771         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
5772         * ipa-polymorphic-call.c
5773         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
5774         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
5775         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
5776         Likewise.
5777         * modulo-sched.c (apply_reg_moves): Likewise.
5778         * omp-expand.c (build_omp_regions_1): Likewise.
5779         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
5780         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
5781         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
5782         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5783         * value-prof.c: Likewise.
5784         * var-tracking.c (val_reset): Likewise.
5786 2017-04-03  Richard Biener  <rguenther@suse.de>
5788         PR tree-optimization/80275
5789         * fold-const.c (split_address_to_core_and_offset): Handle
5790         POINTER_PLUS_EXPR.
5792 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5794         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
5795         descriptors is at least equal to that of functions.
5797 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
5799         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
5801 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
5803         PR target/80250
5804         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
5805         (mov<IMOD4:mode>): New expander.
5806         (*mov<IMOD4:mode>_internal): New insn and split pattern.
5808 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
5810         PR rtl-optimization/79405
5811         * fwprop.c (propagations_left): New variable.
5812         (forward_propagate_into): Decrement it.
5813         (fwprop_init): Initialize it.
5814         (fw_prop): If the variable has reached zero, stop propagating.
5815         (fwprop_addr): Ditto.
5817 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
5819         PR debug/79255
5820         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
5821         a FUNCTION_DECL, pass it as decl instead of origin to
5822         process_scope_var.
5824 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
5826         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
5827         string.
5829 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
5831         PR target/80107
5832         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
5833         TARGET_VSX_SMALL_INTEGER.
5835 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5837         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
5838         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
5840 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
5842         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
5843         extraction from odd-numbered MSA register.
5845 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
5847         PR middle-end/80173
5848         * expmed.c (store_bit_field_1): Don't attempt to create
5849         a word subreg out of hard registers wider than word if they
5850         have HARD_REGNO_NREGS of 1 for their mode.
5852         PR middle-end/80163
5853         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
5854         conversions to integer types wider than word and pointer.
5856         PR debug/80025
5857         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
5858         (rtx_equal_for_cselib_p): Pass 0 to it.
5859         * cselib.c (cselib_hasher::equal): Likewise.
5860         (rtx_equal_for_cselib_1): Add depth argument.  If depth
5861         is 128, don't look up VALUE locs and punt.  Increment
5862         depth in recursive calls when walking VALUE locs.
5864 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5866         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
5867         (make_gcov_file_name): Use the canonical path name for generating
5868         the MD5 value.
5869         (read_line): Fix handling of files with ascii null bytes.
5871 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
5873         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
5874         to initialise a vector register instead
5875         of using a const_int.
5877 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
5879         PR translation/80189
5880         * gimplify.c (omp_default_clause): Use %qs instead of %s in
5881         diagnostic messages.
5883 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
5885         PR target/80246
5886         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
5887         (dfp_diex_<mode>): Update mode of operand 1.
5888         * doc/extend.texi (dxex, dxexq): Document change to return type.
5889         (diex, diexq): Document change to argument type.
5891 2017-03-30  Martin Jambor  <mjambor@suse.cz>
5893         PR ipa/77333
5894         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
5895         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
5896         it reflects the signature changes performed at the callee side.
5897         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
5898         to cgraph_build_function_type_skip_args.
5899         (build_function_decl_skip_args): Adjust call to the above function.
5901 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
5903         PR target/80206
5904         * config/i386/sse.md
5905         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
5906         register as dest whenever it is a MEM not rtx_equal_p to the
5907         corresponding dup operand, and when forcing into reg move the
5908         reg into the memory afterwards.
5909         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
5910         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
5911         for the force_reg mode.
5912         (avx512vl_vextractf128<mode>): Use register as dest either
5913         always when a MEM, or when it is a MEM not rtx_equal_p to the
5914         corresponding dup operand, or even not when it is a CONST_VECTOR
5915         depending on the mode and lo vs. hi.
5916         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
5917         parens.
5918         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
5919         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
5920         Likewise.  Require that operands[2] is even.
5921         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
5922         Remove extraneous parens.  Require that operands[2] is a multiple
5923         of 4.
5924         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
5925         operands[0] is a MEM if <mask_applied>, the predicates/constraints
5926         disallow memory then.
5928 2017-03-30  Richard Biener  <rguenther@suse.de>
5930         PR tree-optimization/77498
5931         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
5932         to non-constants over backedges.
5934 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
5936         PR rtl-optimization/80233
5937         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
5938         as last_combined_insn.  Do not test for BARRIER_P separately.
5940 2017-03-29  Andreas Schwab  <schwab@suse.de>
5942         PR ada/80146
5943         * calls.c (prepare_call_address): Convert funexp to Pmode before
5944         copying to temp reg.
5946 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5948         PR tree-optimization/80158
5949         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
5950         Handle possible future case of more than one alternate
5951         interpretation.
5952         (replace_rhs_if_not_dup): Likewise.
5953         (replace_one_candidate): Likewise.
5955 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5957         PR rtl-optimization/80193
5958         * ira.c (ira): Do not check allocation for LRA.
5960 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
5962         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
5963         (nvptx_output_simt_exit): Declare.
5964         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
5965         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
5966         (init_softstack_frame): Move initialization of crtl->is_leaf to...
5967         (nvptx_declare_function_name): ...here.  Emit declaration of local
5968         memory space buffer for omp_simt_enter insn.
5969         (nvptx_output_unisimt_switch): New.
5970         (nvptx_output_softstack_switch): New.
5971         (nvptx_output_simt_enter): New.
5972         (nvptx_output_simt_exit): New.
5973         * config/nvptx/nvptx.h (struct machine_function): New fields
5974         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
5975         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
5976         (UNSPECV_SIMT_EXIT): Ditto.
5977         (omp_simt_enter_insn): New insn.
5978         (omp_simt_enter): New expansion.
5979         (omp_simt_exit): New insn.
5980         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
5982         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
5983         (expand_GOMP_SIMT_ENTER_ALLOC): New.
5984         (expand_GOMP_SIMT_EXIT): New.
5985         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
5986         (GOMP_SIMT_ENTER_ALLOC): Ditto.
5987         (GOMP_SIMT_EXIT): Ditto.
5988         * target-insns.def (omp_simt_enter): New insn.
5989         (omp_simt_exit): Ditto.
5990         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
5991         simt_dlist.
5992         (lower_rec_simd_input_clauses): Implement SIMT privatization.
5993         (lower_rec_input_clauses): Likewise.
5994         (lower_lastprivate_clauses): Handle SIMT privatization.
5996         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
5997         (ompdevlow_adjust_simt_enter): New.
5998         (find_simtpriv_var_op): New.
5999         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
6000         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
6002         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
6003         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
6004         (copy_decl_for_dup_finish): Ditto.
6006         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
6008 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
6010         PR target/53383
6011         * config/i386/i386.c (ix86_option_override_internal): Always
6012         allow -mpreferred-stack-boundary=3 for 64-bit targets.
6014 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
6016         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
6018 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
6020         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
6021         mark new edge's irreducible flag accordign to it.
6022         (vect_do_peeling): Check loop preheader edge's irreducible flag
6023         and pass it to function slpeel_add_loop_guard.
6025 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
6027         PR tree-optimization/80218
6028         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6029         Update block frequencies and counts.
6031 2017-03-28  Richard Biener  <rguenther@suse.de>
6033         PR tree-optimization/78644
6034         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
6035         of a simplification result we may not use it at all.
6037 2017-03-28  Richard Biener  <rguenther@suse.de>
6039         PR ipa/80205
6040         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
6041         without arguments, generate default definition of a SSA name.
6043 2017-03-28  Richard Biener  <rguenther@suse.de>
6045         PR middle-end/80222
6046         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
6047         TYPE_REF_CAN_ALIAS_ALL references.
6048         * fold-const.c (fold_indirect_ref_1): Likewise.
6050 2017-03-28  Martin Liska  <mliska@suse.cz>
6052         PR ipa/80104
6053         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
6054         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
6056 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
6057             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
6059         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
6060         (EXTRA_SPECS): Define.
6061         (SUBTARGET_EXTRA_SPECS): Likewise.
6062         (SUBTARGET_CPP_SPEC): Likewise.
6063         * config/arc/elf.h (EXTRA_SPECS): Renamed to
6064         SUBTARGET_EXTRA_SPECS.
6065         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
6067 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
6069         * config/arc/simdext.md (vst64_insn): Update pattern.
6070         (vld32wh_insn): Likewise.
6071         (vld32wl_insn): Likewise.
6072         (vld64_insn): Likewise.
6073         (vld32_insn): Likewise.
6075 2017-03-28  Marek Polacek  <polacek@redhat.com>
6077         PR sanitizer/80067
6078         * fold-const.c (fold_comparison): Use protected_set_expr_location
6079         instead of SET_EXPR_LOCATION.
6081 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6083         * tree.c (add_expr): Avoid name lookup warning.
6085 2017-03-27  Jeff Law  <law@redhat.com>
6087         PR tree-optimization/80216
6088         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
6089         function name.  Limit recursion depth.
6090         (record_temporary_equivalences): Corresponding changes.
6092 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
6094         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
6095         covered first.
6097 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6099         PR target/80102
6100         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
6101         notes.
6102         * cfgcleanup.c (reg_note_cfa_p): New array.
6103         (insns_have_identical_cfa_notes): New function.
6104         (old_insns_match_p): Don't cross-jump in between /f
6105         and non-/f instructions.  If both i1 and i2 are frame related,
6106         verify all CFA notes, their order and content.
6108 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6110         PR target/78543
6111         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
6112         HImode and SImode with zero extend to DImode to one insn.
6113         (bswap<mode>2_extenddi): Likewise.
6114         (bswapsi2_extenddi): Likewise.
6115         (bswaphi2_extendsi): Likewise.
6116         (bswaphi2): Combine bswap HImode and SImode into one insn.
6117         Separate memory insns from swapping register.
6118         (bswapsi2): Likewise.
6119         (bswap<mode>2): Likewise.
6120         (bswaphi2_internal): Delete, no longer used.
6121         (bswapsi2_internal): Likewise.
6122         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
6123         store, and gpr<-gpr swap insns.
6124         (bswap<mode>2_store): Likewise.
6125         (bswaphi2_reg): Register only splitter, combine with the splitter.
6126         (bswaphi2 splitter): Likewise.
6127         (bswapsi2_reg): Likewise.
6128         (bswapsi2 splitter): Likewise.
6129         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
6130         the insns into load, store, and register/register insns.
6131         (bswapdi2_ldbrx): Likewise.
6132         (bswapdi2_load): Likewise.
6133         (bswapdi2_store): Likewise.
6134         (bswapdi2_reg): Likewise.
6136 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
6138         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
6139         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
6141 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6143         PR target/80103
6144         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
6145         add comments.
6146         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6147         special handling for target option conflicts between dform
6148         options (-mpower9-dform, -mpower9-dform-vector,
6149         -mpower9-dform-scalar) and -mno-direct-move.
6151 2017-03-27  Richard Biener  <rguenther@suse.de>
6153         PR tree-optimization/80181
6154         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
6156 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6158         * config/arc/predicates.md (move_double_src_operand): Replace the
6159         call to move_double_src_operand with a call to address_operand.
6161 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6163         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
6164         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
6165         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
6167 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6169         * config/arc/predicates.md (long_immediate_loadstore_operand):
6170         Consider scaled addresses cases.
6172 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6174         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
6175         restored when in interrupt.
6176         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
6177         doesn't have delay slot.
6179 2017-03-27  Richard Biener  <rguenther@suse.de>
6181         PR ipa/79776
6182         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
6183         inlined thunk clones.
6185 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6187         PR sanitizer/80168
6188         * asan.c (instrument_derefs): Copy over last operand from
6189         original COMPONENT_REF to the new COMPONENT_REF with
6190         DECL_BIT_FIELD_REPRESENTATIVE.
6191         * ubsan.c (instrument_object_size): Likewise.
6193 2017-03-27  Richard Biener  <rguenther@suse.de>
6195         PR tree-optimization/80170
6196         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
6197         sure DR/SCEV didnt fold in constants we do not see when looking
6198         at the reference base alignment.
6200 2017-03-27  Richard Biener  <rguenther@suse.de>
6202         PR middle-end/80171
6203         * gimple-fold.c (fold_ctor_reference): Properly guard against
6204         NULL return value from canonicalize_constructor_val.
6206 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
6208         PR target/80180
6209         * config/i386/i386.c (ix86_expand_builtin)
6210         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
6211         flags reg setting and flags reg using instructions.
6212         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
6213         clobbering instructions to zero extend op2.
6215 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
6217         * doc/install.texi (Configuration) <--with-aix-soname>:
6218         Update link to AIX ld.
6220 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
6222         PR rtl-optimization/80160
6223         PR rtl-optimization/80159
6224         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
6225         reg_alternate_class into account.
6227 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
6229         PR target/80148
6230         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
6231         to consider in curr_insn_transform.
6233 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
6235         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
6236         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
6237         and emit_mode_inner.
6239 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6241         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
6242         argument to the overloaded builtin variants.  Use the new flag to
6243         deprecate certain builtin variants.
6244         * config/s390/s390-builtin-types.def: Add new builtin types.
6245         * config/s390/s390-builtins.h: Support new flags field for
6246         overloaded builtins.
6247         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
6248         (s390_macro_to_expand): Enable vector float data type.
6249         (s390_cpu_cpp_builtins_internal): Indicate support of the new
6250         builtins by incrementing the __VEC__ version number.
6251         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
6252         vec_xst.
6253         (s390_resolve_overloaded_builtin): Emit error messages depending
6254         on the builtin flags.
6255         * config/s390/s390.c (s390_expand_builtin): Support additional
6256         flags argument.  Change error message to match the messages
6257         emitted in s390-c.c.
6258         * config/s390/s390.md: New UNSPEC_* constants.
6259         (op_type): Add new instruction types.
6260         * config/s390/vecintrin.h: Add new builtins and test data class
6261         constants.
6262         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
6263         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
6264         (VEC_INEXACT, VEC_NOINEXACT): New constants.
6265         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
6266         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
6267         ("vec_mergel<mode>"): V_HW -> VEC_HW.
6269         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
6270         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
6271         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
6272         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
6274         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
6275         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
6276         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
6277         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
6279         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
6280         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
6281         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
6282         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
6283         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
6284         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
6285         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
6287         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
6288         ("vec_scatter_element<V_HW_4:mode>_DI")
6289         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
6290         ("vec_fpint<mode>", "vflls")
6291         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
6292         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
6293         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
6294         ("*vec_cmphe<mode>_cc"): ... these.
6296         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
6297         mode constant instead of magic value.
6299 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6301         * config/s390/s390.c (s390_expand_vec_compare): Support other
6302         vector floating point modes than just V2DF.
6303         (s390_expand_vcond): Likewise.
6304         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
6305         (s390_cannot_change_mode_class): Prevent mode changes between TF
6306         and V1TF in vector registers.
6307         * config/s390/s390.md (DF, SF): New mode attributes.
6308         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
6309         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
6310         SFmode support for VRs.
6311         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
6312         vector fp modes.
6313         (VFT, VF_HW): New mode iterators.
6314         (vw, sdx): New mode attributes.
6315         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
6316         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
6317         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
6318         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
6319         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
6320         also the new vector floating point modes.  Renaming to ...
6322         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
6323         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
6324         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
6325         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
6326         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
6327         ("vec_unordered<mode>"): ... these.
6329         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
6330         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
6331         ("*vec_extendv2df"): New insn definitions.
6333 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6335         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
6336         ("mulditi3_2", "*muldi3_sign"): New patterns.
6337         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
6338         rename the pattern definition.
6340 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6342         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
6343         expander.
6344         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
6346 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6348         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
6349         instruction if possible.
6350         * config/s390/vector.md (vec_halfnumelts): New mode
6351         attribute.
6352         ("*vec_vllezlf<mode>"): New pattern.
6354 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6356         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
6357         ("popcountv4si2", "popcountv2di2"): Rename to ...
6358         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
6359         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
6360         condition.
6361         ("popcount<mode>2_vxe"): New pattern.
6363 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6365         * common/config/s390/s390-common.c (processor_flags_table): Add
6366         arch12.
6367         * config.gcc: Add arch12.
6368         * config/s390/driver-native.c (s390_host_detect_local_cpu):
6369         Default to arch12 for unknown CPU model numbers.
6370         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
6371         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
6372         PROCESSOR_max sanity check.
6373         * config/s390/s390-opts.h (enum processor_type): Add
6374         PROCESSOR_ARCH12.
6375         * config/s390/s390.c (processor_table): Add arch12.
6376         (s390_expand_builtin): Add check for B_VXE flag.
6377         (s390_issue_rate): Add PROCESSOR_ARCH12.
6378         (s390_get_sched_attrmask): Likewise.
6379         (s390_get_unit_mask): Likewise.
6380         (s390_sched_score): Enable z13 scheduling for arch12.
6381         (s390_sched_reorder): Likewise.
6382         (s390_sched_variable_issue): Likewise.
6383         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
6384         PF_VXE.
6385         (s390_tune_attr): Use z13 scheduling also for arch12.
6386         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
6387         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
6388         (TARGET_VXE_P): New macros.
6389         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
6390         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
6391         * config/s390/s390.opt: Add arch12 as processor_type.
6393 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6395         * config/s390/s390.md
6396         ("fixuns_truncdddi2", "fixuns_trunctddi2")
6397         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
6398         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
6400         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
6401         Rename expanders to ...
6403         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
6404         ("fixuns_truncdddi2_emu"): ... these.
6406         ("fixuns_trunc<mode>si2_emu"): New expander.
6408         ("*fixuns_truncdfdi2_z13"): Rename to ...
6409         ("*fixuns_truncdfdi2_vx"): ... this.
6411 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6413         * config/s390/2964.md: Remove the single element vector compare
6414         instructions which are no longer used.
6415         * config/s390/s390.c (s390_select_ccmode): Remove handling of
6416         vector CCmodes.
6417         (s390_canonicalize_comparison): Remove handling of DFmode
6418         compares.
6419         (s390_expand_vec_compare_scalar): Remove function.
6420         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
6421         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
6422         pattern.
6423         ("*cmp<mode>_ccs"): Add wfcdb instruction.
6425 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6427         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
6428         FP zero.
6429         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
6430         will anyway by matched by mov<mode>_64dfp.
6432 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6434         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
6435         vlef/vstef.  Add missing operand to vleif.
6437 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6439         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
6440         pair for all vector types with 64 bit elements.
6441         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
6442         * config/s390/vector.md (V_HW_64): ... here.
6443         (V_128_NOSINGLE): New mode iterator.
6444         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
6445         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
6446         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
6447         ("*vec_load_pairv2di"): Change to ...
6448         ("*vec_load_pair<mode>"): ... this one.
6450 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6452         * config/s390/constraints.md: Add comments.
6453         (jKK): Reject element sizes > 8 bytes.
6454         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
6455         s_operands.
6456         * config/s390/s390.md: Add the s_operand checks formerly in
6457         s390_split_ok_p to various splitters where they are still
6458         required.
6459         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
6460         for 128 bit vectors.  Plus two splitters.
6462 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6464         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
6465         the file.
6467 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6469         PR target/79893
6470         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
6471         error if the boundary argument is not constant.
6473 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
6475         PR rtl-optimization/80112
6476         * loop-doloop.c (doloop_condition_get): Don't check condition
6477         if cmp isn't SET with IF_THEN_ELSE src.
6479 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6481         PR tree-optimization/80158
6482         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
6483         replacing a candidate statement, also replace it for the
6484         candidate's alternate interpretation.
6485         (replace_rhs_if_not_dup): Likewise.
6486         (replace_one_candidate): Likewise.
6488 2017-03-24  Richard Biener  <rguenther@suse.de>
6490         PR tree-optimization/80167
6491         * graphite-isl-ast-to-gimple.c
6492         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
6493         properly.
6494         (translate_isl_ast_to_gimple::get_rename): Likewise.
6496 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6498         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
6499         handling of certain combinations of target options, including the
6500         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
6501         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
6503 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6505         PR target/71436
6506         * config/arm/arm.md (*load_multiple): Add reload_completed to
6507         matching condition.
6509 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6510             Richard Biener  <rguenth@suse.de>
6512         PR tree-optimization/79908
6513         PR tree-optimization/80136
6514         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
6515         been cast away, gimplify_and_add suffices.
6517 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
6519         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
6521 2017-03-23  Richard Biener  <rguenther@suse.de>
6523         PR tree-optimization/80032
6524         * gimplify.c (gimple_push_cleanup): Forced unconditional
6525         cleanups still have to go to the conditional_cleanups
6526         sequence.
6528 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
6530         PR tree-optimization/80072
6531         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
6532         to unsigned int.
6533         (next_operand_entry_id): Change type to unsigned int.
6534         (sort_by_operand_rank): Make sure to return the right return value
6535         even if unsigned fields are bigger than INT_MAX.
6536         (struct oecount): Change cnt and id type to unsigned int.
6537         (oecount_hasher::equal): Formatting fix.
6538         (oecount_cmp): Make sure to return the right return value
6539         even if unsigned fields are bigger than INT_MAX.
6540         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
6542         PR c++/80129
6543         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
6544         TREE_READONLY on result if writing it more than once.
6546         PR sanitizer/80110
6547         * doc/invoke.texi (-fsanitize=thread): Document that with
6548         -fnon-call-exceptions atomics are not able to throw
6549         exceptions.
6551         PR sanitizer/80110
6552         * tsan.c: Include tree-eh.h.
6553         (instrument_builtin_call): Call maybe_clean_eh_stmt or
6554         maybe_clean_or_replace_eh_stmt where needed.
6555         (instrument_memory_accesses): Add cfg_changed argument.
6556         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
6557         if it returned true.
6558         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
6560         PR rtl-optimization/63191
6561         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
6562         wrapper function, moved the whole old content into ...
6563         (ix86_delegitimize_address_1): ... this.  New inline function.
6564         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
6565         true as last argument instead of ix86_delegitimize_address.
6567 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
6569         * config/aarch64/aarch64.c (generic_branch_cost): Copy
6570         cortexa57_branch_cost.
6572 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
6574         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
6576 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6578         PR target/80123
6579         * doc/md.texi (Constraints): Document wA constraint.
6580         * config/rs6000/constraints.md (wA): New.
6581         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
6582         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
6583         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
6584         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
6586 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
6588         PR c++/80029
6589         * gimplify.c (is_oacc_declared): New function.
6590         (oacc_default_clause): Use it to set default flags for acc declared
6591         variables inside parallel regions.
6592         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
6593         declared variables.
6594         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
6595         declare attribute to any decl as necessary.
6597 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6599         PR target/80082
6600         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
6601         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
6602         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
6603         (arm_arch_lpae): This.
6604         * config/arm/arm.c (arm_arch7ve): Rename into ...
6605         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
6606         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
6607         arm_arch_lpae.
6609 2017-03-22  Martin Liska  <mliska@suse.cz>
6611         PR target/79906
6612         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
6613         error message instead of an ICE.
6615 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6617         * doc/extend.texi (6.11 Additional Floating Types): Revise.
6619 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6621         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6622         comments.
6623         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6624         comments.
6626 2017-03-21  Martin Sebor  <msebor@redhat.com>
6628         * doc/extend.texi: Use "cannot" instead of "can't."
6629         * doc/hostconfig.texi: Same.
6630         * doc/install.texi: Same.
6631         * doc/invoke.texi: Same.
6632         * doc/loop.texi: Same.
6633         * doc/md.texi: Same.
6634         * doc/objc.texi: Same.
6635         * doc/rtl.texi: Same.
6636         * doc/tm.texi: Same.
6637         * doc/tm.texi.in: Same.
6638         * doc/trouble.texi: Same.
6640 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
6642         PR debug/63238
6643         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
6644         (collect_checksum_attributes): Set it.
6645         (die_checksum_ordered): Use it.
6647 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6649         PR tree-optimization/79908
6650         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
6651         change: For a VA_ARG whose LHS has been cast away, use
6652         force_gimple_operand to construct the side effects.
6654 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
6656         PR translation/80001
6657         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
6658         more amenable to translation.
6659         (oacc_loop_auto_partitions): Likewise.
6661 2017-03-21  Marek Polacek  <polacek@redhat.com>
6662             Martin Sebor  <msebor@redhat.com>
6664         PR tree-optimization/80109
6665         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
6666         on INTEGRAL_TYPE_P.
6668 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
6669             Segher Boessenkool  <segher@kernel.crashing.org>
6671         PR target/80125
6672         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
6673         check reg_used_between_p between insn and one of succ or succ2
6674         depending on if succ is artificial insn not inserted into insn
6675         stream.
6677 2017-03-21  Martin Liska  <mliska@suse.cz>
6679         PR gcov-profile/80081
6680         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
6681         * doc/gcc.texi: Include gcov-dump stuff.
6682         * doc/gcov-dump.texi: New file.
6684 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
6686         PR rtl-optimization/79150
6687         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
6688         conditional jump, if the jump is the last insn of the loop.
6690 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6691             Richard Biener  <rguenth@suse.de>
6693         PR tree-optimization/79908
6694         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
6695         been cast away, use force_gimple_operand to construct the side
6696         effects.
6698 2017-03-21  Martin Liska  <mliska@suse.cz>
6700         PR libfortran/79956
6701         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
6702         to NULL.
6704 2017-03-21  Brad Spengler <spender@grsecurity.net>
6706         PR plugins/80094
6707         * plugin.c (htab_hash_plugin): New function.
6708         (add_new_plugin): Use it and adjust.
6709         (parse_plugin_arg_opt): Adjust.
6710         (init_one_plugin): Likewise.
6712 2017-03-21  Richard Biener  <rguenther@suse.de>
6714         PR tree-optimization/80032
6715         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
6716         if set force the cleanup to happen unconditionally.
6717         (gimplify_target_expr): Push inserted clobbers with force_uncond
6718         to avoid them being removed by control-dependent DCE.
6720 2017-03-21  Richard Biener  <rguenther@suse.de>
6722         PR tree-optimization/80122
6723         * tree-inline.c (copy_bb): Do not expans va-arg packs or
6724         va_arg_pack_len when the inlined call stmt requires pack
6725         expansion itself.
6726         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
6728 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
6730         PR sanitizer/78158
6731         * tsan.c (instrument_builtin_call): If the memory model argument
6732         is not a constant, assume it is valid.
6734         PR c/67338
6735         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
6736         avoid UB.
6738 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
6740         PR rtl-optimization/79910
6741         * combine.c (can_combine_p): Do not allow combining an I0 or I1
6742         if its dest is used by an insn before I2 (other than the combined
6743         insns themselves, which are properly handled already).
6745 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
6747         Revert:
6748         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
6750         * combine.c (record_used_regs): New static function.
6751         (try_combine): Handle situations where there is an additional
6752         instruction between I2 and I3 which needs to have a LOG_LINK
6753         updated.
6755         Revert:
6756         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
6758         * combine.c (try_combine): Delete redundant i1 test.  Call
6759         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6761 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6763         PR target/80083
6764         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
6765         alternatives 13/14.
6767 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6769         PR tree-optimization/80054
6770         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
6771         the optimization if a PHI or any of its arguments is not dominated
6772         by the candidate's basis.  Use gphi* rather than gimple* as
6773         appropriate.
6774         (replace_profitable_candidates): Clean up a gimple* variable that
6775         should be a gphi* variable.
6777 2017-03-20  Martin Sebor  <msebor@redhat.com>
6779         PR c++/52477
6780         * doc/extend.texi (attribute constructor): Document present limitation.
6782 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6784         PR target/79963
6785         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
6786         __POWER9_VECTOR__ #ifdef control, change template definition to
6787         use Power9-specific built-in function.
6788         (vec_any_eq): Likewise.
6789         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
6790         to control outcomes from this test.
6791         (vector_ae_<mode>p): For VEC_F modes, likewise.
6793 2017-03-20  Ian Lance Taylor  <iant@google.com>
6795         * config/i386/i386.c (ix86_function_regparm): Save an extra
6796         register for -fsplit-stack with DECL_STATIC_CHAIN.
6798 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
6800         PR target/79912
6801         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
6802         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
6804 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
6806         * config/riscv/riscv.c (riscv_print_operand): Use "fence
6807         iorw,ow".
6808         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
6809         iorw,iorw".
6811 2017-03-20  Marek Polacek  <polacek@redhat.com>
6813         PR sanitizer/80063
6814         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
6816 2017-03-20  Richard Biener  <rguenther@suse.de>
6818         PR tree-optimization/80113
6819         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
6820         allocate extra SSA name for PHI def.
6821         (add_close_phis_to_outer_loops): Likewise.
6822         (add_close_phis_to_merge_points): Likewise.
6823         (copy_loop_close_phi_args): Likewise.
6824         (copy_cond_phi_nodes): Likewise.
6826 2017-03-20  Martin Liska  <mliska@suse.cz>
6828         PR middle-end/79753
6829         * tree-chkp.c (chkp_build_returned_bound): Do not build
6830         returned bounds for a LHS that's not a BOUNDED_P type.
6832 2017-03-20  Martin Liska  <mliska@suse.cz>
6834         PR target/79769
6835         PR target/79770
6836         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
6837         COMPLEX_CST and VECTOR_CST.
6839 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6841         PR target/78857
6842         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
6843         target operand.  A new splitter adds the clobber statement in case
6844         the target operand is dead anyway.
6846 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
6848         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
6849         to age-old versions of binutils and glibc.
6851 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
6853         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
6855 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
6857         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
6859 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
6861         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
6862         requirement for binutils 2.13.
6864 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
6866         * combine.c (try_combine): Delete redundant i1 test.  Call
6867         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6869 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
6871         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
6872         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
6873         contents.
6874         <riscv64-*-elf>: Re-arrange section
6875         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
6876         <riscv32-*-linux>: Likewise.
6877         <riscv64-*-elf>: Likewise
6878         <riscv64-*-linux>: Likewise.
6880 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
6882         PR target/80052
6883         * aarch64.opt(verbose-cost-dump): Fix typo.
6885 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
6887         PR target/79951
6888         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
6889         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
6891 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
6893         * reload.c (find_reloads): When reloading a nonoffsettable address,
6894         use RELOAD_OTHER for it and its address reloads.
6896         PR rtl-optimization/79910
6897         * combine.c (record_used_regs): New static function.
6898         (try_combine): Handle situations where there is an additional
6899         instruction between I2 and I3 which needs to have a LOG_LINK
6900         updated.
6902 2017-03-17  Jeff Law  <law@redhat.com>
6904         PR tree-optimization/71437
6905         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
6906         conditional in the hash table first.
6907         (vrp_dom_walker::before_dom_children): Extract condition from
6908         ASSERT_EXPR.  Record condition, its inverion and any implied
6909         conditions as well.
6911 2017-03-17  Marek Polacek  <polacek@redhat.com>
6912             Markus Trippelsdorf  <markus@trippelsdorf.de>
6914         PR tree-optimization/80079
6915         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
6916         m_stores_head.
6918 2017-03-17  Richard Biener  <rguenther@suse.de>
6920         PR middle-end/80075
6921         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
6922         Properly verify the LHS before the RHS possibly claims to be
6923         handled.
6924         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
6925         do not throw.
6927 2017-03-17  Martin Jambor  <mjambor@suse.cz>
6929         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
6930         (List of -O2 options): Likewise.
6931         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
6932         (-fipa-vrp) New.
6934 2017-03-17  Tom de Vries  <tom@codesourcery.com>
6936         * gcov-dump.c (print_usage): Print bug_report_url.
6938 2017-03-17  Richard Biener  <rguenther@suse.de>
6940         PR middle-end/80050
6941         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
6942         (parser::peek): Likewise.
6944 2017-03-17  Richard Biener  <rguenther@suse.de>
6946         PR tree-optimization/80048
6947         * sese.c (free_sese_info): Properly release rename_map and
6948         copied_bb_map elements.
6950 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
6952         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
6953         Add linked-list forward and backlinks.  Insert on
6954         construction, remove on destruction.
6955         (class pass_store_merging): Add m_stores_head field.
6956         (pass_store_merging::terminate_and_process_all_chains):
6957         Iterate over m_stores_head list.
6958         (pass_store_merging::terminate_all_aliasing_chains):
6959         Likewise.
6960         (pass_store_merging::execute): Check for debug stmts first.
6961         Push new chains onto the m_stores_head stack.
6963 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
6965         PR target/71294
6966         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
6967         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
6968         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
6970 2017-03-16  Jeff Law  <law@redhat.com>
6972         PR tree-optimization/71437
6973         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
6974         member function.  Implementation moved into after_dom_children
6975         member function and into the threader's thread_outgoing_edges
6976         function.
6977         (dom_opt_dom_walker::after_dom_children): Simplify by moving
6978         some code into new thread_outgoing_edges.
6979         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
6980         definition.  Simplify marker handling (do it here).   Assume we always
6981         have the available expression and the const/copies tables.
6982         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
6983         and tree-vrp.c
6984         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
6985         * tree-vrp.c (equiv_stack): No longer file scoped.
6986         (vrp_dom_walker): New class.
6987         (vrp_dom_walker::before_dom_children): New member function.
6988         (vrp_dom_walker::after_dom_children): Likewise.
6989         (identify_jump_threads):  Setup domwalker.  Use it rather than
6990         walking edges in a random order by hand.  Simplify setup/finalization.
6991         (finalize_jump_threads): Remove.
6992         (vrp_finalize): Do not call identify_jump_threads here.
6993         (execute_vrp): Do it here instead and call thread_through_all_blocks
6994         here too.
6996         PR tree-optimization/71437
6997         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
6998         callers changed.
6999         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
7000         callers changed.
7001         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
7002         (dom_opt_dom_walker::thread_across_edge): Remove
7003         handle_dominating_asserts argument.  All callers changed.
7004         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
7005         changes.  Remove calls to lhs_of_dominating_assert.  Other
7006         uses of handle_dominating_asserts turn into unconditional code
7007         (simplify_control_stmt_condition_1): Likewise.
7008         (simplify_control_stmt_condition): Likewise.
7009         (thread_through_normal_block, thread_across_edge): Likewise.
7010         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
7011         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
7012         object if it is not an SSA_NAME.
7013         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
7014         before calling into the VRP specific simplifiers.
7015         (identify_jump_threads): Remove handle_dominating_asserts
7016         argument.
7018 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
7020         PR fortran/79886
7021         * tree-diagnostic.c (default_tree_printer): No longer static.
7022         * tree-diagnostic.h (default_tree_printer): New prototype.
7024 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
7026         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
7027         Change ins into fmov.
7029 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7031         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
7032         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
7033         Use h_con constraint for operand 1.
7034         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7035         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
7037 2017-03-15  Jeff Law  <law@redhat.com>
7039         PR tree-optimization/71437
7040         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
7041         (record_temporary_equivalences): Use it.
7043         PR tree-optimization/71437
7044         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
7045         tree-ssa-scopedtables.
7046         (lookup_avail_expr, build_and_record_new_cond): Likewise.
7047         (record_conditions, record_cond, vuse_eq): Likewise.
7048         (record_edge_info): Adjust to API tweak of record_conditions.
7049         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
7050         (record_temporary_equivalences, optimize_stmt): Likewise.
7051         (eliminate_redundant_computations): Likewise.
7052         (record_equivalences_from_stmt): Likewise.
7053         * tree-ssa-scopedtables.c: Include options.h and params.h.
7054         (vuse_eq): New function, moved from tree-ssa-dom.c
7055         (build_and_record_new_cond): Likewise.
7056         (record_conditions): Likewise.  Accept vector of conditions rather
7057         than edge_equivalence structure for first argument.
7058         for the first argument.
7059         (avail_exprs_stack::lookup_avail_expr): New member function, moved
7060         from tree-ssa-dom.c.
7061         (avail_exprs_stack::record_cond): Likewise.
7062         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
7063         from tree-ssa-dom.c.
7064         (avail_exprs_stack): Add new member functions lookup_avail_expr
7065         and record_cond.
7066         (record_conditions): Declare.
7068 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
7070         PR target/80017
7071         * lra-constraints.c (process_alt_operands): Increase reject for
7072         reloading an input/output operand.
7074 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7076         PR target/79038
7077         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
7078         insns to convert from signed/unsigned char/short to IEEE 128-bit
7079         floating point.
7080         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
7082 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
7084         PR target/80019
7085         * config/i386/i386.c (ix86_vector_duplicate_value): Create
7086         subreg of inner mode for values already in registers.
7088 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
7090         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
7091         iteration reg is used after the loop.
7093 2017-03-14  Martin Sebor  <msebor@redhat.com>
7095         PR tree-optimization/79800
7096         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
7097         precision in negative-positive range.
7098         (format_floating): Call non-const overload with adjusted precision.
7100 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7102         PR target/79947
7103         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
7104         -mpowerpc-gfxopt.
7106 2017-03-14  Martin Sebor  <msebor@redhat.com>
7108         PR middle-end/80020
7109         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
7110         * builtins.def (aligned_alloc): Use it.
7112         PR c/79936
7113         * Makefile.in (GTFILES): Add calls.c.
7114         * calls.c: Include "gt-calls.h".
7116 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
7118         PR rtl-optimization/79728
7119         * regs.h (struct target_regs): New field
7120         x_contains_allocatable_regs_of_mode.
7121         (contains_allocatable_regs_of_mode): New macro.
7122         * reginfo.c (init_reg_sets_1): Initialize it, and change
7123         contains_reg_of_mode so it includes global regs as well.
7124         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
7125         rather than contains_regs_of_mode.
7127 2017-03-14  Martin Liska  <mliska@suse.cz>
7129         * doc/invoke.texi: Document options that can't be combined with
7130         -fcheck-pointer-bounds.
7132 2017-03-14  Martin Liska  <mliska@suse.cz>
7134         PR middle-end/79831
7135         * doc/invoke.texi (-Wchkp): Document the option.
7137 2017-03-14  Martin Liska  <mliska@suse.cz>
7139         * Makefile.in: Install gcov-dump.
7141 2017-03-14  Martin Liska  <mliska@suse.cz>
7143         * multiple_target.c (expand_target_clones): Bail out for
7144         an invalid attribute.
7146 2017-03-14  Richard Biener  <rguenther@suse.de>
7148         * alias.c (struct alias_set_entry): Pack properly.
7149         * cfgloop.h (struct loop): Likewise.
7150         * cse.c (struct set): Likewise.
7151         * ipa-utils.c (struct searchc_env): Likewise.
7152         * loop-invariant.c (struct invariant): Likewise.
7153         * lra-remat.c (struct cand): Likewise.
7154         * recog.c (struct change_t): Likewise.
7155         * rtl.h (struct address_info): Likewise.
7156         * symbol-summary.h (function_summary): Likewise.
7157         * tree-loop-distribution.c (struct partition): Likewise.
7158         * tree-object-size.c (struct object_size_info): Likewise.
7159         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
7160         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
7161         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
7162         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
7163         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
7164         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
7165         (struct _stmt_vec_info): Likewise.
7167 2017-03-14  Martin Liska  <mliska@suse.cz>
7169         PR target/79892
7170         * multiple_target.c (create_dispatcher_calls): Check that
7171         a target can create a function dispatcher.
7173 2017-03-14  Martin Liska  <mliska@suse.cz>
7175         PR lto/66295
7176         * multiple_target.c (expand_target_clones): Drop local.local
7177         flag for default implementation.
7179 2017-03-14  Richard Biener  <rguenther@suse.de>
7181         PR tree-optimization/80030
7182         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
7184 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
7186         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
7187         gcc_fallthrough() instead of __attribute__((fallthrough));
7189 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
7191         * doc/gcc.texi: Remove "up" link to (DIR).
7192         * doc/gccint.texi: Ditto.
7194 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
7196         * doc/install.texi (Specific) <avr>: Remove reference to
7197         binutils 2.13.
7199 2017-03-13  Jeff Law  <law@redhat.com>
7201         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
7202         attribute rather than comments.
7204         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
7205         match_scratch operand is highest.
7207 2017-03-13  Martin Liska  <mliska@suse.cz>
7209         PR middle-end/78339
7210         * ipa-pure-const.c (warn_function_noreturn): If the declarations
7211         is a CHKP clone, use original declaration.
7213 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7215         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
7216         (arc_conditional_register_usage): Use a different allocation order
7217         when optimizing for size.
7218         * common/config/arc/arc-common.c (arc_option_optimization_table):
7219         Section anchors default on when optimizing for size.
7221 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7223         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
7225 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7227         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
7228         * config/arc/arc.md (cpu_facility): Add cd variant.
7229         (*movqi_insn): Add code density variant.
7230         (*movhi_insn): Likewise.
7231         (*movqi_insn): Likewise.
7232         (*addsi3_mixed): Likewise.
7233         (subsi3_insn): Likewise.
7235 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7237         * config/arc/arc.md (movsi_cond_exec): Update constraint.
7239 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7241         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
7242         expressions with MINUS and UNARY ops.
7244 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7246         PR target/79911
7247         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
7248         Rename to...
7249         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
7250         between vec_select and vector argument.
7251         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
7252         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
7253         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
7254         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
7255         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
7256         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
7258 2017-03-13  Richard Biener  <rguenther@suse.de>
7260         PR other/79991
7261         * params.def (vect-max-peeling-for-alignment): Fix typo.
7263 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7265         * doc/install.texi (Specific) <mips-*-*>: Remove description of
7266         issue that only occurred with binutils below 2.18.
7268 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7270         * doc/install.texi (Specific) <cris-axis-elf>: No longer
7271         refer to binutils 2.11/2.12 minimum.
7273 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7275         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
7276         ftp.kernel.org and simplify binutils requirement.
7278 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
7280         * doc/invoke.texi (Warning Options): Fix spelling of link-time
7281         optimization.
7282         (Optimize Options): Ditto.  Also remove redundancy.
7284 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7286         PR translation/79848
7287         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
7288         "%qs".
7289         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
7290         to G_ to avoid double translation.
7292 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7294         PR translation/79923
7295         * auto-profile.c (get_combined_location): Convert leading
7296         character of diagnostics to lower case and remove trailing period.
7297         (read_profile): Likewise for various diagnostics.
7298         * config/arm/arm.c (arm_option_override): Remove trailing period
7299         from various diagnostics.
7300         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
7301         (msp430_expand_delay_cycles): Likewise.
7303 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7305         PR target/79925
7306         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
7307         full command-line argument, rather than just "str".
7308         (aarch64_validate_march): Likewise.
7309         (aarch64_validate_mtune): Likewise.
7311 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
7313         PR rtl-optimization/78911
7314         * lra-assigns.c (must_not_spill_p): New function.
7315         (spill_for): Use it.
7317 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
7319         PR tree-optimization/79981
7320         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
7321         ATOMIC_COMPARE_EXCHANGE ifn result.
7322         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
7323         IFN_ATOMIC_COMPARE_EXCHANGE.
7325 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7327         PR driver/79875
7328         * opts.c (parse_sanitizer_options): Add missing question mark to
7329         "did you mean" message.
7331 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7333         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
7334         built-in.
7335         (VMULEUH_UNS): Likewise.
7336         (VMULOUB_UNS): Likewise.
7337         (VMULOUH_UNS): Likewise.
7338         * config/rs6000/rs6000.c (builtin_function_type): Remove
7339         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
7341 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7343         PR bootstrap/79952
7344         * read-rtl-function.c (function_reader::read_rtx_operand): Update
7345         x with result of extra_parsing_for_operand_code_0.
7346         (function_reader::extra_parsing_for_operand_code_0): Convert
7347         return type from void to rtx, returning x.  When reading
7348         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
7349         larger size containing struct block_symbol.
7351 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
7353         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
7354         -mfloat128-hardware without -m64.
7356 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
7358         PR target/79941
7359         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
7360         entries to the case statement that marks unsigned arguments to
7361         overloaded functions.
7363 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7365         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
7366         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
7368 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
7370         PR target/79907
7371         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
7372         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
7374 2017-03-10  Martin Liska  <mliska@suse.cz>
7376         PR target/65705
7377         PR target/69804
7378         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
7379         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
7380         FIELD != NULL.
7382 2017-03-10  Olivier Hainque  <hainque@adacore.com>
7384         * tree-switch-conversion (array_value_type): Start by resetting
7385         candidate type to it's main variant.
7387 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
7389         PR rtl-optimization/79909
7390         * combine.c (try_combine): Use simplify_replace_rtx on individual
7391         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
7392         of the whole CALL_INSN_FUNCTION_USAGE.
7394         PR tree-optimization/79972
7395         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
7396         get_range_info on SSA_NAMEs.  Formatting fixes.
7398 2017-03-10  Richard Biener  <rguenther@suse.de>
7399             Jakub Jelinek  <jakub@redhat.com>
7401         PR tree-optimization/77975
7402         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
7403         edge to be constant.
7404         (get_val_for): For constant x return it.  Formatting fix.
7405         (loop_niter_by_eval): Avoid pointless looping if the next iteration
7406         would use the same bases as the current one.
7408 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7410         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
7411         instead of vec_select for V1TImode.
7412         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
7413         longer needed.
7414         (VSX_LE_128): Add V1TI to this mode iterator.
7415         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
7416         (*vsx_le_perm_store_<mode>): Likewise.
7417         (pre-reload splitter for VSX stores): Likewise.
7418         (post-reload splitter for VSX stores): Likewise.
7419         (*vsx_xxpermdi2_le_<mode>): Likewise.
7420         (*vsx_lxvd2x2_le_<mode>): Likewise.
7421         (*vsx_stxvd2x2_le_<mode>): Likewise.
7423 2017-03-09  Michael Eager  <eager@eagercon.com>
7425         Correct failures with --enable-checking=yes,rtl.
7427         * config/microblaze/microblaze.c (microblaze_expand_shift):
7428         Replace GET_CODE test with CONST_INT_P and INTVAL test with
7429         test for const0_rtx.
7430         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
7431         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
7433 2017-03-09  Richard Biener  <rguenther@suse.de>
7435         PR tree-optimization/79977
7436         * graphite-scop-detection.c (scop_detection::merge_sese):
7437         Handle the case of extra exits to blocks dominating the entry.
7439 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
7441         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
7442         Document rdynamic.
7444 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
7446         PR rtl-optimization/79949
7447         * lra-constraints.c (process_alt_operands): Check memory when
7448         trying to predict a cycle.  Print about the overall increase.
7450 2017-03-09  Richard Biener  <rguenther@suse.de>
7452         PR middle-end/79971
7453         * gimple-expr.c (useless_type_conversion_p): Preserve
7454         TYPE_SATURATING for fixed-point types.
7456 2017-03-09  Richard Biener  <rguenther@suse.de>
7458         PR ipa/79970
7459         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
7460         alignment of BLKmode params.
7462 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7464         PR target/79913
7465         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
7466         (VALL_NO_V2Q): Likewise.
7467         (VDQF_DF): Delete.
7468         * config/aarch64/aarch64-simd.md
7469         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
7470         iterator.
7471         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
7472         VALL_NO_V2Q mode iterator.
7473         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
7475 2017-03-09  Martin Liska  <mliska@suse.cz>
7477         PR tree-optimization/79631
7478         * tree-chkp-opt.c (chkp_is_constant_addr): Call
7479         tree_int_cst_sign_bit just for INTEGER constants.
7481 2017-03-09  Martin Liska  <mliska@suse.cz>
7483         PR target/65705
7484         PR target/69804
7485         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
7486         sanitizers.
7488 2017-03-09  Marek Polacek  <polacek@redhat.com>
7490         PR c++/79672
7491         * tree.c (inchash::add_expr): Handle TREE_VEC.
7493 2017-03-09  Martin Liska  <mliska@suse.cz>
7495         PR ipa/79764
7496         (chkp_narrow_size_and_offset): New function.
7497         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
7498         (void chkp_parse_bit_field_ref): New function.
7499         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
7500         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
7502 2017-03-09  Martin Liska  <mliska@suse.cz>
7504         PR ipa/79761
7505         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
7506         (chkp_find_bounds_1): Remove gcc_unreachable.
7508 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
7510         PR sanitizer/79944
7511         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
7512         BUILT_IN_SYNC*, determine the access type from the size suffix and
7513         always build a MEM_REF with that type.  Handle forgotten
7514         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
7516         PR target/79932
7517         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
7518         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
7519         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
7520         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
7521         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
7522         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
7523         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
7524         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
7525         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
7526         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
7527         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
7528         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
7529         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
7530         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
7531         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
7532         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
7533         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
7534         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
7535         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
7536         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
7537         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
7538         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
7539         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
7540         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
7541         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
7542         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
7543         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
7544         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
7545         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
7546         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
7547         definitions outside of __OPTIMIZE__ guarded section.
7549         PR target/79932
7550         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
7551         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
7552         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
7553         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
7554         guarded section.
7556 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7558         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
7559         ("vfenez<mode>"): Add missing constraints.
7561 2017-03-08  Martin Sebor  <msebor@redhat.com>
7563         PR target/79928
7564         * config/nds32/nds32.c (nds32_option_override):
7565         Fix misspelled diagnostic.
7567 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7569         PR c/79940
7570         * gimplify.c (gimplify_omp_for): Replace index var in outer
7571         taskloop statement with an artificial variable and add
7572         OMP_CLAUSE_PRIVATE clause for it.
7574 2017-03-08  Richard Biener  <rguenther@suse.de>
7576         PR tree-optimization/79955
7577         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
7578         for accesses that are completely outside of the variable.
7580 2017-03-08  Andrew Haley  <aph@redhat.com>
7582         PR tree-optimization/79943
7583         * tree-ssa-loop-split.c (compute_new_first_bound): When
7584         calculating the new upper bound, (END-BEG) should be added, not
7585         subtracted.
7587 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7589         * config/avr/avr.md (setmemhi): Make sure match_dup
7590         operand number comes before match_scratch.
7592 2017-03-08  Richard Biener  <rguenther@suse.de>
7594         PR tree-optimization/79920
7595         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
7596         with ncopies == 1 to ...
7597         (vect_transform_slp_perm_load): ... here.  Properly compute
7598         all element loads by iterating VF times over the group.  Do
7599         not handle ncopies (computed in a broken way) in
7600         vect_create_mask_and_perm.
7602 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7604         PR sanitizer/79904
7605         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
7606         is a uniform vector, use uniform_vector_p return value instead of
7607         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
7609 2017-03-07  Marek Polacek  <polacek@redhat.com>
7611         PR middle-end/79809
7612         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
7613         (alloca_call_type): Likewise.
7615 2017-03-07  Martin Liska  <mliska@suse.cz>
7617         * gcov.c (process_args): Put comment to correct location.
7619 2017-03-07  Martin Liska  <mliska@suse.cz>
7621         PR middle-end/68270
7622         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
7623         Use array_at_struct_end_p instead of DECL_CHAIN (field).
7624         (chkp_narrow_bounds_for_field): Likewise.
7625         (chkp_parse_array_and_component_ref): Pass one more argument to
7626         call.
7628 2017-03-07  Richard Biener  <rguenther@suse.de>
7630         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
7631         preheaders.
7633 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
7635         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
7636         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
7638 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7640         PR c/79855
7641         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
7642         to end of description.
7643         (PARAM_MAX_STORES_TO_MERGE): Likewise.
7645 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
7647         PR rtl-optimization/79901
7648         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
7649         ...
7650         (*avx512f_<code><mode>3<mask_name>): ... this.
7651         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
7652         iterator instead of VI8_AVX2_AVX512BW.
7654         PR rtl-optimization/79901
7655         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
7656         min/max expander, expand it using expand_vec_cond_expr.
7658         PR sanitizer/79897
7659         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
7660         temporary.
7662 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
7664         PR c++/79821
7665         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
7666         to void * for PCH reasons.
7667         * dwarf2out.c (output_loc_operands, output_die): Cast
7668         v.val_vec.array to unsigned char *.
7670 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
7672         PR target/77850
7673         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
7674         vector types.
7676 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
7678         PR rtl-optimization/79571
7679         * lra-constraints.c (process_alt_operands): Calculate static
7680         reject and subtract it from overall when only addresses will be
7681         reloaded.
7683 2017-03-06  Julia Koval  <julia.koval@intel.com>
7685         PR target/79793
7686         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
7687         incoming stack boundary to 128 for 64-bit targets.
7689 2017-03-06  Richard Biener  <rguenther@suse.de>
7691         PR tree-optimization/79894
7692         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
7693         to NULL after folding it.
7695 2017-03-06  Richard Biener  <rguenther@suse.de>
7697         PR tree-optimization/79824
7698         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
7699         check disabling peeling for gaps.
7701 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
7703         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7704         attributes): Document gettimeofday.
7706 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7708         * config/s390/s390.c (s390_option_override_internal): Set
7709         PARAM_MIN_VECT_LOOP_BOUND
7711 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7713         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
7714         * config/s390/s390.md: Likewise.
7716 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
7718         PR target/79812
7719         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
7720         (<avx2_avx512>_perm<mode>): Rename to ...
7721         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
7722         of VI8F_256_512.
7723         (<avx512>_perm<mode>_mask): Rename to ...
7724         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
7725         of VI8F_256_512.
7726         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
7727         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
7728         instead of VI8F_256_512.
7729         (avx512f_perm<mode>): New define_expand.
7730         (avx512f_perm<mode>_mask): Likewise.
7731         (avx512f_perm<mode>_1<mask_name>): New define_insn.
7732         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
7734 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
7736         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
7737         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
7738         if_then_else.
7739         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
7741 2017-03-06  Martin Liska  <mliska@suse.cz>
7743         PR sanitize/79783
7744         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
7745         when having a SSA NAME w/o VAR_DECL assigned to it.
7747 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
7749         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
7750         msa_dpsub_<su>_d): Fix MODE for vec_select.
7752 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
7754         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
7755         argument.
7756         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
7758 2017-03-06  Richard Biener  <rguenther@suse.de>
7760         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
7761         * plugin.c (register_plugin_info): Likewise.
7762         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
7764 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
7766         * config/i386/sse.md (sse_storehps, sse_storelps,
7767         avx_<castmode><avxsizesuffix>_<castmode>,
7768         avx512f_<castmode><avxsizesuffix>_<castmode>,
7769         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
7770         in condition that at least one operand is not a MEM.
7772 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
7774         PR middle-end/79805
7775         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
7776         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
7777         ECF_NOTHROW.
7778         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
7779         gimple_call_nothrow_p flag based on whether original builtin can throw.
7780         If it can, emit following stmts on the fallthrough edge.
7781         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
7782         don't create new bb if inserting just debug stmts on the edge, try to
7783         insert them on the fallthru bb or just reset debug stmts.
7785 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
7787         PR target/43763
7788         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
7789         restore recog_data (including the operand rtxes inside it) around
7790         the call to get_insn_template.
7792 2017-03-03  Martin Sebor  <msebor@redhat.com>
7794         PR tree-optimization/79699
7795         * context.c (context::~context): Free MPFR caches to avoid
7796         a memory leak on program exit.
7798 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7800         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
7801         Use wide_int::ulow () instead of .elt (0).
7803 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
7805         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
7806         (*pushxf): Limit oF constraint to 32bit targets and add oC
7807         constraint for 64bit targets.
7808         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
7809         (*pushdf): Change rmF constraint to rmC.
7811 2017-03-03  Martin Liska  <mliska@suse.cz>
7813         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
7814         Remove unused variable.
7816 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
7818         PR target/79807
7819         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
7820         is a memory operand, increase num_memory.
7821         (ix86_expand_args_builtin): Likewise.
7823 2017-03-03  Jan Hubicka  <jh@suse.cz>
7825         PR lto/79760
7826         * ipa-devirt.c (maybe_record_node): Properly handle
7827         __cxa_pure_virtual visibility.
7829 2017-03-03  Martin Liska  <mliska@suse.cz>
7831         PR tree-optimization/79803
7832         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
7833         assert.
7834         (pass_loop_prefetch::execute): Disabled optimization if an
7835         assumption about L1 cache size is not met.
7837 2017-03-03  Martin Liska  <mliska@suse.cz>
7839         PR rtl-optimization/79574
7840         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
7841         (hash_scan_set): Likewise.
7842         (dump_hash_table): Likewise.
7843         (hoist_code): Likewise.
7845 2017-03-03  Richard Biener  <rguenther@suse.de>
7847         * fixed-value.c (fixed_from_string): Restore use of elt (1)
7848         in place of uhigh ().
7849         (fixed_convert_from_real): Likewise.
7851 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
7853         PR target/79514
7854         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
7856 2017-03-03  Richard Biener  <rguenther@suse.de>
7858         PR middle-end/79818
7859         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
7860         TYPE_OVERFLOW_UNDEFINED check.
7862 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7864         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
7865         numbers.
7866         (vector_ae_<mode>_p): Likewise.
7867         (vector_nez_<mode>_p): Likewise.
7868         (vector_ne_v2di_p): Likewise.
7869         (vector_ae_v2di_p): Likewise.
7870         (vector_ne_<mode>_p): Likewise.
7871         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
7872         numbers.
7873         (vsx_tsqrt<mode>2_fe): Likewise.
7875 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
7877         PR target/79514
7878         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
7880 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
7882         PR rtl-optimization/79780
7883         * cprop.c (one_cprop_pass): When second and further conditional trap
7884         in a single basic block is turned into an unconditional trap, turn it
7885         into a deleted note to avoid RTL verification failures.
7887 2017-03-02  Richard Biener  <rguenther@suse.de>
7889         * fold-const.c (const_binop): Use ulow () instead of elt (0).
7891 2017-03-02  Richard Biener  <rguenther@suse.de>
7893         PR tree-optimization/79345
7894         PR c++/42000
7895         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
7896         param and abort the walk, returning -1 if it is hit.
7897         (walk_aliased_vdefs): Take a limit param and pass it on.
7898         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
7899         defaulting to 0 and return a signed int.
7900         * tree-ssa-uninit.c (struct check_defs_data): New struct.
7901         (check_defs): New helper.
7902         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
7903         about uninitialized memory.
7904         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
7905         bogus uninitialized warning.
7906         (fixed_convert_from_real): Likewise.
7908 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
7910         PR tree-optimization/66768
7911         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
7912         iv_use if base object can't be determined.
7914 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
7916         PR tree-optimization/79345
7917         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
7918         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
7919         (get_pattern_stats): Initialize it.
7920         * genemit.c (gen_expand): Verify match_scratch numbers come after
7921         match_operand/match_dup numbers.
7922         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
7923         match_scratch numbers.
7924         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
7925         Likewise.
7926         * config/s390/s390.md (trunctdsd2): Likewise.
7928 2017-03-02  Richard Biener  <rguenther@suse.de>
7930         * wide-int.h (wide_int_storage::operator=): Implement in terms
7931         of wi::copy.
7933 2017-03-02  Richard Biener  <rguenther@suse.de>
7935         PR tree-optimization/79777
7936         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
7937         the to insert expression to sth existing.
7939 2017-03-01  Martin Sebor  <msebor@redhat.com>
7941         PR middle-end/79692
7942         * gimple-ssa-sprintf.c
7943         (directive::known_width_and_precision): New function.
7944         (format_integer): Use it.
7945         (get_mpfr_format_length): Consider the full range of precision
7946         when computing %g output with the # flag.  Set the likely byte
7947         count to 3 rather than 1 when precision is indeterminate.
7948         (format_floating): Correct the lower bound of precision.
7950 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7952         * doc/invoke.texi: Document default code model for 64-bit Linux.
7954 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7956         PR target/79752
7957         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
7958         udiv rather than div since input pattern is unsigned.
7960 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
7962         * config/i386/i386.c (print_reg): Warn for values of
7963         unsupported size in integer register.
7965 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7967         PR target/79439
7968         * config/rs6000/predicates.md (current_file_function_operand): Do
7969         not allow self calls to be local if the function is replaceable.
7971 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7973         PR target/79395
7974         * config/rs6000/altivec.h (vec_ctz and others): Change the
7975         preprocessor macro that controls conditional compilation from
7976         _ARCH_PWR9 to __POWER9_VECTOR__.
7977         (vec_all_ne): Change parameterization of __altivec_scalar_pred
7978         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
7979         control (instead of _ARCH_PWR9 control) so that template
7980         definition uses power9-specific function.
7981         (vec_any_eq): Likewise.
7982         (vec_all_ne): Change macro definition to use a power9-specific
7983         expansion under #ifdef __POWER9_VECTOR__ control (instead of
7984         _ARCH_PWR9 control).
7985         (vec_any_eq) Likewise.
7986         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
7987         expansion for CMPNEF to remove support for xvcmpnesp instruction.
7988         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
7989         support for xvcmpnedp instruction.
7990         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
7991         macro expansion so that Power9 implementation of vec_all_ne does
7992         not use the AltiVec predicate framework.
7993         (VCMPNEH_P): Likewise.
7994         (VCMPNEW_P): Likewise.
7995         (VCMPNED_P): Likewise.
7996         (VCMPNEFP_P): Likewise.
7997         (VCMPNEDP_P): Likewise.
7998         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
7999         implementation of vec_any_eq to not use AltiVec predicate
8000         framework.
8001         (VCMPAEH_P): Likewise.
8002         (VCMPAEW_P): Likewise.
8003         (VCMPAED_P): Likewise.
8004         (VCMPAEFP_P): Likewise.
8005         (VCMPAEDP_P): Likewise.
8006         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
8007         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
8008         not use the AltiVec predicate framework.
8009         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
8010         of vec_any_eq to not use AltiVec predicate framework.
8011         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
8012         support for predefined __POWER9_VECTOR__ macro to indicate that
8013         Power9 instruction selection is enabled.
8014         (altivec_overloaded_builtins): Remove extraneous
8015         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
8016         function argument types RS6000_BTI_bool_V16QI and
8017         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
8018         entry for overloaded function argument types RS6000_BTI_bool_V4SI
8019         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
8020         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
8021         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
8022         Power9 for implementations of vec_cmpne.  Change the signature for
8023         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
8024         (representing vec_all_ne) to remove the previously described first
8025         argument of type RS6000_BTI_INTSI, as this was an artifact of
8026         reliance on the AltiVec predicate framework, which is no longer
8027         used in the implementation of these functions.  Add
8028         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
8029         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
8030         since, unlike the AltiVec predicate framework implementation, we
8031         do not share function descriptors between vec_alle and vec_anyeq.
8032         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
8033         set of modes that receive special treatment even when
8034         TARGET_P9_VECTOR is true.  The special treatment emits code that
8035         does not depend on Power9 instructions.
8036         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
8037         define_expand to not rely on AltiVec predicate framework.
8038         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8039         function.
8040         (vector_ne_v2di_p): Change this define_expand to not rely on
8041         AltiVec predicate framework.
8042         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
8043         function.
8044         (vector_ne_<mode>_p): Change this define_expand to not rely on
8045         AltiVec predicate framework.
8046         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8047         function.
8048         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
8049         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
8050         define_insn pattern.
8051         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
8052         define_insn pattern because the xvcmpne<VSs>. instruction is not
8053         supported.
8054         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
8055         instruction is not supported.
8057 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8059         * config/nvptx/nvptx.c: Include intl.h.
8061 2017-03-01  Martin Jambor  <mjambor@suse.cz>
8063         PR lto/78140
8064         * ipa-prop.h (ipa_bits): Removed field known.
8065         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
8066         to pointers.  Adjusted their comments to warn about their sharing.
8067         (ipcp_transformation_summary): Change bits to a vector of pointers.
8068         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
8069         (ipa_get_ipa_bits_for_value): Declare.
8070         * tree-vrp.h (value_range): Mark as GTY((for_user)).
8071         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
8072         (ipa_bits_hash_table): Likewise.
8073         (ipa_vr_ggc_hash_traits): Likewise.
8074         (ipa_vr_hash_table): Likewise.
8075         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
8076         being pointers and vr_known being removed.
8077         (ipa_set_jf_unknown): Likewise.
8078         (ipa_get_ipa_bits_for_value): New function.
8079         (ipa_set_jfunc_bits): Likewise.
8080         (ipa_get_value_range): New overloaded functions.
8081         (ipa_set_jfunc_vr): Likewise.
8082         (ipa_compute_jump_functions_for_edge): Use the above functions to
8083         construct bits and vr parts of jump functions.
8084         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
8085         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8086         exist.
8087         (ipcp_grow_transformations_if_necessary): Also allocate
8088         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8089         exist.
8090         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
8091         them.  Fix too long lines.
8092         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
8093         vr_known being removed.
8094         (ipa_read_jump_function): Use new setter functions to construct bits
8095         and vr parts of jump functions or set them to NULL.
8096         (write_ipcp_transformation_info): Adjust for bits being pointers.
8097         (read_ipcp_transformation_info): Likewise.
8098         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
8099         space.
8100         Include gt-ipa-prop.h.
8101         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
8102         being pointers.
8103         (ipcp_store_bits_results): Likewise.
8104         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
8105         Do not write to existing jump functions but use a temporary instead.
8107 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8109         PR c++/79681
8110         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
8111         attempt to use its first operand as BIT_FIELD_REF base.
8113 2017-03-01  Richard Biener  <rguenther@suse.de>
8115         PR middle-end/79721
8116         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
8117         interpolating formula in wrapping arithmetic.
8118         (chrec_apply): Convert chrec_evaluate return value to wanted type.
8120 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8122         PR tree-optimization/79734
8123         * tree-vect-generic.c (expand_vector_condition): Optimize
8124         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
8125         Handle VEC_COND_EXPR where comparison has different inner width from
8126         type's inner width.
8128 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
8130         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
8131         markup, and similar issues.  Remove @opindex entries for things
8132         that aren't options.  Add missing -mmpy-option entries.
8134 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8136         PR tree-optimization/79737
8137         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
8138         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
8139         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
8140         instead of byte_size.  Formatting fix.
8141         (shift_bytes_in_array_right): Formatting fix.
8143 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
8145         PR target/79749
8146         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
8147         condition on optimize for the leaf function test.
8149 2017-02-28  Martin Liska  <mliska@suse.cz>
8151         PR lto/79625
8152         * read-rtl-function.c (function_reader::handle_unknown_directive):
8153         Bail out when one uses -flto.
8155 2017-02-28  Martin Liska  <mliska@suse.cz>
8157         * common.opt: Replace space with tabular for options of <number>
8158         type.
8159         * config/i386/i386.opt: Show <number> value for
8160         -mlarge-data-threshold.
8161         * opts.c (print_filtered_help): Do not display number in hexadecimal
8162         format.
8164 2017-02-28  Martin Liska  <mliska@suse.cz>
8166         * common.opt: Fix --help=option -Q for options which are of
8167         an enum type.
8169 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
8171         * config/i386/i386.c (print_reg): Error out for values
8172         of 8-bit size in invalid integer register.
8174 2017-02-28  Martin Sebor  <msebor@redhat.com>
8176         PR tree-optimization/79691
8177         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
8179 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8181         PR target/79729
8182         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
8183         gcc_unreachable with output_operand_lossage.
8185 2017-02-28  Richard Biener  <rguenther@suse.de>
8187         PR tree-optimization/79740
8188         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
8189         inserts.
8190         (visit_nary_op): Insert the nary into the hashtable if we
8191         pattern-matched sth.
8192         * tree-ssa-pre.c (eliminate_insert): Robustify.
8194 2017-02-28  Richard Biener  <rguenther@suse.de>
8196         PR middle-end/79731
8197         * fold-const.c (decode_field_reference): Reject out-of-bound
8198         accesses.
8200 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8202         * config/i386/i386.c: Include intl.h.
8203         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
8204         instead of just cond ? "..." : "...".
8205         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
8206         * coverage.c (read_counts_file): Likewise.
8207         * omp-offload.c: Include intl.h.
8208         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
8209         of just cond ? "..." : "...".
8210         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
8211         of just cond ? "..." : "...".
8213 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
8215         PR target/79742
8216         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
8217         entry, if present.
8218         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
8219         'tune for' CPU name.
8220         * config/arm/arm-cpu-data.h: Regenerated.
8222 2017-02-28  Richard Biener  <rguenther@suse.de>
8224         PR tree-optimization/79732
8225         * tree-inline.c (expand_call_inline): Do not shadow var.
8227 2017-02-28  Richard Biener  <rguenther@suse.de>
8229         PR tree-optimization/79723
8230         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
8231         address-space properly.
8233 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
8235         * doc/optinfo.texi (Optimization groups): Fix option used for
8236         OPTGROUP_ALL.
8237         * doc/invoke.texi (-fopt-info): Document "omp".
8238         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
8239         (OPTGROUP_ALL): Add OPTGROUP_OMP.
8240         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
8241         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
8242         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
8244         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
8245         all users.
8246         * dumpfile.c (optgroup_options): Instead of "openmp", associate
8247         OPTGROUP_OMP with "omp".
8249 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
8251         PR target/79544
8252         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
8253         for arithmetic shift of unsigned V2DI.
8255 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
8257         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
8258         arc/linux.h headers.
8259         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
8260         (LINK_SPEC): Likewise.
8261         (ARC_TLS_EXTRA_START_SPEC): Likewise.
8262         (EXTRA_SPECS): Likewise.
8263         (STARTFILE_SPEC): Likewise.
8264         (ENDFILE_SPEC): Likewise.
8265         (LIB_SPEC): Likewise.
8266         (TARGET_SDATA_DEFAULT): Likewise.
8267         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
8268         (MULTILIB_DEFAULTS): Likewise.
8269         (DWARF2_UNWIND_INFO): Likewise.
8270         * config/arc/big.h: New file.
8271         * config/arc/elf.h: Likewise.
8272         * config/arc/linux.h: Likewise.
8273         * config/arc/t-uClibc: Remove.
8275 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
8277         PR tree-optimization/77536
8278         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
8279         (tree_transform_and_unroll_loop): Use above function to compute the
8280         estimated niter of unrolled loop and use it when scaling profile.
8281         Also use count info rather than frequency if it's non-zero.
8282         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
8283         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
8284         (vect_transform_loop): Call above function.
8286 2017-02-27  Richard Biener  <rguenther@suse.de>
8288         PR tree-optimization/45397
8289         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
8290         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
8291         (visit_nary_op): Add pattern matching for CSEing sign-changed
8292         or truncated operations with wider ones.
8294 2017-02-27  Richard Biener  <rguenther@suse.de>
8296         PR tree-optimization/79690
8297         * tree-vect-stmts.c (vectorizable_store): Use vector type
8298         built from the DR with address-space.
8300 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
8302         * doc/invoke.texi (Optimize Options): Refine the description
8303         of asan-use-after-return.
8305 2017-02-25  Alan Modra  <amodra@gmail.com>
8307         PR rtl-optimization/79584
8308         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
8309         base, not ad->base_term, the reg within base.  Remove assertion
8310         that ad->base == ad->base_term.  Replace gen_int_mode using
8311         bogus mode with const0_rtx.
8313 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
8315         PR middle-end/79396
8316         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
8317         FMA_EXPR like tcc_binary or tcc_unary.
8319         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
8321         PR debug/77589
8322         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
8323         bitfield.
8324         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
8325         (output_loc_operands): Handle DW_OP_call_ref and
8326         DW_OP_GNU_variable_value.
8327         (struct variable_value_struct): New type.
8328         (struct variable_value_hasher): Likewise.
8329         (variable_value_hash): New variable.
8330         (string_types): Remove.
8331         (copy_loc_descr): New function.
8332         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
8333         (prepend_loc_descr_to_each): New function.
8334         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
8335         instead of add_loc_descr_to_each if the first argument is single
8336         location list and the second has multiple.
8337         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
8338         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
8339         when looking for variable value which doesn't have other location info.
8340         (loc_list_from_tree): Formatting fix.
8341         (gen_array_type_die): Simplify DW_AT_string_length handling.
8342         (adjust_string_types): Remove.
8343         (gen_subprogram_die): Don't call adjust_string_types nor test/set
8344         string_types.  Call resolve_variable_values.
8345         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
8346         (resolve_addr_in_expr): Likewise.  Add A argument.
8347         (copy_deref_exprloc): Remove deref argument.  Adjust for the
8348         original expression being DW_OP_GNU_variable_value with optionally
8349         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
8350         optionally after it.
8351         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
8352         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
8353         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
8354         (variable_value_hasher::hash, variable_value_hasher::equal): New
8355         methods.
8356         (resolve_variable_value_in_expr, resolve_variable_value,
8357         resolve_variable_values, note_variable_value_in_expr,
8358         note_variable_value): New functions.
8359         (dwarf2out_early_finish): Call note_variable_value on all toplevel
8360         DIEs.
8362 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
8364         PR c/79677
8365         * opts.h (handle_generated_option): Add GENERATED_P argument.
8366         * opts-common.c (handle_option): Adjust function comment.
8367         (handle_generated_option): Add GENERATED_P argument, pass it to
8368         handle_option.
8369         (control_warning_option): Pass false to handle_generated_option
8370         GENERATED_P.
8371         * opts.c (maybe_default_option): Pass true to handle_generated_option
8372         GENERATED_P.
8373         * optc-gen.awk: Likewise.
8375 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8377         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
8378         a REG, look at the REG it is a SUBREG of.
8379         (splitter for cmpeqsi_t): Ditto.
8381 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8383         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
8384         the special USEs with the pattern of the insn, not the insn itself.
8386 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
8388         PR target/79473
8389         * doc/invoke.texi: Document -mload-store-pairs.
8391 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8392             Sandra Loosemore  <sandra@codesourcery.com>
8394         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
8395         argument isn't a CONST_INT.
8396         (nios2_alternate_compare_const): Assert op is a CONST_INT.
8397         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
8398         (nios2_validate_compare): Bypass alternate compare logic if *op2
8399         is not a CONST_INT.
8400         (ldstwm_operation_p): Return false if first_base is not a REG or
8401         if first_offset is not a CONST_INT.
8403 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8405         * config/cris/cris.md: Use correct operand in a define_peephole2.
8407 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8409         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
8411 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8413         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
8414         this_insn if it is an INSN or JUMP_INSN.
8415         (force_offsettable): Look at base, not at addr.
8416         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
8417         on things that aren't necessarily CONST_INTs.
8419 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
8421         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
8422         -mfpmath=sse is the default also for x86-32 targets with SSE2
8423         instruction set when @option{-ffast-math} is enabled
8425 2017-02-24  Jeff Law  <law@redhat.com>
8427         PR rtl-optimizatoin/79286
8428         * ira.c (update_equiv_regs): Drop may_trap_p exception to
8429         dominance test.
8431 2017-02-24  Richard Biener  <rguenther@suse.de>
8433         PR tree-optimization/79389
8434         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
8435         debug insns.
8437 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
8439         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
8440         function comment to reflect reality.
8441         (loop_exits_before_overflow): Fix typo in function description.
8443 2017-02-24  Richard Biener  <rguenther@suse.de>
8445         PR tree-optimization/79389
8446         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
8447         properly that a threading opportunity exists.  Detect conditional
8448         copy/constant propagation opportunities.
8450 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
8452         * config/visium/visium.md (type): Add trap.
8453         (b): New mode attribute.
8454         (*btst): Rename into...
8455         (*btst<mode>): ...this and adjust.
8456         (*cbranchsi4_btst_insn): Rename into...
8457         (*cbranch<mode>4_btst_insn): ...this and adjust.
8458         (trap): New define_insn.
8460 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
8462         PR tree-optimization/79389
8463         * ifcvt.c (struct noce_if_info): Add rev_cond field.
8464         (noce_reversed_cond_code): New function.
8465         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
8466         reversed_comparison_code.  Formatting fix.
8467         (noce_try_store_flag): Test rev_cond != NULL in addition to
8468         reversed_comparison_code.
8469         (noce_try_store_flag_constants): Likewise.
8470         (noce_try_store_flag_mask): Likewise.
8471         (noce_try_addcc): Use rev_cond if non-NULL instead of
8472         reversed_comparison_code.
8473         (noce_try_cmove_arith): Likewise.  Formatting fixes.
8474         (noce_try_minmax, noce_try_abs): Clear rev_cond.
8475         (noce_find_if_block): Initialize rev_cond.
8476         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
8477         instead of false as last argument never attempt to reverse it
8478         afterwards.
8480 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
8482         PR tree-optimization/79663
8483         * tree-predcom.c (combine_chains): Process refs in reverse order
8484         only for ZERO length chains, and add explaining comment.
8486 2017-02-23  Jeff Law  <law@redhat.com>
8488         PR tree-optimization/79578
8489         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
8490         in call to operand_equal_p.
8492 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
8494         PR target/71017
8495         * config/i386/cpuid.h: Fix another undefined behavior.
8497 2017-02-23  Richard Biener  <rguenther@suse.de>
8499         PR tree-optimization/79683
8500         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
8501         vector types for data-refs.
8503 2017-02-23  Martin Liska  <mliska@suse.cz>
8505         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
8507 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
8509         PR middle-end/79665
8510         * internal-fn.c (get_range_pos_neg): Moved to ...
8511         * tree.c (get_range_pos_neg): ... here.  No longer static.
8512         * tree.h (get_range_pos_neg): New prototype.
8513         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
8514         are known to be in between 0 and signed maximum inclusive, try to
8515         expand both unsigned and signed divmod and use the cheaper one from
8516         those.
8518 2017-02-22  Jeff Law  <law@redhat.com>
8520         PR tree-optimization/79578
8521         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
8522         to compare base operands.
8524 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
8526         PR target/79211
8527         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
8528         gpc_reg_operand instead of fpr_reg_operand.
8530 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
8532         * config/mips/mips.c (mips_return_in_memory): Force FP
8533         vector types to be returned in memory for o32 ABI.
8535 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
8537         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
8538         instead of DW_TAG_member for static data member declarations and don't
8539         set no_linkage_name for static inline data members.
8540         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
8541         to DW_TAG_member.
8543 2017-02-22  Martin Liska  <mliska@suse.cz>
8545         * doc/invoke.texi: Replace inequality signs with square brackets
8546         for -Wnormalized.
8548 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8550         PR tree-optimization/68644
8551         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
8553 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
8555         PR target/78660
8556         * lra-constraints.c (simplify_operand_subreg): Handle
8557         WORD_REGISTER_OPERATIONS targets.
8559 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
8561         PR target/70465
8562         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
8563         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
8564         elimination by swapping fld*.
8566 2017-02-22  Richard Biener  <rguenther@suse.de>
8568         PR tree-optimization/79673
8569         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
8570         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
8571         irrelevant address-space qualifiers and avoiding a
8572         ADDR_SPACE_CONVERT_EXPR from fold_convert.
8574 2017-02-22  Richard Biener  <rguenther@suse.de>
8576         PR tree-optimization/79666
8577         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
8578         to not symbolically negate if that may introduce undefined
8579         overflow.
8581 2017-02-22  Martin Liska  <mliska@suse.cz>
8583         PR lto/79587
8584         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
8585         * data-streamer-out.c (streamer_write_gcov_count_stream):
8586         Likewise.
8587         * value-prof.c (stream_out_histogram_value): Make assert more
8588         precise based on type of counter.
8590 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
8592         PR target/79593
8593         * config/i386/i386.md (standard_x87sse_constant_load splitter):
8594         Use nonimmediate_operand instead of memory_operand for operand 1.
8595         (float-extend standard_x87sse_constant_load splitter): Ditto.
8597 2017-02-21  Jeff Law  <law@redhat.com>
8599         PR tree-optimization/79621
8600         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
8601         blocks with edges to themselves.
8603 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
8605         PR target/79633
8606         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
8607         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
8608         Use gimple_call_builtin_p.
8610         PR target/79570
8611         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
8612         on temporarily removed DEBUG_INSNs.
8614         PR tree-optimization/79649
8615         * tree-loop-distribution.c (classify_partition): Give up on
8616         non-generic address space loads/stores.
8618 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
8620         * doc/loop.texi (Loop manipulation): Remove nonexistent
8621         tree_ssa_loop_version from the documentation.
8622         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
8624 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
8626         PR target/79494
8627         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
8628         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
8629         * config/rs6000/rs6000.c: Include except.h.
8630         (rs6000_expand_split_stack_prologue): Call
8631         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
8633 2017-02-21  Martin Jambor  <mjambor@suse.cz>
8635         PR lto/79579
8636         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
8637         have been analyzed.
8639 2017-02-21  Martin Jambor  <mjambor@suse.cz>
8641         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
8642         for backward compatibility only.
8643         * doc/invoke.texi (Option Summary): Remove all references to
8644         -fipa-cp-alignment.
8646 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
8648         PR target/78660
8649         Revert:
8650         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8652         * lra-constraints.c (curr_insn_transform): Handle
8653         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
8655 2017-02-21  Martin Liska  <mliska@suse.cz>
8657         * config/i386/i386.opt: Replace -masm-dialect with -masm.
8659 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
8661         PR translation/79638
8662         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
8664 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
8666         PR ada/67205
8667         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8668         (arm_function_ok_for_sibcall): Return false for an indirect call by
8669         descriptor if all the argument registers are used.
8670         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
8671         alignment of the function.
8673 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
8675         PR tree-optimization/61441
8676         * simplify-rtx.c (simplify_const_unary_operation): For
8677         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
8678         the sNaN unmodified.
8680 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8682         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8683         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8684         instead of SYSTEM_HEADER_DIR.
8686 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
8687             Martin LiÅ¡ka  <mliska@suse.cz>
8689         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
8690         Fix typos and grammar, use active voice, and clarify.
8692 2017-02-20  Marek Polacek  <polacek@redhat.com>
8694         PR middle-end/79537
8695         * gimplify.c (gimplify_expr): Handle unused *&&L;.
8697         PR sanitizer/79558
8698         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
8700 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
8702         PR target/79568
8703         * config/i386/i386.c (ix86_expand_builtin): Handle
8704         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
8705         ix86_builtins_isa[fcode].isa as a requirement of those
8706         flags and any other flag in the bitmask.
8707         (ix86_init_mmx_sse_builtins): Use 0 instead of
8708         ~OPTION_MASK_ISA_64BIT as mask.
8709         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
8710         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
8711         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
8712         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
8714 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8716         PR target/78012
8717         * lra-constraints.c (split_reg): Check requested split mode
8718         is supported by the register.
8720 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8722         * lra-constraints.c (simplify_operand_subreg): Remove early
8723         return false.
8725 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8727         PR target/78660
8728         * lra-constraints.c (curr_insn_transform): Tighten condition
8729         for converting SUBREG reloads from OP_OUT to OP_INOUT.
8731 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8733         PR target/78660
8734         * lra-constraints.c (curr_insn_transform): Handle
8735         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
8737 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
8739         Revert:
8740         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
8742         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
8744 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
8746         PR c++/69523
8747         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
8748         description.
8750 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8752         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
8753         for FMA_EXPR.
8755 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
8757         * final.c (last_columnnum, override_columnnum): New variables.
8758         (final_start_function): Set last_columnnum, pass it to begin_prologue
8759         hook and pass 0 to dwarf2out_begin_prologue.
8760         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
8761         to source_line debug hook.
8762         (notice_source_line): Compute last_columnnum and for debug_column_info
8763         return true on column changes.
8764         * debug.h (struct gcc_debug_hooks): Add column argument to
8765         source_line and begin_prologue hooks.
8766         (debug_nothing_int_charstar_int_bool): Remove prototype.
8767         (debug_nothing_int_int_charstar,
8768         debug_nothing_int_int_charstar_int_bool): New prototypes.
8769         (dwarf2out_begin_prologue): Add column argument.
8770         * debug.c (do_nothing_debug_hooks): Adjust source_line and
8771         begin_prologue hooks.
8772         (debug_nothing_int_charstar_int_bool): Remove.
8773         (debug_nothing_int_int_charstar,
8774         debug_nothing_int_int_charstar_int_bool): New functions.
8775         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
8776         through to dwarf2out_source_line.
8777         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
8778         (dwarf2out_source_line): Add column argument, emit it if requested.
8779         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
8780         arguments.
8781         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
8782         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
8783         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
8784         through to dwarf2out_begin_prologue.
8785         (vmsdbgout_source_line): Add column argument, pass it through to
8786         dwarf2out_source_line.
8787         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
8788         dbxout_source_line caller.
8789         (dbxout_source_line): Add column argument.
8791         * common.opt (gno-column-info, gcolumn-info): New options.
8792         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
8793         (check_die): Also test for multiple DW_AT_decl_column attributes.
8794         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
8795         DW_AT_decl_column if requested.
8796         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
8797         if requested.
8798         (gen_variable_die): Likewise.
8799         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
8800         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
8802         PR target/79569
8803         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
8804         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
8805         (ix86_handle_option): Handle OPT_m3dnowa.
8806         * doc/invoke.texi (-m3dnowa): Document.
8807         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
8808         -m3dnowa instead of -m3dnow -march=athlon.
8810         PR target/79559
8811         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
8812         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
8814 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8816         PR target/79261
8817         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
8818         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
8819         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
8820         generator for vsx_xxpermdi_<mode>_be.
8821         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
8822         force big-endian semantics.
8823         (vsx_xxpermdi_<mode>_be): New define_expand with same
8824         implementation as previous version of vsx_xxpermdi_<mode>.
8826 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
8828         PR tree-optimization/79327
8829         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
8830         variable, its initialization and use.
8832 2017-02-17  Julia Koval  <julia.koval@intel.com>
8834         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
8835         (OPTION_MASK_ISA_PKU_UNSET): New.
8836         (ix86_handle_option): Handle -mrdpid.
8837         * config/i386/cpuid.h (bit_RDPID): New.
8838         * config/i386/driver-i386.c (host_detect_local_cpu):
8839         Detect RDPID feature.
8840         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
8841         * config/i386/i386-c.c (ix86_target_macros_internal):
8842         Handle RDPID flag.
8843         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
8844         (ix86_valid_target_attribute_inner_p): Add "rdpid".
8845         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
8846         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
8847         * config/i386/i386.md (define_insn "rdpid"): New.
8848         * config/i386/i386.opt Add -mrdpid.
8849         * config/i386/immintrin.h (_rdpid_u32): New.
8851 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
8853         PR rtl-optimization/79541
8854         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
8855         instead of transforming it into USE.
8857 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
8859         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
8860         If HONOR_SNANS (SFmode) force the input to a register.
8861         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
8862         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
8863         an frsp or similar insn.
8865 2017-02-17  Martin Liska  <mliska@suse.cz>
8867         PR rtl-optimization/79577
8868         * params.def (selsched-max-sched-times): Increase minimum to 1.
8870 2017-02-17  Martin Liska  <mliska@suse.cz>
8872         PR rtl-optimization/79574
8873         * gcse.c (want_to_gcse_p): Prevent integer overflow.
8875 2017-02-17  Martin Liska  <mliska@suse.cz>
8877         PR tree-optimization/79529
8878         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
8879         ssa_defined_default_def_p to handle cases which are implicitly
8880         defined.
8881         * tree-ssa.c (ssa_defined_default_def_p): New function.
8882         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
8883         which are implicitly defined.
8884         * tree-ssa.h (ssa_defined_default_def_p): Declare.
8886 2017-02-17  Richard Biener  <rguenther@suse.de>
8888         PR middle-end/79576
8889         * params.def (max-ssa-name-query-depth): Limit to 10.
8891 2017-02-17  Richard Biener  <rguenther@suse.de>
8893         PR tree-optimization/79552
8894         * tree-ssa-structalias.c (visit_loadstore): Properly verify
8895         default defs.
8897 2017-02-17  Richard Biener  <rguenther@suse.de>
8899         PR bootstrap/79567
8900         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
8902 2017-02-17  Marek Polacek  <polacek@redhat.com>
8904         PR middle-end/79536
8905         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
8906         (fold_negate_expr): New wrapper.
8908 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
8910         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
8911         Correct terminology and de-emphasize pre-standard behavior.
8913 2017-02-16  Alan Modra  <amodra@gmail.com>
8915         PR rtl-optimization/79286
8916         * ira.c (def_dominates_uses): New function.
8917         (update_equiv_regs): Don't create an equivalence for insns that
8918         may trap where the register def does not dominate the use.
8920 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
8922         PR rtl-optimization/78127
8923         * lra.c (lra): Call lra_eliminate before finish the loop after
8924         lra_constraint.
8926 2017-02-16  Richard Biener  <rguenther@suse.de>
8928         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
8929         isl/isl_val.h.
8930         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
8931         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
8932         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
8933         (isl_val_int_from_wi): New function.
8934         (extract_affine_gmp): Rename to ...
8935         (extract_affine_wi): ... this, take a widest_int.
8936         (extract_affine_int): Just wrap extract_affine_wi.
8937         (add_param_constraints): Use isl_val_int_from_wi.
8938         (add_loop_constraints): Likewise, and extract_affine_wi.
8940 2017-02-15  Jeff Law  <law@redhat.com>
8942         PR middle-end/79521
8943         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
8944         ira_init_register_move_cost_if_necessary.
8946 2017-02-15  Martin Sebor  <msebor@redhat.com>
8948         PR middle-end/32003
8949         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
8950         removed in a prior commit.
8952 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
8954         PR tree-optimization/79347
8955         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
8956         counters during peeling.
8958 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
8960         * Makefile.in (site.exp): Remove "set ISLVER".
8962 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
8964         PR target/79487
8965         * real.c (real_from_integer): Call real_convert even for decimal.
8967 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8969         PR target/79421
8970         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8972 2017-02-14  Andrew Pinski  <apinski@cavium.com>
8974         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
8975         cores and change the partno/implementer to be correct.
8976         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
8977         the 'B" as the implementer.
8978         * config/aarch64/aarch64-tune.md: Regenerate.
8980 2017-02-14  Carl Love  <cel@us.ibm.com>
8982         * config/rs6000/rs6000.c: Add case statement entry to make the
8983         xvcvuxdsp built-in argument unsigned.
8984         * config/rs6000/vsx.md: Fix the source and return operand types so they
8985         match the instruction definitions from the ISA document.  Fix typo
8986         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
8987         statement.
8989 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
8991         PR target/79282
8992         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
8993         member early_clobber_alts.
8994         * lra-lives.c (reg_early_clobber_p): New.
8995         (process_bb_lives): Use it.
8996         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
8997         (debug_operand_data): Initialize early_clobber_alts.
8998         (setup_operand_alternative): Set up early_clobber_alts.
8999         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
9000         alternatives to new_insn_reg.
9001         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
9002         it.
9003         (lra_update_insn_regno_info): Pass the new arg.
9005 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
9007         PR middle-end/79505
9008         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
9009         (new_oacc_loop_raw): Don't clear already cleared fields.
9011         PR target/79481
9012         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
9013         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
9014         _mm512_prefetch_i64gather_ps): New inline functions and macros.
9016 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
9018         PR target/79495
9019         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
9021 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
9023         PR target/79498
9024         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
9025         the extra instruction to the right place to store 128-bit constant
9026         when needed.
9028 2017-02-14  Martin Sebor  <msebor@redhat.com>
9030         PR middle-end/79448
9031         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
9032           warning for strings of unknown length.
9034 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
9036         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
9038 2017-02-14  Jeff Law  <law@redhat.com>
9040         PR target/79404
9041         * ira-costs.c (scan_one_insn): Initialize register move costs
9042         for pseudos seen in USE/CLOBBER insns.
9044         PR tree-optimization/79095
9045         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
9046         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
9047         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
9048         if the operands are known to be not equal, then the resulting range
9049         is ~[0,0].
9050         (intersect_ranges): If the new range is ~[0,0] and the old range is
9051         wide, then prefer ~[0,0].
9052         * tree-vrp.c (overflow_comparison_p_1): New function.
9053         (overflow_comparison_p): New function.
9054         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
9055         if NAME is used in an overflow test.
9056         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
9057         overflow check that can be expressed as an equality test, then adjust
9058         ops to be that equality test.
9060 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9062         * config/s390/s390-builtin-types.def: Remove flags argument.
9063         * config/s390/s390.c (s390_init_builtins): Likewise.
9065 2017-02-14  Martin Liska  <mliska@suse.cz>
9067         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
9068         vector.  Fix trailing white spaces.
9070 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
9072         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
9073         HFmode.
9075 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9077         PR rtl-optimization/68664
9078         * config/arm/arm.c (arm_sched_can_speculate_insn):
9079         New function.  Declare prototype.
9080         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9082 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9084         PR rtl-optimization/68664
9085         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
9086         New function.
9087         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9089 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
9091         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
9092         max skip bytes for function, loop and jump.
9094 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9096         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
9097         ABS_EXPR for gimple dump.
9099 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
9101         PR target/79462
9102         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
9104         PR tree-optimization/79408
9105         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
9106         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
9107         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9108         also if rhs1 is INTEGER_CST.
9110 2017-02-14  Richard Biener  <rguenther@suse.de>
9112         PR middle-end/79432
9113         * tree-into-ssa.c (insert_phi_nodes): When the function can
9114         have abnormal edges rewrite SSA names with broken use-def
9115         dominance out of SSA and register them for PHI insertion.
9117 2017-02-13  Martin Sebor  <msebor@redhat.com>
9119         PR middle-end/79496
9120         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
9121         clearing info.nowrite flag when snprintf size argument is a range.
9123 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
9125         * cprop.c (cprop_jump): Add missing space in string literal.
9126         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9127         (get_constraint_for_component_ref): Likewise.
9128         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9129         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
9130         * lra-constraints.c (process_alt_operands): Likewise.
9131         * ipa-inline.c (inline_small_functions): Likewise.
9132         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
9133         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9134         * trans-mem.c (diagnose_tm_1_op): Likewise.
9135         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
9136         (grid_parallel_clauses_gridifiable): Likewise.
9138         * config/nvptx/mkoffload.c (process): Add space in between
9139         , and %d.
9141         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
9142         "MOD4_SSE_REGS" and "ALL_REGS".
9144         * spellcheck.c (test_data): Add , in between "foo" and "food".
9146 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9148         PR target/79449
9149         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
9150         boundary crossing check and subsequent code generation agree.
9152 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9154         * config/aarch64/aarch64.c (has_memory_op): Delete.
9155         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
9156         has_memory_op.
9158 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
9160         PR rtl-optimization/79388
9161         PR rtl-optimization/79450
9162         * combine.c (distribute_notes): When removing TEM_INSN for which
9163         corresponding dest has last value recorded, invalidate that last
9164         value.
9166 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9168         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
9169         of explicit '@'.  Add missing assembly comment marker on branch costs
9170         printout.
9172 2017-02-13  Nathan Sidwell  <nathan@acm.org>
9174         * gengtype-lex.l (<in_struct>): Add '/'.
9176 2017-02-13  Martin Liska  <mliska@suse.cz>
9178         PR c/79471
9179         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
9181 2017-02-13  Richard Biener  <rguenther@suse.de>
9183         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
9184         Remove.
9185         * configure: Re-generate.
9186         * config.in: Likewise.
9187         * graphite-dependences.c: Simplify as if
9188         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
9189         * graphite-isl-ast-to-gimple.c: Likewise.
9190         * graphite-optimize-isl.c: Likewise.
9191         * graphite-poly.c: Likewise.
9192         * graphite-sese-to-poly.c: Likewise.
9193         * graphite.h: Likewise.
9194         * toplev.c: Include isl/version.h and use isl_version () for
9195         printing the ISL version.
9196         * doc/install.texi: Update ISL requirement.
9198 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
9200         * doc/standards.texi (Standards): Update reference to
9201         Objective-C 2.0.
9203 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
9205         * doc/extend.texi (Named Address Spaces): sourceware.org now
9206         defaults to https.
9207         * doc/install.texi (Binaries): Ditto.
9208         (Specific): Ditto.
9210 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
9212         * doc/cpp.texi: Replace "stringify"/"stringification" with C
9213         standard terminology "stringize"/"stringizing" throughout.
9214         * doc/cppinternals.texi: Likewise.
9216 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
9218         * doc/extend.texi: Fix some spelling mistakes and typos.
9219         * doc/invoke.texi: Likewise.
9221 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
9223         PR ipa/79224
9224         * params.def (inline-min-speedup) Change from 10 to 8.
9226 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
9228         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
9229         4.5.
9231 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
9233         PR ipa/79224
9234         * ipa-inline-analysis.c (get_minimal_bb): New function.
9235         (record_modified): Use it.
9236         (remap_edge_change_prob): Handle also ancestor functions.
9238 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
9240         * doc/contrib.texi (Contributors): Remove broken link into
9241         the Mauve CVS repository.
9243 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
9245         PR middle-end/79454
9246         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
9247         result computation whenever lhs doesn't have vector mode, not
9248         just when it has BLKmode.
9250 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
9252         * doc/makefile.texi (profiledbootstrap): Refer to the
9253         installation instructions only in textual form.
9255 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9257         PR target/79295
9258         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
9260 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
9262         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
9263         (Specific): Update mingw-w64 reference.
9264         (Binaries): Ditto.
9265         (Specific): Remove broken link to Renesas RX processor.
9267 2017-02-10  Richard Biener  <rguenther@suse.de>
9269         * toplev.c (process_options): Do not mention obsolete graphite
9270         options when printing sorry message about missing graphite support.
9271         Mention -floop-nest-optimize.
9273 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
9275         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
9276         (vtst_p16): Likewise.
9277         (vtstq_p8): Likewise.
9278         (vtstq_p16): Likewise.
9279         (vtst_p64): New.
9280         (vtstq_p64): Likewise.
9281         * config/arm/arm_neon.h (vgetq_lane_p64): New.
9282         (vset_lane_p64): New.
9283         (vsetq_lane_p64): New.
9285 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
9287         PR tree-optimization/79411
9288         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
9289         stmt operands are SSA_NAMEs used in abnormal phis.
9290         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
9291         phis.
9293 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
9295         PR ipa/70795
9296         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
9297         flag if needed.
9299 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
9301         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
9303 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
9305         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
9306         to avoid warning.
9308         PR c/79413
9309         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
9310         not arbitrary TREE_CONSTANT.
9312         PR c/79431
9313         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
9314         "omp declare target link" attribute unless is_global_var.
9315         * omp-offload.c (find_link_var_op): Likewise.
9317 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
9318             Chung-Lin Tang  <cltang@codesourcery.com>
9320         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
9321         OMP_CLAUSE_TILE.
9322         (gimplify_adjust_omp_clauses): Don't delete TILE.
9323         (gimplify_omp_for): Deal with TILE.
9324         * internal-fn.c (expand_GOACC_TILE): New function.
9325         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
9326         (GOACC_TILE): New.
9327         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
9328         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
9329         element fields.
9330         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
9331         avoid DIV for outermost collapse var.
9332         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
9333         Remove out of date comments, fix whitespace.
9334         * omp-general.c (omp_extract_for_data): Deal with tiling.
9335         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
9336         adjust OLF_DIM_BASE value.
9337         (struct omp_for_data): Add tiling field.
9338         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
9339         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
9340         for auto loops.  Remove default auto determining, moved to
9341         oacc_loop_fixed_partitions.
9342         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
9343         stmts, add e_mask field.
9344         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
9345         (oacc_thread_numbers): Use oacc_dim_call.
9346         (oacc_xform_tile): New.
9347         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
9348         (finish_oacc_loop): Adjust for ifns vector.
9349         (oacc_loop_discover_walk): Append loop abstraction sites to list,
9350         add case for GOACC_TILE fns.
9351         (oacc_loop_xform_loop): Delete.
9352         (oacc_loop_process): Iterate over call list directly, and add
9353         handling for GOACC_TILE fns.
9354         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
9355         dump partitioning.
9356         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
9357         vector partitioning to outer loops.  Assign 2 partitions to loops
9358         when available. Add TILE handling.
9359         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
9360         (execite_oacc_device_lower): Process GOACC_TILE fns,
9361         ignore unknown specs.
9362         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
9363         * tree.c (omp_clause_num_ops): Adjust TILE ops.
9364         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
9366 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
9368         * configure.ac (ACX_BUGURL): Update.
9369         * configure: Regenerate.
9371 2017-02-09  Richard Biener  <rguenther@suse.de>
9373         PR tree-optimization/69823
9374         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
9375         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
9377 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
9379         * config/arc/arc-c.def: Add __NPS400__ definition.
9380         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
9381         (TARGET_NPS400): Define.
9383 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
9385         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
9386         file.
9387         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
9388         pointer, arch_info.
9389         (arc_cpu_types): Fill the arch_info field with a pointer into the
9390         arc_arch_types table.
9391         (arc_selected_cpu): Declare.
9392         * config/arc/arc.c (arc_selected_cpu): Make global.
9393         (arc_selected_arch): Delete.
9394         (arc_base_cpu): Delete.
9395         (arc_override_options): Remove references to deleted variables,
9396         update access to arch information.
9397         (ARC_OPT): Update access to arch information.
9398         (ARC_OPTX): Likewise.
9399         * config/arc/arc.h (arc_base_cpu): Remove declaration.
9400         (TARGET_ARC600): Update access to arch information.
9401         (TARGET_ARC601): Likewise.
9402         (TARGET_ARC700): Likewise.
9403         (TARGET_EM): Likewise.
9404         (TARGET_HS): Likewise.
9405         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
9406         information.
9408 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
9410         PR target/78604
9411         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
9412         condition/operands for integer GE/LE/GEU/LEU operations.
9414 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
9416         PR translation/79397
9417         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
9418         of AltiVec.
9420 2017-02-08  Martin Jambor  <mjambor@suse.cz>
9422         PR ipa/79375
9423         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
9424         whether allocation happened.
9425         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
9426         nothing was allocated.
9428 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
9430         PR tree-optimization/79408
9431         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
9432         constant, but SSA_NAME with a known integer range, use the minimum
9433         of that range instead of op1 to determine if modulo can be replaced
9434         with its first operand.
9436 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9438         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
9440 2017-02-08  Richard Biener  <rguenther@suse.de>
9442         PR tree-optimization/71824
9443         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
9444         Check all loops contained in the merged region.
9446 2017-02-07  Andrew Pinski  <apinski@cavium.com>
9448         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
9450 2017-02-07  Andrew Pinski  <apinski@cavium.com>
9452         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
9453         (thunderxt88): Likewise.
9454         (thunderxt81): Disable LSE and change v8.1 to v8.
9455         (thunderxt83): Likewise.
9457 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
9458             Richard Biener  <rguenther@suse.de>
9460         PR middle-end/79399
9461         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
9462         type from int to size_t.
9463         * ira-costs.c (struct_costs_size): Change type from int to size_t.
9465 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
9467         PR rtl-optimization/79386
9468         * cprop.c (bypass_conditional_jumps): Initialize
9469         bypass_last_basic_block already before splitting bbs after
9470         unconditional traps...
9471         (bypass_conditional_jumps): ... rather than here.
9473         PR target/79299
9474         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
9475         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
9476         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
9477         fix -masm=intel patterns.
9479 2017-02-07  Richard Biener  <rguenther@suse.de>
9481         PR tree-optimization/79256
9482         PR middle-end/79278
9483         * builtins.c (get_object_alignment_2): Use min_align_of_type
9484         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
9485         and ADJUST_FIELD_ALIGN.
9487         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
9488         type parameter.
9489         * doc/tm.texi: Regenerate.
9490         * stor-layout.c (layout_decl): Adjust.
9491         (update_alignment_for_field): Likewise.
9492         (place_field): Likewise.
9493         (min_align_of_type): Likewise.
9494         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
9495         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
9496         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
9497         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
9498         * config/frv/frv.c (frv_adjust_field_align): Likewise.
9499         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
9500         * config/i386/i386.c (x86_field_alignment): Likewise.
9501         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
9502         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
9503         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
9504         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9505         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
9506         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
9507          Likewise.
9509         Revert
9510         2017-01-30  Richard Biener  <rguenther@suse.de>
9512         PR tree-optimization/79256
9513         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
9514         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
9515         alignment on TYPE.
9517 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
9519         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
9520         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
9521         builtins to SImode and emit a zero-extend, if necessary.
9523 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
9525         * docs/invoke.texi (RISC-V Options): Alphabetize.
9527 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
9529         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
9530         options.
9532 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
9534         * config/riscv/riscv.c: New file.
9535         * gcc/common/config/riscv/riscv-common.c: Likewise.
9536         * config.gcc: Likewise.
9537         * config/riscv/constraints.md: Likewise.
9538         * config/riscv/elf.h: Likewise.
9539         * config/riscv/generic.md: Likewise.
9540         * config/riscv/linux.h: Likewise.
9541         * config/riscv/multilib-generator: Likewise.
9542         * config/riscv/peephole.md: Likewise.
9543         * config/riscv/pic.md: Likewise.
9544         * config/riscv/predicates.md: Likewise.
9545         * config/riscv/riscv-builtins.c: Likewise.
9546         * config/riscv/riscv-c.c: Likewise.
9547         * config/riscv/riscv-ftypes.def: Likewise.
9548         * config/riscv/riscv-modes.def: Likewise.
9549         * config/riscv/riscv-opts.h: Likewise.
9550         * config/riscv/riscv-protos.h: Likewise.
9551         * config/riscv/riscv.h: Likewise.
9552         * config/riscv/riscv.md: Likewise.
9553         * config/riscv/riscv.opt: Likewise.
9554         * config/riscv/sync.md: Likewise.
9555         * config/riscv/t-elf-multilib: Likewise.
9556         * config/riscv/t-linux: Likewise.
9557         * config/riscv/t-linux-multilib: Likewise.
9558         * config/riscv/t-riscv: Likewise.
9559         * configure.ac: Likewise.
9560         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
9561         Waterman as RISC-V maintainers.
9562         * doc/install.texi: Add RISC-V entries.
9563         * doc/invoke.texi: Add RISC-V options section.
9564         * doc/md.texi: Add RISC-V constraints section.
9565         * configure: Regenerated.
9567 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9569         PR target/66144
9570         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
9571         false values to be constant vectors with all 0 or all 1 bits set.
9572         (vcondu<mode><mode>): Likewise.
9573         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
9574         predicate.
9575         (fpmask_comparison_operator): Update comment.
9576         (vecint_comparison_operator): New predicate.
9577         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
9578         vector conditionals when the true and false values are constant
9579         vectors with all 0 bits or all 1 bits set.
9581 2017-02-06  Martin Sebor  <msebor@redhat.com>
9583         PR  tree-optimization/79376
9584         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
9586 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
9588         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
9589         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
9590         to simplify split condition.
9592 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
9594         * omp-expand.c (oxpand_omp_atomic_fetch_op,
9595         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
9596         false.
9598 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
9600         PR rtl-optimization/68664
9601         * target.def (can_speculate_insn): New hook.
9602         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
9603         * doc/tm.texi: Regenerate.
9604         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
9605         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
9606         (rs6000_sched_can_speculate_insn): New function.
9608 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
9610         PR tree-optimization/79284
9611         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
9612         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
9613         vectorizable_mask_load_store, vectorizable_operation,
9614         vect_is_simple_cond, get_same_sized_vectype): Use it instead
9615         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
9616         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
9617         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
9618         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9619         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9620         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
9621         is_gimple_assign (stmt).  Replace another such test with
9622         is_gimple_assign (stmt).
9624 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
9626         PR target/78883
9627         * config/avr/avr.c (rtl-iter.h): Include it.
9628         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
9629         (avr_legitimate_combined_insn): ...and implementation.
9631 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9633         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
9634         * config/s390/s390.c (s390_const_operand_ok)
9635         (s390_canonicalize_comparison, s390_extract_part)
9636         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
9637         (s390_contiguous_bitmask_p, s390_rtx_costs)
9638         (legitimize_pic_address): Likewise.
9639         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
9640         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
9641         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
9642         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
9643         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
9645 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
9647         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
9648         REGNO($0) == REGNO($1).
9650 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9652         * config/s390/linux.h(SIZE_TYPE): Add comment.
9654 2017-02-06  Julian Brown  <julian@codesourcery.com>
9655             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
9656             Virendra Pathak  <virendra.pathak@broadcom.com>
9658         * config/aarch64/aarch64-cores.def: Change the scheduler
9659         to Thunderx2t99.
9660         * config/aarch64/aarch64.md: Include thunderx2t99.md.
9661         * config/aarch64/thunderx2t99.md: New file.
9663 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
9665         * doc/standards.texi (Go Language): Update link to language
9666         standard.
9668 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
9670         * tree-eh.c (lower_resx): Sanitize profile.
9671         (cleanup_empty_eh_move_lp): Likewise.
9673 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
9675         PR tree-ssa/79347
9676         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
9677         ELSE_PROB.
9678         * cfgloopmanip.h (loop_version): Update prototype.
9679         * modulo-sched.c (sms_schedule): Update call of loop_version.
9680         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
9681         * tree-parloops.c (gen_parallel_loop): Likewise.
9682         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
9683         * tree-ssa-loop-split.c (split_loop): Likewise.
9684         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
9685         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
9687 2017-02-05  Martin Liska  <mliska@suse.cz>
9689         PR bootstrap/78985
9690         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
9691         variable to NULL.
9692         (print_operand_address): Initialize a struct to zero.
9694 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
9696         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
9697         garbage collector only in textual form.
9699 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
9701         * doc/extend.texi (x86 specific memory model extensions for
9702         transactional memory): Simplify a phrase.
9704 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
9706         PR target/79353
9707         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
9708         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
9709         (atomic_storedi_1): Likewise.
9711 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
9713         PR tree-optimization/79338
9714         * tree-parloops.c (gather_scalar_reductions): Don't call
9715         vect_analyze_loop_form for loop->inner before destroying loop's
9716         loop_vinfo.
9718 2017-02-03  Martin Sebor  <msebor@redhat.com>
9720         PR tree-optimization/79327
9721         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
9722         when precision has resulted in leading zeros.
9723         (format_integer): Adjust the likely counter to assume an unknown
9724         argument that may be zero is non-zero.
9726 2017-02-03  Jason Merrill  <jason@redhat.com>
9728         PR c++/78689
9729         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
9730         avoid copying non-taken branch.
9732 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
9734         PR tree-optimization/79340
9735         * tree-vect-loop.c (vectorizable_reduction): Release
9736         vec_defs elements after safe_splicing them into other vectors.
9737         Formatting fixes.
9739         PR tree-optimization/79327
9740         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
9741         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
9742         dirtype.
9743         (format_integer): Use wide_int_to_tree instead of build_int_cst
9744         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
9745         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
9746         of shortest and longest sequence.
9748 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
9750         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
9751         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
9753 2017-02-03  Walter Lee  <walt@tilera.com>
9755         PR target/78862
9756         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
9757         after initial stackframe link reg save.
9758         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
9760 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
9762         PR target/79354
9763         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
9764         wu for stxssp alternative.
9766 2017-02-03  Martin Sebor  <msebor@redhat.com>
9768         PR tree-optimization/79352
9769         * gimple-fold.c (get_range_strlen): Add argument.
9770         (get_range_strlen): Change return type to bool.
9771         (get_maxval_strlen): Pass in a dummy argument.
9772         * gimple-fold.h (get_range_strlen): Change return type to bool.
9773         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
9774         * tree.h (array_at_struct_end_p): Add argument.
9775         * tree.c (array_at_struct_end_p): Handle it.
9777 2017-02-03  Martin Liska  <mliska@suse.cz>
9779         PR lto/66295
9780         * multiple_target.c (create_dispatcher_calls): Redirect edge
9781         from a caller of a dispatcher.
9782         (expand_target_clones): Make the clones local.
9783         (ipa_target_clone): Do both target clones and resolvers.
9784         (ipa_dispatcher_calls): Remove the pass.
9785         (pass_dispatcher_calls::gate): Likewise.
9786         (make_pass_dispatcher_calls): Likewise.
9787         * passes.def (pass_target_clone): Put as very first IPA early
9788         pass.
9790 2017-02-03  Martin Liska  <mliska@suse.cz>
9792         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
9793         in case of a function with ifunc attribute.
9795 2017-02-03  Martin Liska  <mliska@suse.cz>
9797         * cgraph.c (cgraph_node::dump): Dump function version info.
9798         * symtab.c (symtab_node::dump_base): Add missing new line.
9800 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
9802         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
9803         (ifcombine_ifandif): Use it.
9805 2017-02-03  Martin Liska  <mliska@suse.cz>
9807         * doc/invoke.texi: Document default value for
9808         use-after-scope-direct-emission-threshold.
9810 2017-02-03  Martin Liska  <mliska@suse.cz>
9812         PR tree-optimization/79339
9813         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
9814         (format_floating): Likewise.
9816 2017-02-03  Martin Liska  <mliska@suse.cz>
9818         PR ipa/79337
9819         * ipa-prop.c (ipa_node_params_t::insert): Remove current
9820         implementation.
9821         (ipa_node_params_t::remove): Likewise.
9822         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
9823         initialization from removed ipa_node_params_t::insert.
9824         (ipa_node_params::~ipa_node_params): Move from removed
9825         ipa_node_params_t::release.
9826         * symbol-summary.h (symbol_summary::m_released): New member.
9827         Do not release a summary twice.  Do not allow to call finalizer
9828         for types of a summary that live in GGC memory.
9830 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
9832         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
9833         cmp_branch fusion.
9835 2017-02-02  Martin Sebor  <msebor@redhat.com>
9837         PR middle-end/79275
9838         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
9839         (format_string): Tighten up the range of output for non-constant
9840         strings and correct the expected range for wide non-constant strings.
9842 2017-02-02  Martin Sebor  <msebor@redhat.com>
9844         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
9846         PR middle-end/32003
9847         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
9848         index.
9849         (-fdump-tree-@var): Add to index and document how to come up
9850         with pass-specific option and dump file names.
9851         (-fdump-passes): Clarify where to look for output.
9853 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
9855         PR middle-end/77445
9856         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
9857         statistics of the analyzed path; allow threading for speed when
9858         any of BBs along the path are optimized for speed.
9860 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
9862         PR middle-end/78468
9863         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
9864         settings of the virtual registers.
9866         Revert again
9867         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9869         * explow.c (get_dynamic_stack_size): Take known alignment of stack
9870         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
9871         needed.
9873 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9875         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
9876         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
9878 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9880         * config/s390/s390.md: Add missing comments with the expanded
9881         mnemonics.
9882         * config/s390/vector.md: Likewise.
9883         * config/s390/vx-builtins.md: Likewise.
9885 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
9887         PR target/79197
9888         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
9889         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
9890         conditions on a single line.
9892 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9894         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
9895         __S390_VX__ to __VX__.
9897 2017-02-01  Andrew Pinski  <apinski@cavium.com>
9899         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
9900         stmt_info to record_stmt_cost.
9901         (vect_get_known_peeling_cost): Pass stmt_info if known to
9902         record_stmt_cost.
9903         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
9904         cpu_vector_cost field into
9905         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
9906         field into vec_int_stmt_cost and vec_fp_stmt_cost.
9907         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
9908         splitting of scalar_stmt_cost and vec_stmt_cost.
9909         (thunderx_vector_cost): Likewise.
9910         (cortexa57_vector_cost): LIkewise.
9911         (exynosm1_vector_cost): Likewise.
9912         (xgene1_vector_cost): Likewise.
9913         (thunderx2t99_vector_cost): Improve after the splitting of the two
9914         fields.
9915         (aarch64_builtin_vectorization_cost): Update for the splitting of
9916         scalar_stmt_cost and vec_stmt_cost.
9918 2017-02-01  Torvald Riegel  <triegel@redhat.com>
9919             Richard Henderson  <rth@redhat.com>
9921         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
9922         conditional on existance of a fast atomic load.
9923         * optabs-query.c (can_atomic_load_p): New function.
9924         * optabs-query.h (can_atomic_load_p): Declare it.
9925         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
9926         no fast atomic load is available for the particular size of access.
9927         (expand_atomic_compare_and_swap): Likewise.
9928         (expand_atomic_load): Likewise.
9929         (expand_atomic_store): Likewise.
9930         (expand_atomic_fetch_op): Likewise.
9931         * testsuite/lib/target-supports.exp
9932         (check_effective_target_sync_int_128): Remove x86 because it provides
9933         no fast atomic load.
9934         (check_effective_target_sync_int_128_runtime): Likewise.
9936 2017-02-01  Richard Biener  <rguenther@suse.de>
9938         * graphite.c: Include tree-vectorizer.h for find_loop_location.
9939         (graphite_transform_loops): Provide opt-info for optimized nests.
9940         * tree-parloop.c (parallelize_loops): Provide opt-info for
9941         parallelized loops.
9943 2017-02-01  Richard Biener  <rguenther@suse.de>
9945         PR middle-end/79315
9946         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
9947         was not set before.
9949 2017-02-01  Richard Biener  <rguenther@suse.de>
9951         PR tree-optimization/71824
9952         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
9953         Verify the loops are valid in the merged SESE region.
9954         (scop_detection::can_represent_loop_1): Check analyzing the
9955         evolution of the number of iterations in the region succeeds.
9957 2017-01-31  Ian Lance Taylor  <iant@golang.org>
9959         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
9960         REG_ARGS_SIZE note to 32-bit push insns and call insn.
9962 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
9964         PR preprocessor/79210
9965         * input.c (get_substring_ranges_for_loc): Replace line_width
9966         assertion with error-handling.
9968 2017-01-31  Richard Biener  <rguenther@suse.de>
9970         PR tree-optimization/77318
9971         * graphite-sese-to-poly.c (extract_affine): Fix assert.
9972         (create_pw_aff_from_tree): Take loop parameter.
9973         (add_condition_to_pbb): Pass loop of the condition to
9974         create_pw_aff_from_tree.
9976 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
9978         * config/s390/s390.c (s390_asan_shadow_offset): New function.
9979         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
9981 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
9983         PR target/78597
9984         PR target/79038
9985         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
9986         no longer used.
9987         (convert_int_to_float128): Likewise.
9988         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
9989         (convert_int_to_float128): Likewise.
9990         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
9991         (UNSPEC_IEEE128_CONVERT): Likewise.
9992         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
9993         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
9994         Use local variables for IBM extended format.
9995         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
9996         (fix_trunc<mode>si2_fprs): Likewise.
9997         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9998         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
9999         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
10000         to know that we can now have integers of all sizes in vector
10001         registers.
10002         (fix<uns>_<mode>di2_hw): Likewise.
10003         (float<uns>_<mode>si2_hw): Likewise.
10004         (fix_<mode>si2_hw): Likewise.
10005         (fixuns_<mode>si2_hw): Likewise.
10006         (float<uns>_<mode>di2_hw): Likewise.
10007         (float_<mode>di2_hw): Likewise.
10008         (float_<mode>si2_hw): Likewise.
10009         (floatuns_<mode>di2_hw): Likewise.
10010         (floatuns_<mode>si2_hw): Likewise.
10011         (xscvqp<su>wz_<mode>): Delete, no longer used.
10012         (xscvqp<su>dz_<mode>): Likewise.
10013         (xscv<su>dqp_<mode>): Likewise.
10014         (ieee128_mfvsrd_64bit): Likewise.
10015         (ieee128_mfvsrd_32bit): Likewise.
10016         (ieee128_mfvsrwz): Likewise.
10017         (ieee128_mtvsrw): Likewise.
10018         (ieee128_mtvsrd_64bit): Likewise.
10019         (ieee128_mtvsrd_32bit): Likewise.
10021 2017-01-31  Martin Liska  <mliska@suse.cz>
10023         PR ipa/79285
10024         * ipa-prop.c (ipa_free_all_node_params): Call release method
10025         instead of ~sumbol_summary to not to trigger double times
10026         dtor of hash_map.
10028 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
10030         PR tree-optimization/71691
10031         * bitmap.h (class auto_bitmap): New.
10032         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
10033         is_maybe_undefined instead of ssa_undefined_value_p.
10035 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10037         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10038         __S390_ARCH_LEVEL__ to __ARCH__.
10040 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
10042         PR tree-optimization/79267
10043         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
10044         if should_remove_lhs_p is true.
10046 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
10048         PR debug/63238
10049         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
10050         (add_alignment_attribute): New.
10051         (base_type_die): Add alignment attribute.
10052         (subrange_type_die): Likewise.
10053         (modified_type_die): Likewise.
10054         (gen_array_type_die): Likewise.
10055         (gen_descr_array_type_die: Likewise.
10056         (gen_enumeration_type_die): Likewise.
10057         (gen_subprogram_die): Likewise.
10058         (gen_variable_die): Likewise.
10059         (gen_field_die): Likewise.
10060         (gen_ptr_to_mbr_type_die): Likewise.
10061         (gen_struct_or_union_type_die): Likewise.
10062         (gen_subroutine_type_die): Likewise.
10063         (gen_typedef_die): Likewise.
10064         (base_type_cmp): Compare alignment attribute.
10066 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10068         PR target/79170
10069         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
10070         (setb_unsigned) New pattern for setb with CCUNS.
10071         * config/rs6000/rs6000.c (expand_block_compare): Use a different
10072         subfc./subfe sequence to avoid overflow problems.  Generate a
10073         shorter sequence with cmpld/setb for power9.
10074         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
10075         for generating subfc. instruction.
10076         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
10077         now uses this instruction.
10079 2017-01-30  Ian Lance Taylor  <iant@google.com>
10081         PR debug/79289
10082         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
10083         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
10085 2017-01-30  Martin Sebor  <msebor@redhat.com>
10087         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
10088         Move constant to the right of a relational operator.
10089         (get_mpfr_format_length, format_character, format_string): Ditto.
10090         (should_warn_p, maybe_warn): Same.
10092         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
10094 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
10096         PR lto/79061
10097         * asan.c (get_translation_unit_decl): Remove function.
10098         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
10100 2017-01-30  Martin Liska  <mliska@suse.cz>
10102         PR gcov-profile/79259
10103         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
10104         -fprofile-generate.
10106 2017-01-30  Martin Liska  <mliska@suse.cz>
10108         PR bootstrap/78985
10109         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
10110         Initialize variables with NULL value.
10112 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
10114         PR target/79260
10115         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
10116         tm_p_file.
10117         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
10119 2017-01-30  Richard Biener  <rguenther@suse.de>
10121         PR tree-optimization/79276
10122         * tree-vrp.c (process_assert_insertions): Properly adjust common
10123         when removing a duplicate.
10125         * gcc.dg/torture/pr79276.c: New testcase.
10127 2017-01-30  Richard Biener  <rguenther@suse.de>
10129         PR tree-optimization/79256
10130         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10131         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10132         alignment on TYPE.
10133         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
10135 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10137         PR target/79240
10138         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
10139         ("*r<noxa>sbg_<mode>_sll_bitmask")
10140         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10141         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
10142         Use contiguous_bitmask_nowrap_operand.
10144 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10146         PR target/79268
10147         * config/rs6000/altivec.h (vec_xl): Revise #define.
10148         (vec_xst): Likewise.
10150 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
10152         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
10154 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
10156         PR rtl-optimization/79194
10157         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
10158         traps before call to bypass_conditional_jumps.
10160 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
10162         PR tree-optimization/71374
10163         * lra-constraints.c (check_conflict_input_operands): New.
10164         (match_reload): Use it.
10166 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
10168         PR target/79131
10169         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
10170         account to calculate conflict_set.
10172 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
10174         PR rtl-optimization/78559
10175         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
10176         other_insn in combine.
10178 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
10180         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
10181         uint16_type_node for BT_UINT16.
10183 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
10185         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
10186         "RTL Tests" to menu.
10187         (GIMPLE Tests): New node.
10188         (RTL Tests): New node.
10190 2017-01-27  Richard Biener  <rguenther@suse.de>
10192         PR tree-optimization/79245
10193         * tree-loop-distribution.c (distribute_loop): Apply cost
10194         modeling also to detected patterns.
10196 2017-01-27  Richard Biener  <rguenther@suse.de>
10198         PR tree-optimization/71433
10199         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
10200         (compare_assert_loc): New function.
10201         (process_assert_insertions): Sort and optimize assert locations
10202         to remove duplicates and push down identical assertions on
10203         edges to their destination block.
10205 2017-01-27  Richard Biener  <rguenther@suse.de>
10207         PR tree-optimization/79244
10208         * tree-vrp.c (remove_range_assertions): Forcefully propagate
10209         out SSA names even if abnormal.
10211 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
10213         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
10214         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
10215         instead of MPFR_RNDN.
10217 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
10219         PR target/79239
10220         * arm.c (arm_option_override): Don't call build_target_option_node
10221         until after doing all option overrides.
10222         (arm_valid_target_attribute_tree): Likewise.
10224 2017-01-27  Martin Liska  <mliska@suse.cz>
10226         * doc/invoke.texi (-fprofile-arcs): Document profiling support
10227         for {cd}tors and C++ {cd}tors.
10229 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10231         * config/s390/s390.md ("*setmem_long_and")
10232         ("*setmem_long_and_31z"): Use zero_extend instead of and.
10234 2017-01-26  Martin Sebor  <msebor@redhat.com>
10236         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
10237         of precision.
10239 2017-01-26  Martin Sebor  <msebor@redhat.com>
10241         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
10242         HAVE_DFmode before using XFmode or DFmode.
10243         (parse_directive): Avoid using the z length modifier to avoid
10244         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
10246         PR middle-end/78703
10247         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
10248         to accept adjustment as an array.
10249         (get_int_range): New function.
10250         (struct directive): Make width and prec arrays.
10251         (directive::set_width, directive::set_precision): Call get_int_range.
10252         (format_integer, format_floating): Handle width and precision ranges.
10253         (format_string, parse_directive): Same.
10255 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10257         PR debug/79129
10258         * dwarf2out.c (generate_skeleton_bottom_up): For children with
10259         comdat_type_p set, just clone them, but keep the children in the
10260         original DIE.
10262         PR debug/78835
10263         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
10264         which have direct callers with -fvar-tracking-assignments enabled
10265         in the current TU.
10266         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
10267         inside of type units.
10269 2017-01-26  Martin Sebor  <msebor@redhat.com>
10271         PR middle-end/78703
10272         * gimple-ssa-sprintf.c (struct result_range): Add likely and
10273         unlikely counters.
10274         (struct format_result): Replace number_chars, number_chars_min,
10275         and number_chars_max with a single member of struct result_range.
10276         Remove bounded.
10277         (format_result::operator+=): Adjust.
10278         (struct fmtresult): Remove bounded.  Handle likely and unlikely
10279         counters.
10280         (fmtresult::adjust_for_width_or_precision): New function.
10281         (fmtresult:type_max_digits): New function.
10282         (bytes_remaining): Handle likely and unlikely counters.
10283         (min_bytes_remaining): Remove.
10284         (format_percent): Simplify.
10285         (format_integer, format_floating): Set likely and unlikely counters.
10286         (get_string_length, format_character, format_string): Same.
10287         (format_plain, should_warn_p): New function.
10288         (maybe_warn): Call should_warn_p.  Update diagnostic messages
10289         and handle those for all directives, including plain strings.
10290         (format_directive): Handle likely and unlikely counters.
10291         Remove unnecessary quoting from diagnostics.  Add an informational
10292         note.
10293         (add_bytes): Remove.
10294         (pass_sprintf_length::compute_format_length): Simplify.
10295         (try_substitute_return_value): Handle likely and unlikely counters.
10297 2017-01-26  Carl Love  <cel@us.ibm.com>
10299         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
10300         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
10302 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
10304         PR target/79131
10305         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
10306         endianess for subregs into account.
10307         * lra-constraints.c (lra_constraints): Do risky transformations
10308         always on the first iteration.
10309         * lra-lives.c (check_pseudos_live_through_calls): Add arg
10310         last_call_used_reg_set.
10311         (process_bb_lives): Define and use last_call_used_reg_set.
10312         * lra.c (lra): Always continue after lra_constraints on the first
10313         iteration.
10315 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
10317         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
10318         constant.
10319         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
10321 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10323         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
10324         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
10325         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
10326         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
10327         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
10328         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
10329         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
10330         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
10331         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
10333 2017-01-26  Marek Polacek  <polacek@redhat.com>
10335         PR c/79199
10336         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
10337         for the third operand.
10339 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10341         PR middle-end/79236
10342         * omp-low.c (struct omp_context): Add simt_stmt field.
10343         (scan_omp_for): Return omp_context *.
10344         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
10345         context to the _simt_ SIMD stmt.
10346         (lower_omp_for): For combined SIMD with sibling _simt_
10347         SIMD, make sure to use the same decls in _looptemp_
10348         clauses as in the sibling.
10350 2017-01-26  David Sherwood  <david.sherwood@arm.com>
10352         PR middle-end/79212
10353         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
10354         all contexts.
10356 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10358         PR target/70465
10359         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
10360         emit fld b; fld a; if possible.
10362         * brig-builtins.def: Update copyright years.
10363         * config/arm/arm_acle_builtins.def: Update copyright years.
10365 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10367         PR target/79179
10368         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
10369         constraint instead of o for the stxsd instruction.
10371 2017-01-25  Carl Love  <cel@us.ibm.com>
10373         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
10374         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
10376 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
10378         * doc/invoke.texi (C++ Dialect Options): Fix typo.
10380 2017-01-25  Richard Biener  <rguenther@suse.de>
10382         PR tree-optimization/69264
10383         * target.def (vector_alignment_reachable): Improve documentation.
10384         * doc/tm.texi: Regenerate.
10385         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
10386         and add a comment.
10387         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
10388         earlier changes with respect to TYPE_USER_ALIGN.
10389         (vector_alignment_reachable_p): Likewise.  Improve dumping.
10391 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10393         PR target/79145
10394         * config/arm/arm.md (xordi3): Force constant operand into a register
10395         for TARGET_IWMMXT.
10397 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10399         * doc/invoke.texi (-fstore-merging): Correct default optimization
10400         levels at which it is enabled.
10401         (-O): Move -fstore-merging from list to...
10402         (-O2): ... Here.
10404 2017-01-25  Richard Biener  <rguenther@suse.de>
10406         PR debug/78363
10407         * omp-expand.c: Include debug.h.
10408         (expand_omp_taskreg): Make sure to generate early debug before
10409         outlining anything from a function.
10410         (expand_omp_target): Likewise.
10411         (grid_expand_target_grid_body): Likewise.
10413 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
10415         PR lto/79061
10416         * asan.c (get_translation_unit_decl): New function.
10417         (asan_add_global): Extract modules file name from globals
10418         TRANSLATION_UNIT_DECL name.
10420 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
10422         PR target/77439
10423         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
10424         for long calls with APCS frame and VFP.
10426 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
10428         * cfg.c (original_copy_tables_initialized_p): New function.
10429         * cfg.h (original_copy_tables_initialized_p): New decl.
10430         * cfgrtl.c (relink_block_chain): Guard the call to
10431         free_original_copy_tables with a call to
10432         original_copy_tables_initialized_p.
10433         * cgraph.h (symtab_node::native_rtl_p): New decl.
10434         * cgraphunit.c (symtab_node::native_rtl_p): New function.
10435         (symtab_node::needed_p): Don't assert for early assembly output
10436         for __RTL functions.
10437         (cgraph_node::finalize_function): Set "force_output" for __RTL
10438         functions.
10439         (cgraph_node::analyze): Bail out early for __RTL functions.
10440         (analyze_functions): Update assertion to support __RTL functions.
10441         (cgraph_node::expand): Bail out early for __RTL functions.
10442         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
10443         __RTL functions.
10444         * function.h (struct function): Update comment for field
10445         "pass_startwith".
10446         * gimple-expr.c: Include "tree-pass.h".
10447         (gimple_has_body_p): Return false for __RTL functions.
10448         * Makefile.in (OBJS): Add run-rtl-passes.o.
10449         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
10450         accessor.
10451         (gcc::pass_manager::get_clean_slate): New accessor.
10452         * passes.c: Include "insn-addr.h".
10453         (should_skip_pass_p): Add logging.  Update logic for running
10454         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
10455         property-provider override so it is only done for gimple passes.
10456         Don't skip dfinit.
10457         (skip_pass): New function.
10458         (execute_one_pass): Call skip_pass when skipping passes.
10459         * read-md.c (md_reader::read_char): Support filtering
10460         the input to a subset of line numbers.
10461         (md_reader::md_reader): Initialize fields
10462         m_first_line and m_last_line.
10463         (md_reader::read_file_fragment): New function.
10464         * read-md.h (md_reader::read_file_fragment): New decl.
10465         (md_reader::m_first_line): New field.
10466         (md_reader::m_last_line): New field.
10467         * read-rtl-function.c (function_reader::create_function): Only
10468         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
10469         curr_properties.  Set DECL_INITIAL to a dummy block.
10470         (read_rtl_function_body_from_file_range): New function.
10471         * read-rtl-function.h (read_rtl_function_body_from_file_range):
10472         New decl.
10473         * run-rtl-passes.c: New file.
10474         * run-rtl-passes.h: New file.
10476 2017-01-24  Jeff Law  <law@redhat.com>
10478         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
10479         buffer size.
10481 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
10483         PR tree-optimization/79159
10484         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
10485         (record_nonwrapping_iv): Improve boundary using above function if no
10486         value range information.
10488 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
10489             Martin Jambor  <mjambor@suse.cz>
10491         * brig-builtins.def: New file.
10492         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
10493         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
10494         (DEF_HSAIL_SAT_BUILTIN): Likewise.
10495         (DEF_HSAIL_INTR_BUILTIN): Likewise.
10496         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
10497         * builtin-types.def (BT_INT8): New.
10498         (BT_INT16): Likewise.
10499         (BT_UINT8): Likewise.
10500         (BT_UINT16): Likewise.
10501         (BT_FN_ULONG): Likewise.
10502         (BT_FN_UINT_INT): Likewise.
10503         (BT_FN_UINT_ULONG): Likewise.
10504         (BT_FN_UINT_LONG): Likewise.
10505         (BT_FN_UINT_PTR): Likewise.
10506         (BT_FN_ULONG_PTR): Likewise.
10507         (BT_FN_INT8_FLOAT): Likewise.
10508         (BT_FN_INT16_FLOAT): Likewise.
10509         (BT_FN_UINT32_FLOAT): Likewise.
10510         (BT_FN_UINT16_FLOAT): Likewise.
10511         (BT_FN_UINT8_FLOAT): Likewise.
10512         (BT_FN_UINT64_FLOAT): Likewise.
10513         (BT_FN_UINT16_UINT32): Likewise.
10514         (BT_FN_UINT32_UINT16): Likewise.
10515         (BT_FN_UINT16_UINT16_UINT16): Likewise.
10516         (BT_FN_INT_PTR_INT): Likewise.
10517         (BT_FN_UINT_PTR_UINT): Likewise.
10518         (BT_FN_LONG_PTR_LONG): Likewise.
10519         (BT_FN_ULONG_PTR_ULONG): Likewise.
10520         (BT_FN_VOID_UINT64_UINT64): Likewise.
10521         (BT_FN_UINT8_UINT8_UINT8): Likewise.
10522         (BT_FN_INT8_INT8_INT8): Likewise.
10523         (BT_FN_INT16_INT16_INT16): Likewise.
10524         (BT_FN_INT_INT_INT): Likewise.
10525         (BT_FN_UINT_FLOAT_UINT): Likewise.
10526         (BT_FN_FLOAT_UINT_UINT): Likewise.
10527         (BT_FN_ULONG_UINT_UINT): Likewise.
10528         (BT_FN_ULONG_UINT_PTR): Likewise.
10529         (BT_FN_ULONG_ULONG_ULONG): Likewise.
10530         (BT_FN_UINT_UINT_UINT): Likewise.
10531         (BT_FN_VOID_UINT_PTR): Likewise.
10532         (BT_FN_UINT_UINT_PTR: Likewise.
10533         (BT_FN_UINT32_UINT64_PTR): Likewise.
10534         (BT_FN_INT_INT_UINT_UINT): Likewise.
10535         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
10536         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
10537         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
10538         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
10539         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
10540         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
10541         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
10542         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
10543         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
10544         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
10545         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
10546         * doc/frontends.texi: List BRIG FE.
10547         * doc/install.texi (Testing): Add BRIG tesring requirements.
10548         * doc/invoke.texi (Overall Options): Mention BRIG.
10549         * doc/standards.texi (Standards): Doucment BRIG HSA version.
10551 2017-01-24  Richard Biener  <rguenther@suse.de>
10553         PR translation/79208
10554         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
10556 2017-01-24  Martin Jambor  <mjambor@suse.cz>
10558         PR bootstrap/79198
10559         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
10560         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
10561         and known_contexts.
10563 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
10565         PR middle-end/79123
10566         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
10567         casts from signed to unsigned really don't have a range.
10569 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
10571         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
10572         GMP_RNDx for compatiblity.
10574 2017-01-24  Martin Liska  <mliska@suse.cz>
10576         PR bootstrap/79132
10577         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
10578         that would prevent us to call alloca with -1 as argument.
10580 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
10582         * dwarf2out.c (output_compilation_unit_header, output_file_names):
10583         Avoid -Wformat-security warning.
10585 2017-01-23  Andrew Pinski  <apinski@cavium.com>
10587         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
10588         cost table.
10590 2017-01-23  Martin Sebor  <msebor@redhat.com>
10592         PR middle-end/78703
10593         * gimple-ssa-sprintf.c (warn_level): New global.
10594         (format_integer): Use it here and throughout the rest of the file.
10595         Use the same switch to compute sign as base.
10596         (maybe_warn): New function.
10597         (format_directive): Factor out warnings into maybe_warn.
10598         Add debugging output.  Use warn_level.
10599         (add_bytes): Use warn_level.
10600         (pass_sprintf_length::compute_format_length): Add debugging output.
10601         (try_substitute_return_value): Same.
10602         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
10604         PR middle-end/78703
10605         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
10606         (struct fmtresult, format_integer, format_floating): Adjust.
10607         (fmtresult::fmtresult): Set max correctly in two argument ctor.
10608         (get_string_length, format_string,format_directive): Same.
10609         (pass_sprintf_length::compute_format_length): Same.
10610         (try_substitute_return_value): Simplify slightly.
10612         PR middle-end/78703
10613         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
10614         (fmtresult::operator+=): Outlined.
10615         (struct fmtresult): Add ctors.
10616         (struct conversion_spec): Rename...
10617         (struct directive): ...to this.  Add and remove data members.
10618         (directive::set_width, directive::set_precision): New functions.
10619         (format_percent): Use fmtresult ctor.
10620         (get_width_and_precision): Remove.
10621         (format_integer): Make naming changes.  Avoid computing width and
10622         precision.
10623         (format_floating): Same.  Adjust indentation.
10624         (format_character, format_none): New functions.
10625         (format_string): Moved character handling to format_character.
10626         (format_directive): Remove arguments, change return type.
10627         (parse_directive): New function.
10628         (pass_sprintf_length::compute_format_length): Move directive
10629         parsing to parse_directive.
10631 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
10633         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
10634         (assign_assembler_name_if_needed): ... this.
10635         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
10636         (assign_assembler_name_if_needed): ... this.
10637         (free_lang_data_in_cgraph): Adjust callers.
10638         * cgraphunit.c (cgraph_node::analyze): Likewise.
10639         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
10640         Likewise.
10642 2017-01-23  Richard Biener  <rguenther@suse.de>
10644         PR tree-optimization/79088
10645         PR tree-optimization/79188
10646         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
10647         resetting loop bounds after last path deletion.  Reset loop
10648         bounds of the target loop, make code match the comments.
10649         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
10650         Make sure loops need no fixups.
10652 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10654         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
10655         exponent support with double type for first argument.
10656         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
10657         type returned by __builtin_vec_extract_sig,
10658         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
10659         functions from "vector int" to "vector unsigned int" or from
10660         "vector long long int" to "vector unsigned long long int".
10661         Changed type returned by __builtin_vec_extract_exp,
10662         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
10663         functions from "vector int" to "vector unsigned int" or from
10664         "vector long long int" to "vector unsigned long long int".
10665         Changed return type of __builtin_vec_test_data_class,
10666         __builtin_vec_test_data_class_sp, and
10667         __builtin_vec_test_data_class_dp from "vector int" to
10668         "vector bool int" or from "vector long long int" to "vector bool
10669         long long int" and changed second argument type from "unsigned
10670         int" to "int".  Added new overloaded function forms "vector float
10671         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
10672         "vector float __builtin_vec_insert_exp_sp (vector float, vector
10673         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
10674         double, vector unsigned long long int)" and "vector double
10675         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
10676         long int)".  Changed return type of
10677         __builtin_scalar_test_data_class and
10678         __builtin_scalar_test_data_class_sp and
10679         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
10680         int" and changed second argument from "unsigned int" to "int".
10681         Changed type returned by __builtin_scalar_test_neg,
10682         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
10683         from "int" to "bool int".  Added new overloaded function form
10684         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
10685         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
10686         exponent double-precision with floating point first argument.
10687         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
10688         documentation of scalar_test_data_class, scalar_test_neg,
10689         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
10690         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
10691         vec_test_data_class built-in functions to reflect refinements in
10692         their type signatures.
10694 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
10696         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
10697         size of buf.
10698         (aarch64_elf_asm_destructor): Likewise.
10700 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
10702         PR rtl-optimization/78634
10703         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
10704         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
10705         * ifcvt.c (noce_try_cmove): Add missing cost check.
10707         PR rtl-optimization/71724
10708         * combine.c (if_then_else_cond): Look for situations where it is
10709         beneficial to undo the work of one of the recursive calls.
10711 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
10713         PR tree-optimization/70754
10714         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
10715         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
10716         combined stmt before it if not NULL.
10717         (combine_chains): Process refs reversely and compute dominance point
10718         for root ref.
10720 2017-01-23  Martin Liska  <mliska@suse.cz>
10722         PR tree-optimization/79196
10723         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
10724         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
10725         instead of memcmp.
10726         (strlen_optimize_stmt): Call the renamed function.
10728 2017-01-23  Michael Matz  <matz@suse.de>
10730         PR tree-optimization/78384
10731         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
10733 2017-01-23  Richard Biener  <rguenther@suse.de>
10735         PR tree-optimization/79186
10736         * tree-vrp.c (register_new_assert_for): Make sure we've seen
10737         both incoming edges before moving an assert.
10739 2017-01-23  Martin Jambor  <mjambor@suse.cz>
10741         * ipa-prop.c (load_from_param_1): Removed.
10742         (load_from_unmodified_param): Bits from load_from_param_1 put back
10743         here.
10744         (load_from_param): Removed.
10745         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
10746         with stmt.  Reverted back to use of load_from_unmodified_param.
10748 2017-01-23  Martin Jambor  <mjambor@suse.cz>
10750         PR ipa/79108
10751         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
10752         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
10753         field a pointer to garbage collected vector, mark lattices and
10754         ipcp_orig_node with GTY((skip)).
10755         (ipa_get_param_count): Adjust to descriptors being a pointer.
10756         (ipa_get_param): Likewise.
10757         (ipa_get_type): Likewise.
10758         (ipa_get_param_move_cost): Likewise.
10759         (ipa_set_param_used): Likewise.
10760         (ipa_get_controlled_uses): Likewise.
10761         (ipa_set_controlled_uses): Likewise.
10762         (ipa_is_param_used): Likewise.
10763         (ipa_node_params_t): Move into garbage collector.  New methods insert
10764         and remove.
10765         (ipa_node_params_sum): Annotate wth GTY(()).
10766         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
10767         garbage collected.
10768         (ipa_load_from_parm_agg): Adjust declaration.
10769         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
10770         * ipa-profile.c (ipa_profile): Likewise.
10771         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
10772         (ipa_populate_param_decls): Make descriptors parameter garbage
10773         collected.
10774         (ipa_dump_param): Adjust to descriptors being a pointer.
10775         (ipa_alloc_node_params): Likewise.
10776         (ipa_initialize_node_params): Likewise.
10777         (load_from_param_1): Make descriptors parameter garbage collected.
10778         (load_from_unmodified_param): Likewise.
10779         (load_from_param): Likewise.
10780         (ipa_load_from_parm_agg): Likewise.
10781         (ipa_node_params::~ipa_node_params): Removed.
10782         (ipa_free_all_node_params): Remove call to delete operator.
10783         (ipa_node_params_t::insert): New.
10784         (ipa_node_params_t::remove): Likewise.
10785         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
10786         copy known_csts and known_contexts vectors.
10787         (ipa_read_node_info): Adjust to descriptors being a pointer.
10788         (ipcp_modif_dom_walker): Make m_descriptors field garbage
10789         collected.
10790         (ipcp_transform_function): Make descriptors variable garbage
10791         collected.
10793 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
10795         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
10796         * config/i386/avx512dqintrin.h: Ditto.
10797         * config/i386/avx512fintrin.h: Ditto.
10798         * gcc/config/i386/i386.c: Handle new builtins.
10799         * config/i386/i386-builtin.def: Add new builtins.
10800         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
10801         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
10803 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
10804             Martin Liska  <mliska@suse.cz>
10806         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
10807         * asan.c (asan_expand_poison_ifn): Support stores and use
10808         appropriate ASAN report function.
10809         * internal-fn.c (expand_ASAN_POISON_USE): New function.
10810         * internal-fn.def (ASAN_POISON_USE): Declare.
10811         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
10812         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
10813         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
10814         ASAN_POISON calls w/o LHS.
10815         * tree-ssa.c (execute_update_addresses_taken): Create clobber
10816         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
10817         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
10818         * gimplify.c (asan_poison_variables): Add attribute
10819         use_after_scope_memory to variables that really needs to live
10820         in memory.
10821         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
10822         having the attribute.
10824 2017-01-23  Martin Liska  <mliska@suse.cz>
10826         * asan.c (create_asan_shadow_var): New function.
10827         (asan_expand_poison_ifn): Likewise.
10828         * asan.h (asan_expand_poison_ifn): New declaration.
10829         * internal-fn.c (expand_ASAN_POISON): Likewise.
10830         * internal-fn.def (ASAN_POISON): New builtin.
10831         * sanopt.c (pass_sanopt::execute): Expand
10832         asan_expand_poison_ifn.
10833         * tree-inline.c (copy_decl_for_dup_finish): Make function
10834         external.
10835         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
10836         * tree-ssa.c (is_asan_mark_p): New function.
10837         (execute_update_addresses_taken): Rewrite local variables
10838         (identified just by use-after-scope as addressable) into SSA.
10840 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
10842         * doc/install.texi (Specific): opensource.apple.com uses https
10843         now. Remove trailing slash.
10845 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
10847         * README.Portability: Remove note on an Irix compatibility issue.
10849 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
10851         * gcov.c (INCLUDE_ALGORITHM): Define.
10852         (INCLUDE_VECTOR): Define.
10853         No longer include <vector> and <algorithm> directly.
10855 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
10857         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
10858         to https.
10859         * doc/invoke.texi (Code Gen Options): Ditto.
10861 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
10863         PR lto/78407
10864         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
10866 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
10868         rtl-optimization/79125
10869         * cprop.c (local_cprop_pass): Handle cases where we make an
10870         unconditional trap.
10872 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
10874         PR target/61729
10875         PR target/77850
10876         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
10877         read from, for big endian.
10879 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
10881         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
10882         register pauth builtins for LP64 only.
10884 2017-01-20  Marek Polacek  <polacek@redhat.com>
10886         PR c/79152
10887         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
10888         non-case labels.
10890 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
10892         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
10893         of safelen status.
10894         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
10895         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
10896         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
10898 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10900         PR target/71270
10901         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
10902         in big-endian mode when they are not a single duplicated value.
10904 2017-01-20  Richard Biener  <rguenther@suse.de>
10906         * BASE-VER: Bump to 7.0.1.
10908 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
10910         * omp-low.c (omplow_simd_context): New struct.  Use it...
10911         (lower_rec_simd_input_clauses): ...here and...
10912         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
10913         references to idx, lane, max_vf, is_simt.
10915 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
10917         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
10918         mcpu=nps400.
10920 2017-01-20  Martin Jambor  <mjambor@suse.cz>
10922         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
10923         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
10924         gt-hsa-common.h.
10925         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
10926         (GTFILES): Rename hsa.c to hsa-common.c.
10927         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
10928         * hsa-dump.c: Likewise.
10929         * hsa-gen.c: Likewise.
10930         * hsa-regalloc.c: Likewise.
10931         * ipa-hsa.c: Likewise.
10932         * omp-expand.c: Likewise.
10933         * omp-low.c: Likewise.
10934         * toplev.c: Likewise.
10936 2017-01-20  Marek Polacek  <polacek@redhat.com>
10938         PR c/64279
10939         * doc/invoke.texi: Document -Wduplicated-branches.
10940         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
10941         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
10942         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
10943         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
10944         return 0 only when not OEP_LEXICOGRAPHIC.
10945         (fold_build_cleanup_point_expr): Use the expression
10946         location when building CLEANUP_POINT_EXPR.
10947         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
10948         * tree.c (add_expr): Handle error_mark_node.
10950 2017-01-20  Martin Liska  <mliska@suse.cz>
10952         PR lto/69188
10953         * tree-profile.c (init_ic_make_global_vars): Do not call
10954         finalize_decl.
10955         (gimple_init_gcov_profiler): Likewise.
10957 2017-01-20  Martin Liska  <mliska@suse.cz>
10959         PR ipa/71190
10960         * cgraph.h (maybe_create_reference): Remove argument and
10961         update comment.
10962         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
10963         argument.
10964         * ipa-cp.c (create_specialized_node): Likewise.
10965         * symtab.c (symtab_node::maybe_create_reference): Handle
10966         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
10968 2017-01-20  Martin Liska  <mliska@suse.cz>
10970         * read-rtl-function.c (function_reader::create_function): Use
10971         build_decl instread of build_decl_stat.
10973 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
10975         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
10976         * config/i386/avx512dqintrin.h: Ditto.
10977         * config/i386/avx512fintrin.h: Ditto.
10978         * config/i386/i386-builtin-types.def: Add new types.
10979         * gcc/config/i386/i386.c: Handle new types.
10980         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
10981         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
10982         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
10983         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
10984         (__builtin_ia32_kshiftridi): New.
10985         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
10987 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
10989         PR target/78875
10990         PR target/79140
10991         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
10992         define to rs6000_init_stack_protect_guard.
10993         (rs6000_init_stack_protect_guard): New function.
10995 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
10996             Yunqiang Su  <yunqiang.su@imgtec.com>
10998         * config.gcc (supported_defaults): Add madd4.
10999         (with_madd4): Add validation.
11000         (all_defaults): Add madd4.
11001         * config/mips/mips.opt (mmadd4): New option.
11002         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11003         mmadd4.
11004         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11005         __mips_no_madd4.
11006         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
11007         (ISA_HAS_FUSED_MADD4): Likewise.
11008         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
11009         * gcc/doc/install.texi (--with-madd4): Document the new option.
11011 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11013         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
11014         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
11015         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
11016         (aarch64_init_pauth_hint_builtins): New.
11017         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
11018         (aarch64_expand_builtin): Expand new builtins.
11020 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11022         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
11023         * combine-stack-adj.c (no_unhandled_cfa): Handle
11024         REG_CFA_TOGGLE_RA_MANGLE.
11025         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
11026         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
11027         info for return address signing.
11028         (aarch64_expand_epilogue): Likewise.
11030 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11032         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
11033         * config/aarch64/aarch64-protos.h
11034         (aarch64_return_address_signing_enabled): New declaration.
11035         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
11036         New function.
11037         (aarch64_expand_prologue): Sign return address before it's pushed onto
11038         stack.
11039         (aarch64_expand_epilogue): Authenticate return address fetched from
11040         stack.
11041         (aarch64_override_options): Sanity check for ILP32 and ISA level.
11042         (aarch64_attributes): New function attributes for "sign-return-address".
11043         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
11044         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
11045         ("*do_return"): Generate combined instructions according to key index.
11046         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
11047         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
11048         iterators.
11049         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
11050         * config/aarch64/aarch64.opt (msign-return-address=): New.
11051         * doc/extend.texi (AArch64 Function Attributes): Documents
11052         "sign-return-address=".
11053         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
11055 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
11057         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
11058         overall option summary.
11060 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11062         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
11063         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
11064         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
11065         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
11067 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11069         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
11070         -mpower9-minmax by default for -mcpu=power9.
11071         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
11072         128-bit floating point.
11074 2017-01-20  Alan Modra  <amodra@gmail.com>
11076         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
11077         optimizing for size.
11079 2017-01-20  Alan Modra  <amodra@gmail.com>
11081         PR target/79144
11082         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
11083         for strcmp and strncmp from corresponding builtin decl.
11085 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
11087         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
11088         instead of i386/rtems-64.h.
11089         * config/i386/rtems-64.h: Remove.
11091 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
11093         PR target/78478
11094         Revert:
11095         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
11097         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
11099 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
11101         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
11102         Change int to HOST_WIDE_INT.
11103         * config/aarch64/aarch64-protos.h
11104         (aarch64_simd_gen_const_vector_dup): Likewise.
11105         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
11107 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
11109         * langhooks-def.h (lhd_type_for_size): New decl.
11110         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
11111         * langhooks.c (lhd_type_for_size): New function, taken from
11112         lto_type_for_size.
11114 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
11116         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
11117         define_bypass for CR latency.
11118         (power9-cracked-alu): Update bypass latency and remove power9-branch.
11119         (power9-alu2): Add define_bypass for CR latency.
11120         (power9-cmp): New.
11121         (power9-mul): Update insn latency.
11122         (power9-mul-compare): Update insn latency, bypass latency and remove
11123         power9-branch.
11125 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11127         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11128         Delete.
11129         * config/aarch64/aarch64.md
11130         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
11131         aarch64_nopcrelative_literal_loads.
11132         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11134 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
11136         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
11137         TARGET_LOONGSON_3A.
11138         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
11140 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
11142         PR target/78176
11143         * config.gcc (supported_defaults): Add lxc1-sxc1.
11144         (with_lxc1_sxc1): Add validation.
11145         (all_defaults): Add lxc1-sxc1.
11146         * config/mips/mips.opt (mlxc1-sxc1): New option.
11147         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11148         mlxc1-sxc1.
11149         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11150         __mips_no_lxc1_sxc1.
11151         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
11152         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
11153         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
11155 2017-01-19  Richard Biener  <rguenther@suse.de>
11157         PR tree-optimization/72488
11158         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
11159         sure to restore SSA info.
11160         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
11162 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
11164         PR rtl-optimization/79121
11165         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
11166         of the inner type when shifting an extended value.
11168 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
11170         PR lto/78407
11171         * symtab.c (symtab_node::equal_address_to): Fix comparing of
11172         interposable aliases.
11174 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
11176         PR target/78516
11177         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
11178         Use the evmergelohi instruction.
11179         (mov_si<mode>_e500_subreg4_2_le): Likewise.
11180         (mov_sitf_e500_subreg8_2_be): Likewise.
11181         (mov_sitf_e500_subreg12_2_le): Likewise.
11182         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
11183         (mov_si<mode>_e500_subreg4_2_be): Likewise.
11184         (mov_sitf_e500_subreg8_2_le): Likewise.
11185         (mov_sitf_e500_subreg12_2_be): Likewise.
11187 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11189         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
11190         attribute from vecsimple to vecperm.
11191         (altivec_vbpermq2): Likewise.
11193 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11195         PR target/79040
11196         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
11198 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11199         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
11200         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
11201         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
11202         case where N arg is SIZE_MAX.
11203         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
11204         (cmpstrsi): Add pattern.
11206 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11208         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11209         __builtin_vec_revb builtins.
11210         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
11211         built-in functions to support generation of the ISA 3.0 XXBR<x>
11212         vector byte reverse instructions.
11213         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
11214         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
11215         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
11216         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
11217         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
11218         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
11219         (P9V_BUILTIN_VEC_REVB): Likewise.
11220         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
11221         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
11222         (p9_xxbrq_v16qi): Likewise.
11223         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
11224         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
11225         (p9_xxbrh_v8hi): Likewise.
11226         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
11227         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
11228         vec_revb built-in functions.
11230 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
11232         PR rtl-optimization/78952
11233         * config/i386/i386.md (any_extract): New code iterator.
11234         (*insvqi_2): Use any_extract for source operand.
11235         (*insvqi_3): Use any_shiftrt for source operand.
11237 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
11239         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
11240         New function.
11241         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
11243 2017-01-18  Matthias Klose  <doko@ubuntu.com>
11245         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
11247 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11249         * config/rs6000/altivec.h (vec_bperm): Change #define.
11250         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
11251         (altivec_vbpermq2): New define_insn.
11252         (altivec_vbpermd): Likewise.
11253         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
11254         function interface.
11255         (VBPERMD): Likewise.
11256         (VBPERM): New polymorphic function interface.
11257         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
11258         Add entries for P9V_BUILTIN_VEC_VBPERM.
11259         * doc/extend.texi: Add interfaces for vec_bperm.
11261 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11263         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
11264         first letter of error messages.
11265         (s390_resolve_overloaded_builtin): Likewise.
11266         * config/s390/s390.c (s390_expand_builtin): Likewise.
11267         (s390_invalid_arg_for_unprototyped_fn): Likewise.
11268         (s390_valid_target_attribute_inner_p): Likewise.
11269         * config/s390/s390.md ("tabort"): Likewise.
11271 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
11273         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
11274         (ISA_AVOID_DIV_HILO): New macro.
11275         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
11276         (ISA_HAS_DDIV): Likewise.
11278 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11280         * doc/invoke.texi (fabi-version): Correct number of occurrences.
11282 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11284         * doc/invoke.texi (fabi-version): Spelling fix.
11286 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11288         PR c++/70182
11289         * doc/invoke.texi (fabi-version): Mention mangling fix for
11290         operator names.
11292 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11294         PR c++/77489
11295         * doc/invoke.texi (fabi-version): Document discriminator mangling.
11297 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
11299         PR target/78875
11300         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
11301         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
11302         the new options.
11303         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
11304         flexible settings.
11305         (stack_protect_test): Ditto.
11306         * config/rs6000/rs6000.opt (mstack-protector-guard=,
11307         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
11308         options.
11309         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
11310         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
11311         -mstack-protector-guard-offset=.
11312         (RS/6000 and PowerPC Options): Ditto.
11314 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
11316         * config/i386/i386.h (MASK_CLASS_P): New define.
11317         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
11318         there are no registers from different register sets also when
11319         mask registers are used.  Update function comment.
11320         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
11321         to (*k/*r) and (*k/*km) alternatives.
11323 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
11325         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
11326         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
11327         (EH_RETURN_HANDLER_RTX): New define.
11328         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
11329         Force frame pointer in EH return functions.
11330         (aarch64_expand_epilogue): Add barrier for eh_return.
11331         (aarch64_final_eh_return_addr): Remove.
11332         (aarch64_eh_return_handler_rtx): New function.
11333         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
11334         Remove.
11335         (aarch64_eh_return_handler_rtx): New prototype.
11337 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11339         * config/rs6000/altivec.h (vec_rlmi): New #define.
11340         (vec_vrlnm): Likewise.
11341         (vec_rlnm): Likewise.
11342         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
11343         (UNSPEC_VRLNM): Likewise.
11344         (VIlong): New mode iterator.
11345         (altivec_vrl<VI_char>mi): New define_insn.
11346         (altivec_vrl<VI_char>nm): Likewise.
11347         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
11348         function entry.
11349         (VRLDNM): Likewise.
11350         (RLNM): New polymorphic function entry.
11351         (VRLWMI): New monomorphic function entry.
11352         (VRLDMI): Likewise.
11353         (RLMI): New polymorphic function entry.
11354         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
11355         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
11356         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
11357         vec_vrlnm.
11359 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11361         PR debug/78839
11362         * dwarf2out.c (field_byte_offset): Restore the
11363         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
11364         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
11365         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
11366         of build2 + fold.
11368 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11370         PR ada/67205
11371         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
11373 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11375         PR debug/71669
11376         * dwarf2out.c (add_data_member_location_attribute): For constant
11377         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
11378         instead of DW_AT_data_member_location, DW_AT_bit_offset and
11379         DW_AT_byte_size attributes.
11381 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11383         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
11384         after forcing to constant memory when the code model is medium.
11386 2017-01-17  Julia Koval  <julia.koval@intel.com>
11388         PR target/76731
11389         * config/i386/avx512fintrin.h
11390         (_mm512_i32gather_ps): Change __addr type to void const*.
11391         (_mm512_mask_i32gather_ps): Ditto.
11392         (_mm512_i32gather_pd): Ditto.
11393         (_mm512_mask_i32gather_pd): Ditto.
11394         (_mm512_i64gather_ps): Ditto.
11395         (_mm512_mask_i64gather_ps): Ditto.
11396         (_mm512_i64gather_pd): Ditto.
11397         (_mm512_mask_i64gather_pd): Ditto.
11398         (_mm512_i32gather_epi32): Ditto.
11399         (_mm512_mask_i32gather_epi32): Ditto.
11400         (_mm512_i32gather_epi64): Ditto.
11401         (_mm512_mask_i32gather_epi64): Ditto.
11402         (_mm512_i64gather_epi32): Ditto.
11403         (_mm512_mask_i64gather_epi32): Ditto.
11404         (_mm512_i64gather_epi64): Ditto.
11405         (_mm512_mask_i64gather_epi64): Ditto.
11406         (_mm512_i32scatter_ps): Change __addr type to void*.
11407         (_mm512_mask_i32scatter_ps): Ditto.
11408         (_mm512_i32scatter_pd): Ditto.
11409         (_mm512_mask_i32scatter_pd): Ditto.
11410         (_mm512_i64scatter_ps): Ditto.
11411         (_mm512_mask_i64scatter_ps): Ditto.
11412         (_mm512_i64scatter_pd): Ditto.
11413         (_mm512_mask_i64scatter_pd): Ditto.
11414         (_mm512_i32scatter_epi32): Ditto.
11415         (_mm512_mask_i32scatter_epi32): Ditto.
11416         (_mm512_i32scatter_epi64): Ditto.
11417         (_mm512_mask_i32scatter_epi64): Ditto.
11418         (_mm512_i64scatter_epi32): Ditto.
11419         (_mm512_mask_i64scatter_epi32): Ditto.
11420         (_mm512_i64scatter_epi64): Ditto.
11421         (_mm512_mask_i64scatter_epi64): Ditto.
11422         * config/i386/avx512pfintrin.h
11423         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
11424         (_mm512_mask_prefetch_i32gather_ps): Ditto.
11425         (_mm512_mask_prefetch_i64gather_pd): Ditto.
11426         (_mm512_mask_prefetch_i64gather_ps): Ditto.
11427         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
11428         (_mm512_prefetch_i32scatter_ps): Ditto.
11429         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
11430         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
11431         (_mm512_prefetch_i64scatter_pd): Ditto.
11432         (_mm512_prefetch_i64scatter_ps): Ditto.
11433         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
11434         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
11435         * config/i386/avx512vlintrin.h
11436         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
11437         (_mm_mmask_i32gather_ps): Ditto.
11438         (_mm256_mmask_i32gather_pd): Ditto.
11439         (_mm_mmask_i32gather_pd): Ditto.
11440         (_mm256_mmask_i64gather_ps): Ditto.
11441         (_mm_mmask_i64gather_ps): Ditto.
11442         (_mm256_mmask_i64gather_pd): Ditto.
11443         (_mm_mmask_i64gather_pd): Ditto.
11444         (_mm256_mmask_i32gather_epi32): Ditto.
11445         (_mm_mmask_i32gather_epi32): Ditto.
11446         (_mm256_mmask_i32gather_epi64): Ditto.
11447         (_mm_mmask_i32gather_epi64): Ditto.
11448         (_mm256_mmask_i64gather_epi32): Ditto.
11449         (_mm_mmask_i64gather_epi32): Ditto.
11450         (_mm256_mmask_i64gather_epi64): Ditto.
11451         (_mm_mmask_i64gather_epi64): Ditto.
11452         (_mm256_i32scatter_ps): Change __addr type to void*.
11453         (_mm256_mask_i32scatter_ps): Ditto.
11454         (_mm_i32scatter_ps): Ditto.
11455         (_mm_mask_i32scatter_ps): Ditto.
11456         (_mm256_i32scatter_pd): Ditto.
11457         (_mm256_mask_i32scatter_pd): Ditto.
11458         (_mm_i32scatter_pd): Ditto.
11459         (_mm_mask_i32scatter_pd): Ditto.
11460         (_mm256_i64scatter_ps): Ditto.
11461         (_mm256_mask_i64scatter_ps): Ditto.
11462         (_mm_i64scatter_ps): Ditto.
11463         (_mm_mask_i64scatter_ps): Ditto.
11464         (_mm256_i64scatter_pd): Ditto.
11465         (_mm256_mask_i64scatter_pd): Ditto.
11466         (_mm_i64scatter_pd): Ditto.
11467         (_mm_mask_i64scatter_pd): Ditto.
11468         (_mm256_i32scatter_epi32): Ditto.
11469         (_mm256_mask_i32scatter_epi32): Ditto.
11470         (_mm_i32scatter_epi32): Ditto.
11471         (_mm_mask_i32scatter_epi32): Ditto.
11472         (_mm256_i32scatter_epi64): Ditto.
11473         (_mm256_mask_i32scatter_epi64): Ditto.
11474         (_mm_i32scatter_epi64): Ditto.
11475         (_mm_mask_i32scatter_epi64): Ditto.
11476         (_mm256_i64scatter_epi32): Ditto.
11477         (_mm256_mask_i64scatter_epi32): Ditto.
11478         (_mm_i64scatter_epi32): Ditto.
11479         (_mm_mask_i64scatter_epi32): Ditto.
11480         (_mm256_i64scatter_epi64): Ditto.
11481         (_mm256_mask_i64scatter_epi64): Ditto.
11482         (_mm_i64scatter_epi64): Ditto.
11483         (_mm_mask_i64scatter_epi64): Ditto.
11484         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
11485         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
11486         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
11487         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
11488         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
11489         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
11490         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
11491         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
11492         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
11493         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
11494         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
11495         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
11496         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
11497         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
11498         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
11499         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
11500         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
11501         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
11502         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
11503         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
11504         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
11505         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
11506         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
11507         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
11508         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
11509         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
11510         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
11511         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
11512         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
11513         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
11514         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
11515         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
11516         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
11517         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
11518         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
11519         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
11520         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
11521         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
11522         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
11523         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
11524         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
11525         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
11526         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
11527         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
11528         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
11529         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
11530         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
11531         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
11532         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
11533         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
11534         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
11535         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
11536         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
11537         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
11538         definitions accordingly.
11540 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
11541             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
11543         PR target/79079
11544         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
11545         gen_lowpart.
11547 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
11549         PR target/79058
11550         * ira-conflicts.c (ira_build_conflicts): Update total conflict
11551         hard regs for inner regno.
11553 2017-01-17  Martin Liska  <mliska@suse.cz>
11555         PR ipa/71207
11556         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
11557         assumption and add comment.
11559 2017-01-17  Nathan Sidwell  <nathan@acm.org>
11561         * ipa-visibility.c (localize_node): New function, broken out of ...
11562         (function_and_variable_visibility): ... here. Call it.
11564 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
11566         PR middle-end/77445
11567         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
11568         correctly set frequency of oudgoing edge.
11569         (duplicate_thread_path): Fix profile updating.
11571 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11573         PR other/79046
11574         * configure.ac: Add GCC_BASE_VER.
11575         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
11576         version from BASE-VER file.
11577         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
11578         (gcc.o): Depend on $(BASEVER).
11579         * common.opt (dumpfullversion): New option.
11580         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
11581         * doc/invoke.texi: Document -dumpfullversion.
11582         * doc/install.texi: Document --with-gcc-major-version-only.
11583         * configure: Regenerated.
11585 2017-01-17  Richard Biener  <rguenther@suse.de>
11587         PR tree-optimization/71433
11588         * tree-vrp.c (register_new_assert_for): Merge same asserts
11589         on all incoming edges.
11590         (process_assert_insertions_for): Handle insertions at the
11591         beginning of BBs.
11593 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
11595         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
11596         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
11598 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11600         PR target/78633
11601         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
11602         RTL sharing.
11604 2017-01-17  Alan Modra  <amodra@gmail.com>
11606         PR target/79066
11607         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
11608         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
11609         symbolic stack limit when pic.
11611 2017-01-16  Martin Sebor  <msebor@redhat.com>
11613         PR tree-optimization/78608
11614         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
11616 2017-01-16  Jeff Law  <law@redhat.com>
11618         Revert:
11619         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
11620         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
11621         for several include directories that may be relative to sysroot.
11622         * config/i386/x-mingw32 (gplus_includedir): Define.
11623         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
11624         (native_system_includedir): Likewise.
11625         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
11626         override if TARGET_SYSTEM_ROOT is defined.
11627         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
11629         PR tree-optimization/79090
11630         PR tree-optimization/33562
11631         PR tree-optimization/61912
11632         PR tree-optimization/77485
11633         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
11634         and computed trims into the dump file.
11636 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
11638         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
11640 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
11642         PR c/79089
11643         * gimplify.c (gimplify_init_constructor): If want_value and
11644         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
11645         fix.
11647         PR target/79080
11648         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
11649         sequence.  Formatting fixes.
11650         (doloop_optimize): Formatting fixes.
11652         PR driver/49726
11653         * gcc.c (debug_level_greater_than_spec_func): New function.
11654         (static_spec_functions): Add debug-level-gt spec function.
11655         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
11656         !g0.
11657         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
11658         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
11659         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
11660         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
11661         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
11662         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
11664 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
11666         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
11667         QImode fixups to general and mask registers only.
11669 2017-01-16  Carl Love  <cel@us.ibm.com>
11671         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
11672         for built-in functions
11673         vector signed char vec_nabs (vector signed char)
11674         vector signed short vec_nabs (vector signed short)
11675         vector signed int vec_nabs (vector signed int)
11676         vector signed long long vec_nabs (vector signed long long)
11677         vector float vec_nabs (vector float)
11678         vector double vec_nabs (vector double)
11679         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
11680         and NABS overload.
11681         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
11682         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
11683         * doc/extend.texi: Update the documentation file for the new built-in
11684         functions.
11686 2017-01-16  Martin Sebor  <msebor@redhat.com>
11688         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
11689         message.
11691 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11693         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
11694         UNSPEC_VSX__XXSPLTD to require special splat handling.
11696 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
11698         PR bootstrap/78616
11699         * system.h: Poison strndup.
11701 2017-01-16  Alan Modra  <amodra@gmail.com>
11703         PR target/79098
11704         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
11705         use a switch.
11707 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
11709         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
11711 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
11713         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
11714         call recog here.  Assert that INSN_CODE (insn) is non-negative.
11716 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
11718         PR target/72749
11719         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
11720         fallthrough.
11721         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
11722         in the currently scheduled RTL fragment.
11724 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
11726         PR rtl-optimization/78751
11727         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
11728         give up.
11730 2017-01-14  Jeff Law  <law@redhat.com>
11732         PR tree-optimization/79090
11733         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
11734         variable length stores.
11735         (compute_trims): Delete dead assignment to *trim_tail.
11736         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
11737         zero length.
11739 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
11741         PR rtl-optimization/78626
11742         PR rtl-optimization/78727
11743         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
11744         of a block, and split such blocks after everything else is finished.
11746 2017-01-14  Alan Modra  <amodra@gmail.com>
11748         PR target/72749
11749         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
11750         target legitimate_combined_insn.
11751         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
11752         (rs6000_legitimate_combined_insn): New function.
11753         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
11754         all uses.
11755         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
11756         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
11757         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
11759 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
11761         * doc/frontends.texi (G++ and GCC): Remove references to Java.
11763 2017-01-13  Jeff Law  <law@redhat.com>
11765         PR tree-optimization/33562
11766         PR tree-optimization/61912
11767         PR tree-optimization/77485
11768         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
11769         a statement.
11770         (delete_dead_assignment): Likewise.
11771         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
11772         statement to delete_dead_call and delete_dead_assignment.
11774 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
11776         PR c/78304
11777         * substring-locations.c (format_warning_va): Strengthen case 1 so
11778         that both endpoints of the substring must be within the format
11779         range for just the substring to be printed.
11781 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
11783         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
11784         * config/i386/i386.c (ix86_target_string): Add missing options
11785         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
11786         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
11787         flags_other and ix86_target_other to flags2_other.  Display unknown
11788         isa2 options.
11789         (ix86_valid_target_attribute_inner_p): Add missing options and
11790         reorder options by implied ISAs, as in ix86_target_string.
11792 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
11794         * hash-table.h (hash_table::too_empty_p): New function.
11795         (hash_table::expand): Use it.
11796         (hash_table::traverse): Likewise.
11797         (hash_table::empty_slot): Use sizeof (value_type) instead of
11798         sizeof (PTR) to convert bytes to elements.  Shrink the table
11799         if the current size is excessive for the current number of
11800         elements.
11802 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
11804         * ira-costs.c (record_reg_classes): Break from the inner loop
11805         early once alt_fail is known to be true.  Update outer loop
11806         handling accordingly.
11808 2017-01-13  Jeff Law  <law@redhat.com>
11810         * tree-ssa-dse.c (decrement_count): New function.
11811         (increment_start_addr, maybe_trim_memstar_call): Likewise.
11812         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
11813         when we know the partially dead statement is a mem* function.
11815         PR tree-optimization/61912
11816         PR tree-optimization/77485
11817         * tree-ssa-dse.c: Include expr.h.
11818         (maybe_trim_constructor_store): New function.
11819         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
11821         PR tree-optimization/33562
11822         PR tree-optimization/61912
11823         PR tree-optimization/77485
11824         * doc/invoke.texi: Document new dse-max-object-size param.
11825         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
11826         * tree-ssa-dse.c: Include params.h.
11827         (dse_store_status): New enum.
11828         (initialize_ao_ref_for_dse): New, partially extracted from
11829         dse_optimize_stmt.
11830         (valid_ao_ref_for_dse, normalize_ref): New.
11831         (setup_live_bytes_from_ref, compute_trims): Likewise.
11832         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
11833         (maybe_trim_partially_dead_store): Likewise.
11834         (maybe_trim_complex_store): Likewise.
11835         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
11836         Track what bytes live from the original store.  Return tri-state
11837         for dead, partially dead or live.
11838         (dse_dom_walker): Add constructor, destructor and new private members.
11839         (delete_dead_call, delete_dead_assignment): New extracted from
11840         dse_optimize_stmt.
11841         (dse_optimize_stmt): Make a member of dse_dom_walker.
11842         Use initialize_ao_ref_for_dse.
11844         PR tree-optimization/33562
11845         PR tree-optimization/61912
11846         PR tree-optimization/77485
11847         * sbitmap.h (bitmap_count_bits): Prototype.
11848         (bitmap_clear_range, bitmap_set_range): Likewise.
11849         * sbitmap.c (bitmap_clear_range): New function.
11850         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
11852 2017-01-13  Martin Liska  <mliska@suse.cz>
11854         PR ipa/79043
11855         * function.c (set_cfun): Add new argument force.
11856         * function.h (set_cfun): Likewise.
11857         * ipa-inline-transform.c (inline_call): Use the function when
11858         strict alising from is dropped for function we inline to.
11860 2017-01-13  Richard Biener  <rguenther@suse.de>
11862         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
11863         for dumping GIMPLE INTEGER_CSTs.
11865 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11867         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
11868         to 201112L since C++17.
11870 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
11872         PR sanitizer/78887
11873         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
11874         if -fsanitize=kernel-address is present.
11876 2017-01-13  Richard Biener  <rguenther@suse.de>
11878         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
11879         as _Literal ( type ) number in case usual suffixes do not
11880         preserve all information.
11882 2017-01-13  Richard Biener  <rguenther@suse.de>
11884         PR tree-optimization/77283
11885         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
11886         and ssa-iterators.h.
11887         (is_feasible_trace): Implement a cost model based on joiner
11888         PHI node uses.
11890 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11892         PR target/79004
11893         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
11894         char or short to __float128/_Float128 directly.
11896 2017-01-12  Martin Sebor  <msebor@redhat.com>
11898         to -Wformat-overflow.
11899         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
11900         (min_bytes_remaining): Same.
11901         (get_string_length): Same.
11902         (format_string): Same.
11903         (format_directive): Same.
11904         (add_bytes): Same.
11905         (pass_sprintf_length::handle_gimple_call): Same.
11907 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
11909         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
11910         info.nowrite calls with no lhs that can't throw.  Return bool
11911         whether gsi_remove has been called or not.
11912         (pass_sprintf_length::handle_gimple_call): Return bool whether
11913         try_substitute_return_value called gsi_remove.  Formatting fix.
11914         (pass_sprintf_length::execute): Don't use gsi_remove if
11915         handle_gimple_call returned true.
11917         PR bootstrap/79069
11918         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
11919         be removed due to side-effects, don't remove following barrier nor
11920         turn the successor edge into fallthru edge.
11922 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11924         PR target/79044
11925         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
11926         element-reversing loads and stores as not swappable.
11928 2017-01-12  Nathan Sidwell  <nathan@acm.org>
11929             Nicolai Stange  <nicstange@gmail.com>
11931         * combine.c (try_combine): Don't ignore result of overlap checking
11932         loop.  Combine overlap & asm check into single loop.
11934 2017-01-12  Richard Biener  <rguenther@suse.de>
11936         * tree-pretty-print.c (dump_generic_node): Provide -gimple
11937         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
11939 2017-01-12  Richard Biener  <rguenther@suse.de>
11941         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
11942         and TS_TARGET_OPTION directly derive from TS_BASE.
11943         * tree-core.h (tree_optimization_option): Derive from tree_base.
11944         (tree_target_option): Likewise.
11946 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
11948         * config/i386/i386.c (memory_address_length): Increase len
11949         only when rip_relative_addr_p returns false.
11951 2017-01-11  Julia Koval  <julia.koval@intel.com>
11953         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
11954         (OPTION_MASK_ISA_SGX_SET): New.
11955         (ix86_handle_option): Handle OPT_msgx.
11956         * config.gcc: Added sgxintrin.h.
11957         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
11958         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
11959         * config/i386/i386.c (ix86_target_string): Add -msgx.
11960         (PTA_SGX): New.
11961         (ix86_option_override_internal): Handle new options.
11962         (ix86_valid_target_attribute_inner_p): Add sgx.
11963         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
11964         * config/i386/i386.opt: Add msgx.
11965         * config/i386/sgxintrin.h: New file.
11966         * config/i386/x86intrin.h: Add sgxintrin.h.
11968 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
11970         PR c++/71537
11971         * fold-const.c (maybe_nonzero_address): Return 1 for function
11972         local objects.
11973         (tree_single_nonzero_warnv_p): Don't handle function local objects
11974         here.
11976         PR c++/72813
11977         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
11978         of c-header.
11980 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
11982         PR driver/78877
11983         * opts.c: Include "spellcheck.h"
11984         (struct string_fragment): New struct.
11985         (struct edit_distance_traits<const string_fragment &>): New
11986         struct.
11987         (get_closest_sanitizer_option): New function.
11988         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
11990 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
11992         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
11993         by 12.
11994         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
11995         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
11996         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
11997         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
11998         for initial die_offset if dwarf_split_debug_info.
11999         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
12000         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
12001         fields.
12002         (output_skeleton_debug_sections): Formatting fix.  Use
12003         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
12004         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
12006 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
12008         * config/arm/cortex-a53.md: Add bypasses for
12009         cortex_a53_r2f_cvt.
12010         (cortex_a53_r2f): Only use for transfers.
12011         (cortex_a53_f2r): Likewise.
12012         (cortex_a53_r2f_cvt): Add reservation for conversions.
12013         (cortex_a53_f2r_cvt): Likewise.
12015 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
12017         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
12018         to all inlined functions, change static to extern.
12020 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
12022         PR target/78253
12023         * config/arm/arm.c (legitimize_pic_address): Handle reference to
12024         weak symbol.
12025         (arm_assemble_integer): Likewise.
12027 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
12029         * config.gcc: Use new awk script to check CPU, FPU and architecture
12030         parameters for --with-... options.
12031         * config/arm/parsecpu.awk: New file
12032         * config/arm/arm-cpus.in: New file.
12033         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
12034         files.
12035         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
12036         files.
12037         * config/arm/t-arm: Update dependency rules.
12038         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
12039         of processing .def files.
12040         * config/arm/genopt.sh: Deleted.
12041         * config/arm/gentune.sh: Deleted.
12042         * config/arm/arm-cores.def: Deleted.
12043         * config/arm/arm-arches.def: Deleted.
12044         * config/arm/arm-fpus.def: Deleted.
12045         * config/arm/arm-tune.md: Regenerated.
12046         * config/arm/arm-tables.opt: Regenerated.
12047         * config/arm/arm-cpu.h: New generated file.
12048         * config/arm/arm-cpu-data.h: New generated file.
12049         * config/arm/arm-cpu-cdata.h: New generated file.
12051 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
12053         PR lto/79042
12054         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
12055         bit.
12056         (input_varpool_node): Unpack dynamically_initialized bit.
12058 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12060         PR rtl-optimization/79032
12061         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
12062         the alignment of the adjusted memory reference against that of MODE,
12063         instead of the alignment of the original memory reference.
12065 2017-01-11  Martin Jambor  <mjambor@suse.cz>
12067         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
12068         test.
12069         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
12070         decorated functions.
12072 2017-01-11  Richard Biener  <rguenther@suse.de>
12074         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
12075         set range/nonnull info for PHI results.  Do not set it on
12076         stmts marked for removal.
12078 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
12080         * expr.c (store_field): In the bitfield case, fetch the return value
12081         from the registers before applying a single big-endian adjustment.
12082         Always do a final load for a BLKmode value not larger than a word.
12084 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
12086         PR c++/77949
12087         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
12088         that we correctly handle column numbers greater than
12089         LINE_MAP_MAX_COLUMN_NUMBER.
12091 2017-01-10  Martin Sebor  <msebor@redhat.com>
12093         PR middle-end/78245
12094         * gimple-ssa-sprintf.c (get_destination_size): Call
12095         {init,fini}object_sizes.
12096         * tree-object-size.c (addr_object_size): Adjust.
12097         (pass_through_call): Adjust.
12098         (pass_object_sizes::execute): Adjust.
12099         * tree-object-size.h (fini_object_sizes): Declare.
12101 2017-01-10  Martin Sebor  <msebor@redhat.com>
12103         PR tree-optimization/78775
12104         * builtins.c (get_size_range): Move...
12105         * calls.c: ...to here.
12106         (alloc_max_size): Accept zero argument.
12107         (operand_signed_p): Remove.
12108         (maybe_warn_alloc_args_overflow): Call get_size_range.
12109         * calls.h (get_size_range): Declare.
12111 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
12113         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
12114         from TI's devices.csv file as of September 2016.
12115         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
12117 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
12119         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
12120         * doc/invoke.texi: Likewise.
12121         * doc/md.texi: Likewise.
12122         * doc/objc.texi: Likewise.
12124 2017-01-10  Joshua Conner  <joshconner@google.com>
12126         * config/arm/fuchsia-elf.h: New file.
12127         * config/fuchsia.h: New file.
12128         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
12129         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
12130         targets.
12131         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
12133 2016-01-10  Richard Biener  <rguenther@suse.de>
12135         PR tree-optimization/79034
12136         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
12137         Propagate out degenerate PHIs in the joiner.
12139 2017-01-10  Martin Liska  <mliska@suse.cz>
12141         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
12142         (sort_congruence_classes_by_decl_uid): Likewise.
12143         (sort_congruence_class_groups_by_decl_uid): Likewise.
12144         (sem_item_optimizer::merge_classes): Sort class, groups in these
12145         classes and members in the groups by DECL_UID of declarations.
12146         This would make merge operations stable.
12148 2017-01-10  Martin Liska  <mliska@suse.cz>
12150         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
12151         usage of m_classes_vec.
12152         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
12153         (sem_item_optimizer::get_group_by_hash): Likewise.
12154         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
12155         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
12156         (sem_item_optimizer::verify_classes): Likewise.
12157         (sem_item_optimizer::process_cong_reduction): Likewise.
12158         (sem_item_optimizer::dump_cong_classes): Likewise.
12159         (sem_item_optimizer::merge_classes): Likewise.
12160         * ipa-icf.h (congruence_class_hash): Rename from
12161         congruence_class_group_hash.  Remove declaration of m_classes_vec.
12163 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
12165         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
12166         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
12167         * config.gcc: Add avx512vpopcntdqintrin.h.
12168         * config/i386/avx512vpopcntdqintrin.h: New.
12169         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
12170         * config/i386/i386-builtin-types.def: Add new types.
12171         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
12172         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
12173         __builtin_ia32_vpopcountq_v8di_mask): New.
12174         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12175         __AVX512VPOPCNTDQ__.
12176         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
12177         (PTA_AVX512VPOPCNTDQ): Define.
12178         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
12179         TARGET_AVX512VPOPCNTDQ_P): Define.
12180         * config/i386/i386.opt: Add mavx512vpopcntdq.
12181         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
12182         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
12184 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12186         PR middle-end/77484
12187         * predict.def (PRED_CALL): Set to 67.
12189 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
12191         * expr.c (store_field): In the bitfield case, if the value comes from
12192         a function call and is of an aggregate type returned in registers, do
12193         not modify the field mode; extract the value in all cases if the mode
12194         is BLKmode and the size is not larger than a word.
12196 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
12198         PR target/71017
12199         * config/i386/cpuid.h: Fix undefined behavior.
12201 2017-01-04  Jeff Law  <law@redhat.com>
12203         PR tree-optimization/79007
12204         PR tree-optimization/67955
12205         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
12206         conservative for pt.null when flag_non_call_exceptions is on.
12208 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
12210         PR translation/79019
12211         PR translation/79020
12212         * params.def (PARAM_INLINE_MIN_SPEEDUP,
12213         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
12214         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
12215         in descriptions.
12216         * config/avr/avr.opt (maccumulate-args): Likewise.
12217         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
12218         * common.opt (freport-bug): Likewise.
12219         * cif-code.def (CIF_FINAL_ERROR): Likewise.
12220         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
12221         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
12222         translatable string.
12223         * config/i386/i386.c (function_value_32): Likewise.
12224         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
12225         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
12226         Likewise.
12227         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
12228         * common/config/msp430/msp430-common.c (msp430_handle_option):
12229         Likewise.
12230         * symtab.c (symtab_node::verify_base): Likewise.
12231         * opts.c (set_debug_level): Likewise.
12232         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
12233         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12234         missing whitespace to translatable strings.
12235         * config/avr/avr.md (bswapsi2): Fix typo in comment.
12236         * config/sh/superh.h: Likewise.
12237         * config/i386/xopintrin.h: Likewise.
12238         * config/i386/znver1.md: Likewise.
12239         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
12240         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
12241         * double-int.h (struct double_int): Likewise.
12242         * double-int.c (div_and_round_double): Likewise.
12243         * wide-int.cc: Likewise.
12244         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12245         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
12246         * cfgcleanup.c (crossjumps_occured): Renamed to ...
12247         (crossjumps_occurred): ... this.
12248         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
12249         Adjust all uses.
12251         PR tree-optimization/78899
12252         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
12253         returning bool return struct loop *, NULL for failure and the new
12254         loop on success.
12255         (versionable_outer_loop_p): Don't version outer loop if it has
12256         dont_vectorized bit set.
12257         (tree_if_conversion): When versioning outer loop, ensure
12258         tree_if_conversion is performed also on the inner loop of the
12259         non-vectorizable outer loop copy.
12260         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
12261         LOOP_VECTORIZED in inner loop of the scalar outer loop and
12262         prevent vectorization of it.
12263         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
12264         the outer loop vectorization of the non-scalar version is attempted
12265         before vectorization of the inner loop in scalar version.  If
12266         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
12267         vectorization of its inner loop.
12268         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
12269         has 2 inner loops, rename also on edges from bb whose single pred
12270         is outer_loop->header.  Fix typo in function comment.
12272 2017-01-09  Martin Sebor  <msebor@redhat.com>
12274         PR bootstrap/79033
12275         * asan.c (asan_emit_stack_protection): Increase local buffer size
12276         to avoid snprintf truncation warning.
12278 2017-01-09  Andrew Pinski  <apinski@cavium.com>
12280         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
12281         to reference thunderx2t99 for the tuning structure
12282         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
12283         Rename to ...
12284         (thunderx2t99_extra_costs): This.
12285         * config/aarch64/aarch64-tune.md: Regenerate.
12286         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
12287         (vulcan_addrcost_table): This.
12288         (vulcan_regmove_cost): Rename to ...
12289         (thunderx2t99_regmove_cost): This.
12290         (vulcan_vector_cost): Rename to ...
12291         (thunderx2t99_vector_cost): this.
12292         (vulcan_branch_cost): Rename to ...
12293         (thunderx2t99_branch_cost): This.
12294         (vulcan_tunings): Rename to ...
12295         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
12296         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
12298 2017-01-09  Martin Jambor  <mjambor@suse.cz>
12300         PR ipa/78365
12301         PR ipa/78599
12302         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
12303         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
12304         (propagate_vr_accross_jump_function): Use the above function for all
12305         value range computations for pass-through jump functions and type
12306         converasion from explicit value range values.
12307         (ipcp_propagate_stage): Do not attempt to deduce types of formal
12308         parameters from TYPE_ARG_TYPES.
12309         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
12310         (ipa_write_node_info): Stream type of the actual argument.
12311         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
12313 2017-01-09  Martin Liska  <mliska@suse.cz>
12315         PR pch/78970
12316         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
12317         (lookup_compiler): Do not show error message with have_E.
12319 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
12321         PR tree-optimization/78938
12322         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
12323         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
12324         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
12325         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
12326         fixes.
12328 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12330         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
12331         is const0_rtx.
12333 2017-01-09  Richard Biener  <rguenther@suse.de>
12335         PR tree-optimization/78997
12336         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
12337         name condition properly.
12339 2017-01-09  Richard Biener  <rguenther@suse.de>
12341         PR debug/79000
12342         * dwarf2out.c (is_cxx): New overload with context.
12343         (is_naming_typedef_decl): Use it.
12345 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12347         * invoke.texi (Option Summary): Correct spacing in option lists
12348         and add line breaks to fix over-long lines.
12350 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12352         PR middle-end/17660
12354         * extend.texi (Common Variable Attributes): Add xref to GCC
12355         Internals manual to explain mode attribute keywords.
12357 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12359         PR other/16519
12360         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
12361         and Preprocessor Options.
12362         (Options for Linking): Document -pthread here....
12363         (RS/6000 and PowerPC Options): ...not here.
12364         (Solaris 2 Options): ...or here.
12365         * doc/cppopts.texi: Document -pthread.
12367 2017-01-08  Martin Sebor  <msebor@redhat.com>
12369         PR middle-end/77708
12370         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
12371         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
12372         New member functions.
12373         (format_directive): Used them.
12374         (add_bytes): Same.
12375         (pass_sprintf_length::handle_gimple_call): Same.
12376         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
12377         to avoid truncation for any argument.
12378         (extract_affine_mul): Same.
12379         * tree.c (get_file_function_name): Same.
12381 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12383         PR middle-end/77484
12384         * predict.def (PRED_INDIR_CALL): Set to 86.
12386 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12388         PR preprocessor/54124
12389         * doc/cppopts.texi: Reformat -d subtable to list the full name
12390         of the options.  Add cross-reference to the docs for the general
12391         compiler -d options.
12392         * doc/invoke.texi (Developer Options): Add cross-reference to the
12393         preprocessor-specific -d option documentation.
12395 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12397         PR preprocessor/13498
12398         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
12399         redudant material, and reflect new command-line options.
12400         (System Headers): Likewise.
12402 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12404         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
12405         -isystem, and -idirafter.  Copy-edit.
12406         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
12407         default for -ftrack-macro-expansion.  Delete obsolete and
12408         badly-formatted implementation details about -fdebug-cpp output.
12409         * doc/cppwarnopts.texi: Copy-edit.
12411 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
12413         PR c++/72803
12414         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
12415         that the transition from a max line width >= 1<<10 to narrower
12416         lines works correctly.
12418 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
12420         * doc/options.texi (PerFunction): New.
12421         * opt-functions.awk (switch_flags): Map both Optimization and
12422         PerFunction to CL_OPTIMIZATION.
12423         * opth-gen.awk: Test for PerFunction flag along with
12424         Optimization.
12425         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
12426         it only when the latter is present.  Skip those that don't in
12427         the hash function generator.
12428         * common.opt (fvar-tracking): Mark as PerFunction instead of
12429         Optimization.
12430         (fvar-tracking-assignments): Likewise.
12431         (fvar-tracking-assignments-toggle): Likewise.
12432         (fvar-tracking-uninit): Likewise.
12434 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
12436         PR translation/79018
12437         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
12438         the and store.
12440 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
12442         PR target/57583
12443         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
12444         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
12445         TARGET_LONG_JUMP_TABLE_OFFSETS.
12446         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
12447         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
12448         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
12449         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
12450         * config/m68k/m68k.md (tablejump expander): Likewise.
12451         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
12452         TARGET_LONG_JUMP_TABLE_OFFSETS.
12453         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
12454         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
12456 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
12457             David Holsgrove <david.holsgrove@xilinx.com>
12459         * common/config/microblaze/microblaze-common.c
12460         (TARGET_EXCEPT_UNWIND_INFO): Remove.
12461         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
12462         New prototype.
12463         * config/microblaze/microblaze.c (microblaze_must_save_register)
12464         (microblaze_expand_epilogue, microblaze_return_addr): Handle
12465         calls_eh_return.
12466         (microblaze_eh_return): New function.
12467         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
12468         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
12469         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
12470         * config/microblaze/microblaze.md (eh_return): New pattern.
12472 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
12474         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
12475         GCC_DIAGNOSTIC_STRINGIFY): Define.
12477         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
12479 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12481         * config/arm/arm.md (<mcrr>): New.
12482         (<mrrc>): New.
12483         * config/arm/arm.c (arm_arch5te): New.
12484         (arm_option_override): Set arm_arch5te.
12485         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
12486         and mrrc2.
12487         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
12488         (arm_mcrr_qualifiers): ... this. New.
12489         (MRRC_QUALIFIERS): Define to...
12490         (arm_mrrc_qualifiers): ... this. New.
12491         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
12492         __arm_mrrc2): New.
12493         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
12494         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
12495         (MRRCI, mrrc, MRRC): New.
12496         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
12497         VUNSPEC_MRRC2): New.
12499 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12501         * config/arm/arm.md (<mcr>): New.
12502         (<mrc>): New.
12503         * config/arm/arm.c (arm_coproc_builtin_available): Add
12504         support for mcr, mrc, mcr2 and mrc2.
12505         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
12506         (arm_mcr_qualifiers): ... this. New.
12507         (MRC_QUALIFIERS): Define to ...
12508         (arm_mrc_qualifiers): ... this. New.
12509         (MCR_QUALIFIERS): Define to ...
12510         (arm_mcr_qualifiers): ... this. New.
12511         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
12512         __arm_mrc2): New.
12513         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
12514         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
12515         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
12516         VUNSPEC_MRC2): New.
12518 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12520         * config/arm/arm.md (*ldc): New.
12521         (*stc): New.
12522         (<ldc>): New.
12523         (<stc>): New.
12524         * config/arm/arm.c (arm_coproc_builtin_available): Add
12525         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
12526         (arm_coproc_ldc_stc_legitimate_address): New.
12527         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
12528         'qualifier_const_pointer'.
12529         (LDC_QUALIFIERS): Define to...
12530         (arm_ldc_qualifiers): ... this. New.
12531         (STC_QUALIFIERS): Define to...
12532         (arm_stc_qualifiers): ... this. New.
12533         * config/arm/arm-protos.h
12534         (arm_coproc_ldc_stc_legitimate_address): New.
12535         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
12536         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
12537         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
12538         stc2, stcl, stc2l): New.
12539         * config/arm/constraints.md (Uz): New.
12540         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
12541         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
12542         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
12543         VUNSPEC_STC2L): New.
12545 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12547         * config/arm/arm.md (<cdp>): New.
12548         * config/arm/arm.c (neon_const_bounds): Rename this ...
12549         (arm_const_bounds): ... this.
12550         (arm_coproc_builtin_available): New.
12551         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
12552         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
12553         (CDP_QUALIFIERS): Define to...
12554         (arm_cdp_qualifiers): ... this. New.
12555         (void_UP): Define.
12556         (arm_expand_builtin_args): Add case for 6 arguments.
12557         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
12558         (arm_const_bounds): ... this.
12559         (arm_coproc_builtin_available): New.
12560         * config/arm/arm_acle.h (__arm_cdp): New.
12561         (__arm_cdp2): New.
12562         * config/arm/arm_acle_builtins.def (cdp): New.
12563         (cdp2): New.
12564         * config/arm/iterators.md (CDPI,CDP,cdp): New.
12565         * config/arm/neon.md: Rename all 'neon_const_bounds' to
12566         'arm_const_bounds'.
12567         * config/arm/types.md (coproc): New.
12568         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
12569         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
12570         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
12571         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
12573 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12575         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
12576         (UBINOP_QUALIFIERS): New.
12577         (si_UP): Define.
12578         (acle_builtin_data): New. Change comment.
12579         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
12580         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
12581         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
12582         arm_acle_builtins.def.
12583         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
12584         (arm_init_acle_builtins): New.
12585         (CRC32_BUILTIN): Remove.
12586         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
12587         crc32cb, crc32ch and crc32cw.
12588         (arm_init_crc32_builtins): Remove.
12589         (arm_init_builtins): Use arm_init_acle_builtins rather
12590         than arm_init_crc32_builtins.
12591         (arm_expand_acle_builtin): New.
12592         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
12593         * config/arm/arm_acle_builtins.def: New.
12595 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12597         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
12598         (arm_builtin_datum): ... this.
12599         (arm_init_neon_builtin): Rename to ...
12600         (arm_init_builtin): ... this. Add a new parameters PREFIX
12601         and USE_SIG_IN_NAME.
12602         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
12603         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
12604         'arm_builtin_datum'.
12605         (arm_init_vfp_builtins): Likewise.
12606         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
12607         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
12608         (arm_expand_neon_args): Rename to ...
12609         (arm_expand_builtin_args): ... this. Rename builtin_arg
12610         enum values and differentiate between ARG_BUILTIN_MEMORY
12611         and ARG_BUILTIN_NEON_MEMORY.
12612         (arm_expand_neon_builtin_1): Rename to ...
12613         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
12614         values, arm_expand_builtin_args and add bool parameter NEON.
12615         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
12616         (arm_expand_vfp_builtin): Likewise.
12617         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
12619 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12621         PR middle-end/77484
12622         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
12623         * predict.c (tree_estimate_probability_bb): Reverse direction of
12624         polymorphic call predictor.
12626 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
12628         * passes.c (execute_one_pass): Split out pass-skipping logic into...
12629         (determine_pass_name_match): ...this new function and...
12630         (should_skip_pass_p): ...this new function.
12632 2017-01-06  Nathan Sidwell  <nathan@acm.org>
12634         * ipa-visibility.c (function_and_variable_visibility): Reformat
12635         comments and long lines.  Remove extrneous if.
12636         * symtab.c (symtab_node::make_decl_local): Fix code format.
12637         (symtab_node::set_section_for_node): Fix comment typo.
12639 2017-01-06  Martin Liska  <mliska@suse.cz>
12641         PR bootstrap/79003
12642         * lra-constraints.c: Rename invariant to lra_invariant.
12643         * predict.c (set_even_probabilities): Initialize e to NULL.
12645 2017-01-05  Martin Sebor  <msebor@redhat.com>
12647         PR tree-optimization/78910
12648         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
12649         (format_integer): Correct off-by-one error in the handling
12650         of precision with negative numbers in signed conversions..
12652 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12654         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
12656 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
12658         PR tree-optimization/71016
12659         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
12660         factor_out_conditional_conversion.  Formatting fix.
12661         (factor_out_conditional_conversion): Add cond_stmt argument.
12662         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
12663         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
12664         Formatting fix.
12666 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
12668         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
12669         read-rtl-function.o, and selftest-rtl.o.
12670         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
12671         (selftest::aarch64_test_loading_full_dump): New function.
12672         (selftest::aarch64_run_selftests): New function.
12673         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
12674         selftest::aarch64_run_selftests.
12675         * config/i386/i386.c
12676         (selftest::ix86_test_loading_dump_fragment_1): New function.
12677         (selftest::ix86_test_loading_call_insn): New function.
12678         (selftest::ix86_test_loading_full_dump): New function.
12679         (selftest::ix86_test_loading_unspec): New function.
12680         (selftest::ix86_run_selftests): Call the new functions.
12681         * emit-rtl.c (maybe_set_max_label_num): New function.
12682         * emit-rtl.h (maybe_set_max_label_num): New decl.
12683         * function.c (instantiate_decls): Guard call to
12684         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
12685         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
12686         "static".
12687         * gensupport.c (gen_reader::gen_reader): Pass "false"
12688         for new "compact" param of rtx_reader.
12689         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
12690         rather than an empty string for NULL strings.
12691         * read-md.c: Potentially include config.h rather than bconfig.h.
12692         Wrap include of errors.h with #ifdef GENERATOR_FILE.
12693         (have_error): New global, copied from errors.c.
12694         (md_reader::read_name): Rename to...
12695         (md_reader::read_name_1): ...this, adding "out_loc" param,
12696         and converting "missing name or number" to returning false, rather
12697         than failing.
12698         (md_reader::read_name): Reimplement in terms of read_name_1.
12699         (md_reader::read_name_or_nil): New function.
12700         (md_reader::read_string): Handle "(nil)" by returning NULL.
12701         (md_reader::md_reader): Add new param "compact".
12702         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
12703         (md_reader::read_file): New method.
12704         * read-md.h (md_reader::md_reader): Add new param "compact".
12705         (md_reader::read_file): New method.
12706         (md_reader::is_compact): New accessor.
12707         (md_reader::read_name): Convert return type from void to file_location.
12708         (md_reader::read_name_or_nil): New decl.
12709         (md_reader::read_name_1): New decl.
12710         (md_reader::m_compact): New field.
12711         (noop_reader::noop_reader): Pass "false" for new "compact" param
12712         of rtx_reader.
12713         (rtx_reader::rtx_reader): Add new "compact" param.
12714         (rtx_reader::read_rtx_operand): Make virtual and convert return
12715         type from void to rtx.
12716         (rtx_reader::read_until): New decl.
12717         (rtx_reader::handle_any_trailing_information): New virtual function.
12718         (rtx_reader::postprocess): New virtual function.
12719         (rtx_reader::finalize_string): New virtual function.
12720         (rtx_reader::m_in_call_function_usage): New field.
12721         (rtx_reader::m_reuse_rtx_by_id): New field.
12722         * read-rtl-function.c: New file.
12723         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
12724         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
12725         (selftest::verify_three_block_rtl_cfg): New decl.
12726         * read-rtl-function.h: New file.
12727         * read-rtl.c: Potentially include config.h rather than bconfig.h.
12728         For host, include function.h, memmodel.h, and emit-rtl.h.
12729         (one_time_initialization): New function.
12730         (struct compact_insn_name): New struct.
12731         (compact_insn_names): New array.
12732         (find_code): Handle insn codes in compact dumps.
12733         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
12734         (bind_subst_iter_and_attr): Likewise.
12735         (add_condition_to_string): Likewise.
12736         (add_condition_to_rtx): Likewise.
12737         (apply_attribute_uses): Likewise.
12738         (add_current_iterators): Likewise.
12739         (apply_iterators): Likewise.
12740         (initialize_iterators): Guard usage of apply_subst_iterator with
12741         #ifdef GENERATOR_FILE.
12742         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
12743         (md_reader::read_mapping): Likewise.
12744         (add_define_attr_for_define_subst): Likewise.
12745         (add_define_subst_attr): Likewise.
12746         (read_subst_mapping): Likewise.
12747         (check_code_iterator): Likewise.
12748         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
12749         logic to...
12750         (one_time_initialization): New function.
12751         (rtx_reader::read_until): New method.
12752         (read_flags): New function.
12753         (parse_reg_note_name): New function.
12754         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
12755         Handle reuse_rtx ids.
12756         Wrap iterator lookup within #ifdef GENERATOR_FILE.
12757         Add parsing support for RTL dumps, mirroring the special-cases in
12758         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
12759         values, and calling handle_any_trailing_information.
12760         (rtx_reader::read_rtx_operand): Convert return type from void
12761         to rtx, returning return_rtx.  Handle case 'e'.  Call
12762         finalize_string on XSTR and XTMPL fields.
12763         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
12764          "(nil)" values were omitted.  Call the postprocess vfunc on the
12765         return_rtx.
12766         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
12767         class ctor.  Initialize m_in_call_function_usage.  Call
12768         one_time_initialization.
12769         * rtl-tests.c (selftest::test_uncond_jump): Call
12770         set_new_first_and_last_insn.
12771         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
12772         * selftest-rtl.c: New file.
12773         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
12774         (selftest::get_insn_by_uid): New decl.
12775         * selftest-run-tests.c (selftest::run_tests): Call
12776         read_rtl_function_c_tests.
12777         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
12778         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
12779         dumps.
12781 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
12783         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
12784         operands in a special way.  Assert that pos+len <= mode precision.
12786 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
12788         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
12789         3 argument Alias with unlimited for the negative form.
12790         (fno-vect-cost-model): Removed.
12792 2017-01-05  Martin Liska  <mliska@suse.cz>
12794         * hsa-gen.c (gen_hsa_divmod): New function.
12795         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
12797 2017-01-05  Martin Liska  <mliska@suse.cz>
12799         PR pch/78970
12800         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
12801         header.
12803 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12805         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
12806         small constant length operands.
12808 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12810         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
12811         between loop iterations.
12813 2017-01-05  Martin Liska  <mliska@suse.cz>
12815         PR sanitizer/78815
12816         * gimplify.c (gimplify_decl_expr): Compare to
12817         asan_poisoned_variables instread of checking flags.
12818         (gimplify_target_expr): Likewise.
12819         (gimplify_expr): Likewise.
12820         (gimplify_function_tree): Conditionally initialize
12821         asan_poisoned_variables.
12823 2017-01-04  Jeff Law  <law@redhat.com>
12825         PR tree-optimizatin/78812
12826         * rtl.h (contains_mem_rtx_p): Prototype.
12827         * ifcvt.c (containts_mem_rtx_p): Move from here to...
12828         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
12829         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
12830         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
12831         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
12833 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12835         * input.c (assert_char_at_range): Default-initialize actual_range.
12837 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12839         * df-scan.c (df_ref_create_structure): Make regno unsigned,
12840         to match the caller.
12842 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12844         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
12845         insns after final jump in test to emit dummy move.
12847 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12849         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
12850         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
12852 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12854         * multiple_target.c (create_dispatcher_calls): Init e_next.
12855         * tree-ssa-loop-split.c (split_loop): Init border.
12856         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
12857         scalar_type.
12859 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12861         PR target/71977
12862         PR target/70568
12863         PR target/78823
12864         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
12865         (altivec_register_operand): Do not return true if the operand
12866         contains a SUBREG mixing SImode and SFmode.
12867         (vsx_register_operand): Likewise.
12868         (vsx_reg_sfsubreg_ok): New predicate.
12869         (vfloat_operand): Do not return true if the operand contains a
12870         SUBREG mixing SImode and SFmode.
12871         (vint_operand): Likewise.
12872         (vlogical_operand): Likewise.
12873         (gpc_reg_operand): Likewise.
12874         (int_reg_operand): Likewise.
12875         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
12876         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
12877         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
12878         SImode and SFmode.
12879         (rs6000_emit_move_si_sf_subreg): New helper function.
12880         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
12881         fixup SUBREGs involving SImode and SFmode.
12882         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
12883         numbers for the new peephole2 optimization.
12884         (peephole2 for SFmode unions): New peephole2 to optimize cases in
12885         the GLIBC math library that do AND/IOR/XOR operations on single
12886         precision floating point.
12887         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
12888         target macros to say whether we need to avoid SUBREGs mixing
12889         SImode and SFmode.
12890         (TARGET_ALLOW_SF_SUBREG): Likewise.
12891         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
12892         (UNSPEC_SI_FROM_SF): Likewise.
12893         (iorxor): Change spacing.
12894         (and_ior_xor): New iterator for AND, IOR, and XOR.
12895         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
12896         (movdi_from_sf_zero_ext): Likewise.
12897         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
12898         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
12899         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
12900         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
12901         (fms<mode>4): Likewise.
12902         (fnma<mode>4): Likewise.
12903         (fnms<mode>4): Likewise.
12904         (nfma<mode>4): Likewise.
12905         (nfms<mode>4): Likewise.
12907 2017-01-04  Marek Polacek  <polacek@redhat.com>
12909         PR c++/64767
12910         * doc/invoke.texi: Document -Wpointer-compare.
12912 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12914         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
12915         RejectNegative.
12917         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
12918         descriptions for -gdwarf-5 and emit them as uleb128 instead of
12919         2-byte data.
12921 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12923         PR target/78056
12924         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
12925         documentation of the powerpc_popcntb_ok attribute.
12926         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12927         code to issue warning messages if a requested CPU configuration is
12928         not supported by the binary (assembler and loader) toolchain.
12929         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
12930         made to define a built-in function that has been disabled.
12931         (paired_init_builtins): Add assertion to prevent ICE if attempt is
12932         made to define a built-in function that has been disabled.
12933         (altivec_init_builtins): Add comment explaining why definition
12934         of the DST built-in functions is not preceded by an assertion
12935         check.  Add assertions to prevent ICE if attempts are made to
12936         define an altivec predicate or an abs* built-in function that has
12937         been disabled.
12938         (htm_init_builtins): Add comment explaining why definition of the
12939         htm built-in functions is not preceded by an assertion check.
12941 2017-01-04  Jeff Law  <law@redhat.com>
12943         PR tree-optimizatin/67955
12944         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
12945         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
12946         the points-to solution does not include pt_null.  Use DECL_PT_UID
12947         unconditionally.
12949 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
12951         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
12952         Use gen_int_mode instead of gen_lopwart for const_int operands.
12954 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12956         PR tree-optimization/71563
12957         * match.pd: Simplify X << Y into X if Y is known to be 0 or
12958         out of range value - has low bits known to be zero.
12960 2017-01-04  Alan Modra  <amodra@gmail.com>
12962         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
12963         * configure: Regenerate.
12964         * config.in: Regenerate.
12966 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12968         PR bootstrap/77569
12969         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
12970         a substring of the message, but strcmp with the whole message.  Ifdef
12971         ENABLE_NLS, translate the message first using dgettext.
12973 2017-01-03  Jeff Law  <law@redhat.com>
12975         PR tree-optimizatin/78856
12976         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
12977         (mark_threaded_blocks): Remove code to truncate thread paths that
12978         cross multiple loop headers.  Instead invalidate the cached loop
12979         iteration information and handle case of a thread path walking
12980         into an irreducible region.
12982 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12984         PR target/78900
12985         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
12986         assertions.  Add support for doing the signbit if the IEEE 128-bit
12987         floating point value is in a GPR.
12988         * config/rs6000/rs6000.md (Fsignbit): Delete.
12989         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
12990         Update the length attribute if the value is in a GPR.
12991         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
12992         the sign or zero extension instruction, since the value is always 0/1.
12993         (signbit<mode>2_dm2): Delete using <Fsignbit>.
12995         PR target/78953
12996         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
12997         extracting SImode to a GPR register so that we can generate a
12998         store, limit the vector to be in a traditional Altivec register
12999         for the vextuwrx instruction.
13001 2017-01-03  Ian Lance Taylor  <iant@google.com>
13003         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
13005 2017-01-03  Martin Sebor  <msebor@redhat.com>
13007         PR tree-optimization/78696
13008         * gimple-ssa-sprintf.c (format_floating): Correct handling of
13009         precision.  Use MPFR for %f for greater fidelity.  Correct handling
13010         of %g.
13011         (pass_sprintf_length::compute_format_length): Set width and precision
13012         specified by asrerisk to void_node for vararg functions.
13013         (try_substitute_return_value): Adjust dump output.
13015 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
13017         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
13019 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13021         * doc/invoke.texi (SPARC options): Document -mlra as the default.
13022         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
13023         -mlra/-mno-lra was passed to the compiler.
13025 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
13027         PR rtl-optimization/65618
13028         * emit-rtl.c (try_split): Move initialization of "before" and
13029         "after" to just before the call to emit_insn_after_setloc.
13031 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
13033         * doc/md.texi (Standard Names): Remove reference to Java frontend.
13035 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
13037         * dwarf2out.c (gen_enumeration_type_die): When
13038         -gno-strict-dwarf, add a DW_AT_encoding attribute.
13040 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
13042         PR tree-optimization/78965
13043         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
13044         Change first argument from const call_info & to call_info &.  For %n
13045         set info.nowrite to false.
13047         PR middle-end/78901
13048         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
13049         possibly throwing calls.
13051         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
13052         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
13053         and fns handling, rather than in a separate case SSA_NAME.
13055 2017-01-02  Jeff Law  <law@redhat.com>
13057         * config/darwin-driver.c (darwin_driver_init): Const-correctness
13058         fixes for first_period and second_period variables.
13060 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
13062         PR target/78967
13063         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
13064         (*insvqi_1): New insn pattern.
13065         (*insvqi_1_mem_rex64): Ditto.
13066         (*insvqi_2): Ditto.
13067         (*insvqi_3): Rename from *insvqi.
13069         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
13071 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13073         * doc/cfg.texi (Edges): Remove reference to Java.
13074         (Maintaining the CFG): Ditto.
13076 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13078         PR middle-end/77674
13079         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
13080         transparent aliases.
13082 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13084         PR middle-end/77484
13085         * predict.def (PRED_CALL): Update hitrate.
13086         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
13087         * predict.c (tree_estimate_probability_bb): Split CALL predictor
13088         into direct/indirect/polymorphic variants.
13090 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
13092         Update copyright years.
13094         * gcc.c (process_command): Update copyright notice dates.
13095         * gcov-dump.c (print_version): Ditto.
13096         * gcov.c (print_version): Ditto.
13097         * gcov-tool.c (print_version): Ditto.
13098         * gengtype.c (create_file): Ditto.
13099         * doc/cpp.texi: Bump @copying's copyright year.
13100         * doc/cppinternals.texi: Ditto.
13101         * doc/gcc.texi: Ditto.
13102         * doc/gccint.texi: Ditto.
13103         * doc/gcov.texi: Ditto.
13104         * doc/install.texi: Ditto.
13105         * doc/invoke.texi: Ditto.
13107 Copyright (C) 2017 Free Software Foundation, Inc.
13109 Copying and distribution of this file, with or without modification,
13110 are permitted in any medium without royalty provided the copyright
13111 notice and this notice are preserved.