Fix wi::lshift
[official-gcc.git] / gcc / ChangeLog
blobf109a8cc5eff90560313e98cf8db8f0bc9cbdb4c
1 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
3         * wide-int.h (wi::lshift): Reject negative values for the fast path.
5 2019-07-10  Richard Biener  <rguenther@suse.de>
7         PR tree-optimization/91126
8         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9         native encoding offset for BYTES_BIG_ENDIAN.
10         (vn_reference_lookup_3): Likewise.
12 2019-07-10  Richard Biener  <rguenther@suse.de>
14         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
15         LHS whenever possible.
17 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
19         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20         from ...; work also on duplicated types.
21         (nonoverlapping_component_refs_since_match): ... here
22         (ncr_type_uid): Break out from ...
23         (ncr_compar): ... here; look for TYPE_UID of canonical type if
24         available.
25         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
26         the types and nonoverlapping_component_refs_p_1 to disambiguate.
28 2019-07-09  Martin Sebor  <msebor@redhat.com>
30         PR tree-optimization/90989
31         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
32         optimization to just single character stores.
34 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
36         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
37         Swap operands only once.
39 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
41         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
42         for both call instructions.
44 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
46         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
47         rather than GET_MODE_BITSIZE to better handle partial integer modes.
49 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
51         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
52         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
53         function from rs6000-logue.c back to rs6000.c.
54         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
56 2019-07-09  Martin Sebor  <msebor@redhat.com>
58         PR c++/61339
59         * auto-profile.c: Change class-key of PODs to struct and others
60         to class.
61         * basic-block.h: Same.
62         * bitmap.c (bitmap_alloc): Same.
63         * bitmap.h: Same.
64         * builtins.c (expand_builtin_prefetch): Same.
65         (expand_builtin_interclass_mathfn): Same.
66         (expand_builtin_strlen): Same.
67         (expand_builtin_mempcpy_args): Same.
68         (expand_cmpstr): Same.
69         (expand_builtin___clear_cache): Same.
70         (expand_ifn_atomic_bit_test_and): Same.
71         (expand_builtin_thread_pointer): Same.
72         (expand_builtin_set_thread_pointer): Same.
73         * caller-save.c (setup_save_areas): Same.
74         (replace_reg_with_saved_mem): Same.
75         (insert_restore): Same.
76         (insert_save): Same.
77         (add_used_regs): Same.
78         * cfg.c (get_bb_copy): Same.
79         (set_loop_copy): Same.
80         * cfg.h: Same.
81         * cfganal.h: Same.
82         * cfgexpand.c (alloc_stack_frame_space): Same.
83         (add_stack_var): Same.
84         (add_stack_var_conflict): Same.
85         (add_scope_conflicts_1): Same.
86         (update_alias_info_with_stack_vars): Same.
87         (expand_used_vars): Same.
88         * cfghooks.c (redirect_edge_and_branch_force): Same.
89         (delete_basic_block): Same.
90         (split_edge): Same.
91         (make_forwarder_block): Same.
92         (force_nonfallthru): Same.
93         (duplicate_block): Same.
94         (lv_flush_pending_stmts): Same.
95         * cfghooks.h: Same.
96         * cfgloop.c (flow_loops_cfg_dump): Same.
97         (flow_loop_nested_p): Same.
98         (superloop_at_depth): Same.
99         (get_loop_latch_edges): Same.
100         (flow_loop_dump): Same.
101         (flow_loops_dump): Same.
102         (flow_loops_free): Same.
103         (flow_loop_nodes_find): Same.
104         (establish_preds): Same.
105         (flow_loop_tree_node_add): Same.
106         (flow_loop_tree_node_remove): Same.
107         (flow_loops_find): Same.
108         (find_subloop_latch_edge_by_profile): Same.
109         (find_subloop_latch_edge_by_ivs): Same.
110         (mfb_redirect_edges_in_set): Same.
111         (form_subloop): Same.
112         (merge_latch_edges): Same.
113         (disambiguate_multiple_latches): Same.
114         (disambiguate_loops_with_multiple_latches): Same.
115         (flow_bb_inside_loop_p): Same.
116         (glb_enum_p): Same.
117         (get_loop_body_with_size): Same.
118         (get_loop_body): Same.
119         (fill_sons_in_loop): Same.
120         (get_loop_body_in_dom_order): Same.
121         (get_loop_body_in_custom_order): Same.
122         (release_recorded_exits): Same.
123         (get_loop_exit_edges): Same.
124         (num_loop_branches): Same.
125         (remove_bb_from_loops): Same.
126         (find_common_loop): Same.
127         (delete_loop): Same.
128         (cancel_loop): Same.
129         (verify_loop_structure): Same.
130         (loop_preheader_edge): Same.
131         (loop_exit_edge_p): Same.
132         (single_exit): Same.
133         (loop_exits_to_bb_p): Same.
134         (loop_exits_from_bb_p): Same.
135         (get_loop_location): Same.
136         (record_niter_bound): Same.
137         (get_estimated_loop_iterations_int): Same.
138         (max_stmt_executions_int): Same.
139         (likely_max_stmt_executions_int): Same.
140         (get_estimated_loop_iterations): Same.
141         (get_max_loop_iterations): Same.
142         (get_max_loop_iterations_int): Same.
143         (get_likely_max_loop_iterations): Same.
144         * cfgloop.h (simple_loop_desc): Same.
145         (get_loop): Same.
146         (loop_depth): Same.
147         (loop_outer): Same.
148         (loop_iterator::next): Same.
149         (loop_outermost): Same.
150         * cfgloopanal.c (mark_irreducible_loops): Same.
151         (num_loop_insns): Same.
152         (average_num_loop_insns): Same.
153         (expected_loop_iterations_unbounded): Same.
154         (expected_loop_iterations): Same.
155         (mark_loop_exit_edges): Same.
156         (single_likely_exit): Same.
157         * cfgloopmanip.c (fix_bb_placement): Same.
158         (fix_bb_placements): Same.
159         (remove_path): Same.
160         (place_new_loop): Same.
161         (add_loop): Same.
162         (scale_loop_frequencies): Same.
163         (scale_loop_profile): Same.
164         (create_empty_if_region_on_edge): Same.
165         (create_empty_loop_on_edge): Same.
166         (loopify): Same.
167         (unloop): Same.
168         (fix_loop_placements): Same.
169         (copy_loop_info): Same.
170         (duplicate_loop): Same.
171         (duplicate_subloops): Same.
172         (loop_redirect_edge): Same.
173         (can_duplicate_loop_p): Same.
174         (duplicate_loop_to_header_edge): Same.
175         (mfb_keep_just): Same.
176         (has_preds_from_loop): Same.
177         (create_preheader): Same.
178         (create_preheaders): Same.
179         (lv_adjust_loop_entry_edge): Same.
180         (loop_version): Same.
181         * cfgloopmanip.h: Same.
182         * cgraph.h: Same.
183         * cgraphbuild.c: Same.
184         * combine.c (make_extraction): Same.
185         * config/i386/i386-features.c: Same.
186         * config/i386/i386-features.h: Same.
187         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
188         (ix86_emit_outlined_ms2sysv_restore): Same.
189         (ix86_noce_conversion_profitable_p): Same.
190         (ix86_init_cost): Same.
191         (ix86_simd_clone_usable): Same.
192         * configure.ac: Same.
193         * coretypes.h: Same.
194         * data-streamer-in.c (string_for_index): Same.
195         (streamer_read_indexed_string): Same.
196         (streamer_read_string): Same.
197         (bp_unpack_indexed_string): Same.
198         (bp_unpack_string): Same.
199         (streamer_read_uhwi): Same.
200         (streamer_read_hwi): Same.
201         (streamer_read_gcov_count): Same.
202         (streamer_read_wide_int): Same.
203         * data-streamer.h (streamer_write_bitpack): Same.
204         (bp_unpack_value): Same.
205         (streamer_write_char_stream): Same.
206         (streamer_write_hwi_in_range): Same.
207         (streamer_write_record_start): Same.
208         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
209         (add_cross_iteration_register_deps): Same.
210         (build_intra_loop_deps): Same.
211         * df-core.c (df_analyze): Same.
212         (loop_post_order_compute): Same.
213         (loop_inverted_post_order_compute): Same.
214         * df-problems.c (df_rd_alloc): Same.
215         (df_rd_simulate_one_insn): Same.
216         (df_rd_local_compute): Same.
217         (df_rd_init_solution): Same.
218         (df_rd_confluence_n): Same.
219         (df_rd_transfer_function): Same.
220         (df_rd_free): Same.
221         (df_rd_dump_defs_set): Same.
222         (df_rd_top_dump): Same.
223         (df_lr_alloc): Same.
224         (df_lr_reset): Same.
225         (df_lr_local_compute): Same.
226         (df_lr_init): Same.
227         (df_lr_confluence_n): Same.
228         (df_lr_free): Same.
229         (df_lr_top_dump): Same.
230         (df_lr_verify_transfer_functions): Same.
231         (df_live_alloc): Same.
232         (df_live_reset): Same.
233         (df_live_init): Same.
234         (df_live_confluence_n): Same.
235         (df_live_finalize): Same.
236         (df_live_free): Same.
237         (df_live_top_dump): Same.
238         (df_live_verify_transfer_functions): Same.
239         (df_mir_alloc): Same.
240         (df_mir_reset): Same.
241         (df_mir_init): Same.
242         (df_mir_confluence_n): Same.
243         (df_mir_free): Same.
244         (df_mir_top_dump): Same.
245         (df_word_lr_alloc): Same.
246         (df_word_lr_reset): Same.
247         (df_word_lr_init): Same.
248         (df_word_lr_confluence_n): Same.
249         (df_word_lr_free): Same.
250         (df_word_lr_top_dump): Same.
251         (df_md_alloc): Same.
252         (df_md_simulate_one_insn): Same.
253         (df_md_reset): Same.
254         (df_md_init): Same.
255         (df_md_free): Same.
256         (df_md_top_dump): Same.
257         * df-scan.c (df_insn_delete): Same.
258         (df_insn_rescan): Same.
259         (df_notes_rescan): Same.
260         (df_sort_and_compress_mws): Same.
261         (df_install_mws): Same.
262         (df_refs_add_to_chains): Same.
263         (df_ref_create_structure): Same.
264         (df_ref_record): Same.
265         (df_def_record_1): Same.
266         (df_find_hard_reg_defs): Same.
267         (df_uses_record): Same.
268         (df_get_conditional_uses): Same.
269         (df_get_call_refs): Same.
270         (df_recompute_luids): Same.
271         (df_get_entry_block_def_set): Same.
272         (df_entry_block_defs_collect): Same.
273         (df_get_exit_block_use_set): Same.
274         (df_exit_block_uses_collect): Same.
275         (df_mws_verify): Same.
276         (df_bb_verify): Same.
277         * df.h (df_scan_get_bb_info): Same.
278         * doc/tm.texi: Same.
279         * dse.c (record_store): Same.
280         * dumpfile.h: Same.
281         * emit-rtl.c (const_fixed_hasher::equal): Same.
282         (set_mem_attributes_minus_bitpos): Same.
283         (change_address): Same.
284         (adjust_address_1): Same.
285         (offset_address): Same.
286         * emit-rtl.h: Same.
287         * except.c (dw2_build_landing_pads): Same.
288         (sjlj_emit_dispatch_table): Same.
289         * explow.c (allocate_dynamic_stack_space): Same.
290         (emit_stack_probe): Same.
291         (probe_stack_range): Same.
292         * expmed.c (store_bit_field_using_insv): Same.
293         (store_bit_field_1): Same.
294         (store_integral_bit_field): Same.
295         (extract_bit_field_using_extv): Same.
296         (extract_bit_field_1): Same.
297         (emit_cstore): Same.
298         * expr.c (emit_block_move_via_cpymem): Same.
299         (expand_cmpstrn_or_cmpmem): Same.
300         (set_storage_via_setmem): Same.
301         (emit_single_push_insn_1): Same.
302         (expand_assignment): Same.
303         (store_constructor): Same.
304         (expand_expr_real_2): Same.
305         (expand_expr_real_1): Same.
306         (try_casesi): Same.
307         * flags.h: Same.
308         * function.c (try_fit_stack_local): Same.
309         (assign_stack_local_1): Same.
310         (assign_stack_local): Same.
311         (cut_slot_from_list): Same.
312         (insert_slot_to_list): Same.
313         (max_slot_level): Same.
314         (move_slot_to_level): Same.
315         (temp_address_hasher::equal): Same.
316         (remove_unused_temp_slot_addresses): Same.
317         (assign_temp): Same.
318         (combine_temp_slots): Same.
319         (update_temp_slot_address): Same.
320         (preserve_temp_slots): Same.
321         * function.h: Same.
322         * fwprop.c: Same.
323         * gcc-rich-location.h: Same.
324         * gcov.c: Same.
325         * genattrtab.c (check_attr_test): Same.
326         (check_attr_value): Same.
327         (convert_set_attr_alternative): Same.
328         (convert_set_attr): Same.
329         (check_defs): Same.
330         (copy_boolean): Same.
331         (get_attr_value): Same.
332         (expand_delays): Same.
333         (make_length_attrs): Same.
334         (min_fn): Same.
335         (make_alternative_compare): Same.
336         (simplify_test_exp): Same.
337         (tests_attr_p): Same.
338         (get_attr_order): Same.
339         (clear_struct_flag): Same.
340         (gen_attr): Same.
341         (compares_alternatives_p): Same.
342         (gen_insn): Same.
343         (gen_delay): Same.
344         (find_attrs_to_cache): Same.
345         (write_test_expr): Same.
346         (walk_attr_value): Same.
347         (write_attr_get): Same.
348         (eliminate_known_true): Same.
349         (write_insn_cases): Same.
350         (write_attr_case): Same.
351         (write_attr_valueq): Same.
352         (write_attr_value): Same.
353         (write_dummy_eligible_delay): Same.
354         (next_comma_elt): Same.
355         (find_attr): Same.
356         (make_internal_attr): Same.
357         (copy_rtx_unchanging): Same.
358         (gen_insn_reserv): Same.
359         (check_tune_attr): Same.
360         (make_automaton_attrs): Same.
361         (handle_arg): Same.
362         * genextract.c (gen_insn): Same.
363         (VEC_char_to_string): Same.
364         * genmatch.c (print_operand): Same.
365         (lower): Same.
366         (parser::parse_operation): Same.
367         (parser::parse_capture): Same.
368         (parser::parse_c_expr): Same.
369         (parser::parse_simplify): Same.
370         (main): Same.
371         * genoutput.c (output_operand_data): Same.
372         (output_get_insn_name): Same.
373         (compare_operands): Same.
374         (place_operands): Same.
375         (process_template): Same.
376         (validate_insn_alternatives): Same.
377         (validate_insn_operands): Same.
378         (gen_expand): Same.
379         (note_constraint): Same.
380         * genpreds.c (write_one_predicate_function): Same.
381         (add_constraint): Same.
382         (process_define_register_constraint): Same.
383         (write_lookup_constraint_1): Same.
384         (write_lookup_constraint_array): Same.
385         (write_insn_constraint_len): Same.
386         (write_reg_class_for_constraint_1): Same.
387         (write_constraint_satisfied_p_array): Same.
388         * genrecog.c (optimize_subroutine_group): Same.
389         * gensupport.c (process_define_predicate): Same.
390         (queue_pattern): Same.
391         (remove_from_queue): Same.
392         (process_rtx): Same.
393         (is_predicable): Same.
394         (change_subst_attribute): Same.
395         (subst_pattern_match): Same.
396         (alter_constraints): Same.
397         (alter_attrs_for_insn): Same.
398         (shift_output_template): Same.
399         (alter_output_for_subst_insn): Same.
400         (process_one_cond_exec): Same.
401         (subst_dup): Same.
402         (process_define_cond_exec): Same.
403         (mnemonic_htab_callback): Same.
404         (gen_mnemonic_attr): Same.
405         (read_md_rtx): Same.
406         * ggc-page.c: Same.
407         * gimple-loop-interchange.cc (dump_reduction): Same.
408         (dump_induction): Same.
409         (loop_cand::~loop_cand): Same.
410         (free_data_refs_with_aux): Same.
411         (tree_loop_interchange::interchange_loops): Same.
412         (tree_loop_interchange::map_inductions_to_loop): Same.
413         (tree_loop_interchange::move_code_to_inner_loop): Same.
414         (compute_access_stride): Same.
415         (compute_access_strides): Same.
416         (proper_loop_form_for_interchange): Same.
417         (tree_loop_interchange_compute_ddrs): Same.
418         (prune_datarefs_not_in_loop): Same.
419         (prepare_data_references): Same.
420         (pass_linterchange::execute): Same.
421         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
422         (unroll_jam_possible_p): Same.
423         (fuse_loops): Same.
424         (adjust_unroll_factor): Same.
425         (tree_loop_unroll_and_jam): Same.
426         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
427         (loop_versioning::expensive_stmt_p): Same.
428         (loop_versioning::version_for_unity): Same.
429         (loop_versioning::dump_inner_likelihood): Same.
430         (loop_versioning::find_per_loop_multiplication): Same.
431         (loop_versioning::analyze_term_using_scevs): Same.
432         (loop_versioning::record_address_fragment): Same.
433         (loop_versioning::analyze_expr): Same.
434         (loop_versioning::analyze_blocks): Same.
435         (loop_versioning::prune_conditions): Same.
436         (loop_versioning::merge_loop_info): Same.
437         (loop_versioning::add_loop_to_queue): Same.
438         (loop_versioning::decide_whether_loop_is_versionable): Same.
439         (loop_versioning::make_versioning_decisions): Same.
440         (loop_versioning::implement_versioning_decisions): Same.
441         * gimple-ssa-evrp-analyze.c
442         (evrp_range_analyzer::record_ranges_from_phis): Same.
443         * gimple-ssa-store-merging.c (split_store::split_store): Same.
444         (count_multiple_uses): Same.
445         (split_group): Same.
446         (imm_store_chain_info::output_merged_store): Same.
447         (pass_store_merging::process_store): Same.
448         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
449         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
450         (is_max): Same.
451         (alloca_call_type): Same.
452         (pass_walloca::execute): Same.
453         * gimple-streamer-in.c (input_phi): Same.
454         (input_gimple_stmt): Same.
455         * gimple-streamer.h: Same.
456         * godump.c (go_force_record_alignment): Same.
457         (go_format_type): Same.
458         (go_output_type): Same.
459         (go_output_fndecl): Same.
460         (go_output_typedef): Same.
461         (keyword_hash_init): Same.
462         (find_dummy_types): Same.
463         * graph.c (draw_cfg_nodes_no_loops): Same.
464         (draw_cfg_nodes_for_loop): Same.
465         * hard-reg-set.h (hard_reg_set_iter_next): Same.
466         * hsa-brig.c: Same.
467         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
468         * hsa-dump.c (dump_hsa_cfun): Same.
469         * hsa-gen.c (gen_function_def_parameters): Same.
470         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
471         * input.c (dump_line_table_statistics): Same.
472         (test_lexer): Same.
473         * input.h: Same.
474         * internal-fn.c (get_multi_vector_move): Same.
475         (expand_load_lanes_optab_fn): Same.
476         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
477         (expand_GOMP_SIMT_EXIT): Same.
478         (expand_GOMP_SIMT_LAST_LANE): Same.
479         (expand_GOMP_SIMT_ORDERED_PRED): Same.
480         (expand_GOMP_SIMT_VOTE_ANY): Same.
481         (expand_GOMP_SIMT_XCHG_BFLY): Same.
482         (expand_GOMP_SIMT_XCHG_IDX): Same.
483         (expand_addsub_overflow): Same.
484         (expand_neg_overflow): Same.
485         (expand_mul_overflow): Same.
486         (expand_call_mem_ref): Same.
487         (expand_mask_load_optab_fn): Same.
488         (expand_scatter_store_optab_fn): Same.
489         (expand_gather_load_optab_fn): Same.
490         * ipa-cp.c (ipa_get_parm_lattices): Same.
491         (print_all_lattices): Same.
492         (ignore_edge_p): Same.
493         (build_toporder_info): Same.
494         (free_toporder_info): Same.
495         (push_node_to_stack): Same.
496         (ipcp_lattice<valtype>::set_contains_variable): Same.
497         (set_agg_lats_to_bottom): Same.
498         (ipcp_bits_lattice::meet_with): Same.
499         (set_single_call_flag): Same.
500         (initialize_node_lattices): Same.
501         (ipa_get_jf_ancestor_result): Same.
502         (ipcp_verify_propagated_values): Same.
503         (propagate_scalar_across_jump_function): Same.
504         (propagate_context_across_jump_function): Same.
505         (propagate_bits_across_jump_function): Same.
506         (ipa_vr_operation_and_type_effects): Same.
507         (propagate_vr_across_jump_function): Same.
508         (set_check_aggs_by_ref): Same.
509         (set_chain_of_aglats_contains_variable): Same.
510         (merge_aggregate_lattices): Same.
511         (agg_pass_through_permissible_p): Same.
512         (propagate_aggs_across_jump_function): Same.
513         (call_passes_through_thunk_p): Same.
514         (propagate_constants_across_call): Same.
515         (devirtualization_time_bonus): Same.
516         (good_cloning_opportunity_p): Same.
517         (context_independent_aggregate_values): Same.
518         (gather_context_independent_values): Same.
519         (perform_estimation_of_a_value): Same.
520         (estimate_local_effects): Same.
521         (value_topo_info<valtype>::add_val): Same.
522         (add_all_node_vals_to_toposort): Same.
523         (value_topo_info<valtype>::propagate_effects): Same.
524         (ipcp_propagate_stage): Same.
525         (ipcp_discover_new_direct_edges): Same.
526         (same_node_or_its_all_contexts_clone_p): Same.
527         (cgraph_edge_brings_value_p): Same.
528         (gather_edges_for_value): Same.
529         (create_specialized_node): Same.
530         (find_more_scalar_values_for_callers_subset): Same.
531         (find_more_contexts_for_caller_subset): Same.
532         (copy_plats_to_inter): Same.
533         (intersect_aggregates_with_edge): Same.
534         (find_aggregate_values_for_callers_subset): Same.
535         (cgraph_edge_brings_all_agg_vals_for_node): Same.
536         (decide_about_value): Same.
537         (decide_whether_version_node): Same.
538         (spread_undeadness): Same.
539         (identify_dead_nodes): Same.
540         (ipcp_store_vr_results): Same.
541         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
542         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
543         (redirect_to_unreachable): Same.
544         (edge_set_predicate): Same.
545         (evaluate_conditions_for_known_args): Same.
546         (evaluate_properties_for_edge): Same.
547         (ipa_fn_summary_t::duplicate): Same.
548         (ipa_call_summary_t::duplicate): Same.
549         (dump_ipa_call_summary): Same.
550         (ipa_dump_fn_summary): Same.
551         (eliminated_by_inlining_prob): Same.
552         (set_cond_stmt_execution_predicate): Same.
553         (set_switch_stmt_execution_predicate): Same.
554         (compute_bb_predicates): Same.
555         (will_be_nonconstant_expr_predicate): Same.
556         (phi_result_unknown_predicate): Same.
557         (analyze_function_body): Same.
558         (compute_fn_summary): Same.
559         (estimate_edge_devirt_benefit): Same.
560         (estimate_edge_size_and_time): Same.
561         (estimate_calls_size_and_time): Same.
562         (estimate_node_size_and_time): Same.
563         (remap_edge_change_prob): Same.
564         (remap_edge_summaries): Same.
565         (ipa_merge_fn_summary_after_inlining): Same.
566         (ipa_fn_summary_generate): Same.
567         (inline_read_section): Same.
568         (ipa_fn_summary_read): Same.
569         (ipa_fn_summary_write): Same.
570         * ipa-fnsummary.h: Same.
571         * ipa-hsa.c (ipa_hsa_read_section): Same.
572         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
573         * ipa-icf.c (sem_function::param_used_p): Same.
574         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
575         * ipa-inline.c (edge_badness): Same.
576         (inline_small_functions): Same.
577         * ipa-polymorphic-call.c
578         (ipa_polymorphic_call_context::stream_out): Same.
579         * ipa-predicate.c (predicate::remap_after_duplication): Same.
580         (predicate::remap_after_inlining): Same.
581         (predicate::stream_out): Same.
582         * ipa-predicate.h: Same.
583         * ipa-profile.c (ipa_profile_read_summary): Same.
584         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
585         (count_formal_params): Same.
586         (ipa_dump_param): Same.
587         (ipa_alloc_node_params): Same.
588         (ipa_print_node_jump_functions_for_edge): Same.
589         (ipa_print_node_jump_functions): Same.
590         (ipa_load_from_parm_agg): Same.
591         (get_ancestor_addr_info): Same.
592         (ipa_compute_jump_functions_for_edge): Same.
593         (ipa_analyze_virtual_call_uses): Same.
594         (ipa_analyze_stmt_uses): Same.
595         (ipa_analyze_params_uses_in_bb): Same.
596         (update_jump_functions_after_inlining): Same.
597         (try_decrement_rdesc_refcount): Same.
598         (ipa_impossible_devirt_target): Same.
599         (update_indirect_edges_after_inlining): Same.
600         (combine_controlled_uses_counters): Same.
601         (ipa_edge_args_sum_t::duplicate): Same.
602         (ipa_write_jump_function): Same.
603         (ipa_write_indirect_edge_info): Same.
604         (ipa_write_node_info): Same.
605         (ipa_read_edge_info): Same.
606         (ipa_prop_read_section): Same.
607         (read_replacements_section): Same.
608         * ipa-prop.h (ipa_get_param_count): Same.
609         (ipa_get_param): Same.
610         (ipa_get_type): Same.
611         (ipa_get_param_move_cost): Same.
612         (ipa_set_param_used): Same.
613         (ipa_get_controlled_uses): Same.
614         (ipa_set_controlled_uses): Same.
615         (ipa_get_cs_argument_count): Same.
616         * ipa-pure-const.c (analyze_function): Same.
617         (pure_const_read_summary): Same.
618         * ipa-ref.h: Same.
619         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
620         * ipa-split.c (test_nonssa_use): Same.
621         (dump_split_point): Same.
622         (dominated_by_forbidden): Same.
623         (split_part_set_ssa_name_p): Same.
624         (find_split_points): Same.
625         * ira-build.c (finish_loop_tree_nodes): Same.
626         (low_pressure_loop_node_p): Same.
627         * ira-color.c (ira_reuse_stack_slot): Same.
628         * ira-int.h: Same.
629         * ira.c (setup_reg_equiv): Same.
630         (print_insn_chain): Same.
631         (ira): Same.
632         * loop-doloop.c (doloop_condition_get): Same.
633         (add_test): Same.
634         (record_reg_sets): Same.
635         (doloop_optimize): Same.
636         * loop-init.c (loop_optimizer_init): Same.
637         (fix_loop_structure): Same.
638         * loop-invariant.c (merge_identical_invariants): Same.
639         (compute_always_reached): Same.
640         (find_exits): Same.
641         (may_assign_reg_p): Same.
642         (find_invariants_bb): Same.
643         (find_invariants_body): Same.
644         (replace_uses): Same.
645         (can_move_invariant_reg): Same.
646         (free_inv_motion_data): Same.
647         (move_single_loop_invariants): Same.
648         (change_pressure): Same.
649         (mark_ref_regs): Same.
650         (calculate_loop_reg_pressure): Same.
651         * loop-iv.c (biv_entry_hasher::equal): Same.
652         (iv_extend_to_rtx_code): Same.
653         (check_iv_ref_table_size): Same.
654         (clear_iv_info): Same.
655         (latch_dominating_def): Same.
656         (iv_get_reaching_def): Same.
657         (iv_constant): Same.
658         (iv_subreg): Same.
659         (iv_extend): Same.
660         (iv_neg): Same.
661         (iv_add): Same.
662         (iv_mult): Same.
663         (get_biv_step): Same.
664         (record_iv): Same.
665         (analyzed_for_bivness_p): Same.
666         (record_biv): Same.
667         (iv_analyze_biv): Same.
668         (iv_analyze_expr): Same.
669         (iv_analyze_def): Same.
670         (iv_analyze_op): Same.
671         (iv_analyze): Same.
672         (iv_analyze_result): Same.
673         (biv_p): Same.
674         (eliminate_implied_conditions): Same.
675         (simplify_using_initial_values): Same.
676         (shorten_into_mode): Same.
677         (canonicalize_iv_subregs): Same.
678         (determine_max_iter): Same.
679         (check_simple_exit): Same.
680         (find_simple_exit): Same.
681         (get_simple_loop_desc): Same.
682         * loop-unroll.c (report_unroll): Same.
683         (decide_unrolling): Same.
684         (unroll_loops): Same.
685         (loop_exit_at_end_p): Same.
686         (decide_unroll_constant_iterations): Same.
687         (unroll_loop_constant_iterations): Same.
688         (compare_and_jump_seq): Same.
689         (unroll_loop_runtime_iterations): Same.
690         (decide_unroll_stupid): Same.
691         (unroll_loop_stupid): Same.
692         (referenced_in_one_insn_in_loop_p): Same.
693         (reset_debug_uses_in_loop): Same.
694         (analyze_iv_to_split_insn): Same.
695         * lra-eliminations.c (lra_debug_elim_table): Same.
696         (setup_can_eliminate): Same.
697         (form_sum): Same.
698         (lra_get_elimination_hard_regno): Same.
699         (lra_eliminate_regs_1): Same.
700         (eliminate_regs_in_insn): Same.
701         (update_reg_eliminate): Same.
702         (init_elimination): Same.
703         (lra_eliminate): Same.
704         * lra-int.h: Same.
705         * lra-lives.c (initiate_live_solver): Same.
706         * lra-remat.c (create_remat_bb_data): Same.
707         * lra-spills.c (lra_spill): Same.
708         * lra.c (lra_set_insn_recog_data): Same.
709         (lra_set_used_insn_alternative_by_uid): Same.
710         (init_reg_info): Same.
711         (expand_reg_info): Same.
712         * lto-cgraph.c (output_symtab): Same.
713         (read_identifier): Same.
714         (get_alias_symbol): Same.
715         (input_node): Same.
716         (input_varpool_node): Same.
717         (input_ref): Same.
718         (input_edge): Same.
719         (input_cgraph_1): Same.
720         (input_refs): Same.
721         (input_symtab): Same.
722         (input_offload_tables): Same.
723         (output_cgraph_opt_summary): Same.
724         (input_edge_opt_summary): Same.
725         (input_cgraph_opt_section): Same.
726         * lto-section-in.c (lto_free_raw_section_data): Same.
727         (lto_create_simple_input_block): Same.
728         (lto_free_function_in_decl_state_for_node): Same.
729         * lto-streamer-in.c (lto_tag_check_set): Same.
730         (lto_location_cache::revert_location_cache): Same.
731         (lto_location_cache::input_location): Same.
732         (lto_input_location): Same.
733         (stream_input_location_now): Same.
734         (lto_input_tree_ref): Same.
735         (lto_input_eh_catch_list): Same.
736         (input_eh_region): Same.
737         (lto_init_eh): Same.
738         (make_new_block): Same.
739         (input_cfg): Same.
740         (fixup_call_stmt_edges): Same.
741         (input_struct_function_base): Same.
742         (input_function): Same.
743         (lto_read_body_or_constructor): Same.
744         (lto_read_tree_1): Same.
745         (lto_read_tree): Same.
746         (lto_input_scc): Same.
747         (lto_input_tree_1): Same.
748         (lto_input_toplevel_asms): Same.
749         (lto_input_mode_table): Same.
750         (lto_reader_init): Same.
751         (lto_data_in_create): Same.
752         * lto-streamer-out.c (output_cfg): Same.
753         * lto-streamer.h: Same.
754         * modulo-sched.c (duplicate_insns_of_cycles): Same.
755         (generate_prolog_epilog): Same.
756         (mark_loop_unsched): Same.
757         (dump_insn_location): Same.
758         (loop_canon_p): Same.
759         (sms_schedule): Same.
760         * omp-expand.c (expand_omp_for_ordered_loops): Same.
761         (expand_omp_for_generic): Same.
762         (expand_omp_for_static_nochunk): Same.
763         (expand_omp_for_static_chunk): Same.
764         (expand_omp_simd): Same.
765         (expand_omp_taskloop_for_inner): Same.
766         (expand_oacc_for): Same.
767         (expand_omp_atomic_pipeline): Same.
768         (mark_loops_in_oacc_kernels_region): Same.
769         * omp-offload.c (oacc_xform_loop): Same.
770         * omp-simd-clone.c (simd_clone_adjust): Same.
771         * optabs-query.c (get_traditional_extraction_insn): Same.
772         * optabs.c (expand_vector_broadcast): Same.
773         (expand_binop_directly): Same.
774         (expand_twoval_unop): Same.
775         (expand_twoval_binop): Same.
776         (expand_unop_direct): Same.
777         (emit_indirect_jump): Same.
778         (emit_conditional_move): Same.
779         (emit_conditional_neg_or_complement): Same.
780         (emit_conditional_add): Same.
781         (vector_compare_rtx): Same.
782         (expand_vec_perm_1): Same.
783         (expand_vec_perm_const): Same.
784         (expand_vec_cond_expr): Same.
785         (expand_vec_series_expr): Same.
786         (maybe_emit_atomic_exchange): Same.
787         (maybe_emit_sync_lock_test_and_set): Same.
788         (expand_atomic_compare_and_swap): Same.
789         (expand_atomic_load): Same.
790         (expand_atomic_store): Same.
791         (maybe_emit_op): Same.
792         (valid_multiword_target_p): Same.
793         (create_integer_operand): Same.
794         (maybe_legitimize_operand_same_code): Same.
795         (maybe_legitimize_operand): Same.
796         (create_convert_operand_from_type): Same.
797         (can_reuse_operands_p): Same.
798         (maybe_legitimize_operands): Same.
799         (maybe_gen_insn): Same.
800         (maybe_expand_insn): Same.
801         (maybe_expand_jump_insn): Same.
802         (expand_insn): Same.
803         * optabs.h (create_expand_operand): Same.
804         (create_fixed_operand): Same.
805         (create_output_operand): Same.
806         (create_input_operand): Same.
807         (create_convert_operand_to): Same.
808         (create_convert_operand_from): Same.
809         * optinfo.h: Same.
810         * poly-int.h: Same.
811         * predict.c (optimize_insn_for_speed_p): Same.
812         (optimize_loop_for_size_p): Same.
813         (optimize_loop_for_speed_p): Same.
814         (optimize_loop_nest_for_speed_p): Same.
815         (get_base_value): Same.
816         (predicted_by_loop_heuristics_p): Same.
817         (predict_extra_loop_exits): Same.
818         (predict_loops): Same.
819         (predict_paths_for_bb): Same.
820         (predict_paths_leading_to): Same.
821         (propagate_freq): Same.
822         (pass_profile::execute): Same.
823         * predict.h: Same.
824         * profile-count.c (profile_count::differs_from_p): Same.
825         (profile_probability::differs_lot_from_p): Same.
826         * profile-count.h: Same.
827         * profile.c (branch_prob): Same.
828         * regrename.c (free_chain_data): Same.
829         (mark_conflict): Same.
830         (create_new_chain): Same.
831         (merge_overlapping_regs): Same.
832         (init_rename_info): Same.
833         (merge_chains): Same.
834         (regrename_analyze): Same.
835         (regrename_do_replace): Same.
836         (scan_rtx_reg): Same.
837         (record_out_operands): Same.
838         (build_def_use): Same.
839         * regrename.h: Same.
840         * reload.h: Same.
841         * reload1.c (init_reload): Same.
842         (maybe_fix_stack_asms): Same.
843         (copy_reloads): Same.
844         (count_pseudo): Same.
845         (count_spilled_pseudo): Same.
846         (find_reg): Same.
847         (find_reload_regs): Same.
848         (select_reload_regs): Same.
849         (spill_hard_reg): Same.
850         (fixup_eh_region_note): Same.
851         (set_reload_reg): Same.
852         (allocate_reload_reg): Same.
853         (compute_reload_subreg_offset): Same.
854         (reload_adjust_reg_for_icode): Same.
855         (emit_input_reload_insns): Same.
856         (emit_output_reload_insns): Same.
857         (do_input_reload): Same.
858         (inherit_piecemeal_p): Same.
859         * rtl.h: Same.
860         * sanopt.c (maybe_get_dominating_check): Same.
861         (maybe_optimize_ubsan_ptr_ifn): Same.
862         (can_remove_asan_check): Same.
863         (maybe_optimize_asan_check_ifn): Same.
864         (sanopt_optimize_walker): Same.
865         * sched-deps.c (add_dependence_list): Same.
866         (chain_to_prev_insn): Same.
867         (add_insn_mem_dependence): Same.
868         (create_insn_reg_set): Same.
869         (maybe_extend_reg_info_p): Same.
870         (sched_analyze_reg): Same.
871         (sched_analyze_1): Same.
872         (get_implicit_reg_pending_clobbers): Same.
873         (chain_to_prev_insn_p): Same.
874         (deps_analyze_insn): Same.
875         (deps_start_bb): Same.
876         (sched_free_deps): Same.
877         (init_deps): Same.
878         (init_deps_reg_last): Same.
879         (free_deps): Same.
880         * sched-ebb.c: Same.
881         * sched-int.h: Same.
882         * sched-rgn.c (add_branch_dependences): Same.
883         (concat_insn_mem_list): Same.
884         (deps_join): Same.
885         (sched_rgn_compute_dependencies): Same.
886         * sel-sched-ir.c (reset_target_context): Same.
887         (copy_deps_context): Same.
888         (init_id_from_df): Same.
889         (has_dependence_p): Same.
890         (change_loops_latches): Same.
891         (bb_top_order_comparator): Same.
892         (make_region_from_loop_preheader): Same.
893         (sel_init_pipelining): Same.
894         (get_loop_nest_for_rgn): Same.
895         (make_regions_from_the_rest): Same.
896         (sel_is_loop_preheader_p): Same.
897         * sel-sched-ir.h (inner_loop_header_p): Same.
898         (get_all_loop_exits): Same.
899         * selftest.h: Same.
900         * sese.c (sese_build_liveouts): Same.
901         (sese_insert_phis_for_liveouts): Same.
902         * sese.h (defined_in_sese_p): Same.
903         * sreal.c (sreal::stream_out): Same.
904         * sreal.h: Same.
905         * streamer-hooks.h: Same.
906         * target-globals.c (save_target_globals): Same.
907         * target-globals.h: Same.
908         * target.def: Same.
909         * target.h: Same.
910         * targhooks.c (default_has_ifunc_p): Same.
911         (default_empty_mask_is_expensive): Same.
912         (default_init_cost): Same.
913         * targhooks.h: Same.
914         * toplev.c: Same.
915         * tree-affine.c (aff_combination_mult): Same.
916         (aff_combination_expand): Same.
917         (aff_combination_constant_multiple_p): Same.
918         * tree-affine.h: Same.
919         * tree-cfg.c (build_gimple_cfg): Same.
920         (replace_loop_annotate_in_block): Same.
921         (replace_uses_by): Same.
922         (remove_bb): Same.
923         (dump_cfg_stats): Same.
924         (gimple_duplicate_sese_region): Same.
925         (gimple_duplicate_sese_tail): Same.
926         (move_block_to_fn): Same.
927         (replace_block_vars_by_duplicates): Same.
928         (move_sese_region_to_fn): Same.
929         (print_loops_bb): Same.
930         (print_loop): Same.
931         (print_loops): Same.
932         (debug): Same.
933         (debug_loops): Same.
934         * tree-cfg.h: Same.
935         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
936         (chrec_fold_multiply_poly_poly): Same.
937         (chrec_evaluate): Same.
938         (chrec_component_in_loop_num): Same.
939         (reset_evolution_in_loop): Same.
940         (is_multivariate_chrec): Same.
941         (chrec_contains_symbols): Same.
942         (nb_vars_in_chrec): Same.
943         (chrec_convert_1): Same.
944         (chrec_convert_aggressive): Same.
945         * tree-chrec.h: Same.
946         * tree-core.h: Same.
947         * tree-data-ref.c (dump_data_dependence_relation): Same.
948         (canonicalize_base_object_address): Same.
949         (data_ref_compare_tree): Same.
950         (prune_runtime_alias_test_list): Same.
951         (get_segment_min_max): Same.
952         (create_intersect_range_checks): Same.
953         (conflict_fn_no_dependence): Same.
954         (object_address_invariant_in_loop_p): Same.
955         (analyze_ziv_subscript): Same.
956         (analyze_siv_subscript_cst_affine): Same.
957         (analyze_miv_subscript): Same.
958         (analyze_overlapping_iterations): Same.
959         (build_classic_dist_vector_1): Same.
960         (add_other_self_distances): Same.
961         (same_access_functions): Same.
962         (build_classic_dir_vector): Same.
963         (subscript_dependence_tester_1): Same.
964         (subscript_dependence_tester): Same.
965         (access_functions_are_affine_or_constant_p): Same.
966         (get_references_in_stmt): Same.
967         (loop_nest_has_data_refs): Same.
968         (graphite_find_data_references_in_stmt): Same.
969         (find_data_references_in_bb): Same.
970         (get_base_for_alignment): Same.
971         (find_loop_nest_1): Same.
972         (find_loop_nest): Same.
973         * tree-data-ref.h (dr_alignment): Same.
974         (ddr_dependence_level): Same.
975         * tree-if-conv.c (fold_build_cond_expr): Same.
976         (add_to_predicate_list): Same.
977         (add_to_dst_predicate_list): Same.
978         (phi_convertible_by_degenerating_args): Same.
979         (idx_within_array_bound): Same.
980         (all_preds_critical_p): Same.
981         (pred_blocks_visited_p): Same.
982         (predicate_bbs): Same.
983         (build_region): Same.
984         (if_convertible_loop_p_1): Same.
985         (is_cond_scalar_reduction): Same.
986         (predicate_scalar_phi): Same.
987         (remove_conditions_and_labels): Same.
988         (combine_blocks): Same.
989         (version_loop_for_if_conversion): Same.
990         (versionable_outer_loop_p): Same.
991         (ifcvt_local_dce): Same.
992         (tree_if_conversion): Same.
993         (pass_if_conversion::gate): Same.
994         * tree-if-conv.h: Same.
995         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
996         * tree-loop-distribution.c (bb_top_order_cmp): Same.
997         (free_rdg): Same.
998         (stmt_has_scalar_dependences_outside_loop): Same.
999         (copy_loop_before): Same.
1000         (create_bb_after_loop): Same.
1001         (const_with_all_bytes_same): Same.
1002         (generate_memset_builtin): Same.
1003         (generate_memcpy_builtin): Same.
1004         (destroy_loop): Same.
1005         (build_rdg_partition_for_vertex): Same.
1006         (compute_access_range): Same.
1007         (data_ref_segment_size): Same.
1008         (latch_dominated_by_data_ref): Same.
1009         (compute_alias_check_pairs): Same.
1010         (fuse_memset_builtins): Same.
1011         (finalize_partitions): Same.
1012         (find_seed_stmts_for_distribution): Same.
1013         (prepare_perfect_loop_nest): Same.
1014         * tree-parloops.c (lambda_transform_legal_p): Same.
1015         (loop_parallel_p): Same.
1016         (reduc_stmt_res): Same.
1017         (add_field_for_name): Same.
1018         (create_call_for_reduction_1): Same.
1019         (replace_uses_in_bb_by): Same.
1020         (transform_to_exit_first_loop_alt): Same.
1021         (try_transform_to_exit_first_loop_alt): Same.
1022         (transform_to_exit_first_loop): Same.
1023         (num_phis): Same.
1024         (gen_parallel_loop): Same.
1025         (gather_scalar_reductions): Same.
1026         (get_omp_data_i_param): Same.
1027         (try_create_reduction_list): Same.
1028         (oacc_entry_exit_single_gang): Same.
1029         (parallelize_loops): Same.
1030         * tree-pass.h: Same.
1031         * tree-predcom.c (determine_offset): Same.
1032         (last_always_executed_block): Same.
1033         (split_data_refs_to_components): Same.
1034         (suitable_component_p): Same.
1035         (valid_initializer_p): Same.
1036         (find_looparound_phi): Same.
1037         (insert_looparound_copy): Same.
1038         (add_looparound_copies): Same.
1039         (determine_roots_comp): Same.
1040         (predcom_tmp_var): Same.
1041         (initialize_root_vars): Same.
1042         (initialize_root_vars_store_elim_1): Same.
1043         (initialize_root_vars_store_elim_2): Same.
1044         (finalize_eliminated_stores): Same.
1045         (initialize_root_vars_lm): Same.
1046         (remove_stmt): Same.
1047         (determine_unroll_factor): Same.
1048         (execute_pred_commoning_cbck): Same.
1049         (base_names_in_chain_on): Same.
1050         (combine_chains): Same.
1051         (pcom_stmt_dominates_stmt_p): Same.
1052         (try_combine_chains): Same.
1053         (prepare_initializers_chain_store_elim): Same.
1054         (prepare_initializers_chain): Same.
1055         (prepare_initializers): Same.
1056         (prepare_finalizers_chain): Same.
1057         (prepare_finalizers): Same.
1058         (insert_init_seqs): Same.
1059         * tree-scalar-evolution.c (loop_phi_node_p): Same.
1060         (compute_overall_effect_of_inner_loop): Same.
1061         (add_to_evolution_1): Same.
1062         (add_to_evolution): Same.
1063         (follow_ssa_edge_binary): Same.
1064         (follow_ssa_edge_expr): Same.
1065         (backedge_phi_arg_p): Same.
1066         (follow_ssa_edge_in_condition_phi_branch): Same.
1067         (follow_ssa_edge_in_condition_phi): Same.
1068         (follow_ssa_edge_inner_loop_phi): Same.
1069         (follow_ssa_edge): Same.
1070         (analyze_evolution_in_loop): Same.
1071         (analyze_initial_condition): Same.
1072         (interpret_loop_phi): Same.
1073         (interpret_condition_phi): Same.
1074         (interpret_rhs_expr): Same.
1075         (interpret_expr): Same.
1076         (interpret_gimple_assign): Same.
1077         (analyze_scalar_evolution_1): Same.
1078         (analyze_scalar_evolution): Same.
1079         (analyze_scalar_evolution_for_address_of): Same.
1080         (get_instantiated_value_entry): Same.
1081         (loop_closed_phi_def): Same.
1082         (instantiate_scev_name): Same.
1083         (instantiate_scev_poly): Same.
1084         (instantiate_scev_binary): Same.
1085         (instantiate_scev_convert): Same.
1086         (instantiate_scev_not): Same.
1087         (instantiate_scev_r): Same.
1088         (instantiate_scev): Same.
1089         (resolve_mixers): Same.
1090         (initialize_scalar_evolutions_analyzer): Same.
1091         (scev_reset_htab): Same.
1092         (scev_reset): Same.
1093         (derive_simple_iv_with_niters): Same.
1094         (simple_iv_with_niters): Same.
1095         (expression_expensive_p): Same.
1096         (final_value_replacement_loop): Same.
1097         * tree-scalar-evolution.h (block_before_loop): Same.
1098         * tree-ssa-address.h: Same.
1099         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
1100         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
1101         (record_edge_info): Same.
1102         * tree-ssa-live.c (var_map_base_fini): Same.
1103         (remove_unused_locals): Same.
1104         * tree-ssa-live.h: Same.
1105         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
1106         (pass_ch_vect::execute): Same.
1107         (pass_ch::process_loop_p): Same.
1108         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
1109         (movement_possibility): Same.
1110         (outermost_invariant_loop): Same.
1111         (stmt_cost): Same.
1112         (determine_max_movement): Same.
1113         (invariantness_dom_walker::before_dom_children): Same.
1114         (move_computations): Same.
1115         (may_move_till): Same.
1116         (force_move_till_op): Same.
1117         (force_move_till): Same.
1118         (memref_free): Same.
1119         (record_mem_ref_loc): Same.
1120         (set_ref_stored_in_loop): Same.
1121         (mark_ref_stored): Same.
1122         (sort_bbs_in_loop_postorder_cmp): Same.
1123         (sort_locs_in_loop_postorder_cmp): Same.
1124         (analyze_memory_references): Same.
1125         (mem_refs_may_alias_p): Same.
1126         (find_ref_loc_in_loop_cmp): Same.
1127         (rewrite_mem_ref_loc::operator): Same.
1128         (first_mem_ref_loc_1::operator): Same.
1129         (sm_set_flag_if_changed::operator): Same.
1130         (execute_sm_if_changed_flag_set): Same.
1131         (execute_sm): Same.
1132         (hoist_memory_references): Same.
1133         (ref_always_accessed::operator): Same.
1134         (refs_independent_p): Same.
1135         (record_dep_loop): Same.
1136         (ref_indep_loop_p_1): Same.
1137         (ref_indep_loop_p): Same.
1138         (can_sm_ref_p): Same.
1139         (find_refs_for_sm): Same.
1140         (loop_suitable_for_sm): Same.
1141         (store_motion_loop): Same.
1142         (store_motion): Same.
1143         (fill_always_executed_in): Same.
1144         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
1145         (estimated_unrolled_size): Same.
1146         (loop_edge_to_cancel): Same.
1147         (remove_exits_and_undefined_stmts): Same.
1148         (remove_redundant_iv_tests): Same.
1149         (unloop_loops): Same.
1150         (estimated_peeled_sequence_size): Same.
1151         (try_peel_loop): Same.
1152         (canonicalize_loop_induction_variables): Same.
1153         (canonicalize_induction_variables): Same.
1154         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
1155         (name_info): Same.
1156         (stmt_after_inc_pos): Same.
1157         (contains_abnormal_ssa_name_p): Same.
1158         (niter_for_exit): Same.
1159         (find_bivs): Same.
1160         (mark_bivs): Same.
1161         (find_givs_in_bb): Same.
1162         (find_induction_variables): Same.
1163         (find_interesting_uses_cond): Same.
1164         (outermost_invariant_loop_for_expr): Same.
1165         (idx_find_step): Same.
1166         (add_candidate_1): Same.
1167         (add_iv_candidate_derived_from_uses): Same.
1168         (alloc_use_cost_map): Same.
1169         (prepare_decl_rtl): Same.
1170         (generic_predict_doloop_p): Same.
1171         (computation_cost): Same.
1172         (determine_common_wider_type): Same.
1173         (get_computation_aff_1): Same.
1174         (get_use_type): Same.
1175         (determine_group_iv_cost_address): Same.
1176         (iv_period): Same.
1177         (difference_cannot_overflow_p): Same.
1178         (may_eliminate_iv): Same.
1179         (determine_set_costs): Same.
1180         (cheaper_cost_pair): Same.
1181         (compare_cost_pair): Same.
1182         (iv_ca_cand_for_group): Same.
1183         (iv_ca_recount_cost): Same.
1184         (iv_ca_set_remove_invs): Same.
1185         (iv_ca_set_no_cp): Same.
1186         (iv_ca_set_add_invs): Same.
1187         (iv_ca_set_cp): Same.
1188         (iv_ca_add_group): Same.
1189         (iv_ca_cost): Same.
1190         (iv_ca_compare_deps): Same.
1191         (iv_ca_delta_reverse): Same.
1192         (iv_ca_delta_commit): Same.
1193         (iv_ca_cand_used_p): Same.
1194         (iv_ca_delta_free): Same.
1195         (iv_ca_new): Same.
1196         (iv_ca_free): Same.
1197         (iv_ca_dump): Same.
1198         (iv_ca_extend): Same.
1199         (iv_ca_narrow): Same.
1200         (iv_ca_prune): Same.
1201         (cheaper_cost_with_cand): Same.
1202         (iv_ca_replace): Same.
1203         (try_add_cand_for): Same.
1204         (get_initial_solution): Same.
1205         (try_improve_iv_set): Same.
1206         (find_optimal_iv_set_1): Same.
1207         (create_new_iv): Same.
1208         (rewrite_use_compare): Same.
1209         (remove_unused_ivs): Same.
1210         (determine_scaling_factor): Same.
1211         * tree-ssa-loop-ivopts.h: Same.
1212         * tree-ssa-loop-manip.c (create_iv): Same.
1213         (compute_live_loop_exits): Same.
1214         (add_exit_phi): Same.
1215         (add_exit_phis): Same.
1216         (find_uses_to_rename_use): Same.
1217         (find_uses_to_rename_def): Same.
1218         (find_uses_to_rename_in_loop): Same.
1219         (rewrite_into_loop_closed_ssa): Same.
1220         (check_loop_closed_ssa_bb): Same.
1221         (split_loop_exit_edge): Same.
1222         (ip_end_pos): Same.
1223         (ip_normal_pos): Same.
1224         (copy_phi_node_args): Same.
1225         (gimple_duplicate_loop_to_header_edge): Same.
1226         (can_unroll_loop_p): Same.
1227         (determine_exit_conditions): Same.
1228         (scale_dominated_blocks_in_loop): Same.
1229         (niter_for_unrolled_loop): Same.
1230         (tree_transform_and_unroll_loop): Same.
1231         (rewrite_all_phi_nodes_with_iv): Same.
1232         * tree-ssa-loop-manip.h: Same.
1233         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
1234         (number_of_iterations_ne): Same.
1235         (assert_no_overflow_lt): Same.
1236         (assert_loop_rolls_lt): Same.
1237         (number_of_iterations_lt): Same.
1238         (adjust_cond_for_loop_until_wrap): Same.
1239         (tree_simplify_using_condition): Same.
1240         (simplify_using_initial_conditions): Same.
1241         (simplify_using_outer_evolutions): Same.
1242         (loop_only_exit_p): Same.
1243         (ssa_defined_by_minus_one_stmt_p): Same.
1244         (number_of_iterations_popcount): Same.
1245         (number_of_iterations_exit): Same.
1246         (find_loop_niter): Same.
1247         (finite_loop_p): Same.
1248         (chain_of_csts_start): Same.
1249         (get_val_for): Same.
1250         (loop_niter_by_eval): Same.
1251         (derive_constant_upper_bound_ops): Same.
1252         (do_warn_aggressive_loop_optimizations): Same.
1253         (record_estimate): Same.
1254         (get_cst_init_from_scev): Same.
1255         (record_nonwrapping_iv): Same.
1256         (idx_infer_loop_bounds): Same.
1257         (infer_loop_bounds_from_ref): Same.
1258         (infer_loop_bounds_from_array): Same.
1259         (infer_loop_bounds_from_pointer_arith): Same.
1260         (infer_loop_bounds_from_signedness): Same.
1261         (bound_index): Same.
1262         (discover_iteration_bound_by_body_walk): Same.
1263         (maybe_lower_iteration_bound): Same.
1264         (estimate_numbers_of_iterations): Same.
1265         (estimated_loop_iterations): Same.
1266         (estimated_loop_iterations_int): Same.
1267         (max_loop_iterations): Same.
1268         (max_loop_iterations_int): Same.
1269         (likely_max_loop_iterations): Same.
1270         (likely_max_loop_iterations_int): Same.
1271         (estimated_stmt_executions_int): Same.
1272         (max_stmt_executions): Same.
1273         (likely_max_stmt_executions): Same.
1274         (estimated_stmt_executions): Same.
1275         (stmt_dominates_stmt_p): Same.
1276         (nowrap_type_p): Same.
1277         (loop_exits_before_overflow): Same.
1278         (scev_var_range_cant_overflow): Same.
1279         (scev_probably_wraps_p): Same.
1280         (free_numbers_of_iterations_estimates): Same.
1281         * tree-ssa-loop-niter.h: Same.
1282         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
1283         (idx_analyze_ref): Same.
1284         (analyze_ref): Same.
1285         (gather_memory_references_ref): Same.
1286         (mark_nontemporal_store): Same.
1287         (emit_mfence_after_loop): Same.
1288         (may_use_storent_in_loop_p): Same.
1289         (mark_nontemporal_stores): Same.
1290         (should_unroll_loop_p): Same.
1291         (volume_of_dist_vector): Same.
1292         (add_subscript_strides): Same.
1293         (self_reuse_distance): Same.
1294         (insn_to_prefetch_ratio_too_small_p): Same.
1295         * tree-ssa-loop-split.c (split_at_bb_p): Same.
1296         (patch_loop_exit): Same.
1297         (find_or_create_guard_phi): Same.
1298         (easy_exit_values): Same.
1299         (connect_loop_phis): Same.
1300         (connect_loops): Same.
1301         (compute_new_first_bound): Same.
1302         (split_loop): Same.
1303         (tree_ssa_split_loops): Same.
1304         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
1305         (is_maybe_undefined): Same.
1306         (tree_may_unswitch_on): Same.
1307         (simplify_using_entry_checks): Same.
1308         (tree_unswitch_single_loop): Same.
1309         (tree_unswitch_loop): Same.
1310         (tree_unswitch_outer_loop): Same.
1311         (empty_bb_without_guard_p): Same.
1312         (used_outside_loop_p): Same.
1313         (get_vop_from_header): Same.
1314         (hoist_guard): Same.
1315         * tree-ssa-loop.c (gate_oacc_kernels): Same.
1316         (get_lsm_tmp_name): Same.
1317         * tree-ssa-loop.h: Same.
1318         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
1319         (build_and_add_sum): Same.
1320         (no_side_effect_bb): Same.
1321         (get_ops): Same.
1322         (linearize_expr): Same.
1323         (should_break_up_subtract): Same.
1324         (linearize_expr_tree): Same.
1325         * tree-ssa-scopedtables.c: Same.
1326         * tree-ssa-scopedtables.h: Same.
1327         * tree-ssa-structalias.c (condense_visit): Same.
1328         (label_visit): Same.
1329         (dump_pred_graph): Same.
1330         (perform_var_substitution): Same.
1331         (move_complex_constraints): Same.
1332         (remove_preds_and_fake_succs): Same.
1333         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
1334         (determine_bb_domination_status): Same.
1335         (duplicate_thread_path): Same.
1336         (thread_through_all_blocks): Same.
1337         * tree-ssa-threadupdate.h: Same.
1338         * tree-streamer-in.c (streamer_read_string_cst): Same.
1339         (input_identifier): Same.
1340         (unpack_ts_type_common_value_fields): Same.
1341         (unpack_ts_block_value_fields): Same.
1342         (unpack_ts_translation_unit_decl_value_fields): Same.
1343         (unpack_ts_omp_clause_value_fields): Same.
1344         (streamer_read_tree_bitfields): Same.
1345         (streamer_alloc_tree): Same.
1346         (lto_input_ts_common_tree_pointers): Same.
1347         (lto_input_ts_vector_tree_pointers): Same.
1348         (lto_input_ts_poly_tree_pointers): Same.
1349         (lto_input_ts_complex_tree_pointers): Same.
1350         (lto_input_ts_decl_minimal_tree_pointers): Same.
1351         (lto_input_ts_decl_common_tree_pointers): Same.
1352         (lto_input_ts_decl_non_common_tree_pointers): Same.
1353         (lto_input_ts_decl_with_vis_tree_pointers): Same.
1354         (lto_input_ts_field_decl_tree_pointers): Same.
1355         (lto_input_ts_function_decl_tree_pointers): Same.
1356         (lto_input_ts_type_common_tree_pointers): Same.
1357         (lto_input_ts_type_non_common_tree_pointers): Same.
1358         (lto_input_ts_list_tree_pointers): Same.
1359         (lto_input_ts_vec_tree_pointers): Same.
1360         (lto_input_ts_exp_tree_pointers): Same.
1361         (lto_input_ts_block_tree_pointers): Same.
1362         (lto_input_ts_binfo_tree_pointers): Same.
1363         (lto_input_ts_constructor_tree_pointers): Same.
1364         (lto_input_ts_omp_clause_tree_pointers): Same.
1365         (streamer_read_tree_body): Same.
1366         * tree-streamer.h: Same.
1367         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
1368         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
1369         (vect_analyze_possibly_independent_ddr): Same.
1370         (vect_analyze_data_ref_dependence): Same.
1371         (vect_compute_data_ref_alignment): Same.
1372         (vect_enhance_data_refs_alignment): Same.
1373         (vect_analyze_data_ref_access): Same.
1374         (vect_check_gather_scatter): Same.
1375         (vect_find_stmt_data_reference): Same.
1376         (vect_create_addr_base_for_vector_ref): Same.
1377         (vect_setup_realignment): Same.
1378         (vect_supportable_dr_alignment): Same.
1379         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
1380         (adjust_phi_and_debug_stmts): Same.
1381         (vect_set_loop_mask): Same.
1382         (add_preheader_seq): Same.
1383         (vect_maybe_permute_loop_masks): Same.
1384         (vect_set_loop_masks_directly): Same.
1385         (vect_set_loop_condition_masked): Same.
1386         (vect_set_loop_condition_unmasked): Same.
1387         (slpeel_duplicate_current_defs_from_edges): Same.
1388         (slpeel_add_loop_guard): Same.
1389         (slpeel_can_duplicate_loop_p): Same.
1390         (create_lcssa_for_virtual_phi): Same.
1391         (iv_phi_p): Same.
1392         (vect_update_ivs_after_vectorizer): Same.
1393         (vect_gen_vector_loop_niters_mult_vf): Same.
1394         (slpeel_update_phi_nodes_for_loops): Same.
1395         (slpeel_update_phi_nodes_for_guard1): Same.
1396         (find_guard_arg): Same.
1397         (slpeel_update_phi_nodes_for_guard2): Same.
1398         (slpeel_update_phi_nodes_for_lcssa): Same.
1399         (vect_do_peeling): Same.
1400         (vect_create_cond_for_alias_checks): Same.
1401         (vect_loop_versioning): Same.
1402         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
1403         (vect_inner_phi_in_double_reduction_p): Same.
1404         (vect_analyze_scalar_cycles_1): Same.
1405         (vect_fixup_scalar_cycles_with_patterns): Same.
1406         (vect_get_loop_niters): Same.
1407         (bb_in_loop_p): Same.
1408         (vect_get_max_nscalars_per_iter): Same.
1409         (vect_verify_full_masking): Same.
1410         (vect_compute_single_scalar_iteration_cost): Same.
1411         (vect_analyze_loop_form_1): Same.
1412         (vect_analyze_loop_form): Same.
1413         (vect_active_double_reduction_p): Same.
1414         (vect_analyze_loop_operations): Same.
1415         (neutral_op_for_slp_reduction): Same.
1416         (vect_is_simple_reduction): Same.
1417         (vect_model_reduction_cost): Same.
1418         (get_initial_def_for_reduction): Same.
1419         (get_initial_defs_for_reduction): Same.
1420         (vect_create_epilog_for_reduction): Same.
1421         (vectorize_fold_left_reduction): Same.
1422         (vectorizable_reduction): Same.
1423         (vectorizable_induction): Same.
1424         (vectorizable_live_operation): Same.
1425         (loop_niters_no_overflow): Same.
1426         (vect_get_loop_mask): Same.
1427         (vect_transform_loop_stmt): Same.
1428         (vect_transform_loop): Same.
1429         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
1430         (vect_determine_precisions): Same.
1431         (vect_pattern_recog_1): Same.
1432         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
1433         * tree-vect-stmts.c (stmt_vectype): Same.
1434         (process_use): Same.
1435         (vect_init_vector_1): Same.
1436         (vect_truncate_gather_scatter_offset): Same.
1437         (get_group_load_store_type): Same.
1438         (vect_build_gather_load_calls): Same.
1439         (vect_get_strided_load_store_ops): Same.
1440         (vectorizable_simd_clone_call): Same.
1441         (vectorizable_store): Same.
1442         (permute_vec_elements): Same.
1443         (vectorizable_load): Same.
1444         (vect_transform_stmt): Same.
1445         (supportable_widening_operation): Same.
1446         * tree-vectorizer.c (vec_info::replace_stmt): Same.
1447         (vec_info::free_stmt_vec_info): Same.
1448         (vect_free_loop_info_assumptions): Same.
1449         (vect_loop_vectorized_call): Same.
1450         (set_uid_loop_bbs): Same.
1451         (vectorize_loops): Same.
1452         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
1453         * tree.c (add_tree_to_fld_list): Same.
1454         (fld_type_variant_equal_p): Same.
1455         (fld_decl_context): Same.
1456         (fld_incomplete_type_of): Same.
1457         (free_lang_data_in_binfo): Same.
1458         (need_assembler_name_p): Same.
1459         (find_decls_types_r): Same.
1460         (get_eh_types_for_runtime): Same.
1461         (find_decls_types_in_eh_region): Same.
1462         (find_decls_types_in_node): Same.
1463         (assign_assembler_name_if_needed): Same.
1464         * value-prof.c (stream_out_histogram_value): Same.
1465         * value-prof.h: Same.
1466         * var-tracking.c (use_narrower_mode): Same.
1467         (prepare_call_arguments): Same.
1468         (vt_expand_loc_callback): Same.
1469         (resolve_expansions_pending_recursion): Same.
1470         (vt_expand_loc): Same.
1471         * varasm.c (const_hash_1): Same.
1472         (compare_constant): Same.
1473         (tree_output_constant_def): Same.
1474         (simplify_subtraction): Same.
1475         (get_pool_constant): Same.
1476         (output_constant_pool_2): Same.
1477         (output_constant_pool_1): Same.
1478         (mark_constants_in_pattern): Same.
1479         (mark_constant_pool): Same.
1480         (get_section_anchor): Same.
1481         * vr-values.c (compare_range_with_value): Same.
1482         (vr_values::extract_range_from_phi_node): Same.
1483         * vr-values.h: Same.
1484         * web.c (unionfind_union): Same.
1485         * wide-int.h: Same.
1487 2019-07-09  Martin Sebor  <msebor@redhat.com>
1489         PR c++/61339
1490         * align.h: Change class-key from class to struct and vice versa
1491         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
1492         * alloc-pool.h: Same.
1493         * asan.c (shadow_mem_size): Same.
1494         * auto-profile.c: Same.
1495         * basic-block.h: Same.
1496         * bitmap.h: Same.
1497         * cfgexpand.c (set_rtl): Same.
1498         (expand_one_stack_var_at): Same.
1499         * cfghooks.h: Same.
1500         * cfgloop.h: Same.
1501         * cgraph.h: Same.
1502         * config/i386/i386.h: Same.
1503         * df-problems.c (df_print_bb_index): Same.
1504         * df-scan.c: Same.
1505         * df.h (df_single_use): Same.
1506         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
1507         (layout::annotation_line_showed_range_p): Same.
1508         (get_printed_columns): Same.
1509         (correction::ensure_terminated): Same.
1510         (line_corrections::~line_corrections): Same.
1511         * dojump.h: Same.
1512         * dse.c: Same.
1513         * dump-context.h: Same.
1514         * dumpfile.h: Same.
1515         * dwarf2out.c: Same.
1516         * edit-context.c: Same.
1517         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
1518         * flags.h: Same.
1519         * function.c (assign_stack_local): Same.
1520         * function.h: Same.
1521         * gcc.c: Same.
1522         * gcov.c (block_info::block_info): Same.
1523         * genattrtab.c: Same.
1524         * genextract.c: Same.
1525         * genmatch.c (comparison_code_p): Same.
1526         (id_base::id_base): Same.
1527         (decision_tree::print): Same.
1528         * genoutput.c: Same.
1529         * genpreds.c (write_one_predicate_function): Same.
1530         * genrecog.c (validate_pattern): Same.
1531         (find_operand_positions): Same.
1532         (optimize_subroutine_group): Same.
1533         (merge_pattern_transition::merge_pattern_transition): Same.
1534         (merge_pattern_info::merge_pattern_info): Same.
1535         (merge_state_result::merge_state_result): Same.
1536         (merge_into_state): Same.
1537         * gensupport.c: Same.
1538         * gensupport.h: Same.
1539         * ggc-common.c (init_ggc_heuristics): Same.
1540         * ggc-tests.c (test_union): Same.
1541         * gimple-loop-interchange.cc (dump_induction): Same.
1542         * gimple-loop-versioning.cc: Same.
1543         * gimple-match.h (gimple_match_cond::any_else): Same.
1544         * gimple-ssa-backprop.c: Same.
1545         * gimple-ssa-sprintf.c: Same.
1546         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info): Same.
1547         (store_immediate_info::store_immediate_info): Same.
1548         (merged_store_group::apply_stores): Same.
1549         (get_location_for_stmts): Same.
1550         * gimple-ssa-strength-reduction.c: Same.
1551         * gimple-ssa-warn-alloca.c: Same.
1552         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
1553         * godump.c (go_type_decl): Same.
1554         * hash-map-tests.c (test_map_of_strings_to_int): Same.
1555         * hash-map.h: Same.
1556         * hash-set-tests.c (test_set_of_strings): Same.
1557         * hsa-brig.c: Same.
1558         * hsa-common.h: Same.
1559         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
1560         * input.c (assert_loceq): Same.
1561         * input.h: Same.
1562         * ipa-cp.c: Same.
1563         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
1564         * ipa-fnsummary.h: Same.
1565         * ipa-inline.h: Same.
1566         * ipa-prop.h: Same.
1567         * ipa-split.c (visit_bb): Same.
1568         * ira-int.h (minmax_set_iter_next): Same.
1569         * loop-invariant.c: Same.
1570         * loop-iv.c: Same.
1571         * lra-eliminations.c: Same.
1572         * lra-int.h: Same.
1573         * lra-lives.c (mark_regno_dead): Same.
1574         * lra-remat.c: Same.
1575         * lra-spills.c: Same.
1576         * lto-streamer.h: Same.
1577         * mem-stats.h: Same.
1578         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
1579         * omp-low.c (omp_clause_aligned_alignment): Same.
1580         * optabs-query.h (get_vcond_eq_icode): Same.
1581         * optabs.h: Same.
1582         * opts.c (wrap_help): Same.
1583         * poly-int.h: Same.
1584         * predict.c (predict_paths_leading_to_edge): Same.
1585         * pretty-print.h: Same.
1586         * profile-count.h: Same.
1587         * read-md.h: Same.
1588         * read-rtl-function.c: Same.
1589         * ree.c: Same.
1590         * reginfo.c: Same.
1591         * regrename.c: Same.
1592         * regrename.h: Same.
1593         * reload.h: Same.
1594         * rtl-iter.h: Same.
1595         * rtl.h (costs_add_n_insns): Same.
1596         * sanopt.c: Same.
1597         * sched-int.h: Same.
1598         * sel-sched-ir.h: Same.
1599         * selftest.h: Same.
1600         * sese.h (vec_find): Same.
1601         * stmt.c: Same.
1602         * target-globals.h: Same.
1603         * tree-affine.c (aff_combination_find_elt): Same.
1604         * tree-affine.h: Same.
1605         * tree-data-ref.h: Same.
1606         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
1607         * tree-predcom.c: Same.
1608         * tree-scalar-evolution.c (find_var_scev_info): Same.
1609         * tree-ssa-alias.h: Same.
1610         * tree-ssa-ccp.c: Same.
1611         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
1612         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
1613         (rewrite_mem_refs): Same.
1614         (execute_sm_if_changed): Same.
1615         (hoist_memory_references): Same.
1616         * tree-ssa-loop-ivopts.c (operator<=): Same.
1617         * tree-ssa-loop.h: Same.
1618         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
1619         * tree-ssa-structalias.c: Same.
1620         * tree-switch-conversion.h (cluster::cluster): Same.
1621         (simple_cluster::simple_cluster): Same.
1622         * tree-vect-patterns.c (type_conversion_p): Same.
1623         * tree-vectorizer.c (dump_stmt_cost): Same.
1624         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
1625         * tree.c (protected_set_expr_location): Same.
1626         * tree.h (desired_pro_or_demotion_p): Same.
1627         (fndecl_built_in_p): Same.
1628         * unique-ptr-tests.cc: Same.
1629         * var-tracking.c (delete_variable_part): Same.
1630         * varasm.c (assemble_real): Same.
1631         (tree_output_constant_def): Same.
1632         * vec.c: Same.
1633         * wide-int-bitmask.h: Same.
1634         * wide-int.h (decompose): Same.
1636 2019-07-09  Richard Biener  <rguenther@suse.de>
1638         PR tree-optimization/91114
1639         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
1640         find a vector type isn't fatal.
1642 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
1644         * config/aarch64/aarch64-simd.md
1645         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
1646         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
1647         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
1648         (*aarch64_crypto_aese_fused,
1649         *aarch64_crypto_aesd_fused): Update to new definition.
1650         * config/aarch64/aarch64.c
1651         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
1653 2019-07-09  Richard Biener  <rguenther@suse.de>
1655         * gimple-match.h (gimple_match_op::resimplify): New.
1656         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
1657         gimple_resimplify4, gimple_resimplify5): Remove.
1658         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
1659         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
1660         Make static.
1661         (gimple_match_op::resimplify): New.
1662         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
1663         according to availability.  Use gimple_match_op::resimplify. 
1665 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
1667         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
1669 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
1671         * config/arm/crypto.md:
1672         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
1673         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
1674         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
1675         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
1676         * config/arm/arm.c
1677         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
1678         * config/arm/aarch-common-protos.h
1679         (aarch_crypto_can_dual_issue): Remove.
1680         * config/arm/aarch-common.c
1681         (aarch_crypto_can_dual_issue): Likewise.
1682         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
1683         * config/arm/cortex-a53.md: Likewise.
1684         * config/arm/cortex-a57.md: Likewise.
1685         * config/arm/iterators.md:
1686         (CRYPTO_BINARY): Redefine.
1687         (CRYPTO_UNARY): Removed.
1688         (CRYPTO_AES, CRYPTO_AESMC): New.
1690 2019-07-09  Richard Biener  <rguenther@suse.de>
1692         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
1693         (vn_reference_lookup_3): If the main ref has no access path recorded
1694         but orig_ref has use it to do access-path based disambiguation.
1695         (vn_reference_lookup_pieces): Adjust.
1696         (vn_reference_lookup): Pass down original ref if we valueized.
1698 2019-07-09  Martin Liska  <mliska@suse.cz>
1700         * doc/extend.texi: Document influence on loop
1701         optimizers.
1703 2019-07-09  Martin Liska  <mliska@suse.cz>
1705         * lto-compress.c (lto_normalized_zstd_level): Do not use
1706         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
1707         of libzstd.  One can use 0 as a default compression level.
1709 2019-07-09  Martin Liska  <mliska@suse.cz>
1711         * doc/invoke.texi: Add link from -fprofile-dir option.
1712         Use better wording for 'gcno filename'.
1714 2019-07-08  Martin Sebor  <msebor@redhat.com>
1716         PR middle-end/71924
1717         PR middle-end/90549
1718         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
1719         comment.
1720         (args_loc_t): New type.
1721         (args_loc_t, locmap_t): same.
1722         (diag_returned_locals): New function.
1723         (is_addr_local): Same.
1724         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
1725         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
1726         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
1728 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
1730         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
1731         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
1732         and casts in offset when different, both through gimple stmts
1733         and through trees.  Rewritten using loops to minimize code duplication
1734         for each operand.
1736 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1738         * emit-rtl.c (set_insn_locations): New function moved from...
1739         * function.c (set_insn_locations): ...here.
1740         * ira-emit.c (emit_moves): Propagate location of the first instruction
1741         to the inserted move instructions.
1742         * reg-stack.c (compensate_edge): Set the location if the sequence is
1743         inserted on the edge.
1744         * rtl.h (set_insn_locations): Declare.
1746 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
1748         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
1749         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
1750         .machine string.
1752 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
1754         PR rtl-optimization/88233
1755         * common.opt (fsplit-wide-types-early): New option.
1756         * common/config/rs6000/rs6000-common.c
1757         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
1758         OPT_LEVELS_ALL.
1759         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
1760         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
1761         flag_split_wide_types_early.
1762         (pass_data_lower_subreg3): New.
1763         (pass_lower_subreg3): New.
1764         (make_pass_lower_subreg3): New.
1765         * passes.def (pass_lower_subreg2): Move after the loop passes.
1766         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
1767         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
1768         the pass pipeline; its previous place is taken by ...
1769         (make_pass_lower_subreg3): ... this.
1771 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
1773         * config/s390/s390.c (s390_shift_truncation_mask): Define.
1774         (TARGET_SHIFT_TRUNCATION_MASK): Define.
1776 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
1778         * config/s390/constraints.md: Add new jsc constraint.
1779         * config/s390/predicates.md: New predicates.
1780         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
1781         * config/s390/s390.c (s390_valid_shift_count): New function.
1782         (print_shift_count_operand): Use s390_valid_shift_count.
1783         (print_operand): Likewise.
1784         * config/s390/s390.md: Use new predicate.
1785         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
1786         * config/s390/vector.md: Use new predicate.
1788 2019-07-08  Joern Rennecke  <joern.rennecke@riscy-ip.com>
1790         Avoid clash with system header declaration.
1791         * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
1792         Remove unused declaration.
1794 2019-07-08  Andrew Waterman  <andrew@sifive.com>
1795             Jim Wilson  <jimw@sifive.com>
1797         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
1798         bitsize instead of BITS_PER_WORD.
1799         gcc/testsuite/
1801 2019-07-08  Martin Liska  <mliska@suse.cz>
1803         * collect2.c (defined): Revert to before r254460.
1804         (scan_prog_file): Revert to before r254460.
1806 2019-07-08  Richard Biener  <rguenther@suse.de>
1808         PR tree-optimization/83518
1809         * tree-ssa-sccvn.c: Include splay-tree.h.
1810         (struct pd_range, struct pd_data): New.
1811         (struct vn_walk_cb_data): Add data to track partial definitions.
1812         (vn_walk_cb_data::~vn_walk_cb_data): New.
1813         (vn_walk_cb_data::push_partial_def): New.
1814         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
1815         (vn_reference_lookup_2): When partial defs are registered give up.
1816         (vn_reference_lookup_3): Track partial defs for memset and
1817         constructor zeroing and for defs from constants.
1819 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
1821         * doc/install.texi (bootstrap-Og): Document.
1823 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
1825         * config/riscv/pic.md (*local_pic_load_s<mode>)
1826         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
1827         referenced by <mode>, giving...
1828         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
1829         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
1830         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
1831         use <X:MODE> for the mode attribute.
1833 2019-07-07  Jeff Law  <law@redhat.com>
1835         PR tree-optimization/91090
1836         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
1837         in handling of ranges to simplify switch statements.
1839 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
1841         * config/darwin.c (darwin_override_options): Make a final check on PIC
1842         options.
1844 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
1846         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
1847         on for kernel code.
1849 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
1851         PR target/91068
1852         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
1853         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
1854         instead of matching them to "l" output operands.
1856 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
1858         * config/mips/mips.c (mips_split_move): Zero-initialize addr
1859         and check whether addr.reg is nonnull before using it.
1861 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
1863         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
1864         ctx->for_simd_scan_phase simd copy the outer var to the privatized
1865         variable(s).  For conditional lastprivate look through outer
1866         GIMPLE_OMP_SCAN context.
1867         (lower_omp_1): For conditional lastprivate look through outer
1868         GIMPLE_OMP_SCAN context.
1870         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
1871         member to combined_into_simd_safelen1.
1872         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
1873         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
1874         clauses if ctx->combined_into_simd_safelen1 put statements after the
1875         predicate conditionalized block rather than into it.
1877 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1879         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
1880         operand 1.
1881         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
1882         Make the choice of <mode> explicit, giving...
1883         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
1885 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1887         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
1888         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
1889         of .md attributes.
1890         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
1891         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
1892         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
1893         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
1894         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
1895         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
1896         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
1897         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
1898         (*avx512f_scatterdi<mode>): Likewise.
1899         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
1901 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1903         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
1904         specify the mode iterator referenced by <mode>, giving...
1905         (*push1_h8300hs_<QHI:mode>): ...this.
1907 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1909         * config/gcn/gcn-valu.md
1910         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
1911         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
1912         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
1913         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
1914         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
1915         but using the _exec comparison patterns.
1916         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
1917         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
1918         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
1919         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
1920         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
1921         but using the _exec comparison patterns.
1923 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1925         * config/arm/sync.md
1926         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
1927         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
1928         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
1929         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
1930         <SIDI:cas_cmp_str>.
1932 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
1934         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
1935         (maybe_lookup_ctx): Add forward declaration.
1936         (omp_find_scan): Likewise.  Walk into body of simd if composited
1937         with worksharing loop.
1938         (scan_omp_simd_scan): New function.
1939         (scan_omp_1_stmt): Call it.
1940         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
1941         ctx->for_simd_scan_phase.
1942         (lower_rec_input_clauses): Do much less work for inscan reductions
1943         in ctx->for_simd_scan_phase is_simd regions.
1944         (lower_omp_scan): Set is_simd also on simd constructs composited
1945         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
1946         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
1947         emit their body after in simd constructs composited with worksharing
1948         loop.
1949         (lower_omp_for_scan): Handle worksharing loop composited with simd.
1951         * omp-low.c (omp_find_scan): Make static.
1952         (lower_omp_for_scan): Fix order of merge arguments in input phase of
1953         the second loop, var2 represents the first partial sum and so needs
1954         to go before rprivb[ivar].
1956 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
1958         * config/rs6000/rs6000-logue.c: Remove unused code.
1960 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
1962         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
1964 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
1966         PR target/90712
1967         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
1968         check with a frame laid out check.
1970 2019-07-05  Richard Biener  <rguenther@suse.de>
1972         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
1973         when comparing against a store with possibly the same value.
1975 2019-07-05  Richard Biener  <rguenther@suse.de>
1977         PR tree-optimization/91091
1978         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
1979         (walk_non_aliased_vuses): Likewise.
1980         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
1981         (get_continuation_for_phi): New tbaa_p parameter and pass
1982         it down.
1983         (walk_non_aliased_vuses): Likewise.
1984         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
1985         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
1986         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
1987         Likewise.
1988         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
1989         (adjust_offsets_for_equal_base_address): New function.
1990         (vn_reference_lookup_3): Use it to catch more base equivalences.
1991         Handle and pass down tbaa_p flag.
1992         (vn_reference_lookup_pieces): Adjust.
1993         (vn_reference_lookup): Remove alias-set altering, instead pass
1994         down false as tbaa_p.
1996 2019-07-05  Richard Biener  <rguenther@suse.de>
1998         PR tree-optimization/91091
1999         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
2000         accesses can happen with -fno-strict-aliasing.
2002 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
2004         * tree-ssa-alias.c (alias_stats): Add
2005         nonoverlapping_component_refs_since_match_p_must_overlap.
2006         (dump_alias_stats): Print it.
2007         (nonoverlapping_component_refs_since_match_p): Add early exit.
2008         (nonoverlapping_component_refs_p): Do not account early exit.
2010 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2012         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
2013         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
2014         (emit_eh_dispatch): Delete.
2015         (lower_catch): Emit the eh_dispatch manually and set the location of
2016         the first catch statement onto it.
2017         (lower_eh_filter): Emit the eh_dispatch manually and set location.
2018         (lower_eh_dispatch): Propagate location.
2019         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
2020         (eliminate_build): Likewise.
2022 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2024         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
2025         phi nodes if possible.
2026         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
2027         location info on the newly created statement.
2028         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
2029         newly created increment if needed.
2031 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2033         PR middle-end/78884
2034         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
2035         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
2036         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
2037         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
2038         ctx->add_safelen1 is set.
2040         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
2041         GOMP_loop_start at the start of second worksharing loop in a scan.
2042         For nowait, don't emit GOMP_loop_end_nowait at the end of first
2043         worksharing loop in a scan even if there are conditional lastprivates,
2044         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
2046 2019-07-04  Jan Hubicka  <jh@suse.cz>
2048         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2049         Fix check for match in the ref walk.
2051 2019-07-04  Martin Liska  <mliska@suse.cz>
2053         * tree-ssa-loop-niter.c (get_upper_bound_based_on_builtin_expr_with_prob):
2054         New function.
2055         (estimate_numbers_of_iterations):
2056         Support __builtin_expect_with_probability for analysis
2057         of # of loop iterations.
2059 2019-07-04  Alexandre Oliva <oliva@adacore.com>
2061         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
2062         * except.c: Likewise.
2063         * expr.c (expand_expr_real_1): Reject it.
2064         * gimplify.c (gimplify_expr): Gimplify it, within
2065         TRY_FINALLY_EXPR.
2066         * tree-dump.c (dequeue_and_dump): Dump it.
2067         * tree-pretty-print.c (dump_generic_node): Likewise.
2068         * tree.c (block_may_fallthru): Handle it.
2069         * tree.def (EH_ELSE_EXPR): Introduce it.
2070         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
2071         with GIMPLE_EH_ELSE as try/finally/else.
2073 2019-07-04  Richard Biener  <rguenther@suse.de>
2075         PR ipa/91062
2076         * tree-pass.h (execute_all_ipa_transforms): Add a flag
2077         parameter whether to disable GC collection.
2078         * passes.c (execute_one_ipa_transform_pass): Likewise, and
2079         honor it.
2080         (execute_all_ipa_transforms): Likewise and pass it down.
2081         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
2082         collection from applying IPA transforms.
2083         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
2084         from applying IPA transforms.
2086 2019-07-04  Richard Biener  <rguenther@suse.de>
2088         PR tree-optimization/90911
2089         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
2090         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
2091         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2092         scalar_loop_scaling.
2093         (vect_transform_loop): Scale scalar loop profile if needed.
2094         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
2095         the loop copy from if-conversion adjust edge probabilities
2096         and scale the vectorized loop body profile, queue the scalar
2097         profile for updating after peeling.
2099 2019-07-04  Jan Hubicka  <jh@suse.cz>
2101         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
2102         parameters; return early for must-alias.
2103         (indirect_ref_may_alias_decl_p): Likewise; when establishing
2104         outer types match, try nonoverlapping_component_refs
2105         if must-alias is not obvious.
2106         (indirect_refs_may_alias_p): Likewise.
2107         (refs_may_alias_p_2): Likewise.
2109 2019-07-04  Richard Biener  <rguenther@suse.de>
2111         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
2112         argument.
2113         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
2114         globals into...
2115         (struct vn_walk_cb_data): New callback data struct.
2116         (vn_reference_lookup_2): Adjust.
2117         (vn_reference_lookup_3): Likewise.
2118         (vn_reference_lookup_pieces): Likewise.
2119         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
2120         (visit_reference_op_load): Adjust.
2122 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2124         PR tree-optimization/91063
2125         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
2126         stmt from stmts sequence before calling vect_init_vector_1.
2127         Formatting fix.
2129 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2131         PR target/88833
2132         * fwprop.c (reg_single_def_p): New function.
2133         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
2134         (forward_propagate_into): New parameter reg_prop_only
2135         with default value false.
2136         Propagate def's src into loop only if SET_SRC and SET_DEST
2137         of def_set have single definitions.
2138         Likewise if reg_prop_only is set to true.
2139         (fwprop): New param fwprop_addr_p.
2140         Integrate fwprop_addr into fwprop.
2141         (fwprop_addr): Remove.
2142         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
2143         to true.
2144         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
2145         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
2146         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
2148 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2150         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
2151         in worksharing loop scans.
2153         PR tree-optimization/91074
2154         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
2155         temporary.
2157         PR rtl-optimization/90756
2158         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
2159         for VECTOR_TYPE_P.
2161 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
2163         * config/aarch64/aarch64.md: Remove redundant constraints from
2164         define_expand but keep some patterns untouched if they are
2165         specially selected by TARGET_SECONDARY_RELOAD hook.
2166         * config/aarch64/aarch64-sve.md: Likewise.
2167         * config/aarch64/atomics.md: Remove redundant constraints from
2168         define_expand.
2169         * config/aarch64/aarch64-simd.md: Likewise.
2171 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
2173         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
2174         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
2175         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
2176         clauses.
2177         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
2178         DARWIN_NOPIE_SPEC.
2180 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
2182         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
2183         (STARTFILE_SPEC): Split crt3 into a separate spec.
2184         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
2185         (DARWIN_CRT2_SPEC): New.
2186         (DARWIN_CRT3_SPEC): New.
2187         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
2188         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
2189         (DARWIN_CRT3_SPEC): New.
2191 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
2193         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
2194         Change the RTL attribute "length" from "4" to "*" to allow the
2195         length attribute to be adjusted automatically for prefixed load,
2196         store, and add immediate instructions.
2197         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
2198         Likewise.
2199         (extendsi<mode>2, EXTSI iterator): Likewise.
2200         (movsi_internal1): Likewise.
2201         (movsi_from_sf): Likewise.
2202         (movdi_from_sf_zero_ext): Likewise.
2203         (mov<mode>_internal): Likewise.
2204         (movcc_internal1, QHI iterator): Likewise.
2205         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
2206         (movsf_from_si): Likewise.
2207         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
2208         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
2209         (mov<mode>, FMOVE128 iterator): Likewise.
2210         (movdi_internal64): Likewise.
2211         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
2212         Likewise.
2213         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
2214         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
2215         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
2216         (vsx_splat_v4sf): Likewise.
2218 2019-07-03  Mark Wielaard  <mark@klomp.org>
2220         PR debug/90981
2221         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
2222         DW_AT_addr_base if there is actually a .debug_addr section with
2223         addresses.
2224         (output_addr_table): Add DWARF5 table header generation here after
2225         checking there are actually any addresses from...
2226         (dwarf2out_finish): ...here.
2227         * testsuite/g++.dg/pr90981.C: New test.
2229 2019-07-03  Richard Biener  <rguenther@suse.de>
2231         PR middle-end/91069
2232         * match.pd (vec_perm -> bit_insert): Fix element read from
2233         first vector.
2235 2019-07-03  Martin Liska  <mliska@suse.cz>
2237         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
2238         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
2239         condition.
2240         * generic-match-head.c: Include dbgcnt.h.
2241         * gimple-match-head.c: Likewise.
2243 2019-07-03  Martin Liska  <mliska@suse.cz>
2245         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
2246         (GCOV_COUNTER_V_TOPN): New.
2247         (GCOV_COUNTER_V_INDIR): Use _topn.
2248         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
2249         (GCOV_TOPN_VALUES): New.
2250         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
2251         (GCOV_TOPN_VALUES_COUNTERS): New.
2252         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
2253         * tree-profile.c:
2254         (gimple_init_gcov_profiler): Rename variables from one_value
2255         to topn_values.
2256         (gimple_gen_one_value_profiler): Remove.
2257         (gimple_gen_topn_values_profiler): New function.
2258         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
2259         names instead of SINGLE_VALUE.
2260         (stream_out_histogram_value): Likewise.
2261         (stream_in_histogram_value): Likewise.
2262         (get_most_common_single_value): Likewise.
2263         (gimple_divmod_fixed_value_transform): Likewise.
2264         (gimple_stringops_transform): Likewise.
2265         (gimple_divmod_values_to_profile): Likewise.
2266         (gimple_stringops_values_to_profile): Likewise.
2267         (gimple_find_values_to_profile): Likewise.
2268         * value-prof.h (enum hist_type): Rename to TOPN.
2269         (gimple_gen_one_value_profiler): Remove.
2270         (gimple_gen_topn_values_profiler): New.
2272 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2274         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
2275         if it has the DW_AT_data_member_location attribute.
2277 2019-07-03  Richard Biener  <rguenther@suse.de>
2279         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
2280         dumping.
2282 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
2284         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
2285         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
2286         (tlsdesc_small_sve_<mode>): Likewise.
2288 2019-07-03  Martin Liska  <mliska@suse.cz>
2290         * Makefile.in: Define ZSTD_LIB.
2291         * common.opt: Adjust compression level
2292         to support also zstd levels.
2293         * config.in: Regenerate.
2294         * configure: Likewise.
2295         * configure.ac: Add --with-zstd and --with-zstd-include options
2296         and detect ZSTD.
2297         * doc/install.texi: Mention zstd dependency.
2298         * gcc.c: Print supported LTO compression algorithms.
2299         * lto-compress.c (lto_normalized_zstd_level): Likewise.
2300         (lto_compression_zstd): Likewise.
2301         (lto_uncompression_zstd): Likewise.
2302         (lto_end_compression): Dispatch in between zlib and zstd.
2303         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
2304         (lto_uncompression_zlib): Make it static.
2305         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
2306         * lto-section-in.c (lto_get_section_data): Pass info
2307         about used compression.
2308         * lto-streamer-out.c: By default use zstd when possible.
2309         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
2310         (TV_IPA_LTO_COMPRESS): Likewise for compression.
2312 2019-07-03  Martin Liska  <mliska@suse.cz>
2314         * lto-section-in.c (lto_get_section_data): Add "lto" section.
2315         * lto-section-out.c (lto_destroy_simple_output_block): Never
2316         compress LTO_section_lto section.
2317         * lto-streamer-out.c (produce_asm): Do not set major_version
2318         and minor_version.
2319         (lto_output_toplevel_asms): Likewise.
2320         (produce_lto_section): New function.
2321         (lto_output): Call produce_lto_section.
2322         (lto_write_mode_table): Do not set major_version and
2323         minor_version.
2324         (produce_asm_for_decls): Likewise.
2325         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
2326         type.
2327         (struct lto_header): Remove.
2328         (struct lto_section): New struct.
2329         (struct lto_simple_header): Do not inherit from lto_header.
2330         (struct lto_file_decl_data): Add lto_section_header field.
2332 2019-07-03  Martin Liska  <mliska@suse.cz>
2334         * lra-eliminations.c (eliminate_regs_in_insn): Remove
2335         dead assignemts.
2336         * reg-stack.c (check_asm_stack_operands): Likewise.
2337         * tree-ssa-structalias.c (create_function_info_for): Likewise.
2338         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2339         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
2340         force_expand_binop.
2342 2019-07-03  Martin Liska  <mliska@suse.cz>
2344         PR tree-optimization/90892
2345         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
2346         in string constants.
2348 2019-07-03  Martin Liska  <mliska@suse.cz>
2350         PR middle-end/90899
2351         * multiple_target.c (create_dispatcher_calls): Add to comdat
2352         group only if set for ifunc.
2354 2019-07-03  Martin Liska  <mliska@suse.cz>
2356         PR target/88056
2357         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2358         Define local_object_name in outer scope in order to handle
2359         use-after-scope issue.
2361 2019-07-03  Martin Liska  <mliska@suse.cz>
2363         * common.opt: Add fprofile-note.
2364         * coverage.c (coverage_init): Append the option
2365         to bbg_file_name.
2366         * doc/invoke.texi: Document -fprofile-note.
2368 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
2370         PR tree-optimization/91033
2371         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
2372         vect_analyze_data_refs): Add bool * arguments.
2373         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
2374         if failure is due to scatter/gather, set *fatal to false if non-NULL.
2375         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2376         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
2377         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
2378         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
2379         vect_analyze_data_refs caller.
2381         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
2382         clause.
2383         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
2384         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
2385         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
2386         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2387         OMP_CLAUSE__SCANTEMP_ entry.
2388         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
2389         * tree-pretty-print.c (dump_omp_clause): Likewise.
2390         * tree-nested.c (convert_nonlocal_omp_clauses,
2391         convert_local_omp_clauses): Likewise.
2392         * omp-general.h (struct omp_for_data): Add have_scantemp and
2393         have_nonctrl_scantemp members.
2394         * omp-general.c (omp_extract_for_data): Initialize them.
2395         * omp-low.c (struct omp_context): Add scan_exclusive member.
2396         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
2397         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
2398         ctx->scan_exclusive.
2399         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
2400         of !ctx->scan_inclusive.
2401         (lower_rec_input_clauses): Simplify gimplification of dtors using
2402         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
2403         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
2404         loops.  Don't add barrier for reduction_omp_orig_ref if
2405         ctx->scan_??xclusive.
2406         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
2407         (lower_omp_scan): Use ctx->scan_exclusive instead
2408         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
2409         reductions.  Use new_vard != new_var instead of repeated
2410         omp_is_reference calls.
2411         (omp_find_scan, lower_omp_for_scan): New functions.
2412         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
2413         inscan reductions.
2414         * omp-expand.c (expand_omp_scantemp_alloc): New function.
2415         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
2416         and fd->have_scantemp.
2418         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
2419         on worksharing loop propagate it as shared clause to containing
2420         combined parallel.
2422         * omp-expand.c (expand_omp_for_static_nochunk,
2423         expand_omp_for_static_chunk): For nowait worksharing loop with
2424         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
2425         at the end.
2427 2019-07-02  Joern Rennecke  <joern.rennecke@riscy-ip.com>
2429         PR testsuite/91065
2430         * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
2431         to reference fake_var.
2433 2019-07-02  qing zhao  <qing.zhao@oracle.com>
2435         PR preprocessor/90581
2436         * doc/cppopts.texi: Add document for -fmax-include-depth.
2437         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
2439 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2441         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
2442         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
2443         (mmx_packssdw): Ditto.
2444         (mmx_punpckhbw): Ditto.
2445         (mmx_punpcklbw): Ditto.
2446         (mmx_punpckhwd): Ditto.
2447         (mmx_punpcklwd): Ditto.
2448         (mmx_punpckhdq): Ditto.
2449         (mmx_punpckldq): Ditto.
2450         (*vec_dupv4hi): Ditto.
2451         (*vec_dupv2si): Ditto.
2452         (mmx_pmovmskb): Ditto.
2453         * config/i386/sse.md (sse_cvtpi2ps): Use
2454         TARGET_SSE2 && SSE_REG_P in split condition.
2455         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
2456         TARGET_SSSE3 && SSE_REGNO_P in split condition.
2457         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
2458         (ssse3_pshufbv8qi3): Ditto.
2459         (ssse3_palignrdi): Ditto.
2461 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
2463         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
2464         with inlined save and restore.
2466 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2468         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
2469         to be inserted on single successor edge of the entry block.  Then call
2470         commit_edge_insertions instead of inserting the instructions manually.
2471         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
2472         RTL expansion and rebuild jump labels chain.
2474 2019-07-02  Richard Biener  <rguenther@suse.de>
2476         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
2477         TI_CHREC_KNOWN.
2478         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2479         Define here.
2480         * tree.c (build_common_tree_nodes): Initialize them.
2481         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2482         Make declarations comments.
2483         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
2484         chrec_known): Remove definitions.
2485         (initialize_scalar_evolutions_analyzer): Remove.
2486         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
2487         * tree-streamer.c (preload_common_nodes): Do not preload
2488         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
2490 2019-07-02  Jan Hubicka  <jh@suse.cz>
2492         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
2493         sanity check.
2495 2019-07-02  Jan Hubicka  <jh@suse.cz>
2497         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
2498         to ..
2499         (nonoverlapping_component_refs_since_match_p): ... this one;
2500         handle also non-decl bases; return -1 if search gave up.
2501         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
2502         nonoverlapping_component_refs_of_decl_p_no_alias to
2503         nonoverlapping_component_refs_since_match_p_may_alias,
2504         nonoverlapping_component_refs_since_match_p_no_alias.
2505         (dump_alias_stats): Update dumping.
2506         (aliasing_matching_component_refs_p):  Break out from ...;
2507         dispatch to nonoverlapping_component_refs_for_decl_p
2508         and nonoverlapping_component_refs_since_match_p.
2509         (aliasing_component_refs_p): ... here; call
2510         nonoverlapping_component_refs_p in scenarios where we can not
2511         precisely determine base match.
2512         (decl_refs_may_alias_p): Use
2513         nonoverlapping_component_refs_since_match_p.
2514         (indirect_ref_may_alias_decl_p): Do not call
2515         nonoverlapping_component_refs_p.
2516         (indirect_refs_may_alias_p): Likewise.
2518 2019-07-02  Jan Hubicka  <jh@suse.cz>
2520         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
2521         to clobber of return value.
2523 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2525         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
2526         for is_neon_type instructions that have not already been categorized.
2528 2019-07-02  Richard Biener  <rguenther@suse.de>
2530         PR tree-optimization/58483
2531         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
2532         for MEM_REF base hashing.
2533         (equal_mem_array_ref_p): Likewise for base comparison.
2535 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2537         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
2538         parameterized name.
2539         (signbit<mode>2): Use that name.  Simplify.
2541 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
2543         PR middle-end/66726
2544         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
2545         Tune heuristic from PR71016 to allow MIN / MAX.
2546         * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
2548 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2550         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
2551         parameterized name.
2552         (abs<mode>2): Use that name.  Simplify.
2554 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2556         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
2557         parameterized name.
2558         (neg<mode>2): Use that name.  Simplify.
2560 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2562         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
2563         name.
2564         (abs<mode>2): Use that name.  Simplify.
2566 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2568         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
2569         name.
2570         (neg<mode>2): Use that name.  Simplify.
2572 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2574         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
2575         ("enabled" attribute): Handle sse_noavx isa attribute.
2576         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
2577         Use TARGET_SSE && SSE_REGNO_P in split condition.
2578         (*vec_dupv2sf): Ditto.
2580 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2582         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
2583         name.
2584         (floatsi<mode>2): Use that name.  Simplify.
2586 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2588         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
2589         parameterized name.
2590         (extenddf<mode>2_vsx): Make this a parameterized name.
2591         (extenddf<mode>2): Use those names.  Simplify.
2593 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2595         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
2596         name.
2597         (eh_return): Use that name.  Simplify.
2599 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2601         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
2602         (doloop_end): Use that name.  Simplify.
2604 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2606         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
2607         parameterized name.
2608         (indirect_jump): Use that name.  Simplify.
2610 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2612         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
2613         parameterized name.
2614         (abs<mode>2): Use that name.  Simplify.
2616 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2618         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
2619         parameterized name.
2620         (fix_trunc<mode>si2): Use that name.  Simplify.
2622 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2624         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
2625         (allocate_stack): Use that name.  Simplify.
2627 2019-07-01  Martin Sebor  <msebor@redhat.com>
2629         PR middle-end/90923
2630         * hash-map.h (hash_map::put): On insertion invoke element ctor.
2631         (hash_map::get_or_insert): Same.  Reformat comment.
2632         * hash-set.h (hash_set::add): On insertion invoke element ctor.
2633         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
2634         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
2635         * hash-table.h (hash_table::operator=): Prevent copy assignment.
2636          (hash_table::hash_table (const hash_table&)): Use copy ctor
2637          instead of assignment to copy elements.
2639 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
2640             John David Anglin  <danglin@gcc.gnu.org>
2642         PR target/90963
2643         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
2644         using saved frame pointer.
2646 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2648         PR middle-end/64242
2649         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
2650         Add frame clobber and schedule blockage.
2652 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
2654         * doc/invoke.texi (Link Options): Further editorial changes to
2655         -flinker-output docs.
2657 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2659         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
2660         Load both operands of a PLUS into registers separately.
2662 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
2664         * config/s390/vector.md: Fix shift count operand printing.
2666 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2668         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
2670 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2672         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
2673         Use recog_data to test for an output operand.
2675 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2677         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
2678         exclude any others that are disparaged or that are bound to need
2679         a reload or spill.
2680         (ira_get_dup_out_num): Expand comment.
2682 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2684         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
2685         constraint string for each operand/alternative combo.  Only handle
2686         '%' at the start of constraint strings, and look for it outside
2687         the main loop.
2689 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2691         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
2692         alternative_mask instead of HARD_REG_SET to represent a
2693         bitmask of alternatives.
2694         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
2695         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
2697 2019-07-01  Martin Liska  <mliska@suse.cz>
2699         * edit-context.c (test_applying_fixits_unreadable_file): Do not
2700         use () for a constructor call.
2701         (test_applying_fixits_line_out_of_range): Likewise.
2702         * ggc-page.c (alloc_page): Use (void *) for %p printf format
2703         argument.
2704         (free_page): Likewise.
2706 2019-07-01  Vladislav Ivanishin <vlad@ispras.ru>
2708         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
2709         parameter names to match usage (no functional change).
2710         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
2712 2019-07-01  Richard Biener  <rguenther@suse.de>
2714         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
2715         pass parameter.
2716         (pass_fre::execute): Honor it.
2717         * passes.def: Adjust pass_fre invocations to allow iterating,
2718         add non-iterating pass_fre before late threading/dom.
2720 2019-07-01  Richard Biener  <rguenther@suse.de>
2722         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
2723         TARGET_MEM_REF handling to also handle address-taken ones.
2725 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
2727         * doc/sourcebuild.texi (Effective-Target Keywords, Other
2728         hardware attributes): Document avx512vp2intersect.
2730 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2732         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
2733         (abs<mode>2): New expander.
2734         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
2735         Use CODE_FOR_ssse3_absv8qi2.
2736         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
2737         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
2739 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2741         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
2742         to sse, sse_noavx and avx.  Update all uses.
2744 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2746         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
2747         (*mmx_<plusminus_insn><mode>3): Ditto.
2748         (*mmx_mulv4hi3"): Ditto.
2749         (*mmx_smulv4hi3_highpart): Ditto.
2750         (*mmx_umulv4hi3_highpart): Ditto.
2751         (*mmx_pmaddwd): Ditto.
2752         (*sse2_umulv1siv1di3): Ditto.
2753         (*mmx_<code>v4hi3): Ditto.
2754         (*mmx_<code>v8qi3): Ditto.
2755         (mmx_ashr<mode>3): Ditto.
2756         ("mmx_<shift_insn><mode>3): Ditto.
2757         (*mmx_eq<mode>3): Ditto.
2758         (mmx_gt<mode>3): Ditto.
2759         (mmx_andnot<mode>3): Ditto.
2760         (*mmx_<code><mode>3): Ditto.
2761         (*mmx_pinsrw): Ditto.
2762         (*mmx_pextrw): Ditto.
2763         (mmx_pshufw_1): Ditto.
2764         (*mmx_uavgv8qi3): Ditto.
2765         (*mmx_uavgv4hi3): Ditto.
2766         ("mmx_psadbw): Ditto.
2767         * config/i386/sse.md (sse_cvtps2pi): Ditto.
2768         (sse_cvttps2pi): Ditto.
2769         (ssse3_pmaddubsw): Ditto.
2770         (*ssse3_pmulhrswv4hi3): Ditto.
2771         (ssse3_psign<mode>3): Ditto.
2773 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2775         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
2776         adjustment for bit-fields to all aggregate types.
2778 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
2780         * config/rs6000/predicates.md (pcrel_address):  Use
2781         SYMBOL_REF_LOCAL_P to determine if a label is local.
2782         (pcrel_external_address): New predicate.
2783         (non_prefixed_mem_operand): Delete, predicate not used.
2784         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
2785         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
2786         addressing.
2787         (SYMBOL_REF_PCREL_P): Likewise.
2789         PR target/91009
2790         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
2791         alternative.
2792         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
2793         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
2794         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
2796 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
2798         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
2799         override on extra_headers.
2801 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
2803         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
2804         * config/darwin-driver.c (darwin_default_min_version): Remove newline
2805         from warning.
2806         (darwin_driver_init): Likewise.
2808 2019-06-28  Jan Beulich  <jbeulich@suse.com>
2810         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
2811         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
2812         Eliminate redundant alternative.
2814 2019-06-28  Jan Beulich  <jbeulich@suse.com>
2816         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
2817         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
2818         Use vector_operand.
2820 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
2822         * config/arc/arc.c (arc_rtx_costs): All short instructions are
2823         having a lower cost regardless of the speed option.
2825 2019-06-28  Jan Beulich  <jbeulich@suse.com>
2827         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
2828         vector_operand plus, on both alternatives, "Bm" constraint.
2830 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
2832         * config/arm/arm.md: Remove redundant constraints from
2833         define_expand but leave reload_inm and reload_outm patterns
2834         untouched since they need special constraints to work.
2835         * config/arm/arm-fixed.md: Remove redundant constraints from
2836         define_expand.
2837         * config/arm/iwmmxt.md: Likewise.
2838         * config/arm/neon.md: Likewise.
2839         * config/arm/sync.md: Likewise.
2840         * config/arm/thumb1.md: Likewise.
2841         * config/arm/vec-common.md: Likewise.
2843 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
2845         * doc/install.texi: Document --disable-tm-clone-registry.
2847 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
2849         PR c++/91024
2850         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
2851         statements.
2853         PR tree-optimization/91010
2854         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
2855         return true.  Otherwise, don't call operand_equal_p if offset1 or
2856         offset2 is NULL and just return false.
2858 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
2860         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
2861         user-specified float mode choice for kernel mode code.
2863 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
2865         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
2866         spec.
2868 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
2870         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
2871         use longcall for 64b code.
2873 2019-06-27  Aaron Sawdey <acsawdey@linux.ibm.com>
2875         * builtins.c (get_memory_rtx): Fix comment.
2876         * optabs.def (movmem_optab): Change to cpymem_optab.
2877         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
2878         (emit_block_move_hints): Change movmem to cpymem.
2879         * defaults.h: Change movmem to cpymem.
2880         * targhooks.c (get_move_ratio): Change movmem to cpymem.
2881         (default_use_by_pieces_infrastructure_p): Ditto.
2882         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
2883         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
2884         to cpymem.
2885         * config/aarch64/aarch64.h: Change movmem to cpymem.
2886         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
2887         * config/alpha/alpha.h: Change movmem to cpymem in comment.
2888         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
2889         movmem to cpymem.
2890         * config/arc/arc-protos.h: Change movmem to cpymem.
2891         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
2892         * config/arc/arc.h: Change movmem to cpymem in comment.
2893         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
2894         * config/arm/arm-protos.h: Change movmem to cpymem in names.
2895         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi, 
2896         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
2897         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
2898         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
2899         * config/avr/avr-protos.h: Change movmem to cpymem.
2900         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
2901         avr_out_movmem): Change movmem to cpymem.
2902         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
2903         Change movmem to cpymem.
2904         * config/bfin/bfin-protos.h: Change movmem to cpymem.
2905         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
2906         Change movmem to cpymem.
2907         * config/bfin/bfin.h: Change movmem to cpymem in comment.
2908         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
2909         * config/c6x/c6x-protos.h: Change movmem to cpymem.
2910         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
2911         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
2912         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
2913         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
2914         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
2915         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
2916         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
2917         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
2918         expand_small_cpymem_or_setmem,
2919         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
2920         expand_set_or_cpymem_constant_prologue, 
2921         ix86_expand_set_or_cpymem): Change movmem to cpymem.
2922         * config/i386/i386-protos.h: Change movmem to cpymem.
2923         * config/i386/i386.h: Change movmem to cpymem in comment.
2924         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
2925         (setmem<mode>): Change expansion function name.
2926         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
2927         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
2928         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
2929         * config/m32c/m32c-protos.h: Change movmem to cpymem.
2930         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
2931         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
2932         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
2933         to cpymem.
2934         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
2935         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
2936         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
2937         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
2938         Change movmem to cpymem.
2939         * config/mips/mips.h: Change movmem to cpymem.
2940         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
2941         * config/nds32/nds32-memory-manipulation.c
2942         (nds32_expand_movmemsi_loop_unknown_size,
2943         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
2944         nds32_expand_movmemsi_unroll,
2945         nds32_expand_movmemsi): Change movmem to cpymem.
2946         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
2947         * config/nds32/nds32-protos.h: Change movmem to cpymem.
2948         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
2949         (pa_adjust_insn_length): Change call to compute_movmem_length.
2950         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
2951         movmemdi, movmemdi_prereload, 
2952         movmemdi_postreload): Change movmem to cpymem.
2953         * config/pdp11/pdp11.md (movmemhi, movmemhi1, 
2954         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
2955         * config/riscv/riscv.c: Change movmem to cpymem in comment.
2956         * config/riscv/riscv.h: Change movmem to cpymem.
2957         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
2958         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
2959         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
2960         movmem to cpymem.
2961         * config/s390/s390-protos.h: Change movmem to cpymem.
2962         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
2963         s390_expand_insv): Change movmem to cpymem.
2964         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
2965         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
2966         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
2967         * config/sparc/sparc.h: Change movmem to cpymem in comment.
2968         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
2969         for nonexistent function.
2970         * config/vax/vax.h: Change movmem to cpymem in comment.
2971         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
2972         * config/visium/visium.h: Change movmem to cpymem in comment.
2973         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
2974         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
2975         * doc/md.texi: Change movmem to cpymem and update description to match.
2976         * doc/rtl.texi: Change movmem to cpymem.
2977         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
2978         * doc/tm.texi: Regenerate.
2980 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
2982         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
2983         -fvariable-expansion-in-unroller by default.
2984         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
2985         default for Power.
2987 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
2989         Revert
2990         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
2991         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
2993         * config.gcc(rs6000-*-*): Define target_gtfiles.
2995 2019-06-27  Jan Hubicka  <jh@suse.cz>
2997         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
2998         (add_type_duplicate): When odr hash is not allocated, to nothing.
2999         (odr_based_tbaa_p): New function.
3000         (set_type_canonical_for_odr_type): New function.
3001         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
3002         set_type_canonical_for_odr_type): New.
3003         * tree.c (gimple_canonical_types_compatible_p): ODR types with
3004         ODR based TBAA are not equivalent to non-ODR types.
3006 2019-06-27  Martin Liska  <mliska@suse.cz>
3008         PR tree-optimization/90974
3009         PR rtl-optimization/90975
3010         PR rtl-optimization/90976
3011         PR target/91016
3012         PR tree-optimization/91017
3013         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
3014         unused tmp.
3015         * lra.c (lra_set_insn_recog_data): Remove a leftover from
3016         initial commit of IRA.
3017         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
3018         of op0 and op1.
3019         * tree-vect-loop.c (vect_create_epilog_for_reduction):
3020         Remove unused mode1.
3021         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
3022         to new_stmt_info.
3024 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
3026         PR target/90991
3027         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
3028         instead of register_operand for operands[1], add m to its constraints
3029         if operands[2] uses "C" constraint.  Ensure in condition that if
3030         operands[2] is not 0, then operands[1] is not a MEM.  For last two
3031         alternatives, use unaligned loads instead of aligned if operands[1] is
3032         misaligned_operand.
3034 2019-06-27  Martin Liska  <mliska@suse.cz>
3036         * asan.c (asan_emit_allocas_unpoison): Remove obviously
3037         dead assignments.
3038         * bt-load.c (move_btr_def): Likewise.
3039         * builtins.c (expand_builtin_apply_args_1): Likewise.
3040         (expand_builtin_apply): Likewise.
3041         * cfgexpand.c (expand_asm_stmt): Likewise.
3042         (construct_init_block): Likewise.
3043         * cfghooks.c (verify_flow_info): Likewise.
3044         * cfgloopmanip.c (remove_path): Likewise.
3045         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
3046         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
3047         * combine.c (simplify_if_then_else): Likewise.
3048         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
3049         (choose_basereg): Likewise.
3050         (ix86_expand_prologue): Likewise.
3051         (ix86_preferred_output_reload_class): Likewise.
3052         * cselib.c (cselib_record_sets): Likewise.
3053         * df-scan.c (df_scan_alloc): Likewise.
3054         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
3055         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
3056         * emit-rtl.c (try_split): Likewise.
3057         * graphite-scop-detection.c (assign_parameter_index_in_region): Likewise.
3058         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3059         * ira-color.c (setup_profitable_hard_regs): Likewise.
3060         * ira.c (rtx_moveable_p): Likewise.
3061         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3062         * read-rtl.c (read_subst_mapping): Likewise.
3063         * regrename.c (scan_rtx): Likewise.
3064         * reorg.c (fill_slots_from_thread): Likewise.
3065         * tree-inline.c (tree_function_versioning): Likewise.
3066         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
3067         * tree-ssa-sink.c (statement_sink_location): Likewise.
3068         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3069         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
3070         (vect_create_epilog_for_reduction): Likewise.
3071         * tree.c (build_nonstandard_integer_type): Likewise.
3073 2019-06-27  Richard Biener  <rguenther@suse.de>
3075         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
3077 2019-06-27  Jun Ma <JunMa@linux.alibaba.com>
3079         PR tree-optimization/89772
3080         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
3081         out-of-bound accesses checking.
3083 2019-06-27  Martin Liska  <mliska@suse.cz>
3085         PR tree-optimization/91014
3086         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
3087         when LHS is NULL_TREE.
3089 2019-06-27  Martin Liska  <mliska@suse.cz>
3091         * symbol-summary.h (traverse): Pass
3092         argument a to the call of callback.
3093         (gt_ggc_mx): Mark arguments as unused.
3094         (gt_pch_nx): Likewise.
3096 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
3098         PR target/62147
3099         * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
3100         finiteness.
3102 2019-06-26  Jeff Law  <law@redhat.com>
3104         PR tree-optimization/90883
3105         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
3106         (delete_dead_or_redundant_assignment): Likewise.
3108         PR tree-optimization/90883
3109         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
3110         * tree-ssa-dse.c: Update various comments to distinguish between
3111         dead and redundant stores.
3112         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
3113         (dse_optimize_redundant_stores): New function.
3114         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
3115         Distinguish between dead and redundant calls in dump output.  All
3116         callers updated.
3117         (delete_dead_or_redundant_assignment): Similarly for assignments.
3118         (dse_optimize_stmt): Handle _CHK variants.  For statements which
3119         store 0 into multiple memory locations, try to prove a subsequent
3120         store is redundant.
3122 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3124         PR target/89021
3125         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
3126         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
3128 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
3130         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
3131         (branch_islands): New extern.
3132         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
3133         * config/rs6000/rs6000.c: .. here.
3135 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
3137         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
3138         (powerpc*-*-*) ... to here.
3140 2019-06-26  Jeff Law  <law@redhat.com>
3142         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
3143         memcpy, memmove and memset builtins.
3144         (maybe_trim_memstar_call): Likewise.
3146 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3148         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
3150 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3152         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3154 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3156         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
3157         declaration.
3158         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
3159         "static".
3160         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
3161         declaration.
3163 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3165         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
3167 2019-06-26  Richard Biener  <rguenther@suse.de>
3169         PR ipa/90982
3170         * tree-inline.c (remap_ssa_name): Copy SSA range info.
3172 2019-06-26  Richard Biener  <rguenther@suse.de>
3174         * lto-streamer.h (lto_bitmap_alloc): Remove.
3175         (lto_bitmap_free): Likewise.
3176         * lto-streamer.c (lto_bitmap_alloc): Remove.
3177         (lto_bitmap_free): Likewise.
3178         (lto_obstack): Likewise.
3179         (lto_obstack_initialized): Likewise.
3180         * lto-streamer-out.c (lto_output): Use own obstack for local
3181         bitmap, free it consistently.
3183 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
3185         PR target/90991
3186         * config/i386/sse.md
3187         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
3188         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
3189         insns if operands[2] is misaligned_operand.
3191 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
3193         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
3194         TARGET_POWERPC64.
3195         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
3196         to GPR.
3198 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3200         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
3202 2019-06-26  Martin Liska  <mliska@suse.cz>
3204         PR tree-optimization/90973
3205         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
3206         epilogue_cost_vec instead of prologue_cost_vec for
3207         a epilogue cost.
3209 2019-06-26  Martin Liska  <mliska@suse.cz>
3211         * bb-reorder.c (connect_better_edge_p): Add missing else
3212         statement in the middle of if-else statements.
3214 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored to 'is_better_edge' is never read
3215         is_better_edge = true;
3216         ^                ~~~~
3217 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1034:2: warning: Value stored to 'is_better_edge' is never read
3218         is_better_edge = false;
3219         ^                ~~~~~
3221 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
3222             H.J. Lu  <hongjiu.lu@intel.com>
3223             Olga Makhotina  <olga.makhotina@intel.com>
3225         * common/config/i386/i386-common.c
3226         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
3227         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
3228         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
3229         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
3230         (ix86_handle_option): Handle -mavx512vp2intersect.
3231         * config/i386/avx512vp2intersectintrin.h: New.
3232         * config/i386/avx512vp2intersectvlintrin.h: New.
3233         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
3234         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3235         AVX512VP2INTERSECT.
3236         * config/i386/i386-builtin-types.def: Add new types.
3237         * config/i386/i386-builtin.def: Add new builtins.
3238         * config/i386/i386-builtins.c: (enum processor_features): Add
3239         F_AVX512VP2INTERSECT.
3240         (static const _isa_names_table isa_names_table): Ditto.
3241         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3242         __AVX512VP2INTERSECT__.
3243         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
3244         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
3245         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
3246         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
3247         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
3248         * config/i386/i386-options.c (ix86_target_string): Add
3249         -mavx512vp2intersect.
3250         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
3251         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
3252         P2HImode and P2QImode.
3253         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
3254         number for P2QImode and P2HImode.
3255         (ix86_regmode_natural_size): New function.
3256         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
3257         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
3258         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
3259         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
3260         * config/i386/i386.opt: Add -mavx512vp2intersect.
3261         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
3262         avx512vp2intersectvlintrin.h.
3263         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
3264         (define_mode_iterator VI48_AVX512VP2VL): New.
3265         (avx512vp2intersect_2intersect<mode>,
3266         avx512vp2intersect_2intersectv16si): New define_insn patterns.
3267         * config.gcc: Add avx512vp2intersectvlintrin.h and
3268         avx512vp2intersectintrin.h to extra_headers.
3269         * doc/invoke.texi: Document -mavx512vp2intersect.
3271 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
3273         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
3275 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3277         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
3278         savres_routine_syms, savres_routine_name, morestack_ref,
3279         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3280         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3281         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3282         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3283         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3284         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3285         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3286         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3287         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3288         get_stack_clash_protection_probe_interval,
3289         get_stack_clash_protection_guard_size,
3290         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3291         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3292         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3293         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3294         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3295         gen_frame_mem_offset, rs6000_savres_routine_name,
3296         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3297         ptr_regno_for_savres, rs6000_emit_savres_rtx,
3298         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3299         rs6000_global_entry_point_prologue_needed_p,
3300         rs6000_get_separate_components, rs6000_components_for_bb,
3301         rs6000_disqualify_components, rs6000_emit_prologue_components,
3302         rs6000_emit_epilogue_components, rs6000_set_handled_components,
3303         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3304         rs6000_output_savres_externs, rs6000_output_function_prologue,
3305         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3306         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3307         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3308         rs6000_output_function_epilogue, gen_add3_const,
3309         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3310         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3311         to rs6000-logue.c.
3312         (machine_function): Moved to rs6000.h.
3313         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
3314         rs6000-internal.h.
3315         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
3316         savres_routine_syms, savres_routine_name, morestack_ref,
3317         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3318         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3319         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3320         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3321         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3322         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3323         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3324         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3325         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3326         get_stack_clash_protection_probe_interval,
3327         get_stack_clash_protection_guard_size,
3328         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3329         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3330         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3331         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3332         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3333         gen_frame_mem_offset, rs6000_savres_routine_name,
3334         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3335         ptr_regno_for_savres, rs6000_emit_savres_rtx,
3336         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3337         rs6000_global_entry_point_prologue_needed_p,
3338         rs6000_get_separate_components, rs6000_components_for_bb,
3339         rs6000_disqualify_components, rs6000_emit_prologue_components,
3340         rs6000_emit_epilogue_components, rs6000_set_handled_components,
3341         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3342         rs6000_output_savres_externs, rs6000_output_function_prologue,
3343         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3344         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3345         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3346         rs6000_output_function_epilogue, gen_add3_const,
3347         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3348         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3349         to here from rs6000.c.
3350         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
3351         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
3352         quad_address_offset_p) Moved to here from rs6000.c.
3353         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
3354         * config/config.gcc: Add new source file rs6000-logue.c to garbage
3355         collector.
3357 2019-06-25  Martin Liska  <mliska@suse.cz>
3359         * hash-table.c (hashtab_chk_error): Move here from ...
3360         * hash-table.h (hashtab_chk_error): ... here.
3362 2019-06-25  Martin Liska  <mliska@suse.cz>
3364         PR tree-optimization/90978
3365         * df-scan.c (df_update_entry_block_defs): Remove dead else
3366         branch.
3367         (df_update_exit_block_uses): Likewise.
3369 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
3370             Andrew Stubbs  <ams@codesourcery.com>
3372         * config.gcc (thread_file): Set to gcn for AMD GCN.
3373         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
3374         (TARGET_EMUTLS_VAR_INIT): New hook.
3376 2019-06-25  Martin Jambor  <mjambor@suse.cz>
3378         PR ipa/90939
3379         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
3381 2019-06-25  Richard Biener  <rguenther@suse.de>
3383         PR tree-optimization/90930
3384         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
3385         into parallel form in the last pass instance.
3387 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
3389         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
3390         (arc_legitimize_pic_address): Simplify and cleanup the function.
3391         (SYMBOLIC_CONST): Remove.
3392         (prepare_pic_move): Likewise.
3393         (prepare_move_operands): Handle complex mov cases here.
3394         (arc_legitimize_address_0): Remove call to
3395         arc_legitimize_pic_address.
3396         (arc_legitimize_address): Remove call to
3397         arc_legitimize_tls_address.
3398         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
3399         (movhi_insn): Likewise.
3401 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3403         * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
3404         alternate "__intN__" name for "__intN" types.
3405         * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
3406         * gcc/cp/lex.c (init_reswords): Likewise.
3407         * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
3408         PTRDIFF_TYPE.
3409         * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
3410         * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
3411         C incompatibility if alternate "__intN__" form is used.
3412         * gcc/cp/decl.c (grokdeclarator): Likewise.
3413         * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
3414         decl_specs->int_n_alt if "__intN__" form is used.
3415         * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
3416         format of "__intN" types for UINTMAX_TYPE.
3417         * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
3418         format of "__intN" types for SIZE_TYPE.
3419         * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
3420         * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
3421         format of "__intN" types for SIZETYPE.
3422         * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
3423         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
3424         * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
3425         warnings.
3427 2019-06-25  Jan Hubicka  <jh@suse.cz>
3429         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
3430         base2_alias_set is non-zero before doing TBAA based disambiguation.
3432 2019-06-25  Martin Liska  <mliska@suse.cz>
3434         PR tree-optimization/90973
3435         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
3436         of prologue and epilogue.
3438 2019-06-24  Jan Hubicka  <jh@suse.cz>
3440         * ipa-utils.h (type_with_linkage_p): Verify that type is
3441         CXX_ODR_P.
3442         (odr_type_p): Remove extra return.
3443         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
3444         hash STRING_FLAG only for arrays and integers.
3445         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
3446         Update analogously.
3447         * tree-streamer-out.c (pack_ts_type_common_value_fields):
3448         Likewise.
3449         * print-tree.c (print_node): Print cxx-odr-p
3450         and string-flag.
3451         * tree.c (need_assembler_name_p): Also check that type
3452         is CXX_ODR_TYPE_P
3453         (verify_type_variant): Update verification of SRING_FLAG;
3454         also check CXX_ODR_P.
3455         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
3456         (TYPE_STRING_FLAG): Use it.
3457         (TYPE_CXX_ODR_P): New macro.
3458         * dwarf2out.c (gen_array_type_die): First check that type
3459         is an array and then test string flag.
3461 2019-06-24  Richard Biener  <rguenther@suse.de>
3463         PR tree-optimization/90972
3464         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
3465         in common code, dealing with STRING_CST properly.
3467 2019-06-24  Richard Biener  <rguenther@suse.de>
3469         PR tree-optimization/90930
3470         PR tree-optimization/90316
3471         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
3472         decrement of limit.
3474 2019-06-24  Martin Sebor  <msebor@redhat.com>
3476         * tree-pretty-print.h: Remove unnecessary punctuation characters
3477         from a diagnostic.
3478         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
3480 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
3482         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
3483         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
3484         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
3486 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
3488         * config/rs6000/darwin.h: Handle GCC target pragma.
3490 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
3492         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
3494 2019-06-22  Jeff Law  <law@redhat.com>
3496         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3498 2019-06-22  Jan Hubicka  <jh@suse.cz>
3500         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
3501         give up on bitfields; continue searching for different refs
3502         appearing later.
3504 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
3506         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3507         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
3508         containing the offset as possible simd lane access.  Look through
3509         widening conversion.  Move the
3510         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
3512 2019-06-21  Richard Biener  <rguenther@suse.de>
3514         PR tree-optimization/90930
3515         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
3516         flag on new stmts to avoid re-processing them.
3518 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
3520         PR c++/90875 - added -Wswitch-outside-range option
3521         * doc/invoke.texi (Wswitch-outside-range): Document.
3523 2019-06-21  Jeff Law  <law@redhat.com>
3525         PR tree-optimization/90949
3526         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
3527         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
3529 2019-06-21  Richard Biener  <rguenther@suse.de>
3531         PR debug/90914
3532         * dwarf2out.c (prune_unused_types_walk): Always consider
3533         function-local extern declarations as used.
3535 2019-06-21  Richard Biener  <rguenther@suse.de>
3537         PR tree-optimization/90913
3538         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
3539         the scalar variant of if-conversion versioning.
3541 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
3543         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
3544         create another "omp scan inscan exclusive" array if
3545         !ctx->scan_inclusive.
3546         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
3547         (lower_omp_scan): Likewise.
3548         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
3549         2-bit bitfield for simd_lane_access_p member.
3550         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
3551         aux == (void *)-4 as simd lane access.
3552         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
3553         comment with permutations to show the canonical permutation order.
3554         (vectorizable_scan_store): Handle exclusive scan.
3555         (vectorizable_store): Call vectorizable_scan_store even for
3556         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
3558         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3559         "omp simd array" arrays with one byte elements.
3561 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3563         * config/alpha/alpha.md (@unaligned_store<mode>):
3564         Rename from unaligned_store<mode>.
3565         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
3566         * config/alpha/sync.md (@load_locked_<mode>): Rename
3567         from load_locked_<mode>.
3568         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
3569         (@atomic_compare_and_swap<mode>_1): Rename
3570         from atomic_compare_and_swap<mode>_1.
3571         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
3572         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
3573         Use gen_reload_in_aligned and gen_unaligned_store.
3574         (emit_load_locked): Remove.
3575         (emit_store_conditional): Ditto.
3576         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
3577         (alpha_split_compare_and_swap): Ditto.
3578         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
3579         (alpha_split_compare_and_swap_12): Use gen_load_locked
3580         and gen_store_conditional.
3581         (alpha_split_atomic_exchange): Ditto.
3582         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
3583         (alpha_split_atomic_exchange_12): Use gen_load_locked
3584         and gen_store_conditional.
3586 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
3588         * config/aarch64/aarch64-errata.h: New file.
3589         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
3590         (CA53_ERR_843419_SPEC): Delete.
3591         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
3592         * config/aarch64/aarch64-linux.h: Likewise.
3593         * config/aarch64/aarch64-netbsd.h: Likewise.
3594         * config/aarch64/aarch64-freebsd.h: Likewise.
3596 2019-06-20  Marek Polacek  <polacek@redhat.com>
3598         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
3600 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
3602         * config/rs6000/rs6000.md (isa attribute): Add support for
3603         for a future processor.
3605 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3607         PR target/54855
3608         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
3609         standard scalar operation pattern for V2DF.
3610         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
3611         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
3612         (*ieee_<ieee_maxmin><mode>3): Likewise.
3613         (vec_setv2df_0): Likewise.
3615 2019-06-20  Jan Hubicka  <jh@suse.cz>
3617         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
3618         parameter; it has no use in gimple memory model.
3619         (indirect_ref_may_alias_decl_p): Update.
3621 2019-06-20  Martin Liska  <mliska@suse.cz>
3623         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
3624         to 10.
3626 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
3628         * tree-vect-stmts.c (enum scan_store_kind): New type.
3629         (scan_store_can_perm_p): Change last argument from int * to
3630         vec<enum scan_store_kind> *, record precisely which permutations
3631         need whole vector left shift or that plus VEC_COND_EXPR.
3632         (vectorizable_scan_store): Adjust caller, use whole vector left shift
3633         and additional VEC_COND_EXPR only for those iterations that need it.
3635 2019-06-20  Alexandre Oliva <oliva@adacore.com>
3637         * config.gcc: Fix ARM --with-fpu checking and error message.
3639 2019-06-19  Marek Polacek  <polacek@redhat.com>
3641         PR c++/60364 - noreturn after first decl not diagnosed.
3642         * attribs.c (get_attribute_namespace): No longer static.
3643         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
3644         attributes.
3645         (attr_noreturn_exclusions): Make it extern.
3646         * attribs.h (get_attribute_namespace): Declare.
3647         * tree-inline.c (function_attribute_inlinable_p): Use
3648         get_attribute_name.
3650 2019-06-19  Martin Sebor  <msebor@redhat.com>
3652         PR tree-optimization/90626
3653         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
3655         PR tree-optimization/90626
3656         * tree-ssa-strlen.c (strxcmp_unequal): New function.
3657         (handle_builtin_string_cmp): Call it.
3659 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
3661         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
3662         and DARWIN_NOPIE_SPEC.
3663         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
3664         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
3665         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
3666         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
3667         (DARWIN_EXPORT_DYNAMIC): Delete.
3668         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
3669         and pie options processing to  darwin.h.
3670         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
3672 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
3674         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
3675         in computing the number of options to be moved.
3677 2019-06-19  Maya Rashish  <coypu@sdf.org>
3679         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
3680         (CLEAR_INSN_CACHE) Use it.
3682 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3684         * config/i386/i386.md (cmpstrnsi): Remove dead code.
3686 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
3688         PR middle-end/84521
3689         * builtins.c (expand_builtin_setjmp_setup): Save
3690         hard_frame_pointer_rtx.
3691         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
3692         restore fp.
3693         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
3694         non-local goto.
3695         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
3696         elimination code.
3697         (remove_reg_equal_offset_note): Remove unused function.
3698         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
3699         code.
3700         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3701         (arc_builtin_setjmp_frame_value): Remove function.
3702         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3703         (avr_builtin_setjmp_frame_value): Remove function.
3704         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3705         (ix86_builtin_setjmp_frame_value): Remove function.
3706         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
3707         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3708         (sparc_builtin_setjmp_frame_value): Remove function.
3709         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3710         (vax_builtin_setjmp_frame_value): Remove function.
3711         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
3712         pointer if has_nonlocal_label.
3714 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
3716         * doc/md.texi: Document vec_shl_<mode> pattern.
3717         * optabs.def (vec_shl_optab): New optab.
3718         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
3719         argument, if == vec_shl_optab, check for left whole vector shift
3720         pattern rather than right shift.
3721         (expand_vec_perm_const): Add vec_shl_optab support.
3722         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
3723         in the comment.
3724         * tree-vect-generic.c (lower_vec_perm): Support permutations which
3725         can be handled by vec_shl_optab.
3726         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
3727         (check_scan_store): Use it.
3728         (vectorizable_scan_store): If target can't do normal permutations,
3729         try to use whole vector left shifts and if needed a VEC_COND_EXPR
3730         after it.
3731         * config/i386/sse.md (vec_shl_<mode>): New expander.
3733         * omp-low.c (lower_rec_input_clauses): Handle references properly
3734         in inscan clauses.
3735         (lower_omp_scan): Likewise.
3737 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
3739         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
3740         mem_mode is BLKmode.
3742 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
3744         PR target/90922
3745         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
3746         pointer adjustment for the case of no callee-saved registers and
3747         stack frame bigger than 128 bytes.
3749 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
3751         PR middle-end/90862
3752         * omp-low.c (check_omp_nesting_restrictions): Handle
3753         GF_OMP_TARGET_KIND_OACC_DECLARE.
3755 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3757         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
3758         (@add<mode>3_carry): Rename from add<mode>3_carry.
3759         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
3760         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
3761         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
3762         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
3763         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
3764         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
3765         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
3766         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
3767         (cmpstrnsi): Use gen_cmp_1.
3768         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
3769         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
3770         (@umonitor_<mode>): Rename from umonitor_<mode>.
3771         * config/i386/i386-expand.c (ix86_expand_copysign):
3772         Use gen_copysign3_const and gen_copysign3_var.
3773         (ix86_expand_xorsign): Use gen_xorsign3_1.
3774         (ix86_expand_branch): Use gen_sub3_carry_ccc,
3775         gen_sub3_carry_ccgz and gen_cmp1.
3776         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
3777         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
3778         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
3779         (ix86_split_lshr): Ditto.
3780         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
3782 2019-06-18  Jason Merrill  <jason@redhat.com>
3784         * tree.c (build_constructor): Add MEM_STAT_DECL.
3786 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3788         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
3789         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
3790         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
3791         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
3792         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
3793         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
3794         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
3795         Use CC_NZC instead of CC.
3796         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
3797         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
3798         (aarch64_print_operand): Handle E_CC_NZCmode.
3799         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
3800         of gen_set_clobber_cc.
3802 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3804         * config/aarch64/aarch64-sve.md: Tabify file.
3806 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3808         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
3809         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
3810         * config/aarch64/aarch64-sve.md: Use it.
3812 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3814         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
3815         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
3816         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
3817         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
3818         (aarch64_expand_sve_vec_cmp_int): Use it.
3819         (aarch64_expand_sve_vec_cmp_float): Likewise.
3820         * config/aarch64/aarch64-sve.md: Likewise throughout.
3822 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3823             Kugan Vivekanandarajah  <kuganv@linaro.org>
3825         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
3826         (*cond_<optab><mode>_z): Fold into...
3827         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
3828         operand 4 can be tied to operand 0 (either inherently or via RA).
3830 2019-06-18  Richard Biener  <rguenther@suse.de>
3832         PR debug/90900
3833         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
3834         as if optimized away.
3836 2019-06-18  Tom de Vries  <tdevries@suse.de>
3838         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
3839         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
3840         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
3841         Rename to ...
3842         (define_insn "@set_softstack_<mode>"): ... this.
3843         (define_insn "omp_simt_enter_<mode>"): Rename to ...
3844         (define_insn "@omp_simt_enter_<mode>"): ... this.
3845         (define_insn "omp_simt_exit_<mode>"): Rename to ...
3846         (define_insn "@omp_simt_exit_<mode>"): ... this.
3848 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3850         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
3851         vf parameter.  Restore the previous iv step of nscalars_step,
3852         but give it iv_type rather than compare_type.  Tweak code order
3853         to match the comments.
3854         (vect_set_loop_condition_masked): Update accordingly.
3855         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
3856         for iv_precision.  Tweak comment formatting.
3858 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
3860         * config/darwin.c: Strip trailing whitespace.
3862 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
3864         * config/darwin.c (darwin_emit_unwind_label): New default to false.
3865         (darwin_override_options): Set darwin_emit_unwind_label as needed.
3867 2019-06-18  Martin Jambor  <mjambor@suse.cz>
3869         PR ipa/90889
3870         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
3871         caller does not have flag_ipa_cp set.
3873 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
3875         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
3876         from "*fold_left_plus_<mode>", updated operands order.
3877         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
3878         * internal-fn.c (mask_fold_left_direct): New define.
3879         (expand_mask_fold_left_optab_fn): Likewise.
3880         (direct_mask_fold_left_optab_supported_p): Likewise.
3881         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
3882         * optabs.def (mask_fold_left_plus_optab): New optab.
3883         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
3884         masked internal_fn for a reduction ifn.
3885         (vectorize_fold_left_reduction): Add support for masking reductions.
3887 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
3889         PR middle-end/80791
3890         * target.def (predict_doloop_p): New hook.
3891         * targhooks.h (default_predict_doloop_p): New declaration.
3892         * targhooks.c (default_predict_doloop_p): New function.
3893         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
3894         * doc/tm.texi: Regenerate.
3895         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
3896         (TARGET_PREDICT_DOLOOP_P): New macro.
3897         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
3899 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
3901         * omp-low.c (struct omp_context): Add scan_inclusive field.
3902         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
3903         if inclusive scan.
3904         (struct omplow_simd_context): Add lastlane member.
3905         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
3906         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
3907         1 or 2 argument.
3908         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
3909         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
3910         (lower_omp_scan): New function.
3911         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
3912         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
3913         check 3rd argument if present rather than 2nd.
3914         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
3915         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
3916         2-bit bitfield.
3917         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
3918         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
3919         than 2nd.
3920         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
3921         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
3922         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
3923         init.
3924         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
3925         IFN_GOMP_SIMD_LANE argument.
3926         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
3927         encoded ->aux value.
3928         * tree-vect-stmts.c: Include attribs.h.
3929         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
3930         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
3931         functions.
3932         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
3933         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
3935 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3937         PR target/62055
3938         * config/i386/i386.md (*nabstf2_1): New insn pattern.
3939         (*nabs<mode>2_1): Ditto.
3940         (nabs sse-reg splitter): New splitter.
3941         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
3943 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
3945         PR bootstrap/90873.
3946         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3947         TMR index check.
3949 2019-06-17  Tom de Vries  <tdevries@suse.de>
3951         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
3952         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
3953         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
3954         ...
3955         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
3956         match_operand 0.
3957         (define_insn "omp_simt_enter_insn"): Rename to ...
3958         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
3959         match_operand 0, 1 and 2, as well as the unspec_volatile result.
3960         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
3961         gen_omp_simt_enter_si.
3962         (define_expand "omp_simt_exit"): New.
3963         (define_insn "omp_simt_exit"): Rename to ...
3964         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
3965         match_operand 0.
3967 2019-06-17  Matthew Green  <mrg@eterna.com.au>
3968             Maya Rashish  <coypu@sdf.org>
3970         * config.gcc (aarch64*-*-netbsd*): New target.
3971         * config/aarch64/aarch64-netbsd.h: New file.
3972         * config/aarch64/t-aarch64-netbsd: Likewise.
3974 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
3976         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
3977         the access path from base to first VIEW_CONVERT_EXPR or
3978         BIT_FIELD_REF.
3980 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
3982         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
3983         access path on BIT_FIELD_REFs.
3985 2019-06-17  Martin Liska  <mliska@suse.cz>
3987         PR ipa/90874
3988         * ipa-utils.h (odr_type_p): Remove dead code.
3990 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3992         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
3993         alternative Solaris 11.4 format.
3994         * configure: Regenerate.
3996 2019-06-17  Tom de Vries  <tdevries@suse.de>
3998         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
3999         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
4000         match_operand 0.
4001         (define_insn "call_value_insn"): Rename to ...
4002         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
4003         match_operand 0.
4004         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
4005         DI.
4007 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
4009         PR middle-end/64242
4010         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
4011         frame clobbers and schedule block.
4012         (builtin_longjmp): Likewise.
4014 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4016         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
4017         describe how to perform MSPABI compliant 64-bit shift.
4018         * config/msp430/msp430.md (ashldi3): New define_expand.
4019         (ashrdi3): New define_expand.
4020         (lshrdi3): New define_expand.
4022 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4024         * doc/sourcebuild.texi: Document new effective target keyword
4025         longlong64.
4027 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
4029         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
4030         indirect_refs_may_alias_p): Revert accidental commits.
4032         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
4033         at the end of structures.
4035 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
4037         * config/darwin.c (machopic_indirect_call_target): Use renamed
4038         darwin_picsymbol_stubs to decide on output.
4039         (darwin_override_options): Handle darwin_picsymbol_stubs.
4040         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
4041         (LD64_VERSION): Revise default.
4042         * config/darwin.opt: (mpic-symbol-stubs): New option.
4043         (darwin_picsymbol_stubs): New variable.
4044         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
4045         rename to TARGET_MACHO_PICSYM_STUBS.
4046         * config/i386/i386.c (output_pic_addr_const): Likewise.
4047         * config/i386/i386.h Likewise.
4048         * config/rs6000/darwin.h: Likewise.
4049         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
4050         darwin_picsymbol_stubs.
4052 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
4054         * config/darwin.opt (prebind, noprebind, seglinkedit,
4055         noseglinkedit): Add RejectNegative.
4057 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
4059         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
4060         in my previous patch.
4062 2019-06-16  Tom de Vries  <tdevries@suse.de>
4064         PR tree-optimization/89376
4065         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
4067 2019-06-15  Maya Rashish  <coypu@sdf.org>
4069         * doc/invoke.texi (Spec Files): Update location of the
4070         Fortran spec file.
4072 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
4074         * doc/extend.texi (Common Function Attributes): Clarify
4075         no_sanitize.  Fix grammar.
4077 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
4079         * tree-ssa-alias.c (alias_stats): Add
4080         nonoverlapping_component_refs_p_may_alias,
4081         nonoverlapping_component_refs_p_no_alias,
4082         nonoverlapping_component_refs_of_decl_p_may_alias,
4083         nonoverlapping_component_refs_of_decl_p_no_alias.
4084         (dump_alias_stats): Dump them.
4085         (nonoverlapping_component_refs_of_decl_p): Add stats.
4086         (nonoverlapping_component_refs_p): Add stats; do not stop on first
4087         ARRAY_REF.
4089 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4091         * config/i386/i386.md (and<mode>3): Generate zero-extends for
4092         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
4093         only.
4094         (*anddi3_doubleword): Split before reload. Merge with
4095         anddi->zext pre-reload splitter.
4096         (*andndi3_doubleword): Split before reload.
4097         (*<code>di3_doubleword): Ditto.
4098         (*one_cmpldi2_doubleword): Ditto.
4100 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4102         PR middle-end/90779
4103         * gimplify.c: Include omp-offload.h and context.h.
4104         (gimplify_bind_expr): Add "omp declare target" attributes
4105         to static block scope variables inside of target region or target
4106         functions.
4108 2019-06-15  Tom de Vries  <tdevries@suse.de>
4110         PR tree-optimization/90009
4111         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
4112         Return NULL if bb contains IFN_UNIQUE.
4114 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
4116         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
4117         (un): New define_mode_attr.
4118         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
4119         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
4120         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
4121         merge into ...
4122         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
4124 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
4126         * config/darwin.opt: Add RejectNegative where needed, reorder
4127         and add minimal functional descriptions.
4129 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4131         PR rtl-optimization/90765
4132         * calls.c (update_stack_alignment_for_call): New function.
4133         (expand_call): Call update_stack_alignment_for_call when
4134         outgoing parameter is passed in the stack.
4135         (emit_library_call_value_1): Likewise.
4136         * function.c (locate_and_pad_parm): Don't update
4137         stack_alignment_needed and preferred_stack_boundary.
4139 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4141         PR target/90877
4142         * config/i386/i386-features.c
4143         (dimode_scalar_chain::compute_convert_gain): Replace
4144         mmxsse_to_integer with sse_to_integer.
4145         * config/i386/i386.c (ix86_register_move_cost): Verify that
4146         moves between MMX and non-MMX units require secondary memory.
4147         Correct costs of moves between SSE and integer units.
4148         * config/i386/i386.h (processor_costs): Rename cost of moving
4149         SSE register to integer to sse_to_integer.  Rename cost of
4151 2019-06-14  Matt Thomas  <matt@3am-software.com>
4152             Matthew Green  <mrg@eterna.com.au>
4153             Nick Hudson  <skrll@netbsd.org>
4154             Maya Rashish  <coypu@sdf.org>
4155             Richard Earnshaw  <rearnsha@arm.com>
4157         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
4158         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
4159         * config/arm/netbsd-eabi.h: New file.
4160         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
4161         redefining.
4162         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
4163         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
4164         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
4165         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
4167 2019-06-14  Richard Biener  <rguenther@suse.de>
4169         * tree-loop-distribution.c (classify_partition): Return
4170         whether a reduction appeared in all partitions and do not
4171         stop builtin detection because of this.
4172         (distribute_loop): Sort a non-builtin partition last if
4173         there's a reduction in all partitions and make sure the
4174         partition prevailing as last is not a builtin.
4176 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
4178         PR ipa/90401
4179         * ipa-prop.c (add_to_agg_contents_list): New function.
4180         (clobber_by_agg_contents_list_p): Likewise.
4181         (extract_mem_content): Likewise.
4182         (get_place_in_agg_contents_list): Delete.
4183         (determine_known_aggregate_parts): Renamed from
4184         determine_locally_known_aggregate_parts.  New parameter
4185         aa_walk_budget_p.
4187 2019-06-13  Martin Sebor  <msebor@redhat.com>
4189         PR tree-optimization/90662
4190         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
4191         to the same type.
4193 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
4195         PR bootstrap/90873
4196         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
4197         dbase is not TARGET_MEM_REF.
4199 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4201         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
4202         Update all uses.
4203         (and<mode>3): Use gen_extend_insn instead of indirect functions.
4204         Do not generate DImode extends for 32bit targets.
4205         (and->zext post-reload splitter): Use gen_extend_insn
4206         instead of indirect functions.
4207         (anddi->zext pre-reload splitter): New.
4208         (*zext<mode>_doubleword_and): Remove.
4209         (*zext<mode>_doubleword): Ditto.
4210         (*zextsi_doubleword): Dittto.
4212 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4214         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
4215         Use gen_sub3_insn instead of indirect function.
4216         (ix86_expand_ashl_const): Use gen_add2_insn instead of
4217         indirect function.
4218         (ix86_adjust_counter): Ditto.
4220 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
4221             Lijia He  <helijia@linux.ibm.com>
4223         PR tree-optimization/77820
4224         * tree-ssa-threadedge.c
4225         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
4226         function.
4227         (thread_across_edge): Add call to
4228         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
4230 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
4232         * config/darwin-driver.c (validate_macosx_version_min): New.
4233         (darwin_default_min_version): Cleanup and validate supplied version.
4234         (darwin_driver_init): Likewise and push cleaned version into opts.
4236 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
4238         PR tree-optimization/90869
4239         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
4240         converts in MEM_REF referencing decl rather than view converts
4241         from decl type to MEM_REF type.
4243 2019-06-13  Richard Biener  <rguenther@suse.de>
4245         PR tree-optimization/90856
4246         * tree-sra.c (build_ref_for_model): Only use
4247         build_reconstructed_reference when address-spaces are the same.
4249 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
4251         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
4252         wrap ei variable name in the declaration in ()s.
4253         (nvptx_single): Actually use mode_label variable.  Formatting fix.
4255 2019-06-13  Richard Biener  <rguenther@suse.de>
4257         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
4258         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
4259         also return the condition stmt.
4260         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
4261         loop we can version and version that, reusing the loop version
4262         created by if-conversion instead of versioning again.
4264 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
4266         * gimple-loop-versioning.cc (prune_loop_conditions): Use
4267         may_contain_p.
4268         * tree-vrp (value_range_base::may_contain_p): Call into
4269         value_inside_range.
4270         (value_inside_range): Make private inside value_range_base class.
4271         Take min/max from *this.
4272         (range_includes_p): Remove.
4273         * tree-vrp.h (value_range_base): Add value_inside_range.
4274         (range_includes_p): Remove.
4275         (range_includes_zero_p): Call may_contain_p.
4276         * vr-values.c (compare_range_with_value): Same.
4278 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
4280         * doc/extend.texi (ARC Function Attributes): Update info.
4282 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4284         PR tree-optimization/89713
4285         * doc/invoke.texi (-ffinite-loops): Document new option.
4286         * common.opt (-ffinite-loops): New option.
4287         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
4288         IFN_GOACC_LOOP calls as necessary.
4289         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
4290         is finite.
4291         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
4292         IFN_GOACC_LOOP call is not used.
4293         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
4295 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4297         PR target/88838
4298         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
4299         compare_type is not with Pmode size, we will create an IV with
4300         Pmode size with truncated use (i.e. converted to the correct type).
4301         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
4302         (vect_iv_limit_for_full_masking): New. Factored out of
4303         vect_set_loop_condition_masked.
4304         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
4305         (vect_iv_limit_for_full_masking): Declare.
4307 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4309         PR target/88834
4310         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
4311         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
4312         (get_alias_ptr_type_for_ptr_address): Likewise.
4313         (add_iv_candidate_for_use): Add scaled index candidate if useful.
4314         * tree-ssa-address.c (preferred_mem_scale_factor): New.
4315         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
4316         allow_reg_index_p.
4318 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4320         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
4322 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
4324         * common/config/pru/pru-common.c: New file.
4325         * config.gcc: Add PRU target.
4326         * config/pru/alu-zext.md: New file.
4327         * config/pru/constraints.md: New file.
4328         * config/pru/predicates.md: New file.
4329         * config/pru/pru-opts.h: New file.
4330         * config/pru/pru-passes.c: New file.
4331         * config/pru/pru-pragma.c: New file.
4332         * config/pru/pru-protos.h: New file.
4333         * config/pru/pru.c: New file.
4334         * config/pru/pru.h: New file.
4335         * config/pru/pru.md: New file.
4336         * config/pru/pru.opt: New file.
4337         * config/pru/t-pru: New file.
4338         * doc/extend.texi: Document PRU pragmas.
4339         * doc/invoke.texi: Document PRU-specific options.
4340         * doc/md.texi: Document PRU asm constraints.
4342 2019-06-12  Martin Sebor  <msebor@redhat.com>
4344         PR middle-end/90676
4345         * tree-pretty-print.c (dump_mem_ref): New function.  Include
4346         MEM_REF type in output when different size than operand.
4347         (dump_generic_node): Move code to dump_mem_ref and call it.
4349 2019-06-12  Martin Sebor  <msebor@redhat.com>
4351         PR tree-optimization/90662
4352         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
4353         to arrays.
4355 2019-06-12  Tom de Vries  <tdevries@suse.de>
4357         PR tree-optimization/90009
4358         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
4360 2019-06-12  Martin Liska  <mliska@suse.cz>
4362         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
4363         the created map.
4364         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
4365         * mem-stats.h (mem_alloc_description::mem_alloc_description):
4366         Do not sanitize created maps.
4368 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
4370         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
4371         value_range::singleton_p.
4372         * tree-vrp.c (value_range_constant_singleton): Remove.
4373         * tree-vrp.h (value_range_constant_singleton): Remove.
4374         * vr-values.c (vr_values::singleton): Use
4375         value_range::singleton_p.
4377 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
4379         PR target/90811
4380         * cfgexpand.c (align_local_variable): Add really_expand argument,
4381         don't SET_DECL_ALIGN if it is false.
4382         (add_stack_var): Add really_expand argument, pass it through to
4383         align_local_variable.
4384         (expand_one_stack_var_1): Pass true as really_expand to
4385         align_local_variable.
4386         (expand_one_ssa_partition): Pass true as really_expand to
4387         add_stack_var.
4388         (expand_one_var): Pass really_expand through to add_stack_var.
4390 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
4392         * config/arm/iterators.md (VABAL): New int iterator.
4393         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
4394         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S, UNSPEC_VABAL_U
4395         values.
4397 2019-06-12  Martin Liska  <mliska@suse.cz>
4399         * value-prof.c (stream_out_histogram_value): Only first value
4400         can't be negative.
4402 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
4404         PR c/90760
4405         * symtab.c (symtab_node::set_section): Allow being called on aliases
4406         as long as they aren't analyzed yet.
4408 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
4410         * config/mips/mips.c (mips_final_postscan_insn): Modify call
4411         to `mips_set_text_contents_type' to indicate whether a
4412         non-debug insn follows.
4414 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
4416         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
4417         enabling -mpcrel by default.
4418         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
4419         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
4420         that the test against -mcpu=future is done first.  Then test if
4421         -mprefixed-addr is on for -mpcrel.
4422         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
4424 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4426         PR target/90811
4427         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
4428         instead of and.u%d.
4430 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
4432         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
4434 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
4436         PR c++/90449 - add -Winaccessible-base option.
4437         * doc/invoke.texi (Winaccessible-base): Document.
4439 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
4441         PR tree-optimization/62041
4442         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
4444 2019-06-11  Jason Merrill  <jason@redhat.com>
4446         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
4447         * tree.c (get_tree_code_name): Likewise.
4448         * print-tree.c (print_node): Only briefly print a node with an
4449         invalid code.
4451 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4453         PR bootstrap/90819
4454         * trans-mem.c (tm_memopt_compute_available): Add assertion
4455         that blocks is not empty.  Formatting fix.
4457 2019-06-11  Martin Liska  <mliska@suse.cz>
4459         PR c++/87847
4460         * hash-table.h: Extend create_gcc, add one parameter
4461         that is passed into hash_table::hash_table.
4463 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4465         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
4466         New prototype.
4467         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
4468         Emit clobber also for non-sse operations.
4469         (ix86_split_fp_absneg_operator): New function.
4470         * config/i386/i386.md (SSEMODEF): New mode iterator.
4471         (ssevecmodef): New mode attribute.
4472         (<code>tf2): Use absneg code iterator.
4473         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
4474         Add three-operand AVX alternatives.
4475         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
4476         Use absneg code iterator and X87MODEF mode iterator.
4477         (absneg fp_reg non-sse splitter): Call absneg code iterator
4478         and X87MODEF mode iterator.
4479         (absneg general_reg non-sse splitter): Use absneg code iterator
4480         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
4481         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
4482         code iterator.  Add three-operand AVX alternative.
4483         (absneg sse_reg splitter): Use absneg code iterator
4484         and SSEMODEF mode iterator.  Handle AVX operands.
4485         (absneg fp_reg splitter): Use absneg code iterator
4486         and MODEF mode iterator.
4487         (absneg general_reg splitter): Merge splitters using MODEF mode
4488         iterator.  Use absneg code iterator.  Call
4489         ix86_split_fp_absneg_operator.
4490         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
4491         Do not enable for non-sse modes before reload.
4492         (CSGNMODE): Remove.
4493         (CSGNVMODE): Ditto.
4494         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
4495         ssevecmodef mode attribute instaed of CSGNVMODE.
4496         (copysign<mode>3_const): Ditto.
4497         (copysign<mode>3_var): Ditto.
4498         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
4499         Use absneg code iterator.  Simplify code using std::swap.
4500         * config/i386/predicates.md (absneg_operator): Remove.
4502 2019-06-10  Martin Sebor  <msebor@redhat.com>
4504         * gimple-fold.c (get_range_strlen): Update comment that didn't
4505         make it into r267503 or related commits.
4507 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
4509         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
4510         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
4512 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
4514         * tree.def (OMP_SCAN): New tree code.
4515         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
4516         OMP_CLAUSE_EXCLUSIVE.
4517         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
4518         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
4519         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
4520         OMP_CLAUSE_{IN,EX}CLUSIVE.
4521         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4522         * tree-nested.c (convert_nonlocal_reference_stmt,
4523         convert_local_reference_stmt, convert_gimple_call): Handle
4524         GIMPLE_OMP_SCAN.
4525         * tree-pretty-print.c (dump_omp_clause): Handle
4526         OMP_CLAUSE_{IN,EX}CLUSIVE.
4527         (dump_generic_node): Handle OMP_SCAN.
4528         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
4529         * gimple.h (gomp_scan): New type.
4530         (is_a_helper <gomp_scan *>::test,
4531         is_a_helper <const gomp_scan *>::test): New templates.
4532         (gimple_build_omp_scan): Declare.
4533         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
4534         gimple_omp_scan_set_clauses): New inline functions.
4535         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
4536         * gimple.c (gimple_build_omp_scan): New function.
4537         (gimple_copy): Handle GIMPLE_OMP_SCAN.
4538         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
4539         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
4540         GIMPLE_OMP_TASKGROUP.
4541         (dump_gimple_omp_scan): New function.
4542         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
4543         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
4544         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
4545         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
4546         (is_gimple_stmt): Handle OMP_SCAN.
4547         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
4548         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4549         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
4550         mentioned in nested #pragma omp scan.  Handle
4551         OMP_CLAUSE_{IN,EX}CLUSIVE.
4552         (gimplify_expr): Handle OMP_SCAN.
4553         * omp-low.c (check_omp_nesting_restrictions): For parent context,
4554         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
4555         simd constructs.
4556         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
4557         GIMPLE_OMP_SCAN.
4559 2019-06-10  Martin Liska  <mliska@suse.cz>
4561         * ipa-cp.c (ignore_edge_p): New function.
4562         (build_toporder_info): Use it.
4563         * ipa-inline.c (ignore_edge_p): New function.
4564         (inline_small_functions): Use it.
4565         * ipa-pure-const.c (ignore_edge_for_nothrow):
4566         Verify opt_for_fn for caller and callee.
4567         (ignore_edge_for_pure_const): Likewise.
4568         * ipa-reference.c (ignore_edge_p): Extend to check
4569         for opt_for_fn.
4570         * ipa-utils.c (searchc): Refactor.
4571         * ipa-utils.h: Fix coding style.
4573 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
4575         * config/arc/arc.c (arc_rtx_costs): Update costs.
4577 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
4579         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
4580         (arc_split_ior): Likewise.
4581         (arc_check_mov_const): Likewise.
4582         (arc_split_mov_const): Likewise.
4583         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
4584         (arc_rtx_costs): Replace check Crr with Cax constraint.
4585         (prepare_move_operands): Cleanup, remove unused code.
4586         (arc_split_ior): New function.
4587         (arc_check_ior_const): Likewise.
4588         (arc_split_mov_const): Likewise.
4589         (arc_check_mov_const): Likewise.
4590         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
4591         in define_insn_and_split pattern.
4592         (iorsi3): Likewise.
4593         (mulsi3_v2): Add new matching variant.
4594         (andsi3_i): Cleanup pattern.
4595         (rotrsi3_cnt1): Update pattern.
4596         (rotrsi3_cnt8): New pattern.
4597         (ashlsi2_cnt8): Likewise.
4598         (ashlsi2_cnt16): Likewise.
4599         * config/arc/constraints.md (C0p): Update constraint.
4600         (Crr): Remove it.
4601         (C0x): New pattern.
4602         (Cax): New pattern.
4604 2019-06-10  Martin Liska  <mliska@suse.cz>
4606         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
4607         Update coding style.
4608         (sem_item_optimizer::dump_cong_classes):
4609         Print how many items are in a non-singular class.  Improve
4610         coding style.
4612 2019-06-10  Martin Liska  <mliska@suse.cz>
4614         * value-prof.c (dump_histogram_value): Change dump format.
4615         (gimple_mod_subtract_transform): Remove legacy comment.
4617 2019-06-10  Martin Liska  <mliska@suse.cz>
4619         * value-prof.c (dump_histogram_value): Print histogram values
4620         only if present.
4622 2019-06-10  Martin Liska  <mliska@suse.cz>
4624         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
4625         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
4626         * ipa-profile.c (ipa_profile_generate_summary):
4627         Use get_most_common_single_value.
4628         * tree-profile.c (gimple_init_gcov_profiler):
4629         Instrument with __gcov_one_value_profiler_v2
4630         and __gcov_indirect_call_profiler_v4.
4631         * value-prof.c (dump_histogram_value):
4632         Print all values for HIST_TYPE_SINGLE_VALUE.
4633         (stream_out_histogram_value): Update assert for
4634         N values.
4635         (stream_in_histogram_value): Set number of
4636         counters for HIST_TYPE_SINGLE_VALUE.
4637         (get_most_common_single_value): New.
4638         (gimple_divmod_fixed_value_transform):
4639         Use get_most_common_single_value.
4640         (gimple_ic_transform): Likewise.
4641         (gimple_stringops_transform): Likewise.
4642         (gimple_find_values_to_profile): Set number
4643         of counters for HIST_TYPE_SINGLE_VALUE.
4644         * value-prof.h (get_most_common_single_value):
4645         New.
4647 2019-06-10  Martin Liska  <mliska@suse.cz>
4649         * hash-map.h: Pass default value to hash_table ctor.
4650         * hash-table.h: Add default value to call of a ctor.
4652 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
4654         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
4655         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
4657 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
4659         PR target/90751
4660         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
4661         Call pa_output_function_label.
4662         (TARGET_ASM_FUNCTION_PROLOGUE): define.
4663         * config/pa/pa-protos.h (pa_output_function_label): Declare.
4664         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
4665         to declaration.
4666         (pa_linux_output_function_prologue): Declare.
4667         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
4668         (pa_output_function_label): New.
4669         (pa_output_function_prologue): Revise to use pa_output_function_label.
4670         (pa_linux_output_function_prologue): New.
4671         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
4673 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
4675         * tree-vrp.h (value_range_base::intersect): New.
4676         (value_range::intersect_helper): Move from here...
4677         (value_range_base::intersect_helper): ...to here.
4678         * tree-vrp.c (value_range::intersect_helper): Rename to...
4679         (value_range_base::intersect_helper): ...this, and rewrite to
4680         return a value instead of modifying THIS in place.
4681         Also, move equivalence handling...
4682         (value_range::intersect): ...here, while calling intersect_helper.
4683         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
4684         calling intersect.
4685         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
4686         Same.
4687         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
4689 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
4691         * Makefile.in (genprogerr): Add condmd.
4692         (genprog): Remove it here.
4694 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
4696         * doc/invoke.texi (AMD GCN Options): Add gfx906.
4698 2019-06-07  Richard Biener  <rguenther@suse.de>
4700         PR debug/90574
4701         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
4702         that appear after user labels.
4704 2019-06-07  Martin Liska  <mliska@suse.cz>
4706         * cselib.c (cselib_init): Disable hash table
4707         sanitization.
4708         * hash-set.h: Pass new default argument to m_table.
4709         * hash-table.c: Add global variable with hash table
4710         sanitization limit.
4711         * hash-table.h (Allocator>::hash_table): Add new argument
4712         to ctor.
4713         (hashtab_chk_error): New.
4714         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
4715         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
4716         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
4718 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
4720         * common.opt (flto-odr-type-merging): Ignore.
4721         * invoke.texi (-flto-odr-type-merging): Remove.
4722         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
4723         (can_be_vtable_hashed_p): Remove.
4724         (hash_odr_vtable): Remove.
4725         (odr_vtable_hasher::hash): Remove.
4726         (types_same_for_odr): Remove.
4727         (types_odr_comparable): Remove.
4728         (odr_vtable_hasher::equal): Remove.
4729         (odr_vtable_hash_type, odr_vtable_hash): Remove.        
4730         (add_type_duplicate): Do not synchronize vtable and name hashtables.
4731         (get_odr_type): Do not use vtable hash.
4732         (dump_odr_type): Remove commented out code.
4733         (build_type_inheritance_graph): Do not allocate vtable hash.
4734         (rebuild_type_inheritance_graph): Do not delete vtable hash.
4735         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
4736         (odr_type_p): Likewise.
4737         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
4738         test.
4740 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
4742         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
4743         immediately after same_types_for_tbaa_p returns -1 and continue
4744         looking for possible exact match; if matching types are arrays
4745         watch for partial overlaps.
4746         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
4747         (indirect_refs_may_alias_p): Do type based disambiguation first;
4748         update comment.
4750 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
4752         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
4754 2019-06-07  Martin Liska  <mliska@suse.cz>
4756         * doc/invoke.texi: Remove param.
4757         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
4758         Remove.
4759         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
4760         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
4761         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
4762         * profile.c (instrument_values): Remove
4763         HIST_TYPE_INDIR_CALL_TOPN.
4764         * tree-profile.c (init_ic_make_global_vars):
4765         Always build __gcov_indirect_call only.
4766         (gimple_init_gcov_profiler): Remove usage
4767         of PARAM_INDIR_CALL_TOPN_PROFILE.
4768         (gimple_gen_ic_profiler): Likewise.
4769         * value-prof.c (dump_histogram_value): Likewise.
4770         (stream_in_histogram_value): Likewise.
4771         (gimple_indirect_call_to_profile): Likewise.
4772         (gimple_find_values_to_profile): Likewise.
4773         * value-prof.h (enum hist_type): Likewise.
4775 2019-06-07  Martin Liska  <mliska@suse.cz>
4777         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
4778         function.
4780 2019-06-07  Martin Liska  <mliska@suse.cz>
4782         PR tree-optimization/78902
4783         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
4784         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
4785         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
4786         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
4787         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
4788         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
4789         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
4790         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
4791         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
4792         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
4793         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
4794         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST):  Remove.
4795         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
4796         New.
4797         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
4798         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
4799         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
4800         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
4801         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
4802         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
4803         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
4804         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
4805         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
4806         warn_unused_result attribute.
4807         (BUILT_IN_STRDUP): Likewise.
4808         (BUILT_IN_STRNDUP): Likewise.
4809         (BUILT_IN_ALLOCA): Likewise.
4810         (BUILT_IN_CALLOC): Likewise.
4811         (BUILT_IN_MALLOC): Likewise.
4812         (BUILT_IN_REALLOC): Likewise.
4814 2019-06-06  Jim Wilson  <jimw@sifive.com>
4816         PR target/89955
4817         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
4818         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
4819         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
4821 2019-06-06  Martin Sebor  <msebor@redhat.com>
4823         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
4824         (handle_builtin_malloc): Remove trailing spaces.
4825         (handle_builtin_memset): Same.
4826         (handle_builtin_memcmp): Same.
4827         (compute_string_length): Same.
4828         (determine_min_objsize): Same.
4829         (handle_builtin_string_cmp): Same.
4830         (handle_char_store): Same.  Break up excessively long line.
4832 2019-06-06  Martin Jambor  <mjambor@suse.cz>
4834         * tree-sra.c (build_reconstructed_reference): Drop the alignment
4835         check.
4837 2019-06-06  Martin Jambor  <mjambor@suse.cz>
4839         * tree-sra.c (struct access): New field grp_same_access_path.
4840         (dump_access): Dump it.
4841         (build_reconstructed_reference): New function.
4842         (build_ref_for_model): Use it if possible.
4843         (path_comparable_for_same_access): New function.
4844         (same_access_path_p): Likewise.
4845         (sort_and_splice_var_accesses): Set the new flag.
4846         (analyze_access_subtree): Likewise.
4847         (propagate_subaccesses_across_link): Propagate zero value of the new
4848         flag down the access tree.
4850 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
4852         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
4853         * config/gcn/gcn.opt (gpu_type): Add gfx906.
4854         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
4855         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
4856         Add gfx906.
4858 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4860         PR tree-optimization/90332
4861         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
4862         Handle VALS containing two vectors.
4863         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
4864         to...
4865         (@aarch64_combinez<mode>): ... This.
4866         (*aarch64_combinez_be<mode>): Rename to...
4867         (@aarch64_combinez_be<mode>): ... This.
4868         (vec_init<mode><Vhalf>): New define_expand.
4869         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
4871 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4873         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
4874         library functions only when not optimizing for size.
4875         (ashlsi3): Likewise.
4876         (ashrhi3): Likewise.
4877         (ashrsi3): Likewise.
4878         (lshrhi3): Likewise.
4879         (lshrsi3): Likewise.
4881 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
4883         PR rtl-optimization/88751
4884         * ira.c (ira): Use the number of the actually referenced registers
4885         when calculating the threshold.
4887 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
4889         * configure: Regenerate.
4891 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4893         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
4894         register if it is in memory, so the shift can be emulated with a rotate
4895         instruction.
4896         (ashrhi3): Likewise.
4897         (lshrhi3): Likewise.
4899 2019-06-06  Martin Liska  <mliska@suse.cz>
4901         PR tree-optimization/87954
4902         * match.pd: Simplify mult where both arguments are 0 or 1.
4904 2019-06-06  Richard Biener  <rguenther@suse.de>
4906         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
4907         put equivalences on UNDEFINED ranges.
4908         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
4909         Make sure to drop defs of stmts added during simplification
4910         to VARYING.
4912 2019-06-06  Richard Biener  <rguenther@suse.de>
4914         * tree-ssa-structalias.c: Include tree-cfg.h.
4915         (make_heapvar): Do not make heap vars artificial.
4916         (find_func_aliases_for_builtin_call): Handle stack allocation
4917         functions.
4918         (find_func_aliases): Delay processing of simple enough returns
4919         in non-IPA mode.
4920         (set_uids_in_ptset): Adjust.
4921         (find_what_var_points_to): Likewise.
4922         (solve_constraints): Do not dump points-to sets here.
4923         (compute_points_to_sets): Post-process return statements,
4924         amending the escaped solution.  Dump points-to sets afterwards.
4925         (ipa_pta_execute): Dump points-to sets.
4927 2019-06-06  Martin Liska  <mliska@suse.cz>
4929         PR web/87933
4930         * doc/install.texi: Fix HTML headers and
4931         titles for 'Installing GCC' pages.
4933 2019-06-06  Martin Liska  <mliska@suse.cz>
4935         * ipa-icf-gimple.h (dump_message_1): Remove.
4936         (dump_message): Likewise.
4937         (return_false_with_message_1): Print also file.
4938         (return_false_with_msg): Likewise.
4939         (return_with_result): Likewise.
4940         (return_with_debug): Likewise.
4941         * ipa-icf.c (sem_function::equals_private): Remove call
4942         to dump_message.
4944 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
4946         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
4947         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
4948         memory operand for it.
4949         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
4951 2019-06-05  Martin Sebor  <msebor@redhat.com>
4953         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
4954         Adjust quoting and hyphenation.
4955         * convert.c (convert_to_real_1): Same.
4956         * gcc.c (driver_wrong_lang_callback): Same.
4957         (driver::handle_unrecognized_options): Same.
4958         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
4959         * opts-common.c (cmdline_handle_error): Same.
4960         (read_cmdline_option): Same.
4961         * opts-global.c (complain_wrong_lang): Same.
4962         (print_ignored_options): Same.
4963         (handle_common_deferred_options): Same.
4964         * pretty-print.h: Same.
4965         * print-rtl.c (debug_bb_n_slim): Same.
4966         * sched-rgn.c (make_pass_sched_fusion): Same.
4967         * tree-cfg.c (verify_gimple_assign_unary): Same.
4968         (verify_gimple_label): Same.
4969         * tree-ssa-operands.c (verify_ssa_operands): Same.
4970         * varasm.c (do_assemble_alias): Same.
4971         (assemble_alias): Same.
4973 2019-06-05  Richard Henderson  <rth@twiddle.net>
4975         * config/alpha/alpha.c (direct_return): Move down after
4976         struct machine_function definition; use saved frame_size;
4977         return bool.
4978         (struct machine_function): Add sa_mask, sa_size, frame_size.
4979         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
4980         (alpha_compute_frame_layout): ... new function.
4981         (TARGET_COMPUTE_FRAME_LAYOUT): New.
4982         (alpha_initial_elimination_offset): Use saved sa_size.
4983         (alpha_vms_initial_elimination_offset): Likewise.
4984         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
4985         (alpha_expand_prologue): Use saved frame data.  Merge integer
4986         and fp register save loops.
4987         (alpha_expand_epilogue): Likewise.
4988         (alpha_start_function): Use saved frame data.
4989         * config/alpha/alpha-protos.h (direct_return): Update.
4990         (alpha_sa_size): Remove.
4992 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
4994         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
4995         multiplication by a power-of-two value.
4996         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
4997         and turn the modulo operation into a masking operation.
4999 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5001         PR debug/90733
5002         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
5003         with VOIDmode inner operands.
5005 2019-06-05  Richard Biener  <rguenther@suse.de>
5007         PR middle-end/90726
5008         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5009         turn an expression graph into a tree.
5011 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5013         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5014         member.
5015         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
5016         treat it like explicit monotonic schedule modifier.
5017         (expand_omp_for): Initialize has_lastprivate_conditional.
5018         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
5019         schedule modifier.
5021         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
5022         references, lookup in in hash map MEM_REF operand instead of the
5023         MEM_REF itself.
5024         (lower_omp_1): When looking for lastprivate conditional assignments,
5025         handle MEM_REFs with REFERENCE_TYPE operands.
5027         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
5028         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
5029         and references a VLA.  Handle references to non-VLAs if is_simd
5030         all privatization clauses like reductions.
5031         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
5032         If omp_is_reference, use always omp simd arrays and set
5033         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
5034         fails, emit reference initialization.
5036 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
5038         PR target/89803
5039         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
5040         _mm_mask_fpclass_sd_mask): New intrinsics.
5041         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
5042         * config/i386/i386-builtin.def
5043         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
5044         New builtins.
5045         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
5046         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
5047         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
5048         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
5049         case QI_FTYPE_V2SF_INT): Ditto.
5050         * config/i386/sse.md
5051         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
5052         Extended to insnstructions with mask operands.
5054 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5056         * config/rs6000/constraints.md (define_register_constraint "wp"):
5057         Delete.
5058         (define_register_constraint "wq"): Delete.
5059         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5060         (rs6000_init_hard_regno_mode_ok): Adjust.
5061         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5062         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
5063         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
5064         (define_mode_attr VSa): Delete.
5065         (define_mode_attr VSisa): New.
5066         (rest of file): Adjust.
5067         * doc/md.texi (Machine Constraints): Adjust.
5069 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5071         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
5072         (define_attr "enabled"): Handle those new isa values.
5074 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5076         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
5077         (define_mode_attr VSr5): Delete.
5078         (define_mode_attr VStype_sqrt): Delete.
5079         (define_mode_iterator VSX_SPDP): Delete.
5080         (define_mode_attr VS_spdp_res): Delete.
5081         (define_mode_attr VS_spdp_insn): Delete.
5082         (define_mode_attr VS_spdp_type): Delete.
5083         (*vsx_sqrt<mode>2): Adjust.
5084         (vsx_<VS_spdp_insn>): Delete, split to...
5085         (vsx_xscvdpsp): ... this.  New.  And...
5086         (vsx_xvcvspdp): ... this.  New.  And...
5087         (vsx_xvcvdpsp): ... this.  New.
5089 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5091         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
5092         and V2DF.
5093         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
5094         (rest of file): Adjust.
5096 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5098         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
5099         (vsx_extract_<mode>_var): Ditto.
5101 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5103         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
5104         with just "wa".
5106 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5108         * config/rs6000/constraints.md (define_register_constraint "ww"):
5109         Delete.
5110         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5111         (rs6000_init_hard_regno_mode_ok): Adjust.
5112         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5113         RS6000_CONSTRAINT_ww.
5114         * config/rs6000/rs6000.md: Adjust.
5115         * config/rs6000/vsx.md: Adjust.
5116         * doc/md.texi (Machine Constraints): Adjust.
5118 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5120         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
5121         (define_mode_attr sd): New.
5122         (define_mode_attr s): New.
5123         (define_mode_attr Ftrad): Delete.
5124         (define_mode_attr Fvsx): Delete.
5125         (define_mode_attr Fs): Delete.
5126         (rest of file): Use the new mode attributes.
5127         * config.rs6000/vsx.md: Use the new mode attributes.
5129 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5131         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
5132         with just "wa".
5134 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5136         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
5137         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
5138         used with VSX_B, VSX_D, or VSX_F, with just "wa".
5140 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
5142         PR target/78263
5143         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
5144         C++ with strict ANSI requirements.
5146 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
5148         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
5149         computations when step is 1.
5151 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5153         * config/rs6000/constraints.md (define_register_constraint "wf"):
5154         Delete.
5155         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5156         (rs6000_init_hard_regno_mode_ok): Adjust.
5157         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5158         RS6000_CONSTRAINT_wf.
5159         * config/rs6000/rs6000.md: Adjust.
5160         * config/rs6000/vsx.md: Adjust.
5161         * doc/md.texi (Machine Constraints): Adjust.
5163 2019-06-04  Andrew Pinski  <apinski@marvell.com>
5165         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
5166         Fix ILP32 value.
5168 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5170         * config/rs6000/constraints.md (define_register_constraint "wd"):
5171         Delete.
5172         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5173         (rs6000_init_hard_regno_mode_ok): Adjust.
5174         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5175         RS6000_CONSTRAINT_wd.
5176         * config/rs6000/rs6000.md: Adjust.
5177         * config/rs6000/vsx.md: Adjust.
5178         * doc/md.texi (Machine Constraints): Adjust.
5180 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5182         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
5183         (rest of file): Adjust.
5185 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5187         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
5188         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
5189         (vsx_splat_<mode>_reg): Adjust.
5191 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5193         * config/rs6000/constraints.md (define_register_constraint "ws"):
5194         Delete.
5195         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5196         (rs6000_init_hard_regno_mode_ok): Adjust.
5197         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5198         RS6000_CONSTRAINT_ws.
5199         * config/rs6000/rs6000.md: Adjust.
5200         * config/rs6000/vsx.md: Adjust.
5201         * doc/md.texi (Machine Constraints): Adjust.
5203 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5205         * config/rs6000/constraints.md (define_register_constraint "wv"):
5206         Delete.
5207         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5208         (rs6000_init_hard_regno_mode_ok): Adjust.
5209         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5210         RS6000_CONSTRAINT_wv.
5211         * config/rs6000/rs6000.md: Adjust.
5212         * config/rs6000/vsx.md: Adjust.
5213         * doc/md.texi (Machine Constraints): Adjust.
5215 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5217         * config/rs6000/constraints.md (define_register_constraint "wi"):
5218         Delete.
5219         (define_register_constraint "wt"): Delete.
5220         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5221         (rs6000_init_hard_regno_mode_ok): Adjust.
5222         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5223         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
5224         * config/rs6000/rs6000.md: Adjust.
5225         * config/rs6000/vsx.md: Adjust.
5226         * doc/md.texi (Machine Constraints): Adjust.
5228 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5230         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
5231         const.
5232         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
5233         default_elf_asm_output_external.
5235 2019-06-04  Martin Liska  <mliska@suse.cz>
5237         * ipa-icf.c (INCLUDE_LIST): Remove.
5238         (sem_item_optimizer::execute): Remove call to init_wpa.
5239         * ipa-icf.h (init_wpa): Remove.
5241 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
5243         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
5244         conditional on combined for simd.
5245         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
5246         member.
5247         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
5248         constructs, don't remove lastprivate_conditional_map, but instead set
5249         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
5250         to parent construct temporaries.
5251         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
5252         like !ctx->lastprivate_conditional_map.
5253         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
5254         use up->outer context instead of up.
5255         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
5256         gimple_omp_for_combined_p.
5257         (expand_omp_for_static_nochunk): Likewise.
5258         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
5259         probably moved over into expand_omp_for_generic rather than being copied
5260         there.
5262 2019-06-04  Martin Liska  <mliska@suse.cz>
5264         * value-prof.c (dump_histogram_value): Fix typo.
5265         (gimple_mod_subtract_transform): Likewise.
5267 2019-06-04  Richard Biener  <rguenther@suse.de>
5269         PR middle-end/90726
5270         * tree-chrec.c (chrec_contains_symbols): Add to visited.
5271         (tree_contains_chrecs): Likewise.
5272         (chrec_contains_symbols_defined_in_loop): Move here and avoid
5273         exponential behaivor from ...
5274         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5275         ... here.
5276         (expression_expensive_p): Avoid exponential behavior and compute
5277         expanded size, rejecting any expansion.
5278         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
5279         (idx_contains_abnormal_ssa_name_p): Likewise.
5280         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
5281         (contains_abnormal_ssa_name_p): Simplify and use
5282         walk_tree_without_duplicates.
5284 2019-06-04  Richard Biener  <rguenther@suse.de>
5286         PR tree-optimization/90738
5287         Revert
5288         2019-06-03  Richard Biener  <rguenther@suse.de>
5290         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5291         full reference tree and record in ref->ref.
5292         (vn_reference_lookup_3): Pass in original ref to
5293         ao_ref_init_from_vn_reference.
5294         (vn_reference_lookup): Likewise.
5295         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5296         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5297         Handle non-decl bases in the original reference.
5299 2019-06-04  Martin Liska  <mliska@suse.cz>
5301         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
5302         number of references.
5303         (sem_item_optimizer::do_congruence_step):
5304         (sem_item_optimizer::worklist_push): Dump how references
5305         a class has.
5306         (sem_item_optimizer::worklist_pop): Use heap.
5307         (sem_item_optimizer::process_cong_reduction): Likewise.
5308         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
5310 2019-06-04  Martin Liska  <mliska@suse.cz>
5312         * ipa-icf.h (struct sem_usage_pair_hash): New.
5313         (sem_usage_pair_hash::hash): Likewise.
5314         (sem_usage_pair_hash::equal): Likewise.
5315         (struct sem_usage_hash): Likewise.
5316         * ipa-icf.c (sem_item::sem_item): Initialize
5317         referenced_by_count.
5318         (sem_item::add_reference): Register a reference
5319         in ref_map and not in target->usages.
5320         (sem_item::setup): Remove initialization of
5321         dead vectors.
5322         (sem_item::~sem_item): Remove usage of dead vectors.
5323         (sem_item::dump): Remove dump of references.
5324         (sem_item_optimizer::sem_item_optimizer): Initialize
5325         m_references.
5326         (sem_item_optimizer::read_section): Remove useless
5327         dump.
5328         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
5329         (sem_item_optimizer::build_graph): Pass m_references
5330         to ::add_reference.
5331         (sem_item_optimizer::verify_classes): Remove usage of dead
5332         vectors.
5333         (sem_item_optimizer::traverse_congruence_split): Return true
5334         when a class is split.
5335         (sem_item_optimizer::do_congruence_step_for_index): Use
5336         hash_map for look up of (sem_item *, index). That brings
5337         significant speed up.
5338         (sem_item_optimizer::do_congruence_step): Return true
5339         when a split is done.
5340         (congruence_class::is_class_used): Use referenced_by_count.
5342 2019-06-04  Alan Modra  <amodra@gmail.com>
5344         PR target/90689
5345         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
5346         error.
5348 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5350         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
5351         * config/rs6000/rs6000.c (direct_move_p): Adjust.
5352         (rs6000_secondary_reload_simple_move): Adjust.
5353         (rs6000_opt_masks): Neuter the "mfpgpr" option.
5354         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
5355         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
5356         comment.
5357         (power6x): Adjust.
5358         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
5359         (floatunssi<mode>2_lfiwzx): Adjust.
5360         (fix_trunc<mode>si2_stfiwx): Adjust.
5361         (fixuns_trunc<mode>si2_stfiwx): Adjust.
5362         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
5363         (mfpgpr): Mark as deprecated.
5364         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
5365         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
5366         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
5368 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5370         * config/rs6000/constraints.md (define_register_constraint "wg"):
5371         Delete.
5372         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5373         RS6000_CONSTRAINT_wg.
5374         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5375         (rs6000_init_hard_regno_mode_ok): Adjust.
5376         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
5377         Delete "wg" alternatives.
5378         * doc/md.texi (Machine Constraints): Adjust.
5380 2019-06-03  Alan Modra  <amodra@gmail.com>
5382         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
5383         (get_uncond_jump_length): Assert length less than INT_MAX and
5384         non-negative.
5386 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
5388         PR middle-end/64242
5389         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
5390         block.
5391         (expand_builtin_nonlocal_goto): Likewise.
5393 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5395         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
5396         (aarch64_asm_output_external): Declare.
5397         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
5398         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
5399         (aarch64_asm_output_alias): New.
5400         (aarch64_asm_output_external): New.
5401         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5402         (ASM_OUTPUT_EXTERNAL): Define.
5404 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
5405         * tree-vrp.h (value_range_base::nonzero_p): New.
5406         (value_range_base::set_nonnull): Rename to...
5407         (value_range_base::set_nonzero): ...this.
5408         (value_range_base::set_null): Rename to...
5409         (value_range_base::set_zero): ...this.
5410         (value_range::set_nonnull): Remove.
5411         (value_range::set_null): Remove.
5412         * tree-vrp.c (range_is_null): Remove.
5413         (range_is_nonnull): Remove.
5414         (extract_range_from_binary_expr): Use value_range_base::*zero_p
5415         instead of range_is_*null.
5416         (extract_range_from_unary_expr): Same.
5417         (value_range_base::set_nonnull): Rename to...
5418         (value_range_base::set_nonzero): ...this.
5419         (value_range::set_nonnull): Remove.
5420         (value_range_base::set_null): Rename to...
5421         (value_range_base::set_zero): ...this.
5422         (value_range::set_null): Remove.
5423         (extract_range_from_binary_expr): Rename set_*null uses to
5424         set_*zero.
5425         (extract_range_from_unary_expr): Same.
5426         (union_helper): Same.
5427         * vr-values.c (get_value_range): Use set_*zero instead of
5428         set_*null.
5429         (vr_values::extract_range_from_binary_expr): Same.
5430         (vr_values::extract_range_basic): Same.
5432 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
5434         PR driver/90684
5435         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
5437 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5439         * config/aarch64/iterators.md (MAX_OPP): New code attr.
5440         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
5441         (aarch64_<su>abd<mode>_3): ... This.
5442         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
5444 2019-06-03  Richard Biener  <rguenther@suse.de>
5446         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5447         full reference tree and record in ref->ref.
5448         (vn_reference_lookup_3): Pass in original ref to
5449         ao_ref_init_from_vn_reference.
5450         (vn_reference_lookup): Likewise.
5451         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5452         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5453         Handle non-decl bases in the original reference.
5455 2019-06-03  Martin Liska  <mliska@suse.cz>
5457         * doc/generic.texi: Remove Java Trees.
5459 2019-06-03  Martin Liska  <mliska@suse.cz>
5461         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
5462         returns 0 when operands are equal.
5464 2019-06-03  Richard Biener  <rguenther@suse.de>
5466         PR tree-optimization/90716
5467         * tree-loop-distribution.c (destroy_loop): Process blocks in
5468         correct order.
5470 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5472         PR target/88837
5473         * vector-builder.h (vector_builder::count_dups): New method.
5474         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
5475         Declare prototype.
5476         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
5477         (vec_init<mode><Vel>): New pattern.
5478         * config/aarch64/aarch64.c (emit_insr): New function.
5479         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
5480         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
5481         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
5482         (aarch64_sve_expand_vector_init): Define two overloaded functions.
5484 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5486         PR tree-optimization/90681
5487         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
5488         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
5489         special case for SLP, but fail on non-groupped loads.
5491 2019-06-03  Martin Liska  <mliska@suse.cz>
5493         * cfg.c (debug): Use TDF_DETAILS for debug and
5494         print edge info only once.
5496 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
5498         PR fortran/90539
5499         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
5501 2019-06-01  Martin Sebor  <msebor@redhat.com>
5503         PR middle-end/90694
5504         * tree-pretty-print.c (dump_generic_node): Add parentheses.
5506 2019-05-31  Jan Hubicka  <jh@suse.cz>
5508         * alias.c: Include ipa-utils.h.
5509         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
5510         * ipa-devirt.c (prevailing_odr_type): New.
5511         * ipa-utils.h (previaling_odr_type): Declare.
5513 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5514             Hongtao Liu  <hongtao.liu@intel.com>
5516         PR target/89355
5517         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
5518         NOTE_INSN_DELETED_LABEL check.
5520 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
5521             Robert Suchanek  <robert.suchanek@mips.com>
5523         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
5524         and 3rd operands of the fmadd/fmsub/maddv builtin.
5526 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
5528         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
5529         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
5530         on OMP_SIMD if not nested inside of worksharing loop that also has
5531         lastprivate conditional clause for the same decl.
5532         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
5533         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
5534         on simd.
5535         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
5536         on simd construct.
5537         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
5538         on simd construct.
5539         (lower_lastprivate_clauses): Likewise.
5540         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
5541         calling lower_rec_input_clauses.
5542         (lower_omp_for): Likewise.
5543         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
5544         clause on simd construct.
5545         * omp-expand.c (expand_omp_simd): Initialize cond_var if
5546         OMP_CLAUSE__CONDTEMP_ clause is present.
5548         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
5549         ivar and lvar.
5551 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
5553         PR c/43673
5554         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
5555         TEX_D32, TEX_D64 or TEX_D128.
5557 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
5559         * match.pd (~(vec?cst1:cst2)): New transformation.
5561 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
5563         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
5564         ((size_t)(A /[ex] B) CMP C): New transformation.
5566 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
5568         * doc/md.texi: Document define_insn_and_rewrite.
5569         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
5570         * gensupport.c (queue_elem): Update comment.
5571         (replace_operands_with_dups): New function.
5572         (gen_rewrite_sequence): Likewise.
5573         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
5574         * read-rtl.c (apply_subst_iterator): Likewise.
5575         (add_condition_to_rtx, named_rtx_p): Likewise.
5576         (rtx_reader::read_rtx_operand): Likewise.
5577         * config/aarch64/aarch64-sve.md
5578         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
5579         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
5580         define_insn_and_rewrite.
5581         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
5582         Remove separate define_split.
5584 2019-05-31  Jan Hubicka  <jh@suse.cz>
5586         * tree-ssa-alias.c (type_has_components_p): New function.
5587         (aliasing_component_refs_p): Use it.
5589 2019-05-31  Martin Liska  <mliska@suse.cz>
5591         * gdbhooks.py: Add const_tree to TreePrinter.
5593 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
5595         PR debug/86964
5596         * common.opt (feliminate-unused-debug-symbols): Enable by default.
5597         * doc/invoke.texi (Debugging Options): Document new default of
5598         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
5600 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
5602         PR tree-optimization/90671
5603         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
5604         template_block used to be empty on the first call, don't use
5605         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
5606         seq with bb_seq and set it with set_bb_seq.
5608 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
5610         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
5612 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
5613             Michael Meissner  <meissner@linux.ibm.com>
5615         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
5616         (prefixed_mem_operand): Likewise.
5617         (non_prefixed_mem_operand): Likewise.
5618         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
5619         prototype.
5620         * config/rs6000/rs6000.c (print_operand_address): Handle
5621         PC-relative addresses.
5622         (mode_supports_prefixed_address_p): New function.
5623         (rs6000_prefixed_address): New function.
5624         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
5625         (SYMBOL_REF_PCREL_P): Likewise.
5627 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
5629         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
5630         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
5631         (gimplify_omp_for): If worksharing loop with lastprivate conditional
5632         is nested inside of parallel region, add _condtemp_ clause to both.
5633         * tree-nested.c (convert_nonlocal_omp_clauses,
5634         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
5635         assertion failure.
5636         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
5637         member.
5638         * omp-general.c (omp_extract_for_data): Compute it.
5639         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
5640         (lower_rec_input_clauses): Likewise.
5641         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
5642         clause is already present, just add one further one after it.
5643         (lower_lastprivate_clauses): Handle cond_ptr with array type.
5644         (lower_send_shared_vars): Clear _condtemp_ vars.
5645         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
5646         or section or taskgroup.
5647         * omp-expand.c (determine_parallel_type): Disallow combining only if
5648         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
5649         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
5650         (expand_omp_for_generic, expand_omp_for_static_nochunk,
5651         expand_omp_for_static_chunk, expand_omp_for): Use
5652         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
5653         determine if a special set of API routines are needed and if condtemp
5654         needs to be initialized, while always initialize cond_var if
5655         fd->lastprivate_conditional is non-zero.
5657 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
5658             Michael Meissner  <meissner@linux.ibm.com>
5660         * config/rs6000/constraints.md (eI): New constraint.
5661         * config/rs6000/predicates.md (cint34_operand): New predicate.
5662         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
5663         (SIGNED_34BIT_OFFSET_P): Likewise.
5664         * doc/md.texi (eI): Document constraint.
5666 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
5668         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
5670 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
5671             Michael Meissner  <meissner@linux.ibm.com>
5673         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
5674         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
5675         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
5676         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
5677         (OTHER_FUTURE_MASKS): Likewise.
5678         (POWERPC_MASKS): Likewise.
5679         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
5680         specified without -mprefixed-addr or -mcpu=future.  Error if
5681         -mprefixed-addr is specified without -mcpu=future.
5682         (rs6000_opt_masks): Add entry for prefixed-addr.
5683         * rs6000.opt (mprefixed-addr): New option.
5685 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
5687         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add 
5688         cfun->is_thunk check.
5690 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
5692         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
5693         to length.
5695 2019-05-30  Martin Liska  <mliska@suse.cz>
5697         * gdbinit.in: Fix 'ptc' command.  Add trt
5698         that prints TREE_TYPE($).
5700 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
5701             Alan Modra  <amodra@gmail.com>
5703         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
5704         calls here...
5705         (rs6000_indirect_call_template_1): ...and here.
5706         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
5707         plt16_ha, plt16_lo, mtctr indirect calls.  Use
5708         rs6000_pltseq_enum.
5709         (rs6000_decl_ok_for_sibcall): New function.
5710         (rs6000_function_ok_for_sibcall): Refactor.
5711         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
5712         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
5713         when pcrel.  Reorganize.
5714         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
5715         * rs6000.h (rs6000_pltseq_enum): New enum.
5716         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
5717         (*pltseq_tocsave): Use rs6000_pltseq_enum.
5718         (*pltseq_plt16_ha): Likewise.
5719         (*pltseq_plt16_lo): Likewise.
5720         (*pltseq_mtctr): Likewise.
5721         (*pltseq_plt_pcrel): New insn.
5722         (*call_local_aix): Handle @notoc calls.
5723         (*call_value_local_aix): Likewise.
5724         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
5725         (*call_value_nonlocal_aix): Likewise.
5726         (*call_indirect_pcrel): New insn.
5727         (*call_value_indirect_pcrel): Likewise.
5730 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5732         * config/i386/sse.md (*save_multiple<mode>): Rename from
5733         save_multiple<mode>.
5734         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
5735         (*restore_multiple_and_return<mode>): Rename from
5736         restore_multiple_and_return<mode>.
5737         (*restore_multiple_leave_return<mode>): Rename from
5738         restore_multiple_leave_return<mode>.
5740 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
5742         * config.gcc (rx-*-linux*): New target.
5743         * config/rx/elf.opt: New file.
5744         * config/rx/linux.h: Likewise.
5745         * config/rx/t-linux: Likewise.
5746         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
5747         make it zero.
5748         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
5749         (ASM_APP_OFF): Likewise.
5750         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
5751         moved elsewhere.
5753 2019-05-29  Jan Hubicka  <jh@suse.cz>
5755         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
5756         variants are pointer equivalent.
5758 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5760         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
5761         * config/aarch64/aarch64-sve2.md: New file.
5762         (<u>avg<mode>3_floor): New pattern.
5763         (<u>avg<mode>3_ceil): Likewise.
5764         (*<sur>h<addsub><mode>): Likewise.
5765         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
5766         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
5768 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
5770         PR bootstrap/90543
5771         * optc-save-gen.awk: In cl_optimization_print, use correct condition
5772         for var_opt_string printing.  In cl_optimization_print_diff, print
5773         (null) instead of invoking undefined behavior if one of the
5774         var_opt_string pointers is NULL and use && instead of first || in the
5775         guarding condition.  For var_target_other options, handle const char *
5776         target variables similarly to const char * optimize node variables.
5778 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
5780         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
5781         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
5782         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
5783         Add autib1716 and pacib1716 initialisation.
5784         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
5785         for autib1716 and pacib1716.
5786         * config/aarch64/aarch64-protos.h (aarch64_key_type,
5787         aarch64_post_cfi_startproc): Define.
5788         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
5789         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
5790         aarch64_handle_pac_ret_protection): Set default sign key to A.
5791         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
5792         aarch64_expand_prologue): Add check for b-key.
5793         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
5794         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
5795         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
5796         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
5797         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
5798         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
5799         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
5800         * config/aarch64/aarch64.md (do_return): Add check for b-key.
5801         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
5802         pauth_hint_num_a with pauth_hint_num.
5803         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
5804         pauth_hint_num_a with pauth_hint_num.
5805         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
5806         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
5807         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
5808         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
5809         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
5810         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
5811         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
5812         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
5813         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
5814         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
5815         UNSPEC_AUTIA1716 respectively.
5816         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
5817         and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
5818         * doc/invoke.texi (-mbranch-protection): Add b-key type.
5819         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
5820         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
5822 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
5824         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
5825         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
5826         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
5827         explicit clause on combined parallel into implicit shared clause.
5828         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
5829         and firstprivate if the decl has one too from combined parallel to
5830         the worksharing construct.
5832 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
5833             Michael Meissner  <meissner@linux.ibm.com>
5835         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
5837 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
5839         * rtl.h (LABEL_REF_P): New #define.
5841 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
5843         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
5845 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5847         * internal-fn.c: Marked mask_load_direct as vectorizable.
5848         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
5849         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
5850         combined even if masks different with allow_slp_p param.
5851         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
5852         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
5853         dissolve SLP-only vectorizable groups when SLP has been discarded.
5854         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
5855         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
5856         masks.
5857         (vect_build_slp_tree_1): Fixed comment typo.
5858         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
5859         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
5860         loads for SLP only.
5861         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
5862         vectorizable.
5863         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
5865 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5867         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
5868         Remove obsolete use_thunk reference.
5869         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
5870         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5871         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
5872         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
5873         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5874         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5875         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5876         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
5877         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
5879 2019-05-28  Nathan Sidwell  <nathan@acm.org>
5881         * tree.h (IDENTIFIER_ANON_P): New.
5882         (anon_aggrname_format, anon_aggname_p): Don't declare.
5883         (make_anon_name): Declare.
5884         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
5885         (hash_tree): Likewise.
5886         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
5887         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
5888         (anon_cnt, make_anon_name): New.
5890 2019-05-28  Martin Liska  <mliska@suse.cz>
5892         PR other/90315
5893         * opts-global.c (decode_options): Print help for all
5894         help_option_arguments.
5895         * opts.c (print_help): Add new argument.
5896         (common_handle_option): Remember all values into
5897         help_option_arguments.
5898         * opts.h (print_help): Add new argument.
5900 2019-05-28  Martin Liska  <mliska@suse.cz>
5902         PR ipa/90555
5903         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
5904         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
5905         (func_checker::compare_bb): Call compare_loops.
5907 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
5909         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
5910         on sections construct.
5911         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
5912         construct.
5913         (lower_omp_sections): Handle lastprivate conditional.
5914         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
5915         lastprivate_conditional_map.
5916         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
5918         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
5919         critical, taskgroup and section regions when looking for a region
5920         with non-NULL lastprivate_conditional_map.
5922 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5924         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
5925         (*ix86_gen_sub3): Ditto.
5926         (*ix86_gen_sub3_carry): Ditto.
5927         (*ix86_gen_one_cmpl2): Ditto.
5928         (*ix86_gen_andsp): Ditto.
5929         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
5930         (gen_and2_insn): New static function.
5931         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
5932         Use gen_add3_insn instead of ix86_gen_add3.
5933         (ix86_expand_split_stack_prologue): Use gen_add2_insn
5934         instead of ix86_gen_add3.
5935         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
5936         Use gen_sub3_insn instead of ix86_gen_sub3.
5937         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
5938         instead of ix86_gen_add3.
5939         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
5940         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
5941         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
5942         * config/i386/i386-options.c (ix86_option_override_internal):
5943         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5944         ix86_gen_one_cmpl2 and ix86_gen_andsp.
5946 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5948         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
5949         and DW_OP_GNU_const_index opcodes.
5951 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5953         * config/i386/i386.h (STACK_SIZE_MODE): Define.
5955 2019-05-27  Richard Biener  <rguenther@suse.de>
5957         PR tree-optimization/90637
5958         * tree-ssa-sink.c (statement_sink_location): Honor the
5959         computed sink location for single-uses.
5961 2019-05-27  Richard Biener  <rguenther@suse.de>
5963         PR middle-end/90610
5964         * match.pd (vec_perm): Avoid clobbering op0 when not generating
5965         a bit-insert.
5967 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5969         * config/i386/i386.md (@sub<mode>3_carry): Rename
5970         from sub<mode>3_carry.
5971         (@leave_<mode>): New expander.
5972         (*leave): Rename from leave.
5973         (*leave_rex64): Rename from leave_rex64.
5974         (@monitorx_<mode>): Rename from monitorx_<mode>.
5975         (@clzero_<mode>): Rename from clzero_<mode>.
5976         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
5977         from sse3_monitor_<mode>.
5978         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
5979         (*ix86_gen_leave): Ditto.
5980         (*ix86_gen_monitor): Ditto.
5981         (*ix86_gen_monitorx): Ditto.
5982         (*ix86_gen_clzero): Ditto.
5983         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
5984         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
5985         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
5986         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
5987         Use gen_sse3_monitor instead of ix86_gen_monitor.
5988         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
5989         instead of ix86_gen_monitorx.
5990         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
5991         instead of ix86_gen_clzero.
5992         * config/i386/i386-options.c (ix86_option_override_internal):
5993         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
5994         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
5996 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5998         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
5999         Rename from tls_global_dynamic_64_<mode>.
6000         (@tls_local_dynamic_base_64_<mode>): Rename from
6001         tls_local_dynamic_base_64_<mode>.
6002         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
6003         Remove indirect function.
6004         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
6005         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
6006         instead of ix86_gen_tls_global_dynamic_64.
6007         Use gen_tls_local_dynamic_base_64 instead of
6008         ix86_gen_tls_local_dynamic_base_64.
6009         * config/i386/i386-options.c (ix86_option_override_internal):
6010         Do not initialize ix86_gen_tls_global_dynamic_64 and
6011         ix86_gen_tls_local_dynamic_base_64.
6013 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6015         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
6016         Rename from pro_epilogue_adjust_stack_<mode>_add.
6017         (@pro_epilogue_adjust_stack_sub_<mode>)
6018         Rename from pro_epilogue_adjust_stack_<mode>_sub.
6019         (@allocate_stack_worker_probe_<mode>):
6020         Rename from allocate_stack_worker_probe_<mode>.
6021         (allocate_stack): Use gen_allocate_stack_worker_probe.
6022         (probe_stack): Use gen_probe_stack_1.
6023         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
6024         (@adjust_stack_and_probe_<mode>): Rename from
6025         adjust_stack_and_probe<mode>.
6026         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
6027         (stack_protect_set): Use gen_stack_protect_set_1.
6028         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
6029         (stack_protect_test): Use gen_stack_protect_test_1.
6030         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
6031         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
6032         Remove indirect function.
6033         (*ix86_gen_adjust_stack_and_probe): Ditto.
6034         (*ix86_gen_probe_stack_range): Ditto.
6035         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
6036         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
6037         (ix86_adjust_stack_and_probe_stack_clash): Use
6038         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
6039         (ix86_adjust_stack_and_probe): Ditto.
6040         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
6041         of ix86_gen_probe_stack_range.
6042         (ix86_expand_prologue):  Use gen_pro_epilogue_adjust_stack_sub
6043         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
6044         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
6045         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
6046         CODE_FOR_stack_protect_test_{si,di}.
6047         * config/i386/i386-options.c (ix86_option_override_internal):
6048         Do not initialize ix86_gen_allocate_stack_worker,
6049         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6051 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
6053         * doc/invoke.texi (Link Options): Many editorial changes around
6054         -flinker-output.
6056 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6058         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
6059         pre-Solaris 11 referene and most Studio compiler details.
6061 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
6063         PR target/90530
6064         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
6065         DImode to SImode in floating-point registers on 64-bit target.
6066         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
6067         register_operand in xmpyu patterns.
6069 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6071         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
6072         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
6073         OMP_CLAUSE__REDUCTEMP_.
6074         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6075         OMP_CLAUSE__CONDTEMP_.
6076         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
6077         * tree-pretty-print.c (dump_omp_clause): Likewise.
6078         * tree-nested.c (convert_nonlocal_omp_clauses,
6079         convert_local_omp_clauses): Likewise.
6080         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
6081         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
6082         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
6083         on OMP_FOR.
6084         (gimplify_omp_for): Warn and disable conditional modifier from
6085         lastprivate on loop iterators.
6086         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
6087         member.
6088         * omp-general.c (omp_extract_for_data): Initialize it.
6089         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
6090         member.
6091         (delete_omp_context): Delete it.
6092         (lower_lastprivate_conditional_clauses): New function.
6093         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
6094         handle lastprivate conditional clauses.
6095         (lower_reduction_clauses): Add CLIST argument, emit it into
6096         the critical section if any.
6097         (lower_omp_sections): Adjust lower_lastprivate_clauses and
6098         lower_reduction_clauses callers.
6099         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
6100         to lower_lastprivate_clauses.
6101         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
6102         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
6103         clist into a critical section if not emitted there already by
6104         lower_reduction_clauses.
6105         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
6106         callers.
6107         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
6108         conditional variables.
6109         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
6110         clause is present.
6111         (expand_omp_for_generic, expand_omp_for_static_nochunk,
6112         expand_omp_for_static_chunk): Handle lastprivate conditional.
6113         (expand_omp_for): Handle fd.lastprivate_conditional like
6114         fd.have_reductemp.
6116 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
6118         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
6119         kernel does not exit cleanly.
6120         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
6122 2019-05-24  Jason Merrill  <jason@redhat.com>
6124         Revert:
6125         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6127 2019-05-24  Richard Biener  <rguenther@suse.de>
6129         PR testsuite/90607
6130         * tree-loop-distribution.c (struct partition): Add location
6131         member.
6132         (partition_alloc): Initialize all fields.
6133         (generate_memset_builtin): Use the location recorded in the
6134         partition for the generated call.
6135         (generate_memcpy_builtin): Likewise.
6136         (classify_partition): Record the location of a single store
6137         as location for the partition.
6139 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
6141         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
6142         for lo-part.
6144 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
6146         PR target/90588
6147         * common/config/aarch64/aarch64-common.c
6148         (aarch64_rewrite_selected_cpu): Change local temporary variable
6149         type from unsigned long to uint64_t.
6150         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
6151         aarch64_get_extension_string_for_isa_flags): Change declaration to
6152         match new definition by replacing unsigned long with uint64_t.
6154 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6156         PR target/90568
6157         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
6158         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
6159         Handle stack_protect_test_<mode> codegen similarly to corresponding
6160         sub instruction.
6162 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
6164        * config/i386/darwin.h: Reject -mfentry*.
6165        * doc/sourcebuild.texi: Document mfentry target support.
6167 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6169         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
6170         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
6171         false for PC-relative functions.
6172         (rs6000_output_function_prologue): Change called function name to
6173         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
6174         name,1" for PC-relative functions.
6175         (rs6000_elf_declare_function_name): Change called function name to
6176         rs6000_global_entry_point_prologue_needed_p.
6178 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6180         PR target/90552
6181         * config/i386/i386.c (gen_rtx_cost):
6182         Use ix86_tune_cost instead of ix86_cost.
6184 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6185             Michael Meissner  <meissner@linux.ibm.com>
6186             Segher Boessenkool  <segher@kernel.crashing.org>
6188         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
6189         OPTION_MASK_PCREL.
6190         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
6191         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
6192         (rs6000_fndecl_pcrel_p): Likewise.
6193         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
6194         error if -mpcrel is requested without -mcpu=future.
6195         (rs6000_opt_masks): Add entry for pcrel.
6196         (rs6000_fndecl_pcrel_p): New function.
6197         (rs6000_pcrel_p): Likewise.
6198         * config/rs6000/rs6000.opt (mpcrel): New option.
6199         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
6201 2019-05-23  Jan Hubicka  <jh@suse.cz>
6202             Martin Liska  <mliska@suse.cz>
6204         PR tree-optimization/90576
6205         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
6206         poly_int_tree_p.
6207         (aliasing_component_refs_p): Fix three way size compare conditional;
6208         give up earlier in case we can not decide on equivalence.
6210 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6211             Michael Meissner  <meissner@linux.ibm.com>
6212             Segher Boessenkool  <segher@kernel.crashing.org>
6214         * config.gcc: Add future cpu.
6215         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
6216         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
6217         #define.
6218         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
6219         (RS6000_CPU): New instantiation for future cpu.
6220         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6221         PROCESSOR_FUTURE.
6222         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
6223         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
6224         * config/rs6000/rs6000-tables.opt: Regenerate.
6225         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
6226         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
6227         (rs6000_machine_from_flags): Handle future cpu.
6228         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
6229         PROCESSOR_POWER9 for now.
6230         (rs6000_adjust_cost): Likewise.
6231         (rs6000_issue_rate): Likewise.
6232         (rs6000_register_move_cost): Likewise.
6233         (rs6000_opt_masks): Add entry for future.
6234         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
6235         (MASK_FUTURE): New #define.
6236         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
6237         * config/rs6000/rs6000.opt (mfuture): New target option.
6238         * doc/invoke.texi (mcpu): Add future cpu.
6240 2019-05-23  Martin Liska  <mliska@suse.cz>
6242         PR c++/90587
6243         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
6244         operation points to a temporary (pointed via tree_to_wide_ref)
6245         that is out of scope after the &.
6247 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
6249         PR c++/90592
6250         * doc/extend.texi (Function Names): Add missing word.
6252 2019-05-23  Richard Biener  <rguenther@suse.de>
6254         PR tree-optimization/88440
6255         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
6256         at -O[2s]+.
6257         * tree-loop-distribution.c (generate_memset_builtin): Fold the
6258         generated call.
6259         (generate_memcpy_builtin): Likewise.
6260         (distribute_loop): Pass in whether to only distribute patterns.
6261         (prepare_perfect_loop_nest): Also allow size optimization.
6262         (pass_loop_distribution::execute): When optimizing a loop
6263         nest for size allow pattern replacement.
6265 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
6267         PR target/90568
6268         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
6269         of xor.
6271 2019-05-23  Martin Liska  <mliska@suse.cz>
6273         PR sanitizer/90570
6274         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
6275         expression similarly to gimplify_decl_expr.
6277 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6279         * cse.c (cse_dump_path): s/dump_file/f.
6281 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
6283         PR c++/90462
6284         * diagnostic-format-json.cc: Include "selftest.h".
6285         (json_from_expanded_location): Only add "file" key for non-NULL
6286         file strings.
6287         (json_from_location_range): Don't add "start" and "finish"
6288         children if they are UNKNOWN_LOCATION.
6289         (selftest::test_unknown_location): New selftest.
6290         (selftest::test_bad_endpoints): New selftest.
6291         (selftest::diagnostic_format_json_cc_tests): New function.
6292         * json.cc (json::object::get): New function.
6293         (selftest::test_object_get): New selftest.
6294         (selftest::json_cc_tests): Call it.
6295         * json.h (json::object::get): New decl.
6296         * selftest-run-tests.c (selftest::run_tests): Call
6297         selftest::diagnostic_format_json_cc_tests.
6298         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
6299         decl.
6301 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
6302             Andrew Stubbs  <amd@codesourcery.com>
6304         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
6305         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
6306         (kernel): Rename to...
6307         (main_kernel): ... this.
6308         (load_image): Load _init_array and _fini_array kernels.
6309         (run): Add argument for kernel to run.
6310         (main): Run init_array_kernel before main_kernel, and
6311         fini_array_kernel after.
6312         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
6313         amdgpu_hsa_kernel attribute on functions.
6314         (gcn_disable_constructors): Delete.
6315         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
6316         * config/gcn/crt0.c (size_t): Define.
6317         (_init_array, _fini_array): New.
6318         (__preinit_array_start, __preinit_array_end,
6319         __init_array_start, __init_array_end,
6320         __fini_array_start, __fini_array_end): Declare weak references.
6322 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
6324         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
6326 2019-05-22  Jason Merrill  <jason@redhat.com>
6328         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6330 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6332         PR target/88483
6333         * config/i386/i386-options.c (ix86_init_machine_status): Set
6334         stack_frame_required to true.
6335         * config/i386/i386.c (ix86_get_frame_size): New function.
6336         (ix86_frame_pointer_required): Replace get_frame_size with
6337         ix86_get_frame_size.
6338         (ix86_compute_frame_layout): Likewise.
6339         (ix86_find_max_used_stack_alignment): Changed to void.  Set
6340         stack_frame_required.
6341         (ix86_finalize_stack_frame_flags): Always call
6342         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
6343         ix86_get_frame_size.
6344         * config/i386/i386.h (machine_function): Add stack_frame_required.
6346 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6348         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
6350 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
6352         * common/config/aarch64/aarch64-common.c
6353         (struct aarch64_option_extension, struct processor_name_to_arch,
6354         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
6355         aarch64_contains_opt,
6356         aarch64_get_extension_string_for_isa_flags): Change type of
6357         variables storing flags to uint64_t.
6358         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
6359         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
6360         * config/aarch64/aarch64.c (struct processor,
6361         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
6362         aarch64_validate_march, aarch64_override_options,
6363         aarch64_option_print, aarch64_handle_attr_isa_flags,
6364         aarch64_declare_function_name, aarch64_start_file): Make flag
6365         variables uint64_t.
6366         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
6367         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
6368         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
6369         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
6370         * config/aarch64/driver-aarch64.c
6371         (struct aarch64_arch_extension, struct aarch64_core_data,
6372         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
6373         flag variables uint64_t.
6374         * doc/invoke.texi: Add documentation for new arguments.
6376 2019-05-22  Richard Biener  <rguenther@suse.de>
6378         * alias.c (ao_ref_from_mem): Move stack-slot sharing
6379         rewrite ...
6380         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
6382 2019-05-22  Martin Liska  <mliska@suse.cz>
6384         PR lto/90500
6385         * doc/extend.texi: Document the change.
6387 2019-05-22  Richard Biener  <rguenther@suse.de>
6389         PR tree-optimization/90450
6390         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
6391         (mem_ref_hasher::equal): Check it.
6392         (mem_ref_alloc): Initialize it.
6393         (gather_mem_refs_stmt): Set it.
6395 2019-05-22  Richard Biener  <rguenther@suse.de>
6397         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
6398         Add ABS_EXPR.
6399         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
6400         as ABSU_EXPR.
6402 2019-05-22  Alan Modra  <amodra@gmail.com>
6404         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
6405         (ASM_CPU_SPEC): Conditionally add -many.
6406         * config/rs6000/rs6000.c (rs6000_machine): New static var.
6407         (rs6000_machine_from_flags, emit_asm_machine): New functions..
6408         (rs6000_file_start): ..extracted from here, and modified to
6409         test all ISA bits.
6410         (rs6000_output_function_prologue): Emit .machine as necessary.
6411         * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
6412         power mnemonics.
6413         * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
6414         added by check_vect_support_and_set_flags.
6415         * testsuite/gcc.dg/vect/pr48765.c: Likewise.
6416         * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
6418 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
6420         PR middle-end/90553
6421         * ira-lives.c (process_bb_node_lives): Consider defs
6422         for a call insn to be die before the call, not after.
6424         * function.c (assign_parm_setup_block): Raise alignment of
6425         stacked parameter only for STRICT_ALIGNMENT targets.
6427 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6429         * config/rs6000/constraints.md (define_register_constraint "wz"):
6430         Delete.
6431         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6432         RS6000_CONSTRAINT_wz.
6433         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6434         (rs6000_init_hard_regno_mode_ok): Adjust.
6435         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
6436         * doc/md.texi (Machine Constraints): Adjust.
6438 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6440         * config/rs6000/constraints.md (define_register_constraint "wl"):
6441         Delete.
6442         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6443         RS6000_CONSTRAINT_wl.
6444         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6445         (rs6000_init_hard_regno_mode_ok): Adjust.
6446         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
6447         * doc/md.texi (Machine Constraints): Adjust.
6449 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6451         * config/rs6000/constraints.md (define_register_constraint "wm"):
6452         Delete.
6453         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6454         RS6000_CONSTRAINT_wm.
6455         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6456         (rs6000_init_hard_regno_mode_ok): Adjust.
6457         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
6458         * doc/md.texi (Machine Constraints): Adjust.
6460 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6462         * config/rs6000/constraints.md (define_register_constraint "wk"):
6463         Delete.
6464         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6465         RS6000_CONSTRAINT_wk.
6466         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6467         (rs6000_init_hard_regno_mode_ok): Adjust.
6468         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
6469         * doc/md.texi (Machine Constraints): Adjust.
6471 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6473         * config/rs6000/constraints.md (define_register_constraint "wj"):
6474         Delete.
6475         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6476         RS6000_CONSTRAINT_wj.
6477         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6478         (rs6000_init_hard_regno_mode_ok): Adjust.
6479         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
6480         (VS_64dm): Delete.
6481         * config/rs6000/vsx.md: Ditto.
6482         * doc/md.texi (Machine Constraints): Adjust.
6484 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6486         * config/rs6000/constraints.md (define_register_constraint "wh"):
6487         Delete.
6488         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6489         RS6000_CONSTRAINT_wh.
6490         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6491         (rs6000_init_hard_regno_mode_ok): Adjust.
6492         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
6493         * doc/md.texi (Machine Constraints): Adjust.
6495 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6497         PR target/90547
6498         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6499         Avoid calling gen_lowpart with CONST operand.
6501 2019-05-21  Alexandre Oliva <aoliva@redhat.com>
6503         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
6504         field template_last_to_copy.
6505         (ssa_create_duplicates): Set it, and use it.  Attempt to
6506         preserve more debug stmts.
6508 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6510         * config/i386/sse.md (VF1_AVX2): New mode iterator.
6511         (signbit<mode>2): New expander
6513 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
6515         PR bootstrap/87338
6516         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
6517         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
6519 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6521         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
6522         %ebx and %ecx bafore calling cpuid with leaf 1 or
6523         non-constant leaf argument.
6525 2019-05-21  Alan Modra  <amodra@gmail.com>
6527         PR target/90545
6528         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
6529         power9 direct move cost.
6530         * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
6531         Correct comments and rename functions to suit parameters.
6533 2019-05-21  Richard Biener  <rguenther@suse.de>
6535         PR middle-end/90510
6536         * fold-const.c (fold_read_from_vector): New function.
6537         * fold-const.h (fold_read_from_vector): Declare.
6538         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
6539         single-element insert permutations.  Canonicalize selector
6540         further and fix issue with last commit.
6542 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
6544         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
6545         parameter with default value false to declaration.
6546         (split_edges_for_insertion): New inline function.  Wrapper for
6547         split_critical_edges with for_edge_insertion_p = true.
6548         * tree-cfg.c (split_critical_edges): Don't split non-critical
6549         edges if for_edge_insertion_p is false.  Fix whitespace.
6550         * tree-ssa-pre.c (pass_pre::execute): Call
6551         split_edges_for_insertion instead of split_critical_edges.
6552         * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
6553         * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
6554         (pass_data_sink_code): Update function name in the comment.
6556 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
6558         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
6559         around is_value_included_in that knows how to handle BIT_AND_EXPR.
6560         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
6561         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
6562         positives.
6564 2019-05-21  Martin Liska  <mliska@suse.cz>
6566         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
6567         an extra newline.
6568         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
6569         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
6570         vec_lvsr.
6571         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6572         Quote a C type.
6573         (rs6000_function_arg): Likewise.
6574         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
6575         (rs6000_expand_ternop_builtin): Use interval syntax.
6576         (get_element_number): Likewise.
6577         (altivec_expand_builtin): Likewise.
6578         (rs6000_get_function_versions_dispatcher): Quote target_clones.
6580 Fix test-suite.
6582 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
6584         PR c++/59813
6585         PR target/90418
6586         * function.h (struct function): Add calls_eh_return member.
6587         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
6588         gimplifying __builtin_eh_return call.
6589         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
6590         to cfun.
6591         (expand_call_inline): Or in src_cfun->calls_eh_return into
6592         dst_cfun->calls_eh_return.
6593         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
6594         cfun->calls_eh_return.
6595         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
6596         * lto-streamer-out.c (output_struct_function_base): Write
6597         calls_eh_return.
6599 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
6601         PR rtl-optimization/43147
6602         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
6603         IX86_BUILTIN_SHUFPD.
6605 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
6607         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
6608         (refs_may_alias_p_1): ... here; update stats.
6609         (refs_may_alias_p): Do not update stats here.
6611 2019-05-20  Richard Biener  <rguenther@suse.de>
6613         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
6614         doesn't produce pointers.
6615         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
6616         the first operand points to.
6618 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
6620         * tree-ssa-alias.c (compare_sizes): New function.
6621         (sompare_type_sizes): New function
6622         (aliasing_component_refs_p): Use it.
6623         (indirect_ref_may_alias_decl_p): Likewise.
6625 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6627         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
6629 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6631         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
6632         (LIBLSAN_EARLY_SPEC): Likewise.
6633         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
6635 2019-05-20  Martin Liska  <mliska@suse.cz>
6637         * config/i386/i386.c (ix86_libc_has_fast_function):
6638         Add ATTRIBUTE_UNUSED for the argument.
6640 2019-05-20  Richard Biener  <rguenther@suse.de>
6642         * gimple-match-head.c: Include vec-perm-indices.h.
6643         * generic-match-head.c: Likewise.
6644         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
6645         is included.
6646         * fold-const.c (fold_vec_perm): Export.
6647         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
6648         (match.pd): ...here.
6650 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
6652         * cfgloop.h (struct loop): Add simdlen member.
6653         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
6654         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
6655         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
6656         as new argument to autovectorize_vector_sizes target hook.  If
6657         loop->simdlen, pick up vector size where the vectorization factor
6658         is equal to loop->simd, and if there is none, fall back to the first
6659         successful one.
6660         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
6661         caller.
6662         * omp-low.c (omp_clause_aligned_alignment): Likewise.
6663         * omp-general.c (omp_max_vf): Likewise.
6664         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
6665         * tree-vect-slp.c (vect_slp_bb): Likewise.
6666         * target.def (autovectorize_vector_sizes): Add ALL argument and
6667         document it.
6668         * doc/tm.texi: Adjust documentation.
6669         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
6670         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
6671         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
6672         bool argument.
6673         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
6674         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
6675         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
6676         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
6677         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
6678         preferred vector size is not 512-bit or 256-bit, just put those
6679         unpreferred ones last.
6681 2019-05-20  Martin Liska  <mliska@suse.cz>
6683         * targhooks.c (default_libc_has_fast_function): New function.
6684         * targhooks.h (default_libc_has_fast_function): Likewise.
6686 2019-05-20  Martin Liska  <mliska@suse.cz>
6688         PR middle-end/90263
6689         * builtins.c (expand_builtin_memory_copy_args): When having a
6690         target with fast mempcpy implementation do now use memcpy.
6691         * config/i386/i386.c (ix86_libc_has_fast_function): New.
6692         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
6693         * doc/tm.texi: Likewise.
6694         * doc/tm.texi.in: Likewise.
6695         * target.def:
6696         * expr.c (emit_block_move_hints): Add 2 new arguments.
6697         * expr.h (emit_block_move_hints): Bail out when libcall
6698         to memcpy would be used.
6700 2019-05-20  Martin Liska  <mliska@suse.cz>
6702         * profile-count.c: Add vertical spacing in order
6703         to separate functions.
6704         * profile-count.h: Likewise.
6706 2019-05-20  Martin Liska  <mliska@suse.cz>
6708         * profile-count.h: Do not use full qualified
6709         names if possible.
6710         * profile-count.c (profile_count::to_frequency): Likewise.
6712 2019-05-20  Martin Liska  <mliska@suse.cz>
6714         * profile-count.h (enum profile_quality): Use capital letters
6715         for enum value names.  Use the adjusted names.
6716         * profile-count.c: Use the adjusted names.
6718 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6720         * config/rs6000/constraints.md (define_register_constraint "wH"):
6721         Delete.
6722         (define_register_constraint "wI"): Delete.
6723         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6724         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
6725         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6726         (rs6000_init_hard_regno_mode_ok): Adjust.
6727         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
6728         resp. "d", or with "wa" as appropriate, all with "p8v".
6729         * config/rs6000/vsx.md: Ditto.
6730         * doc/md.texi (Machine Constraints): Adjust.
6732 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6734         * config/rs6000/constraints.md (define_register_constraint "wy"):
6735         Delete.
6736         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6737         RS6000_CONSTRAINT_wy.
6738         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6739         (rs6000_init_hard_regno_mode_ok): Adjust.
6740         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
6741         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
6742         (define_mode_attr Fisa): New.
6743         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
6744         * doc/md.texi (Machine Constraints): Adjust.
6746 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6748         * config/rs6000/constraints.md (define_register_constraint "wu"):
6749         Delete.
6750         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6751         RS6000_CONSTRAINT_wu.
6752         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6753         (rs6000_init_hard_regno_mode_ok): Adjust.
6754         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
6755         both with "p8v".
6756         (define_mode_attr Fa): Delete.
6757         * config/rs6000/vsx.md: Ditto.
6758         * doc/md.texi (Machine Constraints): Adjust.
6760 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6762         * config/rs6000/constraints.md (define_register_constraint "wJ"):
6763         Delete.
6764         (define_register_constraint "wK"): Delete.
6765         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6766         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
6767         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6768         (rs6000_init_hard_regno_mode_ok): Adjust.
6769         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
6770         Replace "wK" constraint by "wH" with "p9v".
6771         * config/rs6000/vsx.md: Ditto.
6772         * doc/md.texi (Machine Constraints): Adjust.
6774 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6776         * config/rs6000/constraints.md (define_register_constraint "wb"):
6777         Delete.
6778         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6779         RS6000_CONSTRAINT_wb.
6780         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6781         (rs6000_init_hard_regno_mode_ok): Adjust.
6782         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
6783         * config/rs6000/vsx.md: Ditto.
6784         * doc/md.texi (Machine Constraints): Adjust.
6786 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6788         * config/rs6000/constraints.md (define_register_constraint "wo"):
6789         Delete.
6790         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6791         RS6000_CONSTRAINT_wo.
6792         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6793         (rs6000_init_hard_regno_mode_ok): Adjust.
6794         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
6795         * config/rs6000/altivec.md: Ditto.
6796         * doc/md.texi (Machine Constraints): Adjust.
6798 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
6800         * config/darwin-c.c (darwin_register_objc_includes): Do not
6801         prepend the sysroot when building gnu-runtime header search
6802         paths.
6804 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
6806         * config/darwin.c (darwin_file_end): Use switch_to_section ()
6807         instead of direct output of the asm.
6809 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
6811         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
6812         argument to be type bool (was int before).
6813         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
6814         at first use.  Use type bool for some variables.  Fix a theoretical
6815         eh_return bug for svr4.
6817 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
6819         * config/rs6000/rs6000.md (isa): New attribute.
6820         (enabled): New attribute.
6822 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
6824         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
6825         assemble_start_function and assemble_end_function.
6827 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
6829         PR middle-end/89433
6830         * omp-general.c (oacc_verify_routine_clauses): Change formal
6831         parameters.  Add checking if already marked with an OpenACC
6832         'routine' directive.  Adjust all users.
6834         PR middle-end/89433
6835         * omp-general.c (oacc_build_routine_dims): Move some of its
6836         processing into...
6837         (oacc_verify_routine_clauses): ... this new function.
6838         * omp-general.h (oacc_verify_routine_clauses): New prototype.
6840 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
6842         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
6843         formating of picbase labels to match other ports.
6845 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
6847         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
6848         in the generated code.
6850 2019-05-16  Martin Sebor  <msebor@redhat.com>
6852         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
6853         identifiers, keywords, operators, and types in diagnostics.  Correct
6854         quoting, spelling, and sentence capitalization issues.
6855         (expand_builtin_atomic_is_lock_free): Same.
6856         (fold_builtin_next_arg): Same.
6857         * cfgexpand.c (expand_one_var): Same.
6858         (tree_conflicts_with_clobbers_p): Same.
6859         (expand_asm_stmt): Same.
6860         (verify_loop_structure): Same.
6861         * cgraphunit.c (process_function_and_variable_attributes): Same.
6862         * collect-utils.c (collect_execute): Same.
6863         * collect2.c (maybe_run_lto_and_relink): Same.
6864         (is_lto_object_file): Same.
6865         (scan_prog_file): Same.
6866         * convert.c (convert_to_real_1): Same.
6867         * dwarf2out.c (dwarf2out_begin_prologue): Same.
6868         * except.c (verify_eh_tree): Same.
6869         * gcc.c (execute): Same.
6870         (eval_spec_function): Same.
6871         (run_attempt): Same.
6872         (driver::set_up_specs): Same.
6873         (compare_debug_auxbase_opt_spec_function): Same.
6874         * gcov-tool.c (unlink_gcda_file): Same.
6875         (do_merge): Same.
6876         (do_rewrite): Same.
6877         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
6878         * gimplify.c (gimplify_asm_expr): Same.
6879         (gimplify_adjust_omp_clauses): Same.
6880         * hsa-gen.c (gen_hsa_addr_insns): Same.
6881         (gen_hsa_insns_for_load): Same.
6882         (gen_hsa_cmp_insn_from_gimple): Same.
6883         (gen_hsa_insns_for_operation_assignment): Same.
6884         (gen_get_level): Same.
6885         (gen_hsa_alloca): Same.
6886         (omp_simple_builtin::generate): Same.
6887         (gen_hsa_atomic_for_builtin): Same.
6888         (gen_hsa_insns_for_call): Same.
6889         * input.c (dump_location_info): Same.
6890         * ipa-devirt.c (compare_virtual_tables): Same.
6891         * ira.c (ira_setup_eliminable_regset): Same.
6892         * lra-assigns.c (lra_assign): Same.
6893         * lra-constraints.c (lra_constraints): Same.
6894         * lto-streamer-in.c (lto_input_mode_table): Same.
6895         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
6896         (merge_and_complain): Same.
6897         (compile_offload_image): Same.
6898         (compile_images_for_offload_targets): Same.
6899         (debug_objcopy): Same.
6900         (run_gcc): Same.
6901         (main): Same.
6902         * opts.c (print_specific_help): Same.
6903         (parse_no_sanitize_attribute): Same.
6904         (print_help): Same.
6905         (handle_param): Same.
6906         * plugin.c (add_new_plugin): Same.
6907         (parse_plugin_arg_opt): Same.
6908         (try_init_one_plugin): Same.
6909         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
6910         operators, and types in diagnostics.  Correct quoting and spelling
6911         issues.
6912         * read-rtl-function.c (parse_edge_flag_token): Same.
6913         (function_reader::parse_enum_value): Same.
6914         * reg-stack.c (check_asm_stack_operands): Same.
6915         * regcprop.c (validate_value_data): Same.
6916         * sched-rgn.c (make_pass_sched_fusion): Same.
6917         * stmt.c (check_unique_operand_names): Same.
6918         * targhooks.c (default_target_option_pragma_parse): Same.
6919         * tlink.c (recompile_files): Same.
6920         * toplev.c (process_options): Same.
6921         (do_compile): Same.
6922         * trans-mem.c (diagnose_tm_1): Same.
6923         (ipa_tm_scan_irr_block): Same.
6924         (ipa_tm_diagnose_transaction): Same.
6925         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
6926         format a tree code name in a diagnostic.
6927         (verify_types_in_gimple_min_lval): Same.
6928         (verify_types_in_gimple_reference): Same.
6929         (verify_gimple_call): Same.
6930         (verify_gimple_assign_unary): Same.
6931         (verify_gimple_assign_binary): Same.
6932         (verify_gimple_assign_ternary): Same.
6933         (verify_gimple_assign_single): Same.
6934         (verify_gimple_switch): Same.
6935         (verify_gimple_label): Same.
6936         (verify_gimple_phi): Same.
6937         (verify_gimple_in_seq): Same.
6938         (verify_eh_throw_stmt_node): Same.
6939         (collect_subblocks): Same.
6940         (gimple_verify_flow_info): Same.
6941         (do_warn_unused_result): Same.
6942         * tree-inline.c (expand_call_inline): Same.
6943         * tree-into-ssa.c (update_ssa): Same.
6944         * tree.c (tree_int_cst_elt_check_failed): Same.
6945         (tree_vec_elt_check_failed): Same.
6946         (omp_clause_operand_check_failed): Same.
6947         (verify_type_variant): Same.
6948         (verify_type): Same.
6949         * value-prof.c (verify_histograms): Same.
6950         * varasm.c (assemble_start_function): Same.
6952 2019-05-16  Martin Sebor  <msebor@redhat.com>
6954         * config/i386/i386-expand.c (get_element_number): Quote keywords
6955         and other internal names in diagnostics.  Adjust other diagnostic
6956         formatting issues noted by -Wformat-diag.
6957         * config/i386/i386-features.c
6958         (ix86_mangle_function_version_assembler_name): Same.
6959         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
6960         * config/i386/i386.c (ix86_function_type_abi): Same.
6961         (ix86_function_ms_hook_prologue): Same.
6962         (classify_argument): Same.
6963         (ix86_expand_prologue): Same.
6964         (ix86_md_asm_adjust): Same.
6965         (ix86_memmodel_check): Same.
6967 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
6969         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
6970         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
6971         and fpxx modes.
6973 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6975         PR target/90497
6976         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
6977         intrinsics without SSE/SSE2/SSSE3.
6978         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
6979         check.
6980         (*mmx_uavgv8qi3): Likewise.
6982 2019-05-17  Richard Biener  <rguenther@suse.de>
6984         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
6985         VEC_PERM_EXPR as __VEC_PERM with -gimple.
6987 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
6989         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
6990         vec_sldw insn pattern.
6992 2019-05-17  Richard Biener  <rguenther@suse.de>
6994         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
6996 2019-05-17  Martin Liska  <mliska@suse.cz>
6998         PR driver/90496
6999         * toplev.c (output_stack_usage): With LTO and sanitizer it
7000         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
7001         has no file location.
7003 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
7005         PR c++/90484
7006         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
7007         sz0 is equal to sz1, instead return false in that case.
7009         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
7010         has non-constant expression, force sctx.lane and use two
7011         argument IFN_GOMP_SIMD_LANE instead of single argument.
7012         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
7013         two argument IFN_GOMP_SIMD_LANE without lhs.
7014         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
7015         member.
7016         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
7017         Define.
7018         (LOOP_REQUIRES_VERSIONING): Or in
7019         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
7020         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7021         simd_if_cond.
7022         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
7023         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
7024         from simd if clause if needed.
7026 2019-05-16  Richard Biener  <rguenther@suse.de>
7028         * tree-affine.c (expr_to_aff_combination): New function split
7029         out from...
7030         (tree_to_aff_combination): ... here.
7031         (aff_combination_expand): Avoid building a GENERIC tree.
7033 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
7035         * cgraphunit.c (cgraph_node::expand_thunk): Remove
7036         assemble_start_function and assemble_end_function calls.
7037         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
7038         assemble_start_function and assemble_end_function.
7039         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
7040         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
7041         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
7042         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
7043         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
7044         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
7045         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
7046         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
7047         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7048         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7049         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7050         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
7051         Likewise.
7052         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7053         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
7054         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
7055         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
7056         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7057         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7058         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
7059         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
7060         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7061         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7062         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7063         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7064         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
7065         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
7066         Likewise.
7067         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7068         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7069         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
7071 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
7073         * tree-ssa-alias.c (alias_stats): Add
7074         aliasing_component_refs_p_may_alias and
7075         aliasing_component_refs_p_no_alias.
7076         (dump_alias_stats): Print aliasing_component_refs_p stats.
7077         (aliasing_component_refs_p): Update stats.
7079 2019-05-16  Martin Liska  <mliska@suse.cz>
7081         PR lto/90500
7082         * multiple_target.c (expand_target_clones): Do not allow
7083         target_clones being used with a symbol that is an alias.
7085 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
7087         PR tree-optimization/90394
7088         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
7089         positives rather than ICE for cases where (code2 == NE_EXPR
7090         && code1 == BIT_AND_EXPR).
7092 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
7094         PR fortran/90329
7095         * tree-core.h (struct tree_decl_common): Document
7096         decl_nonshareable_flag for PARM_DECLs.
7097         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
7098         * calls.c (expand_call): Don't try tail call if caller
7099         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
7100         passed on the stack and callee needs to pass any arguments on the
7101         stack.
7102         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7103         else if instead of series of mutually exclusive ifs.  Handle
7104         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
7105         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7107         * lto-streamer.h (LTO_major_version): Bump to 9.
7109 2019-05-16  Jun Ma <JunMa@linux.alibaba.com>
7111         PR tree-optimization/90106
7112         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
7113         new parameter as new internal function call, also move it to new
7114         basic block.
7115         (use_internal_fn): Pass internal function call to
7116         shrink_wrap_one_built_in_call_with_conds.
7118 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
7120         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
7121         max_vf to 1.
7122         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
7123         safelen_int and set loop->dont_vectorize.
7125 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7127         PR target/89021
7128         * config/i386/i386-builtin.def: Enable MMX intrinsics with
7129         SSE/SSE2/SSSE3.
7130         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7131         Likewise.
7132         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
7133         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
7134         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
7135         is defined.
7137 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7139         PR target/89021
7140         * config/i386/mmx.md (*vec_dupv2sf): Changed to
7141         define_insn_and_split to support SSE emulation.
7142         (*vec_extractv2sf_0): Likewise.
7143         (*vec_extractv2sf_1): Likewise.
7144         (*vec_extractv2si_0): Likewise.
7145         (*vec_extractv2si_1): Likewise.
7146         (*vec_extractv2si_zext_mem): Likewise.
7147         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
7148         (vec_extractv2sf_1 splitter): Likewise.
7149         (vec_extractv2sfsf): Likewise.
7150         (vec_setv2si): Likewise.
7151         (vec_extractv2si_1 splitter): Likewise.
7152         (vec_extractv2sisi): Likewise.
7153         (vec_setv4hi): Likewise.
7154         (vec_extractv4hihi): Likewise.
7155         (vec_setv8qi): Likewise.
7156         (vec_extractv8qiqi): Likewise.
7157         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
7158         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
7159         (vec_extractv2sisi): Likewise.
7160         (vec_extractv4hihi): Likewise.
7161         (vec_extractv8qiqi): Likewise.
7162         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
7163         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
7164         (vec_initv2sisi): Likewise.
7165         (vec_initv4hihi): Likewise.
7166         (vec_initv8qiqi): Likewise.
7167         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
7168         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
7169         (vec_setv4hi): Likewise.
7170         (vec_setv8qi): Likewise.
7172 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7174         PR target/89021
7175         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
7176         TARGET_MMX_WITH_SSE.
7177         (MMXMODE:*mov<mode>_internal): Likewise.
7178         (MMXMODE:movmisalign<mode>): Likewise.
7180 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7182         PR target/89021
7183         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
7184         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
7185         (sse2_cvtpd2pi): Ditto.
7186         (sse2_cvttpd2pi): Ditto.
7187         (*vec_concatv2sf_sse4_1): Ditto.
7188         (*vec_concatv2sf_sse): Ditto.
7189         (*vec_concatv2si_sse4_1): Ditto.
7190         (*vec_concatv2si): Ditto.
7191         (*vec_concatv4si_0): Ditto.
7192         (*vec_concatv2di_0): Ditto.
7194 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7196         PR target/89021
7197         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
7199 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7201         PR target/89021
7202         * config/i386/sse.md (ssse3_palignrdi): Changed to
7203         define_insn_and_split to support SSE emulation.
7205 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7207         PR target/89021
7208         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
7210 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7212         PR target/89021
7213         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
7214         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
7215         SSE emulation.
7217 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7219         PR target/89021
7220         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
7221         or TARGET_MMX_WITH_SSE.
7222         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
7224 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7226         PR target/89021
7227         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
7229 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7231         PR target/89021
7232         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
7233         Changed to define_insn_and_split to support SSE emulation.
7235 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7237         PR target/89021
7238         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
7239         Changed to define_insn_and_split to support SSE emulation.
7241 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7243         PR target/89021
7244         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
7245         (*mmx_<emms>): This.
7246         (mmx_<emms>): New expander.
7248 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7250         PR target/89021
7251         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
7252         support.
7253         (*sse2_umulv1siv1di3): Add SSE2 emulation.
7255 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7257         PR target/89021
7258         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
7260 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7262         PR target/89021
7263         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
7265 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7267         PR target/89021
7268         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
7269         TARGET_MMX_WITH_SSE.
7270         (*mmx_uavgv4hi3): Add SSE emulation.
7272 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7274         PR target/89021
7275         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
7276         and TARGET_MMX_WITH_SSE.
7277         (*mmx_uavgv8qi3): Add SSE emulation.
7279 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7281         PR target/89021
7282         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
7283         maskmovdqu for __MMX_WITH_SSE__.
7285 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7287         PR target/89021
7288         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
7289         TARGET_MMX and TARGET_MMX_WITH_SSE.
7290         (*mmx_umulv4hi3_highpart): Add SSE emulation.
7292 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7294         PR target/89021
7295         * config/i386/mmx.md (mmx_pmovmskb): Changed to
7296         define_insn_and_split to support SSE emulation.
7298 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7300         PR target/89021
7301         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
7302         and TARGET_MMX_WITH_SSE.
7303         (mmx_<code>v8qi3): Likewise.
7304         (smaxmin:<code>v4hi3): New.
7305         (umaxmin:<code>v8qi3): Likewise.
7306         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
7307         (umaxmin:*mmx_<code>v8qi3): Likewise.
7309 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7311         PR target/89021
7312         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
7313         TARGET_MMX_WITH_SSE.
7314         (*mmx_pinsrw): Add SSE emulation.
7316 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7318         PR target/89021
7319         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
7321 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7323         PR target/89021
7324         * config/i386/sse.md (sse_cvtpi2ps): Changed to
7325         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
7326         SSE emulation.
7328 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7330         PR target/89021
7331         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
7332         (sse_cvttps2pi): Likewise.
7334 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7336         PR target/89021
7337         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
7338         TARGET_MMX_WITH_SSE.
7339         (mmx_pshufw_1): Add SSE emulation.
7340         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
7341         TARGET_MMX_WITH_SSE to support SSE emulation.
7343 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7345         PR target/89021
7346         * config/i386/constraints.md (Yw): New constraint.
7347         * config/i386/mmx.md (*vec_dupv2si): Changed to
7348         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
7349         support SSE emulation.
7351 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7353         PR target/89021
7354         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
7355         TARGET_MMX_WITH_SSE.
7356         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
7357         support.
7358         (mmx_gt<mode>3): Likewise.
7360 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7362         PR target/89021
7363         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
7364         TARGET_MMX_WITH_SSE.  Add SSE support.
7366 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7368         PR target/89021
7369         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
7370         TARGET_MMX_WITH_SSE.
7371         (any_logic:<code><mode>3): New.
7372         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
7373         Add SSE support.
7375 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7377         PR target/89021
7378         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
7379         TARGET_MMX_WITH_SSE.  Add SSE emulation.
7380         (mmx_<shift_insn><mode>3): Likewise.
7381         (ashr<mode>3): New.
7382         (<shift_insn><mode>3): Likewise.
7384 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7386         PR target/89021
7387         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
7388         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
7390 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7392         PR target/89021
7393         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
7394         TARGET_MMX_WITH_SSE.
7395         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
7396         SSE support.
7398 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7400         PR target/89021
7401         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
7402         TARGET_MMX_WITH_SSE.
7403         (mulv4hi3): New.
7404         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
7405         support.
7407 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7409         PR target/89021
7410         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
7411         (plusminus:mmx_<plusminus_insn><mode>3): Check
7412         TARGET_MMX_WITH_SSE.
7413         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
7414         (<plusminus_insn><mode>3): New.
7415         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
7416         (*mmx_<plusminus_insn><mode>3): Likewise.
7418 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7420         PR target/89021
7421         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
7422         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
7423         prototype.
7424         * config/i386/mmx.m (mmx_punpckhbw): Changed to
7425         define_insn_and_split to support SSE emulation.
7426         (mmx_punpcklbw): Likewise.
7427         (mmx_punpckhwd): Likewise.
7428         (mmx_punpcklwd): Likewise.
7429         (mmx_punpckhdq): Likewise.
7430         (mmx_punpckldq): Likewise.
7432 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7433             Uros Bizjak  <ubizjak@gmail.com>
7435         PR target/89021
7436         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
7437         New function.
7438         (ix86_split_mmx_pack): Likewise.
7439         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
7440         New prototype.
7441         (ix86_split_mmx_pack): Likewise.
7442         * config/i386/i386.md (mmx_isa): New.
7443         (enabled): Also check mmx_isa.
7444         * config/i386/mmx.md (any_s_truncate): New code iterator.
7445         (s_trunsuffix): New code attr.
7446         (mmx_packsswb): Removed.
7447         (mmx_packssdw): Likewise.
7448         (mmx_packuswb): Likewise.
7449         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
7450         MMX packsswb/packuswb with SSE2.
7451         (mmx_packssdw): Likewise.
7452         * config/i386/predicates.md (register_mmxmem_operand): New.
7454 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7456         PR target/89021
7457         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7458         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
7459         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
7460         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
7461         (ix86_vector_mode_supported_p): Likewise.
7462         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
7464 2019-05-15  Martin Liska  <mliska@suse.cz>
7466         PR middle-end/90478
7467         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7468         Check for overflow.
7470 2019-05-15  Richard Biener  <rguenther@suse.de>
7472         * tree-into-ssa.c (pass_build_ssa::execute): Run
7473         update_address_taken before going into SSA.
7475 2019-05-15  Richard Biener  <rguenther@suse.de>
7477         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
7478         as __BIT_FIELD_REF with type with -gimple.
7480 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
7482         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
7483         semantically equivalent branches (left over after prior refactorings).
7485 2019-05-15  Richard Biener  <rguenther@suse.de>
7487         PR tree-optimization/88828
7488         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
7489         bogus check.
7491 2019-05-14  Richard Biener  <rguenther@suse.de>
7493         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
7494         as __VIEW_CONVERT with -gimple.
7496 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
7498         PR target/82920
7499         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
7500         Darwin.
7502 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
7504         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
7505         define_split to become a define_insn_and_split.
7507 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
7509         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
7510         arguments.
7511         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
7512         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
7513         (sibcall_epilogue): Adjust.
7514         (epilogue): Adjust.
7516 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7518         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
7519         to unsupported ones.
7520         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
7521         * config.host: Likewise.
7522         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
7523         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
7524         __svr4__]: Remove "brand" fallback.
7525         [!KSTAT_DATA_STRING]: Remove.
7526         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
7527         to *-*-solaris2*.
7528         (comdat_group): Likewise.
7529         (set_have_as_tls): Likewise.
7530         (gcc_cv_target_dl_iterate_phdr): Likewise.
7531         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
7532         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
7533         * configure: Regenerate.
7534         * doc/install.texi: Simplify Solaris target triplets.
7535         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
7536         (Specific, *-*-solaris2*): Document Solaris 10 removal.
7537         Remove Solaris 10 references.
7538         Remove obsolete Solaris bug reference.
7539         (Specific, sparc-sun-solaris2.10): Remove.
7541 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7543         * config/i386/i386.md (any_div): New code iterator.
7544         (paired_mod): New code attribute.
7545         (sgnprefix): Handle DIV and UDIV RTXes.
7546         (u): Ditto.
7547         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
7548         and udivmod<mode>4 patterns using any_div code iterator.
7549         (divmod splitters): Macroize splitters using any_div code iterator.
7550         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
7551         (*udivmodsi4_pow2_zext_2): Ditto.
7552         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
7553         and *udivmod<mode>4_noext patterns using any_div code iterator.
7554         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
7555         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
7556         patterns using any_div code iterator.
7557         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
7558         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
7559         patterns using any_div code iterator.
7560         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
7561         udivmodhiqi3 patterns using any_extend code iterator.
7563 2019-05-14  Richard Biener  <rguenther@suse.de>
7564             H.J. Lu  <hongjiu.lu@intel.com>
7566         PR tree-optimization/88828
7567         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7568         permuting in a single non-constant element not extracted
7569         from a vector.
7571 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7573         * internal-fn.def (SIGNBIT): New.
7574         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
7575         defined.
7576         (signbitv4sf2): Likewise.
7578 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
7580         PR target/90357
7581         * config/mips/mips.c (mips_split_move): Skip forward SRC into
7582         next insn when the SRC reg is dead.
7584 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
7586         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
7587         (alloc_cand_and_find_basis): Ditto.
7588         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
7589         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
7590         (create_add_imm_cand, slsr_process_cast): Ditto.
7591         (slsr_process_copy, replace_mult_candidate): Ditto.
7592         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
7593         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
7594         (pass_strength_reduction::execute): Init the first NULL element.
7596 2019-05-13  Nathan Sidwell  <nathan@acm.org>
7598         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
7599         (run_attempt): Reformat line break.
7601 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
7603         PR target/90418
7604         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
7605         data registers in sibcall epilogues.
7606         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
7608 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7610         PR target/89221
7611         * configure.ac (--enable-frame-pointer):
7612         Disable by default for cygwin and mingw.
7613         * configure: Regenerate.
7615 2019-05-13  Nathan Sidwell  <nathan@acm.org>
7617         * dwarf2out.c (breakout_comdat_types): Move comment to correct
7618         piece of code.
7619         (const_ok_for_output_1): Balance parens around #if/#else/#endif
7620         (gen_member_die): Move abstract origin check earlier.  Only VARs
7621         can be static_inline_p.  Simplify splicing control flow.
7623 2019-05-13  Richard Biener  <rguenther@suse.de>
7625         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7626         VIEW_CONVERT_EXPR.
7627         (vect_build_slp_tree_1): Likewise.
7629 2019-05-13  Richard Biener  <rguenther@suse.de>
7631         PR tree-optimization/90402
7632         * tree-if-conv.c (tree_if_conversion): Value number only
7633         the loop body by making the latch an exit of the region
7634         as well.
7635         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
7636         processing PHIs.
7637         (do_rpo_vn): Deal with multiple edges into the entry block
7638         that are not backedges inside the region by skipping PHIs
7639         of the entry block.
7641 2019-05-13  Richard Biener  <rguenther@suse.de>
7643         PR tree-optimization/90316
7644         * tree-ssa-pre.c (insert_aux): Fold into ...
7645         (insert): ... this function.  Use a RPO walk to reduce the
7646         number of required iterations.
7648 2019-05-13  Martin Liska  <mliska@suse.cz>
7650         PR tree-optimization/90416
7651         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
7652         string instead of passing the second part as va_arg argument.
7654 2019-05-13  Martin Liska  <mliska@suse.cz>
7656         PR gcov-profile/90380
7657         * gcov.c (handle_cycle): Do not support zero cycle count,
7658         it should not be possible.
7659         (path_contains_zero_cycle_arc): New function.
7660         (circuit): Ignore zero cycle arc counts.
7662 2019-05-13  Martin Liska  <mliska@suse.cz>
7664         PR gcov-profile/90380
7665         * gcov.c (enum loop_type): Remove the enum and
7666         the operator.
7667         (handle_cycle): Assert that we should not reach
7668         a negative count.
7669         (circuit): Use loop_found instead of a tri-state loop_type.
7670         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
7671         happen.
7673 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
7675         PR target/82920
7676         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
7677         (ix86_output_indirect_branch_via_reg): Use output mechanism
7678         accounting for __USER_LABEL_PREFIX__.
7679         (ix86_output_indirect_branch_via_push): Likewise.
7680         (ix86_output_function_return): Likewise.
7681         (ix86_output_indirect_function_return): Likewise.
7683 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
7685         * doc/md.texi: Document use of code attributes in rtx patterns.
7686         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
7687         * read-rtl.c (find_code): Split out search loops into...
7688         (maybe_find_code): ...this new function.
7689         (check_code_iterator): Make the error message more informative.
7690         (check_code_attribute): New function.
7691         (rtx_reader::rtx_alloc_for_name): Likewise.
7692         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
7693         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
7694         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
7695         <max_opp> directly as an rtx code instead of via a match_operator.
7696         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
7697         (<su>abd<mode>_3): Update accordingly.
7699 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
7701         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
7702         is given, print the state of the EH "save world" computation for
7703         Darwin.
7705 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
7707         PR c++/59813
7708         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
7709         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
7711 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7713         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
7714         Use pinsrd for TARGET_SSE4_1.
7715         * config/i386/sse.md (movdi_to_sse): Ditto.
7717 2019-05-10  Richard Biener  <rguenther@suse.de>
7719         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
7720         (do_rpo_vn): Initialize next_value_id.
7722 2019-05-10  Martin Liska  <mliska@suse.cz>
7724         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
7725         Fix plural form.
7727 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
7729         PR tree-optimization/90385
7730         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
7731         arguments of the exit phis.
7733         PR c++/90383
7734         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
7735         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
7736         id->do_not_fold.
7737         (copy_tree_body_r): Likewise.
7738         (copy_fn): Set id.do_not_fold to true.
7740 2019-05-10  Martin Liska  <mliska@suse.cz>
7742         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
7743         Reapply changes from r269790.
7745 2019-05-10  Martin Liska  <mliska@suse.cz>
7747         PR middle-end/90340
7748         * doc/invoke.texi: New params.
7749         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
7750         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
7751         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7752         Use it.
7753         * tree-switch-conversion.h (struct jump_table_cluster):
7754         Likewise.
7756 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
7758         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
7760 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
7762         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
7764 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
7766         PR rtl-optimization/88879
7767         * sel-sched.c (sel_target_adjust_priority): Remove assert.
7769 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
7771         PR target/90405
7772         * config/arm/arm.c (callee_saved_reg_p): Move before
7773         thumb_find_work_register.
7774         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
7775         thumb_find_work_register.  Only call df_get_live_out once.
7776         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
7777         (thumb_find_work_register): Use
7778         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
7779         algorithms to locate a spare call clobbered reg.
7781 2019-05-09  Martin Liska  <mliska@suse.cz>
7783         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
7784         and MAX_EXPR in GIMPLE FE format.
7786 2019-05-09  Martin Liska  <mliska@suse.cz>
7788         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
7789         * gimple-pretty-print.c (dump_gimple_bb_header):
7790         Dump BB count.
7791         (pp_cfg_jump): Dump edge probability.
7792         * profile-count.c (profile_quality_as_string): Simplify
7793         with a static array.
7794         (parse_profile_quality): New function.
7795         (profile_count::dump): Simplify with a static array.
7796         (profile_count::from_gcov_type): Add new argument.
7797         * profile-count.h (parse_profile_quality): Likewise.
7798         * predict.h (set_hot_bb_threshold): New.
7799         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
7800         New param.
7801         * predict.c (get_hot_bb_threshold): Set from the new param.
7802         (set_hot_bb_threshold): New.
7804 2019-05-09  Richard Biener  <rguenther@suse.de>
7806         PR tree-optimization/90395
7807         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
7808         rewrite vector stores that throw internally.
7810 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
7812         * cif-code.def (CHKP): Remove.
7814         PR target/89221
7815         * configure.ac (--enable-frame-pointer): Disable by default for
7816         GNU systems.
7817         * configure: Regenerate.
7819 2019-05-09  Alan Modra  <amodra@gmail.com>
7821         PR target/89271
7822         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
7823         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
7824         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
7825         cost for general <-> vsx when direct moves are available.
7826         Cost union classes at minimal cost for any reg in the class.
7827         Correct calculation for moves between vsx, float, and altivec.
7828         Don't return a low cost for moves between special regs.  Don't
7829         use hard coded register numbers.
7830         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
7831         (rs6000_ira_change_pseudo_allocno_class): New function.
7832         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
7833         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
7834         alternatives.
7835         (movsi_internal1): Don't disparage vector alternatives.
7836         (mov<mode>_internal): Likewise, excepting alternative that
7837         will be split.
7838         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
7839         we <- b alternative.
7841 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
7843         PR c++/59813
7844         PR tree-optimization/89060
7845         * tree-ssa-live.h (live_vars_map): New typedef.
7846         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
7847         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
7848         (struct compute_live_vars_data): New type.
7849         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
7850         live_vars_at_stmt, destroy_live_vars): New functions.
7851         * tree-tailcall.c: Include tree-ssa-live.h.
7852         (live_vars, live_vars_vec): New global variables.
7853         (find_tail_calls): Perform variable life analysis before punting.
7854         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
7855         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
7856         member.
7857         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
7858         Perform variable life analysis to select variables that really need
7859         clobbers added.
7860         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
7861         instead set id->eh_landing_pad_dest and assert it is the same.
7862         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
7864 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
7865             Richard Earnshaw  <rearnsha@arm.com>
7867         PR target/88167
7868         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
7869         function.
7870         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
7871         (thumb1_compute_save_core_reg_mask): Don't force a spare work
7872         register if both the epilogue and prologue can use call-clobbered
7873         regs.
7874         (thumb1_unexpanded_epilogue): Use
7875         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
7876         picking temporaries for restoring high regs to match that of the
7877         prologue where possible.
7878         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
7879         the list of work registers.  Detect if the return address is still live
7880         at the end of the prologue and avoid using it for a work register if so.
7881         If the return address is not live, add LR to the list of pushable regs
7882         after the first pass.
7884 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
7886         PR tree-optimization/90078
7887         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
7888         (INFTY): Increase the value for infinite cost.
7889         (struct comp_cost): Promote type of members to int64_t.
7890         (infinite_cost): Don't set complexity in initialization.
7891         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
7892         overflows to infinite_cost.
7893         (adjust_setup_cost): Promote type of parameter and cost computation
7894         to int64_t.
7895         (struct ainc_cost_data, struct iv_ca): Promote type of member to
7896         int64_t.
7897         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
7898         cost computation to int64_t.
7899         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
7900         int64_t's format specifier in dump.
7902 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
7904         PR tree-optimization/90240
7905         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
7906         with respect to scaling factor pre-computed for each basic block.
7907         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
7908         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
7909         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
7910         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
7911         live range for array of loop's basic blocks.  Cleanup aux field of
7912         loop's basic blocks.
7914 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
7916         PR tree-optimization/90356
7917         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
7919 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
7921         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
7922         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
7923         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
7924         (ix86_handle_option): Handle -mavx512bf16.
7925         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
7926         to extra_headers.
7927         * config/i386/avx512bf16vlintrin.h: New.
7928         * config/i386/avx512bf16intrin.h: New.
7929         * config/i386/cpuid.h (bit_AVX512BF16): New.
7930         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
7931         * config/i386/i386-builtin-types.def: Add new types.
7932         * config/i386/i386-builtin.def: Add new builtins.
7933         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7934         __AVX512BF16__.
7935         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
7936         (ix86_option_override_internal): Handle BF16.
7937         (ix86_valid_target_attribute_inner_p): Ditto.
7938         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
7939         * config/i386/i386-builtin.c (enum processor_features): Add
7940         F_AVX512BF16.
7941         (static const _isa_names_table isa_names_table): Ditto.
7942         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
7943         (PTA_AVX512BF16): Ditto.
7944         * config/i386/i386.opt: Add -mavx512bf16.
7945         * config/i386/immintrin.h: Include avx512bf16intrin.h
7946         and avx512bf16vlintrin.h.
7947         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
7948         avx512f_cvtneps2bf16_<mode><mask_name>,
7949         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
7950         * config/i386/subst.md (mask_half): Add new subst.
7951         * doc/invoke.texi: Document -mavx512bf16.
7953 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
7955         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
7956         Delete declaration.
7957         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
7958         (rs6000_debug_legitimize_reload_address): Delete.
7959         (rs6000_legitimize_reload_address_ptr): Delete.
7960         (rs6000_option_override_internal): Adjust.
7961         (mem_operand_gpr): Adjust comment.
7962         (legitimate_lo_sum_address_p): Ditto.
7963         (rs6000_legitimize_reload_address): Delete.
7964         (rs6000_debug_legitimize_reload_address): Delete.
7965         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
7967 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7969         PR target/89765
7970         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7971         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
7972         to compute vector element selector for both constant and variable
7973         operands.
7975 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7977         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
7978         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
7979         ashrdi3_cvt using SWI48 mode iterator.
7981 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
7983         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
7984         (aarch64_<su>abd<mode>_3): Likewise.
7985         (*aarch64_<su>abd<mode>_3): New define_insn.
7986         (<sur>sad<vsi2qi>): New define_expand.
7987         * config/aarch64/iterators.md: Added MAX_OPP attribute.
7988         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
7989         (build_vect_cond_expr): Likewise.
7991 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7993         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
7994         clobbers outside of accessible_reg_set.
7995         * config/i386/i386.c (ix86_conditional_register_usage):
7996         Disable register sets by clearing corresponding bits in
7997         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
7998         call_used_regs and don't clear corresponding reg_names array members.
8000 2019-05-07  Richard Biener  <rguenther@suse.de>
8002         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
8003         not specified still compute a comp_vectype for invariant
8004         compares.
8006 2019-05-07  Richard Biener  <rguenther@suse.de>
8008         PR tree-optimization/90316
8009         * tree-ssa-pre.c (translate_vuse_through_block): When
8010         same_valid is NULL do not bother to search for a virtual
8011         PHI continuation.
8012         (phi_translate_1): When operands changed we cannot keep
8013         the same value-number so do not bother to ask whether
8014         that's possible from translate_vuse_through_block.
8016 2019-05-07  Martin Liska  <mliska@suse.cz>
8018         * bitmap.c (bitmap_register): Come up with
8019         alloc_descriptor_max_uid and assign it for
8020         a new bitmap.
8021         (register_overhead): Use get_descriptor as
8022         a descriptor.
8023         (release_overhead): New.
8024         (bitmap_elem_to_freelist): Call it.
8025         (bitmap_elt_clear_from): Likewise.
8026         (bitmap_obstack_free): Likewise.
8027         (bitmap_move): Sensitively release memory.
8028         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
8029         (bitmap_initialize): Initialize alloc_descriptor to zero.
8030         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
8032 2019-05-07  Richard Biener  <rguenther@suse.de>
8034         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
8035         we build a SLP node.  Remove max_size and limiting.
8036         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
8038 2019-05-07  Richard Biener  <rguenther@suse.de>
8040         PR tree-optimization/90316
8041         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
8042         limit by reference.
8043         (walk_non_aliased_vuses): Take walking limit argument.
8044         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
8045         walking if it is reached instead of just counting.
8046         (get_continuation_for_phi): Likewise.
8047         (walk_non_aliased_vuses): Likewise, instead of leaving counter
8048         limiting to the callback.
8049         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
8050         (vn_reference_lookup_3): Likewise.
8051         (vn_reference_lookup_pieces): Likewise.
8052         (vn_reference_lookup): Likewise.
8053         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
8054         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
8055         (avail_exprs_stack::lookup_avail_expr): Likewise.
8057 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
8059         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
8060         for comparaible types in the second direction even if first one
8061         hits incomparable type.
8063 2019-05-07  Richard Biener  <rguenther@suse.de>
8065         PR lto/90369
8066         * lto-wrapper.c (debug_objcopy): Use the original filename
8067         including archive offset for the filename used for -save-temps.
8069 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
8071         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
8072         detection.
8074 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8075             Hongtao Liu  <hongtao.liu@intel.com>
8077         PR target/89750
8078         PR target/86444
8079         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
8080         Modified, original implementation isn't correct.
8082 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8084         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
8085         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
8086         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
8087         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
8088         (FRAME_POINTER_REGNUM): Change numbering.
8089         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
8090         (alt_reg_names): Adjust.
8091         (rs6000_conditional_register_usage): Don't mark hard register 64 as
8092         fixed.
8093         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8094         (DWARF_FRAME_REGISTERS): Delete.
8095         (DWARF2_FRAME_REG_OUT): Fix whitespace.
8096         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8097         Adjust.
8098         (REG_ALLOC_ORDER): Adjust.
8099         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
8100         (REG_CLASS_CONTENTS): Adjust.
8101         (RETURN_ADDR_RTX): Change comment.
8102         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
8103         instead of 67.
8104         (REGISTER_NAMES): Adjust.
8105         (ADDITIONAL_REGISTER_NAMES): Adjust.
8106         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8108 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8110         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
8111         Delete.
8112         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8113         (DWARF_FRAME_REGISTERS): Adjust.
8114         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8115         Adjust.
8116         (REG_ALLOC_ORDER): Adjust.
8117         (enum reg_class): Delete SPR_REGS.
8118         (REG_CLASS_NAMES): Delete SPR_REGS.
8119         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
8120         (REGISTER_NAMES): Adjust.
8121         (ADDITIONAL_REGISTER_NAMES): Adjust.
8122         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8123         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
8124         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
8125         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
8126         (htm_spr_regno): Delete.
8127         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
8128         argument.
8129         (rs6000_dbx_register_number): Adjust.
8131 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8133         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
8135 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8137         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
8138         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
8140 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
8142         PR tree-optimization/88709
8143         PR tree-optimization/90271
8144         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
8145         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
8146         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
8147         variable.
8148         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
8149         of the store merging group is larger than
8150         PARAM_STORE_MERGING_MAX_SIZE parameter.
8151         (split_group): Add bzero_first argument.  If set, always emit first
8152         the first store which must be = {} of the whole area and then for the
8153         rest of the stores consider all zero bytes as paddings.
8154         (imm_store_chain_info::output_merged_store): Check if first store
8155         is = {} of the whole area and if yes, determine which setting of
8156         bzero_first for split_group gives smaller number of stores.  Adjust
8157         split_group callers.
8158         (lhs_valid_for_store_merging_p): Allow decls.
8159         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
8160         no elts.
8161         (pass_store_merging::process_store): Likewise.
8163 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8165         PR target/89424
8166         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8167         handling of V1TImode.
8169 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8171         PR target/89221
8172         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
8173         and enable_frame_pointer ...
8174         * configure.ac: ... here.  Update help strings for
8175         --enable-frame-pointer.
8176         * configure: Regenerate.
8177         * config/i386/i386-options.c (ix86_option_override_internal): Remove
8178         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
8179         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
8180         (USE_X86_64_FRAME_POINTER): Ditto.
8182 2019-05-06  Martin Liska  <mliska@suse.cz>
8184         * config.gcc: Append to target_gtfiles and fix indentation.
8186 2019-05-06  Richard Biener  <rguenther@suse.de>
8188         PR tree-optimization/90358
8189         * tree-vect-stmts.c (get_group_load_store_type): Properly
8190         detect unused upper half of load.
8191         (vectorizable_load): Likewise.
8193 2019-05-06  Richard Biener  <rguenther@suse.de>
8195         PR tree-optimization/88828
8196         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
8197         (simplify_vector_constructor): ...here.  Handle constants in
8198         the constructor.
8200 2019-05-06  Richard Biener  <rguenther@suse.de>
8202         PR tree-optimization/90328
8203         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
8204         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
8205         is valid in the loop nest before using it.
8206         (initialize_data_dependence_relation): Adjust.
8207         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
8208         loop as loop-nest to dr_may_alias_p.
8210 2019-05-06  Richard Biener  <rguenther@suse.de>
8212         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
8214 2019-05-06  Richard Biener  <rguenther@suse.de>
8216         PR tree-optimization/90316
8217         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
8218         compute target on demand.
8219         (get_continuation_for_phi): Remove code walking stmts to
8220         get to a target virtual operand which could end up being
8221         quadratic.
8223 2019-05-06  Martin Liska  <mliska@suse.cz>
8225         PR sanitizer/90312
8226         * config/i386/i386-options.c (ix86_option_override_internal): Error only
8227         when -mabi is selected to a non-default version.
8229 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
8230             Martin Liska  <mliska@suse.cz>
8232         * Makefile.in: Add lto-dump.texi.
8233         * cgraph.h: Add new functions get_visibility_string and
8234         get_symtab_type_string.
8235         * doc/gcc.texi: Include lto-dump section.
8236         * doc/lto-dump.texi: New file.
8237         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
8238         (parse_dump_option): Factor out this function.
8239         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
8240         (parse_dump_option): Export the function.
8241         * symtab.c (symtab_node::get_visibility_string): New function.
8242         (symtab_node::get_symtab_type_string): Likewise.
8244 2019-05-06  Martin Liska  <mliska@suse.cz>
8246         * config/i386/i386-builtins.c: New file.
8247         * config/i386/i386-builtins.h: New file.
8248         * config/i386/i386-expand.c: New file.
8249         * config/i386/i386-expand.h: New file.
8250         * config/i386/i386-features.c: New file.
8251         * config/i386/i386-features.h: New file.
8252         * config/i386/i386-options.c: New file.
8253         * config/i386/i386-options.h: New file.
8254         * config.gcc: Add new files into extra_objs and
8255         target_gtfiles.
8256         * config/i386/i386.c: Split content of the file
8257         into newly introduced files.
8258         * config/i386/i386.h: Declare common variables
8259         and macros.
8260         * config/i386/t-i386: Define dependencies for new files.
8262 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
8264         PR target/89400
8265         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
8266         Restrict 'all' variant to 32-bit configurations.
8267         (unaligned_loadhiu): Likewise.
8268         (unaligned_storehi): Likewise.
8269         (unaligned_storesi): Likewise.
8270         (unaligned_loadhis): Disable when compiling for thumb1.
8272 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
8274         PR tree-optimization/90269
8275         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8276         Ignore clobbers.
8278 2019-05-03  Martin Liska  <mliska@suse.cz>
8280         * hash-map.h: Add is_empty function.
8281         * hash-set.h: Likewise.
8282         * hash-table.h: Likewise.
8283         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
8284         elements () == 0 (and similar usages).
8285         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
8286         * gimplify.c (gimplify_bind_expr): Likewise.
8287         (gimplify_switch_expr): Likewise.
8288         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
8289         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
8290         * postreload-gcse.c (dump_hash_table): Likewise.
8291         (gcse_after_reload_main): Likewise.
8292         * predict.c (combine_predictions_for_bb): Likewise.
8293         * tree-parloops.c (reduction_phi): Likewise.
8294         (separate_decls_in_region): Likewise.
8295         (transform_to_exit_first_loop): Likewise.
8296         (gen_parallel_loop): Likewise.
8297         (gather_scalar_reductions): Likewise.
8298         (try_create_reduction_list): Likewise.
8299         * var-tracking.c (dump_vars): Likewise.
8300         (emit_notes_for_changes): Likewise.
8301         (vt_emit_notes): Likewise.
8303 2019-05-03  Richard Biener  <rguenther@suse.de>
8305         PR tree-optimization/90316
8306         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
8307         before running VN.
8309 2019-05-03  Richard Biener  <rguenther@suse.de>
8311         * tree-vect-stmts.c (get_group_load_store_type): Avoid
8312         peeling for gaps by loading only lower halves of vectors
8313         if possible.
8314         (vectorizable_load): Likewise.
8316 2019-05-03  Richard Biener  <rguenther@suse.de>
8318         PR middle-end/89518
8319         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
8321 2019-05-03  Richard Biener  <rguenther@suse.de>
8323         PR middle-end/87314
8324         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
8325         Handle STRING_CST vs DECL or STRING_CST.
8327 2019-05-03  Richard Biener  <rguenther@suse.de>
8329         PR tree-optimization/88963
8330         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
8331         vector loads feeding only BIT_FIELD_REFs to component
8332         loads.  Rewrite stores fed by CONSTRUCTORs to component
8333         stores.
8335 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
8337         * opts.h (finish_options): Remove lang_mask argument.
8338         (print_help, help_option_argument): Declare.
8339         * opts.c (print_help): Remove forward declaration, no longer static.
8340         (finish_options): Remove lang_mask argument, don't call print_help
8341         here.
8342         * opts-global.c (decode_options): Adjust finish_option caller, call
8343         print_help here.
8345         PR tree-optimization/90303
8346         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
8347         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
8349 2019-05-03  Richard Biener  <rguenther@suse.de>
8351         PR tree-optimization/89698
8352         * gimple-fold.c (canonicalize_constructor_val): Early out
8353         for constants, handle unfolded INTEGER_CSTs as they appear in
8354         C++ virtual table ctors.
8356 2019-05-03  Richard Biener  <rguenther@suse.de>
8358         * passes.c (execute_function_todo): Remove dead code.
8360 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
8362         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
8363         the internal register number, for any "real" register.
8365 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
8367         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
8368         correct numbers for TFHAR, TFIAR, TEXASR.
8370 2019-05-02  Richard Biener  <rguenther@suse.de>
8372         PR tree-optimization/89653
8373         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
8374         update-address-taken before the pass.
8375         * passes.def (pass_tree_loop_init): Put comment before it.
8377 2019-05-02  Richard Biener  <rguenther@suse.de>
8379         PR tree-optimization/89509
8380         * tree-ssa-structalias.c (compute_dependence_clique): Look
8381         at the first subvar when determining whether it is restrict.
8383 2019-05-02  Richard Biener  <rguenther@suse.de>
8385         PR tree-optimization/90273
8386         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
8387         useless debug stmts.
8389 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
8391         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
8392         ACLE branch.
8393         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
8394         SVE ACLE branch.
8395         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
8396         VEC_COND_EXPR be inserted to emulate a conditional internal function.
8397         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
8398         (vectorizable_reduction): Use the functions above to vectorize in a
8399         fully masked loop codes that don't have a conditional internal
8400         function.
8402 2019-05-02  Martin Liska  <mliska@suse.cz>
8404         * cgraphclones.c: Call valid_attribute_p with 1 for
8405         target_clone.
8406         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
8407         it's for target attribute.
8408         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
8409         Add new boolean argument.
8410         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8411         Likewise.
8412         (ix86_valid_target_attribute_tree): Pass target_clone_attr
8413         to ix86_valid_target_attribute_inner_p.
8414         (ix86_valid_target_attribute_p): Pass flags argument to
8415         ix86_valid_target_attribute_inner_p.
8416         (get_builtin_code_for_version): Use 0 as it's target attribute.
8418 2019-05-02  Martin Liska  <mliska@suse.cz>
8420         * gcc.c (process_command): Add dummy file only
8421         if n_infiles == 0.
8422         * opts-global.c (decode_options): Pass lang_mask.
8423         * opts.c (print_help): New function.
8424         (finish_options): Print --help if help_option_argument
8425         is set.
8426         (common_handle_option): Factor out content of OPT__help_
8427         into print_help.
8428         * opts.h (finish_options): Add new argument.
8430 2019-05-02  Martin Liska  <mliska@suse.cz>
8432         PR target/88809
8433         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
8434         With -minline-all-stringops use inline expansion using 4B loop.
8435         * doc/invoke.texi: Document the change of
8436         -minline-all-stringops.
8438 2019-05-01  Jeff Law  <law@redhat.com>
8440         PR tree-optimization/88797
8441         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
8442         PHI feeds a conditional on the RHS of an assignment.
8444 2019-04-30  Andrew Waterman  <andrew@sifive.com>
8445             Jim Wilson  <jimw@sifive.com>
8447         * config/riscv/constraints.md (L): New.
8448         * config/riscv/predicates.md (lui_operand): New.
8449         (sfb_alu_operand): New.
8450         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
8451         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
8452         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
8453         * config/riscv/risc.md (type): Add sfb_alu.
8454         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
8455         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
8456         (branch_zero<mode>): Delete.
8457         (mov<mode>cc): New.
8458         (mov<GPR:mode><X:mode>cc): Likewise.
8459         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
8461 2019-04-30  Nathan Sidwell  <nathan@acm.org>
8463         * tree.h (MARK_TS_EXP): New.
8465 2019-04-30  Martin Liska  <mliska@suse.cz>
8467         * opts.c (enable_warning_as_error): Provide hints
8468         for unknown options.
8470 2019-04-30  Martin Liska  <mliska@suse.cz>
8472         PR debug/90288
8473         * doc/invoke.texi: Add missing dash for gas-locview-support
8474         and gno-as-locview-support.
8476 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
8478         PR target/89093
8479         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
8480         whitespace at the start of target attribute string.
8482 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8484         PR target/86538
8485         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8486         Define __ARM_FEATURE_ATOMICS.
8488 2019-04-30  Martin Liska  <mliska@suse.cz>
8490         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
8491         into built_in_function enum. Remove code for endp == 2 and
8492         use BUILT_IN_* constants.
8493         (gimple_fold_builtin): Call the function with fcode.
8495 2019-04-30  Martin Liska  <mliska@suse.cz>
8497         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
8498         DECL_FUNCTION_CODE into ix86_builtins enum before
8499         the switch statement.
8501 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
8503         PR tree-optimization/89475
8504         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
8505         calls.
8507 2019-04-30  Martin Liska  <mliska@suse.cz>
8509         PR translation/90274
8510         * opts.c (print_filtered_help): Wrap string in _(...).
8512 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
8514         PR tree-optimization/90240
8515         Revert:
8516         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
8518         PR tree-optimization/90078
8519         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8520         checks for infinite_cost overflow.
8522 2019-04-29  Jeff Law  <law@redhat.com>
8524         * passes.def: Move -Wrestrict pass after copy propagation.
8526 2019-04-29  Maya Rashish  <coypu@sdf.org>
8528         * config.gcc (default_gnu_indirect_function): Default to yes
8529         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
8530         sparc*-*-netbsd*, x86_64-*-netbsd*.
8532 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
8534         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
8535         where cond2 is NE_EXPR.
8536         (is_value_included_in): Update comment.
8538 2019-04-29  Richard Biener  <rguenther@suse.de>
8540         PR tree-optimization/90278
8541         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
8542         EH on comparison simplification.
8544 2019-04-29  Jason Merrill  <jason@redhat.com>
8546         PR c++/82081 - tail call optimization breaks noexcept
8547         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
8548         nothrow function to a might-throw function into a tail call.
8550 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8552         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
8553         (DDR_INNER_LOOP): Likewise.
8554         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
8555         (initialize_data_dependence_relation): Likewise.
8556         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
8558 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
8560         PR rtl-optimization/90257
8561         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
8562         return value.
8564         Revert the revert:
8565         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
8567         PR target/90178
8568         Revert:
8569         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
8571         Revert the revert:
8572         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8574         Revert:
8575         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8577         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8579 2019-04-29  Richard Biener  <rguenther@suse.de>
8581         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
8582         rhs issue a reset.
8584 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
8586         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
8587         varasm.h, and netbsd-protos.h.
8589 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8591         PR target/89261
8592         * config/i386/i386-protos.h (ix86_data_alignment): Change
8593         the second argument type to unsigned int.
8594         * config/i386/i386.c (ix86_data_alignment): Change "align"
8595         argument type to unsigned int.
8597 2019-04-27  Martin Liska  <mliska@suse.cz>
8599         PR middle-end/90258
8600         * opt-suggestions.c (option_proposer::build_option_suggestions):
8601         When get_valid_option_values returns empty values, add the
8602         misspelling candidate.
8604 2019-04-26  Jim Wilson  <jimw@sifive.com>
8606         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
8607         parameter.
8608         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
8609         Pass orig_mode to riscv_build_integer.
8610         (riscv_split_integer): Pass mode to riscv_move_integer.
8611         (riscv_legitimize_const_move): Likewise.
8612         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
8613         promoted_mode.  Replace force_reg call with code to load constant into
8614         promoted reg and then subreg it for the store.
8615         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
8616         riscv_move_integer.
8618 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
8620         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
8621         corrupt codes.
8623 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
8625         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
8626         commentary about the encoding of precision.
8628 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
8630         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
8631         * config/i386/t-freebsd64: New file.
8632         * config.gcc: Add the t-freebsd64 for multilib support.
8634 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8636         * doc/extend.texi (vector_size): Add missing comma after @xref.
8638 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
8640         * BASE-VER: Set to 10.0.0.
8642 2019-04-25  Richard Biener  <rguenther@suse.de>
8644         PR middle-end/89765
8645         * gimplify.c (gimplify_expr): Avoid turning a lvalue
8646         VIEW_CONVERT_EXPR into one operating on an rvalue.
8648 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8650         PR target/89929
8651         * config/i386/i386.c (feature_priority): Moved to file scope.
8652         (processor_features): Likewise.
8653         (processor_model): Likewise.
8654         (_arch_names_table): Likewise.
8655         (arch_names_table): Likewise.
8656         (_feature_list): Removed.
8657         (feature_list): Likewise.
8658         (_isa_names_table): Moved to file scope.  Add priority.
8659         (isa_names_table): Likewise.
8660         (get_builtin_code_for_version): Replace feature_list with
8661         isa_names_table.  Update error message for P_ZERO priority.
8663 2019-04-25  Richard Biener  <rguenther@suse.de>
8665         * tree-pass.h (make_pass_phi_only_cprop): Remove.
8666         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
8668 2019-04-24  Jeff Law  <law@redhat.com>
8670         PR tree-optimization/90037
8671         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
8672         * passes.def: Replace all instance of phi-only cprop with the
8673         lattice propagator.  Move propagation pass from after erroneous
8674         path isolation to before erroneous path isolation.
8675         * tree-ssa-phionlycprop.c: Remove.
8677 2019-04-24  Richard Biener  <rguenther@suse.de>
8679         PR middle-end/90213
8680         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
8681         by size and BITS_PER_UNIT on poly-wide-ints.
8683 2019-04-25  Richard Biener  <rguenther@suse.de>
8685         PR middle-end/90194
8686         * match.pd: Add pattern to simplify view-conversion of an
8687         empty constructor.
8689 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
8691         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
8692         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
8693         for Go on 32 bit AIX.
8694         * config/rs6000/aix72.h: Likewise.
8696 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
8698         PR target/90193
8699         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
8700         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
8702 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
8704         PR target/89952
8705         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
8706         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
8707         for restored hard frame pointer.
8708         (s390_sched_dependencies_evaluation): Implement new target hook.
8709         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
8711 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
8713         * config/arc/arc-options.def: Fix typos and spelling mistakes.
8714         * config/arc/arc.c (arc_init): Cleanup warning message.
8715         (arc_override_options): Likewise.
8717 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
8719         PR target/90187
8720         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
8721         a register if both if_true and if_false are MEMs.
8723         PR tree-optimization/90208
8724         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
8725         after labels of new_bb, not before them.
8727         PR tree-optimization/90211
8728         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
8729         which are not SSA_NAMEs.
8731 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
8733         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
8734         AArch64.
8735         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
8737 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
8739         PR rtl-optimization/87979
8740         * modulo-sched.c (sms_schedule): Start ii value "mii" should
8741         not equal zero.
8743 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
8745         PR rtl-optimization/84032
8746         * modulo-sched.c (ps_insn_find_column): Change condition so that
8747         branch will always be the last insn in a row inside partial
8748         schedule.
8750 2019-04-23  Richard Biener  <rguenther@suse.de>
8752         PR debug/90131
8753         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
8754         dest_single_pred_p argument.
8755         (remove_forwarder_block): Adjust.
8756         (remove_forwarder_block_with_phi): Likewise.
8758 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8759             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8760             Jakub Jelinek  <jakub@redhat.com>
8762         PR target/89093
8763         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
8764         if used with general-regs-only.
8765         (arm_conditional_register_usage): Don't add non-general regs if
8766         general-regs-only.
8767         (arm_valid_target_attribute_rec): Handle general-regs-only.
8768         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
8769         general-regs-only.
8770         (TARGET_HARD_FLOAT_SUB): Define.
8771         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
8772         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
8773         (TARGET_REALLY_IWMMXT2): Likewise.
8774         * config/arm/arm.opt: Add -mgeneral-regs-only.
8775         * doc/extend.texi: Document ARM general-regs-only target.
8776         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
8778 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
8780         PR tree-optimization/90078
8781         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8782         checks for infinite_cost overflow.
8784 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
8786         PR tree-optimization/90021
8787         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
8788         and check univariate against it.
8789         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
8790         * tree-data-ref.c (add_other_self_distances): Pass new argument.
8792 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
8794         PR target/90178
8795         Revert:
8796         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
8798         Revert the revert:
8799         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8801         Revert:
8802         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8804         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8806 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
8808         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
8809         names using operand format, rather than hard-wired.
8810         (speculation_barrier): Likewise.
8812 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
8814         PR tree-optimization/88055
8815         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
8816         (gen_one_condition): Use it if !HONOR_NANS.
8818 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
8820         PR middle-end/90139
8821         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
8822         assign_temp instead of gen_reg_rtx.
8824 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
8826         PR translation/90118
8827         * config/aarch64/aarch64.c (aarch64_override_options_internal):
8828         Add missing space before %<.
8830 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
8832         PR rtl-optimization/87871
8833         * ira-lives.c (make_object_dead): Don't add conflicts to
8834         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
8836 2019-04-18  Martin Sebor  <msebor@redhat.com>
8838         PR middle-end/89797
8839         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
8840         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
8841         assuming type size fits in SHWI.
8843 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
8845         PR ipa/85051
8846         * ipa-inline.c (flatten_function): New parameter UPDATE.
8847         (ipa_inline, early_inliner): Use it.
8849 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
8851         * fold-const.c (int_const_binop): Return early on failure.
8853 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
8855         PR middle-end/85164
8856         * combine.c (force_int_to_mode): Cast the argument rather than
8857         the result of known_alignment.
8858         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
8860 2019-04-18  Richard Biener  <rguenther@suse.de>
8862         PR debug/90131
8863         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
8864         out from ...
8865         (remove_forwarder_block): ... here.
8866         (remove_forwarder_block_with_phi): Also move debug stmts here.
8868 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
8870         PR translation/79183
8871         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
8872         inform where appropriate.
8874 2019-04-18  Richard Biener  <rguenther@suse.de>
8876         * tree.c (get_qualified_type): Put found type variants at the
8877         head of the variant list.
8879 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
8881         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
8883 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
8885         PR target/90125
8886         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
8887         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
8888         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
8889         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
8890         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
8892 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
8894         * ira-conflicts.c (print_allocno_conflicts): Always print something,
8895         even for allocno's with no conflicts.
8896         (print_conflicts): Print an extra newline.
8898 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
8900         * auto-inc-dec.c (attempt_change): Set the alignment of the
8901         temporary memory to that of the original.
8903 2019-04-17  Joao Moreira  <jmoreira@suse.de>
8905         * targhooks.c (default_print_patchable_function_entry): Emit
8906         __patchable_function_entries section with writable flags to allow
8907         relocation resolution.
8909 2019-04-17  Jonny Grant  <jg@jguk.org>
8911         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
8913 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
8915         PR middle-end/90095
8916         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
8917         on lowpart SUBREGs.
8919 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
8921         * config/arc/arc.c (arc_init): Format diagnostic string.
8922         (arc_override_options): Likewise.
8923         (check_if_valid_regno_const): Likewise.
8924         (arc_reorg): Likewise.
8926 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
8928         PR target/17108
8929         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
8930         name.
8931         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
8932         name.
8933         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
8934         (*movdi_update1): Use Pmode.
8935         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
8936         (movdi_<mode>_update_stack): Rename to ...
8937         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
8938         use Pmode.
8939         (*movsi_update1): Use Pmode.
8940         (*movsi_update2): Use Pmode.
8941         (movsi_update): Rename to ...
8942         (movsi_<mode>_update): ... this.  Use Pmode.
8943         (movsi_update_stack): Fix condition.
8944         (*movhi_update1): Use Pmode.  Fix argument to
8945         avoiding_indexed_address_p.
8946         (*movhi_update2): Ditto.
8947         (*movhi_update3): Ditto.
8948         (*movhi_update4): Ditto.
8949         (*movqi_update1): Ditto.
8950         (*movqi_update2): Ditto.
8951         (*movqi_update3): Ditto.
8952         (*movsf_update1, *movdf_update1): Merge, rename to...
8953         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
8954         avoiding_indexed_address_p.  Add "size" attribute.
8955         (*movsf_update2, *movdf_update2): Merge, rename to...
8956         (*mov<mode>_update2): This.  Ditto.
8957         (*movsf_update3): Use Pmode.  Fix argument to
8958         avoiding_indexed_address_p.
8959         (*movsf_update4): Ditto.
8960         (allocate_stack): Simplify condition.  Adjust pattern names.
8962 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
8964         PR target/89093
8965         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
8966         whitespace at the start of target attribute string.
8968 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
8970         PR target/84369
8971         * config/rs6000/power9.md: Add store forwarding bypass.
8973 2019-04-16  Alexandre Oliva <aoliva@redhat.com>
8975         PR debug/89528
8976         * valtrack.c (dead_debug_insert_temp): Reset debug references
8977         to the return value of a call being removed.
8979 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
8981         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
8982         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
8983         implement target hook.
8984         (arc_memory_move_cost): New function.
8985         (TARGET_REGISTER_MOVE_COST): Define.
8986         (TARGET_MEMORY_MOVE_COST): Likewise.
8987         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
8988         (MEMORY_MOVE_COST): Likewise.
8990 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
8992         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
8993         (sibcall_value_insn): Likewise.
8994         * config/arc/constraints.md (Rs5): Remove.
8996 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
8998         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
8999         for last two fake registers.
9000         (arc_conditional_register_usage): Make sure fake frame and arg
9001         pointer regs are in general regs class.
9002         (FRAME_POINTER_MASK): Remove.
9003         (RETURN_ADDR_MASK): Remove.
9004         (arc_must_save_register): Use hard frame regnum.
9005         (frame_restore_reg): Use hard_frame_pointer_rtx.
9006         (arc_save_callee_saves): Likewise.
9007         (arc_restore_callee_saves): Likewise.
9008         (arc_save_callee_enter): Likewise.
9009         (arc_restore_callee_leave): Likewise.
9010         (arc_save_callee_milli): Likewise.
9011         (arc_eh_return_address_location): Likewise.
9012         (arc_check_multi): Use hard frame regnum.
9013         (arc_can_eliminate): Likewise.
9014         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
9015         for register allocator.
9016         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
9017         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
9018         (FRAME_POINTER_REGNUM): Change it to a fake register.
9019         (HARD_FRAME_POINTER_REGNUM): Defined.
9020         (ARG_POINTER_REGNUM): Change it to a new fake register.
9021         (ELIMINABLE_REGS): Update.
9022         (REGISTER_NAMES): Update names.
9023         * config/arc/arc.md (LP_START): Remove.
9024         (LP_END): Likewise.
9025         (shift_si3_loop): Update pattern.
9027 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9029         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
9030         to avoid delay slot scheduling.
9031         (arc_must_save_register): Don't save SP.
9032         * config/arc/arc.md (stack_tie): Remove.
9033         (UNSPEC_ARC_STKTIE): Likewise.
9035 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
9036             Shiva Chen  <shiva0217@gmail.com>
9038         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
9039         code gen with large shift amount.
9041 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
9043         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
9044         subreg.
9046 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
9048         PR target/90096
9049         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
9050         print -m64/-mx32/-m32 if it is true.
9051         (ix86_debug_options, ix86_function_specific_print): Pass true as
9052         ADD_ABI_P to ix86_target_string.
9053         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
9054         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
9055         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
9057         PR rtl-optimization/90082
9058         * dce.c (can_delete_call): New function.
9059         (deletable_insn_p, mark_insn): Use it.
9061         PR tree-optimization/90090
9062         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
9063         throw internally.
9064         (is_division_by_square): Likewise.  Formatting fix.
9066 2019-04-16  Richard Biener  <rguenther@suse.de>
9068         PR tree-optimization/56049
9069         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
9070         equality check if alias-set zero will prevail.
9072 2019-04-15  Jeff Law  <law@redhat.com>
9074         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
9075         size and alignment as unsigned.
9077 2019-04-15  Richard Biener  <rguenther@suse.de>
9079         PR debug/90074
9080         * tree-loop-distribution.c (destroy_loop): Preserve correct
9081         debug info.
9083 2019-04-15  Richard Biener  <rguenther@suse.de>
9085         PR tree-optimization/90071
9086         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
9087         abnormal operands from def stmts.
9089 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
9091         PR rtl-optimization/89794
9092         * combine.c (count_auto_inc): New function.
9093         (try_combine): Count how many auto_inc expressions there were in the
9094         original instructions.  Ensure we have the same number in the new
9095         instructions.  Remove the code that tried to ensure auto_inc side
9096         effects on i1 and i0 are not lost.
9098 2019-04-15  Richard Biener  <rguenther@suse.de>
9100         PR ipa/88936
9101         * tree.h (auto_var_p): Declare.
9102         * tree.c (auto_var_p): New function, split out from ...
9103         (auto_var_in_fn_p): ... here.
9104         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
9105         member.
9106         (new_var_info): Initialize it.
9107         (set_uids_in_ptset): Also set the shadow variable uid if required.
9108         (ipa_pta_execute): Postprocess points-to solutions assigning
9109         shadow variable uids for locals that may reach their containing
9110         function recursively.
9111         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
9112         assert but instead check whether the points-to solution is
9113         a singleton.
9115 2019-04-15  Martin Jambor  <mjambor@suse.cz>
9117         PR ipa/pr89693
9118         * cgraph.c (clone_of_p): Loop over clone chain for each step in
9119         the thunk chain.
9121 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
9123         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
9125 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
9126             Kito Cheng  <kito.cheng@gmail.com>
9127             Shiva Chen  <shiva0217@gmail.com>
9129         * config/nds32/nds32-md-auxiliary.c
9130         (nds32_legitimize_pic_address): Use new PIC pattern.
9131         (nds32_legitimize_tls_address): Use new TLS pattern.
9132         (nds32_output_symrel): New.
9133         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
9134         (nds32_alloc_relax_group_id): Ditto.
9135         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
9136         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
9137         relax_group_id.
9138         (nds32_group_tls_insn): Ditto.
9139         (nds32_group_float_insns): Ditto.
9140         * config/nds32/nds32.md (tls_le): New.
9141         (sym_got): Ditto.
9143 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
9145         * configure: Add nds32 target for dwarf2 debug_line checking.
9146         * configure.ac: Regenerated.
9148 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
9150         PR lto/89358
9151         * ipa-devirt.c (skip_in_fields_list_p): New.
9152         (odr_types_equivalent_p): Use it.
9154 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
9156         PR target/89093
9157         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
9158         instead of strncmp when checking for thumb and arm.  Formatting fixes.
9160 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
9162         * doc/install.texi: Document --with-target-system-zlib.
9164 2019-04-12  Martin Sebor  <msebor@redhat.com>
9166         PR c/88383
9167         PR c/89288
9168         PR c/89798
9169         PR c/89797
9170         * targhooks.c (default_vector_alignment): Avoid assuming
9171         argument fits in SHWI.
9172         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
9173         a shift expression.
9174         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
9176 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9178         PR rtl-optimization/89965
9179         * dce.c: Include rtl-iter.h.
9180         (struct check_argument_load_data): New type.
9181         (check_argument_load): New function.
9182         (find_call_stack_args): Check for loads from stack slots still tracked
9183         in sp_bytes and punt if any is found.
9185         * config/mips/loongson-mmiintrin.h: Fix up #error message.
9187 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
9189         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
9190         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
9192 2019-04-12  Martin Liska  <mliska@suse.cz>
9194         PR middle-end/89970
9195         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
9196         in error message.
9197         (separate_attrs): Handle multiple 'default's.
9198         (expand_target_clones): Rework error handling code.
9200 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9202         PR target/87532
9203         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
9204         mode of vector rather than mode of destination for move instruction.
9205         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
9206         Use QI inner mode with V16QI vector mode.
9208 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9210         PR target/52726
9211         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
9212         "invalid %%t operand" in output_operand_lossage message.
9214 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
9216         * config/s390/predicates.md (permute_pattern_operand): New
9217         predicate.
9218         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
9219         operand for the permute pattern.
9220         ("*vec_perm<mode>"): New insn definition.
9221         ("bswap<mode>"): Generate the permute pattern operand in the
9222         expander and perform the operand reloads for pre arch13 level
9223         already.
9224         ("*bswap<mode>_emu"): Rename to ...
9225         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
9226         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
9227         Add the USE operand for the permute pattern.
9228         ("*vec_set_bswap_vec<mode>"): Likewise.
9230 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9232         PR c/89946
9233         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
9234         and gcc_unreachable if it fails, just call tree_to_uhwi which
9235         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
9236         Start warning message with a lower-case letter.  Formatting fixes.
9238         PR rtl-optimization/90026
9239         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
9240         successors, look for BARRIERs inside of the whole BB_FOOTER chain
9241         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
9242         in cfglayout mode, use emit_barrier_after_bb.
9244 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
9246         PR rtl-optimization/87763
9247         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
9248         New Instruction.
9250 2019-04-11  Tom de Vries  <tdevries@suse.de>
9252         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
9253         max macro using statement expression.
9255 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
9257         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
9258         * xcoffout.c (xcoff_private_rodata_section_name): Define.
9259         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
9260         read_only_private_data_section using xcoff_private_rodata_section_name.
9261         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
9263 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
9265         PR target/90016
9266         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
9268 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
9270         PR rtl-optimization/89965
9271         * dce.c (sp_based_mem_offset): New function.
9272         (find_call_stack_args): Use sp_based_mem_offset.
9274 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
9276         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
9278 2019-04-11  Richard Biener  <rguenther@suse.de>
9280         PR tree-optimization/90020
9281         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
9282         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
9283         * tree-ssa-pre.c (compute_avail): Use it to not put
9284         possibly trapping references after a call that might not
9285         return into EXP_GEN.
9286         * gcse.c (compute_hash_table_work): Do not elide
9287         marking a block containing a call if the call might not
9288         return.
9290 2019-04-11  Richard Biener  <rguenther@suse.de>
9292         PR tree-optimization/90018
9293         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
9294         Test both SLP and interleaving variants.
9296 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
9298         * config/s390/8561.md: New file.
9299         * config/s390/driver-native.c (s390_host_detect_local_cpu):
9300         Add arch13 cpu model.
9301         * config/s390/s390-opts.h (enum processor_type): Likewise.
9302         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
9303         (s390_get_unit_mask): Likewise.
9304         (s390_is_fpd): Likewise.
9305         (s390_is_fxd): Likewise.
9306         * config/s390/s390.h (s390_tune_attr): Likewise.
9307         * config/s390/s390.md: Include arch13 pipeline description.
9308         * config/s390/s390.opt: Add arch13.
9310 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
9312         PR rtl-optimization/87763
9313         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
9314         New prototype.
9315         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
9316         New function.
9317         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
9318         New instruction.
9319         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
9320         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
9321         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
9322         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
9324 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
9326         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
9327         "Although" in -fipa-icf documentation.
9329         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
9330         of using multiple -g options.
9332 2019-04-10  Martin Liska  <mliska@suse.cz>
9334         PR gcov-profile/89959
9335         * doc/gcov.texi: Make documentation of -x option
9336         more precise.
9338 2019-04-10  Richard Biener  <rguenther@suse.de>
9340         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
9341         member.
9342         (DR_GROUP_SAME_DR_STMT): Remove.
9343         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
9344         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
9345         replace with assert.
9346         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
9347         (vect_record_grouped_load_vectors): Remove unreachable code.
9349 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
9351         PR target/90016
9352         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
9353         obsolete reference to N.
9355 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
9357         PR middle-end/90025
9358         * expr.c (store_expr): Set properly size on the MEM passed to
9359         clear_storage.
9361         PR c++/90010
9362         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
9363         with strlen in between hostsz-3 and hostsz-1 inclusive when no
9364         translation is needed, and when translation is needed, only append
9365         ... if the string length is hostsz or more bytes long.  Avoid using
9366         strncpy or strcat.
9368 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
9370         PR target/90024
9371         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
9372         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
9373         into three.
9374         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
9375         differences directly.
9376         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
9378 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
9380         PR translation/90011
9381         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
9382         from diagnostics.
9383         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
9384         diagnostics.
9385         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
9386         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
9387         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
9388         trailing space from -gsplit-dwarf diagnostics.
9390         PR tree-optimization/89998
9391         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
9392         instead of integer_type_node if possible, don't add ranges if return
9393         type is not compatible with int.
9394         * gimple-fold.c (gimple_fold_builtin_sprintf,
9395         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
9396         integer_type_node.
9398 2019-04-09  Martin Liska  <mliska@suse.cz>
9400         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
9401         * doc/install.texi: Document the new config.
9403 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
9405         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
9406         use gimple_expr_type for load and store calls.  Skip over the
9407         condition argument in a conditional internal function.
9408         Protect use of TREE_INT_CST_LOW.
9410 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
9412         PR target/90015
9413         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
9414         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
9415         trailing period from it too.
9417 2019-04-08  wu yuan  <wuyuan5@huawei.com>
9419         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
9420         * config/aarch64/aarch64.md : Add "tsv110.md"
9421         * config/aarch64/tsv110.md: New file.
9423 2019-04-08  Richard Biener  <rguenther@suse.de>
9425         PR tree-optimization/90006
9426         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
9427         calls like lrint.
9429 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
9431         PR target/83033
9432         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
9433         construction.
9434         (fma_root_node): Likewise.
9435         (func_fma_steering): Likewise.
9437 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
9439         PR rtl-optimization/89865
9440         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
9442         PR rtl-optimization/89865
9443         * config/i386/i386.md
9444         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
9445         numbers not to clash with the additional operands[4].
9446         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
9447         with extra register copy in the middle.
9449 2019-04-08  Martin Liska  <mliska@suse.cz>
9451         PR gcov-profile/89961
9452         * doc/gcov.texi: Document data_file.
9453         * gcov.c (generate_results): Add data_info into JSON output.
9455 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
9457         PR tree-optimization/89725
9458         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
9459         loop's chrec as invariant symbol.
9460         * tree-chrec.h (chrec_contains_symbols): New parameter.
9461         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
9462         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
9463         function of loops not in DDR's loop_nest.
9464         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
9466 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
9468         PR target/89623
9469         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
9470         Mask.
9472 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9474         PR target/89945
9475         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
9476         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
9478 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
9480         * sched-deps.c (sched_macro_fuse_insns): Check return value of
9481         targetm.fixed_condition_code_regs.
9483 2019-04-05  Richard Biener  <rguenther@suse.de>
9485         PR debug/89892
9486         PR debug/89905
9487         * tree-cfgcleanup.c (remove_forwarder_block): Always move
9488         debug bind stmts but reset them if they are not valid at the
9489         destination.
9491 2019-04-05  Martin Liska  <mliska@suse.cz>
9493         PR translation/89936
9494         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
9495         order to wrap keywords or arguments.
9496         * collect2.c (main): Likewise.
9497         (scan_prog_file): Likewise.
9498         (scan_libraries): Likewise.
9499         * common/config/riscv/riscv-common.c
9500         (riscv_subset_list::parsing_subset_version): Likewise.
9501         (riscv_subset_list::parse_std_ext): Likewise.
9502         * config/aarch64/aarch64.c (aarch64_override_options_internal):
9503         Likewise.
9504         * config/arm/arm.c (arm_option_override): Likewise.
9505         * config/cris/cris.c (cris_print_operand): Likewise.
9506         * config/darwin-c.c (darwin_pragma_options): Likewise.
9507         (darwin_pragma_unused): Likewise.
9508         (darwin_pragma_ms_struct): Likewise.
9509         * config/ft32/ft32.c (ft32_print_operand): Likewise.
9510         * config/i386/i386.c (print_reg): Likewise.
9511         (ix86_print_operand): Likewise.
9512         * config/i386/xm-djgpp.h: Likewise.
9513         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
9514         * config/m32c/m32c.c (m32c_option_override): Likewise.
9515         * config/msp430/msp430.c (msp430_option_override): Likewise.
9516         * config/nds32/nds32.c (nds32_option_override): Likewise.
9517         * config/nvptx/mkoffload.c (main): Likewise.
9518         * config/rx/rx.c (rx_print_operand): Likewise.
9519         (valid_psw_flag): Likewise.
9520         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
9521         (vms_pragma_nomember_alignment): Likewise.
9522         (vms_pragma_extern_model): Likewise.
9523         * lto-wrapper.c (compile_offload_image): Likewise.
9524         * omp-offload.c (oacc_parse_default_dims): Likewise.
9525         * symtab.c (symtab_node::verify_base): Likewise.
9526         * tlink.c (recompile_files): Likewise.
9527         (start_tweaking): Likewise.
9528         * tree-profile.c (parse_profile_filter): Likewise.
9530 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
9532         PR tree-optimization/89956
9533         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
9534         multiple negates of the same value.
9536 2019-04-04  Martin Sebor  <msebor@redhat.com>
9538         PR middle-end/89957
9539         PR middle-end/89911
9540         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
9541         have the same precision since the function crashes otherwise.
9542         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
9543         has non-zero arguments.
9545 2019-04-04  Martin Sebor  <msebor@redhat.com>
9547         PR middle-end/89934
9548         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
9549         out if the number of arguments is less than expected.
9551 2019-04-04  Jeff Law  <law@redhat.com>
9553         PR rtl-optimization/89399
9554         * ree.c (combine_set_extension): Use single_set rather than
9555         digging into PATTERN for items on the candidate list.
9556         (combine_reaching_defs): Likewise.
9558 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
9560         PR rtl-optimization/46590
9561         * loop-invariant.c (find_defs): Move df_remove_problem and
9562         df_process_deferred_rescans to move_invariants.
9563         Move df_live_add_problem and df_live_set_all_dirty calls
9564         to move_invariants.
9565         (move_invariants): Likewise.
9566         (move_loop_invariants): Likewise, making the df_live calls
9567         conditional on -O.  Remove the problem again if we added it
9568         locally.
9570 2019-04-03  qing zhao  <qing.zhao@oracle.com>
9572         PR tree-optimization/89730
9573         * ipa-inline.c (can_inline_edge_p): Delete the checking for
9574         -flive-patching=inline-only-static.
9575         (can_inline_edge_by_limits_p): Add the checking for
9576         -flive-patching=inline-only-static and grant always_inline
9577         even when -flive-patching=inline-only-static is specified.
9579 2019-04-03  Jeff Law  <law@redhat.com>
9581         PR rtl-optimization/81025
9582         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
9584 2019-04-03  Richard Biener  <rguenther@suse.de>
9586         PR tree-optimization/84101
9587         * tree-vect-stmts.c: Include explow.h for hard_function_value,
9588         regs.h for hard_regno_nregs.
9589         (cfun_returns): New helper.
9590         (vect_model_store_cost): When vectorizing a store to a decl
9591         we return and the function ABI returns in a multi-reg location
9592         account for the possible spilling that will happen.
9594 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
9596         * config/s390/s390.c (s390_legitimate_address_p): Reject long
9597         displacement addresses for vector mode operands.
9599 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
9601         * config/arc/arc.c (GMASK_LEN): Define.
9602         (arc_restore_callee_saves): Restore first blink when
9603         !optimize_size.
9605 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
9607         * doc/extend.texi: Add deprecated comment on sign-return-address
9608         function attribute and add mbranch-protection.
9609         * doc/invoke.texi: Add bti to the options for mbranch-protection.
9611 2019-04-03  Richard Biener  <rguenther@suse.de>
9613         PR lto/89896
9614         * lto-wrapper.c (run_gcc): Avoid implicit rules making
9615         the all target phony.
9617 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9619         PR target/89902
9620         PR target/89903
9621         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
9622         Return false for variable DImode shifts.
9623         (dimode_scalar_chain::compute_convert_gain): Do not handle
9624         register count operand in variable DImode shifts.
9625         (dimode_scalar_chain::make_vector_copies): Remove support to copy
9626         count argument of a variable shift instruction to a vector register.
9627         (dimode_scalar_chain::convert_reg): Remove support to convert
9628         count argument of a variable shift instruction.
9630 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
9632         PR rtl-optimization/84206
9633         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
9634         iterating over loop headers.
9636 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
9638         PR rtl-optimization/85876
9639         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
9640         beyond the original fence.
9642 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
9644         * config.gcc: Mark spu* targets as deprecated/obsolete.
9646 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9648         * config/s390/s390-builtin-types.def: New builtin function type
9649         definitions. Remove unused types.
9650         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
9651         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
9652         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
9653         overloaded builtins.
9654         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
9655         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
9656         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
9657         (vec_double, vec_signed, vec_unsigned): Define to use the new
9658         overloaded builtins.
9659         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
9660         Remove expanders.
9662 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9664         * config/s390/s390-builtin-types.def: New builtin function type
9665         definitions.
9666         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
9667         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
9668         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
9669         (s390_vstrszh, s390_vstrszf): New low-level builtins.
9670         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
9671         constant definitions.
9672         * config/s390/vecintrin.h (vec_search_string_cc)
9673         (vec_search_string_until_zero_cc): New builtin name definitions.
9674         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
9675         expanders.
9676         ("vec_vstrs<mode>"): New insn definition.
9678 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9680         * config/s390/s390-builtin-types.def: Add new builtin function
9681         types.
9682         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
9683         New overloaded builtins.
9684         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
9685         s390_vsrd.
9686         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
9687         (UNSPEC_VEC_SLDBYTE): ... this.
9688         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
9689         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
9690         definitions.
9691         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
9692         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
9693         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
9695 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9697         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
9698         New insn definition.
9699         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
9700         * config/s390/vector.md (V_HW_HSD): ... here.
9702 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9704         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
9705         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
9706         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
9707         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
9708         New insn definitions.
9710 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9712         * config/s390/s390-builtin-types.def: Add new builtin function type.
9713         * config/s390/s390-builtins.def: Add overloaded builtin
9714         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
9715         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
9716         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
9717         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
9718         ("eltswap<mode>"): New expander.
9719         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
9720         insn definitions.
9722 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9724         * config/s390/s390-builtin-types.def: Add new builtin function types.
9725         * config/s390/s390-builtins.def: Add overloaded builtin
9726         s390_vec_revb. Add low-level builtins for vlbr and vstbr
9727         instructions.
9728         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
9729         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
9730         ("bswap<mode>"): New expander.
9731         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
9733 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9735         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
9736         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
9737         vector builtin version number in __VEC__.
9739 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9741         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
9742         iterators.
9743         (SFSI): New mode attribute.
9744         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
9745         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
9746         rename to ...
9747         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
9748         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
9749         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
9750         ("floatsi<mode>2"): Add wcefb instruction.
9752 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9754         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
9755         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
9756         mode iterators.
9757         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
9758         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
9759         support 32 bit fp-int conversions. Rename to ...
9760         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
9761         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
9762         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
9763         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
9764         ... to these.
9766 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9768         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
9769         if-then-else constructs if we can use the select instruction.
9770         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
9772 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9774         * config/s390/s390.md ("*popcountdi_arch13_cc")
9775         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
9776         definition.
9777         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
9778         Append _z196 to make it ...
9779         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
9780         ("popcounthi2_z196"): ... this.
9781         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
9782         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
9784 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9786         * config/s390/s390.c (s390_canonicalize_comparison): Convert
9787         certain compares for arch13 in order to make use of the condition
9788         code result produced by the new instructions.
9789         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
9790         nxrk, and nxgrk instruction patterns.
9791         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
9792         (inv_no): Add new code iterator together with some attributes.
9793         ("*andc_split_<mode>"): Disable splitter for arch13.
9794         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
9795         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
9796         ("*<ANDOR:bitops_name>c<GPR:mode>")
9797         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
9798         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
9799         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
9800         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
9802 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9804         * common/config/s390/s390-common.c (processor_flags_table): New
9805         entry for arch13.
9806         * config.gcc: Support arch13 with the --with-arch= configure flag.
9807         * config/s390/driver-native.c (s390_host_detect_local_cpu):
9808         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
9809         * config/s390/s390.c (s390_get_sched_attrmask)
9810         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
9811         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
9812         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
9813         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
9814         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
9815         definitions.
9816         * config/s390/s390.opt: Support arch13 as processor type in
9817         command line options.
9819 2019-04-02  Martin Liska  <mliska@suse.cz>
9821         PR translation/89912
9822         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
9823         Fix param description of graphite-max-arrays-per-scop.
9825 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9827         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
9828         (ASAN_CC1_SPEC): Use it in 64-bit mode.
9829         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
9831 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
9833         PR rtl-optimization/85412
9834         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
9835         sel_sched_region_1, not after.
9837 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
9839         PR rtl-optimization/86928
9840         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
9841         compute_live if necessary.
9842         (sel_redirect_edge_and_branch): Likewise.
9844 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
9846         PR rtl-optimization/89865
9847         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
9848         register if it is a part of small class.
9850 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
9852         PR rtl-optimization/87273
9853         * sel-sched-ir.c (merge_fences): Remove assert.
9855 2019-04-01  Richard Biener  <rguenther@suse.de>
9857         PR tree-optimization/46590
9858         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
9859         (dom_walker::m_reachability): Add in place of...
9860         (dom_walker::m_skip_unreachable_blocks): ...this.
9861         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
9862         Move complex initialization ...
9863         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
9864         lazily and initialize edge flags on each invocation.
9865         (dom_walker::bb_reachable): Use m_reachability.
9867 2019-04-01  Martin Liska  <mliska@suse.cz>
9869         PR driver/89861
9870         * opt-suggestions.c (option_proposer::build_option_suggestions):
9871         Add variant without any argument in order to provide better
9872         hints.
9874 2019-04-01  Richard Biener  <rguenther@suse.de>
9876         PR c/71598
9877         * gimple.c: Include langhooks.h.
9878         (gimple_get_alias_set): Treat enumeral types as the underlying
9879         integer type.
9881 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
9882             Eric Botcazou  <ebotcazou@adacore.com>
9884         PR rtl-optimization/89862
9885         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
9886         that operates on the full registers for WORD_REGISTER_OPERATIONS
9887         architectures.
9889 2019-03-29  Jim Wilson  <jimw@sifive.com>
9891         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
9892         Clear MASK_RVC and then set if C subset supported.
9894 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
9896         PR c/89872
9897         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
9898         non-addressable complit into its initializer if it is volatile.
9900 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
9902         * opts-common.c (integral_argument): Set errno properly in one case.
9904 2019-03-29  Martin Liska  <mliska@suse.cz>
9906         * doc/invoke.texi: Remove -Wchkp from documentation.
9908 2019-03-29  Martin Liska  <mliska@suse.cz>
9910         * dbgcnt.c (print_limit_reach): New function.
9911         (dbg_cnt): Use it.
9913 2019-03-29  Martin Liska  <mliska@suse.cz>
9915         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
9916         (dbg_cnt_process_opt): Parse first tokens aas
9917         dbg_cnt_process_single_pair is also using strtok.
9919 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
9921         PR rtl-optimization/87485
9922         * function.c (expand_function_end): Move stack_protect_epilogue
9923         before loading of return value into hard register(s).
9925 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
9927         PR middle-end/89621
9928         * tree-inline.h (struct copy_body_data): Add
9929         dont_remap_vla_if_no_change flag.
9930         * tree-inline.c (remap_type_3, remap_type_2): New functions.
9931         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
9932         and remap_type_2 returns false.
9933         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
9934         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
9935         only from where it is copied to nested contexts.
9937 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9939         PR target/89865
9940         * config/i386/i386.md (RMW operation with LEA peephole):
9941         Use LEAMODE mode attribute instead of SWI mode iterator for
9942         LEA pattern.
9944 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9946         PR target/89848
9947         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
9948         Also process XEXP (src, 0) of a shift insn.
9950 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
9952         PR middle-end/89725
9953         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
9954         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
9956 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
9958         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
9959         test.
9960         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
9961         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
9962         immediately after first one with df_analyze in between, but rather
9963         process all bbs, queueing ones that need second pass in a worklist,
9964         df_analyze, process queued debug insn changes and if second pass is
9965         needed, process bbs from worklist, df_analyze, process queued debug
9966         insns again.
9968         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
9969         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
9970         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
9972 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
9974         PR c/79022
9975         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
9976         definition.
9978 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
9980         PR target/85667
9981         * config/i386/i386.c (ix86_function_value_1): Call the newly added
9982         function for 32-bit MS_ABI.
9983         (function_value_ms_32): New function.
9985 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
9987         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
9988         (movdi): Call gen_movdi_symbol_save_scc.
9989         (gen_movdi_symbol_save_scc): New insn and split.
9991 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
9993         PR rtl-optimization/89313
9994         * function.c (matching_constraint_num): New static function.
9995         (match_asm_constraints_1): Use it.  Fixup white space and comment.
9996         Don't replace inputs with non-matching constraints which conflict
9997         with early clobber outputs.
9999 2019-03-27  Jeff Law  <law@redhat.com>
10002         PR rtl-optimization/87761
10003         PR rtl-optimization/89826
10004         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
10005         slightly later.
10006         (pass_cprop_hardreg::execute): Call df_analyze after adding the
10007         note problem to get REG_DEAD/REG_UNUSED notes updated.
10009 2019-03-27  Richard Biener  <rguenther@suse.de>
10011         PR tree-optimization/89463
10012         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
10013         queue edges to remove.
10014         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
10015         dead stmts.  Delay edge removal until PHIs are removed to
10016         make debug-stmt creation not confused by seemingly degenerate
10017         PHIs.
10019 2019-03-27  Alan Modra  <amodra@gmail.com>
10021         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
10022         throughout file.
10023         * config/rs6000/darwin.h: Likewise.
10024         * config/rs6000/rs6000.c: Likewise.
10026 2019-03-27  Alan Modra  <amodra@gmail.com>
10028         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
10029         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
10031 2019-03-26  Andrew Waterman  <andrew@sifive.com>
10032             Jim Wilson  <jimw@sifive.com>
10034         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
10035         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
10036         (generic_idivdi, generic_fmul_single, generic_fmul_double)
10037         (generic_fdiv, generic_fsqrt): Add check for generic tune.
10038         (generic_alu): Add auipc to type list.
10039         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
10040         (riscv_microarchitecture): Declare.
10041         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
10042         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
10043         field.
10044         (riscv_microarchitecture): New.
10045         (sifive_7_tune_info): New.
10046         (riscv_cpu_info_table): Add microarchitecture value for rocket and
10047         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
10048         entries.
10049         (riscv_store_data_bypass_p): New.
10050         (riscv_option_override): Set riscv_microarchitecture from
10051         cpu->microarchitecture.
10052         * config/riscv/riscv.md: Include sifive-7.md.
10053         (type): Add auipc.
10054         (tune): New.
10055         (auipc<mode>): Change type to auipc.
10056         (restore_stack_nonlocal): New.
10057         * config/riscv/sifive-7.md: New.
10058         * doc/invoke.texi (RISC-V Options): Update mtune docs.
10060 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10062         PR target/89827
10063         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10064         Also process XEXP (src, 0) of a shift insn.
10066 2019-03-26  Richard Biener  <rguenther@suse.de>
10068         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
10069         (copy_debug_stmt): Likewise.
10070         (expand_call_inline): Likewise.
10071         (copy_bb): Avoid redundant lookup & set of gimple_block.
10072         * gimple-low.c (lower_gimple_return): Likewise.
10073         (lower_builtin_setjmp): Likewise.
10075 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
10077         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
10078         is constant 0, turn into static const data member initialized to false.
10079         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
10080         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
10082 2019-03-26  Jason Merrill  <jason@redhat.com>
10083             Jakub Jelinek  <jakub@redhat.com>
10085         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
10086         method.
10087         (mem_alloc_description::release_object_overhead): Fix comment typos.
10088         * hash-table.h (hash_table::~hash_table): Call
10089         release_instance_overhead only if m_entries is non-NULL, otherwise
10090         call unregister_descriptor.
10092 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
10094         PR tree-optimization/81740
10095         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10096         In case of outer loop vectorization, check for backward dependence
10097         at the inner loop if outer loop dependence is reversed.
10099 2019-03-26  Alan Modra  <amodra@gmail.com>
10101         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
10102         rs6000_vector_mem init.  Correct wI and wJ comment.
10104 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
10106         PR rtl-optimization/88347
10107         PR rtl-optimization/88423
10108         * sched-deps.c (sched_analyze_insn): Take into account that for
10109         tablejumps the barrier appears after a label and a jump_table_data.
10111 2019-03-25  Martin Sebor  <msebor@redhat.com>
10113         PR c/89812
10114         * c-common.c (check_user_alignment): Rename local.  Correct maximum
10115         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
10116         convert it to UHWI when it fits.
10118 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
10120         PR debug/86964
10121         * dwarf2out.c (premark_used_variables): New function.
10122         (prune_unused_types_walk): Do not mark not premarked external
10123         variables.
10124         (prune_unused_types): Call premark_used_variables.
10126 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
10128         PR rtl-optimization/89676
10129         * lra-constraints.c (curr_insn_transform): Do match reload for
10130         early clobbers when the match was successful only for different
10131         registers.
10133 2019-03-25  Martin Sebor  <msebor@redhat.com>
10135         * doc/extend.texi (Common Type Attributes): Document vector_size.
10136         (Common Variable Attributes): Mention size constraint.  Correct
10137         quoting and typos.
10138         (Vector Extensions): Use @dfn when defining bas type.  Clarify
10139         base type and size constraints.
10141 2019-03-25  Richard Biener  <rguenther@suse.de>
10143         PR tree-optimization/89789
10144         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
10145         changes from non-undefined back to undefined.
10147 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
10149         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
10150         heap string and a gc string, but since this variable is unknown to
10151         ggc the gc string might get reused and corrupted. Fixed by always
10152         using a heap string.
10154 2019-03-25  Richard Biener  <rguenther@suse.de>
10156         PR tree-optimization/89779
10157         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
10158         to remove IV defs, delay actual removal.
10159         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
10160         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
10161         very end, properly also reset loop control IV information.
10163 2019-03-25  Richard Biener  <rguenther@suse.de>
10165         PR tree-optimization/89802
10166         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
10167         move EH data to folded stmt.
10169 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
10171         * config/s390/s390-builtin-types.def: Remove few unused types and
10172         fix sort order for others.
10174 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
10176         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
10177         expected and found types with -mdebug during builtin matching.
10179 2019-03-25  Richard Biener  <rguenther@suse.de>
10181         PR middle-end/89790
10182         * fold-const.c (operand_equal_p): Revert last change with
10183         updated comment.
10185 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
10187         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
10188         notes for the result of the __tls_get_addr calls.
10189         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
10191 2019-03-24  Jeff Law  <law@redhat.com>
10193         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
10195         PR rtl-optimization/87761
10196         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
10197         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
10198         as needed.
10199         (pass_cprop_hardreg::execute): Add df note problem and defer insn
10200         rescans.  Reprocess blocks as needed, calling df_analyze before
10201         reprocessing.  Always call df_analyze before fixing up debug bind
10202         insns.
10204 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
10206         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
10207         big endian.
10209 2019-03-22  Andrew Pinski  <apinski@marvell.com>
10211         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
10212         attrribute for uxtw.
10214 2019-03-26  Jeff Law  <law@redhat.com>
10216         PR rtl-optimization/87761
10217         * config/mips/mips-protos.h (mips_split_move): Add new argument.
10218         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
10219         (mips_split_move): Accept new INSN argument.  Try to forward SRC
10220         into the next instruction.
10221         (mips_split_move_insn): Pass INSN through to mips_split_move.
10223 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
10225         PR rtl-optimization/89676
10226         * lra-constraints.c (curr_insn_transform): Do match reload for
10227         early clobbers even if the match was successful.
10229 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
10231         PR c++/87481
10232         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
10234 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
10236         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10238 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
10240         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
10241         <avx512>_fmsub_<mode>_mask3<round_name>,
10242         <avx512>_fnmadd_<mode>_mask3<round_name>,
10243         <avx512>_fnmsub_<mode>_mask3<round_name>,
10244         avx512f_vmfmadd_<mode>_mask3<round_name>,
10245         avx512f_vmfmsub_<mode>_mask3<round_name>,
10246         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
10247         instead of register_operand and %v instead of v for match_operand 1.
10248         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
10249         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
10250         <round_nimm_predicate> instead of register_operand and %v instead of v
10251         for match_operand 1.
10253         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
10254         <avx512>_fmadd_<mode>_mask3<round_name>,
10255         <avx512>_fmsub_<mode>_mask<round_name>,
10256         <avx512>_fmsub_<mode>_mask3<round_name>,
10257         <avx512>_fnmadd_<mode>_mask<round_name>,
10258         <avx512>_fnmadd_<mode>_mask3<round_name>,
10259         <avx512>_fnmsub_<mode>_mask<round_name>,
10260         <avx512>_fnmsub_<mode>_mask3<round_name>,
10261         <avx512>_fmaddsub_<mode>_mask<round_name>,
10262         <avx512>_fmaddsub_<mode>_mask3<round_name>,
10263         <avx512>_fmsubadd_<mode>_mask<round_name>,
10264         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
10265         <round_nimm_predicate> instead of nonimmediate_operand.
10266         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
10267         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
10268         Use register_operand instead of <round_nimm_predicate> for the
10269         operand that needs to match output.
10270         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
10271         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
10272         Likewise.  Formatting fixes.
10274         PR target/89784
10275         * config/i386/i386.c (enum ix86_builtins): Remove
10276         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
10277         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
10278         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
10279         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
10280         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
10281         __builtin_ia32_vfmsubss3_mask3): New builtins.
10282         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
10283         avx512f_vmfmadd_<mode>_mask3<round_name>,
10284         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
10285         *avx512f_vmfmsub_<mode>_mask<round_name>,
10286         avx512f_vmfmsub_<mode>_mask3<round_name>,
10287         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
10288         *avx512f_vmfnmadd_<mode>_mask<round_name>,
10289         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
10290         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
10291         *avx512f_vmfnmsub_<mode>_mask<round_name>,
10292         avx512f_vmfnmsub_<mode>_mask3<round_name>,
10293         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
10294         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
10295         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
10296         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
10297         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
10298         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
10299         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
10300         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
10301         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
10302         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
10303         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
10304         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
10305         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
10306         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
10307         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
10308         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
10309         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
10310         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
10311         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
10312         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
10313         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
10314         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
10316 2019-03-21  Martin Sebor  <msebor@redhat.com>
10318         PR tree-optimization/89350
10319         * builtins.c (compute_objsize): Also ignore offsets whose upper
10320         bound is negative.
10321         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
10322         (builtin_memref::builtin_memref): Initialize new member.
10323         Allow EXPR to be null.
10324         (builtin_memref::extend_offset_range): Replace local with a member.
10325         Avoid assuming pointer offsets are unsigned.
10326         (builtin_memref::set_base_and_offset): Determine base object
10327         before computing offset range.
10328         (builtin_access::builtin_access): Handle memset.
10329         (builtin_access::generic_overlap): Replace local with a member.
10330         (builtin_access::strcat_overlap): Same.
10331         (builtin_access::overlap): Same.
10332         (maybe_diag_overlap): Same.
10333         (maybe_diag_access_bounds): Same.
10334         (wrestrict_dom_walker::check_call): Handle memset.
10335         (check_bounds_or_overlap): Same.
10337 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
10338             Jakub Jelinek  <jakub@redhat.com>
10340         PR lto/89692
10341         * tree.c (fld_type_variant, fld_incomplete_type_of,
10342         fld_process_array_type): Call fld->pset.add and don't call
10343         add_tree_to_fld_list if it returns true.
10344         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
10345         non-marked types from TYPE_NEXT_VARIANT list.
10346         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
10348 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
10350         * hash-table.h (hash_table): Add Lazy template parameter defaulted
10351         to false, if true, don't alloc_entries during construction, but defer
10352         it to the first method that needs m_entries allocated.
10353         (hash_table::hash_table, hash_table::~hash_table,
10354         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
10355         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
10356         hash_table::clear_slot, hash_table::traverse_noresize,
10357         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
10358         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
10359         false.
10360         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
10361         NO_INSERT instead of find_with_hash.
10362         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
10363         hash_set::m_table): Add Lazy to template params of hash_table.
10364         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
10365         * attribs.c (test_attribute_exclusions): Likewise.
10366         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
10367         hash_set.  Add tests for hash_set with Lazy = true.
10369 2019-03-21  Richard Biener  <rguenther@suse.de>
10371         PR tree-optimization/89779
10372         * tree.c (tree_nop_conversion): Consolidate and fix defensive
10373         checks with respect to released SSA names now having error_mark_node
10374         type.
10375         * fold-const.c (operand_equal_p): Likewise.
10377 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
10379         PR target/89775
10380         * config/s390/s390.c (global_not_special_regno_p): Move to make it
10381         available to ...
10382         (s390_optimize_register_info): Use global_not_special_regno_p to
10383         check for global regs.
10385 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
10387         PR target/89752
10388         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
10389         update this_alternative nor this_alternative_set.
10391 2019-03-19  Jim Wilson  <jimw@sifive.com>
10393         PR target/89411
10394         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
10395         align, size, offset.  Use them to handle a BLKmode reference.  Update
10396         comment.
10397         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
10399 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10401         PR rtl-optimization/89768
10402         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
10403         instead of GEN_INT.
10404         (unroll_loop_runtime_iterations): Likewise.
10406 2019-03-19  Martin Sebor  <msebor@redhat.com>
10408         PR tree-optimization/89644
10409         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
10410         rather than endptr as an indicator of nul-termination.
10412         PR tree-optimization/89644
10413         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
10414         arrays in determining sequence sizes in strncpy and stpncpy.
10416 2019-03-19  Martin Liska  <mliska@suse.cz>
10418         PR middle-end/89737
10419         * predict.c (combine_predictions_for_bb): Empty likely_edges and
10420         unlikely_edges if there's an edge that belongs to both these sets.
10422 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
10424         PR target/89746
10425         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
10426         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
10427         go via a stack temporary.
10429 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10431         PR target/89378
10432         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
10433         instead of gen_rtx_SUBREG.
10434         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
10436 2019-03-19  Richard Biener  <rguenther@suse.de>
10438         PR debug/88389
10439         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
10441 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
10443         PR lto/87809
10444         PR lto/89335
10445         * tree.c (free_lang_data_in_decl): Do not free context of C++
10446         destrutors.
10448 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10450         PR target/89506
10451         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
10452         subs for the first alternative except when operands[3] is 1.
10454         PR target/89752
10455         * gimplify.c (gimplify_asm_expr): For output argument with
10456         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
10457         diagnose error.
10459 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
10461         PR rtl-optimization/89753
10462         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
10463         explicit unrolling factor even more robust.
10465 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10467         PR target/89726
10468         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
10469         compensation use x2 += 1 instead of x2 -= -1 and when honoring
10470         signed zeros, do another copysign after the compensation.
10472 2019-03-18  Martin Sebor  <msebor@redhat.com>
10474         PR tree-optimization/89720
10475         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
10476         more conservatively, the same as anti-range.
10478 2019-03-18  Richard Biener  <rguenther@suse.de>
10480         PR middle-end/88945
10481         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
10482         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
10483         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
10484         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
10486 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
10488         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
10489         Extend queue to 1024 entries.
10490         Add "consumed" field.
10491         (gomp_print_output): Remove print_index parameter.
10492         Add final parameter.
10493         Change limit to unsigned.
10494         Use consumed field to implement circular buffer.
10495         Detect interrupted print in final pass.
10496         Flush output at the end.
10497         (run): Update gomp_print_output usage.
10498         (main): Initialize kernargs->output_data.consumed.
10500 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
10502         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
10503         calculation of the minimum number of scalar iterations for
10504         fully-predicated loops.
10506 2019-03-18  Martin Jambor  <mjambor@suse.cz>
10508         PR tree-optimization/89546
10509         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
10510         any propagation to its children took place.
10512 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
10514         PR target/89627
10515         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
10516         parameter, and make use of it.
10517         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
10519 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10521         * config/arc/arc.opt (mcode-density-frame): Get the inital value
10522         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
10523         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10524         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10525         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
10526         match what the ops is doing.
10527         (push_multi_fp_blink): Likewise.
10528         * config/arc/arc.c (arc_override_options): Enable enter/leave when
10529         compiling for size and elf target.
10530         (arc_save_callee_enter): Adjust note to match what enter/leave
10531         operation does.
10533 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10535         * config/arc/arc.md (tst_movb): Fix constraint.
10537 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10539         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10541 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10543         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
10544         * config/arc/arc.c (arc_conditional_register_usage): Remove all
10545         reg_alloc_order references.
10546         (size_alloc_order): Define.
10547         (arc_adjust_reg_alloc_order): New function.
10548         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
10549         order.
10550         (ADJUST_REG_ALLOC_ORDER): Define.
10551         (HONOR_REG_ALLOC_ORDER): Likewise.
10553 2019-03-18  Richard Biener  <rguenther@suse.de>
10555         PR target/87561
10556         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
10557         loads and stores a bit more.
10559 2019-03-18  Richard Biener  <rguenther@suse.de>
10561         PR target/87561
10562         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
10563         load pessimization to stores as well.
10565 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
10567         PR middle-end/86979
10568         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
10569         successor, use NULL as its av set.
10571 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
10573         PR rtl-optimization/89721
10574         * lra-constraints (invariant_p): Return false if side_effects_p holds.
10576 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10578         PR target/87532
10579         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10580         When handling vec_extract, use modular arithmetic to allow
10581         constant selectors greater than vector length.
10582         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
10583         V1TImode vectors to have constant selector values greater than 0.
10584         Use modular arithmetic to compute vector index.
10585         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
10586         index for in-memory vectors.  Correct code generation for
10587         in-register vectors.
10588         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
10589         compute index.
10591 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
10593         PR c++/88534
10594         PR c++/88537
10595         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
10596         VAR_DECL args.
10598 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
10600         PR c++/89709
10601         * tree.c (inchash::add_expr): Strip any location wrappers.
10602         * fold-const.c (operand_equal_p): Move stripping of location wrapper
10603         after hash verification.
10605         PR debug/89704
10606         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
10607         SIGN_EXTEND and ZERO_EXTEND.
10609 2019-03-14  Jason Merrill  <jason@redhat.com>
10610             Jakub Jelinek  <jakub@redhat.com>
10612         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
10613         than if is_empty (*slot).
10614         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
10615         existing elt and for elt removal.
10616         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
10617         of already removed elt.
10619 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
10621         PR target/89650
10622         * config/i386/i386.c (remove_partial_avx_dependency): Handle
10623         REG_EH_REGION note.
10625 2019-03-14  Martin Liska  <mliska@suse.cz>
10627         PR other/89712
10628         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
10630 2019-03-14  Richard Biener  <rguenther@suse.de>
10632         PR target/89711
10633         * config/i386/i386.c (make_resolver_func): Properly set
10634         DECL_CONTEXT on the RESULT_DECL.
10635         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
10637 2019-03-14  Richard Biener  <rguenther@suse.de>
10639         * gimple-pretty-print.c: Include cfgloop.h.
10640         (dump_gimple_phi): Adjust.
10641         (dump_gimple_bb_header): Dump loop header for GIMPLE.
10642         (pp_cfg_jump): Adjust.
10643         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
10644         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
10645         (lower_phi_internal_fn): Remove.
10646         (verify_gimple_call): Remove IFN_PHI special-casing.
10647         (dump_function_to_file): Dump IL state.
10648         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
10649         done to deal with PHI nodes being present in non-SSA state.
10651 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
10653         PR ipa/89684
10654         * multiple_target.c (create_dispatcher_calls): Change
10655         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
10656         In the node->iterate_referring loop, push *ref rather than ref, call
10657         ref->remove_reference () and always pass 0 to iterate_referring.
10659         PR rtl-optimization/89679
10660         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
10661         would contain a paradoxical SUBREG.
10663 2019-03-14  Richard Biener  <rguenther@suse.de>
10665         PR tree-optimization/89710
10666         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
10667         safe_dyn_cast.
10669 2019-03-14  Martin Liska  <mliska@suse.cz>
10671         * coverage.c (coverage_begin_function): Stream also
10672         end_column.
10673         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
10674         documentation about function declaration location.
10675         * gcov-dump.c (tag_function): Print whole range
10676         of function declaration.
10677         * gcov.c (struct function_info): Add end_column field.
10678         (function_info::function_info): Initialize it.
10679         (output_json_intermediate_file): Output {start,end}_column
10680         fields.
10681         (read_graph_file): Read end_column.
10683 2019-03-14  Richard Biener  <rguenther@suse.de>
10685         PR middle-end/89698
10686         * fold-const.c (operand_equal_p): For INDIRECT_REF check
10687         that the access types are similar.
10689 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
10691         PR tree-optimization/89703
10692         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
10693         aren't compatible also with builtin_decl_explicit.  Check pure
10694         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
10695         and BUILT_IN_STPNCPY{,_CHK}.
10697 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
10699         PR target/89523
10700         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
10701         addr32 prefix to VSIB address for X32.
10702         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
10703         "%M2" to opcode.
10704         (*avx512pf_gatherpf<mode>df_mask): Likewise.
10705         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
10706         (*avx512pf_scatterpf<mode>df_mask): Likewise.
10707         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
10708         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
10709         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
10710         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
10711         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
10712         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
10713         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
10714         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
10715         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
10716         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
10717         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
10718         (*avx512f_scatterdi<mode>): Likewise.
10720 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
10722         PR target/85860
10723         * lra-constraints.c (inherit_in_ebb): Update
10724         potential_reload_hard_regs along with live_hard_regs.
10726 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
10728         PR debug/89498
10729         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
10730         DWARF_OFFSET_SIZE.
10731         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
10733 2019-03-13  Martin Sebor  <msebor@redhat.com>
10735         PR tree-optimization/89662
10736         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
10737         has a size.
10739 2019-03-13  Richard Biener  <rguenther@suse.de>
10741         PR middle-end/89677
10742         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
10743         throw FP expressions at tree-affine.
10745 2019-03-14  Richard Biener  <rguenther@suse.de>
10747         * tree-pretty-print.c (dump_generic_node): For -gimple properly
10748         dump negative integer constants using _Literal (type) -num.
10750 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
10752         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
10753         nonlocal_value member.
10755         PR middle-end/88588
10756         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
10757         (ipa_simd_modify_function_body): Handle PHIs.
10759 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
10761         * config/s390/s390.c (s390_option_override_internal): Use more
10762         aggressive inlining parameters.
10764 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
10766         * config/s390/3906.md: New file.
10767         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
10768         (LONGRUNNING_THRESHOLD): Remove.
10769         (MAX_SCHED_MIX_SCORE): Decrease.
10770         (MAX_SCHED_MIX_DISTANCE): Decrease.
10771         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
10772         (struct s390_sched_state): New struct to hold scheduling state.
10773         (S390_SCHED_STATE_NORMAL): Remove.
10774         (S390_SCHED_STATE_CRACKED): Remove.
10775         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
10776         (s390_get_sched_attrmask): Use new attribute.
10777         (s390_get_unit_mask): Use new units.
10778         (s390_is_fpd): New function.
10779         (s390_is_fxd): New function.
10780         (s390_is_longrunning): New function.
10781         (s390_sched_score): Use new functions.
10782         (s390_sched_reorder): Likewise.
10783         (s390_sched_variable_issue): Rework and use new functions.
10784         (s390_sched_init): Use new functions.
10785         * config/s390/s390.h (s390_tune_attr):  Add z14.
10786         * config/s390/s390.md: Add z14.
10788 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
10790         * config/s390/2964.md: Update pipeline description.
10791         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
10792         (LONGRUNNING_THRESHOLD): Remove.
10793         (LATENCY_FACTOR): Remove.
10794         (s390_get_unit_mask): Add unit.
10795         (s390_sched_score): Use fxd/fpd.
10796         (s390_sched_variable_issue): Use fxd/fpd.
10798 2019-03-12  Martin Liska  <mliska@suse.cz>
10800         * config/i386/i386.c: Reword an error message.
10802 2019-03-12  Martin Jambor  <mjambor@suse.cz>
10804         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
10805         terminate with newline.
10807 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
10809         PR target/52726
10810         * config/s390/s390.md (tabort): Use %wd instead of
10811         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
10812         letters and periods.
10813         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
10814         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
10815         's with %< and %>.
10817         PR middle-end/89663
10818         * builtins.c (expand_builtin_int_roundingfn,
10819         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
10820         gcc_unreachable if validate_arglist fails.
10822 2019-03-12  Richard Biener  <rguenther@suse.de>
10824         PR tree-optimization/89664
10825         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
10826         free the occurance tree after the early out.
10828 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
10830         PR middle-end/89655
10831         PR bootstrap/89656
10832         * vr-values.c (vr_values::update_value_range): If
10833         old_vr->varying_p (), don't update it, make new_vr also VARYING
10834         and return false.
10836 2019-03-11  Martin Liska  <mliska@suse.cz>
10838         * config/aarch64/aarch64.c (aarch64_override_options_internal):
10839         Fix double string quoting.
10841 2019-03-11  Martin Liska  <mliska@suse.cz>
10843         * collect-utils.c (collect_wait): Wrap apostrophes
10844         in gcc internal format with %'.
10845         * collect2.c (main): Likewise.
10846         (scan_prog_file): Likewise.
10847         (scan_libraries): Likewise.
10848         * config/i386/i386.c (ix86_expand_call): Likewise.
10849         (ix86_handle_interrupt_attribute): Likewise.
10850         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
10851         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
10852         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
10853         * lto-wrapper.c (find_crtoffloadtable): Likewise.
10854         * symtab.c (symtab_node::verify_base): Likewise.
10855         * tree-cfg.c (verify_gimple_label): Likewise.
10856         * tree.c (verify_type_variant): Likewise.
10858 2019-03-11  Martin Liska  <mliska@suse.cz>
10860         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
10861         in a string format message and fix GNU coding style.
10862         (expand_builtin_set_thread_pointer): Likewise.
10863         * common/config/aarch64/aarch64-common.c
10864         (aarch64_rewrite_selected_cpu): Likewise.
10865         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
10866         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
10867         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
10868         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
10869         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
10870         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
10871         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
10872         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
10873         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
10874         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
10875         Likewise.
10876         * common/config/riscv/riscv-common.c
10877         (riscv_subset_list::parsing_subset_version): Likewise.
10878         (riscv_subset_list::parse_std_ext): Likewise.
10879         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
10880         (riscv_subset_list::parse): Likewise.
10881         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
10882         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
10883         (aarch64_override_options_internal): Likewise.
10884         (aarch64_validate_mcpu): Likewise.
10885         (aarch64_validate_march): Likewise.
10886         (aarch64_validate_mtune): Likewise.
10887         (aarch64_override_options): Likewise.
10888         * config/alpha/alpha.c (alpha_option_override): Likewise.
10889         * config/arc/arc.c (arc_init): Likewise.
10890         (parse_mrgf_banked_regs_option): Likewise.
10891         (arc_override_options): Likewise.
10892         (arc_expand_builtin_aligned): Likewise.
10893         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
10894         (arm_expand_builtin): Likewise.
10895         * config/arm/arm.c (arm_option_check_internal): Likewise.
10896         (arm_configure_build_target): Likewise.
10897         (arm_option_override): Likewise.
10898         (arm_options_perform_arch_sanity_checks): Likewise.
10899         (arm_handle_cmse_nonsecure_entry): Likewise.
10900         (arm_handle_cmse_nonsecure_call): Likewise.
10901         (arm_tls_referenced_p): Likewise.
10902         (thumb1_expand_prologue): Likewise.
10903         * config/avr/avr.c (avr_option_override): Likewise.
10904         * config/bfin/bfin.c (bfin_option_override): Likewise.
10905         * config/c6x/c6x.c (c6x_option_override): Likewise.
10906         * config/cr16/cr16.c (cr16_override_options): Likewise.
10907         * config/cris/cris.c (cris_option_override): Likewise.
10908         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
10909         * config/darwin-c.c (macosx_version_as_macro): Likewise.
10910         * config/darwin.c (darwin_override_options): Likewise.
10911         * config/frv/frv.c (frv_expand_builtin): Likewise.
10912         * config/h8300/h8300.c (h8300_option_override): Likewise.
10913         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
10914         (ix86_option_override_internal): Likewise.
10915         (warn_once_call_ms2sysv_xlogues): Likewise.
10916         (ix86_expand_prologue): Likewise.
10917         (split_stack_prologue_scratch_regno): Likewise.
10918         (ix86_warn_parameter_passing_abi): Likewise.
10919         * config/ia64/ia64.c (fix_range): Likewise.
10920         * config/m68k/m68k.c (m68k_option_override): Likewise.
10921         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
10922         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
10923         (mips_set_compression_mode): Likewise.
10924         * config/mmix/mmix.c (mmix_option_override): Likewise.
10925         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
10926         * config/msp430/msp430.c (msp430_option_override): Likewise.
10927         * config/nds32/nds32.c (nds32_option_override): Likewise.
10928         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
10929         (nios2_option_override): Likewise.
10930         (nios2_expand_custom_builtin): Likewise.
10931         * config/nvptx/mkoffload.c (main): Likewise.
10932         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
10933         * config/pa/pa.c (fix_range): Likewise.
10934         (pa_option_override): Likewise.
10935         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
10936         (riscv_option_override): Likewise.
10937         * config/rl78/rl78.c (rl78_option_override): Likewise.
10938         * config/rs6000/aix61.h: Likewise.
10939         * config/rs6000/aix71.h: Likewise.
10940         * config/rs6000/aix72.h: Likewise.
10941         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
10942         * config/rs6000/freebsd64.h: Likewise.
10943         * config/rs6000/linux64.h: Likewise.
10944         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
10945         (rs6000_expand_zeroop_builtin): Likewise.
10946         (rs6000_expand_mtfsb_builtin): Likewise.
10947         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
10948         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
10949         (rs6000_invalid_builtin): Likewise.
10950         (rs6000_expand_split_stack_prologue): Likewise.
10951         * config/rs6000/rtems.h: Likewise.
10952         * config/rx/rx.c (valid_psw_flag): Likewise.
10953         (rx_expand_builtin): Likewise.
10954         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
10955         * config/s390/s390.c (s390_expand_builtin): Likewise.
10956         (s390_function_profiler): Likewise.
10957         (s390_option_override_internal): Likewise.
10958         (s390_option_override): Likewise.
10959         * config/sh/sh.c (sh_option_override): Likewise.
10960         (sh_builtin_saveregs): Likewise.
10961         (sh_fix_range): Likewise.
10962         * config/sh/vxworks.h: Likewise.
10963         * config/sparc/sparc.c (sparc_option_override): Likewise.
10964         * config/spu/spu.c (spu_option_override): Likewise.
10965         (fix_range): Likewise.
10966         * config/visium/visium.c (visium_option_override): Likewise.
10967         (visium_handle_interrupt_attr): Likewise.
10968         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
10969         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
10970         (dbg_cnt_process_opt): Likewise.
10971         * dwarf2out.c (output_dwarf_version): Likewise.
10972         * except.c (expand_eh_return): Likewise.
10973         * gcc.c (defined): Likewise.
10974         (driver_handle_option): Likewise.
10975         (process_command): Likewise.
10976         (compare_files): Likewise.
10977         (driver::prepare_infiles): Likewise.
10978         (driver::do_spec_on_infiles): Likewise.
10979         (driver::maybe_run_linker): Likewise.
10980         * omp-offload.c (oacc_parse_default_dims): Likewise.
10981         * opts-global.c (handle_common_deferred_options): Likewise.
10982         * opts.c (parse_sanitizer_options): Likewise.
10983         (common_handle_option): Likewise.
10984         (enable_warning_as_error): Likewise.
10985         * passes.c (enable_disable_pass): Likewise.
10986         * plugin.c (parse_plugin_arg_opt): Likewise.
10987         (default_plugin_dir_name): Likewise.
10988         * targhooks.c (default_expand_builtin_saveregs): Likewise.
10989         (default_pch_valid_p): Likewise.
10990         * toplev.c (init_asm_output): Likewise.
10991         (process_options): Likewise.
10992         (toplev::run_self_tests): Likewise.
10993         * tree-cfg.c (verify_gimple_call): Likewise.
10994         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
10995         (tree_inlinable_function_p): Likewise.
10996         * var-tracking.c (vt_find_locations): Likewise.
10998 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
11000         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
11001         only on the else branch.
11003 2019-03-11  Martin Liska  <mliska@suse.cz>
11005         * gcov.c (output_intermediate_json_line): Print function
11006         name of each line.
11007         (output_json_intermediate_file): Add new argument.
11008         * doc/gcov.texi: Document the change.
11010 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
11012         PR rtl-optimization/89588
11013         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11014         explicit unrolling factor more robust.
11016 2019-03-11  Richard Biener  <rguenther@suse.de>
11018         PR tree-optimization/89649
11019         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
11020         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
11021         on the prolog and epilog loops.
11022         (vect_loop_versioning): Return copy of loop.
11023         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
11024         on the non-vectorized version of the loop.
11026 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11028         PR target/68924
11029         * config/i386/sse.md (*vec_extractv2di_0_sse):
11030         Add (=r,x) alternative and corresponding splitter.
11032 2019-03-10  Martin Jambor  <mjambor@suse.cz>
11034         PR tree-optimization/85762
11035         PR tree-optimization/87008
11036         PR tree-optimization/85459
11037         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
11038         it points to if there is a type changing MEM_REF.  Adjust all callers.
11039         (build_accesses_from_assign): Disable total scalarization if
11040         contains_vce_or_bfcref_p returns true through the new parameter, for
11041         both rhs and lhs.
11043 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
11045         PR c/88568
11046         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
11047         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
11049         PR target/79645
11050         * common.opt (fdiagnostics-show-labels,
11051         fdiagnostics-show-line-numbers, fdiagnostics-format=,
11052         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
11053         gas-locview-support, ginline-points, ginternal-reset-location-views):
11054         Terminate description text with a dot.
11055         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
11056         * config/mcore/mcore.opt (m210, m340): Likewise.
11057         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
11058         mnops=): Start description text with a capital letter.
11059         * config/arc/arc.opt (msize-level=): Likewise.
11060         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
11061         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
11062         mnewlib): Likewise.
11063         * config/ft32/ft32.opt (msim): Likewise.
11064         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
11065         (mnodiv, mnopm): Terminate description text with a dot.
11066         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
11067         a colon.
11068         * config/i386/i386.opt (prefer_vector_width, instrument_return):
11069         Likewise.
11070         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
11071         text.
11073         PR rtl-optimization/89634
11074         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
11075         are modified in BB_END (e->src) instruction.
11077 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
11079         PR target/79926
11080         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
11081         messages more amenable to translation, and improve wording.
11083 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
11085         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
11086         ud- and du-chains between phases.
11088 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
11090         PR debug/89631
11091         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
11092         instead of POLY_INT_CST.
11094 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11096         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
11097         requirement.
11099 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11101         PR target/68924
11102         PR target/78782
11103         PR target/87558
11104         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
11105         (_mm_storeu_si64): Ditto.
11107 2019-03-08  Martin Liska  <mliska@suse.cz>
11109         PR target/86952
11110         * config/i386/i386.c (ix86_option_override_internal): Disable
11111         jump tables when retpolines are used.
11113 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
11115         PR go/63560
11116         * ipa-split.c (execute_split_functions): Do not split
11117         'noinline' or 'section' function.
11119 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
11121         PR target/79846
11122         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
11123         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
11124         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
11126         PR ipa/80000
11127         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11128         from diagnostics.  Formatting fixes.
11130         PR target/85665
11131         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
11132         warn_odr diagnostics.
11134         PR other/80058
11135         * lra-constraints.c (process_alt_operands): Avoid one space before
11136         " at the end of line and another after " on another line in a string
11137         literal.
11138         * attribs.c (handle_dll_attribute): Likewise.
11139         * config/avr/avr-devices.c (avr_texinfo): Likewise.
11141         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
11142         warning_at or inform messages in G_() if there is no ?:.
11144         PR tree-optimization/89550
11145         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
11146         returned true.  Formatting fixes.
11147         (expand_builtin_strnlen): Formatting fixes.
11148         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
11149         if warning_at returned true.
11150         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
11152 2019-03-08  Richard Biener  <rguenther@suse.de>
11154         PR middle-end/89578
11155         * cfgloop.h (struct loop): Add owned_clique field.
11156         * cfgloopmanip.c (copy_loop_info): Copy it.
11157         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
11158         cliques.
11159         * tree-inline.c (copy_loops): Remap owned_clique.
11160         * lto-streamer-in.c (input_cfg): Stream owned_clique.
11161         * lto-streamer-out.c (output_cfg): Likewise.
11163 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
11165         PR target/80190
11166         * config/darwin.c: Include intl.h.
11167         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
11168         composing the message out of two separate parts.
11170 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
11172         PR target/80003
11173         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
11174         doesn't start with a capital letter and doesn't end with a dot.
11175         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
11176         with a capital letter.
11177         (ix86_mangle_function_version_assembler_name): Likewise.
11178         (ix86_generate_version_dispatcher_body): Likewise.
11179         (fold_builtin_cpu): Likewise.
11180         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
11181         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
11182         translators, wrap full type name in %qs.
11184         PR translation/79999
11185         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
11186         depend clause with source (or sink) modifier.
11187         * omp-expand.c (expand_omp_ordered_sink): Likewise.
11189         PR target/89602
11190         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
11191         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
11192         (avx512f_load<mode>_mask): New define_expand.
11193         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
11194         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
11195         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
11196         __builtin_ia32_movess_mask): New builtins.
11197         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
11198         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
11199         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
11200         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
11202 2019-03-07  Martin Jambor  <mjambor@suse.cz>
11204         PR lto/87525
11205         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
11206         for extern inline functions.
11208 2019-03-07  Martin Jambor  <mjambor@suse.cz>
11210         PR ipa/88235
11211         * cgraph.h (cgraph_node): New inline method former_thunk_p.
11212         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
11213         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
11214         have multiple callees.  At the end check if declarations match as
11215         opposed to cgraph_nodes.
11217 2019-03-07  Martin Liska  <mliska@suse.cz>
11219         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
11220         which is equivalent to searching for this in clones chain.
11221         * symtab.c (symtab_node::verify_base): Similarly compare ASM
11222         names with a neighbour and special case first node in a chain.
11224 2019-01-25  Jason Merrill  <jason@redhat.com>
11226         PR c++/80916 - spurious "static but not defined" warning.
11227         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
11228         for an internal symbol with DECL_EXTERNAL.
11230 2019-04-07  Richard Biener  <rguenther@suse.de>
11232         PR middle-end/89618
11233         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
11234         * tree-inline.c (copy_loops): Simplify.
11236 2019-03-07  Martin Liska  <mliska@suse.cz>
11238         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
11240 2019-03-07  Richard Biener  <rguenther@suse.de>
11242         PR tree-optimization/89595
11243         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
11244         stmt iterator as reference, take boolean output parameter to
11245         indicate whether the stmt was removed and thus the iterator
11246         already advanced.
11247         (dom_opt_dom_walker::before_dom_children): Re-iterate over
11248         stmts created by folding.
11250 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
11252         PR c++/89585
11253         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
11254         at toplevel.
11256 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
11258         PR rtl-optimization/88845
11259         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
11260         LRA.
11261         * lra.c (remove_scratches_1): New function.
11262         (remove_scratches): Use it.
11263         (lra_emit_move): Likewise.
11265 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
11267         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
11268         unaligned_access variable.
11269         * config/arc/arc.c (arc_override_options): Set unaligned access
11270         default on for HS CPUs.
11271         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
11273 2019-03-06  Martin Liska  <mliska@suse.cz>
11275         PR gcov-profile/89577
11276         * doc/gcov.texi: Prefer to use --coverage.
11277         * doc/sourcebuild.texi: Likewise.
11279 2019-03-02  Jason Merrill  <jason@redhat.com>
11281         PR c++/86485 - -Wmaybe-unused with empty class ?:
11282         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
11284 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11286         PR target/89587
11287         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
11288         if_multiarch.
11290         PR middle-end/89590
11291         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
11292         exactly one argument.
11294 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11295             Richard Sandiford  <richard.sandiford@arm.com>
11297         PR tree-optimization/89570
11298         * match.pd (vec_cond into cond_op simplification): Don't use
11299         get_conditional_internal_fn, use as_internal_fn (cond_op).
11301 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
11303         PR target/89222
11304         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
11305         to decide when to split off a non-zero offset from a symbol.
11306         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
11307         in function symbols.
11309 2019-03-05  Richard Biener  <rguenther@suse.de>
11311         PR tree-optimization/89594
11312         * tree-if-conv.c (pass_if_conversion::execute): Handle
11313         case where .LOOP_VECTORIZED_FUNCTION was removed.
11315 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11317         PR bootstrap/89560
11318         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
11319         instead alloca it only when needed with the needed size.
11321         PR tree-optimization/89570
11322         * match.pd (vec_cond into cond_op simplification): Guard with
11323         vectorized_internal_fn_supported_p test and #if GIMPLE.
11325         PR tree-optimization/89566
11326         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
11327         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
11328         Punt if get_user_idx_format succeeds, but idx_format argument is
11329         not provided or doesn't have pointer type, or if idx_args is above
11330         number of provided arguments.
11332 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
11334         PR tree-optimization/89437
11335         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
11337 2019-03-04  Richard Biener  <rguenther@suse.de>
11339         PR middle-end/89572
11340         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
11341         safe_dyn_cast.
11343 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
11345         PR tree-optimization/89487
11346         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
11347         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
11348         (distribute_loop): Don't do runtime alias check if there is non-
11349         addressable data reference.
11350         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
11351         is a register variable.
11353 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
11355         PR target/89506
11356         * config/arm/arm.md (cmpsi2_addneg): Use
11357         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
11358         If operands[2] is 0 or INT_MIN, force use of subs.
11359         (*compare_scc splitter): Use gen_int_mode.
11360         (*negscc): Likewise.
11361         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
11363 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
11364             Monk Chiang  <sh.chiang04@gmail.com>
11366         * common/config/riscv/riscv-common.c: Include sstream.
11367         (riscv_subset_list::to_string): New.
11368         (riscv_arch_str): Likewise.
11369         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
11370         * config.in: Regen.
11371         * config/riscv/riscv-protos.h (riscv_arch_str): New.
11372         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
11373         (riscv_emit_attribute): New.
11374         (riscv_file_start): Emit attribute if needed.
11375         (riscv_option_override): Init riscv_emit_attribute_p.
11376         * config/riscv/riscv.opt (mriscv-attribute): New option.
11377         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
11378         * configure: Regen.
11379         * doc/install.texi: Document --with-riscv-attribute.
11380         * doc/invoke.texi: Document -mriscv-attribute.
11382         * common/config/riscv/riscv-common.c:
11383         Include config/riscv/riscv-protos.h.
11384         (INCLUDE_STRING): Defined.
11385         (RISCV_DONT_CARE_VERSION): Defined.
11386         (riscv_subset_t): Declare.
11387         (riscv_subset_t::riscv_subset_t): New.
11388         (riscv_subset_list): Declare.
11389         (riscv_subset_list::riscv_subset_list): New.
11390         (riscv_subset_list::~riscv_subset_list): Likewise.
11391         (riscv_subset_list::parsing_subset_version): Likewise.
11392         (riscv_subset_list::parse_std_ext): Likewise.
11393         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11394         (riscv_subset_list::add): Likewise.
11395         (riscv_subset_list::lookup): Likewise.
11396         (riscv_subset_list::xlen): Likewise.
11397         (riscv_subset_list::parse): Likewise.
11398         (riscv_supported_std_ext): Likewise.
11399         (current_subset_list): Likewise.
11400         (riscv_parse_arch_string): Using riscv_subset_list::parse to
11401         parse.
11403 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
11405         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11406         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
11407         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
11409 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
11411         PR rtl-optimization/85899
11412         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
11413         fallthru edges leading to the exit block.
11415 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
11417         PR target/89517
11418         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
11419         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
11421 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
11423         PR tree-optimization/89535
11424         * tree-vect-stmts.c (vectorizable_call): Record the vector types
11425         for each operand.  Calculate the fallback choice for mask operands
11426         and pass it to vect_get_vec_def_for_operand.
11428 2019-03-01  Richard Biener  <rguenther@suse.de>
11430         PR middle-end/89541
11431         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
11432         get virtual operands.
11433         (get_expr_operands): Handle CONST_DECL like other decls.
11435 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
11437         PR middle-end/89503
11438         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
11439         on DECL_P and EXPR_P.
11441 2019-03-01  Richard Biener  <rguenther@suse.de>
11443         PR middle-end/89497
11444         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
11445         argument, defaulted to zero.
11446         * passes.c (execute_function_todo): Pass down SSA update flags
11447         to cleanup_tree_cfg.
11448         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
11449         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
11450         form if requested.
11451         (cleanup_tree_cfg): Get and pass down SSA update flags.
11453 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
11455         PR bootstrap/89539
11456         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
11457         early_lto_debug argument.
11459 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11461         PR tree-optimization/89536
11462         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
11463         only whether bit #0 of the value is 0 instead of the entire value.
11465 2019-02-28  Marek Polacek  <polacek@redhat.com>
11467         PR c++/87068 - missing diagnostic with fallthrough statement.
11468         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
11469         at the end of a seq, save its location to walk_stmt_info.
11470         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
11471         a switch.
11473 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
11475         PR lto/88585
11476         * tree.c (find_atomic_core_type): Move ahead in file.
11477         (check_base_type): Correctly compare alignments of atomic types.
11479 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
11481         PR target/89455
11482         * config/i386/i386.c (get_builtin_code_for_version): Identify
11483         Westmere from PCLMUL, instead of AES.
11485 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
11487         PR target/89434
11488         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
11489         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
11490         -UINTVAL (...).
11492 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
11494         PR target/88530
11495         * config/aarch64/aarch64-option-extensions.def: Document it.
11496         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
11497         if empty hwcaps.
11499 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
11501         PR c/89520
11502         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
11503         builtins if they don't have a single scalar floating point argument.
11504         Formatting fixes.
11506 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11508         PR rtl-optimization/89490
11509         * varasm.c (get_block_for_section): Bail out for mergeable sections.
11510         (default_use_anchors_for_symbol_p, output_object_block): Assert the
11511         block section is not mergeable.
11513 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
11515         PR target/70341
11516         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
11517         old define_insn to ...
11518         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
11519         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
11520         Rename old define_insn to ...
11521         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
11522         (thumb2_casesi_internal_pic): New define_expand.  Rename old
11523         define_insn to ...
11524         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
11525         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
11526         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
11528 2019-02-27  Richard Biener  <rguenther@suse.de>
11530         PR debug/88878
11531         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
11533 2019-02-27  Richard Biener  <rguenther@suse.de>
11535         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
11536         building.
11538 2019-02-27  Richard Biener  <rguenther@suse.de>
11540         PR debug/88878
11541         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
11542         parameter, prefix section name with .gnu.debuglto_ if true.
11543         (dwarf2out_finish): Pass false to output_comdat_type_unit.
11544         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
11546 2019-02-27  Richard Biener  <rguenther@suse.de>
11548         PR debug/89514
11549         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
11550         rather than on use_debug_types, doing what output_die does.
11551         (value_format): Likewise.
11553 2019-02-27  Martin Jambor  <mjambor@suse.cz>
11554             Martin Sebor  <msebor@redhat.com>
11556         * doc/invoke.texi (Warning Options): Reword description of
11557         -Wno-absolute-value.
11559 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
11561         PR tree-optimization/89280
11562         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
11563         builtin_setjmp_setup_bb): New functions.
11564         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
11565         When visiting __builtin_setjmp_setup block, queue in special
11566         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
11567         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
11568         from visited after the loop if they don't have any visited successor
11569         blocks.
11571 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
11573         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
11574         New function.
11575         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
11577 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
11579         PR c++/89507
11580         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
11581         with types other than sizetype/ssizetype.
11583 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
11585         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
11586         (enum sparc_processor_type): ...this.
11587         (enum sparc_code_model_type): New enumeration type.
11588         (enum sparc_memory_model_type): Tweak comments.
11589         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
11590         (mtune): Likewise.
11591         (mcmodel): Use sparc_code_model enumeration and variable.
11592         (sparc_code_model): New enumeration.
11593         (mdebug): Add Undocumented marker.
11594         * config/sparc/sparc.h (enum cmodel): Delete.
11595         (sparc_cmodel): Likewise.
11596         (TARGET_CM_MEDLOW): Adjust to above renaming.
11597         (TARGET_CM_MEDMID): Likewise.
11598         (TARGET_CM_MEDANY): Likewise.
11599         (TARGET_CM_EMBMEDANY): Likewise.
11600         * config/sparc/sparc.c (sparc_cmodel): Delete.
11601         (sparc_option_override): Remove string/value mapping support for the
11602         code model.  Move code and memory model support to after the handling
11603         of target flags.  Do private machine setup last.
11604         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
11605         (sparc_legitimize_reload_address): Likewise.
11606         (sparc_output_mi_thunk): Likewise.
11607         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
11609 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
11611         PR tree-optimization/89500
11612         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
11613         (handle_builtin_strlen): Remove noncst_bound variable.  Always
11614         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
11615         cst if the first cst bytes starting at x are known to be non-zero,
11616         even if the string is not zero terminated.  Don't try to modify
11617         *si for strnlen.  Update strlen_to_stridx only for strlen or if
11618         we can prove strnlen returns the same value as strlen would.
11620 2019-02-26  Martin Liska  <mliska@suse.cz>
11622         * alloc-pool.h (struct pool_usage): Remove extra
11623         print_dash_line.
11624         * bitmap.h (struct bitmap_usage): Likewise.
11625         * ggc-common.c (struct ggc_usage): Likewise.
11626         * mem-stats.h (struct mem_usage): Likewise.
11627         (mem_alloc_description::dump): Print dash lines
11628         here and repeat header at the end of a table report.
11629         It's then more readable.
11630         * tree-phinodes.c (phinodes_print_statistics): Make
11631         horizontal alignment.
11632         * tree-ssanames.c (ssanames_print_statistics): Likewise.
11633         * vec.c (struct vec_usage): Remove extra print_dash_line.
11634         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
11636 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11638         * doc/extend.texi (__builtin_object_size):
11639         Use @pxref instead of @xref inside parenthesis.
11640         (__builtin_has_attribute): Add missing comma after @xref.
11641         (__builtin_object_size): Ditto.
11642         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
11643         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
11644         in the list.
11646 2019-02-26  Jeff Law  <law@redhat.com>
11648         PR rtl-optimization/87761
11649         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
11650         detect obviously dead insns and delete them.
11652 2019-02-26  Richard Biener  <rguenther@suse.de>
11654         PR tree-optimization/89505
11655         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
11656         to handle restrict pointed-to vars with multiple subvars
11657         correctly.
11659 2019-02-26  Richard Biener  <rguenther@suse.de>
11661         PR tree-optimization/89489
11662         * tree-parloops.c (create_loop_fn): Copy over last_clique.
11664 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
11666         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
11667         and move around comment.
11668         <BIT_AND_EXPR>: Likewise.
11669         <BIT_NOT_EXPR>: Add specific handling for boolean types.
11671 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
11673         PR target/89474
11674         * config/i386/i386.c (remove_partial_avx_dependency): Call
11675         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
11676         after changing possibly many instructions to use that pseudo.  Fix up
11677         insertion of v4sf_const0 setter at the start of bb.
11679 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
11681         PR c/80409
11682         * doc/extend.texi (Variadic Pointer Args): New section.
11684 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
11685             Martin Sebor  <msebor@gmail.com>
11687         * common.opt (Wattribute-alias): Likewise.
11688         * doc/invoke.texi (Option Summary): List general form of
11689         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
11690         (-Wmissing-attributes): Invert entry, rewrite and correct default.
11691         Add cross-references.
11692         (-Wattribute-alias): Rewrite and correct default.  Mention
11693         considered attributes (same as for -Wmissing-attributes).
11695 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
11697         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
11698         (_mm_cvtpd_ps): Likewise.
11699         (_mm_cvttpd_epi32): Likewise.
11701         PR target/89338
11702         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
11703         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
11705         PR target/89339
11706         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
11708 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
11710         PR target/88530
11711         * common/config/aarch64/aarch64-common.c
11712         (struct aarch64_option_extension): Add is_synthetic.
11713         (all_extensions): Use it.
11714         (TARGET_OPTION_INIT_STRUCT): Define hook.
11715         (struct gcc_targetm_common): Moved to end.
11716         (all_extensions_by_on): New.
11717         (opt_ext_cmp, typedef opt_ext): New.
11718         (aarch64_option_init_struct): New.
11719         (aarch64_contains_opt): New.
11720         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
11721         * config/aarch64/aarch64-option-extensions.def
11722         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
11723         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
11724         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
11725         Set is_synthetic to false.
11726         (crypto): Set is_synthetic to true.
11727         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
11728         SYNTHETIC.
11730 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
11732         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
11733         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
11734         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
11735         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
11736         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
11737         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
11738         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
11739         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
11740         Rename ...
11741         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
11742         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
11743         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
11744         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
11745         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
11746         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
11747         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
11748         vfmlsl_laneq_high_f16): ... To this.
11749         * config/arm/neon.md: Update comments.
11751 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
11753         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
11754         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
11755         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
11756         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
11757         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
11758         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
11759         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
11760         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
11761         Rename ...
11762         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
11763         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
11764         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
11765         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
11766         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
11767         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
11768         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
11769         vfmlslq_laneq_high_f16): ... To this.
11771 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
11773         PR rtl-optimization/86096
11774         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
11775         comparing mw_order values.
11777 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
11779         PR target/89434
11780         * config/arm/arm.md (*subsi3_carryin_const): Use
11781         arm_neg_immediate_operand predicate instead of
11782         arm_not_immediate_operand, "L" constraint instead of "K" and
11783         print it using %n2 instead of %B2.
11784         (*subsi3_carryin_const0): New define_insn.
11785         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
11786         instead of arm_not_operand and "I" constraint instead of "K" and
11787         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
11788         another match_operand and in the condition check that it is negation
11789         of operands[2].
11790         (*subsi3_carryin_compare_const0): New define_ins.
11791         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
11792         *subsi3_carryin_const.
11793         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
11794         split into *subsi3_carryin_compare_const0 if the highpart is zero.
11796         PR target/89438
11797         * config/arm.vfp.md (*negdf2_vfp): Use
11798         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
11799         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
11801 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
11803         PR rtl-optimization/89445
11804         * simplify-rtx.c (simplify_ternary_operation): Don't use
11805         simplify_merge_mask on operands that may trap.
11806         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
11807         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
11808         second operand is CONST_VECTOR, check if any element could be zero.
11809         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
11810         their operands can trap.
11812 2019-02-23  Martin Sebor  <msebor@redhat.com>
11814         * gimple-ssa-sprintf.c (target_strtol): Rename...
11815         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
11816         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
11817         check for range error.
11819 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
11821         PR driver/69471
11822         * opts-common.c (prune_options): Also prune joined switches
11823         with Negative and RejectNegative.
11824         * config/i386/i386.opt (march=): Add Negative(march=).
11825         (mtune=): Add Negative(mtune=).
11826         * doc/options.texi: Document Negative used together with Joined
11827         and RejectNegative.
11829 2019-02-22  Martin Sebor  <msebor@redhat.com>
11831         * doc/extend.texi (Other Builtins): Add
11832         __builtin_is_constant_evaluated.
11834 2019-02-22  Richard Biener  <rguenther@suse.de>
11836         PR tree-optimization/87609
11837         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
11839 2019-02-22  Jeff Law  <law@redhat.com>
11841         PR rtl-optimization/87761
11842         * config/mips/mips.md: Add new combiner pattern to recognize
11843         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
11845 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
11847         PR target/89324
11848         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
11849         destination register in peepholes generating patterns for ADDS/SUBS.
11850         (add<mode>3_compare0,
11851         *addsi3_compare0_uxtw, add<mode>3_compareC,
11852         add<mode>3_compareV_imm, add<mode>3_compareV,
11853         *adds_<optab><ALLX:mode>_<GPI:mode>,
11854         *subs_<optab><ALLX:mode>_<GPI:mode>,
11855         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
11856         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
11857         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
11858         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
11859         sub<mode>3_compare1): Allow stack pointer for source register.
11860         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
11862 2019-02-22  Martin Sebor  <msebor@redhat.com>
11864         PR tree-optimization/88993
11865         PR tree-optimization/88853
11866         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
11867         New helper.
11868         (sprintf_dom_walker::call_info::is_string_func): New helper.
11869         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
11870         for formatted string functions.
11871         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
11873 2019-02-22  Martin Sebor  <msebor@redhat.com>
11875         PR c/89425
11876         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
11877         unreachable subexpressions.
11879 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
11880             Hongtao Liu  <hongtao.liu@intel.com>
11881             Sunil K Pandey  <sunil.k.pandey@intel.com>
11883         PR target/87007
11884         * config/i386/i386-passes.def: Add
11885         pass_remove_partial_avx_dependency.
11886         * config/i386/i386-protos.h
11887         (make_pass_remove_partial_avx_dependency): New.
11888         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
11889         New function.
11890         (pass_data_remove_partial_avx_dependency): New.
11891         (pass_remove_partial_avx_dependency): Likewise.
11892         (make_pass_remove_partial_avx_dependency): Likewise.
11893         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
11894         (*extendsfdf2): Add avx_partial_xmm_update.
11895         (truncdfsf2): Likewise.
11896         (*float<SWI48:mode><MODEF:mode>2): Likewise.
11897         (SF/DF conversion splitters): Disabled for TARGET_AVX.
11899 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
11901         PR middle-end/85598
11902         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
11903         analysis for pass.
11905 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
11907         PR target/89444
11908         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
11909         (PTA_SKYLAKE): Add PTA_AES.
11910         (PTA_GOLDMONT): Likewise.
11912 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
11914         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
11915         instruction if enabled.
11916         (aarch64_override_options): Remove reference to return address key.
11918 2019-02-22  Richard Biener  <rguenther@suse.de>
11920         PR tree-optimization/89440
11921         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
11922         not necessary assert.
11924 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
11926         PR fortran/72741
11927         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
11928         (oacc_replace_fn_attrib_attr): ... this new function.
11929         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
11930         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
11932 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11934         * config/arm/arm-cpus.in (ares): Rename to...
11935         (neoverse-n1): ... This.  Add ares as alias.
11936         * config/arm/arm-tables.opt: Regenerate.
11937         * config/arm/arm-tune.md: Likewise.
11938         * doc/invoke.txt (ARM Options): Document neoverse-n1.
11940 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11942         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
11943         * config/aarch64/aarch64-tune.md: Regenerate.
11944         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
11946 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11948         * config/aarch64/aarch64.c (ares_tunings): Rename to...
11949         (neoversen1_tunings): ... This.
11950         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
11951         (neoverse-n1): New CPU.
11952         * config/aarch64/aarch64-tune.md: Regenerate.
11953         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
11955 2019-02-22  Richard Biener  <rguenther@suse.de>
11957         PR middle-end/87609
11958         * cfghooks.h (dependence_hash): New typedef.
11959         (struct copy_bb_data): New type.
11960         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
11961         (duplicate_block): Likewise.
11962         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
11963         (copy_bbs): Create and pass down copy_bb_data.
11964         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
11965         (rtl_duplicate_bb): Likewise.
11966         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
11967         remap dependence info.
11969 2019-02-22  Richard Biener  <rguenther@suse.de>
11971         PR tree-optimization/87609
11972         * tree-core.h (tree_base): Document special clique values.
11973         * tree-inline.c (remap_dependence_clique): Do not use the
11974         special clique value of one.
11975         (maybe_set_dependence_info): Use clique one.
11976         (clear_dependence_clique): New callback.
11977         (compute_dependence_clique): Clear clique one from all refs
11978         before assigning it (again).
11980 2019-02-21  Martin Sebor  <msebor@redhat.com>
11982         * doc/extend.texi (__clear_cache): Correct signature.
11984 2019-02-21  Ian Lance Taylor  <iant@golang.org>
11986         PR go/89170
11987         * varasm.c (decode_addr_const): Call lookup_constant_def rather
11988         than output_constant_def.
11989         (add_constant_to_table): New static function.
11990         (output_constant_def): Call add_constant_to_table.
11991         (tree_output_constant_def): Likewise.
11993 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
11995         PR c++/89285
11996         * builtins.c (fold_builtin_arith_overflow): If first two args are
11997         INTEGER_CSTs, set intres and ovfres to constants rather than calls
11998         to ifn.
12000 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
12002         PR target/87412
12003         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
12004         error for -mindirect-branch/-mfunction-return with incompatible
12005         -fcf-protection.
12007 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
12009         PR bootstrap/88714
12010         * constraints.md (q): Remove.
12011         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
12012         instead of q.
12014 2019-02-21  Martin Jambor  <mjambor@suse.cz>
12016         PR hsa/89302
12017         * omp-general.c (omp_extract_for_data): Removed a duplicate call
12018         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
12019         (omp_adjust_for_condition): ...here.  Added necessary parameters.
12020         * omp-general.h (omp_adjust_for_condition): Updated declaration.
12021         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
12022         proper values to new parameters of omp_adjust_for_condition.
12024 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12026         PR middle-end/89412
12027         * expr.c (expand_assignment): If result is a MEM, use change_address
12028         instead of simplify_gen_subreg.
12030 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12031             David Malcolm  <dmalcolm@redhat.com>
12033         PR middle-end/89091
12034         * fold-const.c (decode_field_reference): Return NULL_TREE if
12035         lang_hooks.types.type_for_size returns NULL.  Check it before
12036         overwriting *exp_.  Use return NULL_TREE instead of return 0.
12038 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12040         PR middle-end/88074
12041         PR middle-end/89415
12042         * toplev.c (do_compile): Double the emin/emax exponents to workaround
12043         buggy mpc_norm.
12045 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12047         PR target/89397
12048         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
12049         TARGET_SSE in addition to TARGET_SSE_MATH.
12051         (ix86_excess_precision): Ditto.
12052         (ix86_float_exceptions_rounding_supported_p): Ditto.
12053         (use_rsqrt_p): Ditto.
12054         * config/i386/sse.md (rsqrt<mode>2): Ditto.
12056 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
12058         PR c/89410
12059         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
12060         linenum_arith_t when determining if two adjacent line spans are
12061         close enough to merge.
12062         (diagnostic_show_locus): Use linenum_arith_t when iterating over
12063         lines within each line_span.
12065 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
12067         PR target/86487
12068         * lra-constraints.c(uses_hard_regs_p): Fix handling of
12069         paradoxical SUBREGS.
12071 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
12073         PR target/88100
12074         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
12075         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
12076         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
12077         range checking it.
12079 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
12081         * config/gcn/gcn.c (print_operand): Fix typo.
12083 2019-02-19  Richard Biener  <rguenther@suse.de>
12085         PR middle-end/88074
12086         * toplev.c (do_compile): Initialize mpfr's exponent range
12087         based on available float modes.
12089 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12091         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
12092         as long as the epilogue isn't completed.
12094 2019-02-18  Martin Sebor  <msebor@redhat.com>
12096         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
12097         __has_cpp_attribute, and __has_include.
12099 2019-02-18  Martin Sebor  <msebor@redhat.com>
12101         * doc/invoke.texi (-Wreturn-type): Correct and expand.
12103 2019-02-18  Martin Sebor  <msebor@redhat.com>
12105         PR middle-end/89294
12106         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
12107         expression.
12108         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
12110 2019-02-18  Richard Biener  <rguenther@suse.de>
12112         PR tree-optimization/89296
12113         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
12114         of no-warning flag to cases that might emit the bogus warning.
12116 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
12118         PR bootstrap/88714
12119         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
12120         "q" constraint.
12121         * config/arm/vfp.md (*movdi_vfp): Likewise.
12122         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
12123         "q" constraint for operands[0].
12125         PR target/89369
12126         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
12127         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
12128         pattern in a temporary buffer.
12129         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
12130         than 64-operands[2].
12132         PR target/89361
12133         * config/s390/s390.c (s390_indirect_branch_attrvalue,
12134         s390_indirect_branch_settings): Define unconditionally.
12135         (s390_set_current_function): Likewise, but guard the whole body except
12136         the s390_indirect_branch_settings call with
12137         #if S390_USE_TARGET_ATTRIBUTE.
12138         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
12140         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
12141         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
12142         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
12143         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
12144         HOST_WIDE_INT_1U instead of 1ULL.
12145         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
12146         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
12147         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
12148         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
12149         instead of 1UL.
12150         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
12151         instead of 1ul.
12153 2019-02-18  Martin Jambor  <mjambor@suse.cz>
12155         PR tree-optimization/89209
12156         * tree-sra.c (create_access_replacement): New optional parameter
12157         reg_tree.  Use it as a type if non-NULL and access type is not of
12158         a register type.
12159         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
12160         to create_access_replacement.
12161         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
12162         Check lacc is non-NULL before attempting to re-create it on the RHS.
12164 2019-02-18  Martin Liska  <mliska@suse.cz>
12166         PR ipa/89306
12167         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
12168         by default.
12169         (symbol_table::free_edge): Recycle m_summary_id.
12170         * cgraph.h (get_summary_id): New.
12171         (symbol_table::release_symbol): Set m_summary_id to -1
12172         by default.
12173         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
12174         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
12175         function_summary to fast_function_summary.
12176         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
12177         * ipa-pure-const.c (class funct_state_summary_t):
12178         Switch from function_summary to fast_function_summary.
12179         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
12180         (class ipa_ref_opt_summary_t): Switch from function_summary
12181         to fast_function_summary.
12182         * symbol-summary.h (class function_summary_base): New class
12183         that is created from base of former function_summary.
12184         (function_summary_base::unregister_hooks): New.
12185         (class function_summary): Inherit from function_summary_base.
12186         (class call_summary_base): New class
12187         that is created from base of former call_summary.
12188         (class call_summary): Inherit from call_summary_base.
12189         (struct is_same): New.
12190         (class fast_function_summary): New summary class.
12191         (class fast_call_summary): New summary class.
12192         * vec.h (vec_safe_grow_cleared): New function.
12194 2019-02-18  Martin Liska  <mliska@suse.cz>
12196         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
12197         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
12198         * doc/tm.texi: Document new target hook.
12199         * doc/tm.texi.in: Likewise.
12200         * target.def: Add new target macro.
12201         * gcc.c (find_fortran_preinclude_file): Do not search multilib
12202         suffixes.
12204 2019-02-17  Alan Modra  <amodra@gmail.com>
12206         PR target/89271
12207         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
12208         output reg on add insn.
12209         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
12211 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12213         PR target/89372
12214         * config/i386/sse.md (ssedoublemode): Remove V4HI.
12215         (PMULHRSW): Likewise.
12216         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
12217         TARGET_AVX2.
12218         (ssse3_pmulhrswv4hi3): New expander.
12220 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12222         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
12223         MMX.  Add isa attribute.
12225 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
12227         PR rtl-optimization/66152
12228         * builtins.h (c_readstr): Declare.
12229         * builtins.c (c_readstr): Remove forward declaration.  Add
12230         null_terminated_p argument, if false, read all bytes from the
12231         string instead of stopping after '\0'.
12232         * expr.c (string_cst_read_str): New function.
12233         (store_expr): Use string_cst_read_str instead of
12234         builtin_strncpy_read_str.  Try to store by pieces the whole
12235         exp_len first, and only if that fails, split it up into
12236         store by pieces followed by clear_storage.  Formatting fix.
12238         * config/i386/i386.md (*movqi_internal): Remove static from
12239         buf variable.  Use output_asm_insn (buf, operands); return "";
12240         instead of return buf;.
12241         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
12242         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
12243         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
12245 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12247         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
12248         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
12249         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
12250         (CC1_SPEC): Likewise.
12251         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
12253 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12255         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
12256         the base address on 64-bit strict-alignment platforms.
12258 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12260         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
12262 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12264         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
12266 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
12268         PR rtl-optimization/88308
12269         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
12270         on copied instruction.
12272 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12274         * final.c (insn_current_reference_address): Replace test on JUMP_P
12275         with test on jump_to_label_p.
12276         * config/visium/visium-passes.def: New file.
12277         * config/visium/t-visium (PASSES_EXTRA): Define.
12278         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
12279         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
12280         (TRAMPOLINE_ALIGNMENT): Define.
12281         * config/visium/visium.c (visium_option_override): Do not register
12282         the machine-specific reorg pass here.
12283         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
12284         for the GR6.
12285         (output_branch): Adjust threshold for long branch instruction.
12286         * config/visium/visium.md (cpu): Move around.
12287         (length): Adjust for the GR6.
12289 2019-02-15  Richard Biener  <rguenther@suse.de>
12290             Jakub Jelinek  <jakub@redhat.com>
12292         PR tree-optimization/89278
12293         * tree-loop-distribution.c: Include tree-eh.h.
12294         (generate_memset_builtin, generate_memcpy_builtin): Call
12295         rewrite_to_non_trapping_overflow on builtin->size before passing it
12296         to force_gimple_operand_gsi.
12298 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
12300         PR other/89342
12301         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
12302         optimize_debug.
12303         * opth-gen.awk: Likewise.
12305 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12307         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
12308         Enable MMX, SSE and SSE2 by default.
12309         * config/i386/i386.c (ix86_option_override_internal): Do not
12310         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
12312 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
12314         PR rtl-optimization/89354
12315         * combine.c (make_extraction): Punt if extraction_mode is narrower
12316         than len bits.
12318 2019-02-14  Maya Rashish  <coypu@sdf.org>
12320         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
12321         * config/netbsd-d.c: New file.
12322         * config/t-netbsd: Add netbsd-d.o
12324 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
12326         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
12327         affects_type_identity to true for aarch64_vector_pcs.
12328         (aarch64_comp_type_attributes): New function.
12329         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
12331 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
12333         PR target/88850
12334         * config/arm/iterators.md (ANY64): Add V4HF.
12336 2019-02-14  Martin Liska  <mliska@suse.cz>
12338         PR rtl-optimization/89242
12339         * dce.c (delete_unmarked_insns): Call free_dominance_info we
12340         process a transformation.
12342 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
12344         PR tree-optimization/89314
12345         * fold-const.c (fold_binary_loc): Cast strlen argument to
12346         const char * before dereferencing it.  Formatting fixes.
12348         PR middle-end/89284
12349         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
12351 2019-02-13  Ian Lance Taylor  <iant@golang.org>
12353         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
12354         and set current index for other optimizations.
12356 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12358         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
12359         nonimmediate_operand as operand 2 predicate.
12360         (vec_set<VF2_512_256:mode>_0): Ditto.
12361         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
12362         (*vec_concatv2si): Remove alternative 2.
12363         (*vec_concatv4si_0): Use vm constraint for alternative 0.
12364         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
12365         (vec_concatv2di): Split alternatives 4,5,6 to ...
12366         (*vec_concatv2di_0) ... new pattern.
12368 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
12370         PR target/89190
12371         * config/arm/arm.c (ldm_stm_operation_p) Set
12372         addr_reg_in_reglist correctly for first register.
12373         (load_multiple_sequence): Remove dead base check.
12374         (gen_ldm_seq): Correctly set write_back for Thumb-1.
12376 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
12378         PR target/88847
12379         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
12380         Expose as @aarch64_pred_mov.
12381         * config/aarch64/aarch64.c (aarch64_classify_address):
12382         Use expand_insn which legitimizes operands.
12384 2019-02-13  Martin Liska  <mliska@suse.cz>
12386         * builtins.h (expand_builtin_with_bounds): Remove declaration.
12387         * calls.c (struct arg_data): Remove special_slot, pointer_arg
12388         and pointer_offset fields.
12389         (initialize_argument_information): Remove usage of dead
12390         fields.
12391         * cgraph.h (struct cgraph_thunk_info): Remove
12392         add_pointer_bounds_args.
12393         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
12394         fields.
12395         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
12396         fields.
12397         * config/i386/i386.c (ix86_function_arg_advance): Remove
12398         unrelated comment.
12399         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
12400         (def_builtin):  Remove usage of dead
12401         fields.
12402         (ix86_add_new_builtins): Likewise.
12403         * ipa-fnsummary.c (compute_fn_summary): Likewise.
12404         * ipa-icf.c (sem_function::equals_wpa): Likewise.
12405         (sem_function::init): Likewise.
12406         (sem_variable::merge): Likewise.
12407         * ipa-visibility.c (function_and_variable_visibility): Likewise.
12408         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
12409         * lto-cgraph.c (lto_output_node): Likewise.
12410         (lto_output_varpool_node): Likewise.
12411         (input_node): Likewise.
12412         (input_varpool_node): Likewise.
12413         * lto-streamer-out.c (lto_output): Likewise.
12414         * tree-inline.c (expand_call_inline): Remove usage of
12415         assign_stmts.
12416         * tree-inline.h (struct copy_body_data): Likewise.
12417         * varpool.c (varpool_node::dump): Likewise.
12419 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
12421         PR middle-end/89303
12422         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
12423         into pt->vars_contains_escaped_heap instead of setting
12424         pt->vars_contains_escaped_heap to it.
12426         PR middle-end/89281
12427         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
12428         INTVAL (size), compare it to GET_MODE_MASK instead of
12429         1 << GET_MODE_BITSIZE.
12431         PR target/89290
12432         * config/i386/predicates.md (x86_64_immediate_operand): Allow
12433         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
12434         -mcmodel=large.
12436 2019-02-13  Martin Liska  <mliska@suse.cz>
12438         PR lto/88858
12439         * cfgrtl.c (remove_barriers_from_footer): New function.
12440         (try_redirect_by_replacing_jump): Use it.
12441         (cfg_layout_redirect_edge_and_branch): Likewise.
12443 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
12445         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
12446         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
12447         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
12448         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
12449         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
12450         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
12451         New BU_CRYPTO_2.
12452         * config/rs6000/rs6000.c (builtin_function_type)
12453         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
12454         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
12455         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
12456         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
12457         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
12459 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
12461         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
12462         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
12464 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
12466         PR target/89229
12467         * config/i386/i386.md (*movoi_internal_avx): Revert revision
12468         268678 and revision 268657.
12469         (*movti_internal): Likewise.
12471 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
12473         PR target/89233
12474         * config/s390/s390.c (s390_decompose_address): Update comment.
12475         (s390_check_qrst_address): Reject invalid address forms after
12476         LRA.
12478 2019-02-12  Martin Liska  <mliska@suse.cz>
12480         PR lto/88876
12481         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
12482         we need default values of funct_state for a function that
12483         is not optimized.
12485 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
12487         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
12488         the object to pick the size of stores on strict-alignment platforms.
12490         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
12491         (*movdi_insn_sp32): Likewise.
12492         (*movdi_insn_sp64): Likewise.
12494 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
12496         PR lto/88677
12497         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
12498         types that needs constructiong.
12499         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
12501 2019-02-12  Richard Biener  <rguenther@suse.de>
12503         PR tree-optimization/89253
12504         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
12505         duplicate the loop.
12507 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
12509         PR lto/88147
12510         * input.c (selftest::test_line_offset_overflow): New selftest.
12511         (selftest::input_c_tests): Call it.
12513 2019-02-11  Martin Sebor  <msebor@redhat.com>
12515         PR tree-optimization/88771
12516         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
12517         when -Wstringop-overflow is set.
12518         (builtin_memref::builtin_memref): Adjust excessive upper bound
12519         only when lower bound is not excessive.
12520         (maybe_diag_overlap): Detect and diagnose excessive bounds via
12521         -Wstringop-ovefflow.
12522         (maybe_diag_offset_bounds): Rename...
12523         (maybe_diag_access_bounds): ...to this.
12524         (check_bounds_or_overlap): Adjust for name change above.
12526 2019-02-11  Martin Sebor  <msebor@redhat.com>
12528         PR c++/87996
12529         * builtins.c (max_object_size): Move from here...
12530         * builtins.h (max_object_size): ...and here...
12531         * tree.c (max_object_size): ...to here...
12532         * tree.h (max_object_size): ...and here.
12534 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
12536         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
12537         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
12538         for correct semantics.
12540 2019-02-11  Alan Modra  <amodra@gmail.com>
12542         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
12543         -mlongcall and -mpltseq.
12544         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
12545         (RS/6000 and PowerPC Options <-mpltseq>): Document.
12546         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
12547         * config/rs6000/sysv4.opt (mpltseq): New option.
12548         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
12549         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
12550         support is lacking.  Don't allow -mpltseq with -mbss-plt.
12551         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
12552         -mpltseq given for ELFv1.
12553         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
12554         Only use UNSPEC_PLTSEQ for inline PLT calls.
12555         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
12556         use UNSPEC_PLTSEQ for inline PLT calls.
12557         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
12558         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
12559         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
12560         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
12561         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
12562         (pltseq_mtctr_<mode>): Likewise.
12564 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12566         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
12567         Solaris ld.
12568         * configure: Regenerate.
12570 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
12572         PR bootstrap/88714
12573         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
12574         instead of r.
12576 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
12578         * function.c (assign_parm_setup_block): Use the stored
12579         size, not the passed size, when allocating stack-space,
12580         also for a parameter with alignment larger than
12581         MAX_SUPPORTED_STACK_ALIGNMENT.
12583 2019-02-11  Martin Liska  <mliska@suse.cz>
12585         PR ipa/89009
12586         * ipa-cp.c (build_toporder_info): Remove usage of a param.
12587         * ipa-inline.c (inline_small_functions): Likewise.
12588         * ipa-pure-const.c (propagate_pure_const): Likewise.
12589         (propagate_nothrow): Likewise.
12590         * ipa-reference.c (propagate): Likewise.
12591         * ipa-utils.c (struct searchc_env): Remove unused field.
12592         (searchc): Always search across AVAIL_INTERPOSABLE.
12593         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
12594         the only called IPA pure const can properly not propagate
12595         across interposable boundary.
12596         * ipa-utils.h (ipa_reduced_postorder): Remove param.
12598 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
12600         * config/nds32/nds32.md (call_internal, call_value_internal,
12601         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
12603 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
12605         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
12606         typo.
12608 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
12610         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
12611         in comments
12613 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12615         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
12617 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
12619         PR tree-optimization/89268
12620         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
12621         if preds is non-NULL.
12623 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12625         PR lto/89272
12626         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
12627         polymorphic types.
12629 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
12631         * config/nds32/nds32.md (trap): New pattern.
12633 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
12635         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
12636         dwarf span.
12638 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12640         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
12641         to split POST_INC.
12643 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12645         * ipa-visibility.c (localize_node): Also do not localize
12646         LDPR_PREVAILING_DEF_IRONLY_EXP.
12648 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12650         PR lto/87957
12651         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
12652         instead of type_with_linkage.
12654 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12656         PR ipa/88755
12657         * params.def (uninlined-function-insns, uninlined-function-time,
12658         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
12659         bound so we don't get overflows.
12661 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
12663         * config/rs6000/rs6000-string.c (expand_compare_loop,
12664         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
12665         memcmp/strncmp.
12667 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
12669         PR middle-end/89246
12670         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12671         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
12672         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
12674 2019-02-09  Alan Modra  <amodra@gmail.com>
12676         PR target/88343
12677         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
12678         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
12679         setup.
12681 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
12683         PR middle-end/88560
12684         * lra-constraints.c (process_alt_operands): Don't increase reject
12685         for memory when offset memory is required.
12687 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
12689         * config/s390/vector.md: Implement vector copysign.
12691 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
12693         * expr.c (expand_constructor): Correct indentations.
12695 2019-02-08  Richard Biener  <rguenther@suse.de>
12697         PR tree-optimization/89247
12698         * tree-if-conv.c: Include tree-cfgcleanup.h.
12699         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
12700         (tree_if_conversion): Pass through predicate vector.
12701         (pass_if_conversion::execute): Do CFG cleanup and SSA update
12702         inline, see if any if-converted loops we refrece in
12703         LOOP_VECTORIZED calls vanished and fixup.
12704         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
12706 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
12708         * config/s390/constraints.md (jdd): New constraint.
12710 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
12712         PR target/89229
12713         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
12714         upper 16 vector registers without TARGET_AVX512VL.
12715         (*movti_internal): Likewise.
12717 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
12719         PR rtl-optimization/89234
12720         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
12721         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
12722         (copy_reg_eh_region_note_backward): Likewise.
12724 2019-02-08  Richard Biener  <rguenther@suse.de>
12726         PR middle-end/89223
12727         * tree-data-ref.c (initialize_matrix_A): Fail if constant
12728         doesn't fit in HWI.
12729         (analyze_subscript_affine_affine): Handle failure from
12730         initialize_matrix_A.
12732 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
12734         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
12735         cfun everywhere.
12737 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
12739         PR tree-optimization/86637
12740         PR tree-optimization/89235
12741         * tree-vect-loop.c (optimize_mask_stores): Add an
12742         auto_purge_vect_location sentinel to ensure that vect_location is
12743         purged on exit.
12744         * tree-vectorizer.c
12745         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
12746         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
12747         to ensure that vect_location is purged on exit.
12748         (pass_slp_vectorize::execute): Likewise, replacing the manual
12749         reset.
12750         * tree-vectorizer.h (class auto_purge_vect_location): New class.
12752 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12754         * config/aarch64/iterators.md (max_opp): New code_attr.
12755         (USMAX): New code iterator.
12756         * config/aarch64/predicates.md (aarch64_smin): New predicate.
12757         (aarch64_smax): Likewise.
12758         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
12759         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
12760         MINUS (MAX MIN).
12762 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
12764         PR target/89229
12765         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
12766         for TARGET_AVX512VL.
12767         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
12769 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
12771         * config/s390/s390-builtin-types.def: Add new types.
12772         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
12773         (s390_vec_xlw4): Make the memory operand into a const pointer.
12774         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
12775         float.
12776         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
12777         a new vector type with the alignment of the scalar memory operand.
12779 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
12780             Jakub Jelinek  <jakub@redhat.com>
12782         PR bootstrap/88714
12783         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
12784         arm_count_ldrdstrd_insns): New declarations.
12785         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
12786         MINUS.
12787         (valid_operands_ldrd_strd): New function.
12788         (arm_count_ldrdstrd_insns): New function.
12789         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
12790         sets instead of single DImode set and define new insns to match this.
12792 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
12794         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
12795         Make it a C initializer.
12797 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
12799         PR/target 88850
12800         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
12802 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12804         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
12805         Use neon_dot<q> for type.
12806         (neon_<sup>dot_lane<vsi2qi>): Likewise.
12808 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12810         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
12811         Use neon_dot<q> for type.
12812         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
12813         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
12815 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
12817         PR rtl-optimization/89225
12818         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
12819         sizes check.
12821 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12823         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
12824         after restoring registers saved to allocate the frame on Windows.
12826 2019-02-06  Richard Biener  <rguenther@suse.de>
12828         PR tree-optimization/89182
12829         * graphite.h (cached_scalar_evolution_in_region): Declare.
12830         * graphite.c (struct seir_cache_key): New.
12831         (struct sese_scev_hash): Likewise.
12832         (seir_cache): New global.
12833         (cached_scalar_evolution_in_region): New function.
12834         (graphite_transform_loops): Allocate and release seir_cache.
12835         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
12836         cached_scalar_evolution_in_region.
12837         * graphite-scop-detection.c (scop_detection::can_represent_loop):
12838         Simplify.
12839         (scop_detection::graphite_can_represent_expr: Use
12840         cached_scalar_evolution_in_region.
12841         (scop_detection::stmt_simple_for_scop_p): Likewise.
12842         (find_params_in_bb): Likewise.
12843         (gather_bbs::before_dom_children): Likewise.
12844         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
12845         (add_loop_constraints): Likewise.
12847 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
12849         PR middle-end/89210
12850         * fold-const-call.c (fold_const_vec_convert): Pass true as last
12851         operand to new_unary_operation only if both element types are integral
12852         and it isn't a widening conversion.  Return NULL_TREE if
12853         new_unary_operation failed.
12855 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
12857         PR target/88856
12858         * config/s390/s390.md: Remove load and test FP splitter.
12860 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
12862         PR target/89112
12863         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
12864         expand_compare_loop, expand_block_compare_gpr,
12865         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
12866         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
12867         #include "profile-count.h" and "predict.h" for types and functions
12868         needed to work with REG_BR_PROB notes.
12870 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
12872         PR target/89112
12873         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
12874         for the long branch case.
12876 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
12878         PR target/89188
12879         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
12880         can throw, non-call exceptions are enabled and we can't delete
12881         dead exceptions or alter cfg.  Set must_clean if
12882         delete_insn_and_edges returns true, don't set it blindly for calls.
12883         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
12885         PR rtl-optimization/89195
12886         * combine.c (make_extraction): For MEMs, don't extract bytes outside
12887         of the original MEM.
12889 2019-02-05  Martin Liska  <mliska@suse.cz>
12891         PR gcov-profile/89000
12892         * gcov.c (function_summary): Remove argument.
12893         (file_summary): New function.
12894         (print_usage): Replace tabs with spaces.
12895         (generate_results): Use new function file_summary.
12897 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
12899         PR target/89186
12900         * optabs.c (prepare_cmp_insn): Pass x and y to
12901         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
12903 2019-02-05  Richard Biener  <rguenther@suse.de>
12905         PR middle-end/89150
12906         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
12907         (struct bitmap_element): Drop chain_prev so we properly recurse on
12908         the prev member, supporting tree views.
12909         (struct bitmap_head): GTY skip the obstack member.
12911 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
12913         PR c/88698
12914         * doc/extend.texi (Vector Extensions): Add an example of using vector
12915         types together with x86 intrinsics.
12917 2019-02-04  Alan Modra  <amodra@gmail.com>
12919         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
12920         str[] size to 160, and comment.
12922 2019-02-04  Alan Modra  <amodra@gmail.com>
12924         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
12925         (rs6000_pltseq_template): Guard output of TLS markers with
12926         TARGET_TLS_MARKERS.
12927         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
12928         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
12929         to use inline PLT sequences.
12930         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
12931         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
12932         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
12934 2019-02-04  Martin Liska  <mliska@suse.cz>
12936         PR ipa/88985
12937         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
12938         out when ipa_fn_summaries does not contain entry for callee.
12940 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
12942         * config/sparc/sparc.h: Remove superfluous blank lines.
12943         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
12944         (got_register_rtx): ...this.
12945         (sparc_got): Adjust to above renaming.
12946         (sparc_tls_got): Likewise.
12947         (sparc_delegitimize_address): Likewise.
12948         (sparc_output_mi_thunk): Likewise.
12949         (sparc_init_pic_reg): Likewise.
12950         (save_local_or_in_reg_p): Fix test on the GOT register.
12951         (USE_HIDDEN_LINKONCE): Move around.
12952         (get_pc_thunk_name): Likewise.
12953         (gen_load_pcrel_sym): Likewise.
12954         (load_got_register): Likewise.
12956 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
12958         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
12959         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
12961 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12963         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
12964         into consideration.
12966 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12968         * config.gcc (with_nds32_lib, glibc):
12969         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
12970         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
12971         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
12973 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12975         PR target/89071
12976         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
12977         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
12978         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
12979         (*rcpsf2_sse): Ditto.
12980         (*rsqrtsf2_sse): Ditto.
12981         (sse4_1_round<mode<2): Ditto.
12983 2019-02-03  Richard Biener  <rguenther@suse.de>
12985         PR debug/87295
12986         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
12987         orig.
12989 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
12991         PR middle-end/87887
12992         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12993         Punt with warning on aggregate return or argument types.  Ignore
12994         type/mode checking for uniform arguments.
12996 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
12998         * combine.c (try_combine): Do not print "Can't combine" messages unless
12999         printing failed combination attempts.
13001 2019-02-01  Martin Jambor  <mjambor@suse.cz>
13003         PR hsa/87863
13004         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
13005         segment and global segment variables before making them static.
13007 2019-02-01  Martin Jambor  <mjambor@suse.cz>
13009         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
13010         missed optimization dump with dump_enabled_p.
13012 2019-02-01  Richard Biener  <rguenther@suse.de>
13014         PR middle-end/88597
13015         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
13016         the instantiate cache.
13017         (instantiate_scev_binary): Elide second operand procesing
13018         if equal to the first.
13019         * tree-chrec.c (chrec_contains_symbols): Add visited set.
13020         (chrec_contains_undetermined): Likewise.
13021         (tree_contains_chrecs): Likewise.
13023 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
13025         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
13027 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
13029         PR tree-optimization/89143
13030         * wide-int-range.h (wide_int_range_absu): Declare.
13031         * wide-int-range.cc (wide_int_range_absu): New function.
13032         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
13034         PR tree-optimization/88107
13035         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
13036         instead of assertion that eh_region_outermost is non-NULL, if it
13037         is NULL, set *ALL to true and return NULL.
13038         (move_sese_region_to_fn): Adjust caller, if all is set, call
13039         duplicate_eh_regions with NULL region.
13041 2019-02-01  Richard Biener  <rguenth@suse.de>
13043         PR rtl-optimization/88593
13044         * mode-switching.c (optimize_mode_switching): Free dominators before
13045         calling cleanup_cfg.
13047 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
13049         PR tree-optimization/88932
13050         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
13052 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
13054         PR middle-end/89137
13055         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
13056         bogus clang warning.
13058 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13060         PR target/89071
13061         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
13062         alternative to avoid partial SSE register stall for TARGET_AVX.
13063         (truncdfsf2): Ditto.
13064         (sse4_1_round<mode>2): Ditto.
13066 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
13068         PR tree-optimization/89008
13069         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
13070         process anything of the form X * 0.
13072 2019-01-31  Richard Biener  <rguenther@suse.de>
13074         PR tree-optimization/89135
13075         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
13076         with abnormal preds.
13078 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
13080         PR sanitizer/89124
13081         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
13082         always_inline callees into no_sanitize_address callers.
13084 2019-01-31  Richard Biener  <rguenther@suse.de>
13086         PR rtl-optimization/89115
13087         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
13089 2019-01-30  Martin Sebor  <msebor@redhat.com>
13091         PR other/89106
13092         * doc/extend.texi (cast to a union): Correct and expand.
13094 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13096         PR rtl-optimization/87246
13097         * lra-constraints.c (simplify_operand_subreg): Reload memory
13098         in subreg if the address became invalid.
13100 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
13102         PR target/87064
13103         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
13104         Disable for little-endian.
13106 2019-01-30  Richard Biener  <rguenther@suse.de>
13108         PR rtl-optimization/89115
13109         * opts.c (default_options_optimization): Reduce
13110         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
13111         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
13112         to the default.
13114 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13116         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
13117         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
13118         type of vector element when vec_extract is implemented by direct
13119         move.
13121 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
13123         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
13125 2019-01-30  Richard Biener  <rguenther@suse.de>
13127         PR tree-optimization/89111
13128         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
13129         canonicalization to appropriately sized access types.
13131 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
13133         PR c++/89105
13134         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
13135         for arguments to functions that are TU-local and shouldn't be
13136         referenced by assembly.
13138 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
13140         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
13141         after '='.
13143 2019-01-29  Martin Sebor  <msebor@redhat.com>
13145         PR c/88956
13146         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
13148 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
13150         PR c++/66676
13151         PR ipa/89104
13152         * omp-simd-clone.c (simd_clone_clauses_extract)
13153         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
13154         OMP_CLAUSE_ALIGNED_ALIGNMENT.
13156 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
13158         * config.gcc: Force .init_array for ARC.
13160 2019-01-29  Richard Biener  <rguenther@suse.de>
13162         PR debug/87295
13163         * dwarf2out.c (collect_skeleton_dies): New helper.
13164         (copy_decls_for_unworthy_types): Call it.
13165         (build_abbrev_table): Assert we do not try to replace
13166         DW_AT_signature refs with local refs.
13168 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
13170         PR middle-end/89002
13171         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
13172         for lastprivate/linear IV, push gimplify context around gimplify_assign
13173         and, if it needed any temporaries, pop it into a gimple bind around the
13174         sequence.
13176 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13178         * common.opt (-Wattribute-alias): Remove "no-" from name.
13179         Make -Wattribute-alias command line option and
13180         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
13182 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
13184         PR target/89073
13185         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
13186         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
13187         x86 ISA options.
13188         (bmi2): Add missing @opindex.
13189         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
13190         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
13191         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
13192         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
13193         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
13194         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
13195         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
13196         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
13197         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
13198         xsavec, xsaveopt and xsaves options.
13200 2019-01-28  Richard Biener  <rguenther@suse.de>
13202         PR debug/89076
13203         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
13204         support removal.
13206 2019-01-28  Richard Biener  <rguenther@suse.de>
13208         PR tree-optimization/88739
13209         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13210         BIT_FIELD_REFs only are applied to mode-precision operands
13211         when they are integral.
13212         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
13213         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
13214         BIT_FIELD_REFs of non-mode-precision integral operands.
13216 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
13218         PR target/87214
13219         * config/i386/sse.md
13220         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
13221         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
13222         first constants in pairs are multiples of 2.  Formatting fixes.
13223         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
13224         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
13225         first constants in each quadruple are multiples of 4.  Formatting fixes.
13227 2019-01-26  Martin Jambor  <mjambor@suse.cz>
13229         PR ipa/88933
13230         * tree-inline.c: Include tree-cfgcleanup.h.
13231         (delete_unreachable_blocks_update_callgraph): Move...
13232         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
13233         ...here, make externally visible, make second argument bool, adjust
13234         all callers.
13235         * tree-cfgcleanup.c: Include cgraph.h.
13236         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
13237         Declare.
13238         * ipa-prop.c: Include tree-cfgcleanup.h.
13239         (ipcp_transform_function): Call
13240         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
13242 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
13244         PR rtl-optimization/88846
13245         * ira.c (process_set_for_memref_referenced_p): New.
13246         (memref_referenced_p): Add new param.  Use
13247         process_set_for_memref_referenced_p.  Add new switch cases.
13248         (memref_used_between_p): Pass new arg to memref_referenced_p.
13250 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
13252         PR target/88469
13253         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
13254         argument ABI_BREAK.  Set to true if the calculated alignment has
13255         changed in gcc-9.  Check bit-fields for their base type alignment.
13256         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
13257         (aarch64_function_arg_boundary): Likewise.
13258         (aarch64_gimplify_va_arg_expr): Likewise.
13260 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
13262         PR middle-end/89037
13263         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
13264         instead of accessing TREE_INT_CST_ELT directly.
13266 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
13268         * doc/sourcebuild.texi (Environment attributes): Add fenv and
13269         fenv_exceptions description.
13271 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
13273         PR rtl-optimization/87763
13274         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
13275         Allow SUBREG when matching CC_NZmode compare.
13277 2019-01-25  Richard Biener  <rguenther@suse.de>
13279         PR tree-optimization/89049
13280         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13281         Look at the pattern stmt to determine if the stmt is vectorized.
13283 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
13285         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
13286         (pred_mov<mode>): Handle all-register forms using both a new
13287         alternative and a split.
13289 2019-01-25  Richard Biener  <rguenther@suse.de>
13291         PR tree-optimization/86865
13292         * graphite-scop-detection.c (scop_detection::can_represent_loop):
13293         Reject non-do-while loops.
13295 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
13297         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
13298         * config/rs6000/constraints.md (Q constraint): Use REG_P.
13299         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
13300         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13301         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
13302         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13303         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
13304         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
13305         vlogical_operand, gpc_reg_operand, int_reg_operand,
13306         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
13307         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
13308         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
13309         (save_world_operation, restore_world_operation, lmw_operation,
13310         stmw_operation): Use MEM_P and REG_P.
13311         (tie_operand): Use MEM_P.
13312         (vrsave_operation, crsave_operation): Use REG_P.
13313         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
13314         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
13315         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
13316         (call_operand): Use HARD_REGISTER_P.
13317         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
13318         Use CONST_INT_P.
13319         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
13320         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
13321         quad_aligned_load_p, replace_swapped_aligned_store,
13322         recombine_lvx_pattern, replace_swapped_aligned_load,
13323         recombine_stvx_pattern): Use MEM_P.
13324         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
13325         Use MEM_P and SYMBOL_REF_P.
13326         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
13327         (insn_is_swappable_p): Use REG_P and MEM_P.
13328         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
13329         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
13330         Use CONST_INT_P.
13331         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
13332         Use CONST_DOUBLE_P.
13333         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
13334         CONST_WIDE_INT_P.
13335         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
13336         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
13337         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
13338         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
13339         reg_or_subregno:
13340         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13341         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
13342         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
13343         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
13344         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
13345         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
13346         rs6000_split_logical_di): Use CONST_INT_P.
13347         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
13348         REG_P and SYMBOL_REF_P.
13349         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
13350         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
13351         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
13352         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
13353         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
13354         (small_data_operand, print_operand_address): Use CONST_INT_P and
13355         SYMBOL_REF_P.
13356         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
13357         (rs6000_init_hard_regno_mode_ok, direct_move_p):
13358         Use HARD_REGISTER_NUM_P.
13359         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
13360         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
13361         SUBREG_P and SYMBOL_REF_P.
13362         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
13363         and HARD_REGISTER_NUM_P.
13364         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
13365         reg_or_subregno.
13366         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
13367         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
13368         MEM_P and REG_P.
13369         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
13370         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
13371         find_addr_reg): Use REG_P.
13372         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
13373         (rs6000_emit_le_vsx_move): Use SUBREG_P.
13374         (offsettable_ok_by_alignment, constant_pool_expr_p,
13375         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
13376         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
13377         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
13378         rs6000_assemble_integer, create_TOC_reference,
13379         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
13380         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
13381         (rs6000_split_vec_extract_var): Use reg_or_subregno.
13382         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13383         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13384         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13385         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13386         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
13387         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
13388         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
13389         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
13390         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
13391         and cbranch<mode>4): Use CONST_INT_P.
13392         (multiple define_splits): Use REG_P and SUBREG_P.
13393         (define_expands call, call_value): Use MEM_P.
13394         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
13395         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
13396         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
13397         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
13398         and HARD_REGISTER_NUM_P.
13399         (multiple define_splits): Use HARD_REGISTER_NUM_P.
13401 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13403         PR rtl-optimization/88948
13404         * rtl.h (prepare_copy_insn): New prototype.
13405         * gcse.c (prepare_copy_insn): New function, split out from
13406         process_insert_insn.
13407         (process_insert_insn): Use prepare_copy_insn.
13408         * store-motion.c (replace_store_insn): Use prepare_copy_insn
13409         instead of gen_move_insn.
13411 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
13413         PR debug/89006
13414         * config/i386/i386.c (ix86_pic_register_p): Return true for
13415         UNSPEC_SET_GOT too.
13417         PR tree-optimization/88964
13418         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
13419         punt if HONOR_SNANS (chrec).
13421         PR middle-end/89015
13422         * tree-nested.c (convert_nonlocal_reference_stmt,
13423         convert_local_reference_stmt, convert_tramp_reference_stmt,
13424         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
13425         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
13426         or GIMPLE_OMP_TASK.
13428         PR tree-optimization/89027
13429         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
13430         for "omp simd array" variables.
13432 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
13434         PR target/88469
13435         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
13436         force the alignment of m_val.
13438 2019-01-24  Richard Biener  <rguenther@suse.de>
13440         PR lto/87187
13441         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
13442         When in "legacy" debug mode make sure to reset self-origins.
13444 2019-01-24  Martin Liska  <mliska@suse.cz>
13446         PR gcov-profile/88994
13447         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
13448         result will be always smaller or equal to the original.
13449         * gcov.c (mangle_name): Fix else branch where we should
13450         also copy to PTR and shift the pointer.
13452 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
13454         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
13455         * vr-values.c (find_case_label_ranges): Fix a comment typo.
13457 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
13459         * common/config/i386/i386-common.c
13460         (OPTION_MASK_ISA_ENQCMD_SET,
13461         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
13462         (ix86_handle_option): Handle -menqcmd.
13463         * config.gcc (enqcmdintrin.h): New header file.
13464         * config/i386/cpuid.h (bit_ENQCMD): New bit.
13465         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
13466         -menqcmd.
13467         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
13468         function type.
13469         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
13470         __builtin_ia32_enqcmds): New builtins.
13471         * config/i386/i386-c.c (__ENQCMD__): New macro.
13472         * config/i386/i386-option.c (ix86_target_string): Add
13473         -menqcmd.
13474         (ix86_valid_target_attribute_inner_p): Likewise.
13475         * config/i386/i386-expand.c
13476         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
13477         IX86_BUILTIN_ENQCMDS.
13478         * config/i386/i386.h (TARGET_ENQCMD): New.
13479         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
13480         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
13481         (movdir64b_<mode>): Parameterize to enable share expansion code
13482         with ENQCMD in function ix86_expand_builtin.
13483         * config/i386/i386.opt: Add -menqcmd.
13484         * config/i386/immintrin.h: Include enqcmdintrin.h.
13485         * config/i386/enqcmdintrin.h: New intrinsic file.
13486         * doc/invoke.texi: Add -menqcmd.
13488 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
13489             Steve Ellcey <sellcey@marvell.com>
13491         PR target/85711
13492         * recog.c (address_operand): Return false on wrong mode for address.
13493         (constrain_operands): Check for mode with 'p' constraint.
13495 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13497         PR target/88998
13498         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
13499         Disparage MMX alternative.
13500         (sse2_cvtpd2pi): Ditto.
13501         (sse2_cvttpd2pi): Ditto.
13503 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
13505         PR driver/89014
13506         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
13507         use-after-free of the result of
13508         aarch64_get_extension_string_for_isa_flags.
13510 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
13512         PR c/44715
13513         * doc/extend.texi: Document break and continue behavior in
13514         statement expressions.
13516 2019-01-23  Richard Biener  <rguenther@suse.de>
13518         PR tree-optimization/89008
13519         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
13520         not leave another stray operand.
13522 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
13524         * BASE-VER: Bump to 9.0.1.
13526 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
13528         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
13529         thunk that returns by reference, use the type of the return object
13530         of the thunk instead of that of the alias to build the dereference.
13532 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
13534         * config/arc/atomic.md: Add operand to DMB instruction.
13536 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
13538         PR tree-optimization/88964
13539         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
13540         build_zero_cst instead of build_int_cst.  Return false for loop
13541         invariants which honor signed zeros.
13543 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
13545         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
13547 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
13549         PR target/88965
13550         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
13551         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
13552         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
13554         PR middle-end/88968
13555         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
13556         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
13558         PR target/87064
13559         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
13560         Disable for little endian.
13562 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
13564         PR target/88469
13565         * config/arm/arm.c (arm_needs_double_word_align): Check
13566         DECL_BIT_FIELD_TYPE.
13568 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
13569             H.J. Lu  <hongjiu.lu@intel.com>
13571         PR target/88909
13572         * config/i386/i386-builtin.def: Add mask2 to all builtin
13573         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
13574         SPECIAL_ARGS.
13575         * config/i386/i386.c (BDESC): Add mask2 to the definition.
13576         (BDESC_FIRST): Likewise.
13577         (define_builtin): Add an argument for mask2.  Updated to handle
13578         both ix86_isa_flags and ix86_isa_flags2.
13579         (define_builtin_const): Likewise.
13580         (define_builtin_pure): Likewise.
13581         (define_builtin2): Deleted.
13582         (define_builtin_const2): Likewise.
13583         (builtin_description): Add a member, mask2.
13584         (bdesc_*): Add mask2 to builtin initializations.
13585         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
13586         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
13587         support.
13588         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
13590 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
13592         PR target/88954
13593         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
13594         noplt attribute.
13596 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
13598         PR target/88469
13599         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
13600         alignment is dominated by a bitfield with 64-bit aligned base type.
13601         (arm_function_arg): Emit a warning if the alignment has changed since
13602         earlier GCC releases.
13603         (arm_function_arg_boundary): Likewise.
13604         (arm_setup_incoming_varargs): Likewise.
13606 2019-01-22  Richard Biener  <rguenther@suse.de>
13608         PR tree-optimization/88862
13609         * graphite-scop-detection.c
13610         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
13612 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
13614         * doc/extend.tex (AMD GCN Function Attributes): New section.
13615         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
13616         * doc/invoke.texi (AMD GCN Options): New section.
13617         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
13619 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13621         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
13622         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
13624 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
13626         PR tree-optimization/88044
13627         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
13628         is false in the first iteration, but !every_iteration, return false
13629         instead of true with niter->niter zero.
13631         PR rtl-optimization/88904
13632         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
13633         any nonequal registers before processing BB_END (b).
13635         PR target/88905
13636         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
13637         GET_MODE (op0).
13638         (expand_binop_directly, expand_doubleword_clz,
13639         expand_doubleword_popcount, expand_ctz, expand_ffs,
13640         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
13642         PR rtl-optimization/49429
13643         PR target/49454
13644         PR rtl-optimization/86334
13645         PR target/88906
13646         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
13647         addressable from here...
13648         (emit_block_op_via_libcall): ... to here.
13650 2019-01-22  Richard Biener  <rguenther@suse.de>
13652         * tree-vect-loop.c (vect_analyze_loop_operations): Use
13653         auto_vec for cost vector to fix memleak.
13654         (vectorize_fold_left_reduction): Properly gather SLP defs.
13655         (vectorizable_comparison): Do not swap operands to properly
13656         gather SLP defs.
13658 2019-01-22  Alan Modra  <amodra@gmail.com>
13660         PR target/88614
13661         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
13662         stays a reg.  Allow a const_int.
13663         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
13664         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
13665         (IS_NOMARK_TLSGETADDR): Define.
13666         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
13667         (rs6000_output_tlsargs): New function.
13668         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
13669         __tls_get_addr call takes an arg.
13670         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
13671         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
13672         delete split..
13673         (call_value_nonlocal_sysv): ..or here, delete split.
13674         (tls_gdld_nomark): Delete.
13675         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
13676         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
13677         (call_value_nonlocal_sysv): Likewise.
13678         (call_value_nonlocal_sysv_secure): Likewise.
13679         (call_value_nonlocal_aix): Likewise.
13680         (call_value_indirect_aix): Likewise.
13681         (call_value_indirect_elfv2): Likewise.
13682         (call_value_local32, call_value_local64): Disable for no-mark tls.
13683         (call_value_local_aix): Likewise.
13685 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13687         PR target/88938
13688         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
13689         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
13691 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
13693         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
13694         string contents as hash_map keys.
13696 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13698         PR c/88928
13699         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
13700         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
13701         instead of TYPE_ALIGN.
13702         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
13703         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
13704         pointer from TYPE_STUB_DECL.
13706 2019-01-21  Richard Biener  <rguenther@suse.de>
13708         PR tree-optimization/88934
13709         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
13710         at the possibly non-constant operand.
13711         (vect_get_constant_vectors): Adjust.
13713 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
13715         PR target/71659
13716         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
13717         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
13718         instead of _X86INTRIN_H_INCLUDED.
13719         * onfig/i386/clwbintrin.h: Likewise.
13720         * config/i386/pkuintrin.h: Likewise.
13721         * config/i386/prfchwintrin.h: Likewise.
13722         * config/i386/rdseedintrin.h: Likewise.
13723         * config/i386/wbnoinvdintrin.h: Likewise.
13724         * config/i386/xsavecintrin.h: Likewise.
13725         * config/i386/xsavesintrin.h: Likewise.
13726         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
13727         * config/i386/xsaveintrin.h: Likewise.
13728         * config/i386/xsaveoptintrin.h: Likewise.
13729         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
13730         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
13731         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
13732         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
13733         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
13734         * config/i386/immintrin.h: Here.
13736 2019-01-20  Martin Jambor  <mjambor@suse.cz>
13738         PR ipa/87615
13739         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
13740         with aa_walk_budget.
13741         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
13742         aa_walk_budget_p parameter.
13743         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
13744         walk.  Updated all callers.
13745         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
13746         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
13747         unmodified_parm.
13748         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
13749         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
13750         and to unmodified_parm.
13751         (phi_result_unknown_predicate): New parameter fbi, removed parameter
13752         info, updated call to will_be_nonconstant_expr_predicate.
13753         (param_change_prob): New parameter fbi, limit AA walking.
13754         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
13755         calls to various above functions.
13756         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
13757         parameter.  Use it to limit AA walking.
13758         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
13759         fbi, limit AA walk.
13760         (detect_type_change): New parameter fbi, pass it on to
13761         detect_type_change_from_memory_writes.
13762         (detect_type_change_ssa): Likewise.
13763         (aa_overwalked): Removed.
13764         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
13765         accordingly, adjust to the neew AA limiting scheme.
13766         (parm_ref_data_preserved_p): Likewise.
13767         (ipa_compute_jump_functions_for_edge): Adjust call to
13768         get_dynamic_type.
13769         (ipa_analyze_call_uses): Likewise.
13770         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
13771         (ipa_analyze_node): Initialize aa_walk_budget.
13772         (ipcp_transform_function): Likewise.
13773         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
13774         to get_dynamic_type.
13776 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
13778         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
13779         outside of #if CHECKING_P code.
13781 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
13783         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
13784         New function, split out from...
13785         (loop_versioning::analyze_stride): ...here.
13786         (loop_versioning::find_per_loop_multiplication): Use gassign.
13787         (loop_versioning::analyze_term_using_scevs): Return a success code.
13788         (loop_versioning::analyze_arbitrary_term): New function.
13789         (loop_versioning::analyze_address_fragment): Use
13790         analyze_arbitrary_term if all else fails.
13792 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
13794         PR target/88892
13795         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
13796         operands.
13798 2019-01-18  Richard Biener  <rguenther@suse.de>
13800         PR tree-optimization/88903
13801         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
13802         scalar stmts a SLP shift amount is composed of when detecting
13803         shifts by scalars.
13805 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
13807         PR target/88799
13808         * config/arm/arm-cpus.in (mp): New feature.
13809         (sec): New feature.
13810         (fgroup ARMv7ve): Add mp and sec features.
13811         (arch armv7-a): Add options to allow mp and sec extensions.
13812         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
13813         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
13814         extenstions to the base architecture.
13815         (cpu cortex-a8): Add sec extension to the base architecture.
13816         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
13817         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
13818         variants down to the base v7-a varaint.
13819         * config/arm/t-multilib (v7_a_arch_variants): New variable.
13820         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
13821         of permitted extensions for -march=armv7-a and for
13822         -mcpu=generic-armv7-a.
13824 2019-01-18  Martin Liska  <mliska@suse.cz>
13826         * params.def: Fix comment.
13827         * tree-profile.c (gimple_init_gcov_profiler): Bump function
13828         name.
13829         (gimple_gen_ic_func_profiler): Likewise.
13831 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13833         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
13834         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
13835         and put in error checks for stack protector guard options.
13836         (aarch64_stack_protect_guard): New.
13837         (TARGET_STACK_PROTECT_GUARD): Define.
13838         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
13839         (reg_stack_protect_address<mode>): New.
13840         (stack_protect_set): Adjust for SSP_GLOBAL.
13841         (stack_protect_test): Likewise.
13842         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
13843         (-mstack-protector-guard): Likewise.
13844         (-mstack-protector-guard-offset): Likewise.
13846 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
13848         PR tree-optimization/86214
13849         * tree-inline.h (struct copy_body_data): Add
13850         add_clobbers_to_eh_landing_pads member.
13851         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
13852         (copy_edges_for_bb): Call it if EH edge destination is <
13853         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
13854         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
13855         if flag_stack_reuse != SR_NONE and clear it afterwards.
13857 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
13859         PR target/85596
13860         * doc/install.texi (with-multilib-list): Document for aarch64.
13862 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
13864         PR target/88734
13865         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
13866         (("..."))) with ("...").
13868 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13870         * doc/extend.texi (Built-in Functions for Memory Model Aware
13871         Atomic Operations): Document atomic fetch and nand.
13873 2019-01-18  Martin Liska  <mliska@suse.cz>
13874             Richard Biener  <rguenther@suse.de>
13876         PR middle-end/88587
13877         * cgraph.h (create_version_clone_with_body): Add new argument
13878         with attributes.
13879         * cgraphclones.c (cgraph_node::create_version_clone): Add
13880         DECL_ATTRIBUTES to a newly created decl.  And call
13881         valid_attribute_p so that proper cl_target_optimization_node
13882         is set for the newly created declaration.
13883         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
13884         for declaration.
13885         (expand_target_clones): Do not call valid_attribute_p, it must
13886         be already done.
13887         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
13888         vector types.
13890 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
13892         PR target/88734
13893         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
13894         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
13895         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
13897 2019-01-17  Martin Sebor  <msebor@redhat.com>
13899         PR middle-end/88273
13900         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
13901         Handle anti-ranges the same as no range at all.
13903 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
13905         * config/aarch64/aarch64.c (cgraph.h): New include.
13906         (intl.h): New include.
13907         (supported_simd_type): New function.
13908         (currently_supported_simd_type): Ditto.
13909         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
13910         (aarch64_simd_clone_adjust): Ditto.
13911         (aarch64_simd_clone_usable): Ditto.
13912         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
13913         (TARGET_SIMD_CLONE_ADJUST): Ditto.
13914         (TARGET_SIMD_CLONE_USABLE): Ditto.
13915         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
13916         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
13917         call.
13919 2019-01-17  Martin Sebor  <msebor@redhat.com>
13921         PR tree-optimization/88800
13922         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
13923         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
13924         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
13925         redundant argument.  Add new argument and issue diagnostics under
13926         its control.  Detect out-of-bounds access even with warnings
13927         disabled.
13928         (check_bounds_or_overlap): Change return type.  Add argument.
13929         (wrestrict_dom_walker::check_call): Adjust.
13930         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
13931         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
13932         check_bounds_or_overlap's return value.
13933         (handle_builtin_stxncpy): Same.
13934         (handle_builtin_strcat): Same.
13936 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
13937             Kwok Cheung Yeung  <kcy@codesourcery.com>
13938             Julian Brown  <julian@codesourcery.com>
13939             Tom de Vries  <tom@codesourcery.com>
13941         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
13943 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
13945         * doc/sourcebuild.texi: Document dg-require-effective-target
13946         llvm_binutils and offload_gcn.
13948 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
13949             Kwok Cheung Yeung  <kcy@codesourcery.com>
13950             Julian Brown  <julian@codesourcery.com>
13951             Tom de Vries  <tom@codesourcery.com>
13953         * doc/sourcebuild.texi: Document dg-required-effective-target
13954         exceptions.
13956 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
13957             Kwok Cheung Yeung  <kcy@codesourcery.com>
13958             Julian Brown  <julian@codesourcery.com>
13959             Tom de Vries  <tom@codesourcery.com>
13960             Jan Hubicka  <hubicka@ucw.cz>
13961             Martin Jambor  <mjambor@suse.cz>
13963         * config.gcc: Add amdgcn*-*-amdhsa configuration.
13964         * configure.ac: Check for dlopen.
13965         * configure: Regenerate.
13967 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
13968             Kwok Cheung Yeung  <kcy@codesourcery.com>
13969             Julian Brown  <julian@codesourcery.com>
13970             Tom de Vries  <tom@codesourcery.com>
13971             Jan Hubicka  <hubicka@ucw.cz>
13972             Martin Jambor  <mjambor@suse.cz>
13974         * common/config/gcn/gcn-common.c: New file.
13975         * config/gcn/driver-gcn.c: New file.
13976         * config/gcn/gcn-builtins.def: New file.
13977         * config/gcn/gcn-hsa.h: New file.
13978         * config/gcn/gcn-modes.def: New file.
13979         * config/gcn/gcn-opts.h: New file.
13980         * config/gcn/gcn-passes.def: New file.
13981         * config/gcn/gcn-protos.h: New file.
13982         * config/gcn/gcn-run.c: New file.
13983         * config/gcn/gcn-tree.c: New file.
13984         * config/gcn/gcn.c: New file.
13985         * config/gcn/gcn.h: New file.
13986         * config/gcn/gcn.opt: New file.
13987         * config/gcn/t-gcn-hsa: New file.
13989 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
13990             Kwok Cheung Yeung  <kcy@codesourcery.com>
13991             Julian Brown  <julian@codesourcery.com>
13992             Tom de Vries  <tom@codesourcery.com>
13993             Jan Hubicka  <hubicka@ucw.cz>
13994             Martin Jambor  <mjambor@suse.cz>
13996         * config/gcn/constraints.md: New file.
13997         * config/gcn/gcn-valu.md: New file.
13998         * config/gcn/gcn.md: New file.
13999         * config/gcn/predicates.md: New file.
14001 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14003         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
14004         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
14005         (stmt_uses_0_or_null_in_undefined_way): Likewise.
14006         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
14008 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
14010         PR target/88851
14011         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
14012         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
14013         it and document registers.
14015 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14017         * config/aarch64/aarch64.c (ares_tunings): Define.
14018         * config/aarch64/aarch64-cores.def (ares): Use the above.
14020 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14022         PR target/88794
14023         Revert:
14024         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
14026         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
14027         (_mm512_fixupimm_round_pd): Update parameters and builtin.
14028         (_mm512_maskz_fixupimm_round_pd): Ditto.
14029         (_mm512_fixupimm_round_ps): Ditto.
14030         (_mm512_maskz_fixupimm_round_ps): Ditto.
14031         (_mm_fixupimm_round_sd): Ditto.
14032         (_mm_maskz_fixupimm_round_sd): Ditto.
14033         (_mm_fixupimm_round_ss): Ditto.
14034         (_mm_maskz_fixupimm_round_ss): Ditto.
14035         (_mm512_fixupimm_pd): Ditto.
14036         (_mm512_maskz_fixupimm_pd): Ditto.
14037         (_mm512_fixupimm_ps): Ditto.
14038         (_mm512_maskz_fixupimm_ps): Ditto.
14039         (_mm_fixupimm_sd): Ditto.
14040         (_mm_maskz_fixupimm_sd): Ditto.
14041         (_mm_fixupimm_ss): Ditto.
14042         (_mm_maskz_fixupimm_ss): Ditto.
14043         (_mm512_mask_fixupimm_round_pd): Update builtin.
14044         (_mm512_mask_fixupimm_round_ps): Ditto.
14045         (_mm_mask_fixupimm_round_sd): Ditto.
14046         (_mm_mask_fixupimm_round_ss): Ditto.
14047         (_mm512_mask_fixupimm_pd): Ditto.
14048         (_mm512_mask_fixupimm_ps): Ditto.
14049         (_mm_mask_fixupimm_sd): Ditto.
14050         (_mm_mask_fixupimm_ss): Ditto.
14051         * config/i386/avx512vlintrin.h:
14052         (_mm256_fixupimm_pd): Update parameters and builtin.
14053         (_mm256_maskz_fixupimm_pd): Ditto.
14054         (_mm256_fixupimm_ps): Ditto.
14055         (_mm256_maskz_fixupimm_ps): Ditto.
14056         (_mm_fixupimm_pd): Ditto.
14057         (_mm_maskz_fixupimm_pd): Ditto.
14058         (_mm_fixupimm_ps): Ditto.
14059         (_mm_maskz_fixupimm_ps): Ditto.
14060         (_mm256_mask_fixupimm_pd): Update builtin.
14061         (_mm256_mask_fixupimm_ps): Ditto.
14062         (_mm_mask_fixupimm_pd): Ditto.
14063         (_mm_mask_fixupimm_ps): Ditto.
14064         * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
14065         * config/i386/i386-builtin.def: Update builtin definitions.
14066         * config/i386/i386.c: Handle new builtin types and remove useless ones.
14067         * config/i386/sse.md: Update VFIXUPIMM* patterns.
14068         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14069         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14070         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
14071         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14072         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14073         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
14074         * config/i386/subst.md:
14075         (round_saeonly_sd_mask_operand4): Add new subst_attr.
14076         (round_saeonly_sd_mask_op4): Ditto.
14077         (round_saeonly_expand_operand5): Ditto.
14078         (round_saeonly_expand): Update.
14080 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14082         PR target/88794
14083         Revert:
14084         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
14086         * config/i386/sse.md: Combine VFIXUPIMM* patterns
14087         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14088         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14089         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
14090         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14091         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14092         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
14094 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14096         PR target/88794
14097         Revert:
14098         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
14100         PR target/88489
14101         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
14102         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
14103         instead of UNSPEC_FIXUPIMM.
14105 2019-01-17  Richard Biener  <rguenther@suse.de>
14107         PR lto/86736
14108         * dwarf2out.c (want_pubnames): Never generate pubnames sections
14109         and friends for the LTO part of debug info.
14111 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
14113         PR tree-optimization/86214
14114         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
14115         if x == y.
14117         PR rtl-optimization/88870
14118         * dce.c (deletable_insn_p): Never delete const/pure calls that can
14119         throw if we can't alter the cfg or delete dead exceptions.
14120         (mark_insn): Don't call find_call_stack_args for such calls.
14122 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
14124         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
14125         prototypes for vec_st.
14126         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
14127         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
14128         mainly on signed/unsigned long long and double.
14130 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
14132         PR target/88861
14133         * combine.c (delete_noop_moves): Convert to "bool" return,
14134         returning true if any edges are eliminated.
14135         (combine_instructions): Also return true if delete_noop_moves
14136         returns true.
14138 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
14140         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
14141         correct max nunits for endian swap.
14142         (aarch64_expand_fcmla_builtin): Correct subreg code.
14143         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14144         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
14145         lane endianness.
14147 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14149         * config/alpha/alpha.c (alpha_gimplify_va_arg):
14150         Handle split indirect COMPLEX_TYPE arguments.
14152 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
14154         PR target/86891
14155         * config/aarch64/aarch64-modes.def: Add comment about how the carry
14156         bit is set by add and compare.
14157         (CC_ADC): New CC_MODE.
14158         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
14159         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
14160         comparison.  Add detection for CC_ADCmode.
14161         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
14162         CC_ADCmode.
14163         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
14164         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
14165         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
14166         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
14167         to eliminate the need for zero-extending the operands.
14168         (add<mode>3_compareC_imm): Delete.  Merge into ...
14169         (add<mode>3_compareC): ... this.  Restructure the comparison to
14170         eliminate the need for zero-extending the operands.
14171         (add<mode>3_carryin): Use LTU for the overflow detection.
14172         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
14173         Reexpress comparison for overflow.
14174         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
14175         (add<mode>3_carryinC): Likewise.
14176         (add<mode>3_carryinV): Use LTU for carry between partials.
14177         * config/aarch64/predicates.md (aarch64_carry_operation): Update
14178         handling of CC_Cmode and add CC_ADCmode.
14179         (aarch64_borrow_operation): Likewise.
14181 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
14183         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
14184         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
14185         * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
14186         neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
14188 2019-01-16  Martin Liska  <mliska@suse.cz>
14190         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
14191         for GCC driver.
14192         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
14193         a new argument.
14194         * gcc.c (add_sysrooted_hdrs_prefix): New function.
14195         (path_prefix_reset): Move up in the source file.
14196         (find_fortran_preinclude_file): Make complex search for the
14197         fortran header files.
14199 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
14201         * godump.c (go_output_typedef): When outputting a typedef, refer
14202         to the underlying type by its name and not its structure.
14204 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
14206         PR c++/88795
14207         * tree.c (build_function_type): Assert that arg_types is not
14208         error_mark_node.
14210 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14212         PR inline-asm/52813
14213         * doc/extend.texi: Document that listing the stack pointer in the
14214         clobber list of an asm is a deprecated feature.
14215         * common.opt (Wdeprecated): Moved from c-family/c.opt.
14216         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
14217         warning instead of an error for clobbers of the stack pointer.
14218         Add a note explaining why.
14220 2019-01-15  Richard Biener  <rguenther@suse.de>
14222         PR debug/88046
14223         * dwarf2out.c (gen_member_die): Do not generate inheritance
14224         DIEs late.
14226 2019-01-15  Richard Biener  <rguenther@suse.de>
14228         PR tree-optimization/88855
14229         * tree-if-conv.c (combine_blocks): Collect
14230         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
14232 2019-01-15  Tom de Vries  <tdevries@suse.de>
14234         PR target/80547
14235         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
14236         lhs == NULL_TREE for gang-level reduction.
14238 2019-01-15  Richard Biener  <rguenther@suse.de>
14239             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14241         PR ipa/88788
14242         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
14243         return true if SSA_NAME is already marked in visited bitmap.
14244         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
14246 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
14248         PR tree-optimization/88775
14249         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
14250         equal == 0 equality pointer comparisons some more if compared in
14251         integral types and either one points to an automatic var and the
14252         other to a global, or we can prove at least one points to the middle
14253         or both point to start or both point to end.
14255 2019-01-14  Andi Kleen  <ak@linux.intel.com>
14257         * Makefile.in: Lower autofdo sampling rate by 10x.
14258         * Makefile.tpl: Dito.
14260 2019-01-14  Tom Honermann  <tom@honermann.net>
14262         * defaults.h: Define CHAR8_TYPE.
14264 2019-01-14  Martin Sebor  <msebor@redhat.com>
14266         PR target/88638
14267         * doc/extend.texi (Darwin Format Checks): Clarify.
14269 2019-01-14  Richard Biener  <rguenther@suse.de>
14271         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
14272         whether we are in (simplify ...) or (match ...) context.
14274 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
14276         PR rtl-optimization/88796
14277         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
14278         * cfgexpand.c (stack_protect_prologue): Initialize
14279         crtl->stack_protect_guard_decl.
14280         * function.c (stack_protect_epilogue): Use it instead of calling
14281         targetm.stack_protect_guard again.
14282         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
14283         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
14284         crtl->stack_protect_guard_decl.
14285         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
14286         on the returned MEM_EXPR.
14288 2019-01-12  Tom de Vries  <tdevries@suse.de>
14290         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
14291         vector length using -fopenacc-dim.
14293 2019-01-12  Tom de Vries  <tdevries@suse.de>
14295         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
14296         lengths into account.
14298 2019-01-12  Svante Signell  <svante.signell@gmail.com>
14300         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
14301         (TARGET_CAN_SPLIT_STACK): Define.
14302         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
14304 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
14306         * params.def (inline-unit-growth): Set to 40.
14308 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
14310         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
14312 2019-01-12  Tom de Vries  <tdevries@suse.de>
14314         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
14315         region calling vector-partitionable routine, set default_vector_length
14316         to WARP_SIZE.
14318 2019-01-12  Tom de Vries  <tdevries@suse.de>
14320         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
14321         variable default_vector_length.
14323 2019-01-12  Tom de Vries  <tdevries@suse.de>
14325         PR middle-end/88703
14326         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
14327         from oacc_default_dims, as oacc_validate_dims would do it, and apply
14328         dimensions limits.
14330 2019-01-12  Tom de Vries  <tdevries@suse.de>
14332         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
14333         (nvptx_goacc_validate_dims): Add used parameter.
14334         * doc/tm.texi: Regenerate.
14335         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
14336         argument to call to targetm.goacc.validate_dims.
14337         (default_goacc_validate_dims): Add used
14338         parameter.
14339         * target.def (validate_dims): Add used parameter in DEFHOOK.
14340         * targhooks.h (default_goacc_validate_dims): Add used parameter.
14342 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14344         PR middle-end/85956
14345         PR lto/88733
14346         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
14347         field.
14348         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
14349         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
14350         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
14351         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
14353 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
14355         PR rtl-optimization/87305
14356         * lra-assigns.c
14357         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
14358         for little endian pseudos used as paradoxical subreg.
14360 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14362         PR tree-optimization/88693
14363         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
14364         for STRING_CSTs that don't contain any NUL characters in the first
14365         TREE_STRING_LENGTH bytes.
14367 2019-01-11  Alan Modra  <amodra@gmail.com>
14369         PR 88777
14370         PR 88614
14371         * genattrtab.c (min_fn): Don't translate values.
14372         (min_attr_value): Return INT_MAX when the value can't be calculated.
14373         Return minimum among any values that can be calculated.
14374         (max_attr_value): Adjust.
14376 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14378         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
14380 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
14382         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14383         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
14384         (aarch64_return_call_with_max_clobbers): New function.
14385         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
14386         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
14387         argument.
14388         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
14389         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
14390         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
14391         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
14392         * cselib.c (cselib_process_insn): Add argument to
14393         targetm.hard_regno_call_part_clobbered call.
14394         * ira-conflicts.c (ira_build_conflicts): Ditto.
14395         * ira-costs.c (ira_tune_allocno_costs): Ditto.
14396         * lra-constraints.c (inherit_reload_reg): Ditto.
14397         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
14398         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
14399         argument.  Call targetm.return_call_with_max_clobbers.
14400         Add argument to targetm.hard_regno_call_part_clobbered call.
14401         (calls_have_same_clobbers_p): New function.
14402         (process_bb_lives): Add call_insn and last_call_insn variables.
14403         Pass call_insn to check_pseudos_live_through_calls.
14404         Modify if stmt to check targetm.return_call_with_max_clobbers.
14405         Update setting of flush variable.
14406         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
14407         to false.
14408         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
14409         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
14410         targetm.hard_regno_call_part_clobbered call.
14411         * reginfo.c (choose_hard_reg_mode): Ditto.
14412         * regrename.c (check_new_reg_p): Ditto.
14413         * reload.c (find_equiv_reg): Ditto.
14414         * reload1.c (emit_reload_insns): Ditto.
14415         * sched-deps.c (deps_analyze_insn): Ditto.
14416         * sel-sched.c (init_regs_for_mode): Ditto.
14417         (mark_unavailable_hard_regs): Ditto.
14418         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
14419         * target.def (hard_regno_call_part_clobbered): Add insn argument.
14420         (return_call_with_max_clobbers): New target function.
14421         * doc/tm.texi: Regenerate.
14422         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
14423         * hooks.c (hook_bool_uint_mode_false): Change to
14424         hook_bool_insn_uint_mode_false.
14425         * hooks.h (hook_bool_uint_mode_false): Ditto.
14427 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
14429         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14430         (aarch64_remove_extra_call_preserved_regs): New function.
14431         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
14432         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
14433         * doc/tm.texi: Regenerate.
14434         * final.c (get_call_reg_set_usage): Call new hook.
14435         * target.def (remove_extra_call_preserved_regs): New hook.
14436         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
14437         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
14439 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14441         PR bootstrap/88714
14442         * passes.c (finish_optimization_passes): Call print_combine_total_stats
14443         inside of pass_combine_1 dump rather than pass_profile_1.
14445 2019-01-11  Tom de Vries  <tdevries@suse.de>
14447         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
14448         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
14449         (PTX_NUM_PER_WORKER_BARRIERS): Define.
14450         (nvptx_apply_dim_limits): Prevent vector_length 64 and
14451         num_workers 16.
14453 2019-01-11  Tom de Vries  <tdevries@suse.de>
14455         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
14457 2019-01-11  Jan Beulich  <jbeulich@suse.com>
14459         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
14460         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
14461         sse2_cvtsi2sd): Add {l}.
14462         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
14463         syntax.
14465 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
14467         PR target/88785
14468         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
14469         define_expand.
14470         (*float<floatunssuffix>v2div2sf2): New define_insn.
14471         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
14472         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
14473         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
14474         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
14475         match_operands with "const0_operand" "C".
14477 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
14479         * config/aarch64/aarch64-builtins.c
14480         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
14481         (aarch64_init_simd_builtins): ...Here
14483 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
14485         PR rtl-optimization/87305
14486         * lra-assigns.c
14487         (setup_live_pseudos_and_spill_after_risky_transforms): Check
14488         allocation for big endian pseudos used as paradoxical subregs and
14489         spill them if it is wrong.
14490         * lra-constraints.c (lra_constraints): Add a comment.
14492 2019-01-10  Richard Biener  <rguenther@suse.de>
14494         PR tree-optimization/88792
14495         * tree-ssa-pre.c (get_representative_for): Do not return a
14496         value-number here.
14498 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
14500         PR middle-end/84877
14501         PR bootstrap/88450
14502         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
14503         (assign_parm_setup_block): Do the argument slot realignment here
14504         instead.
14506 2019-01-10  Stefan Agner  <stefan@agner.ch>
14508         PR target/88648
14509         * config/arm/arm.c (arm_option_override_internal): Force
14510         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
14512 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
14514         PR c/88568
14515         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
14516         DECL_EXTERNAL.
14518 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
14520         * config/arm/arm-builtins.c
14521         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
14522         (MAC_LANE_PAIR_QUALIFIERS): New.
14523         (arm_expand_builtin_args): Use it.
14524         (arm_expand_builtin_1): Likewise.
14525         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
14526         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
14527         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
14528         * config/arm/arm_neon.h:
14529         (vcadd_rot90_f16): New.
14530         (vcaddq_rot90_f16): New.
14531         (vcadd_rot270_f16): New.
14532         (vcaddq_rot270_f16): New.
14533         (vcmla_f16): New.
14534         (vcmlaq_f16): New.
14535         (vcmla_lane_f16): New.
14536         (vcmla_laneq_f16): New.
14537         (vcmlaq_lane_f16): New.
14538         (vcmlaq_laneq_f16): New.
14539         (vcmla_rot90_f16): New.
14540         (vcmlaq_rot90_f16): New.
14541         (vcmla_rot90_lane_f16): New.
14542         (vcmla_rot90_laneq_f16): New.
14543         (vcmlaq_rot90_lane_f16): New.
14544         (vcmlaq_rot90_laneq_f16): New.
14545         (vcmla_rot180_f16): New.
14546         (vcmlaq_rot180_f16): New.
14547         (vcmla_rot180_lane_f16): New.
14548         (vcmla_rot180_laneq_f16): New.
14549         (vcmlaq_rot180_lane_f16): New.
14550         (vcmlaq_rot180_laneq_f16): New.
14551         (vcmla_rot270_f16): New.
14552         (vcmlaq_rot270_f16): New.
14553         (vcmla_rot270_lane_f16): New.
14554         (vcmla_rot270_laneq_f16): New.
14555         (vcmlaq_rot270_lane_f16): New.
14556         (vcmlaq_rot270_laneq_f16): New.
14557         (vcadd_rot90_f32): New.
14558         (vcaddq_rot90_f32): New.
14559         (vcadd_rot270_f32): New.
14560         (vcaddq_rot270_f32): New.
14561         (vcmla_f32): New.
14562         (vcmlaq_f32): New.
14563         (vcmla_lane_f32): New.
14564         (vcmla_laneq_f32): New.
14565         (vcmlaq_lane_f32): New.
14566         (vcmlaq_laneq_f32): New.
14567         (vcmla_rot90_f32): New.
14568         (vcmlaq_rot90_f32): New.
14569         (vcmla_rot90_lane_f32): New.
14570         (vcmla_rot90_laneq_f32): New.
14571         (vcmlaq_rot90_lane_f32): New.
14572         (vcmlaq_rot90_laneq_f32): New.
14573         (vcmla_rot180_f32): New.
14574         (vcmlaq_rot180_f32): New.
14575         (vcmla_rot180_lane_f32): New.
14576         (vcmla_rot180_laneq_f32): New.
14577         (vcmlaq_rot180_lane_f32): New.
14578         (vcmlaq_rot180_laneq_f32): New.
14579         (vcmla_rot270_f32): New.
14580         (vcmlaq_rot270_f32): New.
14581         (vcmla_rot270_lane_f32): New.
14582         (vcmla_rot270_laneq_f32): New.
14583         (vcmlaq_rot270_lane_f32): New.
14584         (vcmlaq_rot270_laneq_f32): New.
14585         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
14586         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
14587         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
14588         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
14589         vcmlaq_lane270): New.
14590         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
14591         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
14592         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
14593         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
14594         (arm_option_reconfigure_globals): Use them.
14595         * config/arm/iterators.md (VDF, VQ_HSF): New.
14596         (VCADD, VCMLA): New.
14597         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
14598         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
14599         New.
14600         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
14601         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
14603 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
14605         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14606         Add qualifier_lane_pair_index.
14607         (emit-rtl.h): Include.
14608         (TYPES_QUADOP_LANE_PAIR): New.
14609         (aarch64_simd_expand_args): Use it.
14610         (aarch64_simd_expand_builtin): Likewise.
14611         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
14612         New.
14613         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
14614         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
14615         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
14616         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
14617         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
14618         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
14619         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
14620         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
14621         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
14622         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
14623         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
14624         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
14625         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
14626         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14627         Add __ARM_FEATURE_COMPLEX.
14628         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
14629         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
14630         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
14631         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
14632         fcmlaq_lane270): New.
14633         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14634         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
14635         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
14636         * config/aarch64/arm_neon.h:
14637         (vcadd_rot90_f16): New.
14638         (vcaddq_rot90_f16): New.
14639         (vcadd_rot270_f16): New.
14640         (vcaddq_rot270_f16): New.
14641         (vcmla_f16): New.
14642         (vcmlaq_f16): New.
14643         (vcmla_lane_f16): New.
14644         (vcmla_laneq_f16): New.
14645         (vcmlaq_lane_f16): New.
14646         (vcmlaq_rot90_lane_f16): New.
14647         (vcmla_rot90_laneq_f16): New.
14648         (vcmla_rot90_lane_f16): New.
14649         (vcmlaq_rot90_f16): New.
14650         (vcmla_rot90_f16): New.
14651         (vcmlaq_laneq_f16): New.
14652         (vcmla_rot180_laneq_f16): New.
14653         (vcmla_rot180_lane_f16): New.
14654         (vcmlaq_rot180_f16): New.
14655         (vcmla_rot180_f16): New.
14656         (vcmlaq_rot90_laneq_f16): New.
14657         (vcmlaq_rot270_laneq_f16): New.
14658         (vcmlaq_rot270_lane_f16): New.
14659         (vcmla_rot270_laneq_f16): New.
14660         (vcmlaq_rot270_f16): New.
14661         (vcmla_rot270_f16): New.
14662         (vcmlaq_rot180_laneq_f16): New.
14663         (vcmlaq_rot180_lane_f16): New.
14664         (vcmla_rot270_lane_f16): New.
14665         (vcadd_rot90_f32): New.
14666         (vcaddq_rot90_f32): New.
14667         (vcaddq_rot90_f64): New.
14668         (vcadd_rot270_f32): New.
14669         (vcaddq_rot270_f32): New.
14670         (vcaddq_rot270_f64): New.
14671         (vcmla_f32): New.
14672         (vcmlaq_f32): New.
14673         (vcmlaq_f64): New.
14674         (vcmla_lane_f32): New.
14675         (vcmla_laneq_f32): New.
14676         (vcmlaq_lane_f32): New.
14677         (vcmlaq_laneq_f32): New.
14678         (vcmla_rot90_f32): New.
14679         (vcmlaq_rot90_f32): New.
14680         (vcmlaq_rot90_f64): New.
14681         (vcmla_rot90_lane_f32): New.
14682         (vcmla_rot90_laneq_f32): New.
14683         (vcmlaq_rot90_lane_f32): New.
14684         (vcmlaq_rot90_laneq_f32): New.
14685         (vcmla_rot180_f32): New.
14686         (vcmlaq_rot180_f32): New.
14687         (vcmlaq_rot180_f64): New.
14688         (vcmla_rot180_lane_f32): New.
14689         (vcmla_rot180_laneq_f32): New.
14690         (vcmlaq_rot180_lane_f32): New.
14691         (vcmlaq_rot180_laneq_f32): New.
14692         (vcmla_rot270_f32): New.
14693         (vcmlaq_rot270_f32): New.
14694         (vcmlaq_rot270_f64): New.
14695         (vcmla_rot270_lane_f32): New.
14696         (vcmla_rot270_laneq_f32): New.
14697         (vcmlaq_rot270_lane_f32): New.
14698         (vcmlaq_rot270_laneq_f32): New.
14699         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
14700         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
14701         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
14702         (FCADD, FCMLA): New.
14703         (rot): New.
14704         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
14706 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
14708         PR other/16615
14710         * config/pa/pa.c: Change "can not" to "cannot".
14711         * gimple-ssa-evrp-analyze.c: Likewise.
14712         * ipa-icf.c: Likewise.
14713         * ipa-polymorphic-call.c: Likewise.
14714         * ipa-pure-const.c: Likewise.
14715         * lra-constraints.c: Likewise.
14716         * lra-remat.c: Likewise.
14717         * reload1.c: Likewise.
14718         * reorg.c: Likewise.
14719         * tree-ssa-uninit.c: Likewise.
14721 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
14723         PR other/16615
14725         * Makefile.in: Mechanically replace "can not" with "cannot".
14726         * alias.c: Likewise.
14727         * builtins.c: Likewise.
14728         * calls.c: Likewise.
14729         * cgraph.c: Likewise.
14730         * cgraph.h: Likewise.
14731         * cgraphclones.c: Likewise.
14732         * cgraphunit.c: Likewise.
14733         * combine-stack-adj.c: Likewise.
14734         * combine.c: Likewise.
14735         * common/config/i386/i386-common.c: Likewise.
14736         * config/aarch64/aarch64.c: Likewise.
14737         * config/alpha/sync.md: Likewise.
14738         * config/arc/arc.c: Likewise.
14739         * config/arc/predicates.md: Likewise.
14740         * config/arm/arm-c.c: Likewise.
14741         * config/arm/arm.c: Likewise.
14742         * config/arm/arm.h: Likewise.
14743         * config/arm/arm.md: Likewise.
14744         * config/arm/cortex-r4f.md: Likewise.
14745         * config/csky/csky.c: Likewise.
14746         * config/csky/csky.h: Likewise.
14747         * config/darwin-f.c: Likewise.
14748         * config/epiphany/epiphany.md: Likewise.
14749         * config/i386/i386.c: Likewise.
14750         * config/i386/sol2.h: Likewise.
14751         * config/m68k/m68k.c: Likewise.
14752         * config/mcore/mcore.h: Likewise.
14753         * config/microblaze/microblaze.md: Likewise.
14754         * config/mips/20kc.md: Likewise.
14755         * config/mips/sb1.md: Likewise.
14756         * config/nds32/nds32.c: Likewise.
14757         * config/nds32/predicates.md: Likewise.
14758         * config/pa/pa.c: Likewise.
14759         * config/rs6000/e300c2c3.md: Likewise.
14760         * config/rs6000/rs6000.c: Likewise.
14761         * config/s390/s390.h: Likewise.
14762         * config/sh/sh.c: Likewise.
14763         * config/sh/sh.md: Likewise.
14764         * config/spu/vmx2spu.h: Likewise.
14765         * cprop.c: Likewise.
14766         * dbxout.c: Likewise.
14767         * df-scan.c: Likewise.
14768         * doc/cfg.texi: Likewise.
14769         * doc/extend.texi: Likewise.
14770         * doc/fragments.texi: Likewise.
14771         * doc/gty.texi: Likewise.
14772         * doc/invoke.texi: Likewise.
14773         * doc/lto.texi: Likewise.
14774         * doc/md.texi: Likewise.
14775         * doc/objc.texi: Likewise.
14776         * doc/rtl.texi: Likewise.
14777         * doc/tm.texi: Likewise.
14778         * dse.c: Likewise.
14779         * emit-rtl.c: Likewise.
14780         * emit-rtl.h: Likewise.
14781         * except.c: Likewise.
14782         * expmed.c: Likewise.
14783         * expr.c: Likewise.
14784         * fold-const.c: Likewise.
14785         * genautomata.c: Likewise.
14786         * gimple-fold.c: Likewise.
14787         * hard-reg-set.h: Likewise.
14788         * ifcvt.c: Likewise.
14789         * ipa-comdats.c: Likewise.
14790         * ipa-cp.c: Likewise.
14791         * ipa-devirt.c: Likewise.
14792         * ipa-fnsummary.c: Likewise.
14793         * ipa-icf.c: Likewise.
14794         * ipa-inline-transform.c: Likewise.
14795         * ipa-inline.c: Likewise.
14796         * ipa-polymorphic-call.c: Likewise.
14797         * ipa-profile.c: Likewise.
14798         * ipa-prop.c: Likewise.
14799         * ipa-pure-const.c: Likewise.
14800         * ipa-reference.c: Likewise.
14801         * ipa-split.c: Likewise.
14802         * ipa-visibility.c: Likewise.
14803         * ipa.c: Likewise.
14804         * ira-build.c: Likewise.
14805         * ira-color.c: Likewise.
14806         * ira-conflicts.c: Likewise.
14807         * ira-costs.c: Likewise.
14808         * ira-int.h: Likewise.
14809         * ira-lives.c: Likewise.
14810         * ira.c: Likewise.
14811         * ira.h: Likewise.
14812         * loop-invariant.c: Likewise.
14813         * loop-unroll.c: Likewise.
14814         * lower-subreg.c: Likewise.
14815         * lra-assigns.c: Likewise.
14816         * lra-constraints.c: Likewise.
14817         * lra-eliminations.c: Likewise.
14818         * lra-lives.c: Likewise.
14819         * lra-remat.c: Likewise.
14820         * lra-spills.c: Likewise.
14821         * lra.c: Likewise.
14822         * lto-cgraph.c: Likewise.
14823         * lto-streamer-out.c: Likewise.
14824         * postreload-gcse.c: Likewise.
14825         * predict.c: Likewise.
14826         * profile-count.h: Likewise.
14827         * profile.c: Likewise.
14828         * recog.c: Likewise.
14829         * ree.c: Likewise.
14830         * reload.c: Likewise.
14831         * reload1.c: Likewise.
14832         * reorg.c: Likewise.
14833         * resource.c: Likewise.
14834         * rtl.def: Likewise.
14835         * rtl.h: Likewise.
14836         * rtlanal.c: Likewise.
14837         * sched-deps.c: Likewise.
14838         * sched-ebb.c: Likewise.
14839         * sched-rgn.c: Likewise.
14840         * sel-sched-ir.c: Likewise.
14841         * sel-sched.c: Likewise.
14842         * shrink-wrap.c: Likewise.
14843         * simplify-rtx.c: Likewise.
14844         * symtab.c: Likewise.
14845         * target.def: Likewise.
14846         * toplev.c: Likewise.
14847         * tree-call-cdce.c: Likewise.
14848         * tree-cfg.c: Likewise.
14849         * tree-complex.c: Likewise.
14850         * tree-core.h: Likewise.
14851         * tree-eh.c: Likewise.
14852         * tree-inline.c: Likewise.
14853         * tree-loop-distribution.c: Likewise.
14854         * tree-nrv.c: Likewise.
14855         * tree-profile.c: Likewise.
14856         * tree-sra.c: Likewise.
14857         * tree-ssa-alias.c: Likewise.
14858         * tree-ssa-dce.c: Likewise.
14859         * tree-ssa-dom.c: Likewise.
14860         * tree-ssa-forwprop.c: Likewise.
14861         * tree-ssa-loop-im.c: Likewise.
14862         * tree-ssa-loop-ivcanon.c: Likewise.
14863         * tree-ssa-loop-ivopts.c: Likewise.
14864         * tree-ssa-loop-niter.c: Likewise.
14865         * tree-ssa-phionlycprop.c: Likewise.
14866         * tree-ssa-phiopt.c: Likewise.
14867         * tree-ssa-propagate.c: Likewise.
14868         * tree-ssa-threadedge.c: Likewise.
14869         * tree-ssa-threadupdate.c: Likewise.
14870         * tree-ssa-uninit.c: Likewise.
14871         * tree-ssanames.c: Likewise.
14872         * tree-streamer-out.c: Likewise.
14873         * tree.c: Likewise.
14874         * tree.h: Likewise.
14875         * vr-values.c: Likewise.
14877 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14879         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
14880         (ix86_split_xorsign): Ditto.
14881         * config/i386/i386.c (ix86_expand_xorsign): New function.
14882         (ix86_split_xorsign): Ditto.
14883         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
14884         (xorsign<mode>3): New expander.
14885         (xorsign<mode>3_1): New insn_and_split pattern.
14886         * config/i386/sse.md (xorsign<mode>3): New expander.
14888 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
14890         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
14891         (*tablejump_sp64): Likewise.
14892         (*tablejump<P:mode>): ...this.
14893         (*call_address_sp32): Merge into...
14894         (*call_address_sp64): Likewise.
14895         (*call_address<P:mode>): ...this.
14896         (*call_symbolic_sp32): Merge into...
14897         (*call_symbolic_sp64): Likewise.
14898         (*call_symbolic<P:mode>): ...this.
14899         (call_value): Remove constraint and add predicate.
14900         (*call_value_address_sp32): Merge into...
14901         (*call_value_address_sp64): Likewise.
14902         (*call_value_address<P:mode>): ...this.
14903         (*call_value_symbolic_sp32): Merge into...
14904         (*call_value_symbolic_sp64): Likewise.
14905         (*call_value_symbolic<P:mode>): ...this.
14906         (*sibcall_symbolic_sp32): Merge into...
14907         (*sibcall_symbolic_sp64): Likewise.
14908         (*sibcall_symbolic<P:mode>): ...this.
14909         (sibcall_value): Remove constraint and add predicate.
14910         (*sibcall_value_symbolic_sp32): Merge into...
14911         (*sibcall_value_symbolic_sp64): Likewise.
14912         (*sibcall_value_symbolic<P:mode>): ...this.
14913         (window_save): Minor tweak.
14914         (*branch_sp32): Merge into...
14915         (*branch_sp64): Likewise.
14916         (*branch<P:mode>): ...this.
14918 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
14919             James Clarke  <jrtc27@jrtc27.com>
14921         PR target/84010
14922         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
14923         consistently in TLS address generation and adjust code to the renaming
14924         of patterns.  Mark calls to __tls_get_addr as const.
14925         * config/sparc/sparc.md (tgd_hi22): Turn into...
14926         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
14927         (tgd_lo10): Turn into...
14928         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
14929         (tgd_add32): Merge into...
14930         (tgd_add64): Likewise.
14931         (tgd_add<P:mode>): ...this and use Pmode throughout.
14932         (tldm_hi22): Turn into...
14933         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
14934         (tldm_lo10): Turn into...
14935         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
14936         (tldm_add32): Merge into...
14937         (tldm_add64): Likewise.
14938         (tldm_add<P:mode>): ...this and use Pmode throughout.
14939         (tldm_call32): Merge into...
14940         (tldm_call64): Likewise.
14941         (tldm_call<P:mode>): ...this and use Pmode throughout.
14942         (tldo_hix22): Turn into...
14943         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
14944         (tldo_lox10): Turn into...
14945         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
14946         (tldo_add32): Merge into...
14947         (tldo_add64): Likewise.
14948         (tldo_add<P:mode>): ...this and use Pmode throughout.
14949         (tie_hi22): Turn into...
14950         (tie_hi22<P:mode>): ...this and use Pmode throughout.
14951         (tie_lo10): Turn into...
14952         (tie_lo10<P:mode>): ...this and use Pmode throughout.
14953         (tie_ld64): Use DImode throughout.
14954         (tie_add32): Merge into...
14955         (tie_add64): Likewise.
14956         (tie_add<P:mode>): ...this and use Pmode throughout.
14957         (tle_hix22_sp32): Merge into...
14958         (tle_hix22_sp64): Likewise.
14959         (tle_hix22<P:mode>): ...this and use Pmode throughout.
14960         (tle_lox22_sp32): Merge into...
14961         (tle_lox22_sp64): Likewise.
14962         (tle_lox22<P:mode>): ...this and use Pmode throughout.
14963         (*tldo_ldub_sp32): Merge into...
14964         (*tldo_ldub_sp64): Likewise.
14965         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
14966         (*tldo_ldub1_sp32): Merge into...
14967         (*tldo_ldub1_sp64): Likewise.
14968         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
14969         (*tldo_ldub2_sp32): Merge into...
14970         (*tldo_ldub2_sp64): Likewise.
14971         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
14972         (*tldo_ldsb1_sp32): Merge into...
14973         (*tldo_ldsb1_sp64): Likewise.
14974         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
14975         (*tldo_ldsb2_sp32): Merge into...
14976         (*tldo_ldsb2_sp64): Likewise.
14977         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
14978         (*tldo_ldub3_sp64): Use DImode throughout.
14979         (*tldo_ldsb3_sp64): Likewise.
14980         (*tldo_lduh_sp32): Merge into...
14981         (*tldo_lduh_sp64): Likewise.
14982         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
14983         (*tldo_lduh1_sp32): Merge into...
14984         (*tldo_lduh1_sp64): Likewise.
14985         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
14986         (*tldo_ldsh1_sp32): Merge into...
14987         (*tldo_ldsh1_sp64): Likewise.
14988         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
14989         (*tldo_lduh2_sp64): Use DImode throughout.
14990         (*tldo_ldsh2_sp64): Likewise.
14991         (*tldo_lduw_sp32): Merge into...
14992         (*tldo_lduw_sp64): Likewise.
14993         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
14994         (*tldo_lduw1_sp64): Use DImode throughout.
14995         (*tldo_ldsw1_sp64): Likewise.
14996         (*tldo_ldx_sp64): Likewise.
14997         (*tldo_stb_sp32): Merge into...
14998         (*tldo_stb_sp64): Likewise.
14999         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
15000         (*tldo_sth_sp32): Merge into...
15001         (*tldo_sth_sp64): Likewise.
15002         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
15003         (*tldo_stw_sp32): Merge into...
15004         (*tldo_stw_sp64): Likewise.
15005         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
15006         (*tldo_stx_sp64): Use DImode throughout.
15008 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15010         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
15011         check configure option to set BTI and Return Address Signing.
15012         * configure.ac: Add --enable-standard-branch-protection and
15013         --disable-standard-branch-protection.
15014         * configure: Regenerated.
15015         * doc/install.texi: Document the same.
15017 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15018             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15020         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
15021         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
15022         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
15023         if bti is enabled.
15024         * config/aarch64/aarch64-bti-insert.c: New file.
15025         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
15026         pass.
15027         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
15028         new bti pass.
15029         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
15030         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
15031         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
15032         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
15034 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15036         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
15037         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
15038         Disable bti for -mbranch-protection=none.
15039         (aarch64_handle_standard_branch_protection): Enable bti for
15040         -mbranch-protection=standard.
15041         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
15042         -mbranch-protection.
15043         (aarch64_bti_enabled): Check if bti is enabled.
15044         * config/aarch64/aarch64.opt: Declare target variable.
15045         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
15047 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15049         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
15050         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
15051         (aarch64_expand_epilogue): Likewise.
15052         (aarch64_output_mi_thunk): Likewise
15053         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
15054         TAILCALL_ADDR_REGS to x16 and x17.
15055         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
15057 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15059         * config/aarch64/aarch64-option-extensions.def: Define
15060         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
15061         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
15062         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
15063         (AARCH64_FL_PREDRES): New.
15064         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
15065         AARCH64_FL_PREDRES by default.
15066         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
15068 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15070         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
15071         ARMv8.5-A.
15072         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
15073         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
15074         * doc/invoke.texi: Document ARMv8.5-A.
15076 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15078         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
15079         (xorsign<mode>3): Likewise.
15081 2019-01-09  Jelinek  <jakub@redhat.com>
15083         PR middle-end/88758
15084         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
15085         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
15087         PR rtl-optimization/88331
15088         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
15089         not currently_expanding_to_rtl.
15091 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15093         * doc/invoke.texi (-Os): Remove trailing spaces.
15094         (-finline-functions): Remove reference to -O2.
15096 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
15098         PR rtl-optimization/79593
15099         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
15101         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
15102         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
15104 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
15106         PR bootstrap/88721
15107         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
15108         to -1 on entry.
15110         PR debug/88723
15111         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
15112         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
15114 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
15116         PR target/88717
15117         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
15118         ix86_avx_u128_mode_entry.
15120 2019-01-08  Martin Liska  <mliska@suse.cz>
15122         PR tree-optimization/88753
15123         * tree-switch-conversion.c (switch_conversion::build_one_array):
15124         Come up with local variable constructor.  Convert first to
15125         type of constructor values.
15127 2019-01-08  Richard Biener  <rguenther@suse.de>
15129         PR tree-optimization/86554
15130         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
15131         rpo_avail): Move earlier.
15132         (visit_nary_op): When value-numbering to expressions
15133         with different overflow behavior make sure there's an
15134         available expression on the path.
15136 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
15138         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
15139         aarch64_parse_branch_protection,
15140         struct aarch64_branch_protect_type,
15141         aarch64_handle_no_branch_protection,
15142         aarch64_handle_standard_branch_protection,
15143         aarch64_validate_mbranch_protection,
15144         aarch64_handle_pac_ret_protection,
15145         aarch64_handle_attr_branch_protection,
15146         accepted_branch_protection_string,
15147         aarch64_pac_ret_subtypes,
15148         aarch64_branch_protect_types,
15149         aarch64_handle_pac_ret_leaf): Define.
15150         (aarch64_override_options_after_change_1, aarch64_override_options):
15151         Add check for accepted_branch_protection_string.
15152         (aarch64_option_save): Save accepted_branch_protection_string.
15153         (aarch64_option_restore): Save accepted_branch_protection_string.
15154         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
15155         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
15156         msign-return-address.
15157         * doc/invoke.texi: Add mbranch-protection.
15159 2019-01-08  Alan Modra  <amodra@gmail.com>
15161         PR target/88614
15162         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
15163         Delete "unknownp" parameter.  Adjust callers.  Handle
15164         CONST_INT, PLUS, MINUS, and MULT.
15165         (attr_value_aligned): Renamed from or_attr_value.
15166         (min_attr_value): Return INT_MIN for unhandled rtl case..
15167         (min_fn): ..and translate to INT_MAX here.
15168         (write_length_unit_log): Modify to cope without "unknown".
15169         (write_attr_value): Handle IF_THEN_ELSE.
15171 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15173         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
15174         optimization for masked stores.
15176 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15178         PR middle-end/88567
15179         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
15180         output vector directly to duplicate_and_interleave instead of
15181         going through a temporary.  Postpone insertion of ctor_seq to
15182         the end of the loop.
15184 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
15186         PR target/86891
15187         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
15188         unsigned_p.  Handle signed and unsigned overflow correction as
15189         required.
15190         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
15191         prototype.
15192         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
15193         for operand 2.
15194         (add<mode>3_compareV_imm): Make this callable for expanding.
15195         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
15196         aarch64_plus_operand for operand 2.
15197         (subv<GPI:mode>_insn): New insn pattern.
15198         (subv<GPI:mode>_imm): Likewise.
15199         (negv<GPI:mode>3): New expand pattern.
15200         (negv<GPI:mode>_insn): New insn pattern.
15201         (negv<GPI:mode>_cmp_only): Likewise.
15202         (cmpv<GPI:mode>_insn): Likewise.
15203         (subvti4): Use register_operand for operand 1.  Update call to
15204         aarch64_expand_subvti.
15205         (usubvti4): Likewise.
15206         (negvti3): New expand pattern.
15207         (negdi_carryout): New insn pattern.
15208         (negvdi_carryinV): New insn pattern.
15209         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
15210         version the named version.
15211         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
15212         operands.
15213         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
15214         patterns.
15215         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
15216         patterns.
15217         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
15218         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
15219         (sub<mode>3_carryinCV): Delete.
15220         (sub<GPI:mode>3_carryinV): New expand pattern.
15221         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
15223 2019-01-07  Richard Biener  <rguenther@suse.de>
15225         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
15226         of tree_operand_hash.
15228 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15230         PR tree-optimization/88598
15231         * tree.h (single_nonzero_element): Declare.
15232         * tree.c (single_nonzero_element): New function.
15233         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
15234         if I is the only nonzero element of CST.
15236 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15238         PR tree-optimization/88598
15239         * tree.h (initializer_each_zero_or_onep): Declare.
15240         * tree.c (initializer_each_zero_or_onep): New function.
15241         (signed_or_unsigned_type_for): Handle float types too.
15242         (unsigned_type_for, signed_type_for): Update comments accordingly.
15243         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
15244         x & { 0 or -1, 0 or -1, ... }.
15246 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
15248         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
15249         with x86_64-pc-linux-gnu.
15251 2019-01-07  Tom de Vries  <tdevries@suse.de>
15253         PR target/85486
15254         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
15255         function.
15256         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
15257         routines.
15259 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
15261         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
15262         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
15263         TARGET_AVX512F as condition.
15265         PR debug/88723
15266         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
15267         const_not_ok_for_debug_p target hook.
15268         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
15269         on UNSPEC and subexpressions thereof if all subexpressions of the
15270         UNSPEC are CONSTANT_P.
15272         PR tree-optimization/88676
15273         * tree-ssa-phiopt.c (two_value_replacement): New function.
15274         (tree_ssa_phiopt_worker): Call it.
15276         PR sanitizer/88619
15277         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
15278         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
15280         PR c++/85052
15281         * tree-vect-generic.c: Include insn-config.h and recog.h.
15282         (expand_vector_piecewise): Add defaulted ret_type argument,
15283         if non-NULL, use that in preference to type for the result type.
15284         (expand_vector_parallel): Formatting fix.
15285         (do_vec_conversion, do_vec_narrowing_conversion,
15286         expand_vector_conversion): New functions.
15287         (expand_vector_operations_1): Call expand_vector_conversion
15288         for VEC_CONVERT ifn calls.
15289         * internal-fn.def (VEC_CONVERT): New internal function.
15290         * internal-fn.c (expand_VEC_CONVERT): New function.
15291         * fold-const-call.c (fold_const_vec_convert): New function.
15292         (fold_const_call): Use it for CFN_VEC_CONVERT.
15293         * doc/extend.texi (__builtin_convertvector): Document.
15295 2019-01-07  Tom de Vries  <tdevries@suse.de>
15297         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
15298         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
15299         vector_red_partition, vector_red_sym): New global variables.
15300         (nvptx_option_override): Initialize vector_red_sym.
15301         (nvptx_declare_function_name): Restore red_partition register.
15302         (nvptx_file_end): Emit code to declare the vector reduction variables.
15303         (nvptx_output_red_partition): New function.
15304         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
15305         large vector reductions.
15306         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
15307         (nvptx_init_builtins): Add VECTOR_ADDR.
15308         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
15309         Handle nvptx_expand_shared_addr.
15310         (nvptx_get_shared_red_addr): Add vector argument and handle large
15311         vectors.
15312         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
15313         large vectors.
15314         (nvptx_goacc_reduction_init): Likewise.
15315         (nvptx_goacc_reduction_fini): Likewise.
15316         (nvptx_goacc_reduction_teardown): Likewise.
15317         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
15318         init,fini,teardown}.
15319         (nvptx_init_axis_predicate): Initialize vector_red_partition.
15320         (nvptx_set_current_function): Init vector_red_partition.
15321         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
15322         (nvptx_red_partition): New insn.
15323         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
15325 2019-01-07  Tom de Vries  <tdevries@suse.de>
15327         PR target/85381
15328         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
15329         empty loops.
15331 2019-01-07  Tom de Vries  <tdevries@suse.de>
15333         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
15334         (nvptx_option_override): Init oacc_bcast_partition.
15335         (nvptx_init_oacc_workers): New function.
15336         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
15337         (nvptx_needs_shared_bcast): New function.
15338         (nvptx_find_par): Generalize to enable vectors to use shared-memory
15339         to propagate state.
15340         (nvptx_shared_propagate): Initialize vector bcast partition and
15341         synchronization state.
15342         (nvptx_single):  Generalize to enable vectors to use shared-memory
15343         to propagate state.
15344         (nvptx_process_pars): Likewise.
15345         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
15346         * config/nvptx/nvptx.h (struct machine_function): Add
15347         bcast_partition and sync_bar members.
15349 2019-01-07  Tom de Vries  <tdevries@suse.de>
15351         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
15352         (nvptx_apply_dim_limits): New function.
15353         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
15354         PTX_WARP_SIZE.
15356 2019-01-07  Tom de Vries  <tdevries@suse.de>
15358         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
15359         as late as possible.
15361 2019-01-07  Tom de Vries  <tdevries@suse.de>
15363         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
15364         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
15365         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
15366         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
15367         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
15369 2019-01-07  Tom de Vries  <tdevries@suse.de>
15371         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
15373 2019-01-07  Tom de Vries  <tdevries@suse.de>
15375         * omp-offload.c (oacc_get_min_dim): New function.
15376         * omp-offload.h (oacc_get_min_dim): Declare.
15378 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
15380         PR target/88521
15381         * config/i386/i386.c (function_value_ms_64): Return small sturct in
15382         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
15384 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15386         PR tree-opt/86020
15387         Revert:
15388         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
15390         * ipa-inline.c (edge_badness): Use inlined_time instead of
15391         inline_summaries->get.
15393 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15395         * opts.c (enable_fdo_optimizations): Enable
15396         version-loops-for-strides, loop-interchange, unrol-and-jam
15397         and tree-loop-distribution.
15398         * invoke.texi: Document newly enabled options.
15400 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15402         * doc/invoke.texi (max-inline-insns-small): New parameters.
15403         * ipa-inline.c (want_early_inline_function_p): simplify.
15404         (want_inline_small_function_p): Fix pasto from previous patch;
15405         use max-inline-insns-small bound.
15406         * params.def (max-inline-insns-small): New param.
15407         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
15408         variables correctly.
15410 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15412         * doc/invoke.texi: Document max-inline-insns-size,
15413         uninlined-function-insns, uninlined-function-time,
15414         uninlined-thunk-insns and uninlined-thunk-time.
15415         * params.def: Add max-inline-insns-size,
15416         uninlined-function-insns, uninlined-function-time,
15417         uninlined-thunk-insns and uninlined-thunk-time.
15418         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
15419         new parameters.
15420         * ipa-inline.c (can_inline_edge_by_limits_p,
15421         want_inline_small_function_p): Use new parameters.
15423 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15425         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
15427 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
15429         PR middle-end/82564
15430         PR target/88620
15431         * expr.c (expand_assignment): For calls returning VLA structures
15432         if to_rtx is not a MEM, force it into a stack temporary.
15434         PR debug/88635
15435         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
15436         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
15437         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
15438         subexpressions of both operands.
15439         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
15440         subrtxes are CONSTANT_P.
15441         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
15442         2018-11-09 changes.
15444 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
15446         * params.def (hot-bb-count-ws-permille): Set to 990.
15448 2019-01-04  Martin Sebor  <msebor@redhat.com>
15450         PR c/88546
15451         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
15452         leaf.
15454 2019-01-04  Martin Sebor  <msebor@redhat.com>
15456         PR c/88363
15457         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
15459 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
15461         * gdbinit.in: Turn off pagination for the skip commands, restore
15462         it to previous state afterwards.
15464 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
15466         PR target/88594
15467         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
15468         of GET_MODE (opN) as modes of the libcall arguments.
15470 2019-01-04  Jan Beulich  <jbeulich@suse.com>
15472         * config/i386/sse.md
15473         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
15474         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
15475         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15476         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15477         avx512f_vmcmp<mode>3<round_saeonly_name>,
15478         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
15479         avx512f_maskcmp<mode>3,
15480         <avx512>_cvt<ssemodesuffix>2mask<mode>,
15481         <avx512>_cvt<ssemodesuffix>2mask<mode>,
15482         *<avx512>_cvtmask2<ssemodesuffix><mode>,
15483         *<avx512>_cvtmask2<ssemodesuffix><mode>,
15484         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15485         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15486         <avx512>_gt<mode>3<mask_scalar_merge_name>,
15487         <avx512>_gt<mode>3<mask_scalar_merge_name>,
15488         <avx512>_testm<mode>3<mask_scalar_merge_name>,
15489         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
15490         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
15491         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
15492         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
15493         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
15494         avx512cd_maskb_vec_dup<mode>,
15495         avx512cd_maskw_vec_dup<mode>,
15496         avx512dq_fpclass<mode><mask_scalar_merge_name>,
15497         avx512dq_vmfpclass<mode>,
15498         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
15499         instead of =Yk.
15501 2019-01-03  Martin Sebor  <msebor@redhat.com>
15503         PR tree-optimization/88659
15504         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
15506 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
15508         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
15509         unaligned vsx and avoid lxvd2x/stxvd2x.
15510         (gen_lvx_v4si_move): New function.
15512 2019-01-03  Tom de Vries  <tdevries@suse.de>
15514         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
15515         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
15516         function.
15517         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
15519 2019-01-03  Tom de Vries  <tdevries@suse.de>
15521         * config/nvptx/nvptx.c (struct offload_attrs): New.
15522         (populate_offload_attrs): New function.  Factor mask extraction out of
15523         nvptx_reorg.  Add extraction of dimensions.
15524         (nvptx_reorg): Use populate_offload_attrs.
15526 2019-01-03  Tom de Vries  <tdevries@suse.de>
15528         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
15529         cases for oacc_min_dims_p and routine_p.  Add asserts for
15530         oacc_default_dims_p and offload_region_p.
15532 2019-01-03  Tom de Vries  <tdevries@suse.de>
15534         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
15535         factored out of ...
15536         (nvptx_goacc_validate_dims): ... here.
15538 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
15540         PR tree-optimization/85574
15541         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
15542         structure.
15543         (struct ssa_equip_hash_traits): Declare.
15544         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
15546 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
15548         PR debug/88644
15549         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
15550         change it to qualified_type.
15552 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
15554         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
15555         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
15557 2019-01-02  Martin Sebor  <msebor@redhat.com>
15558             Jeff Law  <law@redhat.com>
15560         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
15561         (get_range_strlen_tree): Update appropriately.
15562         (get_range_strlen)
15563         * gimple-fold.h (get_range_strlen): Drop unused last argument.
15565         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
15566         rather than set_range_info.
15567         * tree-ssa-strlen.c (set_strlen_range): Extracted from
15568         maybe_set_strlen_range.  Handle potentially boundary crossing
15569         cases more conservatively.
15570         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
15571         Call set_strlen_range.
15572         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
15574         PR middle-end/88663
15575         * gimple-fold.c (get_range_strlen): Update prototype to no longer
15576         need the flexp argument.
15577         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
15578         from calls to get_range_strlen.  Update comments.  Just update
15579         VAL for an unterminated const char array and let the reset of the
15580         code handle it normally.  No longer try to set *flexp.  Adjust
15581         return value.
15582         (get_range_strlen): Update for the new get_range_strlen API.
15583         (get_maxval_strlen): Similarly.
15584         (gimple_fold_builtin_strlen): Handle update meaning of return value
15585         from get_range_strlen.
15586         * gimple-ssa-sprintf.c (get_string_length): Update for the new
15587         get_range_strlen API.
15589 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
15591         PR lto/88130
15592         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
15593         false at WPA time when body was removed.
15595 2019-01-02  Martin Liska  <mliska@suse.cz>
15597         PR tree-optimization/88650
15598         * predict.c (set_even_probabilities): Calculate probability
15599         remainer only when really used.
15601 2019-01-02  Richard Biener  <rguenther@suse.de>
15603         PR middle-end/88651
15604         * tree-data-ref.c (analyze_subscript_affine_affine): Use
15605         widest_ints when mangling max_stmt_execution results.
15607 2019-01-02  Richard Biener  <rguenther@suse.de>
15609         PR tree-optimization/88621
15610         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
15611         bitfields when canoncalizing.
15613 2019-01-02  Richard Biener  <rguenther@suse.de>
15615         PR target/87545
15616         * config/i386/x86-tune-costs.h (intel_cost): Adjust
15617         cost of cheap SSE instruction.
15619 2019-01-02  Richard Biener  <rguenther@suse.de>
15621         PR ipa/85574
15622         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
15623         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
15624         function.
15625         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
15626         set after UIDs before splitting them.
15628 2019-01-01  Martin Sebor  <msebor@redhat.com>
15629             Jeff Law  <law@redhat.com>
15631         * gimple-fold.c (get_range_strlen_tree): Record if the computed
15632         length is optimistic.  If it is, then arrange to compute the
15633         conservative length as well.
15635         * gimple-fold.h (get_range_strlen): Update prototype.
15636         * builtins.c (check_access): Update call to get_range_strlen to use
15637         c_strlen_data pointer.   Change various variable accesses to instead
15638         pull data from the c_strlen_data structure.
15639         (check_strncat_sizes, expand_builtin_strncat): Likewise.
15640         * calls.c (maybe_warn_nonstring_arg): Likewise.
15641         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
15642         minimum length if maximum lengh is unknown.
15643         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
15644         that used c_strlen, it's no longer needed.  Restructure slightly.
15645         (format_string): Set unlikely range appropriately.
15646         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
15647         formatting issues.
15648         (get_range_strlen):  Accept c_strlen_data pointer for external
15649         call sites as well.  Pass through to call to internal get_range_strlen.
15650         Adjust minlen, maxlen and maxbound as needed.
15651         (get_maxval_strlen): Update comments.
15652         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
15653         to use c_strlen_data pointer.  Change variable accesses to instead
15654         use c_strlen_data data members.
15656         * gimple-fold.c (get_range_strlen): Update prototype.
15657         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
15658         local variables.  Use pdata to return information to caller.
15659         Update calls to get_range_strlen.  Update pdata->maxbound.
15660         (get_range_strlen -- static version): Similarly.
15661         (get_range_strlen -- extern version): Update for internal
15662         get_range_strlen API change.  Convert to external data format.
15663         (get_maxval_strlen): Similarly.
15665 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
15667         * coverage.c (get_coverage_counts): Use current_function_decl.
15668         * profile.c (read_thunk_profile): New function.
15669         (branch_prob): Add THUNK parameter.
15670         * tree-profile.c (tree_profiling): Handle thunks.
15671         * value-prof.c (init_node_map): Handle thunks.
15672         * value-prof.h (branch_prob): Upate prototype.
15673         (read_thunk_profile): Declare.
15675 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
15677         Update copyright years.
15679         * gcc.c (process_command): Update copyright notice dates.
15680         * gcov-dump.c (print_version): Ditto.
15681         * gcov.c (print_version): Ditto.
15682         * gcov-tool.c (print_version): Ditto.
15683         * gengtype.c (create_file): Ditto.
15684         * doc/cpp.texi: Bump @copying's copyright year.
15685         * doc/cppinternals.texi: Ditto.
15686         * doc/gcc.texi: Ditto.
15687         * doc/gccint.texi: Ditto.
15688         * doc/gcov.texi: Ditto.
15689         * doc/install.texi: Ditto.
15690         * doc/invoke.texi: Ditto.
15692 Copyright (C) 2019 Free Software Foundation, Inc.
15694 Copying and distribution of this file, with or without modification,
15695 are permitted in any medium without royalty provided the copyright
15696 notice and this notice are preserved.