shrink-wrap.c (handle_simple_exit): Update profile.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2
3         * shrink-wrap.c (handle_simple_exit): Update profile.
4         (try_shrink_wrapping): Upate profile.
5
6 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
7
8         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
9         (tree_guess_outgoing_edge_probabilities): New.
10         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
11         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
12
13 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
14
15         * ipa-split.c (split_function): Initialize return bb profile.
16
17 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
18
19         * profile.c (compute_branch_probabilities): Also initialize
20         EXIT_BLOCK profile.
21
22 2017-06-06  Richard Biener  <rguenther@suse.de>
23
24         PR tree-optimization/80928
25         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
26         (vect_analyze_loop_operations): Properly guard analysis for
27         pure SLP case.
28         (vect_transform_loop): Likewise.
29         (vect_analyze_loop_2): Also reset SLP type on PHIs.
30         (vect_model_induction_cost): Do not cost for pure SLP.
31         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
32         of induction in inner loop vectorization.
33         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
34         (vect_get_and_check_slp_defs): Handle vect_induction_def.
35         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
36         recursion.
37         (vect_analyze_slp_cost_1): Cost induction.
38         (vect_detect_hybrid_slp_stmts): Handle PHIs.
39         (vect_get_slp_vect_defs): Likewise.
40         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
41         (vect_transform_stmt): Handle SLP reductions.
42         * tree-vectorizer.h (vectorizable_induction): Adjust.
43
44 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
45
46         * config/rs6000/rs6000.c (make_resolver_func): Update
47         init_lowered_empty_function call.
48
49 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
50
51         * doc/invoke.texi: Document the -fprofile-abs-path option.
52         * common.opt (fprofile-abs-path): New option.
53         * gcov-io.h (gcov_write_filename): Declare.
54         * gcov-io.c (gcov_write_filename): New function.
55         * coverage.c (coverage_begin_function): Use gcov_write_filename.
56         * profile.c (output_location): Likewise.
57
58 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
59
60         * shring-wrap.c: Revert accidental commit.
61
62 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
63
64         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
65
66 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
67
68         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
69         new edge.
70         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
71         profile in callgraph edge.
72         * profile-count.h (apply_probability): If THIS is 0, then result is 0
73         (apply_scale): Likewise.
74         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
75         Also scale profile when inlining function with zero profile.
76         (initialize_cfun): Update exit block profile even when it is zero.
77         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
78         when profile is read.
79
80 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
81
82         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
83         (CLONE_*): New constants to define the processors we can generate
84         code for with the target_clone attribute.
85         (rs6000_clone_map): New array to identify which clone processors
86         the current program is running on.
87         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
88         target_clone attribute.
89         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
90         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
91         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
92         (cpu_expand_builtin): Add support for target_clone attribute.
93         (rs6000_valid_attribute_p): Allow "default" attribute.
94         (get_decl_name): New debug function to simplify printing the
95         current function name in debugging statements.
96         (rs6000_clone_priority): New functions to support the target_clone
97         attribute, and be able to generate code to switch between ISA 2.05
98         through ISA 3.0 (power6 through power9).
99         (rs6000_compare_version_priority): Likewise.
100         (rs6000_get_function_versions_dispatcher): Likewise.
101         (make_resolver_func): Likewise.
102         (add_condition_to_bb): Likewise.
103         (dispatch_function_versions): Likewise.
104         (rs6000_generate_version_dispatcher_body): Likewise.
105         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
106         (fusion_gpr_load_p): Fix a spacing issue.
107         * doc/extend.texi (Common Function Attributes): Document that the
108         PowerPC supports the target_clone attribute.
109
110 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
111
112         * config/arm/arm.h: explain F symbol found in description of ARM
113         register allocation in its legend.
114
115 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
116
117         * config/mips/frame-header-opt.c: Include profile-count.h.
118         * config/riscv/riscv.c: Include profile-count.h
119
120 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
121
122         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
123         update profile.
124         (sm_set_flag_if_changed): Add bbs field.
125         (execute_sm_if_changed_flag_set): Pass BBS.
126         (execute_sm): Update.
127
128 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
129
130         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
131         New pattern.
132
133 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
134
135         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
136         (peephole2): New peephole2 to emit the above.
137         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
138
139 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
140
141         * config/aarch64/aarch64.c (define_peephole2 above
142         *sub_<shift>_<mode>): New peephole.
143
144 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
145
146         * config/i386/i386.c (make_resolver_func): Update.
147         * Makefile.in: Add profile-count.h and profile-count.o
148         * auto-profile.c (afdo_indirect_call): Update to new API.
149         (afdo_set_bb_count): Update.
150         (afdo_propagate_edge): Update.
151         (afdo_propagate_circuit): Update.
152         (afdo_calculate_branch_prob): Update.
153         (afdo_annotate_cfg): Update.
154         * basic-block.h: Include profile-count.h
155         (struct edge_def): Turn count to profile_count.
156         (struct basic_block_def): Likewie.
157         (REG_BR_PROB_BASE): Move to profile-count.h
158         (RDIV): Move to profile-count.h
159         * bb-reorder.c (max_entry_count): Turn to profile_count.
160         (find_traces): Update.
161         (rotate_loop):Update.
162         (connect_traces):Update.
163         (sanitize_hot_paths):Update.
164         * bt-load.c (migrate_btr_defs): Update.
165         * cfg.c (RDIV): Remove.
166         (init_flow): Use alloc_block.
167         (alloc_block): Uninitialize count.
168         (unchecked_make_edge): Uninitialize count.
169         (check_bb_profile): Update.
170         (dump_edge_info): Update.
171         (dump_bb_info): Update.
172         (update_bb_profile_for_threading): Update.
173         (scale_bbs_frequencies_int): Update.
174         (scale_bbs_frequencies_gcov_type): Update.
175         (scale_bbs_frequencies_profile_count): New.
176         * cfg.h (update_bb_profile_for_threading): Update.
177         (scale_bbs_frequencies_profile_count): Declare.
178         * cfgbuild.c (compute_outgoing_frequencies): Update.
179         (find_many_sub_basic_blocks): Update.
180         * cfgcleanup.c (try_forward_edges): Update.
181         (try_crossjump_to_edge): Update.
182         * cfgexpand.c (expand_gimple_tailcall): Update.
183         (construct_exit_block): Update.
184         * cfghooks.c (verify_flow_info): Update.
185         (dump_bb_for_graph): Update.
186         (split_edge): Update.
187         (make_forwarder_block): Update.
188         (duplicate_block): Update.
189         (account_profile_record): Update.
190         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
191         (get_estimated_loop_iterations): Update.
192         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
193         (single_likely_exit): Update.
194         * cfgloopmanip.c (scale_loop_profile): Update.
195         (loopify): Update.
196         (set_zero_probability): Update.
197         (lv_adjust_loop_entry_edge): Update.
198         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
199         (purge_dead_edges): Update.
200         (rtl_account_profile_record): Update.
201         * cgraph.c (cgraph_node::create): Uninitialize count.
202         (symbol_table::create_edge): Uninitialize count.
203         (cgraph_update_edges_for_call_stmt_node): Update.
204         (cgraph_edge::dump_edge_flags): Update.
205         (cgraph_node::dump): Update.
206         (cgraph_edge::maybe_hot_p): Update.
207         * cgraph.h: Include profile-count.h
208         (create_clone), create_edge, create_indirect_edge): Update.
209         (cgraph_node): Turn count to profile_count.
210         (cgraph_edge0: Likewise.
211         (make_speculative, clone): Update.
212         (create_edge): Update.
213         (init_lowered_empty_function): Update.
214         * cgraphclones.c (cgraph_edge::clone): Update.
215         (duplicate_thunk_for_node): Update.
216         (cgraph_node::create_clone): Update.
217         * cgraphunit.c (cgraph_node::analyze): Update.
218         (cgraph_node::expand_thunk): Update.
219         * final.c (dump_basic_block_info): Update.
220         * gimple-streamer-in.c (input_bb): Update.
221         * gimple-streamer-out.c (output_bb): Update.
222         * graphite.c (print_global_statistics): Update.
223         (print_graphite_scop_statistics): Update.
224         * hsa-brig.c: Include basic-block.h.
225         * hsa-dump.c: Include basic-block.h.
226         * hsa-gen.c (T sum_slice): Update.
227         (convert_switch_statements):Update.
228         * hsa-regalloc.c: Include basic-block.h.
229         * ipa-chkp.c (chkp_produce_thunks): Update.
230         * ipa-cp.c (struct caller_statistics): Update.
231         (init_caller_stats): Update.
232         (gather_caller_stats): Update.
233         (ipcp_cloning_candidate_p): Update.
234         (good_cloning_opportunity_p): Update.
235         (get_info_about_necessary_edges): Update.
236         (dump_profile_updates): Update.
237         (update_profiling_info): Update.
238         (update_specialized_profile): Update.
239         (perhaps_add_new_callers): Update.
240         (decide_about_value): Update.
241         (ipa_cp_c_finalize): Update.
242         * ipa-devirt.c (struct odr_type_warn_count): Update.
243         (struct decl_warn_count): Update.
244         (struct final_warning_record): Update.
245         (possible_polymorphic_call_targets): Update.
246         (ipa_devirt): Update.
247         * ipa-fnsummary.c (redirect_to_unreachable): Update.
248         * ipa-icf.c (sem_function::merge): Update.
249         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
250         * ipa-inline.c (compute_uninlined_call_time): Update.
251         (compute_inlined_call_time): Update.
252         (want_inline_small_function_p): Update.
253         (want_inline_self_recursive_call_p): Update.
254         (edge_badness): Update.
255         (lookup_recursive_calls): Update.
256         (recursive_inlining): Update.
257         (inline_small_functions): Update.
258         (dump_overall_stats): Update.
259         (dump_inline_stats): Update.
260         * ipa-profile.c (ipa_profile_generate_summary): Update.
261         (ipa_propagate_frequency): Update.
262         (ipa_profile): Update.
263         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
264         * ipa-utils.c (ipa_merge_profiles): Update.
265         * loop-doloop.c (doloop_modify): Update.
266         * loop-unroll.c (report_unroll): Update.
267         (unroll_loop_runtime_iterations): Update.
268         * lto-cgraph.c (lto_output_edge): Update.
269         (lto_output_node): Update.
270         (input_node): Update.
271         (input_edge): Update.
272         (merge_profile_summaries): Update.
273         * lto-streamer-in.c (input_cfg): Update.
274         * lto-streamer-out.c (output_cfg): Update.
275         * mcf.c (create_fixup_graph): Update.
276         (adjust_cfg_counts): Update.
277         (sum_edge_counts): Update.
278         * modulo-sched.c (sms_schedule): Update.
279         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
280         * predict.c (maybe_hot_count_p): Update.
281         (probably_never_executed): Update.
282         (dump_prediction): Update.
283         (combine_predictions_for_bb): Update.
284         (propagate_freq): Update.
285         (handle_missing_profiles): Update.
286         (counts_to_freqs): Update.
287         (rebuild_frequencies): Update.
288         (force_edge_cold): Update.
289         * predict.h: Include profile-count.h
290         (maybe_hot_count_p, counts_to_freqs): UPdate.
291         * print-rtl-function.c: Do not include cfg.h
292         * print-rtl.c: Include basic-block.h
293         * profile-count.c: New file.
294         * profile-count.h: New file.
295         * profile.c (is_edge_inconsistent): Update.
296         (correct_negative_edge_counts): Update.
297         (is_inconsistent): Update.
298         (set_bb_counts): Update.
299         (read_profile_edge_counts): Update.
300         (compute_frequency_overlap): Update.
301         (compute_branch_probabilities): Update; Initialize and deinitialize
302         gcov_count tables.
303         (branch_prob): Update.
304         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
305         (edge_gcov_count): New.
306         (bb_gcov_count): New.
307         * shrink-wrap.c (try_shrink_wrapping): Update.
308         * tracer.c (better_p): Update.
309         * trans-mem.c (expand_transaction): Update.
310         (ipa_tm_insert_irr_call): Update.
311         (ipa_tm_insert_gettmclone_call): Update.
312         * tree-call-cdce.c: Update.
313         * tree-cfg.c (gimple_duplicate_sese_region): Update.
314         (gimple_duplicate_sese_tail): Update.
315         (gimple_account_profile_record): Update.
316         (execute_fixup_cfg): Update.
317         * tree-inline.c (copy_bb): Update.
318         (copy_edges_for_bb): Update.
319         (initialize_cfun): Update.
320         (freqs_to_counts): Update.
321         (copy_cfg_body): Update.
322         (expand_call_inline): Update.
323         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
324         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
325         (try_unroll_loop_completely): Update.
326         (try_peel_loop): Update.
327         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
328         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
329         * tree-ssa-loop-split.c (connect_loops): Update.
330         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
331         * tree-ssa-reassoc.c (branch_fixup): Update.
332         * tree-ssa-tail-merge.c (replace_block_by): Update.
333         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
334         (compute_path_counts): Update.
335         (update_profile): Update.
336         (recompute_probabilities): Update.
337         (update_joiner_offpath_counts): Update.
338         (estimated_freqs_path): Update.
339         (freqs_to_counts_path): Update.
340         (clear_counts_path): Update.
341         (ssa_fix_duplicate_block_edges): Update.
342         (duplicate_thread_path): Update.
343         * tree-switch-conversion.c (case_bit_test_cmp): Update.
344         (struct switch_conv_info): Update.
345         * tree-tailcall.c (decrease_profile): Update.
346         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
347         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
348         * value-prof.c (check_counter): Update.
349         (gimple_divmod_fixed_value): Update.
350         (gimple_mod_pow2): Update.
351         (gimple_mod_subtract): Update.
352         (gimple_ic_transform): Update.
353         (gimple_stringop_fixed_value): Update.
354         * value-prof.h (gimple_ic): Update.
355
356 2017-06-02  Carl Love  <cel@us.ibm.com>
357
358         * config/rs6000/rs6000-c: Add support for built-in functions
359         vector double vec_doublee (vector signed int);
360         vector double vec_doublee (vector unsigned int);
361         vector double vec_doublee (vector float);
362         vector double vec_doubleh (vector signed int);
363         vector double vec_doubleh (vector unsigned int);
364         vector double vec_doubleh (vector float);
365         vector double vec_doublel (vector signed int);
366         vector double vec_doublel (vector unsigned int);
367         vector double vec_doublel (vector float);
368         vector double vec_doubleo (vector signed int);
369         vector double vec_doubleo (vector unsigned int);
370         vector double vec_doubleo (vector float);.
371         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
372         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
373         UNS_DOUBLEL.
374         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
375         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
376         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
377         VS_sxwsp.
378         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
379         vec_doublel, vec_doubleh.
380         * doc/extend.texi: Update the built-in documentation file for the
381         new built-in functions.
382
383 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
384
385         PR jit/80954
386         * ipa-inline-analysis.c (free_growth_caches): Set
387         edge_removal_hook_holder to NULL after removing it.
388
389 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
390
391         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
392         comparision with zero.
393
394 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
395         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
396         for early expansion of vec_min and vec_max builtins.
397         (builtin_function_type): Add min/max unsigned variants to those
398         identified as having unsigned arguments.
399
400 2017-06-02  Olivier Hainque  <hainque@adacore.com>
401
402         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
403
404 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
405
406         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
407         Use VALL_F16 iterator rather than VALL.
408
409 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
410
411         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
412         Emit CBNZ inside loop when doing a strong exchange and comparing
413         against zero.  Generate the CC flags after the loop.
414
415 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
416
417         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
418         (dl_section_ref): New.
419         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
420         On AIX, append an expression to subtract the size of the
421         section length to dl_section_ref.
422
423 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
424
425         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
426         for early expansion of vector absolute builtins.
427
428 2017-06-02  Richard Biener  <rguenther@suse.de>
429
430         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
431         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
432
433 2017-06-02  Richard Biener  <rguenther@suse.de>
434
435         PR tree-optimization/80948
436         * tree-tailcall.c (find_tail_calls): Track stmts to move in
437         stmt order as well.
438
439 2017-06-02  Richard Biener  <rguenther@suse.de>
440
441         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
442         PHIs are ok.
443         * tree-vect-stmts.c (process_use): Do not mark backedge defs
444         for inductions as relevant.
445
446 2017-06-02  Richard Biener  <rguenther@suse.de>
447
448         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
449         (vectorizable_induction): ... this.  Remove dead code.
450
451 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
452
453         * builtins. (expand_builtin_alloca): Remove second parameter and
454         infer its value from the first parameter instead.
455         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
456
457 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
458
459         PR rtl-optimization/80903
460         * loop-doloop.c (add_test): Unshare sequence.
461
462 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
463
464         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
465
466 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
467
468         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
469         static.
470         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
471         xlogue_layout::get_instance, logue_layout::xlogue_layout,
472         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
473         (xlogue_layout::get_stub_rtx): Make static.
474         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
475         (xlogue_layout::compute_stub_managed_regs): Rename to...
476         (xlogue_layout::count_stub_managed_regs): ...this.
477         (xlogue_layout::is_stub_managed_reg): New function.
478         (xlogue_layout::m_stub_names): Rename to...
479         (xlogue_layout::s_stub_names): ...this, make static.
480         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
481         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
482         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
483         xlogue_layout::s_stub_names): Instantiate statics.
484         (stub_managed_regs): Remove.
485         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
486         (disable_call_ms2sysv_xlogues): Rename to...
487         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
488         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
489         warning logic.
490         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
491         change after reload_completed.
492         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
493         directly.
494         (ix86_expand_prologue): Likewise.
495         (ix86_expand_epilogue): Likewise.
496         (ix86_expand_split_stack_prologue): Likewise.
497         (ix86_compute_frame_layout): Remove frame parameter ...
498         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
499         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
500         only if necessary.
501         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
502         (ix86_frame): Move from here ...
503         * config/i386/i386.h (ix86_frame): ... to here.
504         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
505         complete ix86_frame data structure instead.  Remove some_ld_name.
506
507 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
508
509         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
510         symbols that hold a DECL_VALUE_EXPR.
511
512 2017-06-01  Martin Jambor  <mjambor@suse.cz>
513
514         PR tree-optimization/80898
515         * tree-sra.c (process_subtree_disqualification): Removed.
516         (disqualify_candidate): Do not acll
517         process_subtree_disqualification.
518         (subtree_mark_written_and_enqueue): New function.
519         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
520         RHS has been disqualified and re-queue LHS if necessary.  Apart
521         from that, ignore disqualified RHS.
522
523 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
524
525         * config/s390/s390.c (s390_emit_epilogue): Disable early return
526         address fetch for z10 or later.
527
528 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
529
530         * config/arc/arc.md (tst_movb): Add guard when splitting.
531
532 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
533
534         * config/arc/arc.c (arc_can_eliminate): Test against
535         arc_frame_pointer_needed.
536
537 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
538
539         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
540         to prevent store reordering.
541         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
542         (type): Add block type.
543         (stack_tie): Define special instruction to be used in
544         expand_prologue.
545
546 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
547
548         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
549         constraint. It is not valid for the pattern.
550         (noncommutative_binary_comparison): Likewise.
551
552 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
553
554         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
555         scaled addresses.
556
557 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
558
559         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
560         be used by the reg-alloc.
561
562 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
563
564         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
565         reg-alloc when having mul64 or mul32x16 instructions.
566         (mulsidi3): Likewise.
567         (umulsidi3): Likewise.
568         (mulsi32x16): New pattern.
569         (mulsi64): Likewise.
570         (mulsidi64): Likewise.
571         (umulsidi64): Likewise.
572         (MUL32x16_REG): Define.
573         (mul64_600): Use MUL32x16_REG.
574         (mac64_600): Likewise.
575         (umul64_600): Likewise.
576         (umac64_600): Likewise.
577
578 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
579
580         * config/arc/arc.md (mulsi3_700): Make it commutative.
581
582 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
583
584         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
585         type for movstouw.
586         (*sign_extendsidi2_insn): Likewise for movstosw.
587
588 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
589
590         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
591         the type of the input discriminant value.  Convert the
592         discriminant value of signedness vary.
593
594 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
595
596         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
597         Add to -Wall section.
598
599 2017-06-01  Richard Biener  <rguenther@suse.de>
600
601         PR middle-end/66313
602         * fold-const.c (fold_plusminus_mult_expr): If the factored
603         factor may be zero use a wrapping type for the inner operation.
604         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
605         and handle moved defs.
606         (process_assignment): Properly guard the unary op case.  Return a
607         tri-state indicating that moving the stmt before the call may allow
608         to continue.  Pass through to_move.
609         (find_tail_calls): Handle moving unrelated defs before
610         the call.
611
612 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
613
614         PR target/80618
615         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
616         splitter result in the canonical way.
617
618 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
619
620         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
621         also for 32bit target.  Update insn attributes.
622         (zero-extendsidi2 splitter): Allow all registers for operand 1.
623
624 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
625
626         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
627         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
628         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
629         (_mm_maskz_min_ss): New intrinsics.
630
631 2017-05-31  Martin Liska  <mliska@suse.cz>
632
633         * tree-vect-loop.c (vect_create_epilog_for_reduction):
634         Change comment style to one we normally use.
635         (vectorizable_reduction): Likewise.
636         (vectorizable_induction): Likewise.
637         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
638         (vectorizable_call): Likewise.
639         (vectorizable_simd_clone_call): Likewise.
640         (vectorizable_conversion): Likewise.
641         (vectorizable_assignment): Likewise.
642         (vectorizable_shift): Likewise.
643         (vectorizable_operation): Likewise.
644         (vectorizable_store): Likewise.
645         (vectorizable_load): Likewise.
646         * tree-vectorizer.h: Likewise.
647
648 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
649
650         * passes.c (emergency_dump_function): New.
651         * tree-pass.h (emergency_dump_function): Declare.
652         * plugin.c (plugins_internal_error_function): Remove.
653         * plugin.h (plugins_internal_error_function): Remove declaration.
654         * toplev.c (internal_error_function): New static function.  Use it...
655         (general_init): ...here.
656
657 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
658
659         * config/arc/arc.c (arc_print_operand): Handle constant operands.
660         (arc_rtx_costs): Add costs for new patterns.
661         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
662         * config/arc/predicates.md: Add _1_2_3_operand predicate.
663
664 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
665
666         * tree-ssa-strlen.c (get_next_strinfo): New function.
667         (get_stridx_plus_constant): Use it.
668         (zero_length_string): Likewise.
669         (adjust_related_strinfos): Likewise.
670         (adjust_last_stmt): Likewise.
671
672 2017-05-31  Richard Biener  <rguenther@suse.de>
673
674         PR target/80880
675         * config/i386/i386.c (ix86_expand_builtin): Remove assert
676         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
677
678 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
679
680         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
681         loop_vinfo argument and use of dependence distance vectors.
682         Check instead whether the two references differ only in their
683         initial value and assume that they have the same alignment if the
684         difference is a multiple of the vector alignment.
685         (vect_analyze_data_refs_alignment): Update call accordingly.
686
687 2017-05-31  Martin Liska  <mliska@suse.cz>
688
689         PR target/79155
690         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
691
692 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
693
694         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
695         (create_intersect_range_checks): Move from ...
696         * tree-data-ref.c (create_intersect_range_checks_index)
697         (create_intersect_range_checks): ... to here.
698         (create_runtime_alias_checks): New function factored from ...
699         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
700         here.  Call above function.
701         * tree-data-ref.h (create_runtime_alias_checks): New function.
702
703 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
704
705         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
706         segment length for dr_b and compute it in wide_int.
707
708 2017-05-31  Richard Biener  <rguenther@suse.de>
709
710         PR tree-optimization/80906
711         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
712         and pass through iv_map.
713         (copy_bb_and_scalar_dependences): Adjust.
714         (translate_pending_phi_nodes): Likewise.
715         (copy_loop_close_phi_args): Handle code-generating IVs instead
716         of ICEing.
717
718 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
719
720         * diagnostic-color.c (color_dict): Add "type-diff".
721         (parse_gcc_colors): Update comment.
722         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
723         -fdiagnostics-show-template-tree and -fno-elide-type.
724         (GCC_COLORS): Add type-diff to example.
725         (type-diff=): New.
726         (-fdiagnostics-show-template-tree): New.
727         (-fno-elide-type): New.
728         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
729         the pp_format_decoder callback.  Call any m_format_postprocessor's
730         "handle" method.
731         (pretty_printer::pretty_printer): Initialize
732         m_format_postprocessor.
733         (pretty_printer::~pretty_printer): Delete any
734         m_format_postprocessor.
735         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
736         (class format_postprocessor): New class.
737         (struct pretty_printer::format_decoder): Document the new parameters.
738         (struct pretty_printer::m_format_postprocessor): New field.
739         * tree-diagnostic.c (default_tree_printer): Update for new
740         bool and const char ** params.
741         * tree-diagnostic.h (default_tree_printer): Likewise.
742
743 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
744
745         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
746         (lwa_operand): Delete rs6000_gen_cell_microcode test.
747         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
748         rs6000_gen_cell_microcode code.
749         (rs6000_final_prescan_insn): Delete.
750         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
751         "warn-cell-microcode" entries.
752         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
753         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
754         throughout.  Change cc_reg_not_micro_cr0_operand to
755         cc_reg_not_cr0_operand throughout.
756         (*extendhi<mode>2_noload): Delete.
757         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
758         (mwarn-cell-microcode): Delete.
759         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
760         -mgen-cell-microcode and -mwarn-cell-microcode.
761
762 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
763
764         PR target/80833
765         * config/i386/constraints.md (Yd): New constraint.
766         (Ye): Ditto.
767         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
768         and (?Yd, r) alternatives.  Update insn attributes.
769         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
770         and (?*Yd, r) alternatives.  Update insn attributes.
771         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
772
773 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
774
775         * gimplify.c (gimplify_modify_expr): Don't create a
776         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
777         function.
778
779 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
780
781         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
782
783 2017-05-30  Richard Biener  <rguenther@suse.de>
784
785         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
786         and reduc_def fields.
787         (STMT_VINFO_REDUC_TYPE): New define.
788         (STMT_VINFO_REDUC_DEF): Likewise.
789         (vect_force_simple_reduction): Adjust prototype.
790         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
791         (vect_is_simple_reduction): Remove check_reduction argument.
792         (vect_force_simple_reduction): Adjust and set
793         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
794         (vectorizable_reduction): Do not re-do reduction analysis
795         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
796         * tree-parloops.c (gather_scalar_reductions): Adjust.
797
798 2017-05-30  Richard Biener  <rguenther@suse.de>
799
800         PR middle-end/80901
801         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
802         split_edge code.
803
804 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
805
806         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
807         Introduce unknown_misalignment parameter and remove vf.
808         (vect_peeling_hash_get_lowest_cost):
809         Pass unknown_misalignment parameter.
810         (vect_enhance_data_refs_alignment):
811         Fix unsupportable data ref treatment.
812
813 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
814
815         * tree-vect-data-refs.c (vect_get_data_access_cost):
816         Workaround for SLP handling.
817         (vect_enhance_data_refs_alignment):
818         Compute costs for doing no peeling at all, compare to the best
819         peeling costs so far and avoid peeling if cheaper.
820
821 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
822
823         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
824         Return peeling info and set costs to zero for unlimited cost
825         model.
826         (vect_enhance_data_refs_alignment): Also inspect all datarefs
827         with unknown misalignment. Compute and costs for unknown
828         misalignment, compare them to the costs for known misalignment
829         and choose the cheapest for peeling.
830
831 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
832
833         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
834         (vect_get_peeling_costs_all_drs): Create function.
835         (vect_peeling_hash_get_lowest_cost):
836         Use vect_get_peeling_costs_all_drs.
837         (vect_peeling_supportable): Create function.
838         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
839
840 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
841
842         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
843         DR_HAS_NEGATIVE_STEP.
844         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
845         (vect_enhance_data_refs_alignment): Use.
846         (vect_duplicate_ssa_name_ptr_info): Use.
847         * tree-vectorizer.h (dr_misalignment): Use.
848         (known_alignment_for_access_p): Use.
849
850 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
851
852         PR target/78838
853         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
854         .lowtext.
855         (has_section_name): New function.
856
857 2017-05-30  Martin Liska  <mliska@suse.cz>
858
859         PR other/80909
860         * auto-profile.c (get_function_decl_from_block): Fix
861         parenthesis.
862
863 2017-05-30  Richard Biener  <rguenther@suse.de>
864
865         PR middle-end/80876
866         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
867
868 2017-05-30  Martin Liska  <mliska@suse.cz>
869
870         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
871         * dumpfile.h (struct dump_file_info): Remove ctors.
872
873 2017-05-30  Martin Liska  <mliska@suse.cz>
874
875         * predict.def: Fix GNU coding style.
876
877 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
878
879         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
880         Mark 'to' argument with ATTRIBUTE_UNUSED.
881
882 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
883
884         * config/xtensa/xtensa.c (xtensa_emit_call): Use
885         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
886         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
887         format string.
888
889 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
890
891         * doc/install.texi (Options specification): Restore entry of
892         --enable-sjlj-exceptions.
893
894 2017-05-27  Michael Eager  <eager@eagercon.com>
895
896         Revert:
897         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
898
899         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
900
901         * config/microblaze/microblaze.h
902         (FIXED_REGISTERS): Update in macro.
903         (CALL_USED_REGISTERS): Update in macro.
904
905 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
906
907         * doc/install.texi: Add links to macOS binary distributions.
908
909 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
910
911         PR bootstrap/80887
912         Revert:
913         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
914
915         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
916
917 2017-05-26  Martin Liska  <mliska@suse.cz>
918
919         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
920
921 2017-05-26  Martin Liska  <mliska@suse.cz>
922
923         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
924         always leading ';; '.
925         (dump_bb_info): Likewise.
926         (brief_dump_cfg): Likewise.
927         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
928         * dumpfile.c: Remove usage of TDF_VERBOSE.
929         * dumpfile.h (enum dump_kind): Likewise.
930         (dump_gimple_bb_header): Do not use TDF_COMMENT.
931         * print-tree.c (debug_verbose): Remove.
932         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
933         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
934         * tree-diagnostic.c (default_tree_printer): Replace
935         TDF_DIAGNOSTIC with TDF_SLIM.
936
937 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
938
939         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
940         in parameter loop, rather than loop_vinfo.
941         (create_intersect_range_checks): Ditto.
942         (vect_create_cond_for_alias_checks): Update call to above functions.
943
944 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
945
946         PR tree-optimization/80815
947         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
948         for merging runtime alias checks.  Handle negative DR_STEPs.
949
950 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
951
952         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
953         Move from ...
954         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
955         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
956         out code pruning runtime alias checks.
957         * tree-data-ref.c (prune_runtime_alias_test_list): New function
958         factored out from above.
959         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
960         Move from ...
961         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
962         ... to here.
963         (prune_runtime_alias_test_list): New decalaration.
964
965 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
966
967         * tree-vect-data-refs.c (compare_tree): Rename and move ...
968         * tree-data-ref.c (data_ref_compare_tree): ... to here.
969         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
970         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
971         (operator==, comp_dr_with_seg_len_pair): Ditto.
972         (vect_prune_runtime_alias_test_list): Ditto.
973
974 2017-05-26  Martin Liska  <mliska@suse.cz>
975
976         PR ipa/80663
977         * params.def: Bound partial-inlining-entry-probability param.
978
979 2017-05-26  Marek Polacek  <polacek@redhat.com>
980
981         PR sanitizer/80875
982         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
983         can be negated.
984
985 2017-05-26  Richard Biener  <rguenther@suse.de>
986
987         PR tree-optimization/80842
988         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
989         value.
990
991 2017-05-26  Richard Biener  <rguenther@suse.de>
992
993         PR tree-optimization/80844
994         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
995
996 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
997
998         * doc/md.texi (Machine Constraints): Update x86 family
999         machine constraints section to match 'config/i386/constraints.md'.
1000
1001 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
1002
1003         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
1004
1005 2017-05-25  Nathan Sidwell  <nathan@acm.org>
1006
1007         * doc/invoke.texi (--enable-languages): Update documentation.
1008
1009 2017-05-25  Martin Liska  <mliska@suse.cz>
1010
1011         * dumpfile.c: Add TDF_FOLDING.
1012         * dumpfile.h (enum dump_kind): Likewise.
1013         * genmatch.c (dt_simplify::gen_1): Use it.
1014
1015 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1016
1017         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
1018
1019 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1020
1021         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1022         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
1023
1024 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
1025
1026         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
1027         * match.pd (X == C): Rewrite it here.
1028         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
1029         with_certain_nonzero_bits2): New predicates.
1030         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
1031
1032 2017-05-24  Nathan Sidwell  <nathan@acm.org>
1033
1034         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
1035         avoid warning.
1036
1037         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
1038         warning.
1039
1040 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
1041
1042         * config/powerpcspe: New port.  Files are copied from the rs6000
1043         port, with "rs6000" in filenames replaced by "powerpcspe".
1044
1045 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
1046
1047         PR rtl-optimization/80754
1048         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
1049
1050 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
1051
1052         * config/sparc/sparc.md (length): Return the correct value for -mflat
1053         sibcalls to match output_sibcall.
1054
1055 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
1056
1057         PR bootstrap/80860
1058         PR bootstrap/80843
1059         * config/rs6000/rs6000.c (struct machine_function): Add new field
1060         n_components.
1061         (rs6000_get_separate_components): Init that field, use it.
1062         (rs6000_components_for_bb): Use the field.
1063
1064 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1065
1066         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
1067
1068 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
1069
1070         PR middle-end/80823
1071         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
1072
1073 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1074
1075         PR target/80725
1076         * config/s390/s390.c (s390_check_qrst_address): Check incoming
1077         address against address_operand predicate.
1078         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
1079
1080 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1081
1082         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
1083         parameters passed indirectly.
1084
1085 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
1086
1087         * config/i386/i386.md (*movdi_internal): Remove SSE4
1088         alternative 18 (?r, *v).  Update insn attributes.
1089         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
1090         Update insn attributes.
1091         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
1092         Update insn attributes.
1093         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
1094         alternative 1 (r, v). Remove isa attribute.
1095         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
1096         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
1097         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1098
1099 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1100
1101         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
1102         dg-line directive.
1103
1104 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1105
1106         * cgraphunit.c (symbol_table::process_new_functions): Update.
1107         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
1108         (inline_generate_summary): Rename to ...
1109         (ipa_fn_summary_generate): ... this one.
1110         (inline_read_summary): Rename to ...
1111         (ipa_fn_summary_read): ... this one.
1112         (inline_write_summary): Rename to ...
1113         (ipa_fn_summary_write): ... this one.
1114         (inline_free_summary): Rename to ...
1115         (ipa_free_fn_summary): ... this one.
1116         (pass_data_local_fn_summary, pass_local_fn_summary,
1117         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
1118         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
1119         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
1120         make_pass_ipa_fn_summary): New.
1121         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
1122         inline_write_summary, inline_free_summary): Remove.
1123         (ipa_free_fn_summary) : New.
1124         * ipa-inline.c (ipa_inline): Update.
1125         (pass_ipa_inline): Do not generate summaries.
1126         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
1127         Remove.
1128         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
1129         and add pass_ipa_fn_summary.
1130         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
1131         New.
1132         (make_pass_inline_parameters): Remove.
1133
1134 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
1135
1136         * omp-low.c (struct omp_context): Remove "default_kind" member.
1137         Adjust all users.
1138
1139         * omp-offload.c (execute_oacc_device_lower): Remove the
1140         parallelism dimensions function attributes for unparallelized
1141         OpenACC kernels constructs.
1142
1143 2017-05-23  Martin Liska  <mliska@suse.cz>
1144
1145         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
1146         functions.
1147         (cgraph_edge::make_speculative): Likewise.
1148         (cgraph_edge::resolve_speculation): Likewise.
1149         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1150         (cgraph_node::dump): Likewise.
1151         * cgraph.h: Likewise.
1152         * cgraphunit.c (analyze_functions): Likewise.
1153         (symbol_table::compile): Likewise.
1154         * ipa-cp.c (print_all_lattices): Likewise.
1155         (determine_versionability): Likewise.
1156         (initialize_node_lattices): Likewise.
1157         (ipcp_verify_propagated_values): Likewise.
1158         (estimate_local_effects): Likewise.
1159         (update_profiling_info): Likewise.
1160         (create_specialized_node): Likewise.
1161         (perhaps_add_new_callers): Likewise.
1162         (decide_about_value): Likewise.
1163         (decide_whether_version_node): Likewise.
1164         (identify_dead_nodes): Likewise.
1165         (ipcp_store_bits_results): Likewise.
1166         * ipa-devirt.c (dump_targets): Likewise.
1167         (ipa_devirt): Likewise.
1168         * ipa-icf.c (sem_item::dump): Likewise.
1169         (sem_function::equals): Likewise.
1170         (sem_variable::equals): Likewise.
1171         (sem_item_optimizer::read_section): Likewise.
1172         (sem_item_optimizer::execute): Likewise.
1173         (congruence_class::dump): Likewise.
1174         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
1175         (dump_inline_summary): Likewise.
1176         (estimate_node_size_and_time): Likewise.
1177         (inline_analyze_function): Likewise.
1178         * ipa-inline-transform.c (inline_call): Likewise.
1179         * ipa-inline.c (report_inline_failed_reason): Likewise.
1180         (want_early_inline_function_p): Likewise.
1181         (edge_badness): Likewise.
1182         (update_edge_key): Likewise.
1183         (inline_small_functions): Likewise.
1184         * ipa-profile.c (ipa_profile): Likewise.
1185         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1186         (ipa_make_edge_direct_to_target): Likewise.
1187         (remove_described_reference): Likewise.
1188         (ipa_impossible_devirt_target): Likewise.
1189         (propagate_controlled_uses): Likewise.
1190         (ipa_print_node_params): Likewise.
1191         (ipcp_transform_function): Likewise.
1192         * ipa-pure-const.c (pure_const_read_summary): Likewise.
1193         (propagate_pure_const): Likewise.
1194         * ipa-reference.c (generate_summary): Likewise.
1195         (read_write_all_from_decl): Likewise.
1196         (propagate): Likewise.
1197         (ipa_reference_read_optimization_summary): Likewise.
1198         * ipa-utils.c (ipa_merge_profiles): Likewise.
1199         * ipa.c (walk_polymorphic_call_targets): Likewise.
1200         (symbol_table::remove_unreachable_nodes): Likewise.
1201         (ipa_single_use): Likewise.
1202         * passes.c (execute_todo): Likewise.
1203         * predict.c (drop_profile): Likewise.
1204         * symtab.c (symtab_node::get_dump_name): New function.
1205         (symtab_node::dump_name): Likewise.
1206         (symtab_node::dump_asm_name): Likewise.
1207         (symtab_node::dump_references): Likewise.
1208         (symtab_node::dump_referring): Likewise.
1209         (symtab_node::dump_base): Likewise.
1210         (symtab_node::debug_symtab): Likewise.
1211         * tree-sra.c (convert_callers_for_node): Likewise.
1212         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
1213         * value-prof.c (init_node_map): Likewise.
1214
1215 2017-05-23  Martin Liska  <mliska@suse.cz>
1216
1217         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
1218         and symtab_node::debug_symtab to symbol_table::debug.
1219         * cgraphunit.c (analyze_functions): Use the renamed function.
1220         (symbol_table::compile): Likewise.
1221         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
1222         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1223         * passes.c (execute_todo): Likewise.
1224         * symtab.c (symbol_table::dump): New function.
1225         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
1226
1227 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1228
1229         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
1230         that nonconst implies exec.
1231
1232 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
1233
1234         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
1235         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
1236         (inline_edge_summary_vec): Turn into ...
1237         (ipa_call_summaries): ... this one.
1238         (redirect_to_unreachable, edge_set_predicate,
1239         evaluate_properties_for_edge, inline_summary_alloc,
1240         reset_ipa_call_summary, reset_inline_summary,
1241         inline_summary_t::duplicate): Update.
1242         (inline_edge_duplication_hook): Turn to ...
1243         (ipa_call_summary_t::duplicate): ... this one.
1244         (inline_edge_removal_hook): Turn to ...
1245         (ipa_call_summary_t::remove): ... this one.
1246         (dump_inline_edge_summary): Turn to ...
1247         (dump_ipa_call_summary): ... this one.
1248         (estimate_function_body_sizes): Update.
1249         (inline_update_callee_summaries): Update.
1250         (remap_edge_change_prob): Update.
1251         (remap_edge_summaries): Update.
1252         (inline_merge_summary): Update.
1253         (do_estimate_edge_time): Update.
1254         (inline_generate_summary): Update.
1255         (inline_read_section): Update.
1256         (inline_read_summary): Update.
1257         (inline_free_summary): Update.
1258         * ipa-inline.c (can_inline_edge_p): Update.
1259         (compute_inlined_call_time): Update.
1260         (want_inline_small_function_p): Update.
1261         (edge_badness): Update.
1262         (early_inliner): Update.
1263         * ipa-inline.h (inline_edge_summary): Turn to ...
1264         (ipa_call_summary): ... this one.
1265         (ipa_call_summary_t): New class.
1266         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
1267         (ipa_call_summaries): New.
1268         (inline_edge_summary): Remove.
1269         (estimate_edge_growth): Update.
1270         * ipa-profile.c (ipa_propagate_frequency_1): Update.
1271         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1272         * ipa-split.c (execute_split_functions): Update.
1273         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
1274
1275 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1276
1277         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
1278         attributes): Document rdrand effective target.
1279
1280 2017-05-23  Tom de Vries  <tom@codesourcery.com>
1281
1282         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
1283         attributes): Sort alphabetically.
1284
1285 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
1286
1287         * config/avr/genmultilib.awk: Use gsub instead of gensub.
1288
1289 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1290
1291         PR target/80718
1292         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
1293         V2DF/V2DI splat into two separate patterns, one that handles
1294         registers, and the other that only handles memory.  Drop support
1295         for splatting from a GPR on ISA 2.07 and then splitting the
1296         splat into direct move and splat.
1297         (vsx_splat_<mode>_reg): Likewise.
1298         (vsx_splat_<mode>_mem): Likewise.
1299
1300 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
1301
1302         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
1303
1304 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
1305
1306         PR middle-end/80809
1307         * omp-low.c (finish_taskreg_remap): New function.
1308         (finish_taskreg_scan): If unit size of ctx->record_type
1309         is non-constant, unshare the size expression and replace
1310         decls in it with possible outer var refs.
1311
1312         PR middle-end/80809
1313         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
1314         GOVD_SHARED rather than GOVD_PRIVATE with it.
1315         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
1316         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
1317
1318         PR middle-end/80853
1319         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
1320         as last argument to build_outer_var_ref for pointer bases of array
1321         section reductions.
1322
1323 2017-05-19  Martin Sebor  <msebor@redhat.com>
1324
1325         * print-tree.c (print_node): Print DECL_READ_P flag.
1326
1327 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1328
1329         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
1330         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
1331         * cgraph.c: Likewise.
1332         * cgraphunit.c: Likewise.
1333         * gengtype.c: Likewise.
1334         * ipa-cp.c: Likewise.
1335         * ipa-devirt.c: Likewise.
1336         * ipa-icf.c: Likewise.
1337         * ipa-predicate.c: Likewise.
1338         * ipa-profile.c: Likewise.
1339         * ipa-prop.c: Likewise.
1340         * ipa-split.c: Likewise.
1341         * ipa.c: Likewise.
1342         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
1343         edge_predicate_pool, dump_inline_hints,
1344         inline_summary::account_size_time, redirect_to_unreachable,
1345         edge_set_predicate, set_hint_predicate,
1346         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
1347         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
1348         inline_summary_t::remove, remap_hint_predicate_after_duplication,
1349         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
1350         ipa_call_summary_t::remove, initialize_growth_caches,
1351         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
1352         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
1353         mark_modified, unmodified_parm_1, unmodified_parm,
1354         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
1355         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
1356         compute_bb_predicates, will_be_nonconstant_expr_predicate,
1357         will_be_nonconstant_predicate, record_modified_bb_info,
1358         get_minimal_bb, record_modified, param_change_prob,
1359         phi_result_unknown_predicate, predicate_for_phi_result,
1360         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
1361         estimate_function_body_sizes, compute_inline_parameters,
1362         compute_inline_parameters_for_curren, pass_data_inline_parameters,
1363         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
1364         inline_update_callee_summaries, remap_edge_change_prob,
1365         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
1366         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
1367         inline_analyze_function, inline_summary_t::insert,
1368         inline_generate_summary, read_ipa_call_summary, inline_read_section,
1369         inline_read_summary, write_ipa_call_summary, inline_write_summary,
1370         inline_free_summary): Move to ipa-fnsummary.h
1371         (predicate_t): Remove.
1372         * ipa-fnsummary.c: New file.
1373         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
1374         (enum inline_hints_vals, inline_hints, agg_position_info,
1375         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
1376         inline_summaries, ipa_call_summary, ipa_call_summary_t,
1377         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
1378         dump_inline_summary, dump_inline_hints, inline_generate_summary,
1379         inline_read_summary, inline_write_summary, inline_free_summary,
1380         inline_analyze_function, initialize_inline_failed,
1381         inline_merge_summary, inline_update_overall_summary,
1382         compute_inline_parameters): Move to ipa-fnsummary.h
1383         * ipa-fnsummary.h: New file.
1384         * ipa-inline-transform.h: Include ipa-inline.h.
1385         * ipa-inline.c: LIkewise.
1386
1387 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1388
1389         * ipa-inline.c (edge_badness): Use inlined_time instead of
1390         inline_summaries->get.
1391
1392 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1393
1394         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
1395
1396 2017-05-22  Nathan Sidwell  <nathan@acm.org>
1397
1398         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
1399         (fdump-lang): Document 'raw' option.
1400         * dumpfile.h (TDI_tu): Delete.
1401         * dumpfile.c (dump_files): Remove translation-unit.
1402         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
1403
1404 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
1405
1406         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
1407         command option from $(AWK) call.
1408         * config/avr/genmultilib.awk: Simplify and rewrite so that it
1409         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
1410         [FORMAT]: Remove handling of variable.
1411         * config/avr/t-multilib: Regenerate.
1412
1413 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1414
1415         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
1416         self_time.
1417         (dump_inline_summary): Do not print self_time.
1418         (estimate_function_body_sizes): Do not set self_time.
1419         (compute_inline_parameters): Likewise.
1420         (inline_read_section, inline_write_summary): Do not stream self_time.
1421         * ipa-inline.h (inline_summary): Drop self_time.
1422
1423 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
1424
1425         * ipa-inline-analysis.c (account_size_time): Rename to ...
1426         (inline_summary::account_size_time): ... this one.
1427         (reset_ipa_call_summary): Turn to ...
1428         (ipa_call_summary::reset): ... this one.
1429         (reset_inline_summary): Turn to ...
1430         (inline_summary::reset): ... this one.
1431         (inline_summary_t::remove): Update.
1432         (inline_summary_t::duplicate): Update.
1433         (ipa_call_summary_t::remove): Update.
1434         (dump_inline_summary): Update.
1435         (estimate_function_body_sizes): Update.
1436         (compute_inline_parameters): Update.
1437         (estimate_node_size_and_time): Update.
1438         (inline_merge_summary): Update.
1439         (inline_update_overall_summary): Update.
1440         (inline_read_section): Update.
1441         (inline_write_summary): Update.
1442         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
1443         add account_size_time and reset member functions.
1444         (ipa_call_summary): Add reset function.
1445         * ipa-predicate.h (predicate::operator &): Constify.
1446
1447 2017-05-22  Richard Biener  <rguenther@suse.de>
1448
1449         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
1450
1451 2017-05-19  Jason Merrill  <jason@redhat.com>
1452
1453         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
1454
1455 2017-05-19  Marek Polacek  <polacek@redhat.com>
1456
1457         PR sanitizer/80800
1458         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
1459         TYPE_OVERFLOW_WRAPS checks.
1460
1461 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1462
1463         * tree-core.h (enum omp_clause_default_kind): Add
1464         "OMP_CLAUSE_DEFAULT_PRESENT".
1465         * tree-pretty-print.c (dump_omp_clause): Handle it.
1466         * gimplify.c (enum gimplify_omp_var_data): Add
1467         "GOVD_MAP_FORCE_PRESENT".
1468         (gimplify_adjust_omp_clauses_1): Map it to
1469         "GOMP_MAP_FORCE_PRESENT".
1470         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
1471
1472         * gimplify.c (oacc_default_clause): Clarify.
1473
1474 2017-05-19  Nathan Sidwell  <nathan@acm.org>
1475
1476         LANG_HOOK_REGISTER_DUMPS
1477         * toplev.c (general_init): Call register dump lang hook.
1478         * doc/invoke.texi: Document -fdump-lang option family.
1479         * dumpfile.c (dump_files): Remove class dump here.
1480         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
1481         * dumpfile.h (tree_dump_index): Remove TDI_class.
1482         * langhooks-def.h (lhd_register_dumps): Declare.
1483         (LANG_HOOKS_REGISTER_DUMPS): Define.
1484         (LANG_HOOKS_INITIALIZER): Add it.
1485         * langhooks.c (lhd_register_dumps): Define.
1486         * langhooks.h (struct lang_hooks): Add register_dumps.
1487
1488 2017-05-19  Nathan Sidwell  <nathan@acm.org>
1489
1490         * context.h (context::set_passes): New.
1491         * context.c (context::context): Do not create pass manager.
1492         * toplev.c (general_init): Create pass manager here.
1493
1494 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1495
1496         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
1497         use this splitter if two add or or instructions would also work for
1498         the constant we want to generate.
1499
1500 2017-05-19  Richard Biener  <rguenther@suse.de>
1501
1502         PR build/80821
1503         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
1504         predicate evaluation.
1505
1506 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
1507
1508         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
1509         add ctor.
1510         * ipa-inline.c (want_inline_small_function_p): Do not cast to
1511         unsigned.
1512
1513 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
1514
1515         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
1516         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
1517         (inline_edge_summary_vec): Turn into ...
1518         (ipa_call_summaries): ... this one.
1519         (redirect_to_unreachable, edge_set_predicate,
1520         evaluate_properties_for_edge, inline_summary_alloc,
1521         reset_ipa_call_summary, reset_inline_summary,
1522         inline_summary_t::duplicate): Update.
1523         (inline_edge_duplication_hook): Turn to ...
1524         (ipa_call_summary_t::duplicate): ... this one.
1525         (inline_edge_removal_hook): Turn to ...
1526         (ipa_call_summary_t::remove): ... this one.
1527         (dump_inline_edge_summary): Turn to ...
1528         (dump_ipa_call_summary): ... this one.
1529         (estimate_function_body_sizes): Update.
1530         (inline_update_callee_summaries): Update.
1531         (remap_edge_change_prob): Update.
1532         (remap_edge_summaries): Update.
1533         (inline_merge_summary): Update.
1534         (do_estimate_edge_time): Update.
1535         (inline_generate_summary): Update.
1536         (inline_read_section): Update.
1537         (inline_read_summary): Update.
1538         (inline_free_summary): Update.
1539         * ipa-inline.c (can_inline_edge_p): Update.
1540         (compute_inlined_call_time): Update.
1541         (want_inline_small_function_p): Update.
1542         (edge_badness): Update.
1543         (early_inliner): Update.
1544         * ipa-inline.h (inline_edge_summary): Turn to ...
1545         (ipa_call_summary): ... this one.
1546         (ipa_call_summary_t): New class.
1547         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
1548         (ipa_call_summaries): New.
1549         (inline_edge_summary): Remove.
1550         (estimate_edge_growth): Update.
1551         * ipa-profile.c (ipa_propagate_frequency_1): Update.
1552         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1553         * ipa-split.c (execute_split_functions): Update.
1554         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
1555
1556 2017-05-19  Richard Biener  <rguenther@suse.de>
1557
1558         PR middle-end/80764
1559         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
1560
1561 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
1562
1563         * config/rs6000/rs6000.c (struct machine_function): Add field
1564         fpr_is_wrapped_separately.
1565         (rs6000_get_separate_components): Use 64 components.  Handle the
1566         new FPR components.
1567         (rs6000_components_for_bb): Handle the FPR components.
1568         (rs6000_emit_prologue_components): Handle the FPR components.
1569         (rs6000_emit_epilogue_components): Handle the FPR components.
1570         (rs6000_set_handled_components): Handle the FPR components.
1571         (rs6000_emit_prologue): Don't output prologue code for those FPRs
1572         that are already separately shrink-wrapped.
1573         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
1574         that are already separately shrink-wrapped.
1575
1576 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1577
1578         PR target/80510
1579         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
1580         New predicate.
1581
1582         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
1583         (define_peephole2 for Altivec d-form load): Add peepholes to catch
1584         cases where the register allocator uses a move and an offsettable
1585         memory operation to/from a FPR register on ISA 2.06/2.07.
1586         (define_peephole2 for Altivec d-form store): Likewise.
1587
1588 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
1589
1590         PR target/80799
1591         * config/i386/mmx.md (*mov<mode>_internal): Enable
1592         alternatives 11, 12, 13 and 14 also for 32bit targets.
1593         Remove alternatives 15, 16, 17 and 18.
1594         * config/i386/sse.md (vec_concatv2di): Change
1595         alternative (!x, *y) to (x, ?!*Yn).
1596
1597 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
1598
1599         * dumpfile.h (enum dump_kind): Remove stray comma.
1600
1601 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
1602
1603         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
1604         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
1605         predicate::num_conditions
1606         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
1607         (CHANGED): turn into predicate::changed.
1608         (agg_position_info): Move to ipa-predicate.h
1609         (add_condition, predicate::add_clause, predicate::operator &=,
1610         predicate::or_with, predicate::evaluate, predicate::probability,
1611         dump_condition, dump_clause, predicate::dump,
1612         predicate::remap_after_duplication, predicate::remap_after_inlining,
1613         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
1614         (evaluate_conditions_for_known_args): Update.
1615         (set_cond_stmt_execution_predicate): Update.
1616         * ipa-inline.h: Include ipa-predicate.h
1617         (condition, inline_param_summary, conditions, agg_position_info,
1618         predicate): Move to ipa-predicate.h
1619         * ipa-predicate.c: New file.
1620         * ipa-predicate.h: New file.
1621
1622 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
1623
1624         * final.c (leaf_function_p): Check we are not in a sequence.
1625
1626 2017-05-18  Martin Liska  <mliska@suse.cz>
1627
1628         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
1629         * dumpfile.c (dump_register): Use new enum dump_kind.
1630         (get_dump_file_name): Likewise.
1631         (dump_enable_all): Likewise.
1632         (dump_switch_p_1): Likewise.
1633         (enable_rtl_dump_file): Remove usage of TDF_RTL.
1634         * dumpfile.h (enum dump_kind): New enum type.
1635         (struct dump_file_info): Create constructor and
1636         format fields and comments.
1637         * passes.c (pass_manager::register_one_dump_file):
1638         Use num dump_kind.
1639         * statistics.c (statistics_early_init): Likewise.
1640         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
1641         TDF_TREE with TDF_SLIM.
1642         (gather_memory_references_ref): Likewise.
1643
1644 2017-05-18  Martin Liska  <mliska@suse.cz>
1645
1646         * vec.h (struct vnull): Use it.
1647
1648 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
1649
1650         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
1651         (true_predicate, false_predicate, true_predicate_p,
1652         false_predicate_p): Remove.
1653         (single_cond_predicate, not_inlined_predicate): Turn to member function
1654         in ipa-inline.h
1655         (add_condition): Update.
1656         (add_clause): Turn to...
1657         (predicate::add_clause): ... this one; update; allow passing NULL
1658         as parameter.
1659         (and_predicates): Turn to ...
1660         (predicate::operator &=): ... this one.
1661         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
1662         (or_predicates): Turn to ...
1663         (predicate::or_with): ... this one.
1664         (evaluate_predicate): Turn to ...
1665         (predicate::evaluate): ... this one.
1666         (predicate_probability): Turn to ...
1667         (predicate::probability): ... this one.
1668         (dump_condition): Update.
1669         (dump_predicate): Turn to ...
1670         (predicate::dump): ... this one.
1671         (account_size_time): Update.
1672         (edge_set_predicate): Update.
1673         (set_hint_predicate): UPdate.
1674         (evaluate_conditions_for_known_args): Update.
1675         (evaluate_properties_for_edge): Update.
1676         (remap_predicate_after_duplication): Turn to...
1677         (predicate::remap_after_duplication): ... this one.
1678         (remap_hint_predicate_after_duplication): Update.
1679         (inline_summary_t::duplicate): UPdate.
1680         (dump_inline_edge_summary): Update.
1681         (dump_inline_summary): Update.
1682         (set_cond_stmt_execution_predicate): Update.
1683         (set_switch_stmt_execution_predicate): Update.
1684         (compute_bb_predicates): Update.
1685         (will_be_nonconstant_expr_predicate): Update.
1686         (will_be_nonconstant_predicate): Update.
1687         (phi_result_unknown_predicate): Update.
1688         (predicate_for_phi_result): Update.
1689         (array_index_predicate): Update.
1690         (estimate_function_body_sizes): Update.
1691         (estimate_node_size_and_time): Update.
1692         (estimate_ipcp_clone_size_and_time): Update.
1693         (remap_predicate): Rename to ...
1694         (predicate::remap_after_inlining): ... this one.
1695         (remap_hint_predicate): Update.
1696         (inline_merge_summary): Update.
1697         (inline_update_overall_summary): Update.
1698         (estimate_size_after_inlining): Update.
1699         (read_predicate): Rename to ...
1700         (predicate::stream_in): ... this one.
1701         (read_inline_edge_summary): Update.
1702         (write_predicate): Rename to ...
1703         (predicate::stream_out): ... this one.
1704         (write_inline_edge_summary): Update.
1705         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
1706         (clause_t): Turn to uint32_t
1707         (predicate): Turn to class; implement constructor and operators
1708         ==, !=, &
1709         (size_time_entry): Update.
1710         (inline_summary): Update.
1711         (inline_edge_summary): Update.
1712
1713 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
1714
1715         * fold-const.c (fold_binary_loc): Move transformation...
1716         * match.pd (C - X CMP X): ... here.
1717
1718 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
1719
1720         * config/sparc/sparc.c (sparc_option_override): Set function
1721         alignment for -mcpu=niagara7 to 64 to match the I$ line.
1722         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
1723         latency to 1.
1724         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
1725         latency to 2.
1726         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
1727
1728 2017-05-18  Marek Polacek  <polacek@redhat.com>
1729
1730         PR sanitizer/80797
1731         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
1732         (pass_ubsan::execute): Call gimple_assign_single_p instead of
1733         gimple_assign_load_p.
1734
1735 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
1736
1737         PR middle-end/80692
1738         * real.c (do_compare): Give decimal_do_compare preference over
1739         comparing just the signs.
1740
1741 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
1742
1743         * doc/md.texi (Canonicalization of Instructions): Describe the
1744         canonical form of instructions that inherently set a condition
1745         code register.
1746
1747 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
1748
1749         PR middle-end/80775
1750         * tree-cfg.c: Move deletion of unreachable case statements to after
1751         the merging of consecutive case labels.
1752
1753 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1754
1755         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
1756         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
1757         restoring of callee-saved registers.
1758
1759 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1760
1761         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
1762         * config/visium/visium.c (single_set_and_flags): Likewise.
1763         * config/visium/visium.md (Substitutions): Likewise.
1764
1765 2017-05-17  Martin Liska  <mliska@suse.cz>
1766
1767         * cfg.c: Introduce dump_flags_t type and
1768         use it instead of int type.
1769         * cfg.h: Likewise.
1770         * cfghooks.c: Likewise.
1771         * cfghooks.h (struct cfg_hooks): Likewise.
1772         * cfgrtl.c: Likewise.
1773         * cfgrtl.h: Likewise.
1774         * cgraph.c (cgraph_node::get_body): Likewise.
1775         * coretypes.h: Likewise.
1776         * domwalk.c: Likewise.
1777         * domwalk.h: Likewise.
1778         * dumpfile.c (struct dump_option_value_info): Likewise.
1779         (dump_enable_all): Likewise.
1780         (dump_switch_p_1): Likewise.
1781         (opt_info_switch_p): Likewise.
1782         * dumpfile.h (enum tree_dump_index): Likewise.
1783         (struct dump_file_info): Likewise.
1784         * genemit.c: Likewise.
1785         * generic-match-head.c: Likewise.
1786         * gengtype.c (open_base_files): Likewise.
1787         * gimple-pretty-print.c: Likewise.
1788         * gimple-pretty-print.h: Likewise.
1789         * graph.c (print_graph_cfg): Likewise.
1790         * graphite-scop-detection.c (dot_all_sese): Likewise.
1791         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
1792         * loop-unroll.c (report_unroll): Likewise.
1793         * passes.c (pass_manager::register_one_dump_file): Likewise.
1794         * print-tree.c: Likewise.
1795         * statistics.c: Likewise.
1796         * tree-cfg.c: Likewise.
1797         * tree-cfg.h: Likewise.
1798         * tree-dfa.c: Likewise.
1799         * tree-dfa.h: Likewise.
1800         * tree-dump.c (dump_function): Likewise.
1801         * tree-dump.h (struct dump_info): Likewise.
1802         * tree-pretty-print.c: Likewise.
1803         * tree-pretty-print.h: Likewise.
1804         * tree-ssa-live.c: Likewise.
1805         * tree-ssa-live.h: Likewise.
1806         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1807         * tree-vect-loop.c: Likewise.
1808         * tree-vect-slp.c: Likewise.
1809
1810 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
1811             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1812
1813         PR tree-optimization/80457
1814         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
1815         of all arguments to a statement as scalar_to_vec operations.
1816         (vectorizable_call): Adjust call to vect_model_simple_cost for
1817         new parameter.
1818         (vectorizable_conversion): Likewise.
1819         (vectorizable_assignment): Likewise.
1820         (vectorizable_shift): Likewise.
1821         (vectorizable_operation): Likewise.
1822         (vectorizable_comparison): Likewise.
1823         (vect_is_simple_cond): Record the def types for operands.
1824         (vectorizable_condition): Likewise, call vect_model_simple_cost.
1825         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
1826         for statement argument count.
1827
1828 2017-05-16  Carl Love  <cel@us.ibm.com>
1829
1830         * config/rs6000/rs6000-c: Add support for built-in functions
1831         vector unsigned long long vec_bperm (vector unsigned long long,
1832                                              vector unsigned char)
1833         vector signed long long vec_mule (vector signed int,
1834                                           vector signed int)
1835         vector unsigned long long vec_mule (vector unsigned int,
1836                                             vector unsigned int)
1837         vector signed long long vec_mulo (vector signed int,
1838                                           vector signed int)
1839         vector unsigned long long vec_mulo (vector unsigned int,
1840                                             vector unsigned int)
1841         vector signed char vec_sldw (vector signed char,
1842                                      vector signed char,
1843                                      const int)
1844         vector unsigned char vec_sldw (vector unsigned char,
1845                                        vector unsigned char,
1846                                        const int)
1847         vector signed short vec_sldw (vector signed short,
1848                                       vector signed short,
1849                                       const int)
1850         vector unsigned short vec_sldw (vector unsigned short,
1851                                         vector unsigned short,
1852                                         const int)
1853         vector signed int vec_sldw (vector signed int,
1854                                     vector signed int,
1855                                     const int)
1856         vector unsigned int vec_sldw (vector unsigned int,
1857                                       vector unsigned int,
1858                                       const int)
1859         vector signed long long vec_sldw (vector signed long long,
1860                                           vector signed long long,
1861                                           const int)
1862         vector unsigned long long vec_sldw (vector unsigned long long,
1863                                             vector unsigned long long,
1864                                             const int)
1865         * config/rs6000/rs6000-c: Add support for built-in functions
1866         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
1867         * config/rs6000/altivec.h: Add defintion for vec_sldw.
1868         * doc/extend.texi: Update the built-in documentation for the
1869         new built-in functions.
1870
1871 2017-05-16  Marek Polacek  <polacek@redhat.com>
1872
1873         PR sanitizer/80536
1874         PR sanitizer/80386
1875         * tree.c (save_expr): Don't fold the expression.
1876
1877 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
1878
1879         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
1880         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
1881         and (?*y,m).  Update insn attributes.
1882
1883 2017-05-16  Martin Liska  <mliska@suse.cz>
1884
1885         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
1886         flags argument of print_gimple_stmt, print_gimple_expr,
1887         print_generic_stmt and print_generic_expr.
1888         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1889         * coretypes.h: Likewise.
1890         * except.c (dump_eh_tree): Likewise.
1891         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1892         * gimple-pretty-print.h: Likewise.
1893         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
1894         (backprop::push_to_worklist): Likewise.
1895         (backprop::pop_from_worklist): Likewise.
1896         (backprop::process_use): Likewise.
1897         (backprop::intersect_uses): Likewise.
1898         (note_replacement): Likewise.
1899         * gimple-ssa-store-merging.c
1900         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
1901         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1902         (pass_store_merging::execute): Likewise.
1903         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
1904         (ssa_base_cand_dump_callback): Likewise.
1905         (dump_incr_vec): Likewise.
1906         (replace_refs): Likewise.
1907         (replace_mult_candidate): Likewise.
1908         (create_add_on_incoming_edge): Likewise.
1909         (create_phi_basis): Likewise.
1910         (insert_initializers): Likewise.
1911         (all_phi_incrs_profitable): Likewise.
1912         (introduce_cast_before_cand): Likewise.
1913         (replace_one_candidate): Likewise.
1914         * gimplify.c (gimplify_expr): Likewise.
1915         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
1916         (set_rename): Likewise.
1917         (rename_uses): Likewise.
1918         (copy_loop_phi_nodes): Likewise.
1919         (add_close_phis_to_merge_points): Likewise.
1920         (copy_loop_close_phi_args): Likewise.
1921         (copy_cond_phi_args): Likewise.
1922         (graphite_copy_stmts_from_block): Likewise.
1923         (translate_pending_phi_nodes): Likewise.
1924         * graphite-poly.c (print_pdr): Likewise.
1925         (dump_gbb_cases): Likewise.
1926         (dump_gbb_conditions): Likewise.
1927         (print_scop_params): Likewise.
1928         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
1929         (build_cross_bb_scalars_use): Likewise.
1930         (gather_bbs::before_dom_children): Likewise.
1931         * hsa-dump.c (dump_hsa_immed): Likewise.
1932         * ipa-cp.c (print_ipcp_constant_value): Likewise.
1933         (get_replacement_map): Likewise.
1934         * ipa-inline-analysis.c (dump_condition): Likewise.
1935         (estimate_function_body_sizes): Likewise.
1936         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
1937         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
1938         * ipa-prop.c (ipa_dump_param): Likewise.
1939         (ipa_print_node_jump_functions_for_edge): Likewise.
1940         (ipa_modify_call_arguments): Likewise.
1941         (ipa_modify_expr): Likewise.
1942         (ipa_dump_param_adjustments): Likewise.
1943         (ipa_dump_agg_replacement_values): Likewise.
1944         (ipcp_modif_dom_walker::before_dom_children): Likewise.
1945         * ipa-pure-const.c (check_stmt): Likewise.
1946         (pass_nothrow::execute): Likewise.
1947         * ipa-split.c (execute_split_functions): Likewise.
1948         * omp-offload.c (dump_oacc_loop_part): Likewise.
1949         (dump_oacc_loop): Likewise.
1950         * trans-mem.c (tm_log_emit): Likewise.
1951         (tm_memopt_accumulate_memops): Likewise.
1952         (dump_tm_memopt_set): Likewise.
1953         (dump_tm_memopt_transform): Likewise.
1954         * tree-cfg.c (gimple_verify_flow_info): Likewise.
1955         (print_loop): Likewise.
1956         * tree-chkp-opt.c (chkp_print_addr): Likewise.
1957         (chkp_gather_checks_info): Likewise.
1958         (chkp_get_check_result): Likewise.
1959         (chkp_remove_check_if_pass): Likewise.
1960         (chkp_use_outer_bounds_if_possible): Likewise.
1961         (chkp_reduce_bounds_lifetime): Likewise.
1962         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
1963         (chkp_mark_completed_bounds): Likewise.
1964         (chkp_register_incomplete_bounds): Likewise.
1965         (chkp_mark_invalid_bounds): Likewise.
1966         (chkp_maybe_copy_and_register_bounds): Likewise.
1967         (chkp_build_returned_bound): Likewise.
1968         (chkp_get_bound_for_parm): Likewise.
1969         (chkp_build_bndldx): Likewise.
1970         (chkp_get_bounds_by_definition): Likewise.
1971         (chkp_generate_extern_var_bounds): Likewise.
1972         (chkp_get_bounds_for_decl_addr): Likewise.
1973         * tree-chrec.c (chrec_apply): Likewise.
1974         * tree-data-ref.c (dump_data_reference): Likewise.
1975         (dump_subscript): Likewise.
1976         (dump_data_dependence_relation): Likewise.
1977         (analyze_overlapping_iterations): Likewise.
1978         * tree-inline.c (expand_call_inline): Likewise.
1979         (tree_function_versioning): Likewise.
1980         * tree-into-ssa.c (dump_defs_stack): Likewise.
1981         (dump_currdefs): Likewise.
1982         (dump_names_replaced_by): Likewise.
1983         (dump_update_ssa): Likewise.
1984         (update_ssa): Likewise.
1985         * tree-object-size.c (pass_object_sizes::execute): Likewise.
1986         * tree-parloops.c (build_new_reduction): Likewise.
1987         (try_create_reduction_list): Likewise.
1988         (ref_conflicts_with_region): Likewise.
1989         (oacc_entry_exit_ok_1): Likewise.
1990         (oacc_entry_exit_single_gang): Likewise.
1991         * tree-pretty-print.h: Likewise.
1992         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
1993         (get_scalar_evolution): Likewise.
1994         (add_to_evolution): Likewise.
1995         (get_loop_exit_condition): Likewise.
1996         (analyze_evolution_in_loop): Likewise.
1997         (analyze_initial_condition): Likewise.
1998         (analyze_scalar_evolution): Likewise.
1999         (instantiate_scev): Likewise.
2000         (number_of_latch_executions): Likewise.
2001         (gather_chrec_stats): Likewise.
2002         (final_value_replacement_loop): Likewise.
2003         (scev_const_prop): Likewise.
2004         * tree-sra.c (dump_access): Likewise.
2005         (disqualify_candidate): Likewise.
2006         (create_access): Likewise.
2007         (reject): Likewise.
2008         (maybe_add_sra_candidate): Likewise.
2009         (create_access_replacement): Likewise.
2010         (analyze_access_subtree): Likewise.
2011         (analyze_all_variable_accesses): Likewise.
2012         (sra_modify_assign): Likewise.
2013         (initialize_constant_pool_replacements): Likewise.
2014         (find_param_candidates): Likewise.
2015         (decide_one_param_reduction): Likewise.
2016         (replace_removed_params_ssa_names): Likewise.
2017         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2018         * tree-ssa-copy.c (dump_copy_of): Likewise.
2019         (copy_prop_visit_cond_stmt): Likewise.
2020         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
2021         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
2022         (record_equivalences_from_stmt): Likewise.
2023         * tree-ssa-dse.c (compute_trims): Likewise.
2024         (delete_dead_call): Likewise.
2025         (delete_dead_assignment): Likewise.
2026         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
2027         (forward_propagate_into_cond): Likewise.
2028         (pass_forwprop::execute): Likewise.
2029         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2030         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
2031         Likewise.
2032         (move_computations_worker): Likewise.
2033         (execute_sm): Likewise.
2034         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
2035         (remove_exits_and_undefined_stmts): Likewise.
2036         (remove_redundant_iv_tests): Likewise.
2037         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
2038         (adjust_iv_update_pos): Likewise.
2039         * tree-ssa-math-opts.c (bswap_replace): Likewise.
2040         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
2041         (value_replacement): Likewise.
2042         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2043         * tree-ssa-pre.c (print_pre_expr): Likewise.
2044         (get_representative_for): Likewise.
2045         (create_expression_by_pieces): Likewise.
2046         (insert_into_preds_of_block): Likewise.
2047         (eliminate_insert): Likewise.
2048         (eliminate_dom_walker::before_dom_children): Likewise.
2049         (eliminate): Likewise.
2050         (remove_dead_inserted_code): Likewise.
2051         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2052         * tree-ssa-reassoc.c (get_rank): Likewise.
2053         (eliminate_duplicate_pair): Likewise.
2054         (eliminate_plus_minus_pair): Likewise.
2055         (eliminate_not_pairs): Likewise.
2056         (undistribute_ops_list): Likewise.
2057         (eliminate_redundant_comparison): Likewise.
2058         (update_range_test): Likewise.
2059         (optimize_range_tests_var_bound): Likewise.
2060         (optimize_vec_cond_expr): Likewise.
2061         (rewrite_expr_tree): Likewise.
2062         (rewrite_expr_tree_parallel): Likewise.
2063         (linearize_expr): Likewise.
2064         (break_up_subtract): Likewise.
2065         (linearize_expr_tree): Likewise.
2066         (attempt_builtin_powi): Likewise.
2067         (attempt_builtin_copysign): Likewise.
2068         (transform_stmt_to_copy): Likewise.
2069         (transform_stmt_to_multiply): Likewise.
2070         (dump_ops_vector): Likewise.
2071         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
2072         (print_scc): Likewise.
2073         (set_ssa_val_to): Likewise.
2074         (visit_reference_op_store): Likewise.
2075         (visit_use): Likewise.
2076         (sccvn_dom_walker::before_dom_children): Likewise.
2077         (run_scc_vn): Likewise.
2078         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2079         Likewise.
2080         (expr_hash_elt::print): Likewise.
2081         (const_and_copies::pop_to_marker): Likewise.
2082         (const_and_copies::record_const_or_copy_raw): Likewise.
2083         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
2084         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
2085         (dump_predicates): Likewise.
2086         (find_uninit_use): Likewise.
2087         (warn_uninitialized_phi): Likewise.
2088         (pass_late_warn_uninitialized::execute): Likewise.
2089         * tree-ssa.c (verify_vssa): Likewise.
2090         (verify_ssa): Likewise.
2091         (maybe_optimize_var): Likewise.
2092         * tree-vrp.c (dump_value_range): Likewise.
2093         (dump_all_value_ranges): Likewise.
2094         (dump_asserts_for): Likewise.
2095         (register_edge_assert_for_2): Likewise.
2096         (vrp_visit_cond_stmt): Likewise.
2097         (vrp_visit_switch_stmt): Likewise.
2098         (vrp_visit_stmt): Likewise.
2099         (vrp_visit_phi_node): Likewise.
2100         (simplify_cond_using_ranges_1): Likewise.
2101         (fold_predicate_in): Likewise.
2102         (evrp_dom_walker::before_dom_children): Likewise.
2103         (evrp_dom_walker::push_value_range): Likewise.
2104         (evrp_dom_walker::pop_value_range): Likewise.
2105         (execute_early_vrp): Likewise.
2106
2107 2017-05-16  Richard Biener  <rguenther@suse.de>
2108
2109         * dwarf2out.c (loc_list_from_tree_1): Do not create
2110         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
2111
2112 2017-05-16  Richard Biener  <rguenther@suse.de>
2113
2114         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
2115         just generated.
2116         (note_variable_value_in_expr): If we resolved the decl ref
2117         do not push to the stack.
2118
2119 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
2120
2121         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
2122         operations in fast-math mode.
2123         (vaddq_f16): Likewise.
2124         (vmul_f16): Likewise.
2125         (vmulq_f16): Likewise.
2126         (vsub_f16): Likewise.
2127         (vsubq_f16): Likewise.
2128         * config/arm/neon.md (add<mode>3): New.
2129         (sub<mode>3): New.
2130         (fma:<VH:mode>3): New.  Also remove outdated comment.
2131         (mul<mode>3): New.
2132
2133 2017-05-16  Martin Liska  <mliska@suse.cz>
2134
2135         PR ipa/79849.
2136         PR ipa/79850.
2137         * ipa-devirt.c (warn_types_mismatch): Fix typo.
2138         (odr_types_equivalent_p): Likewise.
2139
2140 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
2141
2142         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
2143
2144 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
2145
2146         PR target/80425
2147         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
2148         non-interunit SSE move alternatives with '?'.
2149         (zero-extendsidi peephole2): New peephole to skip intermediate
2150         general register in SSE zero-extend sequence.
2151
2152 2017-05-15  Jeff Law  <law@redhat.com>
2153
2154         * reorg.c (relax_delay_slots): Create a new variable to hold
2155         the temporary target rather than clobbering TARGET_LABEL.
2156
2157         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
2158         missing argument to extract_bit_field call.
2159         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2160
2161 2017-05-15  Martin Liska  <mliska@suse.cz>
2162
2163         PR driver/31468
2164         * gcc.c (process_command): Do not allow empty argument of -o option.
2165
2166 2017-05-15  Renlin Li  <renlin.li@arm.com>
2167
2168         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
2169         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
2170         * config/aarch64/constraints.md (Usf): Add long call check.
2171         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
2172         (call_value): Likewise.
2173         (sibcall): Likewise.
2174         (sibcall_value): Likewise.
2175         (call_insn): New.
2176         (call_value_insn): New.
2177         (sibcall_insn): Update rtx pattern.
2178         (sibcall_value_insn): Likewise.
2179         (call_internal): Remove.
2180         (call_value_internal): Likewise.
2181         (sibcall_internal): Likewise.
2182         (sibcall_value_internal): Likewise.
2183         (call_reg): Likewise.
2184         (call_symbol): Likewise.
2185         (call_value_reg): Likewise.
2186         (call_value_symbol): Likewise.
2187
2188 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
2189
2190         PR target/80600
2191         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
2192
2193 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
2194
2195         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
2196         compatible with CCGOCmode and with CCZmode.
2197
2198 2017-05-14  Martin Sebor  <msebor@redhat.com>
2199
2200         PR middle-end/77671
2201         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
2202         (gimple_fold_builtin_snprintf): Same.
2203         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
2204         (gimple_fold_builtin_snprintf): Same.
2205         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
2206         of character types.
2207         (is_call_safe): New function.
2208         (try_substitute_return_value): Call it.
2209         (try_simplify_call): New function.
2210         (pass_sprintf_length::handle_gimple_call): Call it.
2211
2212 2017-05-14  Martin Sebor  <msebor@redhat.com>
2213
2214         PR middle-end/80669
2215         * builtins.c (expand_builtin_stpncpy): Simplify.
2216
2217 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
2218
2219         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
2220         * config/i386/i386.h
2221         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
2222         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
2223         (struct machine_function): Add new members call_ms2sysv,
2224         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
2225         (struct machine_frame_state): New fields sp_realigned and
2226         sp_realigned_offset.
2227         * config/i386/i386.c
2228         (enum xlogue_stub): New enum.
2229         (enum xlogue_stub_sets): New enum.
2230         (class xlogue_layout): New class.
2231         (struct ix86_frame): New fields stack_realign_allocate_offset,
2232         stack_realign_offset and outlined_save_offset.  Modify comments to
2233         detail stack layout when using out-of-line stubs.
2234         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
2235         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
2236         -mcall-ms2sysv-xlogues.
2237         (stub_managed_regs): New static variable.
2238         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
2239         registers managed by out-of-line stub.
2240         (disable_call_ms2sysv_xlogues): New function.
2241         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
2242         m->call_ms2sysv when appropriate and compute frame layout for
2243         out-of-line stubs.
2244         (sp_valid_at, fp_valid_at): New inline functions.
2245         (choose_basereg): New function.
2246         (choose_baseaddr): Add align parameter, use choose_basereg and modify
2247         all callers.
2248         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
2249         Use align parameter of choose_baseaddr to generated aligned SSE movs
2250         when possible.
2251         (pro_epilogue_adjust_stack): Modify to track
2252         machine_frame_state::sp_realigned.
2253         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
2254         (ix86_nsaved_sseregs): Likewise.
2255         (ix86_emit_save_regs): Likewise.
2256         (ix86_emit_save_regs_using_mov): Likewise.
2257         (ix86_emit_save_sse_regs_using_mov): Likewise.
2258         (get_scratch_register_on_entry): Likewise.
2259         (gen_frame_set): New function.
2260         (gen_frame_load): Likewise.
2261         (gen_frame_store): Likewise.
2262         (emit_outlined_ms2sysv_save): Likewise.
2263         (emit_outlined_ms2sysv_restore): Likewise.
2264         (ix86_expand_prologue): Modify stack re-alignment code and call
2265         emit_outlined_ms2sysv_save when appropriate.
2266         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
2267         parameter rtx_insn *insn, which allows the function to be used to only
2268         generate the notes.
2269         (ix86_expand_epilogue): Modify validity checks of frame and stack
2270         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
2271         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
2272         * config/i386/predicates.md
2273         (save_multiple): New predicate.
2274         (restore_multiple): Likewise.
2275         * config/i386/sse.md
2276         (save_multiple<mode>): New pattern.
2277         (save_multiple_realign<mode>): Likewise.
2278         (restore_multiple<mode>): Likewise.
2279         (restore_multiple_and_return<mode>): Likewise.
2280         (restore_multiple_leave_return<mode>): Likewise.
2281         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
2282
2283 2017-05-14  Julia Koval  <julia.koval@intel.com>
2284
2285         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
2286         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
2287         (__builtin_ia32_xsetbv): New builtins.
2288         * config/i386/i386.c (ix86_expand_special_args_builtin):
2289         Process new types.
2290         (ix86_expand_builtin): Special expand for new intrinsics.
2291         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
2292         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
2293         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
2294
2295 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2296
2297         * cfganal.c (inverted_post_order_compute): Change argument type
2298         to vec *.
2299         * cfganal.h (inverted_post_order_compute): Adjust prototype.
2300         * df-core.c (rest_of_handle_df_initialize): Adjust.
2301         (rest_of_handle_df_finish): Likewise.
2302         (df_analyze_1): Likewise.
2303         (df_analyze): Likewise.
2304         (loop_inverted_post_order_compute): Change argument to be a vec *.
2305         (df_analyze_loop): Adjust.
2306         (df_get_n_blocks): Likewise.
2307         (df_get_postorder): Likewise.
2308         * df.h (struct df_d): Change field to be a vec.
2309         * lcm.c (compute_laterin): Adjust.
2310         (compute_available): Likewise.
2311         * lra-lives.c (lra_create_live_ranges_1): Likewise.
2312         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2313         * tree-ssa-pre.c (compute_antic): Likewise.
2314
2315 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2316
2317         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
2318         (depth_first_search::depth_first_search): Change structure init
2319         function to this constructor.
2320         (depth_first_search::add_bb): Rename function to this member.
2321         (depth_first_search::execute): Likewise.
2322         (flow_dfs_compute_reverse_finish): Adjust.
2323
2324 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2325
2326         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
2327         (longest_simple_path): Likewise.
2328         * shrink-wrap.c (spread_components): Likewise.
2329         (disqualify_problematic_components): Likewise.
2330         (emit_common_heads_for_components): Likewise.
2331         (emit_common_tails_for_components): Likewise.
2332         (insert_prologue_epilogue_for_components): Likewise.
2333
2334 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2335
2336         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
2337         auto_sbitmap.
2338
2339 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2340
2341         * df-core.c (df_set_blocks): Start using auto_bitmap.
2342         (df_compact_blocks): Likewise.
2343         * df-problems.c (df_rd_confluence_n): Likewise.
2344         * df-scan.c (df_insn_rescan_all): Likewise.
2345         (df_process_deferred_rescans): Likewise.
2346         (df_update_entry_block_defs): Likewise.
2347         (df_update_exit_block_uses): Likewise.
2348         (df_entry_block_bitmap_verify): Likewise.
2349         (df_exit_block_bitmap_verify): Likewise.
2350         (df_scan_verify): Likewise.
2351         * lra-constraints.c (lra_constraints): Likewise.
2352         (undo_optional_reloads): Likewise.
2353         (lra_undo_inheritance): Likewise.
2354         * lra-remat.c (calculate_gen_cands): Likewise.
2355         (do_remat): Likewise.
2356         * lra-spills.c (assign_spill_hard_regs): Likewise.
2357         (spill_pseudos): Likewise.
2358         * tree-ssa-pre.c (bitmap_set_and): Likewise.
2359         (bitmap_set_subtract_values): Likewise.
2360
2361 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2362
2363         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
2364         management with auto_bitmap.
2365         (fix_inter_tick): Likewise.
2366         (fix_recovery_deps): Likewise.
2367         * ira.c (add_store_equivs): Likewise.
2368         (find_moveable_pseudos): Likewise.
2369         (split_live_ranges_for_shrink_wrap): Likewise.
2370         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
2371         (rtx_reuse_manager::seen_def_p): Likewise.
2372         (rtx_reuse_manager::set_seen_def): Likewise.
2373         * print-rtl.h (class rtx_reuse_manager): Likewise.
2374
2375 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2376
2377         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
2378         lifetime.
2379         (migrate_btr_def): Likewise.
2380         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
2381         * df-core.c (loop_post_order_compute): Likewise.
2382         (loop_inverted_post_order_compute): Likewise.
2383         * hsa-common.h: Likewise.
2384         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
2385         * init-regs.c (initialize_uninitialized_regs): Likewise.
2386         * ipa-inline.c (resolve_noninline_speculation): Likewise.
2387         (inline_small_functions): Likewise.
2388         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
2389         * ira.c (combine_and_move_insns): Likewise.
2390         (build_insn_chain): Likewise.
2391         * loop-invariant.c (find_invariants): Likewise.
2392         * lower-subreg.c (propagate_pseudo_copies): Likewise.
2393         * predict.c (tree_predict_by_opcode): Likewise.
2394         (predict_paths_leading_to): Likewise.
2395         (predict_paths_leading_to_edge): Likewise.
2396         (estimate_loops_at_level): Likewise.
2397         (estimate_loops): Likewise.
2398         * shrink-wrap.c (try_shrink_wrapping): Likewise.
2399         (spread_components): Likewise.
2400         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
2401         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
2402         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
2403         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
2404         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
2405         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
2406         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2407         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
2408         (mark_threaded_blocks): Likewise.
2409         (thread_through_all_blocks): Likewise.
2410         * tree-ssa.c (verify_ssa): Likewise.
2411         (execute_update_addresses_taken): Likewise.
2412         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
2413
2414 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2415
2416         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
2417         auto_vec.
2418         (post_order_compute): Likewise.
2419         (inverted_post_order_compute): Likewise.
2420         (pre_and_rev_post_order_compute_fn): Likewise.
2421
2422 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2423
2424         * genrecog.c (int_set::int_set): Explicitly construct our
2425         auto_vec base class.
2426         * vec.h (auto_vec::auto_vec): New constructor.
2427
2428 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2429
2430         * bitmap.h (class auto_bitmap): New constructor taking
2431         bitmap_obstack * argument.
2432
2433 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2434
2435         * bitmap.h (class auto_bitmap): Change type of m_bits to
2436         bitmap_head, and adjust ctor / dtor and member operators.
2437
2438 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
2439
2440         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
2441         when returned register mode doesn't match original mode.
2442
2443 2017-05-12  Jeff Law  <law@redhat.com>
2444             Jakub Jelinek  <jakub@redhat.com>
2445
2446         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
2447         we look for cc setter after the compare-elim changes.
2448         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
2449         within the vector to match what compare-elim now expects.
2450         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
2451         (xorsi3_flags, one_cmplsi2_flags): Likewise.
2452
2453         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
2454         after the compare-elim changes.
2455         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
2456         the vector to match what compare-elim now expects.
2457         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
2458         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
2459         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
2460         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
2461         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
2462
2463         * config/visium/visium.c (single_set_and_flags): Fix where
2464         we look for cc setter after the compare-elim changes.
2465         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
2466         with the vector to match what compare-elim now expects.
2467         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
2468         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
2469         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
2470         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
2471         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
2472         (neg<mode>2_insn_set_overflow): Likewise.
2473
2474 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
2475
2476         PR middle-end/79794
2477         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
2478         maybe_expand_insn call, set ops[0].target.  If still set after call,
2479         set alt_rtl.  Add extra arg to recursive calls.
2480         (extract_bit_field): Add alt_rtl argument.  Pass to
2481         extract_bit_field.
2482         * expmed.h (extract_bit_field): Fix prototype.
2483         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
2484         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
2485         to extract_bit_field_calls.
2486         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
2487         Pass alt_rtl to extract_bit_field calls.
2488         * calls.c (store_unaligned_arguments_into_psuedos)
2489         load_register_parameters): Pass extra NULL to extract_bit_field calls.
2490         * optabs.c (maybe_legitimize_operand): Clear op->target when call
2491         gen_reg_rtx.
2492         * optabs.h (struct expand_operand): Add target bitfield.
2493
2494 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
2495
2496         * compare-elim.c (try_eliminate_compare): Canonicalize
2497         operation with embedded compare to
2498         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
2499          (set (reg) (operation)].
2500
2501         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
2502
2503 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
2504
2505         PR target/80723
2506         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
2507         cost of adding a carry flag for ADC instruction.
2508         [case MINUS]: Ignore the cost of subtracting a carry flag
2509         for SBB instruction.
2510
2511 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
2512
2513         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
2514         and x86intrin.h
2515         * config/rs6000/bmiintrin.h: New file.
2516         * config/rs6000/bmi2intrin.h: New file.
2517         * config/rs6000/x86intrin.h: New file.
2518
2519 2017-05-12  Jeff Law  <law@redhat.com>
2520
2521         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
2522         markers.
2523
2524 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
2525
2526         PR middle-end/80707
2527         * tree-cfg.c: Remove cfg edges of unreachable case statements.
2528
2529 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2530
2531         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
2532         early expansion of vector divide builtins.
2533         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
2534         builtins identified as having unsigned arguments.
2535
2536 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2537
2538         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
2539         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
2540         expansion of vector logical operations (and, andc, or, xor,
2541         nor, orc, nand).
2542
2543 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2544
2545         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
2546         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
2547
2548 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2549
2550         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
2551         early GIMPLE expansion of vector multiplies.
2552
2553 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2554
2555         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
2556         TARGET_HAVE_MOVT conditional.
2557         (movt splitter): Likewise.
2558
2559 2017-05-12  Richard Biener  <rguenther@suse.de>
2560
2561         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
2562         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2563         Fold all stmts not inplace.
2564
2565 2017-05-12  Richard Biener  <rguenther@suse.de>
2566
2567         PR tree-optimization/80713
2568         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
2569         inserted_exprs bit for not removed stmts.
2570
2571 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2572
2573         PR middle-end/69921
2574         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
2575         parallelized" attribute for parallelized OpenACC kernels.
2576         * omp-offload.c (execute_oacc_device_lower): Use it.
2577
2578         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
2579         Set "oacc kernels" attribute.
2580         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
2581         parameter.  Adjust all users.
2582         (oacc_fn_attrib_kernels_p): Remove function.
2583         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
2584         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
2585         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2586         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
2587         assert "oacc kernels" attribute is set.
2588
2589 2017-05-11  Carl Love  <cel@us.ibm.com>
2590
2591         * config/rs6000/rs6000-c: Add support for built-in functions
2592         vector unsigned char vec_popcnt (vector signed char)
2593         vector unsigned char vec_popcnt (vector unsigned char)
2594         vector unsigned short vec_popcnt (vector signed short)
2595         vector unsigned short vec_popcnt (vector unsigned short)
2596         vector unsigned int vec_popcnt (vector signed int)
2597         vector unsigned int vec_popcnt (vector unsigned int)
2598         vector unsigned long long vec_popcnt (vector signed long long)
2599         vector unsigned long long vec_popcnt (vector unsigned long long)
2600         vector signed long long vec_slo (vector signed long long,
2601                                          vector signed char)
2602         vector signed long long vec_slo (vector signed long long,
2603                                          vector unsigned char)
2604         vector unsigned long long vec_slo (vector unsigned long long,
2605                                            vector signed char)
2606         vector unsigned long long vec_slo (vector unsigned long long,
2607                                            vector unsigned char)
2608         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
2609         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
2610         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
2611         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
2612         * doc/extend.texi: Update the built-in documentation file for the
2613         new built-in functions.
2614
2615 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2616
2617         * attribs.h (sorted_attr_string): Move machine independent
2618         functions for target clone support from the i386 port to common
2619         code.  Rename ix86_function_versions to common_function_versions.
2620         Rename make_name to make_unique_name.
2621         (common_function_versions): Likewise.
2622         (make_unique_name): Likewise.
2623         (make_dispatcher_decl): Likewise.
2624         (is_function_default_version): Likewise.
2625         * attribs.c (attr_strcmp): Likewise.
2626         (sorted_attr_string): Likewise.
2627         (common_function_versions): Likewise.
2628         (make_unique_name): Likewise.
2629         (make_dispatcher_decl): Likewise.
2630         (is_function_default_version): Likewise.
2631         * config/i386/i386.c (attr_strcmp): Likewise.
2632         (sorted_attr_string): Likewise.
2633         (ix86_function_versions): Likewise.
2634         (make_name): Likewise.
2635         (make_dispatcher_decl): Likewise.
2636         (is_function_default_version): Likewise.
2637         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
2638
2639 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2640
2641         PR target/80695
2642         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2643         Account for direct move costs for vec_construct of integer
2644         vectors.
2645
2646 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
2647
2648         PR target/80706
2649         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
2650         (UNSPEC_STX_ATOMIC): Ditto.
2651         (loaddi_via_sse): New insn.
2652         (storedi_via_sse): Ditto.
2653         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
2654         Update corresponding peephole2 patterns.
2655         (atomic_storedi_fpu): Ditto.
2656
2657 2017-05-11  Julia Koval  <julia.koval@intel.com>
2658
2659         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
2660         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
2661         New intrinsics.
2662         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
2663         (__builtin_ia32_rsqrt14ss_mask): New builtins.
2664         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
2665
2666 2017-05-11  Nathan Sidwell  <nathan@acm.org>
2667
2668         * graphite-poly.c: Include dumpfile.h.
2669
2670         * dumpfle.h (dump_function): Declare here ...
2671         * tree-dump.h (dump_function): ... not here.
2672         * dumpfile.c: #include tree-cfg.h.
2673         (dump_function): Move here from ...
2674         * tree-dump.c (dump_function): ... here.
2675         * gimplify.c: #include splay-tree.h, not tree-dump.h.
2676         * graphite-poly.c: Don't include tree-dump.h.
2677         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
2678         * print-tree.c: Likewise.
2679         * stor-layout.c: Likewise.
2680         * tree-nested.c: Likewise.
2681
2682         * dumpfile.c (dump_start): Use TDF_FLAGS.
2683         (dump_enable_all): Fix TDF_KIND check thinko.
2684
2685 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2686
2687         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2688         array entries to represent two legal parameterizations of the
2689         overloaded __builtin_cmpb function, as represented by the
2690         P6_OV_BUILTIN_CMPB constant.
2691         (altivec_resolve_overloaded_builtin): Add special case handling
2692         for the __builtin_cmpb function, as represented by the
2693         P6_OV_BUILTIN_CMPB constant.
2694         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
2695         (BU_P6_64BIT_2): New macro.
2696         (BU_P6_OVERLOAD_2): New macro
2697         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
2698         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
2699         (CMPB): Add overload support to represent both 32-bit and 64-bit
2700         compare-bytes function.
2701         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2702         support for TARGET_CMPB.
2703         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
2704         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
2705         documentation of the __builtin_cmpb overloaded built-in function.
2706
2707 2017-05-11  Richard Biener  <rguenther@suse.de>
2708
2709         PR tree-optimization/80705
2710         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
2711         bases are not vectorizable.
2712
2713 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2714
2715         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
2716         when counting register pressure.
2717
2718 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2719
2720         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
2721         (iv_ca_more_deps): Renamed to ...
2722         (iv_ca_compare_deps): ... this.
2723         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
2724
2725 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2726
2727         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
2728         to ...
2729         (determine_group_iv_costs): ... here.
2730         (find_inv_vars_cb): Record inv var if it's not recorded before.
2731
2732 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2733
2734         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
2735         (get_shiftadd_cost): Ditto.
2736
2737 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2738
2739         * tree-ssa-address.c: Include header file.
2740         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
2741         address.
2742         (add_to_parts): Refactor.
2743         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
2744         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
2745         in new order.
2746
2747 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2748
2749         PR tree-optimization/53090
2750         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
2751         COMP_IV_EXPR_2.
2752         (extract_cond_operands): Detect condition with IV on both sides
2753         and return COMP_IV_EXPR_2.
2754         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
2755         (rewrite_use_compare): Simplify by removing call to function
2756         extract_cond_operands.
2757
2758 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2759
2760         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
2761         (extract_cond_operands): Detect condition comparing against non-
2762         invariant bound and return appropriate enum value.
2763         (find_interesting_uses_cond): Update use of extract_cond_operands.
2764         Handle its return value accordingly.
2765         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
2766
2767 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2768
2769         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
2770         nonlinear iv_use computation in loop invariant sensitive way.
2771
2772 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2773
2774         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
2775         (find_iv_candidates): Call relate_compare_use_with_all_cands.
2776
2777 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2778
2779         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
2780         (dump_cand): Support iv_cand.inv_exprs.
2781         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
2782         for candidates.
2783         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
2784         iv_cand.inv_exprs.
2785
2786 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2787
2788         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
2789         from ...
2790         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
2791         as local function.  Include necessary header files.
2792         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
2793
2794 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2795
2796         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
2797
2798 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2799
2800         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
2801         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
2802         RSHIFT_EXPR and BIT_NOT_EXPR.
2803
2804 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2805
2806         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
2807         (adjust_setup_cost): New parameter supporting round up adjustment.
2808         (struct address_cost_data): Delete.
2809         (force_expr_to_var_cost): Don't bound cost with spill_cost.
2810         (split_address_cost, ptr_difference_cost): Delete.
2811         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
2812         (struct ainc_cost_data): New struct.
2813         (get_address_cost_ainc): New function.
2814         (get_address_cost, get_computation_cost): Reimplement.
2815         (determine_group_iv_cost_address): Record inv_expr for all uses of
2816         a group.
2817         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
2818         (iv_ca_has_deps): Reimplemented to ...
2819         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
2820         than OLD_CP.
2821         (iv_ca_extend): Call iv_ca_more_deps.
2822
2823 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2824
2825         * tree-ssa-address.c (struct mem_address): Move to header file.
2826         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
2827         * tree-ssa-address.h (struct mem_address): Move from C file.
2828         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
2829
2830 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2831
2832         * tree-affine.h (aff_combination_type): New interface.
2833         (aff_combination_zero_p): Remove static.
2834         (aff_combination_const_p): New interface.
2835         (aff_combination_singleton_var_p): New interfaces.
2836
2837 2017-05-11  Richard Biener  <rguenther@suse.de>
2838
2839         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2840         Skip unreachable blocks and destinations.
2841         (eliminate): Move stmt removal and fixup ...
2842         (fini_eliminate): ... here.  Skip inserted exprs.
2843         (pass_pre::execute): Move fini_pre after fini_eliminate.
2844         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
2845         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
2846         PRE to get rid of dead code that has invalid SSA form and
2847         split critical edges again.
2848
2849 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
2850
2851         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2852
2853 2017-05-11  Richard Biener  <rguenther@suse.de>
2854
2855         * passes.c (execute_function_todo): Verify loops if they are
2856         said to be up-to-date.
2857         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
2858         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
2859
2860 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
2861
2862         PR target/80090
2863         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
2864         handle calling assemble_external ourself.
2865
2866         PR target/79027
2867         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
2868         modes with zero size.  Enhance comment.
2869
2870 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2871
2872         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
2873         built-ins for vec_xl and vec_xst with short and char pointer
2874         arguments.
2875
2876 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
2877
2878         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
2879         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
2880         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
2881         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
2882         (_mm_maskz_min_round_ss): New intrinsics.
2883         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
2884         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
2885         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
2886         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
2887         (__builtin_ia32_minss_mask_round): New builtins.
2888         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2889         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2890         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
2891         Rename to ...
2892         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
2893         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
2894         Change to ...
2895         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
2896         ... this.
2897
2898 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
2899
2900         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
2901         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
2902         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
2903         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
2904         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
2905         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
2906         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
2907         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2908         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2909         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
2910         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
2911         (__builtin_ia32_mulss_mask_round): New builtins.
2912         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2913         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2914         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
2915         Rename to ...
2916         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
2917         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2918         Change to ...
2919         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2920         ... this.
2921
2922 2017-05-10  Julia Koval  <julia.koval@intel.com>
2923
2924         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
2925         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
2926         (_mm256_setr_m128i): New intrinsics.
2927
2928 2017-05-10  Julia Koval  <julia.koval@intel.com>
2929
2930         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
2931         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
2932         (_mm_maskz_rcp14_ss): New intrinsics.
2933         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
2934         (__builtin_ia32_rcp14ss_mask): New builtins.
2935         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
2936
2937 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
2938
2939         PR tree-optimization/51513
2940         * tree-cfg.c (gimple_seq_unreachable_p): New function.
2941         (assert_unreachable_fallthru_edge_p): Use it.
2942         (group_case_labels_stmt): Likewise.
2943         * tree-cfg.h: Prototype it.
2944         * stmt.c: Include cfghooks.h and tree-cfg.h.
2945         (emit_case_dispatch_table) <gap_label>: New local variable.
2946         Use it to fill dispatch table gaps.
2947         Test for default_label before updating probabilities.
2948         (expand_case) <default_label>: Remove unneeded initialization.
2949         Test for unreachable default case statement and remove its edge.
2950         Set default_label accordingly.
2951         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
2952
2953 2017-05-10  Carl Love  <cel@us.ibm.com>
2954
2955         * config/rs6000/rs6000-c: Add support for built-in functions
2956         vector signed char        vec_neg (vector signed char)
2957         vector signed short int   vec_neg (vector short int)
2958         vector signed int         vec_neg (vector signed int)
2959         vector signed long long   vec_neg (vector signed long long)
2960         vector float              vec_neg (vector float)
2961         vector double             vec_neg (vector double)
2962         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
2963         overload.
2964         * config/rs6000/altivec.h: Add define for vec_neg
2965         * doc/extend.texi: Update the built-in documentation for the
2966         new built-in functions.
2967
2968 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2969
2970         PR tree-optimization/77644
2971         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
2972
2973 2017-05-10  Nathan Sidwell  <nathan@acm.org>
2974
2975         * dumpfile.h (TDI_lang_all): New.
2976         (TDF_KIND): New. Renumber others
2977         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
2978         than bits.
2979         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
2980         lang-all.
2981         (get_dump_file_name): Adjust suffix generation.
2982         (dump_enable_all): Use TDF_KIND.
2983         * doc/invoke.texi (-fdump-lang-all): Document.
2984
2985         * dumpfile.h: Tabify.
2986
2987 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
2988
2989         PR target/80671
2990         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
2991         Move member access before delete.
2992
2993 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
2994
2995         * tree-inline.c (expand_call_inline): Split block at stmt
2996         before the call.
2997
2998 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2999
3000         PR target/68163
3001         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
3002         are now unused after splitting mov{sf,sd}_hardfloat.
3003         (f32_lr2): Likewise.
3004         (f32_lm): Likewise.
3005         (f32_lm2): Likewise.
3006         (f32_li): Likewise.
3007         (f32_li2): Likewise.
3008         (f32_lv): Likewise.
3009         (f32_sr): Likewise.
3010         (f32_sr2): Likewise.
3011         (f32_sm): Likewise.
3012         (f32_sm2): Likewise.
3013         (f32_si): Likewise.
3014         (f32_si2): Likewise.
3015         (f32_sv): Likewise.
3016         (f32_dm): Likewise.
3017         (f32_vsx): Likewise.
3018         (f32_av): Likewise.
3019         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
3020         For movsf, order stores so the VSX stores occur before the GPR
3021         store which encourages the register allocator to use a traditional
3022         FPR instead of a GPR.  For movsd, order the stores so that the GPR
3023         store comes before the VSX stores to allow the power6 to work.
3024         This is due to the power6 not having a 32-bit integer store
3025         instruction from a FPR.
3026         (movsf_hardfloat): Likewise.
3027         (movsd_hardfloat): Likewise.
3028
3029 2017-05-09  Martin Sebor  <msebor@redhat.com>
3030
3031         PR translation/80280
3032         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
3033         added in r247778.
3034
3035         PR translation/80280
3036         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
3037         data member added in r247778.
3038         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
3039
3040 2017-05-09  Nathan Sidwell  <nathan@acm.org>
3041
3042         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
3043
3044         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
3045         typedefs.
3046
3047 2017-05-09  Marek Polacek  <polacek@redhat.com>
3048
3049         * doc/invoke.texi: Fix typo.
3050
3051 2017-05-09  Richard Biener  <rguenther@suse.de>
3052
3053         * tree-vrp.c (vrp_val_is_max): Adjust comment.
3054         (vrp_val_is_min): Likewise.
3055         (set_value_range_to_value): Likewise.
3056         (set_value_range_to_nonnegative): Likewise.
3057         (gimple_assign_nonzero_p): Likewise.
3058         (gimple_stmt_nonzero_p): Likewise.
3059         (vrp_int_const_binop): Likewise.  Remove unreachable case.
3060         (adjust_range_with_scev): Adjust comments.
3061         (compare_range_with_value): Likewise.
3062         (extract_range_from_phi_node): Likewise.
3063         (test_for_singularity): Likewise.
3064
3065 2017-05-09  Richard Biener  <rguenther@suse.de>
3066
3067         * tree-vrp.c (get_single_symbol): Add assert that we don't
3068         get overflowed constants as invariant part.
3069         (compare_values_warnv): Add comment before the TREE_NO_WARNING
3070         checks.  Use wi::cmp instead of recursing for integer constants.
3071         (compare_values): Just ignore whether we assumed undefined
3072         overflow instead of failing the compare.
3073         (extract_range_for_var_from_comparison_expr): Add comment before the
3074         TREE_NO_WARNING sets.
3075         (test_for_singularity): Likewise.
3076         (extract_range_from_comparison): Do not disable optimization
3077         when we assumed undefined overflow.
3078         (extract_range_basic): Remove init of unused var.
3079
3080 2017-05-09  Richard Biener  <rguenther@suse.de>
3081
3082         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
3083         (extract_range_from_multiplicative_op_1): Adjust.
3084         (extract_range_from_binary_expr_1): Use int_const_binop.
3085
3086 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3087
3088         PR target/80101
3089         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
3090         rs6000_store_data_bypass_p in seven define_bypass directives and
3091         in several comments.
3092         * config/rs6000/rs6000-protos.h: Add prototype for
3093         rs6000_store_data_bypass_p function.
3094         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
3095         function implements slightly different (rs6000-specific) semantics
3096         than store_data_bypass_p, returning false rather than aborting
3097         with assertion error when arguments do not satisfy the
3098         requirements of store data bypass.
3099         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
3100         rs6000_store_data_bypass_p.
3101
3102 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
3103
3104         * config/xtensa/xtensa-protos.h
3105         (xtensa_initial_elimination_offset): New declaration.
3106         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
3107         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
3108         macro definition, add case for FRAME_POINTER_REGNUM when
3109         FRAME_GROWS_DOWNWARD.
3110         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
3111         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
3112         xtensa_initial_elimination_offset.
3113
3114 2017-05-08  Nathan Sidwell  <nathan@acm.org>
3115
3116         * doc/invoke.texi: Alphabetize -fdump options.
3117
3118 2017-05-08  Martin Sebor  <msebor@redhat.com>
3119
3120         PR translation/80280
3121         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
3122
3123 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3124
3125         * target.def (compute_frame_layout): New optional target hook.
3126         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
3127         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
3128         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
3129         target hook.
3130         * reload1.c (verify_initial_elim_offsets): Likewise.
3131         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
3132         (use_simple_return_p): Call arm_compute_frame_layout if needed.
3133         (arm_get_frame_offsets): Split up into this ...
3134         (arm_compute_frame_layout): ... and this function.
3135
3136 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
3137
3138         * config/aarch64/constraints.md (Usa): New constraint.
3139         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
3140
3141 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3142
3143         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
3144         with_multilib_list after it has been checked.
3145
3146 2017-05-08  Richard Biener  <rguenther@suse.de>
3147
3148         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
3149         (bitmap_set_subtract_values): Likewise.
3150
3151 2017-05-08  Richard Biener  <rguenther@suse.de>
3152
3153         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
3154         (gimple_assign_nonzero): ... this and remove strict_overflow_p
3155         argument.
3156         (gimple_stmt_nonzero_warnv_p): Rename to ...
3157         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
3158         argument.
3159         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
3160         (extract_range_basic): Adjust, do not disable propagation on
3161         strict overflow sensitive simplification.
3162         (vrp_visit_cond_stmt): Likewise.
3163
3164 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
3165
3166         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
3167         body size unconditionally.
3168
3169 2017-05-07  Jeff Law  <law@redhat.com>
3170
3171         Revert:
3172         2017-05-06  Jeff Law  <law@redhat.com>
3173         PR tree-optimization/78496
3174         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3175         code.
3176
3177         PR tree-optimization/78496
3178         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3179         (simplify_stmt_using_ranges): Call it.
3180         (vrp_dom_walker::before_dom_children): Extract equivalences
3181         from an ASSERT_EXPR with an equality comparison against a
3182         constant.
3183
3184 2017-05-06  Jeff Law  <law@redhat.com>
3185
3186         PR tree-optimization/78496
3187         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3188         code.
3189
3190         PR tree-optimization/78496
3191         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3192         (simplify_stmt_using_ranges): Call it.
3193         (vrp_dom_walker::before_dom_children): Extract equivalences
3194         from an ASSERT_EXPR with an equality comparison against a
3195         constant.
3196
3197 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
3198
3199         * lra-constraints.c (lra_copy_reg_equiv): New function.
3200         (split_reg): Use it to copy equivalence information from the
3201         original register to the spill register.
3202
3203 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
3204
3205         PR rtl-optimization/75964
3206         * simplify-rtx.c (simplify_const_relational_operation): Remove
3207         invalid handling of comparisons of integer ABS.
3208
3209 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
3210
3211         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
3212         initialize to zero.
3213         (init_regs): Remove declaration.
3214         (function_arg_advance_32): Initialize error_p as boolean variable.
3215
3216 2017-05-05  Nathan Sidwell  <nathan@acm.org>
3217
3218         * store-motion.c (remove_reachable_equiv_notes): Reformat long
3219         lines.  Use for (;;).
3220
3221 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3222
3223         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
3224         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
3225         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
3226         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
3227         VF=2 that require versioning.
3228
3229 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3230
3231         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
3232         int.
3233
3234 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3235
3236         * diagnostic.h (diagnostic_override_option_index): Convert from
3237         macro to inline function.
3238
3239 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3240
3241         * diagnostic.c (last_module_changed_p): New function.
3242         (set_last_module): New function.
3243         (diagnostic_report_current_module): Convert macro usage to
3244         the above functions.
3245         * diagnostic.h (diagnostic_context::last_module): Strengthen
3246         from const line_map * to const line_map_ordinary *.
3247         (diagnostic_last_module_changed): Delete macro.
3248         (diagnostic_set_last_module): Delete macro.
3249
3250 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3251
3252         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
3253         with diagnostic_report_diagnostic.
3254         (diagnostic_n_impl_richloc): Likewise.
3255         * diagnostic.h (report_diagnostic): Delete macro.
3256         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
3257         with diagnostic_report_diagnostic.
3258         * substring-locations.c (format_warning_va): Likewise.
3259
3260 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3261
3262         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
3263         save/restor of format_spec.  Move option-printing code to...
3264         (print_option_information): ...this new function, and
3265         reimplement by simply printing to the pretty_printer,
3266         rather than appending to the format string.
3267
3268 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3269
3270         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
3271         handling logic into...
3272         (update_effective_level_from_pragmas): ...this new function.
3273
3274 2017-05-04  Andrew Waterman  <andrew@sifive.com>
3275
3276         * config/riscv/riscv.opt (mstrict-align): New option.
3277         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
3278         (SLOW_UNALIGNED_ACCESS): Define.
3279         (riscv_slow_unaligned_access): Declare.
3280         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
3281         field.
3282         (riscv_slow_unaligned_access): New variable.
3283         (rocket_tune_info): Set slow_unaligned_access to true.
3284         (optimize_size_tune_info): Set slow_unaligned_access to false.
3285         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
3286         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
3287         (riscv_option_override): Set riscv_slow_unaligned_access.
3288         * doc/invoke.texi: Add -mstrict-align to RISC-V.
3289
3290 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
3291
3292         * config/riscv/riscv.md: Unify indentation.
3293
3294 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3295
3296         PR target/79038
3297         PR target/79202
3298         PR target/79203
3299         * config/rs6000/rs6000.md (u code attribute): Add FIX and
3300         UNSIGNED_FIX.
3301         (extendsi<mode>2): Add support for doing sign extension via
3302         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
3303         don't have ISA 3.0 instructions.
3304         (extendsi<mode>2 splitter): Likewise.
3305         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
3306         generate the normal insns since SImode can now go in vector
3307         registers.  Disallow the special UNSPECs needed for previous
3308         machines to hide SImode being used.  Add new insns
3309         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
3310         (fix_trunc<mode>si2_stfiwx): Likewise.
3311         (fix_trunc<mode>si2_internal): Likewise.
3312         (fixuns_trunc<mode>si2): Likewise.
3313         (fixuns_trunc<mode>si2_stfiwx): Likewise.
3314         (fctiw<u>z_<mode>_smallint): Likewise.
3315         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
3316         of floating point to 32-bit integer from doing a direct move to
3317         the GPR registers to do a store.
3318         (fctiwz_<mode>): Break long line.
3319
3320 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
3321
3322         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
3323         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
3324         (addr_list, addr_offset_valid_p): New.
3325         (split_address_groups): Check offset validity with above function.
3326         (gt-tree-ssa-loop-ivopts.h): Include header file.
3327
3328 2017-05-05  Nathan Sidwell  <nathan@acm.org>
3329
3330         * config.gcc (arm*-*-*): Add missing 'fi'.
3331
3332 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
3333
3334         * doc/invoke.texi (-fopt-info): Explicitly say order of options
3335         included in -fopt-info does not matter.
3336         * doc/optinfo.texi (-fopt-info): Fix description of default
3337         behavour. Explicitly say order of options included in -fopt-info
3338         does not matter.
3339
3340 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3341
3342         * config.gcc: Allow combinations of aprofile and rmprofile values for
3343         --with-multilib-list.
3344         * config/arm/t-multilib: New file.
3345         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
3346         variables.  Remove setting of ISA and floating-point ABI in
3347         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
3348         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
3349         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
3350         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
3351         CPU options.
3352         * config/arm/t-rmprofile: Likewise except for the matches changes.
3353         * doc/install.texi (--with-multilib-list): Document the combination of
3354         aprofile and rmprofile values and warn about pitfalls in doing that.
3355
3356 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
3357
3358         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
3359         (movdi_aarch64): Likewise.
3360
3361 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
3362
3363         PR tree-optimization/80632
3364         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
3365         field.
3366         (build_arrays): Initialize it for virtual phis.
3367         (fix_phi_nodes): Use it for virtual phis.
3368
3369         PR tree-optimization/80558
3370         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
3371         [x, y] op z into [x op, y op z] for op & or | if conditions
3372         are met.
3373
3374 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3375             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3376
3377         PR target/71607
3378         * config/arm/arm.md (use_literal_pool): Remove.
3379         (64-bit immediate split): No longer takes cost into consideration
3380         if arm_disable_literal_pool is enabled.
3381         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
3382         used when arm_disable_literal_pool is enabled.
3383         (arm_max_const_double_inline_cost): Remove use of
3384         arm_disable_literal_pool.
3385         (push_minipool_fix): Add assert.
3386         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
3387         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
3388         (no_literal_pool_sf_immediate): New.
3389
3390 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3391
3392         PR tree-optimization/80613
3393         * tree-ssa-dce.c (propagate_necessity): Remove cases for
3394         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
3395
3396 2017-05-05  Richard Biener  <rguenther@suse.de>
3397
3398         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
3399
3400 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
3401
3402         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
3403         of this flag from insn conditions due to removal from r247495.
3404
3405 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
3406
3407         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
3408         New function.
3409         (arm_early_store_addr_dep_ptr): Likewise.
3410         * config/arm/aarch-common-protos.h
3411         (arm_early_load_addr_dep_ptr): Add prototype.
3412         (arm_early_store_addr_dep_ptr): Likewise.
3413         * config/arm/cortex-a53.md: Add new bypasses.
3414
3415 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
3416
3417         * tree.c (next_type_uid): Change type to unsigned.
3418         (type_hash_canon): Decrement back next_type_uid if
3419         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
3420         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
3421         if possible.
3422
3423 2017-05-04  Martin Sebor  <msebor@redhat.com>
3424
3425         * builtins.c: Fix a trivial typo in a comment.
3426
3427         PR middle-end/79234
3428         * builtins.c (check_sizes): Adjust to handle reading past the end.
3429         Avoid printing excessive upper bound of ranges.  Use %E to print
3430         tree nodes instead of converting them to %wu.
3431         (expand_builtin_memchr): New function.
3432         (compute_dest_size): Rename...
3433         (compute_objsize): ...to this.
3434         (expand_builtin_memcpy): Adjust.
3435         (expand_builtin_mempcpy): Adjust.
3436         (expand_builtin_strcat): Adjust.
3437         (expand_builtin_strcpy): Adjust.
3438         (check_strncat_sizes): Adjust.
3439         (expand_builtin_strncat): Adjust.
3440         (expand_builtin_strncpy): Adjust and simplify.
3441         (expand_builtin_memset): Adjust.
3442         (expand_builtin_bzero): Adjust.
3443         (expand_builtin_memcmp): Adjust.
3444         (expand_builtin): Handle memcmp.
3445         (maybe_emit_chk_warning): Check strncat just once.
3446
3447 2017-05-04  Martin Sebor  <msebor@redhat.com>
3448
3449         PR preprocessor/79214
3450         PR middle-end/79222
3451         PR middle-end/79223
3452         * builtins.c (check_sizes): Add inlining context and issue
3453         warnings even when -Wno-system-headers is set.
3454         (check_strncat_sizes): Same.
3455         (expand_builtin_strncat): Same.
3456         (expand_builtin_memmove): New function.
3457         (expand_builtin_stpncpy): Same.
3458         (expand_builtin): Handle memmove and stpncpy.
3459
3460 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
3461
3462         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
3463         which is not used any more.
3464
3465 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3466
3467         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
3468
3469 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3470
3471         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
3472         (cortexa53_tunings): Likewise.
3473         (cortexa57_tunings): Likewise.
3474         (cortexa72_tunings): Likewise.
3475         (cortexa73_tunings): Likewise.
3476
3477 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3478
3479         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
3480         Set loop alignment to 8.
3481
3482 2017-05-04  Martin Sebor  <msebor@redhat.com>
3483
3484         PR translation/80280
3485         * builtins.c (expand_builtin_object_size): Add missing quoting to
3486         %D and like directives.
3487         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
3488         (hsa_type_for_tree_type): Same.
3489         (verify_function_arguments): Same.
3490         * symtab.c (symbol_table::change_decl_assembler_name): Same.
3491         * varasm.c (get_section): Same.
3492         (mark_weak): Same.
3493
3494 2017-05-04  Martin Sebor  <msebor@redhat.com>
3495
3496         PR translation/80280
3497         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
3498
3499 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
3500
3501         * config/aarch64/aarch64.c (generic_addrcost_table):
3502         Change HI/TI mode setting.
3503
3504 2017-05-04  Martin Jambor  <mjambor@suse.cz>
3505
3506         PR tree-optimization/80622
3507         * tree-sra.c (comes_initialized_p): New function.
3508         (build_accesses_from_assign): Only set write lazily when
3509         comes_initialized_p is false.
3510         (analyze_access_subtree): Use comes_initialized_p.
3511         (propagate_subaccesses_across_link): Assert !comes_initialized_p
3512         instead of testing for PARM_DECL.
3513
3514 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3515
3516         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
3517         constraint on operand 0 to allow more general addressing modes.
3518         Adjust output template.
3519         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
3520         New function.
3521         * config/aarch64/aarch64-protos.h
3522         (aarch64_address_valid_for_prefetch_p): Declare prototype.
3523         * config/aarch64/constraints.md (Dp): New address constraint.
3524         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
3525         predicate.
3526
3527 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
3528
3529         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
3530         update use of estimate_ipcp_clone_size_and_time.
3531         (estimate_local_effects): Update use of
3532         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
3533         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
3534         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
3535         Return nonspecialized time.
3536
3537 2017-05-04  Richard Biener  <rguenther@suse.de>
3538
3539         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
3540         for the last VUSE which def dominates the PHI.  Directly call
3541         maybe_skip_until.
3542         (get_continuation_for_phi_1): Remove.
3543
3544 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
3545
3546         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
3547         to explain the use of truncating division.  Cap the number of
3548         iterations to the maximum given by nb_iterations_upper_bound,
3549         if defined.
3550
3551 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3552
3553         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
3554         * configure: Regenerate.
3555         * config.in: Regenerate.
3556         * config/i386/driver-mingw32.c: new file.
3557         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
3558         * config.host: Link driver-mingw32.o on MinGW host.
3559         * doc/install.texi: Document new --enable-mingw-wildcard configure
3560         option.
3561
3562 2017-05-04  Marek Polacek  <polacek@redhat.com>
3563
3564         PR tree-optimization/80612
3565         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
3566
3567 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3568             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
3569
3570         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
3571         (movt splitter): Likewise.
3572         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
3573         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
3574         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
3575         block for Thumb-1 with MOVT.
3576         (thumb2_legitimate_address_p): Move code block ...
3577         (can_avoid_literal_pool_for_label_p): ... into this new function.
3578         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
3579         literal pool.
3580         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
3581         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
3582         "M-profile targets with the MOVT instruction".
3583
3584 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
3585
3586         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
3587         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
3588         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
3589
3590 2017-05-04  Martin Liska  <mliska@suse.cz>
3591
3592         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
3593         variable cond_code.
3594
3595 2017-05-04  Richard Biener  <rguenther@suse.de>
3596
3597         * tree.c (array_at_struct_end_p): Handle arrays at struct
3598         end with flexarrays more conservatively.  Refactor and treat
3599         arrays of arrays or aggregates more strict.  Fix
3600         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
3601         * tree.c (array_at_struct_end_p): Adjust prototype.
3602         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
3603         * gimple-fold.c (get_range_strlen): Likewise.
3604         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
3605
3606 2017-05-04  Richard Biener  <rguenther@suse.de>
3607
3608         PR tree-optimization/31130
3609         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
3610         false.
3611         (supports_overflow_infinity): Likewise.
3612         (is_negative_overflow_infinity): Likewise.
3613         (is_positive_overflow_infinity): Likewise.
3614         (is_overflow_infinity): Likewise.
3615         (stmt_overflow_infinity): Likewise.
3616         (overflow_infinity_range_p): Likewise.
3617         (usable_range_p): Remove as always returning true.
3618         (make_overflow_infinity): Remove.
3619         (negative_overflow_infinity): Likewise.
3620         (positive_overflow_infinity): Likewise.
3621         (avoid_overflow_infinity): Likewise.
3622         (set_value_range): Adjust accordingly.
3623         (set_value_range_to_nonnegative): Likewise, remove now unused
3624         overflow_infinity arg.
3625         (vrp_operand_equal_p): Adjust.
3626         (update_value_range): Likewise.
3627         (range_int_cst_singleton_p): Likewise.
3628         (operand_less_p): Likewise.
3629         (compare_values_warnv): Likewise.
3630         (extract_range_for_var_from_comparison_expr): Likewise.
3631         (vrp_int_const_binop): Likewise.
3632         (zero_nonzero_bits_from_vr): Likewise.
3633         (extract_range_from_multiplicative_op_1): Likewise.
3634         (extract_range_from_binary_expr_1): Likewise.
3635         (extract_range_from_unary_expr): Likewise.
3636         (extract_range_from_comparison): Likewise.
3637         (extract_range_basic): Likewise.
3638         (adjust_range_with_scev): Likewise.
3639         (compare_ranges): Likewise.
3640         (compare_range_with_value): Likewise.
3641         (dump_value_range): Likewise.
3642         (test_for_singularity): Likewise, remove strict_overflow_p parameter
3643         never used.
3644         (simplify_cond_using_ranges): Adjust.
3645
3646 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
3647
3648         * brig-builtins.def: Added a builtin for class_f64.
3649         * builtin-types.def: Added a builtin type needed by class_f64.
3650
3651 2017-05-03  Jason Merrill  <jason@redhat.com>
3652
3653         * timevar.def: Add TV_CONSTEXPR.
3654
3655 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
3656
3657         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
3658
3659 2017-05-03  Martin Jambor  <mjambor@suse.cz>
3660
3661         * ipa-prop.c (ipa_update_after_lto_read): Removed.
3662         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
3663         * ipa-cp.c (ipcp_propagate_stage): Do not call
3664         ipa_update_after_lto_read.
3665         * ipa-inline.c (ipa_inline): Likewise.
3666
3667 2017-05-03  Martin Jambor  <mjambor@suse.cz>
3668
3669         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
3670         tag.  Added a default constructor and a destructor.
3671         (ipa_edge_args_sum_t): New class;
3672         (ipa_edge_args_sum): Declare.
3673         (ipa_edge_args_vector): Remove declaration.
3674         (IPA_EDGE_REF): Use ipa_edge_args_sum.
3675         (ipa_free_edge_args_substructures): Remove declaration.
3676         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
3677         (ipa_edge_args_info_available_for_edge_p): Likewise.
3678         * ipa-prop.c (ipa_edge_args_vector): Removed.
3679         (edge_removal_hook_holder): Likewise.
3680         (edge_duplication_hook_holder): Likewise.
3681         (ipa_edge_args_sum): New variable.
3682         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
3683         ipa_edge_args_vector.
3684         (ipa_free_edge_args_substructures): Likewise.
3685         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
3686         ipa_edge_args_vector.
3687         (ipa_edge_removal_hook): Turned into method
3688         ipa_edge_args_sum_t::remove.
3689         (ipa_edge_duplication_hook): Turned into method
3690         ipa_edge_args_sum_t::duplicate.
3691         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
3692         registering edge hooks.
3693         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
3694         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
3695         ipa_edge_args_sum instead of ipa_edge_args_vector.
3696         * ipa-profile.c (ipa_profile): Likewise.
3697
3698 2017-05-03  Martin Jambor  <mjambor@suse.cz>
3699
3700         * symbol-summary.h (function_summary): New method exists.
3701         (function_summary::symtab_removal): Deallocate through release.
3702         (call_summary): New class.
3703         (gt_ggc_mx): New overload.
3704         (gt_pch_nx): Likewise.
3705         (gt_pch_nx): Likewise.
3706
3707 2017-05-03  Jeff Law  <law@redhat.com>
3708
3709         PR tree-optimization/78496
3710         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
3711         from simplify_cond_using_ranges.  Split off code to walk
3712         backwards through casts into ...
3713         (simplify_cond_using_ranges_2): New function.
3714         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
3715         (execute_vrp): After identifying jump threads, call
3716         simplify_cond_using_ranges_2.
3717
3718 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
3719
3720         PR bootstrap/80609
3721         * ipa-inline.h (inline_summary): Add ctor.
3722         (create_ggc): Do not use ggc_cleared_alloc.
3723
3724 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
3725             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3726
3727         * gcc.c (handle_braces): Support escaping in switch matching
3728         text.
3729         * doc/invoke.texi (Spec Files): Document it.
3730         Remove superfluous @code markup in items.
3731
3732 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
3733
3734         * diagnostic-show-locus.c (struct column_range): New struct.
3735         (get_affected_columns): New function.
3736         (get_printed_columns): New function.
3737         (struct correction): New struct.
3738         (correction::ensure_capacity): New function.
3739         (correction::ensure_terminated): New function.
3740         (struct line_corrections): New struct.
3741         (line_corrections::~line_corrections): New dtor.
3742         (line_corrections::add_hint): New function.
3743         (layout::print_trailing_fixits): Reimplement in terms of the new
3744         classes.
3745         (selftest::test_overlapped_fixit_printing): New function.
3746         (selftest::diagnostic_show_locus_c_tests): Call it.
3747
3748 2017-05-03  Nathan Sidwell  <nathan@acm.org>
3749
3750         Canonicalize canonical type hashing
3751         * tree.h (type_hash_canon_hash): Declare.
3752         * tree.c (type_hash_list, attribute_hash_list): Move into
3753         type_hash_canon_hash.
3754         (build_type_attribute_qual_variant): Break out hash code calc into
3755         type_hash_canon_hash.
3756         (type_hash_canon_hash): New.  Generic type hash computation.
3757         (build_range_type_1, build_array_type_1, build_function_type,
3758         build_method_type_directly, build_offset_type, build_complex_type,
3759         make_vector_type): Call it.
3760
3761 2017-05-03  Richard Biener  <rguenther@suse.de>
3762
3763         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3764         When all DRs have unknown misaligned do not always peel
3765         when there is a store but apply the same costing model as if
3766         there were only loads.
3767
3768 2017-05-03  Richard Biener  <rguenther@suse.de>
3769
3770         Revert
3771         PR tree-optimization/80492
3772         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3773         compare_base_decls returning dont-know properly.
3774
3775 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3776
3777         * config/arm/iterators.md (CCSI): New mode iterator.
3778         (arch): New mode attribute.
3779         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
3780         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
3781         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
3782         code iterator for success result mode.
3783         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
3784         the corresponding new insn generators.
3785
3786 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
3787
3788         Revert r247509
3789         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3790         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3791
3792 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3793
3794         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
3795         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
3796         (DDR_A): Wrap DDR argument in brackets.
3797         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
3798         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
3799         (DDR_REVERSED_P): Likewise.
3800
3801 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
3802
3803         PR tree-optimization/79472
3804         * tree-switch-conversion.c (struct switch_conv_info): Add
3805         contiguous_range and default_case_nonstandard fields.
3806         (collect_switch_conv_info): Compute contiguous_range and
3807         default_case_nonstandard fields, don't clear final_bb if
3808         contiguous_range and only the default case doesn't have the required
3809         structure.
3810         (check_all_empty_except_final): Set default_case_nonstandard instead
3811         of failing if contiguous_range and the default case doesn't have empty
3812         block.
3813         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
3814         and only the default case doesn't have the required constants.  Skip
3815         virtual phis.
3816         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
3817         if default_case_nonstandard.
3818         (build_constructors): Build constant 1 just once.  Assert that default
3819         values aren't inserted in between cases if contiguous_range.  Skip
3820         virtual phis.
3821         (build_arrays): Skip virtual phis.
3822         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
3823         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
3824         Handle virtual phis.
3825         (gen_inbound_check): Handle default_case_nonstandard case.
3826         (process_switch): Adjust check_final_bb caller.  Call
3827         gather_default_values with the first non-default case instead of
3828         default case if default_case_nonstandard.
3829
3830 2017-05-02  Nathan Sidwell  <nathan@acm.org>
3831
3832         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
3833         check.  Fix formatting.
3834
3835 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
3836
3837         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
3838         errors when comparing specialized and unspecialized times.
3839
3840 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
3841
3842         * diagnostic-show-locus.c
3843         (layout::should_print_annotation_line_p): Make private.
3844         (layout::print_annotation_line): Make private.
3845         (layout::annotation_line_showed_range_p): Make private.
3846         (layout::show_ruler): Make private.
3847         (layout::print_source_line): Make private.  Pass in line and
3848         line_width, rather than calling location_get_source_line.  Drop
3849         returned value.
3850         (layout::print_leading_fixits): New method.
3851         (layout::print_any_fixits): Rename to...
3852         (layout::print_trailing_fixits): ...this, and make private.
3853         Don't print newline fixits.
3854         (diagnostic_show_locus): Move logic for printing one row into...
3855         (layout::print_line): ...this new function.  Move the
3856         location_get_source_line call and error-handling from
3857         print_source_line to here.  Call print_leading_fixits, and rename
3858         print_any_fixits to print_trailing_fixits.
3859         (selftest::test_fixit_insert_containing_newline): Update now that
3860         newlines are partially supported.
3861         (selftest::test_fixit_insert_containing_newline_2): New test.
3862         (selftest::test_fixit_replace_containing_newline): Update comments.
3863         (selftest::diagnostic_show_locus_c_tests): Call the new test.
3864         * edit-context.c (class added_line): New class.
3865         (class edited_line): Describe newline handling in comment.
3866         (edited_line::actually_edited_p): New method.
3867         (edited_line::print_content): Delete redundant decl.
3868         (edited_line::m_predecessors): New field.
3869         (edited_file::print_content): Call edited_line::print_content.
3870         (edited_file::print_diff): Update to support newlines.
3871         (edited_file::print_diff_hunk): Likewise.
3872         (edited_file::print_run_of_changed_lines): New function.
3873         (edited_file::print_diff_line): Convert to...
3874         (print_diff_line): ...this.
3875         (edited_file::get_effective_line_count): New function.
3876         (edited_line::edited_line): Initialize new field m_predecessors.
3877         (edited_line::~edited_line): Clean up m_predecessors.
3878         (edited_line::apply_fixit): Handle newlines.
3879         (edited_line::get_effective_line_count): New function.
3880         (edited_line::print_content): New function.
3881         (edited_line::print_diff_lines): New function.
3882         (selftest::test_applying_fixits_insert_containing_newline): New
3883         test.
3884         (selftest::test_applying_fixits_replace_containing_newline): New
3885         test.
3886         (selftest::insert_line): New function.
3887         (selftest::test_applying_fixits_multiple_lines): Add example of
3888         inserting a line.
3889         (selftest::edit_context_c_tests): Call the new tests.
3890
3891 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3892
3893         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
3894         parameter cand.  Update dump information.
3895         (get_computation_cost): Update uses.
3896
3897 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3898
3899         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
3900         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
3901         (get_computation_at, rewrite_use_address): Update use of
3902         get_computation_aff.
3903
3904 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3905
3906         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
3907         (get_computation): Delete.
3908         (get_computation_cost): Implement like get_computation_cost_at.
3909         Use get_computation_at.
3910         (get_computation_cost_at): Delete.
3911         (rewrite_use_nonlinear_expr): Use get_computation_at.
3912         (rewrite_use_compare, remove_unused_ivs): Ditto.
3913
3914 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3915
3916         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
3917
3918 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3919
3920         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
3921         (ivopts_global_cost_for_size): Rename parameter and update uses.
3922         (iv_ca_recount_cost): Update uses.
3923         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
3924         candidates seperately in n_invs and n_cands.
3925         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
3926
3927 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3928
3929         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
3930         (find_inv_vars_cb): New.
3931         (find_depends): Renamed to ...
3932         (find_inv_vars): ... this.
3933         (add_candidate_1, force_var_cost): Call find_inv_vars.
3934         (split_address_cost, determine_group_iv_cost_cond): Ditto.
3935
3936 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3937
3938         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
3939         inv_vars.  Add inv_exprs.
3940         (struct iv_cand): Rename depends_on to inv_vars.
3941         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
3942         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
3943         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
3944         (dump_cand): Dump inv_vars.
3945         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
3946         (record_invariant, find_depends, add_candidate_1): Ditto.
3947         (set_group_iv_cost, force_var_cost): Ditto.
3948         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
3949         (get_computation_cost_at, get_computation_cost): Ditto.
3950         (determine_group_iv_cost_generic): Ditto.
3951         (determine_group_iv_cost_address): Ditto.
3952         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
3953         (determine_group_iv_costs): Ditto.
3954         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
3955         (iv_ca_set_remove_invariants): Renamed to ...
3956         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
3957         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
3958         (iv_ca_set_add_invariants):  Renamed to ...
3959         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
3960         (iv_ca_set_cp): Use iv_ca_set_add_invs.
3961         (iv_ca_has_deps): Support inv_vars and inv_exprs.
3962         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
3963         (create_new_ivs): Remove useless dump.
3964
3965 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3966
3967         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
3968         iv_cand code.
3969         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
3970         (iv_ca_set_no_cp, create_new_iv): Ditto.
3971
3972 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
3973
3974         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3975
3976 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
3977
3978         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
3979         function tree_check2.
3980
3981 2017-05-02  Martin Liska  <mliska@suse.cz>
3982
3983         * doc/gcov.texi: Add missing preposition.
3984         * gcov.c (function_info::function_info): Properly fill up
3985         all member variables.
3986
3987 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
3988
3989         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
3990
3991 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
3992
3993         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
3994
3995 2017-05-02  Martin Liska  <mliska@suse.cz>
3996
3997         PR lto/77954.
3998         * lto-streamer-in.c (lto_read_tree_1): Remove
3999         LTO_STREAMER_DEBUG.
4000         * lto-streamer.c (struct tree_hash_entry): Likewise.
4001         (struct tree_entry_hasher): Likewise.
4002         (tree_entry_hasher::hash): Likewise.
4003         (tree_entry_hasher::equal): Likewise.
4004         (lto_streamer_init): Likewise.
4005         (lto_orig_address_map): Likewise.
4006         (lto_orig_address_get): Likewise.
4007         (lto_orig_address_remove): Likewise.
4008         * lto-streamer.h: Likewise.
4009         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
4010         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
4011
4012 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
4013
4014         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
4015         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
4016         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
4017         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
4018         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
4019         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
4020         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
4021         (mm_maskz_sub_ss): New intrinsics.
4022         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4023         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
4024         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
4025         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
4026         (__builtin_ia32_subss_mask_round): New builtins.
4027         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4028         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
4029         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
4030         Renamed to ...
4031         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
4032         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
4033         Changed to ...
4034         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
4035         ... this.
4036
4037 2017-05-02  Martin Jambor  <mjambor@suse.cz>
4038
4039         PR tree-optimization/78687
4040         * tree-sra.c (access): New field parent.
4041         (process_subtree_disqualification): New function.
4042         (disqualify_candidate): Call it.
4043         (build_accesses_from_assign): Reset write flag if creating an
4044         assighnment link.
4045         (build_access_subtree): Fill in parent field and also prpagate
4046         down grp_write flag.
4047         (create_artificial_child_access): New parameter set_grp_write, set
4048         grp_write to its value.
4049         (propagate_subaccesses_across_link): Also propagate grp_write flag
4050         values.
4051         (propagate_all_subaccesses): Push the closest parent back to work
4052         queue if add_access_to_work_queue returned true.
4053
4054 2017-05-02  Richard Biener  <rguenther@suse.de>
4055
4056         * common.opt (fstrict-overflow): Alias negative to fwrapv.
4057         * doc/invoke.texi (fstrict-overflow): Remove all traces of
4058         -fstrict-overflow documentation.
4059         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
4060         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
4061         flag_strict_overflow.
4062         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
4063         * lto-opts.c (lto_write_options): Do not stream it.
4064         * lto-wrapper.c (merge_and_complain): Do not handle it.
4065         * opts.c (default_options_table): Do not set -fstrict-overflow.
4066         (finish_options): Likewise do not clear it when sanitizing.
4067         * simplify-rtx.c (simplify_const_relational_operation): Do not
4068         test flag_strict_overflow.
4069
4070 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
4071
4072         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
4073         using enabled attribute.
4074         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
4075         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
4076         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
4077         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
4078         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
4079         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
4080         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
4081         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
4082         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
4083         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
4084
4085 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
4086
4087         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
4088
4089 2017-05-02  Richard Biener  <rguenther@suse.de>
4090
4091         PR tree-optimization/80591
4092         Revert
4093         2017-04-10  Richard Biener  <rguenther@suse.de>
4094
4095         * tree-ssa-structalias.c (find_func_aliases): Properly handle
4096         asm inputs.
4097
4098 2017-05-02  Richard Biener  <rguenther@suse.de>
4099
4100         PR tree-optimization/80549
4101         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
4102         (cleanup_tree_cfg_noloop): Create forwarders to known loop
4103         headers if they do not have a preheader.
4104
4105 2017-05-02  Martin Liska  <mliska@suse.cz>
4106
4107         PR other/80589
4108         * common.opt: Fix typo.
4109         * doc/invoke.texi: Likewise.
4110
4111 2017-05-01  Jan Beulich  <jbeulich@suse.com>
4112
4113         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
4114         swapping, add (x,x,m,x,n) alternative.
4115
4116 2017-05-01  Nathan Sidwell  <nathan@acm.org>
4117
4118         * calls.c (combine_pending_stack_adjustment_and_call): Remove
4119         unnecessary unadjusted_alignment check.
4120
4121 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
4122
4123         PR c++/80038
4124         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
4125         operations here.
4126         * gimplify.c (gimplify_cilk_detach): New function.
4127         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
4128         * tree-core.h: Document EXPR_CILK_SPAWN.
4129         * tree.h (EXPR_CILK_SPAWN): Define.
4130
4131 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
4132
4133         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
4134         to use new fixit_hint representation, using the "replace" logic.
4135         (get_line_span_for_fixit_hint): Likewise.
4136         (layout::print_any_fixits): Likewise.
4137         (selftest::test_one_liner_many_fixits): Rename to...
4138         (selftest::test_one_liner_many_fixits_1): ...this, and update
4139         comment and expected output to reflect that the multiple fix-it
4140         hints are now consolidated into one insertion.
4141         (selftest::test_one_liner_many_fixits_2): New test.
4142         (selftest::test_diagnostic_show_locus_one_liner): Update for
4143         above.
4144         (selftest::test_fixit_consolidation): Update for fix-it API
4145         change.
4146         * diagnostic.c (print_parseable_fixits): Likewise.
4147         * edit-context.c (edited_line::m_line_events): Convert from
4148         auto_vec <line_event *> to auto_vec <line_event>.
4149         (class line_event): Convert from abstract base class to a concrete
4150         class, taking over the role of replace_event.
4151         (class insert_event): Delete.
4152         (class replace_event): Rename to class line_event.  Convert to
4153         half-open range.
4154         (edit_context::add_fixits): Reimplement.
4155         (edit_context::apply_insert): Delete.
4156         (edit_context::apply_replace): Rename to...
4157         (edit_context::apply_fixit): ...this.  Convert to half-open range.
4158         (edited_file::apply_insert): Delete.
4159         (edited_file::apply_replace): Rename to...
4160         (edited_file::apply_fixit): ...this.
4161         (edited_line::~edited_line): Drop deletion of events.
4162         (edited_line::apply_insert): Delete.
4163         (edited_line::apply_replace): Rename to...
4164         (edited_line::apply_fixit): ...this.  Convert to half-open range.
4165         Update for change to type of m_line_events.
4166         * edit-context.h (edit_context::apply_insert): Delete.
4167         (edit_context::apply_replace): Rename to...
4168         (edit_context::apply_fixit): ...this.
4169
4170 2017-05-01  Martin Sebor  <msebor@redhat.com>
4171
4172         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
4173         known.
4174
4175 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
4176
4177         PR target/68491
4178         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
4179         __get_cpuid_max returns 0.
4180         (__get_cpuid_count): Ditto.
4181
4182 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4183
4184         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
4185         replacement expression is another instance of one of its arguments.
4186
4187 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
4188
4189         PR target/79430
4190         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
4191         check for stack push/pop autoinc.
4192         * config/i386/i386.c (ix86_agi_dependent): Return false
4193         if the only reason why modified_in_p returned true is that
4194         addr is SP based and set_insn is a push or pop.
4195
4196 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
4197
4198         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
4199         overflow check.
4200
4201 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
4202
4203         PR ipa/79224
4204         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
4205         (account_size_time): Use two predicates - exec_pred and
4206         nonconst_pred_ptr.
4207         (evaluate_conditions_for_known_args): Compute both clause and
4208         nonspec_clause.
4209         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
4210         (inline_summary_t::duplicate): Update.
4211         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
4212         separately.
4213         (compute_inline_parameters): Likewise.
4214         (estimate_edge_size_and_time): Update caluclation of time.
4215         (estimate_node_size_and_time): Compute both time and nonspecialized
4216         time.
4217         (estimate_ipcp_clone_size_and_time): Update.
4218         (inline_merge_summary): Update.
4219         (do_estimate_edge_time): Update.
4220         (do_estimate_edge_size): Update.
4221         (do_estimate_edge_hints): Update.
4222         (inline_read_section, inline_write_summary): Stream both new predicates.
4223         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
4224         as argument.
4225         (compute_inlined_call_time): Cleanup.
4226         (big_speedup_p): Update.
4227         (edge_badness): Update.
4228         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
4229         (size_time_entry): Replace predicate by exec_predicate and
4230         nonconst_predicate.
4231         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
4232         (estimate_edge_time): Return also nonspec_time.
4233         (reset_edge_growth_cache): Update.
4234
4235 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
4236
4237         PR rtl-optimization/80491
4238         * ifcvt.c (noce_process_if_block): When looking for x setter
4239         with missing else_bb, don't check only the insn right before
4240         cond_earliest, but look for the last insn that x is modified in
4241         within the same bb.
4242
4243         PR rtl-optimization/80491
4244         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
4245
4246 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
4247
4248         PR tree-optimization/80487
4249         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
4250
4251 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4252
4253         PR tree-optimization/79697
4254         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
4255         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
4256         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
4257         BUILT_IN_STRNDUP.
4258         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
4259         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
4260
4261 2017-04-28  Martin Sebor  <msebor@redhat.com>
4262
4263         PR tree-optimization/80523
4264         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
4265         (init_target_to_host_charmap, target_to_host, target_strtol10): New
4266         functions.
4267         (maybe_warn, format_directive, parse_directive): Use new functions.
4268         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
4269
4270 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
4271
4272         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
4273
4274 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4275
4276         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
4277         target_header_dir): Set correctly.
4278         * configure: Regenerated.
4279         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
4280         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
4281         instead of SYSTEM_HEADER_DIR.
4282
4283 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
4284
4285         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
4286         (estimate_local_effects): Likewise.
4287         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
4288         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
4289         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
4290         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
4291         do_estimate_edge_time, estimate_edge_time): Likewise.
4292         * ipa-inline-analysis.c (estimate_node_size_and_time,
4293         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
4294         (estimate_time_after_inlining): Remove.
4295
4296 2017-04-28  Martin Liska  <mliska@suse.cz>
4297
4298         * doc/gcov.texi: Enhance documentation of gcov.
4299
4300 2017-04-28  Martin Liska  <mliska@suse.cz>
4301
4302         * doc/gcov.texi: Sort options in alphabetic order.
4303         * doc/gcov-dump.texi: Likewise.
4304         * doc/gcov-tool.texi: Likewise.
4305         * gcov.c (print_usage): Likewise.
4306         * gcov-dump.c (print_usage): Likewise.
4307         * gcov-tool.c (print_merge_usage_message): Likewise.
4308         (print_rewrite_usage_message): Likewise.
4309         (print_overlap_usage_message): Likewise.
4310
4311 2017-04-28  Martin Liska  <mliska@suse.cz>
4312
4313         PR gcov-profile/53915
4314         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
4315
4316 2017-04-28  Martin Liska  <mliska@suse.cz>
4317
4318         PR gcov-profile/79891
4319         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
4320         is marked by compiler as living on a line.
4321         (get_cycles_count): Remove usage of the union.
4322         (output_intermediate_file): Likewise.
4323         (find_source): Fix GNU coding style.
4324         (accumulate_line_counts): Remove old non-all block mode.
4325         (output_lines): Remove usage of the union.
4326         * profile.c (output_location): Include all BBs, even if
4327         belonging to a same line (and file) as a previous BB.
4328
4329 2017-04-28  Martin Liska  <mliska@suse.cz>
4330
4331         * gcov.c (process_args): Handle new argument 'w'.
4332         (read_graph_file): Assign ID to BBs.
4333         (output_branch_count): Display BB # if verbose flag is set.
4334         (output_lines): Likewise for arcs.
4335         (print_usage): Add '--verbose' option help.
4336         * doc/gcov.texi: Document --verbose (-w) option.
4337
4338 2017-04-28  Martin Liska  <mliska@suse.cz>
4339
4340         * gcov.c (struct block_location_info): New struct.
4341         (process_file): Fill up the new structure.
4342         (read_graph_file): Replace usage of encoding by the newly added
4343         struct.
4344         (add_line_counts): Likewise.
4345         (accumulate_line_counts): Remove usage of the union.
4346         (function_info::function_info): New function.
4347         (function_info::~function_info): Likewise.
4348         (process_file): Call delete instead of release_function.
4349         (release_function): Release the function.
4350         (release_structures): Call delete instead of release_function.
4351         (solve_flow_graph): Replace usage of num_blocks.
4352         (find_exception_blocks): Likewise.
4353         (output_lines): Fix GNU coding style.
4354
4355 2017-04-28  Martin Liska  <mliska@suse.cz>
4356
4357         PR driver/56469
4358         * coverage.c (coverage_remove_note_file): New function.
4359         * coverage.h: Declare the function.
4360         * toplev.c (finalize): Clean if an error has been seen.
4361
4362 2017-04-28  Martin Liska  <mliska@suse.cz>
4363
4364         PR gcov-profile/80031
4365         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
4366         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
4367         * gcov.c (read_graph_file): Read just number of blocks.
4368         * profile.c (branch_prob): Do not stream 0 flags per a basic
4369         block.
4370
4371 2017-04-28  Martin Liska  <mliska@suse.cz>
4372
4373         * gcov-dump.c (tag_*): Add new argument to declarations.
4374         (dump_gcov_file): Likewise.
4375         (tag_blocks): Add and use new argument depth.
4376         (tag_arcs): Likewise.
4377         (tag_lines): Likewise.
4378         (tag_counters): Likewise.
4379         (tag_summary): Likewise.
4380         (dump_working_sets): Use depth to do a proper indentation.
4381
4382 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
4383
4384         PR bootstrap/80531
4385         * cgraph.h (symtab_node::debug_symtab): No longer inline.
4386         * symtab.c (symtab_node::debug_symtab): Move definition here.
4387
4388 2017-04-28  Richard Biener  <rguenther@suse.de>
4389
4390         * lto-streamer.h (LTO_major_version): Bump to 7.
4391
4392 2017-04-28  Richard Biener  <rguenther@suse.de>
4393
4394         * tree-vrp.c (assert_info): New struct.
4395         (add_assert_info): New helper.
4396         (register_edge_assert_for_2): Refactor to add asserts to a vector
4397         of assert_info.
4398         (register_edge_assert_for_1): Likewise.
4399         (register_edge_assert_for): Likewise.
4400         (finish_register_edge_assert_for): New helper actually registering
4401         asserts where live on edge.
4402         (find_conditional_asserts): Adjust.
4403         (find_switch_asserts): Likewise.
4404         (evrp_dom_walker::try_find_new_range): Generalize.
4405         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
4406
4407 2017-04-27  Marek Polacek  <polacek@redhat.com>
4408
4409         PR sanitizer/80349
4410         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
4411         arg10 and arg11 to itype.
4412
4413 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
4414
4415         * doc/extend.texi (Object Size Checking): Improve grammar.
4416
4417 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
4418
4419         PR target/80530
4420         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
4421         that the logic for permitting reciprocal estimates matches that
4422         in use_rsqrt_p.
4423
4424 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4425
4426         PR c++/80534
4427         * tree.c (type_cache_hasher::equal): Only compare
4428         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
4429         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
4430         non-aggregate element types.
4431         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
4432         about the flag on ARRAY_TYPEs in the comment, formatting fix.
4433
4434 2017-04-27  Richard Biener  <rguenther@suse.de>
4435
4436         PR middle-end/80533
4437         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
4438         stripping ARRAY_REFs from MEM_EXPR make sure we're not
4439         keeping a reference to a trailing array.
4440
4441 2017-04-27  Richard Biener  <rguenther@suse.de>
4442
4443         PR middle-end/80539
4444         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
4445         being in loop-closed SSA form conservatively.
4446         (chrec_fold_multiply_poly_poly): Likewise.
4447
4448 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
4449
4450         PR middle-end/79665
4451         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
4452         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
4453
4454 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4455
4456         PR target/77728
4457         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
4458         (aarch64_function_arg_alignment): Return unsigned int again, but still
4459         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
4460         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
4461         Don't emit -Wpsabi note.
4462         (aarch64_function_arg_boundary): Likewise.
4463         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
4464         caller.
4465
4466 2017-04-26  Nathan Sidwell  <nathan@acm.org>
4467
4468         * tree.h (crc32_unsigned_n): Declare.
4469         (crc32_unsigned, crc32_unsigned): Make inline.
4470         * tree.c (crc32_unsigned_bits): Replace with ...
4471         (crc32_unsigned_n): ... this.
4472         (crc32_unsigned, crc32_byte): Remove.
4473         (crc32_string): Remove unnecessary braces.
4474
4475 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
4476
4477         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
4478         * ipa-inline-analysis.c (MAX_TIME): Remove.
4479         (account_size_time): Use sreal for time.
4480         (dump_inline_summary): Update.
4481         (estimate_function_body_sizes): Update.
4482         (estimate_edge_size_and_time): Update.
4483         (estimate_calls_size_and_time): Update.
4484         (estimate_node_size_and_time): Update.
4485         (inline_merge_summary): Update.
4486         (inline_update_overall_summary): Update.
4487         (estimate_time_after_inlining): Update.
4488         (inline_read_section): Update.
4489         (inline_write_summary): Update.
4490         * ipa-inline.c (compute_uninlined_call_time): Update.
4491         (compute_inlined_call_time): Update.
4492         (recursive_inlining): Update.
4493         (inline_small_functions): Update.
4494         (dump_overall_stats): Update.
4495         * ipa-inline.h: Include sreal.h.
4496         (size_time_entry): Turn time to sreal.
4497         (inline_summary): Turn self_time nad time to sreal.
4498
4499 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
4500
4501         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
4502         data-streamer.h
4503         (sreal::stream_out, sreal::stream_in): New.
4504         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
4505
4506 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
4507
4508         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
4509         environment.
4510
4511 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
4512
4513         PR target/70799
4514         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4515         Handle ASHIFTRT.
4516         (dimode_scalar_chain::compute_convert_gain): Ditto.
4517         (dimode_scalar_chain::make_vector_copies): Ditto.
4518         (dimode_scalar_chain::convert_reg): Ditto.
4519         (dimode_scalar_chain::convert_insn): Ditto.
4520         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
4521         (VI248_AVX512BW_1): New mode iterator.
4522         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
4523         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
4524         mode iterator.
4525
4526 2017-04-25  Martin Sebor  <msebor@redhat.com>
4527
4528         PR tree-optimization/80497
4529         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
4530         constants are representable in HOST_WIDE_INT.
4531         (parse_directive): Ditto.
4532
4533 2017-04-25  Martin Sebor  <msebor@redhat.com>
4534
4535         PR bootstrap/80486
4536         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
4537         (new_zero_array): Adjust signature.
4538         (dom_info::dom_init): Used unsigned rather that size_t.
4539         (dom_info::dom_info): Same.
4540
4541 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4542             Jakub Jelinek  <jakub@redhat.com>
4543
4544         PR target/77728
4545         * config/arm/arm.c: Include gimple.h.
4546         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
4547         returns negative, increment ncrn only if it returned positive.
4548         (arm_needs_doubleword_align): Return int instead of bool,
4549         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
4550         members, but if there is any such non-FIELD_DECL
4551         > PARM_BOUNDARY aligned decl, return -1 instead of false.
4552         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
4553         returns negative, increment nregs only if it returned positive.
4554         (arm_setup_incoming_varargs): Likewise.
4555         (arm_function_arg_boundary): Emit -Wpsabi note if
4556         arm_needs_doubleword_align returns negative, return
4557         DOUBLEWORD_ALIGNMENT only if it returned positive.
4558
4559 2017-04-25  Marek Polacek  <polacek@redhat.com>
4560
4561         PR sanitizer/80349
4562         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
4563         first argument to type.
4564
4565 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4566
4567         PR target/80482
4568         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
4569         type checks to test for compatibility instead of equality.
4570
4571 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4572             Jakub Jelinek  <jakub@redhat.com>
4573
4574         PR target/77728
4575         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
4576         type.
4577         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
4578         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
4579         the alignment computation, but return their maximum in warn_alignment.
4580         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
4581         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
4582         is smaller.
4583         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
4584         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
4585         caller.
4586
4587 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4588
4589         * config/arc/simdext.md (dmpyh): Fix typo.
4590
4591 2017-04-25  Richard Biener  <rguenther@suse.de>
4592
4593         PR tree-optimization/80492
4594         * alias.c (compare_base_decls): Handle registers with asm
4595         specification conservatively.
4596         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
4597         compare_base_decls returning dont-know properly.
4598
4599 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4600
4601         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
4602         (legitimate_offset_address_p): New function.
4603         (arc_legitimate_address_p): Use above function.
4604
4605 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4606
4607         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
4608
4609 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4610
4611         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
4612         ACCH registers whenever they are available.
4613
4614 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4615
4616         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
4617         double regs fix when not used.
4618
4619 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4620
4621         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
4622         core registers.
4623         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
4624         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
4625
4626 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4627
4628         * config/arc/arc.c (arc_output_addsi): Check for h-register class
4629         when emitting short ADD instructions.
4630
4631 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
4632
4633         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
4634         constraint.
4635         (cmpsi_cc_c_insn): Likewise.
4636         (cbranchsi4_scratch): Compute proper instruction length using
4637         compact_hreg_operand.
4638         * config/arc/predicates.md (compact_hreg_operand): New predicate.
4639
4640 2017-04-25  Richard Biener  <rguenther@suse.de>
4641
4642         PR middle-end/80509
4643         * passes.c (pass_manager::pass_manager): Initialize
4644         m_name_to_pass_map.
4645
4646 2017-04-25  Richard Biener  <rguenther@suse.de>
4647
4648         PR tree-optimization/79201
4649         * tree-ssa-sink.c (statement_sink_location): Handle calls.
4650
4651 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4652
4653         PR target/80464
4654         * config/s390/vector.md: Split MEM->GPR vector moves for
4655         non-s_operand addresses.
4656
4657 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4658
4659         PR target/79895
4660         * config/s390/predicates.md (reload_const_wide_int_operand): New
4661         predicate.
4662         * config/s390/s390.md ("movti"): Remove d/P alternative.
4663         ("movti_bigconst"): New pattern definition.
4664
4665 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4666
4667         PR target/80080
4668         * s390-protos.h (s390_expand_cs_hqi): Removed.
4669         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
4670         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
4671         modes as well as CCZ1mode and CCZmode.
4672         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
4673         signature of s390_emit_compare_and_swap.
4674         (s390_expand_cs_hqi): Likewise, make static.
4675         (s390_expand_cs_tdsi): Generate an explicit compare before trying
4676         compare-and-swap, in some cases.
4677         (s390_expand_cs): Wrapper function.
4678         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
4679         atomic_exchange.
4680         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
4681         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
4682         patterns for small and large integers.  Forbid symref memory operands.
4683         Move expander to s390.c.  Require cc register.
4684         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
4685         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
4686         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
4687         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
4688         symref memory operands.  Remove CC mode and call s390_match_ccmode
4689         instead.
4690         ("atomic_exchange<mode>"): Allow and implement all integer modes.
4691
4692 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4693
4694         * config/s390/s390.md (define_peephole2): New peephole to help
4695         combining the load-and-test pattern with volatile memory.
4696
4697 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4698
4699         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
4700         with CCZmode for TARGET_Z196.
4701
4702 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
4703
4704         PR rtl-optimization/80501
4705         * combine.c (make_compound_operation_int): Set subreg_code to SET
4706         even for AND with mask of the sign bit of mode.
4707
4708         PR rtl-optimization/80500
4709         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
4710         sum's initial value.
4711
4712 2017-04-25  Julian Brown  <julian@codesourcery.com>
4713             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4714
4715         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
4716
4717 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
4718
4719         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
4720
4721 2017-04-25  Julian Brown  <julian@codesourcery.com>
4722             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4723
4724         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
4725         (thunderx2t99_sha): New Reservation.
4726
4727 2017-04-25  Julian Brown  <julian@codesourcery.com>
4728             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4729
4730         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
4731         type for 1-element load.
4732
4733 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
4734
4735         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
4736
4737 2017-04-24  Martin Jambor  <mjambor@suse.cz>
4738
4739         PR tree-optimization/80293
4740         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
4741         char arrays not totally scalarizable if it is false.
4742         (analyze_all_variable_accesses): Pass correct value in the new
4743         parameter.  Add a statistics counter.
4744
4745 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
4746
4747         PR middle-end/79931
4748         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
4749
4750 2017-04-24  Richard Biener  <rguenther@suse.de>
4751
4752         PR tree-optimization/80494
4753         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
4754         out for complex types.
4755
4756 2017-04-24  Richard Biener  <rguenther@suse.de>
4757
4758         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
4759         * tree-ssa-sccvn.c (print_scc): Print SCC size.
4760         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
4761         (DFS): Adjust and never fail.
4762         (sccvn_dom_walker::fail): Remove.
4763         (sccvn_dom_walker::before_dom_children): Adjust.
4764         (run_scc_vn): Likewise and never fail.
4765         * tree-ssa-pre.c (pass_pre::execute): Adjust.
4766         (pass_fre::execute): Likewise.
4767
4768 2017-04-24  Richard Biener  <rguenther@suse.de>
4769
4770         PR tree-optimization/79725
4771         * tree-ssa-sink.c (statement_sink_location): Return whether
4772         failure reason was zero uses.  Move that check later.
4773         (sink_code_in_bb): Deal with zero uses by removing the stmt
4774         if possible.
4775
4776 2017-04-24  Richard Biener  <rguenther@suse.de>
4777
4778         PR c++/2972
4779         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
4780         pointer-based references.
4781
4782 2017-04-24  Richard Biener  <rguenther@suse.de>
4783
4784         PR bootstrap/79814
4785         * pass_manager.h (pass_manager::operator new): Remove.
4786         (pass_manager::operator delete): Likewise.
4787         * passes.c (pass_manager::operator new): Remove.
4788         (pass_manager::operator delete): Likewise.
4789         (pass_manager::pass_manager): Zero individual pass members.
4790
4791 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
4792
4793         PR target/70799
4794         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
4795         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
4796         Check "XEXP (src, 1)" operand here.
4797         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
4798         Check "XEXP (src, 1)" operand here.
4799         (dimode_scalar_chain::make_vector_copies): Detect count register
4800         of a shift instruction.  Zero extend count register from QImode
4801         to DImode to satisfy vector shift pattern count operand predicate.
4802         Substitute vector shift count operand with a DImode copy.
4803         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
4804         vector register.
4805
4806 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
4807
4808         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
4809         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
4810         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
4811         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
4812         (UNSPEC_NOREX_MEM): Remove definition.
4813
4814 2017-04-21  Richard Biener  <rguenther@suse.de>
4815
4816         PR tree-optimization/79547
4817         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4818         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
4819         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
4820         without any constraints.
4821
4822 2017-04-21  Richard Biener  <rguenther@suse.de>
4823
4824         PR tree-optimization/78847
4825         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
4826
4827 2017-04-21  Richard Biener  <rguenther@suse.de>
4828
4829         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
4830         (build_distinct_type_copy): Likewise.
4831         (build_variant_type_copy): Likewise.
4832         * tree.c (build_qualified_type): Pass down mem-stat info.
4833         (build_distinct_type_copy): Likewise.
4834         (build_variant_type_copy): Likewise.
4835
4836 2017-04-21  Richard Biener  <rguenther@suse.de>
4837
4838         PR tree-optimization/80237
4839         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
4840         defaulted to NULL.
4841         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
4842         for a simplified result.
4843
4844 2016-04-21  Richard Biener  <rguenther@suse.de>
4845
4846         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
4847         sth as strict as a simple_iv but a chrec without symbols and an
4848         operand defined in the loop we are peeling (and not some subloop).
4849         (propagate_constants_for_unrolling): Propagate all constants.
4850
4851 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
4852
4853         PR target/79804
4854         * config/i386/i386.c (print_reg): Remove assert for disalowed
4855         regno values, call output_operand_lossage instead.
4856
4857 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
4858
4859         PR target/78090
4860         * config/i386/constraints.md (Yc): New register constraint.
4861         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
4862         Use Yc constraint for alternative 2 of operand 0.  Remove
4863         preferred_for_speed attribute.
4864
4865 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4866
4867         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
4868         lastprivate clauses in SIMT case.
4869
4870 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
4871
4872         * doc/invoke.texi (-Wextra-semi): Document new warning option.
4873
4874 2017-04-20  Richard Biener  <rguenther@suse.de>
4875
4876         PR tree-optimization/57796
4877         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
4878         as N scalar stores.
4879         (vect_model_load_cost): Cost gathers as N scalar loads.
4880
4881 2017-04-20  Richard Biener  <rguenther@suse.de>
4882
4883         * ggc-page.c (ggc_allocated_p): Rename to ...
4884         (safe_lookup_page_table_entry): ... this and return the lookup
4885         result.
4886         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
4887
4888 2017-04-20  Richard Biener  <rguenther@suse.de>
4889
4890         PR tree-optimization/80453
4891         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
4892         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
4893         from the conditions.
4894         (vn_phi_eq): Pass them down.
4895         (vn_phi_lookup): Record them.
4896         (vn_phi_insert): Likewise.
4897
4898 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
4899
4900         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
4901         uninitialized variable warning to avoid buffer overrun.
4902
4903 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4904
4905         PR other/71250
4906         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
4907         is suppressed for '{ 0 }' in C.
4908
4909 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4910
4911         * BASE-VER: Set to 8.0.0.
4912
4913 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4914
4915         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
4916         priority .init_array and .fini_array section with SECTION_NOTYPE
4917         flag.
4918
4919 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4920
4921         PR middle-end/80423
4922         * tree.h (build_array_type): Add typeless_storage default argument.
4923         * tree.c (type_cache_hasher::equal): Also compare
4924         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
4925         (build_array_type): Add typeless_storage argument, set
4926         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
4927         recursive call.
4928         (build_nonshared_array_type): Adjust build_array_type_1 caller.
4929         (build_array_type): Likewise.  Add typeless_storage argument.
4930
4931 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4932             Jakub Jelinek  <jakub@redhat.com>
4933
4934         PR tree-optimization/80426
4935         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
4936         operation on symbolic operands, also compute the overflow for the
4937         invariant part when the operation degenerates into a negation.
4938
4939 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
4940
4941         PR debug/80461
4942         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
4943         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
4944
4945         PR debug/80436
4946         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
4947
4948 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
4949
4950         PR target/80462
4951         * config/avr/avr.c (tree.h): Include it.
4952         (cgraph.h): Include it.
4953         (avr_encode_section_info): Don't warn for uninitialized progmem
4954         variable if it's just an alias.
4955
4956 2017-04-19  Richard Biener  <rguenther@suse.de>
4957
4958         PR ipa/65972
4959         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
4960         when needed by AutoPGO.
4961
4962 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
4963
4964         PR lto/50345
4965         * doc/lto.texi: Remove an extra 'that'.
4966
4967 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
4968
4969         PR rtl-optimization/80429
4970         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
4971         are only used in debug insns.
4972
4973 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4974             Vladimir Makarov  <vmakarov@redhat.com>
4975
4976         * config/sparc/predicates.md (input_operand): Add comment.  Return
4977         true for any memory operand when LRA is in progress.
4978         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
4979
4980 2017-04-18  Jeff Law  <law@redhat.com>
4981
4982         PR target/74563
4983         * mips.md ({return,simple_return}_internal): Do not overwrite
4984         operands[0].
4985
4986 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
4987
4988         PR tree-optimization/80443
4989         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
4990         instead of adding 1, subtract -1 and similarly instead of subtracting
4991         1 add -1.
4992
4993 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
4994
4995         PR rtl-optimization/80357
4996         * haifa-sched.c (tmp_bitmap): New variable.
4997         (model_recompute): Handle duplicate use records.
4998         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
4999         (free_global_sched_pressure_data): Free it.
5000
5001 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5002
5003         Revert:
5004         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5005         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5006         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5007         instead of SYSTEM_HEADER_DIR.
5008
5009 2017-04-18  Jeff Law  <law@redhat.com>
5010
5011         PR middle-end/80422
5012         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
5013         predecessors after walking up the insn chain.
5014
5015 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5016
5017         PR debug/80263
5018         * dwarf2out.c (modified_type_die): Try harder not to emit internal
5019         sizetype type into debug info.
5020
5021 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5022
5023         PR target/80099
5024         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
5025         unneeded test for TARGET_UPPER_REGS_SF.
5026         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
5027
5028 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5029
5030         PR sanitizer/80444
5031         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
5032         instead of gsi_after_labels.
5033
5034 2017-04-18  Jeff Law  <law@redhat.com>
5035
5036         * regcprop.c (maybe_mode_change): Avoid creating copies of the
5037         stack pointer.
5038
5039         Revert:
5040         2017-04-13  Jeff Law  <law@redhat.com>
5041         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5042         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5043
5044 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
5045
5046         PR target/79453
5047         * config/avr/avr.c (intl.h): Include it.
5048         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
5049
5050 2017-04-18  Martin Liska  <mliska@suse.cz>
5051
5052         PR gcov-profile/78783
5053         * gcov-tool.c (gcov_output_files): Validate that destination
5054         file is either removed by the tool or by a user.
5055
5056 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
5057             Guy Benyei  <guybe@mellanox.com>
5058
5059         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
5060         block, and do not negate it, the stored id is already negative.
5061
5062 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
5063
5064         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
5065
5066 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5067
5068         PR target/80098
5069         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
5070         masks of options that should be turned off if the VSX vector
5071         options are turned off.
5072         (OTHER_P8_VECTOR_MASKS): Likewise.
5073         (OTHER_VSX_VECTOR_MASKS): Likewise.
5074         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
5075         rs6000_disable_incompatible_switches to validate no type switches
5076         like -mvsx.
5077         (rs6000_incompatible_switch): New function to disallow turning on
5078         other vector options if -mno-vsx, -mno-power8-vector, or
5079         -mno-power9-vector are specified.
5080
5081 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5082
5083         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
5084
5085 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5086
5087         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
5088         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
5089         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
5090         (ARG_POINTER_CFA_OFFSET): Likewise.
5091
5092 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
5093
5094         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
5095         conditions to take advantage of various optimizations.
5096
5097 2017-04-13  Jeff Law  <law@redhat.com>
5098
5099         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5100         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5101         (zero_extendsidi2_dext): Likewise.
5102
5103 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
5104
5105         PR sanitizer/80403
5106         * fold-const.c (fold_ternary_loc): Revert
5107         use op0 instead of fold_convert_loc (loc, type, arg0) part of
5108         2017-04-12 change.
5109
5110 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5111
5112         PR rtl-optimization/80343
5113         * lra-remat.c (update_scratch_ops): Assign original hard reg to
5114         new scratch pseudo.
5115
5116 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
5117
5118         PR sanitizer/80414
5119         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
5120         to ubsan_encode_value.
5121
5122 2017-04-13  Jeff Law  <law@redhat.com>
5123
5124         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
5125         appearing in DEBUG_INSNs.
5126
5127 2017-04-13  Martin Liska  <mliska@suse.cz>
5128
5129         PR gcov-profile/80413
5130         * gcov-io.c (gcov_write_string): Copy to buffer just when
5131         allocated size is greater than zero.
5132
5133 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
5134
5135         PR debug/80321
5136         * dwarf2out.c (decls_for_scope): Ignore declarations of
5137         current_function_decl in BLOCK_NONLOCALIZED_VARS.
5138
5139 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
5140
5141         PR lto/69953
5142         * ipa-visibility.c (non_local_p): Fix typos.
5143         (localize_node): When localizing symbol in same comdat group,
5144         dissolve the group only when we know external symbols are going
5145         to be privatized.
5146         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
5147
5148 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5149
5150         PR tree-optimization/79390
5151         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
5152         order does not result in usable sequence, retry with reversed operand
5153         order.
5154
5155         PR sanitizer/80403
5156         PR sanitizer/80404
5157         PR sanitizer/80405
5158         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
5159         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
5160         op0 instead of fold_convert_loc (loc, type, arg0).
5161
5162 2017-04-12  Jeff Law  <law@redhat.com>
5163
5164         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
5165         has a delay slot in the generated code.
5166
5167         * config/cris/cris.md (cris_preferred_reload_class): Return
5168         GENNONACR_REGS rather than GENERAL_REGS.
5169
5170 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5171
5172         PR c/80163
5173         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
5174         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
5175         signedness of the result type.
5176
5177 2017-04-12  Richard Biener  <rguenther@suse.de>
5178             Jeff Law  <law@redhat.com>
5179
5180         PR tree-optimization/80359
5181         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
5182         trim stores to TARGET_MEM_REFs.
5183
5184 2017-04-12  Richard Biener  <rguenther@suse.de>
5185
5186         PR tree-optimization/79390
5187         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
5188         threading case even more.
5189
5190 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
5191
5192         PR target/80382
5193         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
5194         for quad_address_p for TImode, instead of just not indexed_address.
5195
5196 2017-04-12  Richard Biener  <rguenther@suse.de>
5197             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5198
5199         PR middle-end/79671
5200         * alias.c (component_uses_parent_alias_set_from): Handle
5201         TYPE_TYPELESS_STORAGE.
5202         (get_alias_set): Likewise.
5203         * tree-core.h (tree_type_common): Add typeless_storage flag.
5204         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
5205         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
5206         for types containing members with TYPE_TYPELESS_STORAGE.
5207         (place_field): Likewise.
5208         (layout_type): Likewise for ARRAY_TYPE.
5209         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
5210         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
5211         TYPE_TYPELESS_STORAGE.
5212         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5213
5214 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
5215
5216         PR sanitizer/80349
5217         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5218         first argument to type.
5219
5220 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5221
5222         PR target/80376
5223         PR target/80315
5224         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5225         CONST0_RTX (mode) rather than const0_rtx where appropriate.
5226         (rs6000_expand_binop_builtin): Likewise.
5227         (rs6000_expand_ternop_builtin): Likewise; also add missing
5228         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
5229         vshasigma built-ins.
5230         * doc/extend.texi: Document that vec_xxpermdi's third argument
5231         must be a constant.
5232
5233 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
5234
5235         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
5236         Use shift_const cost parameter when calculating gain of STV shifts.
5237
5238 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5239
5240         PR rtl-optimization/70478
5241         * lra-constraints.c (process_alt_operands): Check memory for
5242         disfavoring memory insn operand.
5243
5244 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
5245
5246         PR middle-end/80100
5247         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
5248         left shift in unsigned HOST_WIDE_INT type.
5249
5250         PR rtl-optimization/80385
5251         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
5252         (not (neg X)) into (plus X -1) for complex or non-integral modes.
5253
5254         PR libgomp/80394
5255         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
5256         if they have any depend clauses.
5257
5258 2017-04-11  Martin Liska  <mliska@suse.cz>
5259
5260         PR ipa/80212
5261         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
5262         * ipa-split.c (split_function): Create a local comdat symbol
5263         if caller is in a comdat group.
5264
5265 2017-04-11  Martin Liska  <mliska@suse.cz>
5266
5267         PR ipa/80212
5268         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
5269         flags.
5270
5271 2017-04-11  Martin Sebor  <msebor@redhat.com>
5272
5273         PR middle-end/80364
5274         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
5275         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
5276         for INTEGER_TYPE.
5277         (directive::set_width, directive::set_precision, format_character):
5278         Adjust.
5279         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
5280         INTEGER_TYPE.
5281
5282 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
5283
5284         PR target/80389
5285         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
5286         conflict, set target->arch_name instead of target->cpu_name.
5287
5288 2017-04-11  Richard Biener  <rguenther@suse.de>
5289
5290         PR tree-optimization/80374
5291         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
5292         build_zero_cst, remove fold_convertible_p check again.
5293
5294 2017-04-11  Martin Liska  <mliska@suse.cz>
5295
5296         PR sanitizer/70878
5297         * ubsan.c (instrument_object_size): Do not instrument register
5298         variables.
5299
5300 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
5301
5302         PR target/80381
5303         * config/i386/i386-builtin-types.def
5304         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
5305         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
5306         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
5307         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
5308         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
5309         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
5310         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
5311         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
5312         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
5313         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
5314         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
5315         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
5316         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
5317         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
5318         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
5319         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
5320         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
5321         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
5322         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
5323         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
5324         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
5325         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
5326         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
5327         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
5328         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
5329         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
5330         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
5331         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
5332         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
5333         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
5334         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
5335         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
5336         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
5337         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
5338         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
5339         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
5340         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
5341         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
5342         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
5343         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
5344         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
5345         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
5346         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
5347         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
5348         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
5349         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
5350         aliases.
5351         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
5352         flag to second_arg_count, handle 4 argument function type _COUNT
5353         aliases, handle second_arg_count on second argument rather than last.
5354
5355 2017-04-10  Jeff Law  <law@redhat.com>
5356
5357         PR tree-optimization/80374
5358         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
5359         record anything if we can not convert integer_zero_node to the
5360         desired type.
5361
5362 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5363
5364         PR target/80108
5365         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5366         Enhance special handling given to the TARGET_P9_MINMAX option in
5367         relation to certain other options.
5368
5369 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
5370
5371         PR tree-optimization/80153
5372         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
5373         remove POINTER_PLUS_EXPR's base part directly, rather than through
5374         aff_tree.
5375
5376 2017-04-10  Richard Biener  <rguenther@suse.de>
5377             Bin Cheng  <bin.cheng@arm.com>
5378
5379         PR tree-optimization/80153
5380         * tree-affine.c (aff_combination_to_tree): Get base pointer from
5381         the first element of pointer type aff_tree.  Build result expr in
5382         aff_tree's type.
5383         (add_elt_to_tree): Convert to type unconditionally.  Remove other
5384         fold_convert calls.
5385         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
5386         (rewrite_use_nonlinear_expr): Check invariant using iv information.
5387
5388 2017-04-10  Richard Biener  <rguenther@suse.de>
5389
5390         * tree-ssa-structalias.c (find_func_aliases): Properly handle
5391         asm inputs.
5392
5393 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5394
5395         PR rtl-optimization/70478
5396         * lra-constraints.c (curr_small_class_check): New.
5397         (update_and_check_small_class_inputs): New.
5398         (process_alt_operands): Update curr_small_class_check.  Disfavor
5399         alternative insn memory operands.  Check available regs for small
5400         class operands.
5401
5402 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
5403
5404         PR target/80057
5405         * config/mips/mips.opt (-mvirt): Update description.
5406         * doc/invoke.texi (-mvirt): Likewise.
5407
5408 2017-04-10  Richard Biener  <rguenther@suse.de>
5409
5410         PR middle-end/80362
5411         * fold-const.c (fold_binary_loc): Look at unstripped ops when
5412         looking for NEGATE_EXPR in -A / -B to A / B folding.
5413
5414 2017-04-10  Martin Liska  <mliska@suse.cz>
5415
5416         PR gcov-profile/80224
5417         * gcov.c (print_usage): Fix usage string.
5418         (get_gcov_intermediate_filename): Remove.
5419         (output_gcov_file): Use both for normal and intermediate format.
5420         (generate_results): Do not initialize special file for
5421         intermediate format.
5422
5423 2017-04-10  Richard Biener  <rguenther@suse.de>
5424
5425         PR tree-optimization/80304
5426         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
5427         for safelen.
5428
5429 2017-04-10  Nathan Sidwell  <nathan@acm.org>
5430
5431         PR target/79905
5432         * config/rs6000/rs6000.c (rs6000_vector_type): New.
5433         (rs6000_init_builtins): Use it.
5434
5435 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5436
5437         * config/arm/arm.md (<mrc>): Add mode to SET source.
5438         (<mrrc>): Likewise.
5439
5440 2017-04-10  Richard Biener  <rguenther@suse.de>
5441
5442         PR middle-end/80344
5443         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
5444
5445 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
5446
5447         PR target/80324
5448         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
5449         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
5450         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
5451         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
5452         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
5453         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
5454         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
5455         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
5456         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
5457         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
5458         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
5459         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
5460         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
5461         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
5462         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
5463         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
5464         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
5465         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
5466         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
5467         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
5468         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
5469         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
5470         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
5471
5472 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5473
5474         PR rtl-optimization/70478
5475         * lra-constraints.c: Reverse the last patch.
5476
5477 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
5478
5479         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
5480         Add comment for WCHAR_T.
5481
5482 2017-04-08  Martin Liska  <mliska@suse.cz>
5483
5484         Revert:
5485         2017-04-07  Martin Liska  <mliska@suse.cz>
5486
5487         PR ipa/80212
5488         * ipa-split.c (split_function): Add function part to a same comdat
5489         group.
5490
5491 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5492
5493         PR target/80358
5494         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
5495
5496 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
5497
5498         * rs6000/rs6000.c (vec_load_pendulum): Rename...
5499         (vec_pairing): ...to this.
5500         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
5501         (rs6000_sched_init): Adjust for name change.
5502         (struct rs6000_sched_context): Likewise.
5503         (rs6000_init_sched_context): Likewise.
5504         (rs6000_set_sched_context): Likewise.
5505
5506 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
5507
5508         PR target/80322
5509         PR target/80323
5510         PR target/80325
5511         PR target/80326
5512         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
5513         intrinsics.
5514         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
5515         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
5516         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
5517
5518 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
5519
5520         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
5521
5522 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5523
5524         PR rtl-optimization/70703
5525         * ira-color.c (update_conflict_hard_regno_costs): Use
5526         int64_t instead of HOST_WIDE_INT.
5527
5528 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5529
5530         PR rtl-optimization/70478
5531         * lra-constraints.c (process_alt_operands): Disfavor alternative
5532         insn memory operands.
5533
5534 2017-04-07  Jeff Law  <law@redhat.com>
5535
5536         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
5537         CALL and NOTE_INSN_CALL_ARG_LOCATION.
5538
5539 2017-04-07  Martin Liska  <mliska@suse.cz>
5540
5541         PR target/79889
5542         * config/aarch64/aarch64.c (aarch64_process_target_attr):
5543         Show error message instead of an ICE.
5544
5545 2017-04-07  Martin Liska  <mliska@suse.cz>
5546
5547         PR ipa/80212
5548         * ipa-split.c (split_function): Add function part to a same comdat
5549         group.
5550
5551 2017-04-07  Richard Biener  <rguenther@suse.de>
5552
5553         PR middle-end/80341
5554         * tree.c (get_unwidened): Also handle ! for_type case for
5555         INTEGER_CSTs.
5556         * convert.c (do_narrow): Split out from ...
5557         (convert_to_integer_1): ... here.  Do not pass final truncation
5558         type to get_unwidened for TRUNC_DIV_EXPR.
5559
5560 2017-04-07  Richard Biener  <rguenther@suse.de>
5561
5562         * tree-affine.c (wide_int_ext_for_comb): Take type rather
5563         than aff_tree.
5564         (aff_combination_const): Adjust.
5565         (aff_combination_scale): Likewise.
5566         (aff_combination_add_elt): Likewise.
5567         (aff_combination_add_cst): Likewise.
5568         (aff_combination_convert): Likewise.
5569         (add_elt_to_tree): Likewise.  Remove unused argument.
5570         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
5571
5572 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5573
5574         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
5575         definition.
5576         * config/arm/arm.c (arm_default_short_enums): Use
5577         ARM_DEFAULT_SHORT_ENUMS.
5578         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
5579
5580 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
5581
5582         PR debug/80234
5583         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
5584         members with redundant out-of-class redeclaration.
5585
5586 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
5587
5588         PR target/80286
5589         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
5590         * config/i386/i386.md (*zero_extendsidi2):
5591         Add (?*x,*x) and (?*v,*v) alternatives.
5592
5593 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
5594
5595         PR target/79733
5596         * config/i386/i386.c (ix86_expand_builtin)
5597         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
5598         mode from insn data. Convert operands to insn operand mode.
5599         Copy operands that don't satisfy insn predicate to a register.
5600
5601 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
5602
5603         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
5604         Update comments.
5605
5606 2017-04-06  Richard Biener  <rguenther@suse.de>
5607
5608         PR tree-optimization/80334
5609         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
5610         preserve alignment of accesses.
5611
5612 2017-04-06  Richard Biener  <rguenther@suse.de>
5613
5614         PR tree-optimization/80262
5615         * tree-sra.c (build_ref_for_offset): Preserve address-space
5616         information.
5617         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5618         Drop useless address-space information on MEM_REF offsets.
5619
5620 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
5621
5622         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
5623
5624 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
5625
5626         PR rtl-optimization/70703
5627         * ira-color.c (update_conflict_hard_regno_costs): Use
5628         HOST_WIDE_INT instead of long.
5629
5630 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
5631
5632         PR target/80298
5633         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
5634         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
5635         is not defined.
5636         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
5637         for x86_64 target.  Handle -m3dnowa option.
5638
5639 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
5640
5641         PR rtl-optimization/70703
5642         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
5643         (update_conflict_hard_regno_costs): Use long instead of unsigned
5644         arithmetic for cost calculation.
5645
5646 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
5647             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5648
5649         PR sanitizer/80308
5650         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
5651         for big endian.
5652
5653 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5654
5655         PR target/78002
5656         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
5657         ptr_mode with Pmode throughout.
5658         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
5659         into probe_stack_range and use DImode.
5660
5661 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5662
5663         PR target/79890
5664         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
5665         call_eh_return is true.
5666
5667 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5668
5669         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
5670         Initialize last_match_fntype_index.
5671
5672 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
5673
5674         PR target/80310
5675         * tree-nvr.c: Include internal-fn.h.
5676         (pass_return_slot::execute): Ignore internal calls without
5677         direct optab.
5678
5679 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
5680             Richard Biener  <rguenther@suse.de>
5681
5682         PR c++/80297
5683         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
5684         captures used multiple times, except for the last use.
5685         * generic-match-head.c: Include gimplify.h.
5686
5687 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
5688
5689         PR tree-optimization/79390
5690         * target.h (struct noce_if_info): Declare.
5691         * targhooks.h (default_noce_conversion_profitable_p): Declare.
5692         * target.def (noce_conversion_profitable_p): New target hook.
5693         * ifcvt.h (struct noce_if_info): New type, moved from ...
5694         * ifcvt.c (struct noce_if_info): ... here.
5695         (noce_conversion_profitable_p): Renamed to ...
5696         (default_noce_conversion_profitable_p): ... this.  No longer
5697         static nor inline.
5698         (noce_try_store_flag_constants, noce_try_addcc,
5699         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
5700         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
5701         instead of noce_conversion_profitable_p.
5702         * config/i386/i386.c: Include ifcvt.h.
5703         (ix86_option_override_internal): Don't override
5704         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
5705         (ix86_noce_conversion_profitable_p): New function.
5706         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
5707         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
5708         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
5709         * doc/tm.texi: Regenerated.
5710
5711 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5712
5713         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
5714         correction.
5715
5716 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5717
5718         PR target/80307
5719         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
5720         instructions for small multiply cores.
5721
5722 2017-04-04  Jeff Law  <law@redhat.com>
5723
5724         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
5725         added member.
5726         (mips_expand_vec_perm_const): Initialize elements in orig_perm
5727         that are not set by the loop over the elements.
5728
5729 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
5730
5731         PR target/80286
5732         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
5733         int mode, convert_modes it to mode as unsigned, otherwise use
5734         lowpart_subreg to mode rather than SImode.
5735         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
5736         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
5737         Use DImode instead of SImode for the shift count operand.
5738         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
5739         Likewise.
5740
5741 2017-04-04  Richard Biener  <rguenther@suse.de>
5742
5743         PR middle-end/80281
5744         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
5745         arithmetic done for the negate or the plus.  Simplify.
5746         (A - (-B) -> A + B): Likewise.
5747         * fold-const.c (split_tree): Make sure to not negate pointers.
5748
5749 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
5750
5751         PR rtl-optimization/60818
5752         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
5753         a compare of comparisons with the thing compared if this results
5754         in a different machine mode.
5755
5756 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
5757
5758         * alias.c (base_alias_check): Fix typo in comment.
5759         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
5760         * cgraphunit.c (symbol_table::compile): Likewise.
5761         * collect2.c (maybe_run_lto_and_relink): Likewise.
5762         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
5763         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
5764         * config/avr/avr.c (avr_map_op_t): Likewise.
5765         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
5766         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
5767         * config/epiphany/epiphany.md (movcc): Likewise.
5768         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
5769         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
5770         Likewise.
5771         * config/mips/mips.c (mips_save_restore_reg): Likewise.
5772         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
5773         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
5774         * config/sh/sh.c (sh_rtx_costs): Likewise.
5775         * fold-const.c (fold_truth_andor): Likewise.
5776         * genautomata.c (collapse_flag): Likewise.
5777         * gengtype.h (struct type::u::s): Likewise.
5778         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
5779         * input.c (FORMAT_AMOUNT): Likewise.
5780         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
5781         (known_aggs_to_agg_replacement_list): Likewise.
5782         * ipa-inline-analysis.c: Likewise.
5783         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
5784         * ipa-polymorphic-call.c
5785         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
5786         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
5787         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
5788         Likewise.
5789         * modulo-sched.c (apply_reg_moves): Likewise.
5790         * omp-expand.c (build_omp_regions_1): Likewise.
5791         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
5792         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
5793         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
5794         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5795         * value-prof.c: Likewise.
5796         * var-tracking.c (val_reset): Likewise.
5797
5798 2017-04-03  Richard Biener  <rguenther@suse.de>
5799
5800         PR tree-optimization/80275
5801         * fold-const.c (split_address_to_core_and_offset): Handle
5802         POINTER_PLUS_EXPR.
5803
5804 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5805
5806         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
5807         descriptors is at least equal to that of functions.
5808
5809 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
5810
5811         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
5812
5813 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
5814
5815         PR target/80250
5816         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
5817         (mov<IMOD4:mode>): New expander.
5818         (*mov<IMOD4:mode>_internal): New insn and split pattern.
5819
5820 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
5821
5822         PR rtl-optimization/79405
5823         * fwprop.c (propagations_left): New variable.
5824         (forward_propagate_into): Decrement it.
5825         (fwprop_init): Initialize it.
5826         (fw_prop): If the variable has reached zero, stop propagating.
5827         (fwprop_addr): Ditto.
5828
5829 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
5830
5831         PR debug/79255
5832         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
5833         a FUNCTION_DECL, pass it as decl instead of origin to
5834         process_scope_var.
5835
5836 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
5837
5838         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
5839         string.
5840
5841 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
5842
5843         PR target/80107
5844         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
5845         TARGET_VSX_SMALL_INTEGER.
5846
5847 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5848
5849         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
5850         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
5851
5852 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
5853
5854         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
5855         extraction from odd-numbered MSA register.
5856
5857 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
5858
5859         PR middle-end/80173
5860         * expmed.c (store_bit_field_1): Don't attempt to create
5861         a word subreg out of hard registers wider than word if they
5862         have HARD_REGNO_NREGS of 1 for their mode.
5863
5864         PR middle-end/80163
5865         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
5866         conversions to integer types wider than word and pointer.
5867
5868         PR debug/80025
5869         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
5870         (rtx_equal_for_cselib_p): Pass 0 to it.
5871         * cselib.c (cselib_hasher::equal): Likewise.
5872         (rtx_equal_for_cselib_1): Add depth argument.  If depth
5873         is 128, don't look up VALUE locs and punt.  Increment
5874         depth in recursive calls when walking VALUE locs.
5875
5876 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5877
5878         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
5879         (make_gcov_file_name): Use the canonical path name for generating
5880         the MD5 value.
5881         (read_line): Fix handling of files with ascii null bytes.
5882
5883 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
5884
5885         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
5886         to initialise a vector register instead
5887         of using a const_int.
5888
5889 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
5890
5891         PR translation/80189
5892         * gimplify.c (omp_default_clause): Use %qs instead of %s in
5893         diagnostic messages.
5894
5895 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
5896
5897         PR target/80246
5898         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
5899         (dfp_diex_<mode>): Update mode of operand 1.
5900         * doc/extend.texi (dxex, dxexq): Document change to return type.
5901         (diex, diexq): Document change to argument type.
5902
5903 2017-03-30  Martin Jambor  <mjambor@suse.cz>
5904
5905         PR ipa/77333
5906         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
5907         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
5908         it reflects the signature changes performed at the callee side.
5909         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
5910         to cgraph_build_function_type_skip_args.
5911         (build_function_decl_skip_args): Adjust call to the above function.
5912
5913 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
5914
5915         PR target/80206
5916         * config/i386/sse.md
5917         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
5918         register as dest whenever it is a MEM not rtx_equal_p to the
5919         corresponding dup operand, and when forcing into reg move the
5920         reg into the memory afterwards.
5921         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
5922         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
5923         for the force_reg mode.
5924         (avx512vl_vextractf128<mode>): Use register as dest either
5925         always when a MEM, or when it is a MEM not rtx_equal_p to the
5926         corresponding dup operand, or even not when it is a CONST_VECTOR
5927         depending on the mode and lo vs. hi.
5928         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
5929         parens.
5930         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
5931         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
5932         Likewise.  Require that operands[2] is even.
5933         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
5934         Remove extraneous parens.  Require that operands[2] is a multiple
5935         of 4.
5936         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
5937         operands[0] is a MEM if <mask_applied>, the predicates/constraints
5938         disallow memory then.
5939
5940 2017-03-30  Richard Biener  <rguenther@suse.de>
5941
5942         PR tree-optimization/77498
5943         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
5944         to non-constants over backedges.
5945
5946 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
5947
5948         PR rtl-optimization/80233
5949         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
5950         as last_combined_insn.  Do not test for BARRIER_P separately.
5951
5952 2017-03-29  Andreas Schwab  <schwab@suse.de>
5953
5954         PR ada/80146
5955         * calls.c (prepare_call_address): Convert funexp to Pmode before
5956         copying to temp reg.
5957
5958 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5959
5960         PR tree-optimization/80158
5961         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
5962         Handle possible future case of more than one alternate
5963         interpretation.
5964         (replace_rhs_if_not_dup): Likewise.
5965         (replace_one_candidate): Likewise.
5966
5967 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5968
5969         PR rtl-optimization/80193
5970         * ira.c (ira): Do not check allocation for LRA.
5971
5972 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
5973
5974         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
5975         (nvptx_output_simt_exit): Declare.
5976         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
5977         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
5978         (init_softstack_frame): Move initialization of crtl->is_leaf to...
5979         (nvptx_declare_function_name): ...here.  Emit declaration of local
5980         memory space buffer for omp_simt_enter insn.
5981         (nvptx_output_unisimt_switch): New.
5982         (nvptx_output_softstack_switch): New.
5983         (nvptx_output_simt_enter): New.
5984         (nvptx_output_simt_exit): New.
5985         * config/nvptx/nvptx.h (struct machine_function): New fields
5986         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
5987         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
5988         (UNSPECV_SIMT_EXIT): Ditto.
5989         (omp_simt_enter_insn): New insn.
5990         (omp_simt_enter): New expansion.
5991         (omp_simt_exit): New insn.
5992         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
5993
5994         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
5995         (expand_GOMP_SIMT_ENTER_ALLOC): New.
5996         (expand_GOMP_SIMT_EXIT): New.
5997         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
5998         (GOMP_SIMT_ENTER_ALLOC): Ditto.
5999         (GOMP_SIMT_EXIT): Ditto.
6000         * target-insns.def (omp_simt_enter): New insn.
6001         (omp_simt_exit): Ditto.
6002         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
6003         simt_dlist.
6004         (lower_rec_simd_input_clauses): Implement SIMT privatization.
6005         (lower_rec_input_clauses): Likewise.
6006         (lower_lastprivate_clauses): Handle SIMT privatization.
6007
6008         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
6009         (ompdevlow_adjust_simt_enter): New.
6010         (find_simtpriv_var_op): New.
6011         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
6012         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
6013
6014         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
6015         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
6016         (copy_decl_for_dup_finish): Ditto.
6017
6018         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
6019
6020 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
6021
6022         PR target/53383
6023         * config/i386/i386.c (ix86_option_override_internal): Always
6024         allow -mpreferred-stack-boundary=3 for 64-bit targets.
6025
6026 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
6027
6028         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
6029
6030 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
6031
6032         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
6033         mark new edge's irreducible flag accordign to it.
6034         (vect_do_peeling): Check loop preheader edge's irreducible flag
6035         and pass it to function slpeel_add_loop_guard.
6036
6037 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
6038
6039         PR tree-optimization/80218
6040         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6041         Update block frequencies and counts.
6042
6043 2017-03-28  Richard Biener  <rguenther@suse.de>
6044
6045         PR tree-optimization/78644
6046         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
6047         of a simplification result we may not use it at all.
6048
6049 2017-03-28  Richard Biener  <rguenther@suse.de>
6050
6051         PR ipa/80205
6052         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
6053         without arguments, generate default definition of a SSA name.
6054
6055 2017-03-28  Richard Biener  <rguenther@suse.de>
6056
6057         PR middle-end/80222
6058         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
6059         TYPE_REF_CAN_ALIAS_ALL references.
6060         * fold-const.c (fold_indirect_ref_1): Likewise.
6061
6062 2017-03-28  Martin Liska  <mliska@suse.cz>
6063
6064         PR ipa/80104
6065         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
6066         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
6067
6068 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
6069             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
6070
6071         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
6072         (EXTRA_SPECS): Define.
6073         (SUBTARGET_EXTRA_SPECS): Likewise.
6074         (SUBTARGET_CPP_SPEC): Likewise.
6075         * config/arc/elf.h (EXTRA_SPECS): Renamed to
6076         SUBTARGET_EXTRA_SPECS.
6077         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
6078
6079 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
6080
6081         * config/arc/simdext.md (vst64_insn): Update pattern.
6082         (vld32wh_insn): Likewise.
6083         (vld32wl_insn): Likewise.
6084         (vld64_insn): Likewise.
6085         (vld32_insn): Likewise.
6086
6087 2017-03-28  Marek Polacek  <polacek@redhat.com>
6088
6089         PR sanitizer/80067
6090         * fold-const.c (fold_comparison): Use protected_set_expr_location
6091         instead of SET_EXPR_LOCATION.
6092
6093 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6094
6095         * tree.c (add_expr): Avoid name lookup warning.
6096
6097 2017-03-27  Jeff Law  <law@redhat.com>
6098
6099         PR tree-optimization/80216
6100         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
6101         function name.  Limit recursion depth.
6102         (record_temporary_equivalences): Corresponding changes.
6103
6104 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
6105
6106         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
6107         covered first.
6108
6109 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6110
6111         PR target/80102
6112         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
6113         notes.
6114         * cfgcleanup.c (reg_note_cfa_p): New array.
6115         (insns_have_identical_cfa_notes): New function.
6116         (old_insns_match_p): Don't cross-jump in between /f
6117         and non-/f instructions.  If both i1 and i2 are frame related,
6118         verify all CFA notes, their order and content.
6119
6120 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6121
6122         PR target/78543
6123         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
6124         HImode and SImode with zero extend to DImode to one insn.
6125         (bswap<mode>2_extenddi): Likewise.
6126         (bswapsi2_extenddi): Likewise.
6127         (bswaphi2_extendsi): Likewise.
6128         (bswaphi2): Combine bswap HImode and SImode into one insn.
6129         Separate memory insns from swapping register.
6130         (bswapsi2): Likewise.
6131         (bswap<mode>2): Likewise.
6132         (bswaphi2_internal): Delete, no longer used.
6133         (bswapsi2_internal): Likewise.
6134         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
6135         store, and gpr<-gpr swap insns.
6136         (bswap<mode>2_store): Likewise.
6137         (bswaphi2_reg): Register only splitter, combine with the splitter.
6138         (bswaphi2 splitter): Likewise.
6139         (bswapsi2_reg): Likewise.
6140         (bswapsi2 splitter): Likewise.
6141         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
6142         the insns into load, store, and register/register insns.
6143         (bswapdi2_ldbrx): Likewise.
6144         (bswapdi2_load): Likewise.
6145         (bswapdi2_store): Likewise.
6146         (bswapdi2_reg): Likewise.
6147
6148 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
6149
6150         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
6151         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
6152
6153 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6154
6155         PR target/80103
6156         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
6157         add comments.
6158         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6159         special handling for target option conflicts between dform
6160         options (-mpower9-dform, -mpower9-dform-vector,
6161         -mpower9-dform-scalar) and -mno-direct-move.
6162
6163 2017-03-27  Richard Biener  <rguenther@suse.de>
6164
6165         PR tree-optimization/80181
6166         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
6167
6168 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6169
6170         * config/arc/predicates.md (move_double_src_operand): Replace the
6171         call to move_double_src_operand with a call to address_operand.
6172
6173 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6174
6175         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
6176         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
6177         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
6178
6179 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6180
6181         * config/arc/predicates.md (long_immediate_loadstore_operand):
6182         Consider scaled addresses cases.
6183
6184 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
6185
6186         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
6187         restored when in interrupt.
6188         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
6189         doesn't have delay slot.
6190
6191 2017-03-27  Richard Biener  <rguenther@suse.de>
6192
6193         PR ipa/79776
6194         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
6195         inlined thunk clones.
6196
6197 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6198
6199         PR sanitizer/80168
6200         * asan.c (instrument_derefs): Copy over last operand from
6201         original COMPONENT_REF to the new COMPONENT_REF with
6202         DECL_BIT_FIELD_REPRESENTATIVE.
6203         * ubsan.c (instrument_object_size): Likewise.
6204
6205 2017-03-27  Richard Biener  <rguenther@suse.de>
6206
6207         PR tree-optimization/80170
6208         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
6209         sure DR/SCEV didnt fold in constants we do not see when looking
6210         at the reference base alignment.
6211
6212 2017-03-27  Richard Biener  <rguenther@suse.de>
6213
6214         PR middle-end/80171
6215         * gimple-fold.c (fold_ctor_reference): Properly guard against
6216         NULL return value from canonicalize_constructor_val.
6217
6218 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
6219
6220         PR target/80180
6221         * config/i386/i386.c (ix86_expand_builtin)
6222         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
6223         flags reg setting and flags reg using instructions.
6224         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
6225         clobbering instructions to zero extend op2.
6226
6227 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
6228
6229         * doc/install.texi (Configuration) <--with-aix-soname>:
6230         Update link to AIX ld.
6231
6232 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
6233
6234         PR rtl-optimization/80160
6235         PR rtl-optimization/80159
6236         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
6237         reg_alternate_class into account.
6238
6239 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
6240
6241         PR target/80148
6242         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
6243         to consider in curr_insn_transform.
6244
6245 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
6246
6247         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
6248         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
6249         and emit_mode_inner.
6250
6251 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6252
6253         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
6254         argument to the overloaded builtin variants.  Use the new flag to
6255         deprecate certain builtin variants.
6256         * config/s390/s390-builtin-types.def: Add new builtin types.
6257         * config/s390/s390-builtins.h: Support new flags field for
6258         overloaded builtins.
6259         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
6260         (s390_macro_to_expand): Enable vector float data type.
6261         (s390_cpu_cpp_builtins_internal): Indicate support of the new
6262         builtins by incrementing the __VEC__ version number.
6263         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
6264         vec_xst.
6265         (s390_resolve_overloaded_builtin): Emit error messages depending
6266         on the builtin flags.
6267         * config/s390/s390.c (s390_expand_builtin): Support additional
6268         flags argument.  Change error message to match the messages
6269         emitted in s390-c.c.
6270         * config/s390/s390.md: New UNSPEC_* constants.
6271         (op_type): Add new instruction types.
6272         * config/s390/vecintrin.h: Add new builtins and test data class
6273         constants.
6274         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
6275         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
6276         (VEC_INEXACT, VEC_NOINEXACT): New constants.
6277         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
6278         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
6279         ("vec_mergel<mode>"): V_HW -> VEC_HW.
6280
6281         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
6282         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
6283         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
6284         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
6285
6286         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
6287         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
6288         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
6289         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
6290
6291         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
6292         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
6293         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
6294         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
6295         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
6296         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
6297         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
6298
6299         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
6300         ("vec_scatter_element<V_HW_4:mode>_DI")
6301         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
6302         ("vec_fpint<mode>", "vflls")
6303         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
6304         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
6305         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
6306         ("*vec_cmphe<mode>_cc"): ... these.
6307
6308         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
6309         mode constant instead of magic value.
6310
6311 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6312
6313         * config/s390/s390.c (s390_expand_vec_compare): Support other
6314         vector floating point modes than just V2DF.
6315         (s390_expand_vcond): Likewise.
6316         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
6317         (s390_cannot_change_mode_class): Prevent mode changes between TF
6318         and V1TF in vector registers.
6319         * config/s390/s390.md (DF, SF): New mode attributes.
6320         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
6321         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
6322         SFmode support for VRs.
6323         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
6324         vector fp modes.
6325         (VFT, VF_HW): New mode iterators.
6326         (vw, sdx): New mode attributes.
6327         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
6328         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
6329         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
6330         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
6331         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
6332         also the new vector floating point modes.  Renaming to ...
6333
6334         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
6335         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
6336         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
6337         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
6338         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
6339         ("vec_unordered<mode>"): ... these.
6340
6341         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
6342         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
6343         ("*vec_extendv2df"): New insn definitions.
6344
6345 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6346
6347         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
6348         ("mulditi3_2", "*muldi3_sign"): New patterns.
6349         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
6350         rename the pattern definition.
6351
6352 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6353
6354         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
6355         expander.
6356         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
6357
6358 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6359
6360         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
6361         instruction if possible.
6362         * config/s390/vector.md (vec_halfnumelts): New mode
6363         attribute.
6364         ("*vec_vllezlf<mode>"): New pattern.
6365
6366 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6367
6368         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
6369         ("popcountv4si2", "popcountv2di2"): Rename to ...
6370         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
6371         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
6372         condition.
6373         ("popcount<mode>2_vxe"): New pattern.
6374
6375 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6376
6377         * common/config/s390/s390-common.c (processor_flags_table): Add
6378         arch12.
6379         * config.gcc: Add arch12.
6380         * config/s390/driver-native.c (s390_host_detect_local_cpu):
6381         Default to arch12 for unknown CPU model numbers.
6382         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
6383         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
6384         PROCESSOR_max sanity check.
6385         * config/s390/s390-opts.h (enum processor_type): Add
6386         PROCESSOR_ARCH12.
6387         * config/s390/s390.c (processor_table): Add arch12.
6388         (s390_expand_builtin): Add check for B_VXE flag.
6389         (s390_issue_rate): Add PROCESSOR_ARCH12.
6390         (s390_get_sched_attrmask): Likewise.
6391         (s390_get_unit_mask): Likewise.
6392         (s390_sched_score): Enable z13 scheduling for arch12.
6393         (s390_sched_reorder): Likewise.
6394         (s390_sched_variable_issue): Likewise.
6395         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
6396         PF_VXE.
6397         (s390_tune_attr): Use z13 scheduling also for arch12.
6398         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
6399         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
6400         (TARGET_VXE_P): New macros.
6401         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
6402         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
6403         * config/s390/s390.opt: Add arch12 as processor_type.
6404
6405 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6406
6407         * config/s390/s390.md
6408         ("fixuns_truncdddi2", "fixuns_trunctddi2")
6409         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
6410         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
6411
6412         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
6413         Rename expanders to ...
6414
6415         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
6416         ("fixuns_truncdddi2_emu"): ... these.
6417
6418         ("fixuns_trunc<mode>si2_emu"): New expander.
6419
6420         ("*fixuns_truncdfdi2_z13"): Rename to ...
6421         ("*fixuns_truncdfdi2_vx"): ... this.
6422
6423 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6424
6425         * config/s390/2964.md: Remove the single element vector compare
6426         instructions which are no longer used.
6427         * config/s390/s390.c (s390_select_ccmode): Remove handling of
6428         vector CCmodes.
6429         (s390_canonicalize_comparison): Remove handling of DFmode
6430         compares.
6431         (s390_expand_vec_compare_scalar): Remove function.
6432         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
6433         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
6434         pattern.
6435         ("*cmp<mode>_ccs"): Add wfcdb instruction.
6436
6437 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6438
6439         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
6440         FP zero.
6441         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
6442         will anyway by matched by mov<mode>_64dfp.
6443
6444 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6445
6446         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
6447         vlef/vstef.  Add missing operand to vleif.
6448
6449 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6450
6451         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
6452         pair for all vector types with 64 bit elements.
6453         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
6454         * config/s390/vector.md (V_HW_64): ... here.
6455         (V_128_NOSINGLE): New mode iterator.
6456         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
6457         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
6458         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
6459         ("*vec_load_pairv2di"): Change to ...
6460         ("*vec_load_pair<mode>"): ... this one.
6461
6462 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6463
6464         * config/s390/constraints.md: Add comments.
6465         (jKK): Reject element sizes > 8 bytes.
6466         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
6467         s_operands.
6468         * config/s390/s390.md: Add the s_operand checks formerly in
6469         s390_split_ok_p to various splitters where they are still
6470         required.
6471         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
6472         for 128 bit vectors.  Plus two splitters.
6473
6474 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6475
6476         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
6477         the file.
6478
6479 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6480
6481         PR target/79893
6482         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
6483         error if the boundary argument is not constant.
6484
6485 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
6486
6487         PR rtl-optimization/80112
6488         * loop-doloop.c (doloop_condition_get): Don't check condition
6489         if cmp isn't SET with IF_THEN_ELSE src.
6490
6491 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6492
6493         PR tree-optimization/80158
6494         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
6495         replacing a candidate statement, also replace it for the
6496         candidate's alternate interpretation.
6497         (replace_rhs_if_not_dup): Likewise.
6498         (replace_one_candidate): Likewise.
6499
6500 2017-03-24  Richard Biener  <rguenther@suse.de>
6501
6502         PR tree-optimization/80167
6503         * graphite-isl-ast-to-gimple.c
6504         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
6505         properly.
6506         (translate_isl_ast_to_gimple::get_rename): Likewise.
6507
6508 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6509
6510         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
6511         handling of certain combinations of target options, including the
6512         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
6513         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
6514
6515 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6516
6517         PR target/71436
6518         * config/arm/arm.md (*load_multiple): Add reload_completed to
6519         matching condition.
6520
6521 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6522             Richard Biener  <rguenth@suse.de>
6523
6524         PR tree-optimization/79908
6525         PR tree-optimization/80136
6526         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
6527         been cast away, gimplify_and_add suffices.
6528
6529 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
6530
6531         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
6532
6533 2017-03-23  Richard Biener  <rguenther@suse.de>
6534
6535         PR tree-optimization/80032
6536         * gimplify.c (gimple_push_cleanup): Forced unconditional
6537         cleanups still have to go to the conditional_cleanups
6538         sequence.
6539
6540 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
6541
6542         PR tree-optimization/80072
6543         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
6544         to unsigned int.
6545         (next_operand_entry_id): Change type to unsigned int.
6546         (sort_by_operand_rank): Make sure to return the right return value
6547         even if unsigned fields are bigger than INT_MAX.
6548         (struct oecount): Change cnt and id type to unsigned int.
6549         (oecount_hasher::equal): Formatting fix.
6550         (oecount_cmp): Make sure to return the right return value
6551         even if unsigned fields are bigger than INT_MAX.
6552         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
6553
6554         PR c++/80129
6555         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
6556         TREE_READONLY on result if writing it more than once.
6557
6558         PR sanitizer/80110
6559         * doc/invoke.texi (-fsanitize=thread): Document that with
6560         -fnon-call-exceptions atomics are not able to throw
6561         exceptions.
6562
6563         PR sanitizer/80110
6564         * tsan.c: Include tree-eh.h.
6565         (instrument_builtin_call): Call maybe_clean_eh_stmt or
6566         maybe_clean_or_replace_eh_stmt where needed.
6567         (instrument_memory_accesses): Add cfg_changed argument.
6568         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
6569         if it returned true.
6570         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
6571
6572         PR rtl-optimization/63191
6573         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
6574         wrapper function, moved the whole old content into ...
6575         (ix86_delegitimize_address_1): ... this.  New inline function.
6576         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
6577         true as last argument instead of ix86_delegitimize_address.
6578
6579 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
6580
6581         * config/aarch64/aarch64.c (generic_branch_cost): Copy
6582         cortexa57_branch_cost.
6583
6584 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
6585
6586         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
6587
6588 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6589
6590         PR target/80123
6591         * doc/md.texi (Constraints): Document wA constraint.
6592         * config/rs6000/constraints.md (wA): New.
6593         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
6594         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
6595         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
6596         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
6597
6598 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
6599
6600         PR c++/80029
6601         * gimplify.c (is_oacc_declared): New function.
6602         (oacc_default_clause): Use it to set default flags for acc declared
6603         variables inside parallel regions.
6604         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
6605         declared variables.
6606         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
6607         declare attribute to any decl as necessary.
6608
6609 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6610
6611         PR target/80082
6612         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
6613         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
6614         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
6615         (arm_arch_lpae): This.
6616         * config/arm/arm.c (arm_arch7ve): Rename into ...
6617         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
6618         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
6619         arm_arch_lpae.
6620
6621 2017-03-22  Martin Liska  <mliska@suse.cz>
6622
6623         PR target/79906
6624         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
6625         error message instead of an ICE.
6626
6627 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6628
6629         * doc/extend.texi (6.11 Additional Floating Types): Revise.
6630
6631 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6632
6633         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6634         comments.
6635         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6636         comments.
6637
6638 2017-03-21  Martin Sebor  <msebor@redhat.com>
6639
6640         * doc/extend.texi: Use "cannot" instead of "can't."
6641         * doc/hostconfig.texi: Same.
6642         * doc/install.texi: Same.
6643         * doc/invoke.texi: Same.
6644         * doc/loop.texi: Same.
6645         * doc/md.texi: Same.
6646         * doc/objc.texi: Same.
6647         * doc/rtl.texi: Same.
6648         * doc/tm.texi: Same.
6649         * doc/tm.texi.in: Same.
6650         * doc/trouble.texi: Same.
6651
6652 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
6653
6654         PR debug/63238
6655         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
6656         (collect_checksum_attributes): Set it.
6657         (die_checksum_ordered): Use it.
6658
6659 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6660
6661         PR tree-optimization/79908
6662         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
6663         change: For a VA_ARG whose LHS has been cast away, use
6664         force_gimple_operand to construct the side effects.
6665
6666 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
6667
6668         PR translation/80001
6669         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
6670         more amenable to translation.
6671         (oacc_loop_auto_partitions): Likewise.
6672
6673 2017-03-21  Marek Polacek  <polacek@redhat.com>
6674             Martin Sebor  <msebor@redhat.com>
6675
6676         PR tree-optimization/80109
6677         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
6678         on INTEGRAL_TYPE_P.
6679
6680 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
6681             Segher Boessenkool  <segher@kernel.crashing.org>
6682
6683         PR target/80125
6684         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
6685         check reg_used_between_p between insn and one of succ or succ2
6686         depending on if succ is artificial insn not inserted into insn
6687         stream.
6688
6689 2017-03-21  Martin Liska  <mliska@suse.cz>
6690
6691         PR gcov-profile/80081
6692         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
6693         * doc/gcc.texi: Include gcov-dump stuff.
6694         * doc/gcov-dump.texi: New file.
6695
6696 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
6697
6698         PR rtl-optimization/79150
6699         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
6700         conditional jump, if the jump is the last insn of the loop.
6701
6702 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6703             Richard Biener  <rguenth@suse.de>
6704
6705         PR tree-optimization/79908
6706         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
6707         been cast away, use force_gimple_operand to construct the side
6708         effects.
6709
6710 2017-03-21  Martin Liska  <mliska@suse.cz>
6711
6712         PR libfortran/79956
6713         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
6714         to NULL.
6715
6716 2017-03-21  Brad Spengler <spender@grsecurity.net>
6717
6718         PR plugins/80094
6719         * plugin.c (htab_hash_plugin): New function.
6720         (add_new_plugin): Use it and adjust.
6721         (parse_plugin_arg_opt): Adjust.
6722         (init_one_plugin): Likewise.
6723
6724 2017-03-21  Richard Biener  <rguenther@suse.de>
6725
6726         PR tree-optimization/80032
6727         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
6728         if set force the cleanup to happen unconditionally.
6729         (gimplify_target_expr): Push inserted clobbers with force_uncond
6730         to avoid them being removed by control-dependent DCE.
6731
6732 2017-03-21  Richard Biener  <rguenther@suse.de>
6733
6734         PR tree-optimization/80122
6735         * tree-inline.c (copy_bb): Do not expans va-arg packs or
6736         va_arg_pack_len when the inlined call stmt requires pack
6737         expansion itself.
6738         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
6739
6740 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
6741
6742         PR sanitizer/78158
6743         * tsan.c (instrument_builtin_call): If the memory model argument
6744         is not a constant, assume it is valid.
6745
6746         PR c/67338
6747         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
6748         avoid UB.
6749
6750 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
6751
6752         PR rtl-optimization/79910
6753         * combine.c (can_combine_p): Do not allow combining an I0 or I1
6754         if its dest is used by an insn before I2 (other than the combined
6755         insns themselves, which are properly handled already).
6756
6757 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
6758
6759         Revert:
6760         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
6761
6762         * combine.c (record_used_regs): New static function.
6763         (try_combine): Handle situations where there is an additional
6764         instruction between I2 and I3 which needs to have a LOG_LINK
6765         updated.
6766
6767         Revert:
6768         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
6769
6770         * combine.c (try_combine): Delete redundant i1 test.  Call
6771         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6772
6773 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6774
6775         PR target/80083
6776         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
6777         alternatives 13/14.
6778
6779 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6780
6781         PR tree-optimization/80054
6782         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
6783         the optimization if a PHI or any of its arguments is not dominated
6784         by the candidate's basis.  Use gphi* rather than gimple* as
6785         appropriate.
6786         (replace_profitable_candidates): Clean up a gimple* variable that
6787         should be a gphi* variable.
6788
6789 2017-03-20  Martin Sebor  <msebor@redhat.com>
6790
6791         PR c++/52477
6792         * doc/extend.texi (attribute constructor): Document present limitation.
6793
6794 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6795
6796         PR target/79963
6797         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
6798         __POWER9_VECTOR__ #ifdef control, change template definition to
6799         use Power9-specific built-in function.
6800         (vec_any_eq): Likewise.
6801         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
6802         to control outcomes from this test.
6803         (vector_ae_<mode>p): For VEC_F modes, likewise.
6804
6805 2017-03-20  Ian Lance Taylor  <iant@google.com>
6806
6807         * config/i386/i386.c (ix86_function_regparm): Save an extra
6808         register for -fsplit-stack with DECL_STATIC_CHAIN.
6809
6810 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
6811
6812         PR target/79912
6813         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
6814         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
6815
6816 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
6817
6818         * config/riscv/riscv.c (riscv_print_operand): Use "fence
6819         iorw,ow".
6820         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
6821         iorw,iorw".
6822
6823 2017-03-20  Marek Polacek  <polacek@redhat.com>
6824
6825         PR sanitizer/80063
6826         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
6827
6828 2017-03-20  Richard Biener  <rguenther@suse.de>
6829
6830         PR tree-optimization/80113
6831         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
6832         allocate extra SSA name for PHI def.
6833         (add_close_phis_to_outer_loops): Likewise.
6834         (add_close_phis_to_merge_points): Likewise.
6835         (copy_loop_close_phi_args): Likewise.
6836         (copy_cond_phi_nodes): Likewise.
6837
6838 2017-03-20  Martin Liska  <mliska@suse.cz>
6839
6840         PR middle-end/79753
6841         * tree-chkp.c (chkp_build_returned_bound): Do not build
6842         returned bounds for a LHS that's not a BOUNDED_P type.
6843
6844 2017-03-20  Martin Liska  <mliska@suse.cz>
6845
6846         PR target/79769
6847         PR target/79770
6848         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
6849         COMPLEX_CST and VECTOR_CST.
6850
6851 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6852
6853         PR target/78857
6854         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
6855         target operand.  A new splitter adds the clobber statement in case
6856         the target operand is dead anyway.
6857
6858 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
6859
6860         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
6861         to age-old versions of binutils and glibc.
6862
6863 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
6864
6865         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
6866
6867 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
6868
6869         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
6870
6871 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
6872
6873         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
6874         requirement for binutils 2.13.
6875
6876 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
6877
6878         * combine.c (try_combine): Delete redundant i1 test.  Call
6879         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6880
6881 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
6882
6883         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
6884         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
6885         contents.
6886         <riscv64-*-elf>: Re-arrange section
6887         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
6888         <riscv32-*-linux>: Likewise.
6889         <riscv64-*-elf>: Likewise
6890         <riscv64-*-linux>: Likewise.
6891
6892 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
6893
6894         PR target/80052
6895         * aarch64.opt(verbose-cost-dump): Fix typo.
6896
6897 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
6898
6899         PR target/79951
6900         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
6901         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
6902
6903 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
6904
6905         * reload.c (find_reloads): When reloading a nonoffsettable address,
6906         use RELOAD_OTHER for it and its address reloads.
6907
6908         PR rtl-optimization/79910
6909         * combine.c (record_used_regs): New static function.
6910         (try_combine): Handle situations where there is an additional
6911         instruction between I2 and I3 which needs to have a LOG_LINK
6912         updated.
6913
6914 2017-03-17  Jeff Law  <law@redhat.com>
6915
6916         PR tree-optimization/71437
6917         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
6918         conditional in the hash table first.
6919         (vrp_dom_walker::before_dom_children): Extract condition from
6920         ASSERT_EXPR.  Record condition, its inverion and any implied
6921         conditions as well.
6922
6923 2017-03-17  Marek Polacek  <polacek@redhat.com>
6924             Markus Trippelsdorf  <markus@trippelsdorf.de>
6925
6926         PR tree-optimization/80079
6927         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
6928         m_stores_head.
6929
6930 2017-03-17  Richard Biener  <rguenther@suse.de>
6931
6932         PR middle-end/80075
6933         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
6934         Properly verify the LHS before the RHS possibly claims to be
6935         handled.
6936         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
6937         do not throw.
6938
6939 2017-03-17  Martin Jambor  <mjambor@suse.cz>
6940
6941         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
6942         (List of -O2 options): Likewise.
6943         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
6944         (-fipa-vrp) New.
6945
6946 2017-03-17  Tom de Vries  <tom@codesourcery.com>
6947
6948         * gcov-dump.c (print_usage): Print bug_report_url.
6949
6950 2017-03-17  Richard Biener  <rguenther@suse.de>
6951
6952         PR middle-end/80050
6953         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
6954         (parser::peek): Likewise.
6955
6956 2017-03-17  Richard Biener  <rguenther@suse.de>
6957
6958         PR tree-optimization/80048
6959         * sese.c (free_sese_info): Properly release rename_map and
6960         copied_bb_map elements.
6961
6962 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
6963
6964         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
6965         Add linked-list forward and backlinks.  Insert on
6966         construction, remove on destruction.
6967         (class pass_store_merging): Add m_stores_head field.
6968         (pass_store_merging::terminate_and_process_all_chains):
6969         Iterate over m_stores_head list.
6970         (pass_store_merging::terminate_all_aliasing_chains):
6971         Likewise.
6972         (pass_store_merging::execute): Check for debug stmts first.
6973         Push new chains onto the m_stores_head stack.
6974
6975 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
6976
6977         PR target/71294
6978         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
6979         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
6980         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
6981
6982 2017-03-16  Jeff Law  <law@redhat.com>
6983
6984         PR tree-optimization/71437
6985         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
6986         member function.  Implementation moved into after_dom_children
6987         member function and into the threader's thread_outgoing_edges
6988         function.
6989         (dom_opt_dom_walker::after_dom_children): Simplify by moving
6990         some code into new thread_outgoing_edges.
6991         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
6992         definition.  Simplify marker handling (do it here).   Assume we always
6993         have the available expression and the const/copies tables.
6994         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
6995         and tree-vrp.c
6996         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
6997         * tree-vrp.c (equiv_stack): No longer file scoped.
6998         (vrp_dom_walker): New class.
6999         (vrp_dom_walker::before_dom_children): New member function.
7000         (vrp_dom_walker::after_dom_children): Likewise.
7001         (identify_jump_threads):  Setup domwalker.  Use it rather than
7002         walking edges in a random order by hand.  Simplify setup/finalization.
7003         (finalize_jump_threads): Remove.
7004         (vrp_finalize): Do not call identify_jump_threads here.
7005         (execute_vrp): Do it here instead and call thread_through_all_blocks
7006         here too.
7007
7008         PR tree-optimization/71437
7009         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
7010         callers changed.
7011         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
7012         callers changed.
7013         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
7014         (dom_opt_dom_walker::thread_across_edge): Remove
7015         handle_dominating_asserts argument.  All callers changed.
7016         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
7017         changes.  Remove calls to lhs_of_dominating_assert.  Other
7018         uses of handle_dominating_asserts turn into unconditional code
7019         (simplify_control_stmt_condition_1): Likewise.
7020         (simplify_control_stmt_condition): Likewise.
7021         (thread_through_normal_block, thread_across_edge): Likewise.
7022         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
7023         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
7024         object if it is not an SSA_NAME.
7025         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
7026         before calling into the VRP specific simplifiers.
7027         (identify_jump_threads): Remove handle_dominating_asserts
7028         argument.
7029
7030 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
7031
7032         PR fortran/79886
7033         * tree-diagnostic.c (default_tree_printer): No longer static.
7034         * tree-diagnostic.h (default_tree_printer): New prototype.
7035
7036 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
7037
7038         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
7039         Change ins into fmov.
7040
7041 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7042
7043         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
7044         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
7045         Use h_con constraint for operand 1.
7046         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7047         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
7048
7049 2017-03-15  Jeff Law  <law@redhat.com>
7050
7051         PR tree-optimization/71437
7052         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
7053         (record_temporary_equivalences): Use it.
7054
7055         PR tree-optimization/71437
7056         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
7057         tree-ssa-scopedtables.
7058         (lookup_avail_expr, build_and_record_new_cond): Likewise.
7059         (record_conditions, record_cond, vuse_eq): Likewise.
7060         (record_edge_info): Adjust to API tweak of record_conditions.
7061         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
7062         (record_temporary_equivalences, optimize_stmt): Likewise.
7063         (eliminate_redundant_computations): Likewise.
7064         (record_equivalences_from_stmt): Likewise.
7065         * tree-ssa-scopedtables.c: Include options.h and params.h.
7066         (vuse_eq): New function, moved from tree-ssa-dom.c
7067         (build_and_record_new_cond): Likewise.
7068         (record_conditions): Likewise.  Accept vector of conditions rather
7069         than edge_equivalence structure for first argument.
7070         for the first argument.
7071         (avail_exprs_stack::lookup_avail_expr): New member function, moved
7072         from tree-ssa-dom.c.
7073         (avail_exprs_stack::record_cond): Likewise.
7074         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
7075         from tree-ssa-dom.c.
7076         (avail_exprs_stack): Add new member functions lookup_avail_expr
7077         and record_cond.
7078         (record_conditions): Declare.
7079
7080 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
7081
7082         PR target/80017
7083         * lra-constraints.c (process_alt_operands): Increase reject for
7084         reloading an input/output operand.
7085
7086 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7087
7088         PR target/79038
7089         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
7090         insns to convert from signed/unsigned char/short to IEEE 128-bit
7091         floating point.
7092         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
7093
7094 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
7095
7096         PR target/80019
7097         * config/i386/i386.c (ix86_vector_duplicate_value): Create
7098         subreg of inner mode for values already in registers.
7099
7100 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
7101
7102         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
7103         iteration reg is used after the loop.
7104
7105 2017-03-14  Martin Sebor  <msebor@redhat.com>
7106
7107         PR tree-optimization/79800
7108         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
7109         precision in negative-positive range.
7110         (format_floating): Call non-const overload with adjusted precision.
7111
7112 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7113
7114         PR target/79947
7115         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
7116         -mpowerpc-gfxopt.
7117
7118 2017-03-14  Martin Sebor  <msebor@redhat.com>
7119
7120         PR middle-end/80020
7121         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
7122         * builtins.def (aligned_alloc): Use it.
7123
7124         PR c/79936
7125         * Makefile.in (GTFILES): Add calls.c.
7126         * calls.c: Include "gt-calls.h".
7127
7128 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
7129
7130         PR rtl-optimization/79728
7131         * regs.h (struct target_regs): New field
7132         x_contains_allocatable_regs_of_mode.
7133         (contains_allocatable_regs_of_mode): New macro.
7134         * reginfo.c (init_reg_sets_1): Initialize it, and change
7135         contains_reg_of_mode so it includes global regs as well.
7136         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
7137         rather than contains_regs_of_mode.
7138
7139 2017-03-14  Martin Liska  <mliska@suse.cz>
7140
7141         * doc/invoke.texi: Document options that can't be combined with
7142         -fcheck-pointer-bounds.
7143
7144 2017-03-14  Martin Liska  <mliska@suse.cz>
7145
7146         PR middle-end/79831
7147         * doc/invoke.texi (-Wchkp): Document the option.
7148
7149 2017-03-14  Martin Liska  <mliska@suse.cz>
7150
7151         * Makefile.in: Install gcov-dump.
7152
7153 2017-03-14  Martin Liska  <mliska@suse.cz>
7154
7155         * multiple_target.c (expand_target_clones): Bail out for
7156         an invalid attribute.
7157
7158 2017-03-14  Richard Biener  <rguenther@suse.de>
7159
7160         * alias.c (struct alias_set_entry): Pack properly.
7161         * cfgloop.h (struct loop): Likewise.
7162         * cse.c (struct set): Likewise.
7163         * ipa-utils.c (struct searchc_env): Likewise.
7164         * loop-invariant.c (struct invariant): Likewise.
7165         * lra-remat.c (struct cand): Likewise.
7166         * recog.c (struct change_t): Likewise.
7167         * rtl.h (struct address_info): Likewise.
7168         * symbol-summary.h (function_summary): Likewise.
7169         * tree-loop-distribution.c (struct partition): Likewise.
7170         * tree-object-size.c (struct object_size_info): Likewise.
7171         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
7172         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
7173         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
7174         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
7175         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
7176         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
7177         (struct _stmt_vec_info): Likewise.
7178
7179 2017-03-14  Martin Liska  <mliska@suse.cz>
7180
7181         PR target/79892
7182         * multiple_target.c (create_dispatcher_calls): Check that
7183         a target can create a function dispatcher.
7184
7185 2017-03-14  Martin Liska  <mliska@suse.cz>
7186
7187         PR lto/66295
7188         * multiple_target.c (expand_target_clones): Drop local.local
7189         flag for default implementation.
7190
7191 2017-03-14  Richard Biener  <rguenther@suse.de>
7192
7193         PR tree-optimization/80030
7194         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
7195
7196 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
7197
7198         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
7199         gcc_fallthrough() instead of __attribute__((fallthrough));
7200
7201 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
7202
7203         * doc/gcc.texi: Remove "up" link to (DIR).
7204         * doc/gccint.texi: Ditto.
7205
7206 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
7207
7208         * doc/install.texi (Specific) <avr>: Remove reference to
7209         binutils 2.13.
7210
7211 2017-03-13  Jeff Law  <law@redhat.com>
7212
7213         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
7214         attribute rather than comments.
7215
7216         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
7217         match_scratch operand is highest.
7218
7219 2017-03-13  Martin Liska  <mliska@suse.cz>
7220
7221         PR middle-end/78339
7222         * ipa-pure-const.c (warn_function_noreturn): If the declarations
7223         is a CHKP clone, use original declaration.
7224
7225 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7226
7227         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
7228         (arc_conditional_register_usage): Use a different allocation order
7229         when optimizing for size.
7230         * common/config/arc/arc-common.c (arc_option_optimization_table):
7231         Section anchors default on when optimizing for size.
7232
7233 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7234
7235         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
7236
7237 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7238
7239         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
7240         * config/arc/arc.md (cpu_facility): Add cd variant.
7241         (*movqi_insn): Add code density variant.
7242         (*movhi_insn): Likewise.
7243         (*movqi_insn): Likewise.
7244         (*addsi3_mixed): Likewise.
7245         (subsi3_insn): Likewise.
7246
7247 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7248
7249         * config/arc/arc.md (movsi_cond_exec): Update constraint.
7250
7251 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
7252
7253         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
7254         expressions with MINUS and UNARY ops.
7255
7256 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7257
7258         PR target/79911
7259         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
7260         Rename to...
7261         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
7262         between vec_select and vector argument.
7263         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
7264         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
7265         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
7266         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
7267         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
7268         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
7269
7270 2017-03-13  Richard Biener  <rguenther@suse.de>
7271
7272         PR other/79991
7273         * params.def (vect-max-peeling-for-alignment): Fix typo.
7274
7275 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7276
7277         * doc/install.texi (Specific) <mips-*-*>: Remove description of
7278         issue that only occurred with binutils below 2.18.
7279
7280 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7281
7282         * doc/install.texi (Specific) <cris-axis-elf>: No longer
7283         refer to binutils 2.11/2.12 minimum.
7284
7285 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
7286
7287         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
7288         ftp.kernel.org and simplify binutils requirement.
7289
7290 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
7291
7292         * doc/invoke.texi (Warning Options): Fix spelling of link-time
7293         optimization.
7294         (Optimize Options): Ditto.  Also remove redundancy.
7295
7296 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7297
7298         PR translation/79848
7299         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
7300         "%qs".
7301         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
7302         to G_ to avoid double translation.
7303
7304 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7305
7306         PR translation/79923
7307         * auto-profile.c (get_combined_location): Convert leading
7308         character of diagnostics to lower case and remove trailing period.
7309         (read_profile): Likewise for various diagnostics.
7310         * config/arm/arm.c (arm_option_override): Remove trailing period
7311         from various diagnostics.
7312         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
7313         (msp430_expand_delay_cycles): Likewise.
7314
7315 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7316
7317         PR target/79925
7318         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
7319         full command-line argument, rather than just "str".
7320         (aarch64_validate_march): Likewise.
7321         (aarch64_validate_mtune): Likewise.
7322
7323 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
7324
7325         PR rtl-optimization/78911
7326         * lra-assigns.c (must_not_spill_p): New function.
7327         (spill_for): Use it.
7328
7329 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
7330
7331         PR tree-optimization/79981
7332         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
7333         ATOMIC_COMPARE_EXCHANGE ifn result.
7334         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
7335         IFN_ATOMIC_COMPARE_EXCHANGE.
7336
7337 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7338
7339         PR driver/79875
7340         * opts.c (parse_sanitizer_options): Add missing question mark to
7341         "did you mean" message.
7342
7343 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7344
7345         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
7346         built-in.
7347         (VMULEUH_UNS): Likewise.
7348         (VMULOUB_UNS): Likewise.
7349         (VMULOUH_UNS): Likewise.
7350         * config/rs6000/rs6000.c (builtin_function_type): Remove
7351         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
7352
7353 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7354
7355         PR bootstrap/79952
7356         * read-rtl-function.c (function_reader::read_rtx_operand): Update
7357         x with result of extra_parsing_for_operand_code_0.
7358         (function_reader::extra_parsing_for_operand_code_0): Convert
7359         return type from void to rtx, returning x.  When reading
7360         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
7361         larger size containing struct block_symbol.
7362
7363 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
7364
7365         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
7366         -mfloat128-hardware without -m64.
7367
7368 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
7369
7370         PR target/79941
7371         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
7372         entries to the case statement that marks unsigned arguments to
7373         overloaded functions.
7374
7375 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7376
7377         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
7378         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
7379
7380 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
7381
7382         PR target/79907
7383         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
7384         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
7385
7386 2017-03-10  Martin Liska  <mliska@suse.cz>
7387
7388         PR target/65705
7389         PR target/69804
7390         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
7391         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
7392         FIELD != NULL.
7393
7394 2017-03-10  Olivier Hainque  <hainque@adacore.com>
7395
7396         * tree-switch-conversion (array_value_type): Start by resetting
7397         candidate type to it's main variant.
7398
7399 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
7400
7401         PR rtl-optimization/79909
7402         * combine.c (try_combine): Use simplify_replace_rtx on individual
7403         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
7404         of the whole CALL_INSN_FUNCTION_USAGE.
7405
7406         PR tree-optimization/79972
7407         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
7408         get_range_info on SSA_NAMEs.  Formatting fixes.
7409
7410 2017-03-10  Richard Biener  <rguenther@suse.de>
7411             Jakub Jelinek  <jakub@redhat.com>
7412
7413         PR tree-optimization/77975
7414         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
7415         edge to be constant.
7416         (get_val_for): For constant x return it.  Formatting fix.
7417         (loop_niter_by_eval): Avoid pointless looping if the next iteration
7418         would use the same bases as the current one.
7419
7420 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7421
7422         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
7423         instead of vec_select for V1TImode.
7424         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
7425         longer needed.
7426         (VSX_LE_128): Add V1TI to this mode iterator.
7427         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
7428         (*vsx_le_perm_store_<mode>): Likewise.
7429         (pre-reload splitter for VSX stores): Likewise.
7430         (post-reload splitter for VSX stores): Likewise.
7431         (*vsx_xxpermdi2_le_<mode>): Likewise.
7432         (*vsx_lxvd2x2_le_<mode>): Likewise.
7433         (*vsx_stxvd2x2_le_<mode>): Likewise.
7434
7435 2017-03-09  Michael Eager  <eager@eagercon.com>
7436
7437         Correct failures with --enable-checking=yes,rtl.
7438
7439         * config/microblaze/microblaze.c (microblaze_expand_shift):
7440         Replace GET_CODE test with CONST_INT_P and INTVAL test with
7441         test for const0_rtx.
7442         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
7443         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
7444
7445 2017-03-09  Richard Biener  <rguenther@suse.de>
7446
7447         PR tree-optimization/79977
7448         * graphite-scop-detection.c (scop_detection::merge_sese):
7449         Handle the case of extra exits to blocks dominating the entry.
7450
7451 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
7452
7453         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
7454         Document rdynamic.
7455
7456 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
7457
7458         PR rtl-optimization/79949
7459         * lra-constraints.c (process_alt_operands): Check memory when
7460         trying to predict a cycle.  Print about the overall increase.
7461
7462 2017-03-09  Richard Biener  <rguenther@suse.de>
7463
7464         PR middle-end/79971
7465         * gimple-expr.c (useless_type_conversion_p): Preserve
7466         TYPE_SATURATING for fixed-point types.
7467
7468 2017-03-09  Richard Biener  <rguenther@suse.de>
7469
7470         PR ipa/79970
7471         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
7472         alignment of BLKmode params.
7473
7474 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7475
7476         PR target/79913
7477         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
7478         (VALL_NO_V2Q): Likewise.
7479         (VDQF_DF): Delete.
7480         * config/aarch64/aarch64-simd.md
7481         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
7482         iterator.
7483         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
7484         VALL_NO_V2Q mode iterator.
7485         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
7486
7487 2017-03-09  Martin Liska  <mliska@suse.cz>
7488
7489         PR tree-optimization/79631
7490         * tree-chkp-opt.c (chkp_is_constant_addr): Call
7491         tree_int_cst_sign_bit just for INTEGER constants.
7492
7493 2017-03-09  Martin Liska  <mliska@suse.cz>
7494
7495         PR target/65705
7496         PR target/69804
7497         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
7498         sanitizers.
7499
7500 2017-03-09  Marek Polacek  <polacek@redhat.com>
7501
7502         PR c++/79672
7503         * tree.c (inchash::add_expr): Handle TREE_VEC.
7504
7505 2017-03-09  Martin Liska  <mliska@suse.cz>
7506
7507         PR ipa/79764
7508         (chkp_narrow_size_and_offset): New function.
7509         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
7510         (void chkp_parse_bit_field_ref): New function.
7511         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
7512         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
7513
7514 2017-03-09  Martin Liska  <mliska@suse.cz>
7515
7516         PR ipa/79761
7517         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
7518         (chkp_find_bounds_1): Remove gcc_unreachable.
7519
7520 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
7521
7522         PR sanitizer/79944
7523         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
7524         BUILT_IN_SYNC*, determine the access type from the size suffix and
7525         always build a MEM_REF with that type.  Handle forgotten
7526         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
7527
7528         PR target/79932
7529         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
7530         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
7531         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
7532         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
7533         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
7534         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
7535         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
7536         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
7537         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
7538         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
7539         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
7540         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
7541         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
7542         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
7543         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
7544         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
7545         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
7546         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
7547         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
7548         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
7549         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
7550         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
7551         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
7552         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
7553         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
7554         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
7555         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
7556         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
7557         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
7558         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
7559         definitions outside of __OPTIMIZE__ guarded section.
7560
7561         PR target/79932
7562         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
7563         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
7564         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
7565         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
7566         guarded section.
7567
7568 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7569
7570         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
7571         ("vfenez<mode>"): Add missing constraints.
7572
7573 2017-03-08  Martin Sebor  <msebor@redhat.com>
7574
7575         PR target/79928
7576         * config/nds32/nds32.c (nds32_option_override):
7577         Fix misspelled diagnostic.
7578
7579 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7580
7581         PR c/79940
7582         * gimplify.c (gimplify_omp_for): Replace index var in outer
7583         taskloop statement with an artificial variable and add
7584         OMP_CLAUSE_PRIVATE clause for it.
7585
7586 2017-03-08  Richard Biener  <rguenther@suse.de>
7587
7588         PR tree-optimization/79955
7589         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
7590         for accesses that are completely outside of the variable.
7591
7592 2017-03-08  Andrew Haley  <aph@redhat.com>
7593
7594         PR tree-optimization/79943
7595         * tree-ssa-loop-split.c (compute_new_first_bound): When
7596         calculating the new upper bound, (END-BEG) should be added, not
7597         subtracted.
7598
7599 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7600
7601         * config/avr/avr.md (setmemhi): Make sure match_dup
7602         operand number comes before match_scratch.
7603
7604 2017-03-08  Richard Biener  <rguenther@suse.de>
7605
7606         PR tree-optimization/79920
7607         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
7608         with ncopies == 1 to ...
7609         (vect_transform_slp_perm_load): ... here.  Properly compute
7610         all element loads by iterating VF times over the group.  Do
7611         not handle ncopies (computed in a broken way) in
7612         vect_create_mask_and_perm.
7613
7614 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7615
7616         PR sanitizer/79904
7617         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
7618         is a uniform vector, use uniform_vector_p return value instead of
7619         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
7620
7621 2017-03-07  Marek Polacek  <polacek@redhat.com>
7622
7623         PR middle-end/79809
7624         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
7625         (alloca_call_type): Likewise.
7626
7627 2017-03-07  Martin Liska  <mliska@suse.cz>
7628
7629         * gcov.c (process_args): Put comment to correct location.
7630
7631 2017-03-07  Martin Liska  <mliska@suse.cz>
7632
7633         PR middle-end/68270
7634         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
7635         Use array_at_struct_end_p instead of DECL_CHAIN (field).
7636         (chkp_narrow_bounds_for_field): Likewise.
7637         (chkp_parse_array_and_component_ref): Pass one more argument to
7638         call.
7639
7640 2017-03-07  Richard Biener  <rguenther@suse.de>
7641
7642         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
7643         preheaders.
7644
7645 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
7646
7647         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
7648         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
7649
7650 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7651
7652         PR c/79855
7653         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
7654         to end of description.
7655         (PARAM_MAX_STORES_TO_MERGE): Likewise.
7656
7657 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
7658
7659         PR rtl-optimization/79901
7660         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
7661         ...
7662         (*avx512f_<code><mode>3<mask_name>): ... this.
7663         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
7664         iterator instead of VI8_AVX2_AVX512BW.
7665
7666         PR rtl-optimization/79901
7667         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
7668         min/max expander, expand it using expand_vec_cond_expr.
7669
7670         PR sanitizer/79897
7671         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
7672         temporary.
7673
7674 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
7675
7676         PR c++/79821
7677         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
7678         to void * for PCH reasons.
7679         * dwarf2out.c (output_loc_operands, output_die): Cast
7680         v.val_vec.array to unsigned char *.
7681
7682 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
7683
7684         PR target/77850
7685         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
7686         vector types.
7687
7688 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
7689
7690         PR rtl-optimization/79571
7691         * lra-constraints.c (process_alt_operands): Calculate static
7692         reject and subtract it from overall when only addresses will be
7693         reloaded.
7694
7695 2017-03-06  Julia Koval  <julia.koval@intel.com>
7696
7697         PR target/79793
7698         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
7699         incoming stack boundary to 128 for 64-bit targets.
7700
7701 2017-03-06  Richard Biener  <rguenther@suse.de>
7702
7703         PR tree-optimization/79894
7704         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
7705         to NULL after folding it.
7706
7707 2017-03-06  Richard Biener  <rguenther@suse.de>
7708
7709         PR tree-optimization/79824
7710         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
7711         check disabling peeling for gaps.
7712
7713 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
7714
7715         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7716         attributes): Document gettimeofday.
7717
7718 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7719
7720         * config/s390/s390.c (s390_option_override_internal): Set
7721         PARAM_MIN_VECT_LOOP_BOUND
7722
7723 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7724
7725         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
7726         * config/s390/s390.md: Likewise.
7727
7728 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
7729
7730         PR target/79812
7731         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
7732         (<avx2_avx512>_perm<mode>): Rename to ...
7733         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
7734         of VI8F_256_512.
7735         (<avx512>_perm<mode>_mask): Rename to ...
7736         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
7737         of VI8F_256_512.
7738         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
7739         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
7740         instead of VI8F_256_512.
7741         (avx512f_perm<mode>): New define_expand.
7742         (avx512f_perm<mode>_mask): Likewise.
7743         (avx512f_perm<mode>_1<mask_name>): New define_insn.
7744         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
7745
7746 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
7747
7748         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
7749         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
7750         if_then_else.
7751         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
7752
7753 2017-03-06  Martin Liska  <mliska@suse.cz>
7754
7755         PR sanitize/79783
7756         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
7757         when having a SSA NAME w/o VAR_DECL assigned to it.
7758
7759 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
7760
7761         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
7762         msa_dpsub_<su>_d): Fix MODE for vec_select.
7763
7764 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
7765
7766         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
7767         argument.
7768         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
7769
7770 2017-03-06  Richard Biener  <rguenther@suse.de>
7771
7772         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
7773         * plugin.c (register_plugin_info): Likewise.
7774         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
7775
7776 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
7777
7778         * config/i386/sse.md (sse_storehps, sse_storelps,
7779         avx_<castmode><avxsizesuffix>_<castmode>,
7780         avx512f_<castmode><avxsizesuffix>_<castmode>,
7781         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
7782         in condition that at least one operand is not a MEM.
7783
7784 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
7785
7786         PR middle-end/79805
7787         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
7788         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
7789         ECF_NOTHROW.
7790         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
7791         gimple_call_nothrow_p flag based on whether original builtin can throw.
7792         If it can, emit following stmts on the fallthrough edge.
7793         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
7794         don't create new bb if inserting just debug stmts on the edge, try to
7795         insert them on the fallthru bb or just reset debug stmts.
7796
7797 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
7798
7799         PR target/43763
7800         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
7801         restore recog_data (including the operand rtxes inside it) around
7802         the call to get_insn_template.
7803
7804 2017-03-03  Martin Sebor  <msebor@redhat.com>
7805
7806         PR tree-optimization/79699
7807         * context.c (context::~context): Free MPFR caches to avoid
7808         a memory leak on program exit.
7809
7810 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7811
7812         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
7813         Use wide_int::ulow () instead of .elt (0).
7814
7815 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
7816
7817         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
7818         (*pushxf): Limit oF constraint to 32bit targets and add oC
7819         constraint for 64bit targets.
7820         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
7821         (*pushdf): Change rmF constraint to rmC.
7822
7823 2017-03-03  Martin Liska  <mliska@suse.cz>
7824
7825         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
7826         Remove unused variable.
7827
7828 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
7829
7830         PR target/79807
7831         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
7832         is a memory operand, increase num_memory.
7833         (ix86_expand_args_builtin): Likewise.
7834
7835 2017-03-03  Jan Hubicka  <jh@suse.cz>
7836
7837         PR lto/79760
7838         * ipa-devirt.c (maybe_record_node): Properly handle
7839         __cxa_pure_virtual visibility.
7840
7841 2017-03-03  Martin Liska  <mliska@suse.cz>
7842
7843         PR tree-optimization/79803
7844         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
7845         assert.
7846         (pass_loop_prefetch::execute): Disabled optimization if an
7847         assumption about L1 cache size is not met.
7848
7849 2017-03-03  Martin Liska  <mliska@suse.cz>
7850
7851         PR rtl-optimization/79574
7852         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
7853         (hash_scan_set): Likewise.
7854         (dump_hash_table): Likewise.
7855         (hoist_code): Likewise.
7856
7857 2017-03-03  Richard Biener  <rguenther@suse.de>
7858
7859         * fixed-value.c (fixed_from_string): Restore use of elt (1)
7860         in place of uhigh ().
7861         (fixed_convert_from_real): Likewise.
7862
7863 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
7864
7865         PR target/79514
7866         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
7867
7868 2017-03-03  Richard Biener  <rguenther@suse.de>
7869
7870         PR middle-end/79818
7871         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
7872         TYPE_OVERFLOW_UNDEFINED check.
7873
7874 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7875
7876         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
7877         numbers.
7878         (vector_ae_<mode>_p): Likewise.
7879         (vector_nez_<mode>_p): Likewise.
7880         (vector_ne_v2di_p): Likewise.
7881         (vector_ae_v2di_p): Likewise.
7882         (vector_ne_<mode>_p): Likewise.
7883         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
7884         numbers.
7885         (vsx_tsqrt<mode>2_fe): Likewise.
7886
7887 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
7888
7889         PR target/79514
7890         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
7891
7892 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
7893
7894         PR rtl-optimization/79780
7895         * cprop.c (one_cprop_pass): When second and further conditional trap
7896         in a single basic block is turned into an unconditional trap, turn it
7897         into a deleted note to avoid RTL verification failures.
7898
7899 2017-03-02  Richard Biener  <rguenther@suse.de>
7900
7901         * fold-const.c (const_binop): Use ulow () instead of elt (0).
7902
7903 2017-03-02  Richard Biener  <rguenther@suse.de>
7904
7905         PR tree-optimization/79345
7906         PR c++/42000
7907         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
7908         param and abort the walk, returning -1 if it is hit.
7909         (walk_aliased_vdefs): Take a limit param and pass it on.
7910         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
7911         defaulting to 0 and return a signed int.
7912         * tree-ssa-uninit.c (struct check_defs_data): New struct.
7913         (check_defs): New helper.
7914         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
7915         about uninitialized memory.
7916         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
7917         bogus uninitialized warning.
7918         (fixed_convert_from_real): Likewise.
7919
7920 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
7921
7922         PR tree-optimization/66768
7923         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
7924         iv_use if base object can't be determined.
7925
7926 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
7927
7928         PR tree-optimization/79345
7929         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
7930         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
7931         (get_pattern_stats): Initialize it.
7932         * genemit.c (gen_expand): Verify match_scratch numbers come after
7933         match_operand/match_dup numbers.
7934         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
7935         match_scratch numbers.
7936         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
7937         Likewise.
7938         * config/s390/s390.md (trunctdsd2): Likewise.
7939
7940 2017-03-02  Richard Biener  <rguenther@suse.de>
7941
7942         * wide-int.h (wide_int_storage::operator=): Implement in terms
7943         of wi::copy.
7944
7945 2017-03-02  Richard Biener  <rguenther@suse.de>
7946
7947         PR tree-optimization/79777
7948         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
7949         the to insert expression to sth existing.
7950
7951 2017-03-01  Martin Sebor  <msebor@redhat.com>
7952
7953         PR middle-end/79692
7954         * gimple-ssa-sprintf.c
7955         (directive::known_width_and_precision): New function.
7956         (format_integer): Use it.
7957         (get_mpfr_format_length): Consider the full range of precision
7958         when computing %g output with the # flag.  Set the likely byte
7959         count to 3 rather than 1 when precision is indeterminate.
7960         (format_floating): Correct the lower bound of precision.
7961
7962 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7963
7964         * doc/invoke.texi: Document default code model for 64-bit Linux.
7965
7966 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7967
7968         PR target/79752
7969         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
7970         udiv rather than div since input pattern is unsigned.
7971
7972 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
7973
7974         * config/i386/i386.c (print_reg): Warn for values of
7975         unsupported size in integer register.
7976
7977 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7978
7979         PR target/79439
7980         * config/rs6000/predicates.md (current_file_function_operand): Do
7981         not allow self calls to be local if the function is replaceable.
7982
7983 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7984
7985         PR target/79395
7986         * config/rs6000/altivec.h (vec_ctz and others): Change the
7987         preprocessor macro that controls conditional compilation from
7988         _ARCH_PWR9 to __POWER9_VECTOR__.
7989         (vec_all_ne): Change parameterization of __altivec_scalar_pred
7990         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
7991         control (instead of _ARCH_PWR9 control) so that template
7992         definition uses power9-specific function.
7993         (vec_any_eq): Likewise.
7994         (vec_all_ne): Change macro definition to use a power9-specific
7995         expansion under #ifdef __POWER9_VECTOR__ control (instead of
7996         _ARCH_PWR9 control).
7997         (vec_any_eq) Likewise.
7998         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
7999         expansion for CMPNEF to remove support for xvcmpnesp instruction.
8000         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
8001         support for xvcmpnedp instruction.
8002         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
8003         macro expansion so that Power9 implementation of vec_all_ne does
8004         not use the AltiVec predicate framework.
8005         (VCMPNEH_P): Likewise.
8006         (VCMPNEW_P): Likewise.
8007         (VCMPNED_P): Likewise.
8008         (VCMPNEFP_P): Likewise.
8009         (VCMPNEDP_P): Likewise.
8010         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
8011         implementation of vec_any_eq to not use AltiVec predicate
8012         framework.
8013         (VCMPAEH_P): Likewise.
8014         (VCMPAEW_P): Likewise.
8015         (VCMPAED_P): Likewise.
8016         (VCMPAEFP_P): Likewise.
8017         (VCMPAEDP_P): Likewise.
8018         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
8019         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
8020         not use the AltiVec predicate framework.
8021         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
8022         of vec_any_eq to not use AltiVec predicate framework.
8023         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
8024         support for predefined __POWER9_VECTOR__ macro to indicate that
8025         Power9 instruction selection is enabled.
8026         (altivec_overloaded_builtins): Remove extraneous
8027         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
8028         function argument types RS6000_BTI_bool_V16QI and
8029         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
8030         entry for overloaded function argument types RS6000_BTI_bool_V4SI
8031         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
8032         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
8033         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
8034         Power9 for implementations of vec_cmpne.  Change the signature for
8035         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
8036         (representing vec_all_ne) to remove the previously described first
8037         argument of type RS6000_BTI_INTSI, as this was an artifact of
8038         reliance on the AltiVec predicate framework, which is no longer
8039         used in the implementation of these functions.  Add
8040         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
8041         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
8042         since, unlike the AltiVec predicate framework implementation, we
8043         do not share function descriptors between vec_alle and vec_anyeq.
8044         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
8045         set of modes that receive special treatment even when
8046         TARGET_P9_VECTOR is true.  The special treatment emits code that
8047         does not depend on Power9 instructions.
8048         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
8049         define_expand to not rely on AltiVec predicate framework.
8050         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8051         function.
8052         (vector_ne_v2di_p): Change this define_expand to not rely on
8053         AltiVec predicate framework.
8054         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
8055         function.
8056         (vector_ne_<mode>_p): Change this define_expand to not rely on
8057         AltiVec predicate framework.
8058         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8059         function.
8060         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
8061         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
8062         define_insn pattern.
8063         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
8064         define_insn pattern because the xvcmpne<VSs>. instruction is not
8065         supported.
8066         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
8067         instruction is not supported.
8068
8069 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8070
8071         * config/nvptx/nvptx.c: Include intl.h.
8072
8073 2017-03-01  Martin Jambor  <mjambor@suse.cz>
8074
8075         PR lto/78140
8076         * ipa-prop.h (ipa_bits): Removed field known.
8077         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
8078         to pointers.  Adjusted their comments to warn about their sharing.
8079         (ipcp_transformation_summary): Change bits to a vector of pointers.
8080         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
8081         (ipa_get_ipa_bits_for_value): Declare.
8082         * tree-vrp.h (value_range): Mark as GTY((for_user)).
8083         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
8084         (ipa_bits_hash_table): Likewise.
8085         (ipa_vr_ggc_hash_traits): Likewise.
8086         (ipa_vr_hash_table): Likewise.
8087         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
8088         being pointers and vr_known being removed.
8089         (ipa_set_jf_unknown): Likewise.
8090         (ipa_get_ipa_bits_for_value): New function.
8091         (ipa_set_jfunc_bits): Likewise.
8092         (ipa_get_value_range): New overloaded functions.
8093         (ipa_set_jfunc_vr): Likewise.
8094         (ipa_compute_jump_functions_for_edge): Use the above functions to
8095         construct bits and vr parts of jump functions.
8096         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
8097         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8098         exist.
8099         (ipcp_grow_transformations_if_necessary): Also allocate
8100         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8101         exist.
8102         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
8103         them.  Fix too long lines.
8104         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
8105         vr_known being removed.
8106         (ipa_read_jump_function): Use new setter functions to construct bits
8107         and vr parts of jump functions or set them to NULL.
8108         (write_ipcp_transformation_info): Adjust for bits being pointers.
8109         (read_ipcp_transformation_info): Likewise.
8110         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
8111         space.
8112         Include gt-ipa-prop.h.
8113         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
8114         being pointers.
8115         (ipcp_store_bits_results): Likewise.
8116         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
8117         Do not write to existing jump functions but use a temporary instead.
8118
8119 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8120
8121         PR c++/79681
8122         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
8123         attempt to use its first operand as BIT_FIELD_REF base.
8124
8125 2017-03-01  Richard Biener  <rguenther@suse.de>
8126
8127         PR middle-end/79721
8128         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
8129         interpolating formula in wrapping arithmetic.
8130         (chrec_apply): Convert chrec_evaluate return value to wanted type.
8131
8132 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
8133
8134         PR tree-optimization/79734
8135         * tree-vect-generic.c (expand_vector_condition): Optimize
8136         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
8137         Handle VEC_COND_EXPR where comparison has different inner width from
8138         type's inner width.
8139
8140 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
8141
8142         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
8143         markup, and similar issues.  Remove @opindex entries for things
8144         that aren't options.  Add missing -mmpy-option entries.
8145
8146 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8147
8148         PR tree-optimization/79737
8149         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
8150         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
8151         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
8152         instead of byte_size.  Formatting fix.
8153         (shift_bytes_in_array_right): Formatting fix.
8154
8155 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
8156
8157         PR target/79749
8158         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
8159         condition on optimize for the leaf function test.
8160
8161 2017-02-28  Martin Liska  <mliska@suse.cz>
8162
8163         PR lto/79625
8164         * read-rtl-function.c (function_reader::handle_unknown_directive):
8165         Bail out when one uses -flto.
8166
8167 2017-02-28  Martin Liska  <mliska@suse.cz>
8168
8169         * common.opt: Replace space with tabular for options of <number>
8170         type.
8171         * config/i386/i386.opt: Show <number> value for
8172         -mlarge-data-threshold.
8173         * opts.c (print_filtered_help): Do not display number in hexadecimal
8174         format.
8175
8176 2017-02-28  Martin Liska  <mliska@suse.cz>
8177
8178         * common.opt: Fix --help=option -Q for options which are of
8179         an enum type.
8180
8181 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
8182
8183         * config/i386/i386.c (print_reg): Error out for values
8184         of 8-bit size in invalid integer register.
8185
8186 2017-02-28  Martin Sebor  <msebor@redhat.com>
8187
8188         PR tree-optimization/79691
8189         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
8190
8191 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8192
8193         PR target/79729
8194         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
8195         gcc_unreachable with output_operand_lossage.
8196
8197 2017-02-28  Richard Biener  <rguenther@suse.de>
8198
8199         PR tree-optimization/79740
8200         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
8201         inserts.
8202         (visit_nary_op): Insert the nary into the hashtable if we
8203         pattern-matched sth.
8204         * tree-ssa-pre.c (eliminate_insert): Robustify.
8205
8206 2017-02-28  Richard Biener  <rguenther@suse.de>
8207
8208         PR middle-end/79731
8209         * fold-const.c (decode_field_reference): Reject out-of-bound
8210         accesses.
8211
8212 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
8213
8214         * config/i386/i386.c: Include intl.h.
8215         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
8216         instead of just cond ? "..." : "...".
8217         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
8218         * coverage.c (read_counts_file): Likewise.
8219         * omp-offload.c: Include intl.h.
8220         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
8221         of just cond ? "..." : "...".
8222         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
8223         of just cond ? "..." : "...".
8224
8225 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
8226
8227         PR target/79742
8228         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
8229         entry, if present.
8230         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
8231         'tune for' CPU name.
8232         * config/arm/arm-cpu-data.h: Regenerated.
8233
8234 2017-02-28  Richard Biener  <rguenther@suse.de>
8235
8236         PR tree-optimization/79732
8237         * tree-inline.c (expand_call_inline): Do not shadow var.
8238
8239 2017-02-28  Richard Biener  <rguenther@suse.de>
8240
8241         PR tree-optimization/79723
8242         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
8243         address-space properly.
8244
8245 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
8246
8247         * doc/optinfo.texi (Optimization groups): Fix option used for
8248         OPTGROUP_ALL.
8249         * doc/invoke.texi (-fopt-info): Document "omp".
8250         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
8251         (OPTGROUP_ALL): Add OPTGROUP_OMP.
8252         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
8253         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
8254         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
8255
8256         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
8257         all users.
8258         * dumpfile.c (optgroup_options): Instead of "openmp", associate
8259         OPTGROUP_OMP with "omp".
8260
8261 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
8262
8263         PR target/79544
8264         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
8265         for arithmetic shift of unsigned V2DI.
8266
8267 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
8268
8269         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
8270         arc/linux.h headers.
8271         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
8272         (LINK_SPEC): Likewise.
8273         (ARC_TLS_EXTRA_START_SPEC): Likewise.
8274         (EXTRA_SPECS): Likewise.
8275         (STARTFILE_SPEC): Likewise.
8276         (ENDFILE_SPEC): Likewise.
8277         (LIB_SPEC): Likewise.
8278         (TARGET_SDATA_DEFAULT): Likewise.
8279         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
8280         (MULTILIB_DEFAULTS): Likewise.
8281         (DWARF2_UNWIND_INFO): Likewise.
8282         * config/arc/big.h: New file.
8283         * config/arc/elf.h: Likewise.
8284         * config/arc/linux.h: Likewise.
8285         * config/arc/t-uClibc: Remove.
8286
8287 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
8288
8289         PR tree-optimization/77536
8290         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
8291         (tree_transform_and_unroll_loop): Use above function to compute the
8292         estimated niter of unrolled loop and use it when scaling profile.
8293         Also use count info rather than frequency if it's non-zero.
8294         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
8295         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
8296         (vect_transform_loop): Call above function.
8297
8298 2017-02-27  Richard Biener  <rguenther@suse.de>
8299
8300         PR tree-optimization/45397
8301         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
8302         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
8303         (visit_nary_op): Add pattern matching for CSEing sign-changed
8304         or truncated operations with wider ones.
8305
8306 2017-02-27  Richard Biener  <rguenther@suse.de>
8307
8308         PR tree-optimization/79690
8309         * tree-vect-stmts.c (vectorizable_store): Use vector type
8310         built from the DR with address-space.
8311
8312 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
8313
8314         * doc/invoke.texi (Optimize Options): Refine the description
8315         of asan-use-after-return.
8316
8317 2017-02-25  Alan Modra  <amodra@gmail.com>
8318
8319         PR rtl-optimization/79584
8320         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
8321         base, not ad->base_term, the reg within base.  Remove assertion
8322         that ad->base == ad->base_term.  Replace gen_int_mode using
8323         bogus mode with const0_rtx.
8324
8325 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
8326
8327         PR middle-end/79396
8328         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
8329         FMA_EXPR like tcc_binary or tcc_unary.
8330
8331         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
8332
8333         PR debug/77589
8334         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
8335         bitfield.
8336         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
8337         (output_loc_operands): Handle DW_OP_call_ref and
8338         DW_OP_GNU_variable_value.
8339         (struct variable_value_struct): New type.
8340         (struct variable_value_hasher): Likewise.
8341         (variable_value_hash): New variable.
8342         (string_types): Remove.
8343         (copy_loc_descr): New function.
8344         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
8345         (prepend_loc_descr_to_each): New function.
8346         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
8347         instead of add_loc_descr_to_each if the first argument is single
8348         location list and the second has multiple.
8349         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
8350         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
8351         when looking for variable value which doesn't have other location info.
8352         (loc_list_from_tree): Formatting fix.
8353         (gen_array_type_die): Simplify DW_AT_string_length handling.
8354         (adjust_string_types): Remove.
8355         (gen_subprogram_die): Don't call adjust_string_types nor test/set
8356         string_types.  Call resolve_variable_values.
8357         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
8358         (resolve_addr_in_expr): Likewise.  Add A argument.
8359         (copy_deref_exprloc): Remove deref argument.  Adjust for the
8360         original expression being DW_OP_GNU_variable_value with optionally
8361         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
8362         optionally after it.
8363         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
8364         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
8365         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
8366         (variable_value_hasher::hash, variable_value_hasher::equal): New
8367         methods.
8368         (resolve_variable_value_in_expr, resolve_variable_value,
8369         resolve_variable_values, note_variable_value_in_expr,
8370         note_variable_value): New functions.
8371         (dwarf2out_early_finish): Call note_variable_value on all toplevel
8372         DIEs.
8373
8374 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
8375
8376         PR c/79677
8377         * opts.h (handle_generated_option): Add GENERATED_P argument.
8378         * opts-common.c (handle_option): Adjust function comment.
8379         (handle_generated_option): Add GENERATED_P argument, pass it to
8380         handle_option.
8381         (control_warning_option): Pass false to handle_generated_option
8382         GENERATED_P.
8383         * opts.c (maybe_default_option): Pass true to handle_generated_option
8384         GENERATED_P.
8385         * optc-gen.awk: Likewise.
8386
8387 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8388
8389         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
8390         a REG, look at the REG it is a SUBREG of.
8391         (splitter for cmpeqsi_t): Ditto.
8392
8393 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8394
8395         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
8396         the special USEs with the pattern of the insn, not the insn itself.
8397
8398 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
8399
8400         PR target/79473
8401         * doc/invoke.texi: Document -mload-store-pairs.
8402
8403 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8404             Sandra Loosemore  <sandra@codesourcery.com>
8405
8406         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
8407         argument isn't a CONST_INT.
8408         (nios2_alternate_compare_const): Assert op is a CONST_INT.
8409         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
8410         (nios2_validate_compare): Bypass alternate compare logic if *op2
8411         is not a CONST_INT.
8412         (ldstwm_operation_p): Return false if first_base is not a REG or
8413         if first_offset is not a CONST_INT.
8414
8415 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8416
8417         * config/cris/cris.md: Use correct operand in a define_peephole2.
8418
8419 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8420
8421         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
8422
8423 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
8424
8425         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
8426         this_insn if it is an INSN or JUMP_INSN.
8427         (force_offsettable): Look at base, not at addr.
8428         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
8429         on things that aren't necessarily CONST_INTs.
8430
8431 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
8432
8433         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
8434         -mfpmath=sse is the default also for x86-32 targets with SSE2
8435         instruction set when @option{-ffast-math} is enabled
8436
8437 2017-02-24  Jeff Law  <law@redhat.com>
8438
8439         PR rtl-optimizatoin/79286
8440         * ira.c (update_equiv_regs): Drop may_trap_p exception to
8441         dominance test.
8442
8443 2017-02-24  Richard Biener  <rguenther@suse.de>
8444
8445         PR tree-optimization/79389
8446         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
8447         debug insns.
8448
8449 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
8450
8451         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
8452         function comment to reflect reality.
8453         (loop_exits_before_overflow): Fix typo in function description.
8454
8455 2017-02-24  Richard Biener  <rguenther@suse.de>
8456
8457         PR tree-optimization/79389
8458         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
8459         properly that a threading opportunity exists.  Detect conditional
8460         copy/constant propagation opportunities.
8461
8462 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
8463
8464         * config/visium/visium.md (type): Add trap.
8465         (b): New mode attribute.
8466         (*btst): Rename into...
8467         (*btst<mode>): ...this and adjust.
8468         (*cbranchsi4_btst_insn): Rename into...
8469         (*cbranch<mode>4_btst_insn): ...this and adjust.
8470         (trap): New define_insn.
8471
8472 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
8473
8474         PR tree-optimization/79389
8475         * ifcvt.c (struct noce_if_info): Add rev_cond field.
8476         (noce_reversed_cond_code): New function.
8477         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
8478         reversed_comparison_code.  Formatting fix.
8479         (noce_try_store_flag): Test rev_cond != NULL in addition to
8480         reversed_comparison_code.
8481         (noce_try_store_flag_constants): Likewise.
8482         (noce_try_store_flag_mask): Likewise.
8483         (noce_try_addcc): Use rev_cond if non-NULL instead of
8484         reversed_comparison_code.
8485         (noce_try_cmove_arith): Likewise.  Formatting fixes.
8486         (noce_try_minmax, noce_try_abs): Clear rev_cond.
8487         (noce_find_if_block): Initialize rev_cond.
8488         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
8489         instead of false as last argument never attempt to reverse it
8490         afterwards.
8491
8492 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
8493
8494         PR tree-optimization/79663
8495         * tree-predcom.c (combine_chains): Process refs in reverse order
8496         only for ZERO length chains, and add explaining comment.
8497
8498 2017-02-23  Jeff Law  <law@redhat.com>
8499
8500         PR tree-optimization/79578
8501         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
8502         in call to operand_equal_p.
8503
8504 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
8505
8506         PR target/71017
8507         * config/i386/cpuid.h: Fix another undefined behavior.
8508
8509 2017-02-23  Richard Biener  <rguenther@suse.de>
8510
8511         PR tree-optimization/79683
8512         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
8513         vector types for data-refs.
8514
8515 2017-02-23  Martin Liska  <mliska@suse.cz>
8516
8517         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
8518
8519 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
8520
8521         PR middle-end/79665
8522         * internal-fn.c (get_range_pos_neg): Moved to ...
8523         * tree.c (get_range_pos_neg): ... here.  No longer static.
8524         * tree.h (get_range_pos_neg): New prototype.
8525         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
8526         are known to be in between 0 and signed maximum inclusive, try to
8527         expand both unsigned and signed divmod and use the cheaper one from
8528         those.
8529
8530 2017-02-22  Jeff Law  <law@redhat.com>
8531
8532         PR tree-optimization/79578
8533         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
8534         to compare base operands.
8535
8536 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
8537
8538         PR target/79211
8539         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
8540         gpc_reg_operand instead of fpr_reg_operand.
8541
8542 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
8543
8544         * config/mips/mips.c (mips_return_in_memory): Force FP
8545         vector types to be returned in memory for o32 ABI.
8546
8547 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
8548
8549         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
8550         instead of DW_TAG_member for static data member declarations and don't
8551         set no_linkage_name for static inline data members.
8552         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
8553         to DW_TAG_member.
8554
8555 2017-02-22  Martin Liska  <mliska@suse.cz>
8556
8557         * doc/invoke.texi: Replace inequality signs with square brackets
8558         for -Wnormalized.
8559
8560 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8561
8562         PR tree-optimization/68644
8563         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
8564
8565 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
8566
8567         PR target/78660
8568         * lra-constraints.c (simplify_operand_subreg): Handle
8569         WORD_REGISTER_OPERATIONS targets.
8570
8571 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
8572
8573         PR target/70465
8574         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
8575         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
8576         elimination by swapping fld*.
8577
8578 2017-02-22  Richard Biener  <rguenther@suse.de>
8579
8580         PR tree-optimization/79673
8581         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
8582         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
8583         irrelevant address-space qualifiers and avoiding a
8584         ADDR_SPACE_CONVERT_EXPR from fold_convert.
8585
8586 2017-02-22  Richard Biener  <rguenther@suse.de>
8587
8588         PR tree-optimization/79666
8589         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
8590         to not symbolically negate if that may introduce undefined
8591         overflow.
8592
8593 2017-02-22  Martin Liska  <mliska@suse.cz>
8594
8595         PR lto/79587
8596         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
8597         * data-streamer-out.c (streamer_write_gcov_count_stream):
8598         Likewise.
8599         * value-prof.c (stream_out_histogram_value): Make assert more
8600         precise based on type of counter.
8601
8602 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
8603
8604         PR target/79593
8605         * config/i386/i386.md (standard_x87sse_constant_load splitter):
8606         Use nonimmediate_operand instead of memory_operand for operand 1.
8607         (float-extend standard_x87sse_constant_load splitter): Ditto.
8608
8609 2017-02-21  Jeff Law  <law@redhat.com>
8610
8611         PR tree-optimization/79621
8612         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
8613         blocks with edges to themselves.
8614
8615 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
8616
8617         PR target/79633
8618         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
8619         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
8620         Use gimple_call_builtin_p.
8621
8622         PR target/79570
8623         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
8624         on temporarily removed DEBUG_INSNs.
8625
8626         PR tree-optimization/79649
8627         * tree-loop-distribution.c (classify_partition): Give up on
8628         non-generic address space loads/stores.
8629
8630 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
8631
8632         * doc/loop.texi (Loop manipulation): Remove nonexistent
8633         tree_ssa_loop_version from the documentation.
8634         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
8635
8636 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
8637
8638         PR target/79494
8639         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
8640         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
8641         * config/rs6000/rs6000.c: Include except.h.
8642         (rs6000_expand_split_stack_prologue): Call
8643         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
8644
8645 2017-02-21  Martin Jambor  <mjambor@suse.cz>
8646
8647         PR lto/79579
8648         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
8649         have been analyzed.
8650
8651 2017-02-21  Martin Jambor  <mjambor@suse.cz>
8652
8653         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
8654         for backward compatibility only.
8655         * doc/invoke.texi (Option Summary): Remove all references to
8656         -fipa-cp-alignment.
8657
8658 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
8659
8660         PR target/78660
8661         Revert:
8662         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8663
8664         * lra-constraints.c (curr_insn_transform): Handle
8665         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
8666
8667 2017-02-21  Martin Liska  <mliska@suse.cz>
8668
8669         * config/i386/i386.opt: Replace -masm-dialect with -masm.
8670
8671 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
8672
8673         PR translation/79638
8674         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
8675
8676 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
8677
8678         PR ada/67205
8679         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8680         (arm_function_ok_for_sibcall): Return false for an indirect call by
8681         descriptor if all the argument registers are used.
8682         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
8683         alignment of the function.
8684
8685 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
8686
8687         PR tree-optimization/61441
8688         * simplify-rtx.c (simplify_const_unary_operation): For
8689         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
8690         the sNaN unmodified.
8691
8692 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8693
8694         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8695         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8696         instead of SYSTEM_HEADER_DIR.
8697
8698 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
8699             Martin LiÅ¡ka  <mliska@suse.cz>
8700
8701         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
8702         Fix typos and grammar, use active voice, and clarify.
8703
8704 2017-02-20  Marek Polacek  <polacek@redhat.com>
8705
8706         PR middle-end/79537
8707         * gimplify.c (gimplify_expr): Handle unused *&&L;.
8708
8709         PR sanitizer/79558
8710         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
8711
8712 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
8713
8714         PR target/79568
8715         * config/i386/i386.c (ix86_expand_builtin): Handle
8716         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
8717         ix86_builtins_isa[fcode].isa as a requirement of those
8718         flags and any other flag in the bitmask.
8719         (ix86_init_mmx_sse_builtins): Use 0 instead of
8720         ~OPTION_MASK_ISA_64BIT as mask.
8721         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
8722         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
8723         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
8724         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
8725
8726 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8727
8728         PR target/78012
8729         * lra-constraints.c (split_reg): Check requested split mode
8730         is supported by the register.
8731
8732 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8733
8734         * lra-constraints.c (simplify_operand_subreg): Remove early
8735         return false.
8736
8737 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8738
8739         PR target/78660
8740         * lra-constraints.c (curr_insn_transform): Tighten condition
8741         for converting SUBREG reloads from OP_OUT to OP_INOUT.
8742
8743 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
8744
8745         PR target/78660
8746         * lra-constraints.c (curr_insn_transform): Handle
8747         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
8748
8749 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
8750
8751         Revert:
8752         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
8753
8754         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
8755
8756 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
8757
8758         PR c++/69523
8759         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
8760         description.
8761
8762 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8763
8764         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
8765         for FMA_EXPR.
8766
8767 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
8768
8769         * final.c (last_columnnum, override_columnnum): New variables.
8770         (final_start_function): Set last_columnnum, pass it to begin_prologue
8771         hook and pass 0 to dwarf2out_begin_prologue.
8772         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
8773         to source_line debug hook.
8774         (notice_source_line): Compute last_columnnum and for debug_column_info
8775         return true on column changes.
8776         * debug.h (struct gcc_debug_hooks): Add column argument to
8777         source_line and begin_prologue hooks.
8778         (debug_nothing_int_charstar_int_bool): Remove prototype.
8779         (debug_nothing_int_int_charstar,
8780         debug_nothing_int_int_charstar_int_bool): New prototypes.
8781         (dwarf2out_begin_prologue): Add column argument.
8782         * debug.c (do_nothing_debug_hooks): Adjust source_line and
8783         begin_prologue hooks.
8784         (debug_nothing_int_charstar_int_bool): Remove.
8785         (debug_nothing_int_int_charstar,
8786         debug_nothing_int_int_charstar_int_bool): New functions.
8787         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
8788         through to dwarf2out_source_line.
8789         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
8790         (dwarf2out_source_line): Add column argument, emit it if requested.
8791         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
8792         arguments.
8793         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
8794         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
8795         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
8796         through to dwarf2out_begin_prologue.
8797         (vmsdbgout_source_line): Add column argument, pass it through to
8798         dwarf2out_source_line.
8799         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
8800         dbxout_source_line caller.
8801         (dbxout_source_line): Add column argument.
8802
8803         * common.opt (gno-column-info, gcolumn-info): New options.
8804         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
8805         (check_die): Also test for multiple DW_AT_decl_column attributes.
8806         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
8807         DW_AT_decl_column if requested.
8808         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
8809         if requested.
8810         (gen_variable_die): Likewise.
8811         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
8812         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
8813
8814         PR target/79569
8815         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
8816         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
8817         (ix86_handle_option): Handle OPT_m3dnowa.
8818         * doc/invoke.texi (-m3dnowa): Document.
8819         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
8820         -m3dnowa instead of -m3dnow -march=athlon.
8821
8822         PR target/79559
8823         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
8824         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
8825
8826 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8827
8828         PR target/79261
8829         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
8830         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
8831         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
8832         generator for vsx_xxpermdi_<mode>_be.
8833         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
8834         force big-endian semantics.
8835         (vsx_xxpermdi_<mode>_be): New define_expand with same
8836         implementation as previous version of vsx_xxpermdi_<mode>.
8837
8838 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
8839
8840         PR tree-optimization/79327
8841         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
8842         variable, its initialization and use.
8843
8844 2017-02-17  Julia Koval  <julia.koval@intel.com>
8845
8846         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
8847         (OPTION_MASK_ISA_PKU_UNSET): New.
8848         (ix86_handle_option): Handle -mrdpid.
8849         * config/i386/cpuid.h (bit_RDPID): New.
8850         * config/i386/driver-i386.c (host_detect_local_cpu):
8851         Detect RDPID feature.
8852         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
8853         * config/i386/i386-c.c (ix86_target_macros_internal):
8854         Handle RDPID flag.
8855         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
8856         (ix86_valid_target_attribute_inner_p): Add "rdpid".
8857         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
8858         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
8859         * config/i386/i386.md (define_insn "rdpid"): New.
8860         * config/i386/i386.opt Add -mrdpid.
8861         * config/i386/immintrin.h (_rdpid_u32): New.
8862
8863 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
8864
8865         PR rtl-optimization/79541
8866         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
8867         instead of transforming it into USE.
8868
8869 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
8870
8871         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
8872         If HONOR_SNANS (SFmode) force the input to a register.
8873         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
8874         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
8875         an frsp or similar insn.
8876
8877 2017-02-17  Martin Liska  <mliska@suse.cz>
8878
8879         PR rtl-optimization/79577
8880         * params.def (selsched-max-sched-times): Increase minimum to 1.
8881
8882 2017-02-17  Martin Liska  <mliska@suse.cz>
8883
8884         PR rtl-optimization/79574
8885         * gcse.c (want_to_gcse_p): Prevent integer overflow.
8886
8887 2017-02-17  Martin Liska  <mliska@suse.cz>
8888
8889         PR tree-optimization/79529
8890         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
8891         ssa_defined_default_def_p to handle cases which are implicitly
8892         defined.
8893         * tree-ssa.c (ssa_defined_default_def_p): New function.
8894         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
8895         which are implicitly defined.
8896         * tree-ssa.h (ssa_defined_default_def_p): Declare.
8897
8898 2017-02-17  Richard Biener  <rguenther@suse.de>
8899
8900         PR middle-end/79576
8901         * params.def (max-ssa-name-query-depth): Limit to 10.
8902
8903 2017-02-17  Richard Biener  <rguenther@suse.de>
8904
8905         PR tree-optimization/79552
8906         * tree-ssa-structalias.c (visit_loadstore): Properly verify
8907         default defs.
8908
8909 2017-02-17  Richard Biener  <rguenther@suse.de>
8910
8911         PR bootstrap/79567
8912         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
8913
8914 2017-02-17  Marek Polacek  <polacek@redhat.com>
8915
8916         PR middle-end/79536
8917         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
8918         (fold_negate_expr): New wrapper.
8919
8920 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
8921
8922         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
8923         Correct terminology and de-emphasize pre-standard behavior.
8924
8925 2017-02-16  Alan Modra  <amodra@gmail.com>
8926
8927         PR rtl-optimization/79286
8928         * ira.c (def_dominates_uses): New function.
8929         (update_equiv_regs): Don't create an equivalence for insns that
8930         may trap where the register def does not dominate the use.
8931
8932 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
8933
8934         PR rtl-optimization/78127
8935         * lra.c (lra): Call lra_eliminate before finish the loop after
8936         lra_constraint.
8937
8938 2017-02-16  Richard Biener  <rguenther@suse.de>
8939
8940         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
8941         isl/isl_val.h.
8942         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
8943         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
8944         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
8945         (isl_val_int_from_wi): New function.
8946         (extract_affine_gmp): Rename to ...
8947         (extract_affine_wi): ... this, take a widest_int.
8948         (extract_affine_int): Just wrap extract_affine_wi.
8949         (add_param_constraints): Use isl_val_int_from_wi.
8950         (add_loop_constraints): Likewise, and extract_affine_wi.
8951
8952 2017-02-15  Jeff Law  <law@redhat.com>
8953
8954         PR middle-end/79521
8955         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
8956         ira_init_register_move_cost_if_necessary.
8957
8958 2017-02-15  Martin Sebor  <msebor@redhat.com>
8959
8960         PR middle-end/32003
8961         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
8962         removed in a prior commit.
8963
8964 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
8965
8966         PR tree-optimization/79347
8967         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
8968         counters during peeling.
8969
8970 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
8971
8972         * Makefile.in (site.exp): Remove "set ISLVER".
8973
8974 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
8975
8976         PR target/79487
8977         * real.c (real_from_integer): Call real_convert even for decimal.
8978
8979 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8980
8981         PR target/79421
8982         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8983
8984 2017-02-14  Andrew Pinski  <apinski@cavium.com>
8985
8986         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
8987         cores and change the partno/implementer to be correct.
8988         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
8989         the 'B" as the implementer.
8990         * config/aarch64/aarch64-tune.md: Regenerate.
8991
8992 2017-02-14  Carl Love  <cel@us.ibm.com>
8993
8994         * config/rs6000/rs6000.c: Add case statement entry to make the
8995         xvcvuxdsp built-in argument unsigned.
8996         * config/rs6000/vsx.md: Fix the source and return operand types so they
8997         match the instruction definitions from the ISA document.  Fix typo
8998         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
8999         statement.
9000
9001 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
9002
9003         PR target/79282
9004         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
9005         member early_clobber_alts.
9006         * lra-lives.c (reg_early_clobber_p): New.
9007         (process_bb_lives): Use it.
9008         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
9009         (debug_operand_data): Initialize early_clobber_alts.
9010         (setup_operand_alternative): Set up early_clobber_alts.
9011         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
9012         alternatives to new_insn_reg.
9013         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
9014         it.
9015         (lra_update_insn_regno_info): Pass the new arg.
9016
9017 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
9018
9019         PR middle-end/79505
9020         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
9021         (new_oacc_loop_raw): Don't clear already cleared fields.
9022
9023         PR target/79481
9024         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
9025         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
9026         _mm512_prefetch_i64gather_ps): New inline functions and macros.
9027
9028 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
9029
9030         PR target/79495
9031         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
9032
9033 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
9034
9035         PR target/79498
9036         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
9037         the extra instruction to the right place to store 128-bit constant
9038         when needed.
9039
9040 2017-02-14  Martin Sebor  <msebor@redhat.com>
9041
9042         PR middle-end/79448
9043         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
9044           warning for strings of unknown length.
9045
9046 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
9047
9048         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
9049
9050 2017-02-14  Jeff Law  <law@redhat.com>
9051
9052         PR target/79404
9053         * ira-costs.c (scan_one_insn): Initialize register move costs
9054         for pseudos seen in USE/CLOBBER insns.
9055
9056         PR tree-optimization/79095
9057         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
9058         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
9059         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
9060         if the operands are known to be not equal, then the resulting range
9061         is ~[0,0].
9062         (intersect_ranges): If the new range is ~[0,0] and the old range is
9063         wide, then prefer ~[0,0].
9064         * tree-vrp.c (overflow_comparison_p_1): New function.
9065         (overflow_comparison_p): New function.
9066         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
9067         if NAME is used in an overflow test.
9068         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
9069         overflow check that can be expressed as an equality test, then adjust
9070         ops to be that equality test.
9071
9072 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9073
9074         * config/s390/s390-builtin-types.def: Remove flags argument.
9075         * config/s390/s390.c (s390_init_builtins): Likewise.
9076
9077 2017-02-14  Martin Liska  <mliska@suse.cz>
9078
9079         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
9080         vector.  Fix trailing white spaces.
9081
9082 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
9083
9084         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
9085         HFmode.
9086
9087 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9088
9089         PR rtl-optimization/68664
9090         * config/arm/arm.c (arm_sched_can_speculate_insn):
9091         New function.  Declare prototype.
9092         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9093
9094 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9095
9096         PR rtl-optimization/68664
9097         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
9098         New function.
9099         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9100
9101 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
9102
9103         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
9104         max skip bytes for function, loop and jump.
9105
9106 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9107
9108         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
9109         ABS_EXPR for gimple dump.
9110
9111 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
9112
9113         PR target/79462
9114         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
9115
9116         PR tree-optimization/79408
9117         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
9118         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
9119         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9120         also if rhs1 is INTEGER_CST.
9121
9122 2017-02-14  Richard Biener  <rguenther@suse.de>
9123
9124         PR middle-end/79432
9125         * tree-into-ssa.c (insert_phi_nodes): When the function can
9126         have abnormal edges rewrite SSA names with broken use-def
9127         dominance out of SSA and register them for PHI insertion.
9128
9129 2017-02-13  Martin Sebor  <msebor@redhat.com>
9130
9131         PR middle-end/79496
9132         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
9133         clearing info.nowrite flag when snprintf size argument is a range.
9134
9135 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
9136
9137         * cprop.c (cprop_jump): Add missing space in string literal.
9138         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9139         (get_constraint_for_component_ref): Likewise.
9140         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9141         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
9142         * lra-constraints.c (process_alt_operands): Likewise.
9143         * ipa-inline.c (inline_small_functions): Likewise.
9144         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
9145         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9146         * trans-mem.c (diagnose_tm_1_op): Likewise.
9147         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
9148         (grid_parallel_clauses_gridifiable): Likewise.
9149
9150         * config/nvptx/mkoffload.c (process): Add space in between
9151         , and %d.
9152
9153         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
9154         "MOD4_SSE_REGS" and "ALL_REGS".
9155
9156         * spellcheck.c (test_data): Add , in between "foo" and "food".
9157
9158 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9159
9160         PR target/79449
9161         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
9162         boundary crossing check and subsequent code generation agree.
9163
9164 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9165
9166         * config/aarch64/aarch64.c (has_memory_op): Delete.
9167         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
9168         has_memory_op.
9169
9170 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
9171
9172         PR rtl-optimization/79388
9173         PR rtl-optimization/79450
9174         * combine.c (distribute_notes): When removing TEM_INSN for which
9175         corresponding dest has last value recorded, invalidate that last
9176         value.
9177
9178 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9179
9180         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
9181         of explicit '@'.  Add missing assembly comment marker on branch costs
9182         printout.
9183
9184 2017-02-13  Nathan Sidwell  <nathan@acm.org>
9185
9186         * gengtype-lex.l (<in_struct>): Add '/'.
9187
9188 2017-02-13  Martin Liska  <mliska@suse.cz>
9189
9190         PR c/79471
9191         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
9192
9193 2017-02-13  Richard Biener  <rguenther@suse.de>
9194
9195         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
9196         Remove.
9197         * configure: Re-generate.
9198         * config.in: Likewise.
9199         * graphite-dependences.c: Simplify as if
9200         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
9201         * graphite-isl-ast-to-gimple.c: Likewise.
9202         * graphite-optimize-isl.c: Likewise.
9203         * graphite-poly.c: Likewise.
9204         * graphite-sese-to-poly.c: Likewise.
9205         * graphite.h: Likewise.
9206         * toplev.c: Include isl/version.h and use isl_version () for
9207         printing the ISL version.
9208         * doc/install.texi: Update ISL requirement.
9209
9210 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
9211
9212         * doc/standards.texi (Standards): Update reference to
9213         Objective-C 2.0.
9214
9215 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
9216
9217         * doc/extend.texi (Named Address Spaces): sourceware.org now
9218         defaults to https.
9219         * doc/install.texi (Binaries): Ditto.
9220         (Specific): Ditto.
9221
9222 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
9223
9224         * doc/cpp.texi: Replace "stringify"/"stringification" with C
9225         standard terminology "stringize"/"stringizing" throughout.
9226         * doc/cppinternals.texi: Likewise.
9227
9228 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
9229
9230         * doc/extend.texi: Fix some spelling mistakes and typos.
9231         * doc/invoke.texi: Likewise.
9232
9233 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
9234
9235         PR ipa/79224
9236         * params.def (inline-min-speedup) Change from 10 to 8.
9237
9238 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
9239
9240         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
9241         4.5.
9242
9243 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
9244
9245         PR ipa/79224
9246         * ipa-inline-analysis.c (get_minimal_bb): New function.
9247         (record_modified): Use it.
9248         (remap_edge_change_prob): Handle also ancestor functions.
9249
9250 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
9251
9252         * doc/contrib.texi (Contributors): Remove broken link into
9253         the Mauve CVS repository.
9254
9255 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
9256
9257         PR middle-end/79454
9258         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
9259         result computation whenever lhs doesn't have vector mode, not
9260         just when it has BLKmode.
9261
9262 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
9263
9264         * doc/makefile.texi (profiledbootstrap): Refer to the
9265         installation instructions only in textual form.
9266
9267 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9268
9269         PR target/79295
9270         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
9271
9272 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
9273
9274         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
9275         (Specific): Update mingw-w64 reference.
9276         (Binaries): Ditto.
9277         (Specific): Remove broken link to Renesas RX processor.
9278
9279 2017-02-10  Richard Biener  <rguenther@suse.de>
9280
9281         * toplev.c (process_options): Do not mention obsolete graphite
9282         options when printing sorry message about missing graphite support.
9283         Mention -floop-nest-optimize.
9284
9285 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
9286
9287         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
9288         (vtst_p16): Likewise.
9289         (vtstq_p8): Likewise.
9290         (vtstq_p16): Likewise.
9291         (vtst_p64): New.
9292         (vtstq_p64): Likewise.
9293         * config/arm/arm_neon.h (vgetq_lane_p64): New.
9294         (vset_lane_p64): New.
9295         (vsetq_lane_p64): New.
9296
9297 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
9298
9299         PR tree-optimization/79411
9300         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
9301         stmt operands are SSA_NAMEs used in abnormal phis.
9302         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
9303         phis.
9304
9305 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
9306
9307         PR ipa/70795
9308         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
9309         flag if needed.
9310
9311 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
9312
9313         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
9314
9315 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
9316
9317         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
9318         to avoid warning.
9319
9320         PR c/79413
9321         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
9322         not arbitrary TREE_CONSTANT.
9323
9324         PR c/79431
9325         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
9326         "omp declare target link" attribute unless is_global_var.
9327         * omp-offload.c (find_link_var_op): Likewise.
9328
9329 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
9330             Chung-Lin Tang  <cltang@codesourcery.com>
9331
9332         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
9333         OMP_CLAUSE_TILE.
9334         (gimplify_adjust_omp_clauses): Don't delete TILE.
9335         (gimplify_omp_for): Deal with TILE.
9336         * internal-fn.c (expand_GOACC_TILE): New function.
9337         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
9338         (GOACC_TILE): New.
9339         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
9340         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
9341         element fields.
9342         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
9343         avoid DIV for outermost collapse var.
9344         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
9345         Remove out of date comments, fix whitespace.
9346         * omp-general.c (omp_extract_for_data): Deal with tiling.
9347         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
9348         adjust OLF_DIM_BASE value.
9349         (struct omp_for_data): Add tiling field.
9350         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
9351         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
9352         for auto loops.  Remove default auto determining, moved to
9353         oacc_loop_fixed_partitions.
9354         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
9355         stmts, add e_mask field.
9356         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
9357         (oacc_thread_numbers): Use oacc_dim_call.
9358         (oacc_xform_tile): New.
9359         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
9360         (finish_oacc_loop): Adjust for ifns vector.
9361         (oacc_loop_discover_walk): Append loop abstraction sites to list,
9362         add case for GOACC_TILE fns.
9363         (oacc_loop_xform_loop): Delete.
9364         (oacc_loop_process): Iterate over call list directly, and add
9365         handling for GOACC_TILE fns.
9366         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
9367         dump partitioning.
9368         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
9369         vector partitioning to outer loops.  Assign 2 partitions to loops
9370         when available. Add TILE handling.
9371         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
9372         (execite_oacc_device_lower): Process GOACC_TILE fns,
9373         ignore unknown specs.
9374         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
9375         * tree.c (omp_clause_num_ops): Adjust TILE ops.
9376         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
9377
9378 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
9379
9380         * configure.ac (ACX_BUGURL): Update.
9381         * configure: Regenerate.
9382
9383 2017-02-09  Richard Biener  <rguenther@suse.de>
9384
9385         PR tree-optimization/69823
9386         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
9387         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
9388
9389 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
9390
9391         * config/arc/arc-c.def: Add __NPS400__ definition.
9392         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
9393         (TARGET_NPS400): Define.
9394
9395 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
9396
9397         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
9398         file.
9399         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
9400         pointer, arch_info.
9401         (arc_cpu_types): Fill the arch_info field with a pointer into the
9402         arc_arch_types table.
9403         (arc_selected_cpu): Declare.
9404         * config/arc/arc.c (arc_selected_cpu): Make global.
9405         (arc_selected_arch): Delete.
9406         (arc_base_cpu): Delete.
9407         (arc_override_options): Remove references to deleted variables,
9408         update access to arch information.
9409         (ARC_OPT): Update access to arch information.
9410         (ARC_OPTX): Likewise.
9411         * config/arc/arc.h (arc_base_cpu): Remove declaration.
9412         (TARGET_ARC600): Update access to arch information.
9413         (TARGET_ARC601): Likewise.
9414         (TARGET_ARC700): Likewise.
9415         (TARGET_EM): Likewise.
9416         (TARGET_HS): Likewise.
9417         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
9418         information.
9419
9420 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
9421
9422         PR target/78604
9423         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
9424         condition/operands for integer GE/LE/GEU/LEU operations.
9425
9426 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
9427
9428         PR translation/79397
9429         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
9430         of AltiVec.
9431
9432 2017-02-08  Martin Jambor  <mjambor@suse.cz>
9433
9434         PR ipa/79375
9435         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
9436         whether allocation happened.
9437         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
9438         nothing was allocated.
9439
9440 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
9441
9442         PR tree-optimization/79408
9443         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
9444         constant, but SSA_NAME with a known integer range, use the minimum
9445         of that range instead of op1 to determine if modulo can be replaced
9446         with its first operand.
9447
9448 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9449
9450         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
9451
9452 2017-02-08  Richard Biener  <rguenther@suse.de>
9453
9454         PR tree-optimization/71824
9455         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
9456         Check all loops contained in the merged region.
9457
9458 2017-02-07  Andrew Pinski  <apinski@cavium.com>
9459
9460         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
9461
9462 2017-02-07  Andrew Pinski  <apinski@cavium.com>
9463
9464         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
9465         (thunderxt88): Likewise.
9466         (thunderxt81): Disable LSE and change v8.1 to v8.
9467         (thunderxt83): Likewise.
9468
9469 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
9470             Richard Biener  <rguenther@suse.de>
9471
9472         PR middle-end/79399
9473         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
9474         type from int to size_t.
9475         * ira-costs.c (struct_costs_size): Change type from int to size_t.
9476
9477 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
9478
9479         PR rtl-optimization/79386
9480         * cprop.c (bypass_conditional_jumps): Initialize
9481         bypass_last_basic_block already before splitting bbs after
9482         unconditional traps...
9483         (bypass_conditional_jumps): ... rather than here.
9484
9485         PR target/79299
9486         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
9487         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
9488         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
9489         fix -masm=intel patterns.
9490
9491 2017-02-07  Richard Biener  <rguenther@suse.de>
9492
9493         PR tree-optimization/79256
9494         PR middle-end/79278
9495         * builtins.c (get_object_alignment_2): Use min_align_of_type
9496         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
9497         and ADJUST_FIELD_ALIGN.
9498
9499         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
9500         type parameter.
9501         * doc/tm.texi: Regenerate.
9502         * stor-layout.c (layout_decl): Adjust.
9503         (update_alignment_for_field): Likewise.
9504         (place_field): Likewise.
9505         (min_align_of_type): Likewise.
9506         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
9507         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
9508         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
9509         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
9510         * config/frv/frv.c (frv_adjust_field_align): Likewise.
9511         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
9512         * config/i386/i386.c (x86_field_alignment): Likewise.
9513         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
9514         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
9515         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
9516         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9517         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
9518         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
9519          Likewise.
9520
9521         Revert
9522         2017-01-30  Richard Biener  <rguenther@suse.de>
9523
9524         PR tree-optimization/79256
9525         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
9526         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
9527         alignment on TYPE.
9528
9529 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
9530
9531         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
9532         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
9533         builtins to SImode and emit a zero-extend, if necessary.
9534
9535 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
9536
9537         * docs/invoke.texi (RISC-V Options): Alphabetize.
9538
9539 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
9540
9541         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
9542         options.
9543
9544 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
9545
9546         * config/riscv/riscv.c: New file.
9547         * gcc/common/config/riscv/riscv-common.c: Likewise.
9548         * config.gcc: Likewise.
9549         * config/riscv/constraints.md: Likewise.
9550         * config/riscv/elf.h: Likewise.
9551         * config/riscv/generic.md: Likewise.
9552         * config/riscv/linux.h: Likewise.
9553         * config/riscv/multilib-generator: Likewise.
9554         * config/riscv/peephole.md: Likewise.
9555         * config/riscv/pic.md: Likewise.
9556         * config/riscv/predicates.md: Likewise.
9557         * config/riscv/riscv-builtins.c: Likewise.
9558         * config/riscv/riscv-c.c: Likewise.
9559         * config/riscv/riscv-ftypes.def: Likewise.
9560         * config/riscv/riscv-modes.def: Likewise.
9561         * config/riscv/riscv-opts.h: Likewise.
9562         * config/riscv/riscv-protos.h: Likewise.
9563         * config/riscv/riscv.h: Likewise.
9564         * config/riscv/riscv.md: Likewise.
9565         * config/riscv/riscv.opt: Likewise.
9566         * config/riscv/sync.md: Likewise.
9567         * config/riscv/t-elf-multilib: Likewise.
9568         * config/riscv/t-linux: Likewise.
9569         * config/riscv/t-linux-multilib: Likewise.
9570         * config/riscv/t-riscv: Likewise.
9571         * configure.ac: Likewise.
9572         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
9573         Waterman as RISC-V maintainers.
9574         * doc/install.texi: Add RISC-V entries.
9575         * doc/invoke.texi: Add RISC-V options section.
9576         * doc/md.texi: Add RISC-V constraints section.
9577         * configure: Regenerated.
9578
9579 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9580
9581         PR target/66144
9582         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
9583         false values to be constant vectors with all 0 or all 1 bits set.
9584         (vcondu<mode><mode>): Likewise.
9585         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
9586         predicate.
9587         (fpmask_comparison_operator): Update comment.
9588         (vecint_comparison_operator): New predicate.
9589         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
9590         vector conditionals when the true and false values are constant
9591         vectors with all 0 bits or all 1 bits set.
9592
9593 2017-02-06  Martin Sebor  <msebor@redhat.com>
9594
9595         PR  tree-optimization/79376
9596         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
9597
9598 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
9599
9600         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
9601         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
9602         to simplify split condition.
9603
9604 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
9605
9606         * omp-expand.c (oxpand_omp_atomic_fetch_op,
9607         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
9608         false.
9609
9610 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
9611
9612         PR rtl-optimization/68664
9613         * target.def (can_speculate_insn): New hook.
9614         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
9615         * doc/tm.texi: Regenerate.
9616         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
9617         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
9618         (rs6000_sched_can_speculate_insn): New function.
9619
9620 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
9621
9622         PR tree-optimization/79284
9623         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
9624         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
9625         vectorizable_mask_load_store, vectorizable_operation,
9626         vect_is_simple_cond, get_same_sized_vectype): Use it instead
9627         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
9628         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
9629         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
9630         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9631         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9632         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
9633         is_gimple_assign (stmt).  Replace another such test with
9634         is_gimple_assign (stmt).
9635
9636 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
9637
9638         PR target/78883
9639         * config/avr/avr.c (rtl-iter.h): Include it.
9640         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
9641         (avr_legitimate_combined_insn): ...and implementation.
9642
9643 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9644
9645         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
9646         * config/s390/s390.c (s390_const_operand_ok)
9647         (s390_canonicalize_comparison, s390_extract_part)
9648         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
9649         (s390_contiguous_bitmask_p, s390_rtx_costs)
9650         (legitimize_pic_address): Likewise.
9651         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
9652         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
9653         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
9654         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
9655         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
9656
9657 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
9658
9659         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
9660         REGNO($0) == REGNO($1).
9661
9662 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9663
9664         * config/s390/linux.h(SIZE_TYPE): Add comment.
9665
9666 2017-02-06  Julian Brown  <julian@codesourcery.com>
9667             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
9668             Virendra Pathak  <virendra.pathak@broadcom.com>
9669
9670         * config/aarch64/aarch64-cores.def: Change the scheduler
9671         to Thunderx2t99.
9672         * config/aarch64/aarch64.md: Include thunderx2t99.md.
9673         * config/aarch64/thunderx2t99.md: New file.
9674
9675 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
9676
9677         * doc/standards.texi (Go Language): Update link to language
9678         standard.
9679
9680 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
9681
9682         * tree-eh.c (lower_resx): Sanitize profile.
9683         (cleanup_empty_eh_move_lp): Likewise.
9684
9685 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
9686
9687         PR tree-ssa/79347
9688         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
9689         ELSE_PROB.
9690         * cfgloopmanip.h (loop_version): Update prototype.
9691         * modulo-sched.c (sms_schedule): Update call of loop_version.
9692         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
9693         * tree-parloops.c (gen_parallel_loop): Likewise.
9694         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
9695         * tree-ssa-loop-split.c (split_loop): Likewise.
9696         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
9697         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
9698
9699 2017-02-05  Martin Liska  <mliska@suse.cz>
9700
9701         PR bootstrap/78985
9702         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
9703         variable to NULL.
9704         (print_operand_address): Initialize a struct to zero.
9705
9706 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
9707
9708         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
9709         garbage collector only in textual form.
9710
9711 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
9712
9713         * doc/extend.texi (x86 specific memory model extensions for
9714         transactional memory): Simplify a phrase.
9715
9716 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
9717
9718         PR target/79353
9719         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
9720         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
9721         (atomic_storedi_1): Likewise.
9722
9723 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
9724
9725         PR tree-optimization/79338
9726         * tree-parloops.c (gather_scalar_reductions): Don't call
9727         vect_analyze_loop_form for loop->inner before destroying loop's
9728         loop_vinfo.
9729
9730 2017-02-03  Martin Sebor  <msebor@redhat.com>
9731
9732         PR tree-optimization/79327
9733         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
9734         when precision has resulted in leading zeros.
9735         (format_integer): Adjust the likely counter to assume an unknown
9736         argument that may be zero is non-zero.
9737
9738 2017-02-03  Jason Merrill  <jason@redhat.com>
9739
9740         PR c++/78689
9741         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
9742         avoid copying non-taken branch.
9743
9744 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
9745
9746         PR tree-optimization/79340
9747         * tree-vect-loop.c (vectorizable_reduction): Release
9748         vec_defs elements after safe_splicing them into other vectors.
9749         Formatting fixes.
9750
9751         PR tree-optimization/79327
9752         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
9753         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
9754         dirtype.
9755         (format_integer): Use wide_int_to_tree instead of build_int_cst
9756         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
9757         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
9758         of shortest and longest sequence.
9759
9760 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
9761
9762         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
9763         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
9764
9765 2017-02-03  Walter Lee  <walt@tilera.com>
9766
9767         PR target/78862
9768         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
9769         after initial stackframe link reg save.
9770         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
9771
9772 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
9773
9774         PR target/79354
9775         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
9776         wu for stxssp alternative.
9777
9778 2017-02-03  Martin Sebor  <msebor@redhat.com>
9779
9780         PR tree-optimization/79352
9781         * gimple-fold.c (get_range_strlen): Add argument.
9782         (get_range_strlen): Change return type to bool.
9783         (get_maxval_strlen): Pass in a dummy argument.
9784         * gimple-fold.h (get_range_strlen): Change return type to bool.
9785         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
9786         * tree.h (array_at_struct_end_p): Add argument.
9787         * tree.c (array_at_struct_end_p): Handle it.
9788
9789 2017-02-03  Martin Liska  <mliska@suse.cz>
9790
9791         PR lto/66295
9792         * multiple_target.c (create_dispatcher_calls): Redirect edge
9793         from a caller of a dispatcher.
9794         (expand_target_clones): Make the clones local.
9795         (ipa_target_clone): Do both target clones and resolvers.
9796         (ipa_dispatcher_calls): Remove the pass.
9797         (pass_dispatcher_calls::gate): Likewise.
9798         (make_pass_dispatcher_calls): Likewise.
9799         * passes.def (pass_target_clone): Put as very first IPA early
9800         pass.
9801
9802 2017-02-03  Martin Liska  <mliska@suse.cz>
9803
9804         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
9805         in case of a function with ifunc attribute.
9806
9807 2017-02-03  Martin Liska  <mliska@suse.cz>
9808
9809         * cgraph.c (cgraph_node::dump): Dump function version info.
9810         * symtab.c (symtab_node::dump_base): Add missing new line.
9811
9812 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
9813
9814         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
9815         (ifcombine_ifandif): Use it.
9816
9817 2017-02-03  Martin Liska  <mliska@suse.cz>
9818
9819         * doc/invoke.texi: Document default value for
9820         use-after-scope-direct-emission-threshold.
9821
9822 2017-02-03  Martin Liska  <mliska@suse.cz>
9823
9824         PR tree-optimization/79339
9825         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
9826         (format_floating): Likewise.
9827
9828 2017-02-03  Martin Liska  <mliska@suse.cz>
9829
9830         PR ipa/79337
9831         * ipa-prop.c (ipa_node_params_t::insert): Remove current
9832         implementation.
9833         (ipa_node_params_t::remove): Likewise.
9834         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
9835         initialization from removed ipa_node_params_t::insert.
9836         (ipa_node_params::~ipa_node_params): Move from removed
9837         ipa_node_params_t::release.
9838         * symbol-summary.h (symbol_summary::m_released): New member.
9839         Do not release a summary twice.  Do not allow to call finalizer
9840         for types of a summary that live in GGC memory.
9841
9842 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
9843
9844         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
9845         cmp_branch fusion.
9846
9847 2017-02-02  Martin Sebor  <msebor@redhat.com>
9848
9849         PR middle-end/79275
9850         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
9851         (format_string): Tighten up the range of output for non-constant
9852         strings and correct the expected range for wide non-constant strings.
9853
9854 2017-02-02  Martin Sebor  <msebor@redhat.com>
9855
9856         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
9857
9858         PR middle-end/32003
9859         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
9860         index.
9861         (-fdump-tree-@var): Add to index and document how to come up
9862         with pass-specific option and dump file names.
9863         (-fdump-passes): Clarify where to look for output.
9864
9865 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
9866
9867         PR middle-end/77445
9868         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
9869         statistics of the analyzed path; allow threading for speed when
9870         any of BBs along the path are optimized for speed.
9871
9872 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
9873
9874         PR middle-end/78468
9875         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
9876         settings of the virtual registers.
9877
9878         Revert again
9879         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9880
9881         * explow.c (get_dynamic_stack_size): Take known alignment of stack
9882         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
9883         needed.
9884
9885 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9886
9887         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
9888         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
9889
9890 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9891
9892         * config/s390/s390.md: Add missing comments with the expanded
9893         mnemonics.
9894         * config/s390/vector.md: Likewise.
9895         * config/s390/vx-builtins.md: Likewise.
9896
9897 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
9898
9899         PR target/79197
9900         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
9901         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
9902         conditions on a single line.
9903
9904 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9905
9906         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
9907         __S390_VX__ to __VX__.
9908
9909 2017-02-01  Andrew Pinski  <apinski@cavium.com>
9910
9911         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
9912         stmt_info to record_stmt_cost.
9913         (vect_get_known_peeling_cost): Pass stmt_info if known to
9914         record_stmt_cost.
9915         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
9916         cpu_vector_cost field into
9917         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
9918         field into vec_int_stmt_cost and vec_fp_stmt_cost.
9919         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
9920         splitting of scalar_stmt_cost and vec_stmt_cost.
9921         (thunderx_vector_cost): Likewise.
9922         (cortexa57_vector_cost): LIkewise.
9923         (exynosm1_vector_cost): Likewise.
9924         (xgene1_vector_cost): Likewise.
9925         (thunderx2t99_vector_cost): Improve after the splitting of the two
9926         fields.
9927         (aarch64_builtin_vectorization_cost): Update for the splitting of
9928         scalar_stmt_cost and vec_stmt_cost.
9929
9930 2017-02-01  Torvald Riegel  <triegel@redhat.com>
9931             Richard Henderson  <rth@redhat.com>
9932
9933         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
9934         conditional on existance of a fast atomic load.
9935         * optabs-query.c (can_atomic_load_p): New function.
9936         * optabs-query.h (can_atomic_load_p): Declare it.
9937         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
9938         no fast atomic load is available for the particular size of access.
9939         (expand_atomic_compare_and_swap): Likewise.
9940         (expand_atomic_load): Likewise.
9941         (expand_atomic_store): Likewise.
9942         (expand_atomic_fetch_op): Likewise.
9943         * testsuite/lib/target-supports.exp
9944         (check_effective_target_sync_int_128): Remove x86 because it provides
9945         no fast atomic load.
9946         (check_effective_target_sync_int_128_runtime): Likewise.
9947
9948 2017-02-01  Richard Biener  <rguenther@suse.de>
9949
9950         * graphite.c: Include tree-vectorizer.h for find_loop_location.
9951         (graphite_transform_loops): Provide opt-info for optimized nests.
9952         * tree-parloop.c (parallelize_loops): Provide opt-info for
9953         parallelized loops.
9954
9955 2017-02-01  Richard Biener  <rguenther@suse.de>
9956
9957         PR middle-end/79315
9958         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
9959         was not set before.
9960
9961 2017-02-01  Richard Biener  <rguenther@suse.de>
9962
9963         PR tree-optimization/71824
9964         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
9965         Verify the loops are valid in the merged SESE region.
9966         (scop_detection::can_represent_loop_1): Check analyzing the
9967         evolution of the number of iterations in the region succeeds.
9968
9969 2017-01-31  Ian Lance Taylor  <iant@golang.org>
9970
9971         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
9972         REG_ARGS_SIZE note to 32-bit push insns and call insn.
9973
9974 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
9975
9976         PR preprocessor/79210
9977         * input.c (get_substring_ranges_for_loc): Replace line_width
9978         assertion with error-handling.
9979
9980 2017-01-31  Richard Biener  <rguenther@suse.de>
9981
9982         PR tree-optimization/77318
9983         * graphite-sese-to-poly.c (extract_affine): Fix assert.
9984         (create_pw_aff_from_tree): Take loop parameter.
9985         (add_condition_to_pbb): Pass loop of the condition to
9986         create_pw_aff_from_tree.
9987
9988 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
9989
9990         * config/s390/s390.c (s390_asan_shadow_offset): New function.
9991         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
9992
9993 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
9994
9995         PR target/78597
9996         PR target/79038
9997         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
9998         no longer used.
9999         (convert_int_to_float128): Likewise.
10000         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
10001         (convert_int_to_float128): Likewise.
10002         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
10003         (UNSPEC_IEEE128_CONVERT): Likewise.
10004         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
10005         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
10006         Use local variables for IBM extended format.
10007         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
10008         (fix_trunc<mode>si2_fprs): Likewise.
10009         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10010         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
10011         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
10012         to know that we can now have integers of all sizes in vector
10013         registers.
10014         (fix<uns>_<mode>di2_hw): Likewise.
10015         (float<uns>_<mode>si2_hw): Likewise.
10016         (fix_<mode>si2_hw): Likewise.
10017         (fixuns_<mode>si2_hw): Likewise.
10018         (float<uns>_<mode>di2_hw): Likewise.
10019         (float_<mode>di2_hw): Likewise.
10020         (float_<mode>si2_hw): Likewise.
10021         (floatuns_<mode>di2_hw): Likewise.
10022         (floatuns_<mode>si2_hw): Likewise.
10023         (xscvqp<su>wz_<mode>): Delete, no longer used.
10024         (xscvqp<su>dz_<mode>): Likewise.
10025         (xscv<su>dqp_<mode>): Likewise.
10026         (ieee128_mfvsrd_64bit): Likewise.
10027         (ieee128_mfvsrd_32bit): Likewise.
10028         (ieee128_mfvsrwz): Likewise.
10029         (ieee128_mtvsrw): Likewise.
10030         (ieee128_mtvsrd_64bit): Likewise.
10031         (ieee128_mtvsrd_32bit): Likewise.
10032
10033 2017-01-31  Martin Liska  <mliska@suse.cz>
10034
10035         PR ipa/79285
10036         * ipa-prop.c (ipa_free_all_node_params): Call release method
10037         instead of ~sumbol_summary to not to trigger double times
10038         dtor of hash_map.
10039
10040 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
10041
10042         PR tree-optimization/71691
10043         * bitmap.h (class auto_bitmap): New.
10044         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
10045         is_maybe_undefined instead of ssa_undefined_value_p.
10046
10047 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10048
10049         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10050         __S390_ARCH_LEVEL__ to __ARCH__.
10051
10052 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
10053
10054         PR tree-optimization/79267
10055         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
10056         if should_remove_lhs_p is true.
10057
10058 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
10059
10060         PR debug/63238
10061         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
10062         (add_alignment_attribute): New.
10063         (base_type_die): Add alignment attribute.
10064         (subrange_type_die): Likewise.
10065         (modified_type_die): Likewise.
10066         (gen_array_type_die): Likewise.
10067         (gen_descr_array_type_die: Likewise.
10068         (gen_enumeration_type_die): Likewise.
10069         (gen_subprogram_die): Likewise.
10070         (gen_variable_die): Likewise.
10071         (gen_field_die): Likewise.
10072         (gen_ptr_to_mbr_type_die): Likewise.
10073         (gen_struct_or_union_type_die): Likewise.
10074         (gen_subroutine_type_die): Likewise.
10075         (gen_typedef_die): Likewise.
10076         (base_type_cmp): Compare alignment attribute.
10077
10078 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10079
10080         PR target/79170
10081         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
10082         (setb_unsigned) New pattern for setb with CCUNS.
10083         * config/rs6000/rs6000.c (expand_block_compare): Use a different
10084         subfc./subfe sequence to avoid overflow problems.  Generate a
10085         shorter sequence with cmpld/setb for power9.
10086         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
10087         for generating subfc. instruction.
10088         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
10089         now uses this instruction.
10090
10091 2017-01-30  Ian Lance Taylor  <iant@google.com>
10092
10093         PR debug/79289
10094         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
10095         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
10096
10097 2017-01-30  Martin Sebor  <msebor@redhat.com>
10098
10099         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
10100         Move constant to the right of a relational operator.
10101         (get_mpfr_format_length, format_character, format_string): Ditto.
10102         (should_warn_p, maybe_warn): Same.
10103
10104         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
10105
10106 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
10107
10108         PR lto/79061
10109         * asan.c (get_translation_unit_decl): Remove function.
10110         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
10111
10112 2017-01-30  Martin Liska  <mliska@suse.cz>
10113
10114         PR gcov-profile/79259
10115         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
10116         -fprofile-generate.
10117
10118 2017-01-30  Martin Liska  <mliska@suse.cz>
10119
10120         PR bootstrap/78985
10121         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
10122         Initialize variables with NULL value.
10123
10124 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
10125
10126         PR target/79260
10127         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
10128         tm_p_file.
10129         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
10130
10131 2017-01-30  Richard Biener  <rguenther@suse.de>
10132
10133         PR tree-optimization/79276
10134         * tree-vrp.c (process_assert_insertions): Properly adjust common
10135         when removing a duplicate.
10136
10137         * gcc.dg/torture/pr79276.c: New testcase.
10138
10139 2017-01-30  Richard Biener  <rguenther@suse.de>
10140
10141         PR tree-optimization/79256
10142         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10143         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10144         alignment on TYPE.
10145         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
10146
10147 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10148
10149         PR target/79240
10150         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
10151         ("*r<noxa>sbg_<mode>_sll_bitmask")
10152         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10153         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
10154         Use contiguous_bitmask_nowrap_operand.
10155
10156 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10157
10158         PR target/79268
10159         * config/rs6000/altivec.h (vec_xl): Revise #define.
10160         (vec_xst): Likewise.
10161
10162 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
10163
10164         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
10165
10166 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
10167
10168         PR rtl-optimization/79194
10169         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
10170         traps before call to bypass_conditional_jumps.
10171
10172 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
10173
10174         PR tree-optimization/71374
10175         * lra-constraints.c (check_conflict_input_operands): New.
10176         (match_reload): Use it.
10177
10178 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
10179
10180         PR target/79131
10181         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
10182         account to calculate conflict_set.
10183
10184 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
10185
10186         PR rtl-optimization/78559
10187         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
10188         other_insn in combine.
10189
10190 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
10191
10192         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
10193         uint16_type_node for BT_UINT16.
10194
10195 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
10196
10197         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
10198         "RTL Tests" to menu.
10199         (GIMPLE Tests): New node.
10200         (RTL Tests): New node.
10201
10202 2017-01-27  Richard Biener  <rguenther@suse.de>
10203
10204         PR tree-optimization/79245
10205         * tree-loop-distribution.c (distribute_loop): Apply cost
10206         modeling also to detected patterns.
10207
10208 2017-01-27  Richard Biener  <rguenther@suse.de>
10209
10210         PR tree-optimization/71433
10211         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
10212         (compare_assert_loc): New function.
10213         (process_assert_insertions): Sort and optimize assert locations
10214         to remove duplicates and push down identical assertions on
10215         edges to their destination block.
10216
10217 2017-01-27  Richard Biener  <rguenther@suse.de>
10218
10219         PR tree-optimization/79244
10220         * tree-vrp.c (remove_range_assertions): Forcefully propagate
10221         out SSA names even if abnormal.
10222
10223 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
10224
10225         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
10226         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
10227         instead of MPFR_RNDN.
10228
10229 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
10230
10231         PR target/79239
10232         * arm.c (arm_option_override): Don't call build_target_option_node
10233         until after doing all option overrides.
10234         (arm_valid_target_attribute_tree): Likewise.
10235
10236 2017-01-27  Martin Liska  <mliska@suse.cz>
10237
10238         * doc/invoke.texi (-fprofile-arcs): Document profiling support
10239         for {cd}tors and C++ {cd}tors.
10240
10241 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10242
10243         * config/s390/s390.md ("*setmem_long_and")
10244         ("*setmem_long_and_31z"): Use zero_extend instead of and.
10245
10246 2017-01-26  Martin Sebor  <msebor@redhat.com>
10247
10248         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
10249         of precision.
10250
10251 2017-01-26  Martin Sebor  <msebor@redhat.com>
10252
10253         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
10254         HAVE_DFmode before using XFmode or DFmode.
10255         (parse_directive): Avoid using the z length modifier to avoid
10256         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
10257
10258         PR middle-end/78703
10259         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
10260         to accept adjustment as an array.
10261         (get_int_range): New function.
10262         (struct directive): Make width and prec arrays.
10263         (directive::set_width, directive::set_precision): Call get_int_range.
10264         (format_integer, format_floating): Handle width and precision ranges.
10265         (format_string, parse_directive): Same.
10266
10267 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10268
10269         PR debug/79129
10270         * dwarf2out.c (generate_skeleton_bottom_up): For children with
10271         comdat_type_p set, just clone them, but keep the children in the
10272         original DIE.
10273
10274         PR debug/78835
10275         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
10276         which have direct callers with -fvar-tracking-assignments enabled
10277         in the current TU.
10278         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
10279         inside of type units.
10280
10281 2017-01-26  Martin Sebor  <msebor@redhat.com>
10282
10283         PR middle-end/78703
10284         * gimple-ssa-sprintf.c (struct result_range): Add likely and
10285         unlikely counters.
10286         (struct format_result): Replace number_chars, number_chars_min,
10287         and number_chars_max with a single member of struct result_range.
10288         Remove bounded.
10289         (format_result::operator+=): Adjust.
10290         (struct fmtresult): Remove bounded.  Handle likely and unlikely
10291         counters.
10292         (fmtresult::adjust_for_width_or_precision): New function.
10293         (fmtresult:type_max_digits): New function.
10294         (bytes_remaining): Handle likely and unlikely counters.
10295         (min_bytes_remaining): Remove.
10296         (format_percent): Simplify.
10297         (format_integer, format_floating): Set likely and unlikely counters.
10298         (get_string_length, format_character, format_string): Same.
10299         (format_plain, should_warn_p): New function.
10300         (maybe_warn): Call should_warn_p.  Update diagnostic messages
10301         and handle those for all directives, including plain strings.
10302         (format_directive): Handle likely and unlikely counters.
10303         Remove unnecessary quoting from diagnostics.  Add an informational
10304         note.
10305         (add_bytes): Remove.
10306         (pass_sprintf_length::compute_format_length): Simplify.
10307         (try_substitute_return_value): Handle likely and unlikely counters.
10308
10309 2017-01-26  Carl Love  <cel@us.ibm.com>
10310
10311         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
10312         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
10313
10314 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
10315
10316         PR target/79131
10317         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
10318         endianess for subregs into account.
10319         * lra-constraints.c (lra_constraints): Do risky transformations
10320         always on the first iteration.
10321         * lra-lives.c (check_pseudos_live_through_calls): Add arg
10322         last_call_used_reg_set.
10323         (process_bb_lives): Define and use last_call_used_reg_set.
10324         * lra.c (lra): Always continue after lra_constraints on the first
10325         iteration.
10326
10327 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
10328
10329         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
10330         constant.
10331         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
10332
10333 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10334
10335         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
10336         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
10337         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
10338         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
10339         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
10340         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
10341         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
10342         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
10343         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
10344
10345 2017-01-26  Marek Polacek  <polacek@redhat.com>
10346
10347         PR c/79199
10348         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
10349         for the third operand.
10350
10351 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10352
10353         PR middle-end/79236
10354         * omp-low.c (struct omp_context): Add simt_stmt field.
10355         (scan_omp_for): Return omp_context *.
10356         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
10357         context to the _simt_ SIMD stmt.
10358         (lower_omp_for): For combined SIMD with sibling _simt_
10359         SIMD, make sure to use the same decls in _looptemp_
10360         clauses as in the sibling.
10361
10362 2017-01-26  David Sherwood  <david.sherwood@arm.com>
10363
10364         PR middle-end/79212
10365         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
10366         all contexts.
10367
10368 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10369
10370         PR target/70465
10371         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
10372         emit fld b; fld a; if possible.
10373
10374         * brig-builtins.def: Update copyright years.
10375         * config/arm/arm_acle_builtins.def: Update copyright years.
10376
10377 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10378
10379         PR target/79179
10380         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
10381         constraint instead of o for the stxsd instruction.
10382
10383 2017-01-25  Carl Love  <cel@us.ibm.com>
10384
10385         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
10386         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
10387
10388 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
10389
10390         * doc/invoke.texi (C++ Dialect Options): Fix typo.
10391
10392 2017-01-25  Richard Biener  <rguenther@suse.de>
10393
10394         PR tree-optimization/69264
10395         * target.def (vector_alignment_reachable): Improve documentation.
10396         * doc/tm.texi: Regenerate.
10397         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
10398         and add a comment.
10399         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
10400         earlier changes with respect to TYPE_USER_ALIGN.
10401         (vector_alignment_reachable_p): Likewise.  Improve dumping.
10402
10403 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10404
10405         PR target/79145
10406         * config/arm/arm.md (xordi3): Force constant operand into a register
10407         for TARGET_IWMMXT.
10408
10409 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10410
10411         * doc/invoke.texi (-fstore-merging): Correct default optimization
10412         levels at which it is enabled.
10413         (-O): Move -fstore-merging from list to...
10414         (-O2): ... Here.
10415
10416 2017-01-25  Richard Biener  <rguenther@suse.de>
10417
10418         PR debug/78363
10419         * omp-expand.c: Include debug.h.
10420         (expand_omp_taskreg): Make sure to generate early debug before
10421         outlining anything from a function.
10422         (expand_omp_target): Likewise.
10423         (grid_expand_target_grid_body): Likewise.
10424
10425 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
10426
10427         PR lto/79061
10428         * asan.c (get_translation_unit_decl): New function.
10429         (asan_add_global): Extract modules file name from globals
10430         TRANSLATION_UNIT_DECL name.
10431
10432 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
10433
10434         PR target/77439
10435         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
10436         for long calls with APCS frame and VFP.
10437
10438 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
10439
10440         * cfg.c (original_copy_tables_initialized_p): New function.
10441         * cfg.h (original_copy_tables_initialized_p): New decl.
10442         * cfgrtl.c (relink_block_chain): Guard the call to
10443         free_original_copy_tables with a call to
10444         original_copy_tables_initialized_p.
10445         * cgraph.h (symtab_node::native_rtl_p): New decl.
10446         * cgraphunit.c (symtab_node::native_rtl_p): New function.
10447         (symtab_node::needed_p): Don't assert for early assembly output
10448         for __RTL functions.
10449         (cgraph_node::finalize_function): Set "force_output" for __RTL
10450         functions.
10451         (cgraph_node::analyze): Bail out early for __RTL functions.
10452         (analyze_functions): Update assertion to support __RTL functions.
10453         (cgraph_node::expand): Bail out early for __RTL functions.
10454         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
10455         __RTL functions.
10456         * function.h (struct function): Update comment for field
10457         "pass_startwith".
10458         * gimple-expr.c: Include "tree-pass.h".
10459         (gimple_has_body_p): Return false for __RTL functions.
10460         * Makefile.in (OBJS): Add run-rtl-passes.o.
10461         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
10462         accessor.
10463         (gcc::pass_manager::get_clean_slate): New accessor.
10464         * passes.c: Include "insn-addr.h".
10465         (should_skip_pass_p): Add logging.  Update logic for running
10466         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
10467         property-provider override so it is only done for gimple passes.
10468         Don't skip dfinit.
10469         (skip_pass): New function.
10470         (execute_one_pass): Call skip_pass when skipping passes.
10471         * read-md.c (md_reader::read_char): Support filtering
10472         the input to a subset of line numbers.
10473         (md_reader::md_reader): Initialize fields
10474         m_first_line and m_last_line.
10475         (md_reader::read_file_fragment): New function.
10476         * read-md.h (md_reader::read_file_fragment): New decl.
10477         (md_reader::m_first_line): New field.
10478         (md_reader::m_last_line): New field.
10479         * read-rtl-function.c (function_reader::create_function): Only
10480         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
10481         curr_properties.  Set DECL_INITIAL to a dummy block.
10482         (read_rtl_function_body_from_file_range): New function.
10483         * read-rtl-function.h (read_rtl_function_body_from_file_range):
10484         New decl.
10485         * run-rtl-passes.c: New file.
10486         * run-rtl-passes.h: New file.
10487
10488 2017-01-24  Jeff Law  <law@redhat.com>
10489
10490         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
10491         buffer size.
10492
10493 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
10494
10495         PR tree-optimization/79159
10496         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
10497         (record_nonwrapping_iv): Improve boundary using above function if no
10498         value range information.
10499
10500 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
10501             Martin Jambor  <mjambor@suse.cz>
10502
10503         * brig-builtins.def: New file.
10504         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
10505         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
10506         (DEF_HSAIL_SAT_BUILTIN): Likewise.
10507         (DEF_HSAIL_INTR_BUILTIN): Likewise.
10508         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
10509         * builtin-types.def (BT_INT8): New.
10510         (BT_INT16): Likewise.
10511         (BT_UINT8): Likewise.
10512         (BT_UINT16): Likewise.
10513         (BT_FN_ULONG): Likewise.
10514         (BT_FN_UINT_INT): Likewise.
10515         (BT_FN_UINT_ULONG): Likewise.
10516         (BT_FN_UINT_LONG): Likewise.
10517         (BT_FN_UINT_PTR): Likewise.
10518         (BT_FN_ULONG_PTR): Likewise.
10519         (BT_FN_INT8_FLOAT): Likewise.
10520         (BT_FN_INT16_FLOAT): Likewise.
10521         (BT_FN_UINT32_FLOAT): Likewise.
10522         (BT_FN_UINT16_FLOAT): Likewise.
10523         (BT_FN_UINT8_FLOAT): Likewise.
10524         (BT_FN_UINT64_FLOAT): Likewise.
10525         (BT_FN_UINT16_UINT32): Likewise.
10526         (BT_FN_UINT32_UINT16): Likewise.
10527         (BT_FN_UINT16_UINT16_UINT16): Likewise.
10528         (BT_FN_INT_PTR_INT): Likewise.
10529         (BT_FN_UINT_PTR_UINT): Likewise.
10530         (BT_FN_LONG_PTR_LONG): Likewise.
10531         (BT_FN_ULONG_PTR_ULONG): Likewise.
10532         (BT_FN_VOID_UINT64_UINT64): Likewise.
10533         (BT_FN_UINT8_UINT8_UINT8): Likewise.
10534         (BT_FN_INT8_INT8_INT8): Likewise.
10535         (BT_FN_INT16_INT16_INT16): Likewise.
10536         (BT_FN_INT_INT_INT): Likewise.
10537         (BT_FN_UINT_FLOAT_UINT): Likewise.
10538         (BT_FN_FLOAT_UINT_UINT): Likewise.
10539         (BT_FN_ULONG_UINT_UINT): Likewise.
10540         (BT_FN_ULONG_UINT_PTR): Likewise.
10541         (BT_FN_ULONG_ULONG_ULONG): Likewise.
10542         (BT_FN_UINT_UINT_UINT): Likewise.
10543         (BT_FN_VOID_UINT_PTR): Likewise.
10544         (BT_FN_UINT_UINT_PTR: Likewise.
10545         (BT_FN_UINT32_UINT64_PTR): Likewise.
10546         (BT_FN_INT_INT_UINT_UINT): Likewise.
10547         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
10548         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
10549         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
10550         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
10551         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
10552         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
10553         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
10554         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
10555         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
10556         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
10557         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
10558         * doc/frontends.texi: List BRIG FE.
10559         * doc/install.texi (Testing): Add BRIG tesring requirements.
10560         * doc/invoke.texi (Overall Options): Mention BRIG.
10561         * doc/standards.texi (Standards): Doucment BRIG HSA version.
10562
10563 2017-01-24  Richard Biener  <rguenther@suse.de>
10564
10565         PR translation/79208
10566         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
10567
10568 2017-01-24  Martin Jambor  <mjambor@suse.cz>
10569
10570         PR bootstrap/79198
10571         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
10572         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
10573         and known_contexts.
10574
10575 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
10576
10577         PR middle-end/79123
10578         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
10579         casts from signed to unsigned really don't have a range.
10580
10581 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
10582
10583         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
10584         GMP_RNDx for compatiblity.
10585
10586 2017-01-24  Martin Liska  <mliska@suse.cz>
10587
10588         PR bootstrap/79132
10589         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
10590         that would prevent us to call alloca with -1 as argument.
10591
10592 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
10593
10594         * dwarf2out.c (output_compilation_unit_header, output_file_names):
10595         Avoid -Wformat-security warning.
10596
10597 2017-01-23  Andrew Pinski  <apinski@cavium.com>
10598
10599         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
10600         cost table.
10601
10602 2017-01-23  Martin Sebor  <msebor@redhat.com>
10603
10604         PR middle-end/78703
10605         * gimple-ssa-sprintf.c (warn_level): New global.
10606         (format_integer): Use it here and throughout the rest of the file.
10607         Use the same switch to compute sign as base.
10608         (maybe_warn): New function.
10609         (format_directive): Factor out warnings into maybe_warn.
10610         Add debugging output.  Use warn_level.
10611         (add_bytes): Use warn_level.
10612         (pass_sprintf_length::compute_format_length): Add debugging output.
10613         (try_substitute_return_value): Same.
10614         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
10615
10616         PR middle-end/78703
10617         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
10618         (struct fmtresult, format_integer, format_floating): Adjust.
10619         (fmtresult::fmtresult): Set max correctly in two argument ctor.
10620         (get_string_length, format_string,format_directive): Same.
10621         (pass_sprintf_length::compute_format_length): Same.
10622         (try_substitute_return_value): Simplify slightly.
10623
10624         PR middle-end/78703
10625         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
10626         (fmtresult::operator+=): Outlined.
10627         (struct fmtresult): Add ctors.
10628         (struct conversion_spec): Rename...
10629         (struct directive): ...to this.  Add and remove data members.
10630         (directive::set_width, directive::set_precision): New functions.
10631         (format_percent): Use fmtresult ctor.
10632         (get_width_and_precision): Remove.
10633         (format_integer): Make naming changes.  Avoid computing width and
10634         precision.
10635         (format_floating): Same.  Adjust indentation.
10636         (format_character, format_none): New functions.
10637         (format_string): Moved character handling to format_character.
10638         (format_directive): Remove arguments, change return type.
10639         (parse_directive): New function.
10640         (pass_sprintf_length::compute_format_length): Move directive
10641         parsing to parse_directive.
10642
10643 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
10644
10645         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
10646         (assign_assembler_name_if_needed): ... this.
10647         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
10648         (assign_assembler_name_if_needed): ... this.
10649         (free_lang_data_in_cgraph): Adjust callers.
10650         * cgraphunit.c (cgraph_node::analyze): Likewise.
10651         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
10652         Likewise.
10653
10654 2017-01-23  Richard Biener  <rguenther@suse.de>
10655
10656         PR tree-optimization/79088
10657         PR tree-optimization/79188
10658         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
10659         resetting loop bounds after last path deletion.  Reset loop
10660         bounds of the target loop, make code match the comments.
10661         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
10662         Make sure loops need no fixups.
10663
10664 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10665
10666         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
10667         exponent support with double type for first argument.
10668         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
10669         type returned by __builtin_vec_extract_sig,
10670         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
10671         functions from "vector int" to "vector unsigned int" or from
10672         "vector long long int" to "vector unsigned long long int".
10673         Changed type returned by __builtin_vec_extract_exp,
10674         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
10675         functions from "vector int" to "vector unsigned int" or from
10676         "vector long long int" to "vector unsigned long long int".
10677         Changed return type of __builtin_vec_test_data_class,
10678         __builtin_vec_test_data_class_sp, and
10679         __builtin_vec_test_data_class_dp from "vector int" to
10680         "vector bool int" or from "vector long long int" to "vector bool
10681         long long int" and changed second argument type from "unsigned
10682         int" to "int".  Added new overloaded function forms "vector float
10683         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
10684         "vector float __builtin_vec_insert_exp_sp (vector float, vector
10685         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
10686         double, vector unsigned long long int)" and "vector double
10687         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
10688         long int)".  Changed return type of
10689         __builtin_scalar_test_data_class and
10690         __builtin_scalar_test_data_class_sp and
10691         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
10692         int" and changed second argument from "unsigned int" to "int".
10693         Changed type returned by __builtin_scalar_test_neg,
10694         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
10695         from "int" to "bool int".  Added new overloaded function form
10696         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
10697         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
10698         exponent double-precision with floating point first argument.
10699         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
10700         documentation of scalar_test_data_class, scalar_test_neg,
10701         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
10702         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
10703         vec_test_data_class built-in functions to reflect refinements in
10704         their type signatures.
10705
10706 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
10707
10708         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
10709         size of buf.
10710         (aarch64_elf_asm_destructor): Likewise.
10711
10712 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
10713
10714         PR rtl-optimization/78634
10715         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
10716         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
10717         * ifcvt.c (noce_try_cmove): Add missing cost check.
10718
10719         PR rtl-optimization/71724
10720         * combine.c (if_then_else_cond): Look for situations where it is
10721         beneficial to undo the work of one of the recursive calls.
10722
10723 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
10724
10725         PR tree-optimization/70754
10726         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
10727         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
10728         combined stmt before it if not NULL.
10729         (combine_chains): Process refs reversely and compute dominance point
10730         for root ref.
10731
10732 2017-01-23  Martin Liska  <mliska@suse.cz>
10733
10734         PR tree-optimization/79196
10735         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
10736         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
10737         instead of memcmp.
10738         (strlen_optimize_stmt): Call the renamed function.
10739
10740 2017-01-23  Michael Matz  <matz@suse.de>
10741
10742         PR tree-optimization/78384
10743         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
10744
10745 2017-01-23  Richard Biener  <rguenther@suse.de>
10746
10747         PR tree-optimization/79186
10748         * tree-vrp.c (register_new_assert_for): Make sure we've seen
10749         both incoming edges before moving an assert.
10750
10751 2017-01-23  Martin Jambor  <mjambor@suse.cz>
10752
10753         * ipa-prop.c (load_from_param_1): Removed.
10754         (load_from_unmodified_param): Bits from load_from_param_1 put back
10755         here.
10756         (load_from_param): Removed.
10757         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
10758         with stmt.  Reverted back to use of load_from_unmodified_param.
10759
10760 2017-01-23  Martin Jambor  <mjambor@suse.cz>
10761
10762         PR ipa/79108
10763         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
10764         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
10765         field a pointer to garbage collected vector, mark lattices and
10766         ipcp_orig_node with GTY((skip)).
10767         (ipa_get_param_count): Adjust to descriptors being a pointer.
10768         (ipa_get_param): Likewise.
10769         (ipa_get_type): Likewise.
10770         (ipa_get_param_move_cost): Likewise.
10771         (ipa_set_param_used): Likewise.
10772         (ipa_get_controlled_uses): Likewise.
10773         (ipa_set_controlled_uses): Likewise.
10774         (ipa_is_param_used): Likewise.
10775         (ipa_node_params_t): Move into garbage collector.  New methods insert
10776         and remove.
10777         (ipa_node_params_sum): Annotate wth GTY(()).
10778         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
10779         garbage collected.
10780         (ipa_load_from_parm_agg): Adjust declaration.
10781         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
10782         * ipa-profile.c (ipa_profile): Likewise.
10783         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
10784         (ipa_populate_param_decls): Make descriptors parameter garbage
10785         collected.
10786         (ipa_dump_param): Adjust to descriptors being a pointer.
10787         (ipa_alloc_node_params): Likewise.
10788         (ipa_initialize_node_params): Likewise.
10789         (load_from_param_1): Make descriptors parameter garbage collected.
10790         (load_from_unmodified_param): Likewise.
10791         (load_from_param): Likewise.
10792         (ipa_load_from_parm_agg): Likewise.
10793         (ipa_node_params::~ipa_node_params): Removed.
10794         (ipa_free_all_node_params): Remove call to delete operator.
10795         (ipa_node_params_t::insert): New.
10796         (ipa_node_params_t::remove): Likewise.
10797         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
10798         copy known_csts and known_contexts vectors.
10799         (ipa_read_node_info): Adjust to descriptors being a pointer.
10800         (ipcp_modif_dom_walker): Make m_descriptors field garbage
10801         collected.
10802         (ipcp_transform_function): Make descriptors variable garbage
10803         collected.
10804
10805 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
10806
10807         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
10808         * config/i386/avx512dqintrin.h: Ditto.
10809         * config/i386/avx512fintrin.h: Ditto.
10810         * gcc/config/i386/i386.c: Handle new builtins.
10811         * config/i386/i386-builtin.def: Add new builtins.
10812         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
10813         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
10814
10815 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
10816             Martin Liska  <mliska@suse.cz>
10817
10818         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
10819         * asan.c (asan_expand_poison_ifn): Support stores and use
10820         appropriate ASAN report function.
10821         * internal-fn.c (expand_ASAN_POISON_USE): New function.
10822         * internal-fn.def (ASAN_POISON_USE): Declare.
10823         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
10824         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
10825         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
10826         ASAN_POISON calls w/o LHS.
10827         * tree-ssa.c (execute_update_addresses_taken): Create clobber
10828         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
10829         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
10830         * gimplify.c (asan_poison_variables): Add attribute
10831         use_after_scope_memory to variables that really needs to live
10832         in memory.
10833         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
10834         having the attribute.
10835
10836 2017-01-23  Martin Liska  <mliska@suse.cz>
10837
10838         * asan.c (create_asan_shadow_var): New function.
10839         (asan_expand_poison_ifn): Likewise.
10840         * asan.h (asan_expand_poison_ifn): New declaration.
10841         * internal-fn.c (expand_ASAN_POISON): Likewise.
10842         * internal-fn.def (ASAN_POISON): New builtin.
10843         * sanopt.c (pass_sanopt::execute): Expand
10844         asan_expand_poison_ifn.
10845         * tree-inline.c (copy_decl_for_dup_finish): Make function
10846         external.
10847         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
10848         * tree-ssa.c (is_asan_mark_p): New function.
10849         (execute_update_addresses_taken): Rewrite local variables
10850         (identified just by use-after-scope as addressable) into SSA.
10851
10852 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
10853
10854         * doc/install.texi (Specific): opensource.apple.com uses https
10855         now. Remove trailing slash.
10856
10857 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
10858
10859         * README.Portability: Remove note on an Irix compatibility issue.
10860
10861 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
10862
10863         * gcov.c (INCLUDE_ALGORITHM): Define.
10864         (INCLUDE_VECTOR): Define.
10865         No longer include <vector> and <algorithm> directly.
10866
10867 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
10868
10869         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
10870         to https.
10871         * doc/invoke.texi (Code Gen Options): Ditto.
10872
10873 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
10874
10875         PR lto/78407
10876         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
10877
10878 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
10879
10880         rtl-optimization/79125
10881         * cprop.c (local_cprop_pass): Handle cases where we make an
10882         unconditional trap.
10883
10884 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
10885
10886         PR target/61729
10887         PR target/77850
10888         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
10889         read from, for big endian.
10890
10891 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
10892
10893         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
10894         register pauth builtins for LP64 only.
10895
10896 2017-01-20  Marek Polacek  <polacek@redhat.com>
10897
10898         PR c/79152
10899         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
10900         non-case labels.
10901
10902 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
10903
10904         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
10905         of safelen status.
10906         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
10907         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
10908         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
10909
10910 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10911
10912         PR target/71270
10913         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
10914         in big-endian mode when they are not a single duplicated value.
10915
10916 2017-01-20  Richard Biener  <rguenther@suse.de>
10917
10918         * BASE-VER: Bump to 7.0.1.
10919
10920 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
10921
10922         * omp-low.c (omplow_simd_context): New struct.  Use it...
10923         (lower_rec_simd_input_clauses): ...here and...
10924         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
10925         references to idx, lane, max_vf, is_simt.
10926
10927 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
10928
10929         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
10930         mcpu=nps400.
10931
10932 2017-01-20  Martin Jambor  <mjambor@suse.cz>
10933
10934         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
10935         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
10936         gt-hsa-common.h.
10937         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
10938         (GTFILES): Rename hsa.c to hsa-common.c.
10939         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
10940         * hsa-dump.c: Likewise.
10941         * hsa-gen.c: Likewise.
10942         * hsa-regalloc.c: Likewise.
10943         * ipa-hsa.c: Likewise.
10944         * omp-expand.c: Likewise.
10945         * omp-low.c: Likewise.
10946         * toplev.c: Likewise.
10947
10948 2017-01-20  Marek Polacek  <polacek@redhat.com>
10949
10950         PR c/64279
10951         * doc/invoke.texi: Document -Wduplicated-branches.
10952         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
10953         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
10954         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
10955         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
10956         return 0 only when not OEP_LEXICOGRAPHIC.
10957         (fold_build_cleanup_point_expr): Use the expression
10958         location when building CLEANUP_POINT_EXPR.
10959         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
10960         * tree.c (add_expr): Handle error_mark_node.
10961
10962 2017-01-20  Martin Liska  <mliska@suse.cz>
10963
10964         PR lto/69188
10965         * tree-profile.c (init_ic_make_global_vars): Do not call
10966         finalize_decl.
10967         (gimple_init_gcov_profiler): Likewise.
10968
10969 2017-01-20  Martin Liska  <mliska@suse.cz>
10970
10971         PR ipa/71190
10972         * cgraph.h (maybe_create_reference): Remove argument and
10973         update comment.
10974         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
10975         argument.
10976         * ipa-cp.c (create_specialized_node): Likewise.
10977         * symtab.c (symtab_node::maybe_create_reference): Handle
10978         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
10979
10980 2017-01-20  Martin Liska  <mliska@suse.cz>
10981
10982         * read-rtl-function.c (function_reader::create_function): Use
10983         build_decl instread of build_decl_stat.
10984
10985 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
10986
10987         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
10988         * config/i386/avx512dqintrin.h: Ditto.
10989         * config/i386/avx512fintrin.h: Ditto.
10990         * config/i386/i386-builtin-types.def: Add new types.
10991         * gcc/config/i386/i386.c: Handle new types.
10992         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
10993         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
10994         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
10995         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
10996         (__builtin_ia32_kshiftridi): New.
10997         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
10998
10999 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
11000
11001         PR target/78875
11002         PR target/79140
11003         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
11004         define to rs6000_init_stack_protect_guard.
11005         (rs6000_init_stack_protect_guard): New function.
11006
11007 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
11008             Yunqiang Su  <yunqiang.su@imgtec.com>
11009
11010         * config.gcc (supported_defaults): Add madd4.
11011         (with_madd4): Add validation.
11012         (all_defaults): Add madd4.
11013         * config/mips/mips.opt (mmadd4): New option.
11014         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11015         mmadd4.
11016         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11017         __mips_no_madd4.
11018         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
11019         (ISA_HAS_FUSED_MADD4): Likewise.
11020         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
11021         * gcc/doc/install.texi (--with-madd4): Document the new option.
11022
11023 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11024
11025         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
11026         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
11027         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
11028         (aarch64_init_pauth_hint_builtins): New.
11029         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
11030         (aarch64_expand_builtin): Expand new builtins.
11031
11032 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11033
11034         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
11035         * combine-stack-adj.c (no_unhandled_cfa): Handle
11036         REG_CFA_TOGGLE_RA_MANGLE.
11037         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
11038         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
11039         info for return address signing.
11040         (aarch64_expand_epilogue): Likewise.
11041
11042 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11043
11044         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
11045         * config/aarch64/aarch64-protos.h
11046         (aarch64_return_address_signing_enabled): New declaration.
11047         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
11048         New function.
11049         (aarch64_expand_prologue): Sign return address before it's pushed onto
11050         stack.
11051         (aarch64_expand_epilogue): Authenticate return address fetched from
11052         stack.
11053         (aarch64_override_options): Sanity check for ILP32 and ISA level.
11054         (aarch64_attributes): New function attributes for "sign-return-address".
11055         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
11056         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
11057         ("*do_return"): Generate combined instructions according to key index.
11058         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
11059         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
11060         iterators.
11061         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
11062         * config/aarch64/aarch64.opt (msign-return-address=): New.
11063         * doc/extend.texi (AArch64 Function Attributes): Documents
11064         "sign-return-address=".
11065         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
11066
11067 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
11068
11069         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
11070         overall option summary.
11071
11072 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
11073
11074         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
11075         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
11076         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
11077         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
11078
11079 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11080
11081         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
11082         -mpower9-minmax by default for -mcpu=power9.
11083         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
11084         128-bit floating point.
11085
11086 2017-01-20  Alan Modra  <amodra@gmail.com>
11087
11088         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
11089         optimizing for size.
11090
11091 2017-01-20  Alan Modra  <amodra@gmail.com>
11092
11093         PR target/79144
11094         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
11095         for strcmp and strncmp from corresponding builtin decl.
11096
11097 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
11098
11099         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
11100         instead of i386/rtems-64.h.
11101         * config/i386/rtems-64.h: Remove.
11102
11103 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
11104
11105         PR target/78478
11106         Revert:
11107         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
11108
11109         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
11110
11111 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
11112
11113         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
11114         Change int to HOST_WIDE_INT.
11115         * config/aarch64/aarch64-protos.h
11116         (aarch64_simd_gen_const_vector_dup): Likewise.
11117         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
11118
11119 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
11120
11121         * langhooks-def.h (lhd_type_for_size): New decl.
11122         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
11123         * langhooks.c (lhd_type_for_size): New function, taken from
11124         lto_type_for_size.
11125
11126 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
11127
11128         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
11129         define_bypass for CR latency.
11130         (power9-cracked-alu): Update bypass latency and remove power9-branch.
11131         (power9-alu2): Add define_bypass for CR latency.
11132         (power9-cmp): New.
11133         (power9-mul): Update insn latency.
11134         (power9-mul-compare): Update insn latency, bypass latency and remove
11135         power9-branch.
11136
11137 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11138
11139         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11140         Delete.
11141         * config/aarch64/aarch64.md
11142         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
11143         aarch64_nopcrelative_literal_loads.
11144         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11145
11146 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
11147
11148         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
11149         TARGET_LOONGSON_3A.
11150         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
11151
11152 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
11153
11154         PR target/78176
11155         * config.gcc (supported_defaults): Add lxc1-sxc1.
11156         (with_lxc1_sxc1): Add validation.
11157         (all_defaults): Add lxc1-sxc1.
11158         * config/mips/mips.opt (mlxc1-sxc1): New option.
11159         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11160         mlxc1-sxc1.
11161         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11162         __mips_no_lxc1_sxc1.
11163         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
11164         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
11165         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
11166
11167 2017-01-19  Richard Biener  <rguenther@suse.de>
11168
11169         PR tree-optimization/72488
11170         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
11171         sure to restore SSA info.
11172         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
11173
11174 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
11175
11176         PR rtl-optimization/79121
11177         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
11178         of the inner type when shifting an extended value.
11179
11180 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
11181
11182         PR lto/78407
11183         * symtab.c (symtab_node::equal_address_to): Fix comparing of
11184         interposable aliases.
11185
11186 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
11187
11188         PR target/78516
11189         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
11190         Use the evmergelohi instruction.
11191         (mov_si<mode>_e500_subreg4_2_le): Likewise.
11192         (mov_sitf_e500_subreg8_2_be): Likewise.
11193         (mov_sitf_e500_subreg12_2_le): Likewise.
11194         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
11195         (mov_si<mode>_e500_subreg4_2_be): Likewise.
11196         (mov_sitf_e500_subreg8_2_le): Likewise.
11197         (mov_sitf_e500_subreg12_2_be): Likewise.
11198
11199 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11200
11201         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
11202         attribute from vecsimple to vecperm.
11203         (altivec_vbpermq2): Likewise.
11204
11205 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11206
11207         PR target/79040
11208         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
11209
11210 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11211         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
11212         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
11213         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
11214         case where N arg is SIZE_MAX.
11215         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
11216         (cmpstrsi): Add pattern.
11217
11218 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11219
11220         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11221         __builtin_vec_revb builtins.
11222         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
11223         built-in functions to support generation of the ISA 3.0 XXBR<x>
11224         vector byte reverse instructions.
11225         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
11226         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
11227         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
11228         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
11229         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
11230         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
11231         (P9V_BUILTIN_VEC_REVB): Likewise.
11232         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
11233         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
11234         (p9_xxbrq_v16qi): Likewise.
11235         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
11236         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
11237         (p9_xxbrh_v8hi): Likewise.
11238         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
11239         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
11240         vec_revb built-in functions.
11241
11242 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
11243
11244         PR rtl-optimization/78952
11245         * config/i386/i386.md (any_extract): New code iterator.
11246         (*insvqi_2): Use any_extract for source operand.
11247         (*insvqi_3): Use any_shiftrt for source operand.
11248
11249 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
11250
11251         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
11252         New function.
11253         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
11254
11255 2017-01-18  Matthias Klose  <doko@ubuntu.com>
11256
11257         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
11258
11259 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11260
11261         * config/rs6000/altivec.h (vec_bperm): Change #define.
11262         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
11263         (altivec_vbpermq2): New define_insn.
11264         (altivec_vbpermd): Likewise.
11265         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
11266         function interface.
11267         (VBPERMD): Likewise.
11268         (VBPERM): New polymorphic function interface.
11269         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
11270         Add entries for P9V_BUILTIN_VEC_VBPERM.
11271         * doc/extend.texi: Add interfaces for vec_bperm.
11272
11273 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11274
11275         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
11276         first letter of error messages.
11277         (s390_resolve_overloaded_builtin): Likewise.
11278         * config/s390/s390.c (s390_expand_builtin): Likewise.
11279         (s390_invalid_arg_for_unprototyped_fn): Likewise.
11280         (s390_valid_target_attribute_inner_p): Likewise.
11281         * config/s390/s390.md ("tabort"): Likewise.
11282
11283 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
11284
11285         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
11286         (ISA_AVOID_DIV_HILO): New macro.
11287         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
11288         (ISA_HAS_DDIV): Likewise.
11289
11290 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11291
11292         * doc/invoke.texi (fabi-version): Correct number of occurrences.
11293
11294 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11295
11296         * doc/invoke.texi (fabi-version): Spelling fix.
11297
11298 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11299
11300         PR c++/70182
11301         * doc/invoke.texi (fabi-version): Mention mangling fix for
11302         operator names.
11303
11304 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11305
11306         PR c++/77489
11307         * doc/invoke.texi (fabi-version): Document discriminator mangling.
11308
11309 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
11310
11311         PR target/78875
11312         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
11313         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
11314         the new options.
11315         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
11316         flexible settings.
11317         (stack_protect_test): Ditto.
11318         * config/rs6000/rs6000.opt (mstack-protector-guard=,
11319         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
11320         options.
11321         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
11322         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
11323         -mstack-protector-guard-offset=.
11324         (RS/6000 and PowerPC Options): Ditto.
11325
11326 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
11327
11328         * config/i386/i386.h (MASK_CLASS_P): New define.
11329         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
11330         there are no registers from different register sets also when
11331         mask registers are used.  Update function comment.
11332         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
11333         to (*k/*r) and (*k/*km) alternatives.
11334
11335 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
11336
11337         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
11338         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
11339         (EH_RETURN_HANDLER_RTX): New define.
11340         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
11341         Force frame pointer in EH return functions.
11342         (aarch64_expand_epilogue): Add barrier for eh_return.
11343         (aarch64_final_eh_return_addr): Remove.
11344         (aarch64_eh_return_handler_rtx): New function.
11345         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
11346         Remove.
11347         (aarch64_eh_return_handler_rtx): New prototype.
11348
11349 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11350
11351         * config/rs6000/altivec.h (vec_rlmi): New #define.
11352         (vec_vrlnm): Likewise.
11353         (vec_rlnm): Likewise.
11354         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
11355         (UNSPEC_VRLNM): Likewise.
11356         (VIlong): New mode iterator.
11357         (altivec_vrl<VI_char>mi): New define_insn.
11358         (altivec_vrl<VI_char>nm): Likewise.
11359         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
11360         function entry.
11361         (VRLDNM): Likewise.
11362         (RLNM): New polymorphic function entry.
11363         (VRLWMI): New monomorphic function entry.
11364         (VRLDMI): Likewise.
11365         (RLMI): New polymorphic function entry.
11366         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
11367         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
11368         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
11369         vec_vrlnm.
11370
11371 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11372
11373         PR debug/78839
11374         * dwarf2out.c (field_byte_offset): Restore the
11375         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
11376         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
11377         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
11378         of build2 + fold.
11379
11380 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11381
11382         PR ada/67205
11383         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
11384
11385 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11386
11387         PR debug/71669
11388         * dwarf2out.c (add_data_member_location_attribute): For constant
11389         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
11390         instead of DW_AT_data_member_location, DW_AT_bit_offset and
11391         DW_AT_byte_size attributes.
11392
11393 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11394
11395         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
11396         after forcing to constant memory when the code model is medium.
11397
11398 2017-01-17  Julia Koval  <julia.koval@intel.com>
11399
11400         PR target/76731
11401         * config/i386/avx512fintrin.h
11402         (_mm512_i32gather_ps): Change __addr type to void const*.
11403         (_mm512_mask_i32gather_ps): Ditto.
11404         (_mm512_i32gather_pd): Ditto.
11405         (_mm512_mask_i32gather_pd): Ditto.
11406         (_mm512_i64gather_ps): Ditto.
11407         (_mm512_mask_i64gather_ps): Ditto.
11408         (_mm512_i64gather_pd): Ditto.
11409         (_mm512_mask_i64gather_pd): Ditto.
11410         (_mm512_i32gather_epi32): Ditto.
11411         (_mm512_mask_i32gather_epi32): Ditto.
11412         (_mm512_i32gather_epi64): Ditto.
11413         (_mm512_mask_i32gather_epi64): Ditto.
11414         (_mm512_i64gather_epi32): Ditto.
11415         (_mm512_mask_i64gather_epi32): Ditto.
11416         (_mm512_i64gather_epi64): Ditto.
11417         (_mm512_mask_i64gather_epi64): Ditto.
11418         (_mm512_i32scatter_ps): Change __addr type to void*.
11419         (_mm512_mask_i32scatter_ps): Ditto.
11420         (_mm512_i32scatter_pd): Ditto.
11421         (_mm512_mask_i32scatter_pd): Ditto.
11422         (_mm512_i64scatter_ps): Ditto.
11423         (_mm512_mask_i64scatter_ps): Ditto.
11424         (_mm512_i64scatter_pd): Ditto.
11425         (_mm512_mask_i64scatter_pd): Ditto.
11426         (_mm512_i32scatter_epi32): Ditto.
11427         (_mm512_mask_i32scatter_epi32): Ditto.
11428         (_mm512_i32scatter_epi64): Ditto.
11429         (_mm512_mask_i32scatter_epi64): Ditto.
11430         (_mm512_i64scatter_epi32): Ditto.
11431         (_mm512_mask_i64scatter_epi32): Ditto.
11432         (_mm512_i64scatter_epi64): Ditto.
11433         (_mm512_mask_i64scatter_epi64): Ditto.
11434         * config/i386/avx512pfintrin.h
11435         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
11436         (_mm512_mask_prefetch_i32gather_ps): Ditto.
11437         (_mm512_mask_prefetch_i64gather_pd): Ditto.
11438         (_mm512_mask_prefetch_i64gather_ps): Ditto.
11439         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
11440         (_mm512_prefetch_i32scatter_ps): Ditto.
11441         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
11442         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
11443         (_mm512_prefetch_i64scatter_pd): Ditto.
11444         (_mm512_prefetch_i64scatter_ps): Ditto.
11445         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
11446         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
11447         * config/i386/avx512vlintrin.h
11448         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
11449         (_mm_mmask_i32gather_ps): Ditto.
11450         (_mm256_mmask_i32gather_pd): Ditto.
11451         (_mm_mmask_i32gather_pd): Ditto.
11452         (_mm256_mmask_i64gather_ps): Ditto.
11453         (_mm_mmask_i64gather_ps): Ditto.
11454         (_mm256_mmask_i64gather_pd): Ditto.
11455         (_mm_mmask_i64gather_pd): Ditto.
11456         (_mm256_mmask_i32gather_epi32): Ditto.
11457         (_mm_mmask_i32gather_epi32): Ditto.
11458         (_mm256_mmask_i32gather_epi64): Ditto.
11459         (_mm_mmask_i32gather_epi64): Ditto.
11460         (_mm256_mmask_i64gather_epi32): Ditto.
11461         (_mm_mmask_i64gather_epi32): Ditto.
11462         (_mm256_mmask_i64gather_epi64): Ditto.
11463         (_mm_mmask_i64gather_epi64): Ditto.
11464         (_mm256_i32scatter_ps): Change __addr type to void*.
11465         (_mm256_mask_i32scatter_ps): Ditto.
11466         (_mm_i32scatter_ps): Ditto.
11467         (_mm_mask_i32scatter_ps): Ditto.
11468         (_mm256_i32scatter_pd): Ditto.
11469         (_mm256_mask_i32scatter_pd): Ditto.
11470         (_mm_i32scatter_pd): Ditto.
11471         (_mm_mask_i32scatter_pd): Ditto.
11472         (_mm256_i64scatter_ps): Ditto.
11473         (_mm256_mask_i64scatter_ps): Ditto.
11474         (_mm_i64scatter_ps): Ditto.
11475         (_mm_mask_i64scatter_ps): Ditto.
11476         (_mm256_i64scatter_pd): Ditto.
11477         (_mm256_mask_i64scatter_pd): Ditto.
11478         (_mm_i64scatter_pd): Ditto.
11479         (_mm_mask_i64scatter_pd): Ditto.
11480         (_mm256_i32scatter_epi32): Ditto.
11481         (_mm256_mask_i32scatter_epi32): Ditto.
11482         (_mm_i32scatter_epi32): Ditto.
11483         (_mm_mask_i32scatter_epi32): Ditto.
11484         (_mm256_i32scatter_epi64): Ditto.
11485         (_mm256_mask_i32scatter_epi64): Ditto.
11486         (_mm_i32scatter_epi64): Ditto.
11487         (_mm_mask_i32scatter_epi64): Ditto.
11488         (_mm256_i64scatter_epi32): Ditto.
11489         (_mm256_mask_i64scatter_epi32): Ditto.
11490         (_mm_i64scatter_epi32): Ditto.
11491         (_mm_mask_i64scatter_epi32): Ditto.
11492         (_mm256_i64scatter_epi64): Ditto.
11493         (_mm256_mask_i64scatter_epi64): Ditto.
11494         (_mm_i64scatter_epi64): Ditto.
11495         (_mm_mask_i64scatter_epi64): Ditto.
11496         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
11497         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
11498         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
11499         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
11500         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
11501         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
11502         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
11503         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
11504         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
11505         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
11506         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
11507         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
11508         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
11509         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
11510         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
11511         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
11512         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
11513         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
11514         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
11515         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
11516         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
11517         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
11518         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
11519         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
11520         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
11521         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
11522         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
11523         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
11524         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
11525         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
11526         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
11527         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
11528         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
11529         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
11530         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
11531         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
11532         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
11533         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
11534         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
11535         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
11536         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
11537         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
11538         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
11539         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
11540         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
11541         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
11542         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
11543         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
11544         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
11545         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
11546         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
11547         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
11548         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
11549         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
11550         definitions accordingly.
11551
11552 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
11553             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
11554
11555         PR target/79079
11556         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
11557         gen_lowpart.
11558
11559 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
11560
11561         PR target/79058
11562         * ira-conflicts.c (ira_build_conflicts): Update total conflict
11563         hard regs for inner regno.
11564
11565 2017-01-17  Martin Liska  <mliska@suse.cz>
11566
11567         PR ipa/71207
11568         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
11569         assumption and add comment.
11570
11571 2017-01-17  Nathan Sidwell  <nathan@acm.org>
11572
11573         * ipa-visibility.c (localize_node): New function, broken out of ...
11574         (function_and_variable_visibility): ... here. Call it.
11575
11576 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
11577
11578         PR middle-end/77445
11579         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
11580         correctly set frequency of oudgoing edge.
11581         (duplicate_thread_path): Fix profile updating.
11582
11583 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11584
11585         PR other/79046
11586         * configure.ac: Add GCC_BASE_VER.
11587         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
11588         version from BASE-VER file.
11589         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
11590         (gcc.o): Depend on $(BASEVER).
11591         * common.opt (dumpfullversion): New option.
11592         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
11593         * doc/invoke.texi: Document -dumpfullversion.
11594         * doc/install.texi: Document --with-gcc-major-version-only.
11595         * configure: Regenerated.
11596
11597 2017-01-17  Richard Biener  <rguenther@suse.de>
11598
11599         PR tree-optimization/71433
11600         * tree-vrp.c (register_new_assert_for): Merge same asserts
11601         on all incoming edges.
11602         (process_assert_insertions_for): Handle insertions at the
11603         beginning of BBs.
11604
11605 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
11606
11607         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
11608         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
11609
11610 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11611
11612         PR target/78633
11613         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
11614         RTL sharing.
11615
11616 2017-01-17  Alan Modra  <amodra@gmail.com>
11617
11618         PR target/79066
11619         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
11620         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
11621         symbolic stack limit when pic.
11622
11623 2017-01-16  Martin Sebor  <msebor@redhat.com>
11624
11625         PR tree-optimization/78608
11626         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
11627
11628 2017-01-16  Jeff Law  <law@redhat.com>
11629
11630         Revert:
11631         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
11632         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
11633         for several include directories that may be relative to sysroot.
11634         * config/i386/x-mingw32 (gplus_includedir): Define.
11635         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
11636         (native_system_includedir): Likewise.
11637         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
11638         override if TARGET_SYSTEM_ROOT is defined.
11639         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
11640
11641         PR tree-optimization/79090
11642         PR tree-optimization/33562
11643         PR tree-optimization/61912
11644         PR tree-optimization/77485
11645         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
11646         and computed trims into the dump file.
11647
11648 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
11649
11650         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
11651
11652 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
11653
11654         PR c/79089
11655         * gimplify.c (gimplify_init_constructor): If want_value and
11656         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
11657         fix.
11658
11659         PR target/79080
11660         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
11661         sequence.  Formatting fixes.
11662         (doloop_optimize): Formatting fixes.
11663
11664         PR driver/49726
11665         * gcc.c (debug_level_greater_than_spec_func): New function.
11666         (static_spec_functions): Add debug-level-gt spec function.
11667         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
11668         !g0.
11669         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
11670         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
11671         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
11672         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
11673         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
11674         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
11675
11676 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
11677
11678         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
11679         QImode fixups to general and mask registers only.
11680
11681 2017-01-16  Carl Love  <cel@us.ibm.com>
11682
11683         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
11684         for built-in functions
11685         vector signed char vec_nabs (vector signed char)
11686         vector signed short vec_nabs (vector signed short)
11687         vector signed int vec_nabs (vector signed int)
11688         vector signed long long vec_nabs (vector signed long long)
11689         vector float vec_nabs (vector float)
11690         vector double vec_nabs (vector double)
11691         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
11692         and NABS overload.
11693         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
11694         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
11695         * doc/extend.texi: Update the documentation file for the new built-in
11696         functions.
11697
11698 2017-01-16  Martin Sebor  <msebor@redhat.com>
11699
11700         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
11701         message.
11702
11703 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11704
11705         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
11706         UNSPEC_VSX__XXSPLTD to require special splat handling.
11707
11708 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
11709
11710         PR bootstrap/78616
11711         * system.h: Poison strndup.
11712
11713 2017-01-16  Alan Modra  <amodra@gmail.com>
11714
11715         PR target/79098
11716         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
11717         use a switch.
11718
11719 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
11720
11721         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
11722
11723 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
11724
11725         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
11726         call recog here.  Assert that INSN_CODE (insn) is non-negative.
11727
11728 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
11729
11730         PR target/72749
11731         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
11732         fallthrough.
11733         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
11734         in the currently scheduled RTL fragment.
11735
11736 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
11737
11738         PR rtl-optimization/78751
11739         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
11740         give up.
11741
11742 2017-01-14  Jeff Law  <law@redhat.com>
11743
11744         PR tree-optimization/79090
11745         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
11746         variable length stores.
11747         (compute_trims): Delete dead assignment to *trim_tail.
11748         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
11749         zero length.
11750
11751 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
11752
11753         PR rtl-optimization/78626
11754         PR rtl-optimization/78727
11755         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
11756         of a block, and split such blocks after everything else is finished.
11757
11758 2017-01-14  Alan Modra  <amodra@gmail.com>
11759
11760         PR target/72749
11761         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
11762         target legitimate_combined_insn.
11763         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
11764         (rs6000_legitimate_combined_insn): New function.
11765         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
11766         all uses.
11767         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
11768         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
11769         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
11770
11771 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
11772
11773         * doc/frontends.texi (G++ and GCC): Remove references to Java.
11774
11775 2017-01-13  Jeff Law  <law@redhat.com>
11776
11777         PR tree-optimization/33562
11778         PR tree-optimization/61912
11779         PR tree-optimization/77485
11780         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
11781         a statement.
11782         (delete_dead_assignment): Likewise.
11783         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
11784         statement to delete_dead_call and delete_dead_assignment.
11785
11786 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
11787
11788         PR c/78304
11789         * substring-locations.c (format_warning_va): Strengthen case 1 so
11790         that both endpoints of the substring must be within the format
11791         range for just the substring to be printed.
11792
11793 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
11794
11795         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
11796         * config/i386/i386.c (ix86_target_string): Add missing options
11797         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
11798         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
11799         flags_other and ix86_target_other to flags2_other.  Display unknown
11800         isa2 options.
11801         (ix86_valid_target_attribute_inner_p): Add missing options and
11802         reorder options by implied ISAs, as in ix86_target_string.
11803
11804 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
11805
11806         * hash-table.h (hash_table::too_empty_p): New function.
11807         (hash_table::expand): Use it.
11808         (hash_table::traverse): Likewise.
11809         (hash_table::empty_slot): Use sizeof (value_type) instead of
11810         sizeof (PTR) to convert bytes to elements.  Shrink the table
11811         if the current size is excessive for the current number of
11812         elements.
11813
11814 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
11815
11816         * ira-costs.c (record_reg_classes): Break from the inner loop
11817         early once alt_fail is known to be true.  Update outer loop
11818         handling accordingly.
11819
11820 2017-01-13  Jeff Law  <law@redhat.com>
11821
11822         * tree-ssa-dse.c (decrement_count): New function.
11823         (increment_start_addr, maybe_trim_memstar_call): Likewise.
11824         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
11825         when we know the partially dead statement is a mem* function.
11826
11827         PR tree-optimization/61912
11828         PR tree-optimization/77485
11829         * tree-ssa-dse.c: Include expr.h.
11830         (maybe_trim_constructor_store): New function.
11831         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
11832
11833         PR tree-optimization/33562
11834         PR tree-optimization/61912
11835         PR tree-optimization/77485
11836         * doc/invoke.texi: Document new dse-max-object-size param.
11837         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
11838         * tree-ssa-dse.c: Include params.h.
11839         (dse_store_status): New enum.
11840         (initialize_ao_ref_for_dse): New, partially extracted from
11841         dse_optimize_stmt.
11842         (valid_ao_ref_for_dse, normalize_ref): New.
11843         (setup_live_bytes_from_ref, compute_trims): Likewise.
11844         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
11845         (maybe_trim_partially_dead_store): Likewise.
11846         (maybe_trim_complex_store): Likewise.
11847         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
11848         Track what bytes live from the original store.  Return tri-state
11849         for dead, partially dead or live.
11850         (dse_dom_walker): Add constructor, destructor and new private members.
11851         (delete_dead_call, delete_dead_assignment): New extracted from
11852         dse_optimize_stmt.
11853         (dse_optimize_stmt): Make a member of dse_dom_walker.
11854         Use initialize_ao_ref_for_dse.
11855
11856         PR tree-optimization/33562
11857         PR tree-optimization/61912
11858         PR tree-optimization/77485
11859         * sbitmap.h (bitmap_count_bits): Prototype.
11860         (bitmap_clear_range, bitmap_set_range): Likewise.
11861         * sbitmap.c (bitmap_clear_range): New function.
11862         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
11863
11864 2017-01-13  Martin Liska  <mliska@suse.cz>
11865
11866         PR ipa/79043
11867         * function.c (set_cfun): Add new argument force.
11868         * function.h (set_cfun): Likewise.
11869         * ipa-inline-transform.c (inline_call): Use the function when
11870         strict alising from is dropped for function we inline to.
11871
11872 2017-01-13  Richard Biener  <rguenther@suse.de>
11873
11874         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
11875         for dumping GIMPLE INTEGER_CSTs.
11876
11877 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11878
11879         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
11880         to 201112L since C++17.
11881
11882 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
11883
11884         PR sanitizer/78887
11885         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
11886         if -fsanitize=kernel-address is present.
11887
11888 2017-01-13  Richard Biener  <rguenther@suse.de>
11889
11890         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
11891         as _Literal ( type ) number in case usual suffixes do not
11892         preserve all information.
11893
11894 2017-01-13  Richard Biener  <rguenther@suse.de>
11895
11896         PR tree-optimization/77283
11897         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
11898         and ssa-iterators.h.
11899         (is_feasible_trace): Implement a cost model based on joiner
11900         PHI node uses.
11901
11902 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11903
11904         PR target/79004
11905         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
11906         char or short to __float128/_Float128 directly.
11907
11908 2017-01-12  Martin Sebor  <msebor@redhat.com>
11909
11910         to -Wformat-overflow.
11911         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
11912         (min_bytes_remaining): Same.
11913         (get_string_length): Same.
11914         (format_string): Same.
11915         (format_directive): Same.
11916         (add_bytes): Same.
11917         (pass_sprintf_length::handle_gimple_call): Same.
11918
11919 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
11920
11921         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
11922         info.nowrite calls with no lhs that can't throw.  Return bool
11923         whether gsi_remove has been called or not.
11924         (pass_sprintf_length::handle_gimple_call): Return bool whether
11925         try_substitute_return_value called gsi_remove.  Formatting fix.
11926         (pass_sprintf_length::execute): Don't use gsi_remove if
11927         handle_gimple_call returned true.
11928
11929         PR bootstrap/79069
11930         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
11931         be removed due to side-effects, don't remove following barrier nor
11932         turn the successor edge into fallthru edge.
11933
11934 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11935
11936         PR target/79044
11937         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
11938         element-reversing loads and stores as not swappable.
11939
11940 2017-01-12  Nathan Sidwell  <nathan@acm.org>
11941             Nicolai Stange  <nicstange@gmail.com>
11942
11943         * combine.c (try_combine): Don't ignore result of overlap checking
11944         loop.  Combine overlap & asm check into single loop.
11945
11946 2017-01-12  Richard Biener  <rguenther@suse.de>
11947
11948         * tree-pretty-print.c (dump_generic_node): Provide -gimple
11949         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
11950
11951 2017-01-12  Richard Biener  <rguenther@suse.de>
11952
11953         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
11954         and TS_TARGET_OPTION directly derive from TS_BASE.
11955         * tree-core.h (tree_optimization_option): Derive from tree_base.
11956         (tree_target_option): Likewise.
11957
11958 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
11959
11960         * config/i386/i386.c (memory_address_length): Increase len
11961         only when rip_relative_addr_p returns false.
11962
11963 2017-01-11  Julia Koval  <julia.koval@intel.com>
11964
11965         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
11966         (OPTION_MASK_ISA_SGX_SET): New.
11967         (ix86_handle_option): Handle OPT_msgx.
11968         * config.gcc: Added sgxintrin.h.
11969         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
11970         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
11971         * config/i386/i386.c (ix86_target_string): Add -msgx.
11972         (PTA_SGX): New.
11973         (ix86_option_override_internal): Handle new options.
11974         (ix86_valid_target_attribute_inner_p): Add sgx.
11975         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
11976         * config/i386/i386.opt: Add msgx.
11977         * config/i386/sgxintrin.h: New file.
11978         * config/i386/x86intrin.h: Add sgxintrin.h.
11979
11980 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
11981
11982         PR c++/71537
11983         * fold-const.c (maybe_nonzero_address): Return 1 for function
11984         local objects.
11985         (tree_single_nonzero_warnv_p): Don't handle function local objects
11986         here.
11987
11988         PR c++/72813
11989         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
11990         of c-header.
11991
11992 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
11993
11994         PR driver/78877
11995         * opts.c: Include "spellcheck.h"
11996         (struct string_fragment): New struct.
11997         (struct edit_distance_traits<const string_fragment &>): New
11998         struct.
11999         (get_closest_sanitizer_option): New function.
12000         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
12001
12002 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
12003
12004         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
12005         by 12.
12006         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
12007         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
12008         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
12009         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
12010         for initial die_offset if dwarf_split_debug_info.
12011         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
12012         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
12013         fields.
12014         (output_skeleton_debug_sections): Formatting fix.  Use
12015         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
12016         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
12017
12018 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
12019
12020         * config/arm/cortex-a53.md: Add bypasses for
12021         cortex_a53_r2f_cvt.
12022         (cortex_a53_r2f): Only use for transfers.
12023         (cortex_a53_f2r): Likewise.
12024         (cortex_a53_r2f_cvt): Add reservation for conversions.
12025         (cortex_a53_f2r_cvt): Likewise.
12026
12027 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
12028
12029         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
12030         to all inlined functions, change static to extern.
12031
12032 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
12033
12034         PR target/78253
12035         * config/arm/arm.c (legitimize_pic_address): Handle reference to
12036         weak symbol.
12037         (arm_assemble_integer): Likewise.
12038
12039 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
12040
12041         * config.gcc: Use new awk script to check CPU, FPU and architecture
12042         parameters for --with-... options.
12043         * config/arm/parsecpu.awk: New file
12044         * config/arm/arm-cpus.in: New file.
12045         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
12046         files.
12047         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
12048         files.
12049         * config/arm/t-arm: Update dependency rules.
12050         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
12051         of processing .def files.
12052         * config/arm/genopt.sh: Deleted.
12053         * config/arm/gentune.sh: Deleted.
12054         * config/arm/arm-cores.def: Deleted.
12055         * config/arm/arm-arches.def: Deleted.
12056         * config/arm/arm-fpus.def: Deleted.
12057         * config/arm/arm-tune.md: Regenerated.
12058         * config/arm/arm-tables.opt: Regenerated.
12059         * config/arm/arm-cpu.h: New generated file.
12060         * config/arm/arm-cpu-data.h: New generated file.
12061         * config/arm/arm-cpu-cdata.h: New generated file.
12062
12063 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
12064
12065         PR lto/79042
12066         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
12067         bit.
12068         (input_varpool_node): Unpack dynamically_initialized bit.
12069
12070 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12071
12072         PR rtl-optimization/79032
12073         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
12074         the alignment of the adjusted memory reference against that of MODE,
12075         instead of the alignment of the original memory reference.
12076
12077 2017-01-11  Martin Jambor  <mjambor@suse.cz>
12078
12079         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
12080         test.
12081         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
12082         decorated functions.
12083
12084 2017-01-11  Richard Biener  <rguenther@suse.de>
12085
12086         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
12087         set range/nonnull info for PHI results.  Do not set it on
12088         stmts marked for removal.
12089
12090 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
12091
12092         * expr.c (store_field): In the bitfield case, fetch the return value
12093         from the registers before applying a single big-endian adjustment.
12094         Always do a final load for a BLKmode value not larger than a word.
12095
12096 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
12097
12098         PR c++/77949
12099         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
12100         that we correctly handle column numbers greater than
12101         LINE_MAP_MAX_COLUMN_NUMBER.
12102
12103 2017-01-10  Martin Sebor  <msebor@redhat.com>
12104
12105         PR middle-end/78245
12106         * gimple-ssa-sprintf.c (get_destination_size): Call
12107         {init,fini}object_sizes.
12108         * tree-object-size.c (addr_object_size): Adjust.
12109         (pass_through_call): Adjust.
12110         (pass_object_sizes::execute): Adjust.
12111         * tree-object-size.h (fini_object_sizes): Declare.
12112
12113 2017-01-10  Martin Sebor  <msebor@redhat.com>
12114
12115         PR tree-optimization/78775
12116         * builtins.c (get_size_range): Move...
12117         * calls.c: ...to here.
12118         (alloc_max_size): Accept zero argument.
12119         (operand_signed_p): Remove.
12120         (maybe_warn_alloc_args_overflow): Call get_size_range.
12121         * calls.h (get_size_range): Declare.
12122
12123 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
12124
12125         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
12126         from TI's devices.csv file as of September 2016.
12127         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
12128
12129 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
12130
12131         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
12132         * doc/invoke.texi: Likewise.
12133         * doc/md.texi: Likewise.
12134         * doc/objc.texi: Likewise.
12135
12136 2017-01-10  Joshua Conner  <joshconner@google.com>
12137
12138         * config/arm/fuchsia-elf.h: New file.
12139         * config/fuchsia.h: New file.
12140         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
12141         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
12142         targets.
12143         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
12144
12145 2016-01-10  Richard Biener  <rguenther@suse.de>
12146
12147         PR tree-optimization/79034
12148         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
12149         Propagate out degenerate PHIs in the joiner.
12150
12151 2017-01-10  Martin Liska  <mliska@suse.cz>
12152
12153         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
12154         (sort_congruence_classes_by_decl_uid): Likewise.
12155         (sort_congruence_class_groups_by_decl_uid): Likewise.
12156         (sem_item_optimizer::merge_classes): Sort class, groups in these
12157         classes and members in the groups by DECL_UID of declarations.
12158         This would make merge operations stable.
12159
12160 2017-01-10  Martin Liska  <mliska@suse.cz>
12161
12162         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
12163         usage of m_classes_vec.
12164         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
12165         (sem_item_optimizer::get_group_by_hash): Likewise.
12166         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
12167         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
12168         (sem_item_optimizer::verify_classes): Likewise.
12169         (sem_item_optimizer::process_cong_reduction): Likewise.
12170         (sem_item_optimizer::dump_cong_classes): Likewise.
12171         (sem_item_optimizer::merge_classes): Likewise.
12172         * ipa-icf.h (congruence_class_hash): Rename from
12173         congruence_class_group_hash.  Remove declaration of m_classes_vec.
12174
12175 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
12176
12177         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
12178         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
12179         * config.gcc: Add avx512vpopcntdqintrin.h.
12180         * config/i386/avx512vpopcntdqintrin.h: New.
12181         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
12182         * config/i386/i386-builtin-types.def: Add new types.
12183         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
12184         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
12185         __builtin_ia32_vpopcountq_v8di_mask): New.
12186         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12187         __AVX512VPOPCNTDQ__.
12188         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
12189         (PTA_AVX512VPOPCNTDQ): Define.
12190         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
12191         TARGET_AVX512VPOPCNTDQ_P): Define.
12192         * config/i386/i386.opt: Add mavx512vpopcntdq.
12193         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
12194         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
12195
12196 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12197
12198         PR middle-end/77484
12199         * predict.def (PRED_CALL): Set to 67.
12200
12201 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
12202
12203         * expr.c (store_field): In the bitfield case, if the value comes from
12204         a function call and is of an aggregate type returned in registers, do
12205         not modify the field mode; extract the value in all cases if the mode
12206         is BLKmode and the size is not larger than a word.
12207
12208 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
12209
12210         PR target/71017
12211         * config/i386/cpuid.h: Fix undefined behavior.
12212
12213 2017-01-04  Jeff Law  <law@redhat.com>
12214
12215         PR tree-optimization/79007
12216         PR tree-optimization/67955
12217         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
12218         conservative for pt.null when flag_non_call_exceptions is on.
12219
12220 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
12221
12222         PR translation/79019
12223         PR translation/79020
12224         * params.def (PARAM_INLINE_MIN_SPEEDUP,
12225         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
12226         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
12227         in descriptions.
12228         * config/avr/avr.opt (maccumulate-args): Likewise.
12229         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
12230         * common.opt (freport-bug): Likewise.
12231         * cif-code.def (CIF_FINAL_ERROR): Likewise.
12232         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
12233         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
12234         translatable string.
12235         * config/i386/i386.c (function_value_32): Likewise.
12236         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
12237         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
12238         Likewise.
12239         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
12240         * common/config/msp430/msp430-common.c (msp430_handle_option):
12241         Likewise.
12242         * symtab.c (symtab_node::verify_base): Likewise.
12243         * opts.c (set_debug_level): Likewise.
12244         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
12245         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12246         missing whitespace to translatable strings.
12247         * config/avr/avr.md (bswapsi2): Fix typo in comment.
12248         * config/sh/superh.h: Likewise.
12249         * config/i386/xopintrin.h: Likewise.
12250         * config/i386/znver1.md: Likewise.
12251         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
12252         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
12253         * double-int.h (struct double_int): Likewise.
12254         * double-int.c (div_and_round_double): Likewise.
12255         * wide-int.cc: Likewise.
12256         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12257         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
12258         * cfgcleanup.c (crossjumps_occured): Renamed to ...
12259         (crossjumps_occurred): ... this.
12260         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
12261         Adjust all uses.
12262
12263         PR tree-optimization/78899
12264         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
12265         returning bool return struct loop *, NULL for failure and the new
12266         loop on success.
12267         (versionable_outer_loop_p): Don't version outer loop if it has
12268         dont_vectorized bit set.
12269         (tree_if_conversion): When versioning outer loop, ensure
12270         tree_if_conversion is performed also on the inner loop of the
12271         non-vectorizable outer loop copy.
12272         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
12273         LOOP_VECTORIZED in inner loop of the scalar outer loop and
12274         prevent vectorization of it.
12275         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
12276         the outer loop vectorization of the non-scalar version is attempted
12277         before vectorization of the inner loop in scalar version.  If
12278         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
12279         vectorization of its inner loop.
12280         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
12281         has 2 inner loops, rename also on edges from bb whose single pred
12282         is outer_loop->header.  Fix typo in function comment.
12283
12284 2017-01-09  Martin Sebor  <msebor@redhat.com>
12285
12286         PR bootstrap/79033
12287         * asan.c (asan_emit_stack_protection): Increase local buffer size
12288         to avoid snprintf truncation warning.
12289
12290 2017-01-09  Andrew Pinski  <apinski@cavium.com>
12291
12292         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
12293         to reference thunderx2t99 for the tuning structure
12294         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
12295         Rename to ...
12296         (thunderx2t99_extra_costs): This.
12297         * config/aarch64/aarch64-tune.md: Regenerate.
12298         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
12299         (vulcan_addrcost_table): This.
12300         (vulcan_regmove_cost): Rename to ...
12301         (thunderx2t99_regmove_cost): This.
12302         (vulcan_vector_cost): Rename to ...
12303         (thunderx2t99_vector_cost): this.
12304         (vulcan_branch_cost): Rename to ...
12305         (thunderx2t99_branch_cost): This.
12306         (vulcan_tunings): Rename to ...
12307         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
12308         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
12309
12310 2017-01-09  Martin Jambor  <mjambor@suse.cz>
12311
12312         PR ipa/78365
12313         PR ipa/78599
12314         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
12315         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
12316         (propagate_vr_accross_jump_function): Use the above function for all
12317         value range computations for pass-through jump functions and type
12318         converasion from explicit value range values.
12319         (ipcp_propagate_stage): Do not attempt to deduce types of formal
12320         parameters from TYPE_ARG_TYPES.
12321         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
12322         (ipa_write_node_info): Stream type of the actual argument.
12323         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
12324
12325 2017-01-09  Martin Liska  <mliska@suse.cz>
12326
12327         PR pch/78970
12328         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
12329         (lookup_compiler): Do not show error message with have_E.
12330
12331 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
12332
12333         PR tree-optimization/78938
12334         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
12335         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
12336         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
12337         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
12338         fixes.
12339
12340 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12341
12342         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
12343         is const0_rtx.
12344
12345 2017-01-09  Richard Biener  <rguenther@suse.de>
12346
12347         PR tree-optimization/78997
12348         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
12349         name condition properly.
12350
12351 2017-01-09  Richard Biener  <rguenther@suse.de>
12352
12353         PR debug/79000
12354         * dwarf2out.c (is_cxx): New overload with context.
12355         (is_naming_typedef_decl): Use it.
12356
12357 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12358
12359         * invoke.texi (Option Summary): Correct spacing in option lists
12360         and add line breaks to fix over-long lines.
12361
12362 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12363
12364         PR middle-end/17660
12365
12366         * extend.texi (Common Variable Attributes): Add xref to GCC
12367         Internals manual to explain mode attribute keywords.
12368
12369 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
12370
12371         PR other/16519
12372         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
12373         and Preprocessor Options.
12374         (Options for Linking): Document -pthread here....
12375         (RS/6000 and PowerPC Options): ...not here.
12376         (Solaris 2 Options): ...or here.
12377         * doc/cppopts.texi: Document -pthread.
12378
12379 2017-01-08  Martin Sebor  <msebor@redhat.com>
12380
12381         PR middle-end/77708
12382         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
12383         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
12384         New member functions.
12385         (format_directive): Used them.
12386         (add_bytes): Same.
12387         (pass_sprintf_length::handle_gimple_call): Same.
12388         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
12389         to avoid truncation for any argument.
12390         (extract_affine_mul): Same.
12391         * tree.c (get_file_function_name): Same.
12392
12393 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12394
12395         PR middle-end/77484
12396         * predict.def (PRED_INDIR_CALL): Set to 86.
12397
12398 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12399
12400         PR preprocessor/54124
12401         * doc/cppopts.texi: Reformat -d subtable to list the full name
12402         of the options.  Add cross-reference to the docs for the general
12403         compiler -d options.
12404         * doc/invoke.texi (Developer Options): Add cross-reference to the
12405         preprocessor-specific -d option documentation.
12406
12407 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12408
12409         PR preprocessor/13498
12410         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
12411         redudant material, and reflect new command-line options.
12412         (System Headers): Likewise.
12413
12414 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12415
12416         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
12417         -isystem, and -idirafter.  Copy-edit.
12418         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
12419         default for -ftrack-macro-expansion.  Delete obsolete and
12420         badly-formatted implementation details about -fdebug-cpp output.
12421         * doc/cppwarnopts.texi: Copy-edit.
12422
12423 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
12424
12425         PR c++/72803
12426         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
12427         that the transition from a max line width >= 1<<10 to narrower
12428         lines works correctly.
12429
12430 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
12431
12432         * doc/options.texi (PerFunction): New.
12433         * opt-functions.awk (switch_flags): Map both Optimization and
12434         PerFunction to CL_OPTIMIZATION.
12435         * opth-gen.awk: Test for PerFunction flag along with
12436         Optimization.
12437         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
12438         it only when the latter is present.  Skip those that don't in
12439         the hash function generator.
12440         * common.opt (fvar-tracking): Mark as PerFunction instead of
12441         Optimization.
12442         (fvar-tracking-assignments): Likewise.
12443         (fvar-tracking-assignments-toggle): Likewise.
12444         (fvar-tracking-uninit): Likewise.
12445
12446 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
12447
12448         PR translation/79018
12449         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
12450         the and store.
12451
12452 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
12453
12454         PR target/57583
12455         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
12456         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
12457         TARGET_LONG_JUMP_TABLE_OFFSETS.
12458         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
12459         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
12460         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
12461         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
12462         * config/m68k/m68k.md (tablejump expander): Likewise.
12463         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
12464         TARGET_LONG_JUMP_TABLE_OFFSETS.
12465         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
12466         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
12467
12468 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
12469             David Holsgrove <david.holsgrove@xilinx.com>
12470
12471         * common/config/microblaze/microblaze-common.c
12472         (TARGET_EXCEPT_UNWIND_INFO): Remove.
12473         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
12474         New prototype.
12475         * config/microblaze/microblaze.c (microblaze_must_save_register)
12476         (microblaze_expand_epilogue, microblaze_return_addr): Handle
12477         calls_eh_return.
12478         (microblaze_eh_return): New function.
12479         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
12480         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
12481         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
12482         * config/microblaze/microblaze.md (eh_return): New pattern.
12483
12484 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
12485
12486         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
12487         GCC_DIAGNOSTIC_STRINGIFY): Define.
12488
12489         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
12490
12491 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12492
12493         * config/arm/arm.md (<mcrr>): New.
12494         (<mrrc>): New.
12495         * config/arm/arm.c (arm_arch5te): New.
12496         (arm_option_override): Set arm_arch5te.
12497         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
12498         and mrrc2.
12499         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
12500         (arm_mcrr_qualifiers): ... this. New.
12501         (MRRC_QUALIFIERS): Define to...
12502         (arm_mrrc_qualifiers): ... this. New.
12503         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
12504         __arm_mrrc2): New.
12505         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
12506         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
12507         (MRRCI, mrrc, MRRC): New.
12508         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
12509         VUNSPEC_MRRC2): New.
12510
12511 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12512
12513         * config/arm/arm.md (<mcr>): New.
12514         (<mrc>): New.
12515         * config/arm/arm.c (arm_coproc_builtin_available): Add
12516         support for mcr, mrc, mcr2 and mrc2.
12517         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
12518         (arm_mcr_qualifiers): ... this. New.
12519         (MRC_QUALIFIERS): Define to ...
12520         (arm_mrc_qualifiers): ... this. New.
12521         (MCR_QUALIFIERS): Define to ...
12522         (arm_mcr_qualifiers): ... this. New.
12523         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
12524         __arm_mrc2): New.
12525         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
12526         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
12527         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
12528         VUNSPEC_MRC2): New.
12529
12530 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12531
12532         * config/arm/arm.md (*ldc): New.
12533         (*stc): New.
12534         (<ldc>): New.
12535         (<stc>): New.
12536         * config/arm/arm.c (arm_coproc_builtin_available): Add
12537         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
12538         (arm_coproc_ldc_stc_legitimate_address): New.
12539         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
12540         'qualifier_const_pointer'.
12541         (LDC_QUALIFIERS): Define to...
12542         (arm_ldc_qualifiers): ... this. New.
12543         (STC_QUALIFIERS): Define to...
12544         (arm_stc_qualifiers): ... this. New.
12545         * config/arm/arm-protos.h
12546         (arm_coproc_ldc_stc_legitimate_address): New.
12547         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
12548         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
12549         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
12550         stc2, stcl, stc2l): New.
12551         * config/arm/constraints.md (Uz): New.
12552         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
12553         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
12554         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
12555         VUNSPEC_STC2L): New.
12556
12557 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12558
12559         * config/arm/arm.md (<cdp>): New.
12560         * config/arm/arm.c (neon_const_bounds): Rename this ...
12561         (arm_const_bounds): ... this.
12562         (arm_coproc_builtin_available): New.
12563         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
12564         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
12565         (CDP_QUALIFIERS): Define to...
12566         (arm_cdp_qualifiers): ... this. New.
12567         (void_UP): Define.
12568         (arm_expand_builtin_args): Add case for 6 arguments.
12569         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
12570         (arm_const_bounds): ... this.
12571         (arm_coproc_builtin_available): New.
12572         * config/arm/arm_acle.h (__arm_cdp): New.
12573         (__arm_cdp2): New.
12574         * config/arm/arm_acle_builtins.def (cdp): New.
12575         (cdp2): New.
12576         * config/arm/iterators.md (CDPI,CDP,cdp): New.
12577         * config/arm/neon.md: Rename all 'neon_const_bounds' to
12578         'arm_const_bounds'.
12579         * config/arm/types.md (coproc): New.
12580         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
12581         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
12582         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
12583         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
12584
12585 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12586
12587         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
12588         (UBINOP_QUALIFIERS): New.
12589         (si_UP): Define.
12590         (acle_builtin_data): New. Change comment.
12591         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
12592         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
12593         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
12594         arm_acle_builtins.def.
12595         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
12596         (arm_init_acle_builtins): New.
12597         (CRC32_BUILTIN): Remove.
12598         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
12599         crc32cb, crc32ch and crc32cw.
12600         (arm_init_crc32_builtins): Remove.
12601         (arm_init_builtins): Use arm_init_acle_builtins rather
12602         than arm_init_crc32_builtins.
12603         (arm_expand_acle_builtin): New.
12604         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
12605         * config/arm/arm_acle_builtins.def: New.
12606
12607 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12608
12609         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
12610         (arm_builtin_datum): ... this.
12611         (arm_init_neon_builtin): Rename to ...
12612         (arm_init_builtin): ... this. Add a new parameters PREFIX
12613         and USE_SIG_IN_NAME.
12614         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
12615         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
12616         'arm_builtin_datum'.
12617         (arm_init_vfp_builtins): Likewise.
12618         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
12619         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
12620         (arm_expand_neon_args): Rename to ...
12621         (arm_expand_builtin_args): ... this. Rename builtin_arg
12622         enum values and differentiate between ARG_BUILTIN_MEMORY
12623         and ARG_BUILTIN_NEON_MEMORY.
12624         (arm_expand_neon_builtin_1): Rename to ...
12625         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
12626         values, arm_expand_builtin_args and add bool parameter NEON.
12627         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
12628         (arm_expand_vfp_builtin): Likewise.
12629         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
12630
12631 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
12632
12633         PR middle-end/77484
12634         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
12635         * predict.c (tree_estimate_probability_bb): Reverse direction of
12636         polymorphic call predictor.
12637
12638 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
12639
12640         * passes.c (execute_one_pass): Split out pass-skipping logic into...
12641         (determine_pass_name_match): ...this new function and...
12642         (should_skip_pass_p): ...this new function.
12643
12644 2017-01-06  Nathan Sidwell  <nathan@acm.org>
12645
12646         * ipa-visibility.c (function_and_variable_visibility): Reformat
12647         comments and long lines.  Remove extrneous if.
12648         * symtab.c (symtab_node::make_decl_local): Fix code format.
12649         (symtab_node::set_section_for_node): Fix comment typo.
12650
12651 2017-01-06  Martin Liska  <mliska@suse.cz>
12652
12653         PR bootstrap/79003
12654         * lra-constraints.c: Rename invariant to lra_invariant.
12655         * predict.c (set_even_probabilities): Initialize e to NULL.
12656
12657 2017-01-05  Martin Sebor  <msebor@redhat.com>
12658
12659         PR tree-optimization/78910
12660         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
12661         (format_integer): Correct off-by-one error in the handling
12662         of precision with negative numbers in signed conversions..
12663
12664 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12665
12666         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
12667
12668 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
12669
12670         PR tree-optimization/71016
12671         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
12672         factor_out_conditional_conversion.  Formatting fix.
12673         (factor_out_conditional_conversion): Add cond_stmt argument.
12674         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
12675         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
12676         Formatting fix.
12677
12678 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
12679
12680         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
12681         read-rtl-function.o, and selftest-rtl.o.
12682         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
12683         (selftest::aarch64_test_loading_full_dump): New function.
12684         (selftest::aarch64_run_selftests): New function.
12685         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
12686         selftest::aarch64_run_selftests.
12687         * config/i386/i386.c
12688         (selftest::ix86_test_loading_dump_fragment_1): New function.
12689         (selftest::ix86_test_loading_call_insn): New function.
12690         (selftest::ix86_test_loading_full_dump): New function.
12691         (selftest::ix86_test_loading_unspec): New function.
12692         (selftest::ix86_run_selftests): Call the new functions.
12693         * emit-rtl.c (maybe_set_max_label_num): New function.
12694         * emit-rtl.h (maybe_set_max_label_num): New decl.
12695         * function.c (instantiate_decls): Guard call to
12696         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
12697         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
12698         "static".
12699         * gensupport.c (gen_reader::gen_reader): Pass "false"
12700         for new "compact" param of rtx_reader.
12701         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
12702         rather than an empty string for NULL strings.
12703         * read-md.c: Potentially include config.h rather than bconfig.h.
12704         Wrap include of errors.h with #ifdef GENERATOR_FILE.
12705         (have_error): New global, copied from errors.c.
12706         (md_reader::read_name): Rename to...
12707         (md_reader::read_name_1): ...this, adding "out_loc" param,
12708         and converting "missing name or number" to returning false, rather
12709         than failing.
12710         (md_reader::read_name): Reimplement in terms of read_name_1.
12711         (md_reader::read_name_or_nil): New function.
12712         (md_reader::read_string): Handle "(nil)" by returning NULL.
12713         (md_reader::md_reader): Add new param "compact".
12714         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
12715         (md_reader::read_file): New method.
12716         * read-md.h (md_reader::md_reader): Add new param "compact".
12717         (md_reader::read_file): New method.
12718         (md_reader::is_compact): New accessor.
12719         (md_reader::read_name): Convert return type from void to file_location.
12720         (md_reader::read_name_or_nil): New decl.
12721         (md_reader::read_name_1): New decl.
12722         (md_reader::m_compact): New field.
12723         (noop_reader::noop_reader): Pass "false" for new "compact" param
12724         of rtx_reader.
12725         (rtx_reader::rtx_reader): Add new "compact" param.
12726         (rtx_reader::read_rtx_operand): Make virtual and convert return
12727         type from void to rtx.
12728         (rtx_reader::read_until): New decl.
12729         (rtx_reader::handle_any_trailing_information): New virtual function.
12730         (rtx_reader::postprocess): New virtual function.
12731         (rtx_reader::finalize_string): New virtual function.
12732         (rtx_reader::m_in_call_function_usage): New field.
12733         (rtx_reader::m_reuse_rtx_by_id): New field.
12734         * read-rtl-function.c: New file.
12735         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
12736         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
12737         (selftest::verify_three_block_rtl_cfg): New decl.
12738         * read-rtl-function.h: New file.
12739         * read-rtl.c: Potentially include config.h rather than bconfig.h.
12740         For host, include function.h, memmodel.h, and emit-rtl.h.
12741         (one_time_initialization): New function.
12742         (struct compact_insn_name): New struct.
12743         (compact_insn_names): New array.
12744         (find_code): Handle insn codes in compact dumps.
12745         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
12746         (bind_subst_iter_and_attr): Likewise.
12747         (add_condition_to_string): Likewise.
12748         (add_condition_to_rtx): Likewise.
12749         (apply_attribute_uses): Likewise.
12750         (add_current_iterators): Likewise.
12751         (apply_iterators): Likewise.
12752         (initialize_iterators): Guard usage of apply_subst_iterator with
12753         #ifdef GENERATOR_FILE.
12754         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
12755         (md_reader::read_mapping): Likewise.
12756         (add_define_attr_for_define_subst): Likewise.
12757         (add_define_subst_attr): Likewise.
12758         (read_subst_mapping): Likewise.
12759         (check_code_iterator): Likewise.
12760         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
12761         logic to...
12762         (one_time_initialization): New function.
12763         (rtx_reader::read_until): New method.
12764         (read_flags): New function.
12765         (parse_reg_note_name): New function.
12766         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
12767         Handle reuse_rtx ids.
12768         Wrap iterator lookup within #ifdef GENERATOR_FILE.
12769         Add parsing support for RTL dumps, mirroring the special-cases in
12770         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
12771         values, and calling handle_any_trailing_information.
12772         (rtx_reader::read_rtx_operand): Convert return type from void
12773         to rtx, returning return_rtx.  Handle case 'e'.  Call
12774         finalize_string on XSTR and XTMPL fields.
12775         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
12776          "(nil)" values were omitted.  Call the postprocess vfunc on the
12777         return_rtx.
12778         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
12779         class ctor.  Initialize m_in_call_function_usage.  Call
12780         one_time_initialization.
12781         * rtl-tests.c (selftest::test_uncond_jump): Call
12782         set_new_first_and_last_insn.
12783         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
12784         * selftest-rtl.c: New file.
12785         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
12786         (selftest::get_insn_by_uid): New decl.
12787         * selftest-run-tests.c (selftest::run_tests): Call
12788         read_rtl_function_c_tests.
12789         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
12790         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
12791         dumps.
12792
12793 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
12794
12795         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
12796         operands in a special way.  Assert that pos+len <= mode precision.
12797
12798 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
12799
12800         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
12801         3 argument Alias with unlimited for the negative form.
12802         (fno-vect-cost-model): Removed.
12803
12804 2017-01-05  Martin Liska  <mliska@suse.cz>
12805
12806         * hsa-gen.c (gen_hsa_divmod): New function.
12807         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
12808
12809 2017-01-05  Martin Liska  <mliska@suse.cz>
12810
12811         PR pch/78970
12812         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
12813         header.
12814
12815 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12816
12817         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
12818         small constant length operands.
12819
12820 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12821
12822         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
12823         between loop iterations.
12824
12825 2017-01-05  Martin Liska  <mliska@suse.cz>
12826
12827         PR sanitizer/78815
12828         * gimplify.c (gimplify_decl_expr): Compare to
12829         asan_poisoned_variables instread of checking flags.
12830         (gimplify_target_expr): Likewise.
12831         (gimplify_expr): Likewise.
12832         (gimplify_function_tree): Conditionally initialize
12833         asan_poisoned_variables.
12834
12835 2017-01-04  Jeff Law  <law@redhat.com>
12836
12837         PR tree-optimizatin/78812
12838         * rtl.h (contains_mem_rtx_p): Prototype.
12839         * ifcvt.c (containts_mem_rtx_p): Move from here to...
12840         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
12841         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
12842         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
12843         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
12844
12845 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12846
12847         * input.c (assert_char_at_range): Default-initialize actual_range.
12848
12849 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12850
12851         * df-scan.c (df_ref_create_structure): Make regno unsigned,
12852         to match the caller.
12853
12854 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12855
12856         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
12857         insns after final jump in test to emit dummy move.
12858
12859 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12860
12861         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
12862         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
12863
12864 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
12865
12866         * multiple_target.c (create_dispatcher_calls): Init e_next.
12867         * tree-ssa-loop-split.c (split_loop): Init border.
12868         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
12869         scalar_type.
12870
12871 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12872
12873         PR target/71977
12874         PR target/70568
12875         PR target/78823
12876         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
12877         (altivec_register_operand): Do not return true if the operand
12878         contains a SUBREG mixing SImode and SFmode.
12879         (vsx_register_operand): Likewise.
12880         (vsx_reg_sfsubreg_ok): New predicate.
12881         (vfloat_operand): Do not return true if the operand contains a
12882         SUBREG mixing SImode and SFmode.
12883         (vint_operand): Likewise.
12884         (vlogical_operand): Likewise.
12885         (gpc_reg_operand): Likewise.
12886         (int_reg_operand): Likewise.
12887         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
12888         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
12889         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
12890         SImode and SFmode.
12891         (rs6000_emit_move_si_sf_subreg): New helper function.
12892         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
12893         fixup SUBREGs involving SImode and SFmode.
12894         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
12895         numbers for the new peephole2 optimization.
12896         (peephole2 for SFmode unions): New peephole2 to optimize cases in
12897         the GLIBC math library that do AND/IOR/XOR operations on single
12898         precision floating point.
12899         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
12900         target macros to say whether we need to avoid SUBREGs mixing
12901         SImode and SFmode.
12902         (TARGET_ALLOW_SF_SUBREG): Likewise.
12903         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
12904         (UNSPEC_SI_FROM_SF): Likewise.
12905         (iorxor): Change spacing.
12906         (and_ior_xor): New iterator for AND, IOR, and XOR.
12907         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
12908         (movdi_from_sf_zero_ext): Likewise.
12909         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
12910         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
12911         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
12912         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
12913         (fms<mode>4): Likewise.
12914         (fnma<mode>4): Likewise.
12915         (fnms<mode>4): Likewise.
12916         (nfma<mode>4): Likewise.
12917         (nfms<mode>4): Likewise.
12918
12919 2017-01-04  Marek Polacek  <polacek@redhat.com>
12920
12921         PR c++/64767
12922         * doc/invoke.texi: Document -Wpointer-compare.
12923
12924 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12925
12926         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
12927         RejectNegative.
12928
12929         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
12930         descriptions for -gdwarf-5 and emit them as uleb128 instead of
12931         2-byte data.
12932
12933 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12934
12935         PR target/78056
12936         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
12937         documentation of the powerpc_popcntb_ok attribute.
12938         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12939         code to issue warning messages if a requested CPU configuration is
12940         not supported by the binary (assembler and loader) toolchain.
12941         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
12942         made to define a built-in function that has been disabled.
12943         (paired_init_builtins): Add assertion to prevent ICE if attempt is
12944         made to define a built-in function that has been disabled.
12945         (altivec_init_builtins): Add comment explaining why definition
12946         of the DST built-in functions is not preceded by an assertion
12947         check.  Add assertions to prevent ICE if attempts are made to
12948         define an altivec predicate or an abs* built-in function that has
12949         been disabled.
12950         (htm_init_builtins): Add comment explaining why definition of the
12951         htm built-in functions is not preceded by an assertion check.
12952
12953 2017-01-04  Jeff Law  <law@redhat.com>
12954
12955         PR tree-optimizatin/67955
12956         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
12957         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
12958         the points-to solution does not include pt_null.  Use DECL_PT_UID
12959         unconditionally.
12960
12961 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
12962
12963         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
12964         Use gen_int_mode instead of gen_lopwart for const_int operands.
12965
12966 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12967
12968         PR tree-optimization/71563
12969         * match.pd: Simplify X << Y into X if Y is known to be 0 or
12970         out of range value - has low bits known to be zero.
12971
12972 2017-01-04  Alan Modra  <amodra@gmail.com>
12973
12974         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
12975         * configure: Regenerate.
12976         * config.in: Regenerate.
12977
12978 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
12979
12980         PR bootstrap/77569
12981         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
12982         a substring of the message, but strcmp with the whole message.  Ifdef
12983         ENABLE_NLS, translate the message first using dgettext.
12984
12985 2017-01-03  Jeff Law  <law@redhat.com>
12986
12987         PR tree-optimizatin/78856
12988         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
12989         (mark_threaded_blocks): Remove code to truncate thread paths that
12990         cross multiple loop headers.  Instead invalidate the cached loop
12991         iteration information and handle case of a thread path walking
12992         into an irreducible region.
12993
12994 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12995
12996         PR target/78900
12997         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
12998         assertions.  Add support for doing the signbit if the IEEE 128-bit
12999         floating point value is in a GPR.
13000         * config/rs6000/rs6000.md (Fsignbit): Delete.
13001         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
13002         Update the length attribute if the value is in a GPR.
13003         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
13004         the sign or zero extension instruction, since the value is always 0/1.
13005         (signbit<mode>2_dm2): Delete using <Fsignbit>.
13006
13007         PR target/78953
13008         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
13009         extracting SImode to a GPR register so that we can generate a
13010         store, limit the vector to be in a traditional Altivec register
13011         for the vextuwrx instruction.
13012
13013 2017-01-03  Ian Lance Taylor  <iant@google.com>
13014
13015         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
13016
13017 2017-01-03  Martin Sebor  <msebor@redhat.com>
13018
13019         PR tree-optimization/78696
13020         * gimple-ssa-sprintf.c (format_floating): Correct handling of
13021         precision.  Use MPFR for %f for greater fidelity.  Correct handling
13022         of %g.
13023         (pass_sprintf_length::compute_format_length): Set width and precision
13024         specified by asrerisk to void_node for vararg functions.
13025         (try_substitute_return_value): Adjust dump output.
13026
13027 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
13028
13029         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
13030
13031 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13032
13033         * doc/invoke.texi (SPARC options): Document -mlra as the default.
13034         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
13035         -mlra/-mno-lra was passed to the compiler.
13036
13037 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
13038
13039         PR rtl-optimization/65618
13040         * emit-rtl.c (try_split): Move initialization of "before" and
13041         "after" to just before the call to emit_insn_after_setloc.
13042
13043 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
13044
13045         * doc/md.texi (Standard Names): Remove reference to Java frontend.
13046
13047 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
13048
13049         * dwarf2out.c (gen_enumeration_type_die): When
13050         -gno-strict-dwarf, add a DW_AT_encoding attribute.
13051
13052 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
13053
13054         PR tree-optimization/78965
13055         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
13056         Change first argument from const call_info & to call_info &.  For %n
13057         set info.nowrite to false.
13058
13059         PR middle-end/78901
13060         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
13061         possibly throwing calls.
13062
13063         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
13064         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
13065         and fns handling, rather than in a separate case SSA_NAME.
13066
13067 2017-01-02  Jeff Law  <law@redhat.com>
13068
13069         * config/darwin-driver.c (darwin_driver_init): Const-correctness
13070         fixes for first_period and second_period variables.
13071
13072 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
13073
13074         PR target/78967
13075         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
13076         (*insvqi_1): New insn pattern.
13077         (*insvqi_1_mem_rex64): Ditto.
13078         (*insvqi_2): Ditto.
13079         (*insvqi_3): Rename from *insvqi.
13080
13081         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
13082
13083 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13084
13085         * doc/cfg.texi (Edges): Remove reference to Java.
13086         (Maintaining the CFG): Ditto.
13087
13088 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13089
13090         PR middle-end/77674
13091         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
13092         transparent aliases.
13093
13094 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
13095
13096         PR middle-end/77484
13097         * predict.def (PRED_CALL): Update hitrate.
13098         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
13099         * predict.c (tree_estimate_probability_bb): Split CALL predictor
13100         into direct/indirect/polymorphic variants.
13101
13102 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
13103
13104         Update copyright years.
13105
13106         * gcc.c (process_command): Update copyright notice dates.
13107         * gcov-dump.c (print_version): Ditto.
13108         * gcov.c (print_version): Ditto.
13109         * gcov-tool.c (print_version): Ditto.
13110         * gengtype.c (create_file): Ditto.
13111         * doc/cpp.texi: Bump @copying's copyright year.
13112         * doc/cppinternals.texi: Ditto.
13113         * doc/gcc.texi: Ditto.
13114         * doc/gccint.texi: Ditto.
13115         * doc/gcov.texi: Ditto.
13116         * doc/install.texi: Ditto.
13117         * doc/invoke.texi: Ditto.
13118 \f
13119 Copyright (C) 2017 Free Software Foundation, Inc.
13120
13121 Copying and distribution of this file, with or without modification,
13122 are permitted in any medium without royalty provided the copyright
13123 notice and this notice are preserved.