re PR target/91124 (gcc.target/i386/avx512vl-vpshldvd-2.c etc. FAIL)
[official-gcc.git] / gcc / ChangeLog
bloba02213d7710594d6fe4dd2ed58a579bcc23fa031
1 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
3         PR target/91124
4         * config/i386/i386-builtin-types.def
5         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
6         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
7         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
8         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
9         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
12         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
13         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
14         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
15         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
21         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
22         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
23         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
24         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
25         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
26         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
27         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
28         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
29         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
30         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
31         __builtin_ia32_vpdpbusd_v4si_maskz,
32         __builtin_ia32_vpdpbusds_v16si_mask,
33         __builtin_ia32_vpdpbusds_v16si_maskz,
34         __builtin_ia32_vpdpbusds_v8si_mask,
35         __builtin_ia32_vpdpbusds_v8si_maskz,
36         __builtin_ia32_vpdpbusds_v4si_mask,
37         __builtin_ia32_vpdpbusds_v4si_maskz,
38         __builtin_ia32_vpdpwssd_v16si_mask,
39         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
40         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
41         __builtin_ia32_vpdpwssd_v4si_maskz,
42         __builtin_ia32_vpdpwssds_v16si_mask,
43         __builtin_ia32_vpdpwssds_v16si_maskz,
44         __builtin_ia32_vpdpwssds_v8si_mask,
45         __builtin_ia32_vpdpwssds_v8si_maskz,
46         __builtin_ia32_vpdpwssds_v4si_mask,
47         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
48         suffixed types rather than *_INT.
49         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
50         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
51         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
52         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
53         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
54         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
56 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
58         * tree-vrp.c (intersect_ranges): If we know the intersection is
59         empty, there is no need to conservatively add anything else to
60         the set.
62 2019-07-11  Richard Biener  <rguenther@suse.de>
64         PR middle-end/91131
65         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
66         when the object is volatile and we have not cleared it even though
67         there are no nonzero elements.
69 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
71         * config/rs6000/predicates.md (cint34_operand): Update
72         SIGNED_34BIT_OFFSET_P call.
73         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
74         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
75         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
76         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
77         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
78         argument.
79         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
80         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
81         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
82         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
83         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
85 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
87         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
88         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
89         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
90         (DEF_MIN_OSX_VERSION): New.
92 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
94         * fold-const.c (fold_relational_const): Fix folding of
95         vector-to-scalar NE_EXPRs.
96         (test_vector_folding): Add more tests.
98 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
100         PR target/91060
101         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
102         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
103         (vec_setv2di_internal): Reexpress as...
104         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
105         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
106         rather than gen_neon_vset_lane<mode>.
108 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
110         PR target/91102
111         * lra-constraints.c (process_alt_operands): Don't match user
112         defined regs only if they are early clobbers.
114 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
116         * wide-int.h (wi::lshift): Reject negative values for the fast path.
118 2019-07-10  Richard Biener  <rguenther@suse.de>
120         PR tree-optimization/91126
121         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
122         native encoding offset for BYTES_BIG_ENDIAN.
123         (vn_reference_lookup_3): Likewise.
125 2019-07-10  Richard Biener  <rguenther@suse.de>
127         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
128         LHS whenever possible.
130 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
132         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
133         from ...; work also on duplicated types.
134         (nonoverlapping_component_refs_since_match): ... here
135         (ncr_type_uid): Break out from ...
136         (ncr_compar): ... here; look for TYPE_UID of canonical type if
137         available.
138         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
139         the types and nonoverlapping_component_refs_p_1 to disambiguate.
141 2019-07-09  Martin Sebor  <msebor@redhat.com>
143         PR tree-optimization/90989
144         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
145         optimization to just single character stores.
147 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
149         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
150         Swap operands only once.
152 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
154         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
155         for both call instructions.
157 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
159         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
160         rather than GET_MODE_BITSIZE to better handle partial integer modes.
162 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
164         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
165         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
166         function from rs6000-logue.c back to rs6000.c.
167         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
169 2019-07-09  Martin Sebor  <msebor@redhat.com>
171         PR c++/61339
172         * auto-profile.c: Change class-key of PODs to struct and others
173         to class.
174         * basic-block.h: Same.
175         * bitmap.c (bitmap_alloc): Same.
176         * bitmap.h: Same.
177         * builtins.c (expand_builtin_prefetch): Same.
178         (expand_builtin_interclass_mathfn): Same.
179         (expand_builtin_strlen): Same.
180         (expand_builtin_mempcpy_args): Same.
181         (expand_cmpstr): Same.
182         (expand_builtin___clear_cache): Same.
183         (expand_ifn_atomic_bit_test_and): Same.
184         (expand_builtin_thread_pointer): Same.
185         (expand_builtin_set_thread_pointer): Same.
186         * caller-save.c (setup_save_areas): Same.
187         (replace_reg_with_saved_mem): Same.
188         (insert_restore): Same.
189         (insert_save): Same.
190         (add_used_regs): Same.
191         * cfg.c (get_bb_copy): Same.
192         (set_loop_copy): Same.
193         * cfg.h: Same.
194         * cfganal.h: Same.
195         * cfgexpand.c (alloc_stack_frame_space): Same.
196         (add_stack_var): Same.
197         (add_stack_var_conflict): Same.
198         (add_scope_conflicts_1): Same.
199         (update_alias_info_with_stack_vars): Same.
200         (expand_used_vars): Same.
201         * cfghooks.c (redirect_edge_and_branch_force): Same.
202         (delete_basic_block): Same.
203         (split_edge): Same.
204         (make_forwarder_block): Same.
205         (force_nonfallthru): Same.
206         (duplicate_block): Same.
207         (lv_flush_pending_stmts): Same.
208         * cfghooks.h: Same.
209         * cfgloop.c (flow_loops_cfg_dump): Same.
210         (flow_loop_nested_p): Same.
211         (superloop_at_depth): Same.
212         (get_loop_latch_edges): Same.
213         (flow_loop_dump): Same.
214         (flow_loops_dump): Same.
215         (flow_loops_free): Same.
216         (flow_loop_nodes_find): Same.
217         (establish_preds): Same.
218         (flow_loop_tree_node_add): Same.
219         (flow_loop_tree_node_remove): Same.
220         (flow_loops_find): Same.
221         (find_subloop_latch_edge_by_profile): Same.
222         (find_subloop_latch_edge_by_ivs): Same.
223         (mfb_redirect_edges_in_set): Same.
224         (form_subloop): Same.
225         (merge_latch_edges): Same.
226         (disambiguate_multiple_latches): Same.
227         (disambiguate_loops_with_multiple_latches): Same.
228         (flow_bb_inside_loop_p): Same.
229         (glb_enum_p): Same.
230         (get_loop_body_with_size): Same.
231         (get_loop_body): Same.
232         (fill_sons_in_loop): Same.
233         (get_loop_body_in_dom_order): Same.
234         (get_loop_body_in_custom_order): Same.
235         (release_recorded_exits): Same.
236         (get_loop_exit_edges): Same.
237         (num_loop_branches): Same.
238         (remove_bb_from_loops): Same.
239         (find_common_loop): Same.
240         (delete_loop): Same.
241         (cancel_loop): Same.
242         (verify_loop_structure): Same.
243         (loop_preheader_edge): Same.
244         (loop_exit_edge_p): Same.
245         (single_exit): Same.
246         (loop_exits_to_bb_p): Same.
247         (loop_exits_from_bb_p): Same.
248         (get_loop_location): Same.
249         (record_niter_bound): Same.
250         (get_estimated_loop_iterations_int): Same.
251         (max_stmt_executions_int): Same.
252         (likely_max_stmt_executions_int): Same.
253         (get_estimated_loop_iterations): Same.
254         (get_max_loop_iterations): Same.
255         (get_max_loop_iterations_int): Same.
256         (get_likely_max_loop_iterations): Same.
257         * cfgloop.h (simple_loop_desc): Same.
258         (get_loop): Same.
259         (loop_depth): Same.
260         (loop_outer): Same.
261         (loop_iterator::next): Same.
262         (loop_outermost): Same.
263         * cfgloopanal.c (mark_irreducible_loops): Same.
264         (num_loop_insns): Same.
265         (average_num_loop_insns): Same.
266         (expected_loop_iterations_unbounded): Same.
267         (expected_loop_iterations): Same.
268         (mark_loop_exit_edges): Same.
269         (single_likely_exit): Same.
270         * cfgloopmanip.c (fix_bb_placement): Same.
271         (fix_bb_placements): Same.
272         (remove_path): Same.
273         (place_new_loop): Same.
274         (add_loop): Same.
275         (scale_loop_frequencies): Same.
276         (scale_loop_profile): Same.
277         (create_empty_if_region_on_edge): Same.
278         (create_empty_loop_on_edge): Same.
279         (loopify): Same.
280         (unloop): Same.
281         (fix_loop_placements): Same.
282         (copy_loop_info): Same.
283         (duplicate_loop): Same.
284         (duplicate_subloops): Same.
285         (loop_redirect_edge): Same.
286         (can_duplicate_loop_p): Same.
287         (duplicate_loop_to_header_edge): Same.
288         (mfb_keep_just): Same.
289         (has_preds_from_loop): Same.
290         (create_preheader): Same.
291         (create_preheaders): Same.
292         (lv_adjust_loop_entry_edge): Same.
293         (loop_version): Same.
294         * cfgloopmanip.h: Same.
295         * cgraph.h: Same.
296         * cgraphbuild.c: Same.
297         * combine.c (make_extraction): Same.
298         * config/i386/i386-features.c: Same.
299         * config/i386/i386-features.h: Same.
300         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
301         (ix86_emit_outlined_ms2sysv_restore): Same.
302         (ix86_noce_conversion_profitable_p): Same.
303         (ix86_init_cost): Same.
304         (ix86_simd_clone_usable): Same.
305         * configure.ac: Same.
306         * coretypes.h: Same.
307         * data-streamer-in.c (string_for_index): Same.
308         (streamer_read_indexed_string): Same.
309         (streamer_read_string): Same.
310         (bp_unpack_indexed_string): Same.
311         (bp_unpack_string): Same.
312         (streamer_read_uhwi): Same.
313         (streamer_read_hwi): Same.
314         (streamer_read_gcov_count): Same.
315         (streamer_read_wide_int): Same.
316         * data-streamer.h (streamer_write_bitpack): Same.
317         (bp_unpack_value): Same.
318         (streamer_write_char_stream): Same.
319         (streamer_write_hwi_in_range): Same.
320         (streamer_write_record_start): Same.
321         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
322         (add_cross_iteration_register_deps): Same.
323         (build_intra_loop_deps): Same.
324         * df-core.c (df_analyze): Same.
325         (loop_post_order_compute): Same.
326         (loop_inverted_post_order_compute): Same.
327         * df-problems.c (df_rd_alloc): Same.
328         (df_rd_simulate_one_insn): Same.
329         (df_rd_local_compute): Same.
330         (df_rd_init_solution): Same.
331         (df_rd_confluence_n): Same.
332         (df_rd_transfer_function): Same.
333         (df_rd_free): Same.
334         (df_rd_dump_defs_set): Same.
335         (df_rd_top_dump): Same.
336         (df_lr_alloc): Same.
337         (df_lr_reset): Same.
338         (df_lr_local_compute): Same.
339         (df_lr_init): Same.
340         (df_lr_confluence_n): Same.
341         (df_lr_free): Same.
342         (df_lr_top_dump): Same.
343         (df_lr_verify_transfer_functions): Same.
344         (df_live_alloc): Same.
345         (df_live_reset): Same.
346         (df_live_init): Same.
347         (df_live_confluence_n): Same.
348         (df_live_finalize): Same.
349         (df_live_free): Same.
350         (df_live_top_dump): Same.
351         (df_live_verify_transfer_functions): Same.
352         (df_mir_alloc): Same.
353         (df_mir_reset): Same.
354         (df_mir_init): Same.
355         (df_mir_confluence_n): Same.
356         (df_mir_free): Same.
357         (df_mir_top_dump): Same.
358         (df_word_lr_alloc): Same.
359         (df_word_lr_reset): Same.
360         (df_word_lr_init): Same.
361         (df_word_lr_confluence_n): Same.
362         (df_word_lr_free): Same.
363         (df_word_lr_top_dump): Same.
364         (df_md_alloc): Same.
365         (df_md_simulate_one_insn): Same.
366         (df_md_reset): Same.
367         (df_md_init): Same.
368         (df_md_free): Same.
369         (df_md_top_dump): Same.
370         * df-scan.c (df_insn_delete): Same.
371         (df_insn_rescan): Same.
372         (df_notes_rescan): Same.
373         (df_sort_and_compress_mws): Same.
374         (df_install_mws): Same.
375         (df_refs_add_to_chains): Same.
376         (df_ref_create_structure): Same.
377         (df_ref_record): Same.
378         (df_def_record_1): Same.
379         (df_find_hard_reg_defs): Same.
380         (df_uses_record): Same.
381         (df_get_conditional_uses): Same.
382         (df_get_call_refs): Same.
383         (df_recompute_luids): Same.
384         (df_get_entry_block_def_set): Same.
385         (df_entry_block_defs_collect): Same.
386         (df_get_exit_block_use_set): Same.
387         (df_exit_block_uses_collect): Same.
388         (df_mws_verify): Same.
389         (df_bb_verify): Same.
390         * df.h (df_scan_get_bb_info): Same.
391         * doc/tm.texi: Same.
392         * dse.c (record_store): Same.
393         * dumpfile.h: Same.
394         * emit-rtl.c (const_fixed_hasher::equal): Same.
395         (set_mem_attributes_minus_bitpos): Same.
396         (change_address): Same.
397         (adjust_address_1): Same.
398         (offset_address): Same.
399         * emit-rtl.h: Same.
400         * except.c (dw2_build_landing_pads): Same.
401         (sjlj_emit_dispatch_table): Same.
402         * explow.c (allocate_dynamic_stack_space): Same.
403         (emit_stack_probe): Same.
404         (probe_stack_range): Same.
405         * expmed.c (store_bit_field_using_insv): Same.
406         (store_bit_field_1): Same.
407         (store_integral_bit_field): Same.
408         (extract_bit_field_using_extv): Same.
409         (extract_bit_field_1): Same.
410         (emit_cstore): Same.
411         * expr.c (emit_block_move_via_cpymem): Same.
412         (expand_cmpstrn_or_cmpmem): Same.
413         (set_storage_via_setmem): Same.
414         (emit_single_push_insn_1): Same.
415         (expand_assignment): Same.
416         (store_constructor): Same.
417         (expand_expr_real_2): Same.
418         (expand_expr_real_1): Same.
419         (try_casesi): Same.
420         * flags.h: Same.
421         * function.c (try_fit_stack_local): Same.
422         (assign_stack_local_1): Same.
423         (assign_stack_local): Same.
424         (cut_slot_from_list): Same.
425         (insert_slot_to_list): Same.
426         (max_slot_level): Same.
427         (move_slot_to_level): Same.
428         (temp_address_hasher::equal): Same.
429         (remove_unused_temp_slot_addresses): Same.
430         (assign_temp): Same.
431         (combine_temp_slots): Same.
432         (update_temp_slot_address): Same.
433         (preserve_temp_slots): Same.
434         * function.h: Same.
435         * fwprop.c: Same.
436         * gcc-rich-location.h: Same.
437         * gcov.c: Same.
438         * genattrtab.c (check_attr_test): Same.
439         (check_attr_value): Same.
440         (convert_set_attr_alternative): Same.
441         (convert_set_attr): Same.
442         (check_defs): Same.
443         (copy_boolean): Same.
444         (get_attr_value): Same.
445         (expand_delays): Same.
446         (make_length_attrs): Same.
447         (min_fn): Same.
448         (make_alternative_compare): Same.
449         (simplify_test_exp): Same.
450         (tests_attr_p): Same.
451         (get_attr_order): Same.
452         (clear_struct_flag): Same.
453         (gen_attr): Same.
454         (compares_alternatives_p): Same.
455         (gen_insn): Same.
456         (gen_delay): Same.
457         (find_attrs_to_cache): Same.
458         (write_test_expr): Same.
459         (walk_attr_value): Same.
460         (write_attr_get): Same.
461         (eliminate_known_true): Same.
462         (write_insn_cases): Same.
463         (write_attr_case): Same.
464         (write_attr_valueq): Same.
465         (write_attr_value): Same.
466         (write_dummy_eligible_delay): Same.
467         (next_comma_elt): Same.
468         (find_attr): Same.
469         (make_internal_attr): Same.
470         (copy_rtx_unchanging): Same.
471         (gen_insn_reserv): Same.
472         (check_tune_attr): Same.
473         (make_automaton_attrs): Same.
474         (handle_arg): Same.
475         * genextract.c (gen_insn): Same.
476         (VEC_char_to_string): Same.
477         * genmatch.c (print_operand): Same.
478         (lower): Same.
479         (parser::parse_operation): Same.
480         (parser::parse_capture): Same.
481         (parser::parse_c_expr): Same.
482         (parser::parse_simplify): Same.
483         (main): Same.
484         * genoutput.c (output_operand_data): Same.
485         (output_get_insn_name): Same.
486         (compare_operands): Same.
487         (place_operands): Same.
488         (process_template): Same.
489         (validate_insn_alternatives): Same.
490         (validate_insn_operands): Same.
491         (gen_expand): Same.
492         (note_constraint): Same.
493         * genpreds.c (write_one_predicate_function): Same.
494         (add_constraint): Same.
495         (process_define_register_constraint): Same.
496         (write_lookup_constraint_1): Same.
497         (write_lookup_constraint_array): Same.
498         (write_insn_constraint_len): Same.
499         (write_reg_class_for_constraint_1): Same.
500         (write_constraint_satisfied_p_array): Same.
501         * genrecog.c (optimize_subroutine_group): Same.
502         * gensupport.c (process_define_predicate): Same.
503         (queue_pattern): Same.
504         (remove_from_queue): Same.
505         (process_rtx): Same.
506         (is_predicable): Same.
507         (change_subst_attribute): Same.
508         (subst_pattern_match): Same.
509         (alter_constraints): Same.
510         (alter_attrs_for_insn): Same.
511         (shift_output_template): Same.
512         (alter_output_for_subst_insn): Same.
513         (process_one_cond_exec): Same.
514         (subst_dup): Same.
515         (process_define_cond_exec): Same.
516         (mnemonic_htab_callback): Same.
517         (gen_mnemonic_attr): Same.
518         (read_md_rtx): Same.
519         * ggc-page.c: Same.
520         * gimple-loop-interchange.cc (dump_reduction): Same.
521         (dump_induction): Same.
522         (loop_cand::~loop_cand): Same.
523         (free_data_refs_with_aux): Same.
524         (tree_loop_interchange::interchange_loops): Same.
525         (tree_loop_interchange::map_inductions_to_loop): Same.
526         (tree_loop_interchange::move_code_to_inner_loop): Same.
527         (compute_access_stride): Same.
528         (compute_access_strides): Same.
529         (proper_loop_form_for_interchange): Same.
530         (tree_loop_interchange_compute_ddrs): Same.
531         (prune_datarefs_not_in_loop): Same.
532         (prepare_data_references): Same.
533         (pass_linterchange::execute): Same.
534         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
535         (unroll_jam_possible_p): Same.
536         (fuse_loops): Same.
537         (adjust_unroll_factor): Same.
538         (tree_loop_unroll_and_jam): Same.
539         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
540         (loop_versioning::expensive_stmt_p): Same.
541         (loop_versioning::version_for_unity): Same.
542         (loop_versioning::dump_inner_likelihood): Same.
543         (loop_versioning::find_per_loop_multiplication): Same.
544         (loop_versioning::analyze_term_using_scevs): Same.
545         (loop_versioning::record_address_fragment): Same.
546         (loop_versioning::analyze_expr): Same.
547         (loop_versioning::analyze_blocks): Same.
548         (loop_versioning::prune_conditions): Same.
549         (loop_versioning::merge_loop_info): Same.
550         (loop_versioning::add_loop_to_queue): Same.
551         (loop_versioning::decide_whether_loop_is_versionable): Same.
552         (loop_versioning::make_versioning_decisions): Same.
553         (loop_versioning::implement_versioning_decisions): Same.
554         * gimple-ssa-evrp-analyze.c
555         (evrp_range_analyzer::record_ranges_from_phis): Same.
556         * gimple-ssa-store-merging.c (split_store::split_store): Same.
557         (count_multiple_uses): Same.
558         (split_group): Same.
559         (imm_store_chain_info::output_merged_store): Same.
560         (pass_store_merging::process_store): Same.
561         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
562         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
563         (is_max): Same.
564         (alloca_call_type): Same.
565         (pass_walloca::execute): Same.
566         * gimple-streamer-in.c (input_phi): Same.
567         (input_gimple_stmt): Same.
568         * gimple-streamer.h: Same.
569         * godump.c (go_force_record_alignment): Same.
570         (go_format_type): Same.
571         (go_output_type): Same.
572         (go_output_fndecl): Same.
573         (go_output_typedef): Same.
574         (keyword_hash_init): Same.
575         (find_dummy_types): Same.
576         * graph.c (draw_cfg_nodes_no_loops): Same.
577         (draw_cfg_nodes_for_loop): Same.
578         * hard-reg-set.h (hard_reg_set_iter_next): Same.
579         * hsa-brig.c: Same.
580         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
581         * hsa-dump.c (dump_hsa_cfun): Same.
582         * hsa-gen.c (gen_function_def_parameters): Same.
583         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
584         * input.c (dump_line_table_statistics): Same.
585         (test_lexer): Same.
586         * input.h: Same.
587         * internal-fn.c (get_multi_vector_move): Same.
588         (expand_load_lanes_optab_fn): Same.
589         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
590         (expand_GOMP_SIMT_EXIT): Same.
591         (expand_GOMP_SIMT_LAST_LANE): Same.
592         (expand_GOMP_SIMT_ORDERED_PRED): Same.
593         (expand_GOMP_SIMT_VOTE_ANY): Same.
594         (expand_GOMP_SIMT_XCHG_BFLY): Same.
595         (expand_GOMP_SIMT_XCHG_IDX): Same.
596         (expand_addsub_overflow): Same.
597         (expand_neg_overflow): Same.
598         (expand_mul_overflow): Same.
599         (expand_call_mem_ref): Same.
600         (expand_mask_load_optab_fn): Same.
601         (expand_scatter_store_optab_fn): Same.
602         (expand_gather_load_optab_fn): Same.
603         * ipa-cp.c (ipa_get_parm_lattices): Same.
604         (print_all_lattices): Same.
605         (ignore_edge_p): Same.
606         (build_toporder_info): Same.
607         (free_toporder_info): Same.
608         (push_node_to_stack): Same.
609         (ipcp_lattice<valtype>::set_contains_variable): Same.
610         (set_agg_lats_to_bottom): Same.
611         (ipcp_bits_lattice::meet_with): Same.
612         (set_single_call_flag): Same.
613         (initialize_node_lattices): Same.
614         (ipa_get_jf_ancestor_result): Same.
615         (ipcp_verify_propagated_values): Same.
616         (propagate_scalar_across_jump_function): Same.
617         (propagate_context_across_jump_function): Same.
618         (propagate_bits_across_jump_function): Same.
619         (ipa_vr_operation_and_type_effects): Same.
620         (propagate_vr_across_jump_function): Same.
621         (set_check_aggs_by_ref): Same.
622         (set_chain_of_aglats_contains_variable): Same.
623         (merge_aggregate_lattices): Same.
624         (agg_pass_through_permissible_p): Same.
625         (propagate_aggs_across_jump_function): Same.
626         (call_passes_through_thunk_p): Same.
627         (propagate_constants_across_call): Same.
628         (devirtualization_time_bonus): Same.
629         (good_cloning_opportunity_p): Same.
630         (context_independent_aggregate_values): Same.
631         (gather_context_independent_values): Same.
632         (perform_estimation_of_a_value): Same.
633         (estimate_local_effects): Same.
634         (value_topo_info<valtype>::add_val): Same.
635         (add_all_node_vals_to_toposort): Same.
636         (value_topo_info<valtype>::propagate_effects): Same.
637         (ipcp_propagate_stage): Same.
638         (ipcp_discover_new_direct_edges): Same.
639         (same_node_or_its_all_contexts_clone_p): Same.
640         (cgraph_edge_brings_value_p): Same.
641         (gather_edges_for_value): Same.
642         (create_specialized_node): Same.
643         (find_more_scalar_values_for_callers_subset): Same.
644         (find_more_contexts_for_caller_subset): Same.
645         (copy_plats_to_inter): Same.
646         (intersect_aggregates_with_edge): Same.
647         (find_aggregate_values_for_callers_subset): Same.
648         (cgraph_edge_brings_all_agg_vals_for_node): Same.
649         (decide_about_value): Same.
650         (decide_whether_version_node): Same.
651         (spread_undeadness): Same.
652         (identify_dead_nodes): Same.
653         (ipcp_store_vr_results): Same.
654         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
655         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
656         (redirect_to_unreachable): Same.
657         (edge_set_predicate): Same.
658         (evaluate_conditions_for_known_args): Same.
659         (evaluate_properties_for_edge): Same.
660         (ipa_fn_summary_t::duplicate): Same.
661         (ipa_call_summary_t::duplicate): Same.
662         (dump_ipa_call_summary): Same.
663         (ipa_dump_fn_summary): Same.
664         (eliminated_by_inlining_prob): Same.
665         (set_cond_stmt_execution_predicate): Same.
666         (set_switch_stmt_execution_predicate): Same.
667         (compute_bb_predicates): Same.
668         (will_be_nonconstant_expr_predicate): Same.
669         (phi_result_unknown_predicate): Same.
670         (analyze_function_body): Same.
671         (compute_fn_summary): Same.
672         (estimate_edge_devirt_benefit): Same.
673         (estimate_edge_size_and_time): Same.
674         (estimate_calls_size_and_time): Same.
675         (estimate_node_size_and_time): Same.
676         (remap_edge_change_prob): Same.
677         (remap_edge_summaries): Same.
678         (ipa_merge_fn_summary_after_inlining): Same.
679         (ipa_fn_summary_generate): Same.
680         (inline_read_section): Same.
681         (ipa_fn_summary_read): Same.
682         (ipa_fn_summary_write): Same.
683         * ipa-fnsummary.h: Same.
684         * ipa-hsa.c (ipa_hsa_read_section): Same.
685         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
686         * ipa-icf.c (sem_function::param_used_p): Same.
687         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
688         * ipa-inline.c (edge_badness): Same.
689         (inline_small_functions): Same.
690         * ipa-polymorphic-call.c
691         (ipa_polymorphic_call_context::stream_out): Same.
692         * ipa-predicate.c (predicate::remap_after_duplication): Same.
693         (predicate::remap_after_inlining): Same.
694         (predicate::stream_out): Same.
695         * ipa-predicate.h: Same.
696         * ipa-profile.c (ipa_profile_read_summary): Same.
697         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
698         (count_formal_params): Same.
699         (ipa_dump_param): Same.
700         (ipa_alloc_node_params): Same.
701         (ipa_print_node_jump_functions_for_edge): Same.
702         (ipa_print_node_jump_functions): Same.
703         (ipa_load_from_parm_agg): Same.
704         (get_ancestor_addr_info): Same.
705         (ipa_compute_jump_functions_for_edge): Same.
706         (ipa_analyze_virtual_call_uses): Same.
707         (ipa_analyze_stmt_uses): Same.
708         (ipa_analyze_params_uses_in_bb): Same.
709         (update_jump_functions_after_inlining): Same.
710         (try_decrement_rdesc_refcount): Same.
711         (ipa_impossible_devirt_target): Same.
712         (update_indirect_edges_after_inlining): Same.
713         (combine_controlled_uses_counters): Same.
714         (ipa_edge_args_sum_t::duplicate): Same.
715         (ipa_write_jump_function): Same.
716         (ipa_write_indirect_edge_info): Same.
717         (ipa_write_node_info): Same.
718         (ipa_read_edge_info): Same.
719         (ipa_prop_read_section): Same.
720         (read_replacements_section): Same.
721         * ipa-prop.h (ipa_get_param_count): Same.
722         (ipa_get_param): Same.
723         (ipa_get_type): Same.
724         (ipa_get_param_move_cost): Same.
725         (ipa_set_param_used): Same.
726         (ipa_get_controlled_uses): Same.
727         (ipa_set_controlled_uses): Same.
728         (ipa_get_cs_argument_count): Same.
729         * ipa-pure-const.c (analyze_function): Same.
730         (pure_const_read_summary): Same.
731         * ipa-ref.h: Same.
732         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
733         * ipa-split.c (test_nonssa_use): Same.
734         (dump_split_point): Same.
735         (dominated_by_forbidden): Same.
736         (split_part_set_ssa_name_p): Same.
737         (find_split_points): Same.
738         * ira-build.c (finish_loop_tree_nodes): Same.
739         (low_pressure_loop_node_p): Same.
740         * ira-color.c (ira_reuse_stack_slot): Same.
741         * ira-int.h: Same.
742         * ira.c (setup_reg_equiv): Same.
743         (print_insn_chain): Same.
744         (ira): Same.
745         * loop-doloop.c (doloop_condition_get): Same.
746         (add_test): Same.
747         (record_reg_sets): Same.
748         (doloop_optimize): Same.
749         * loop-init.c (loop_optimizer_init): Same.
750         (fix_loop_structure): Same.
751         * loop-invariant.c (merge_identical_invariants): Same.
752         (compute_always_reached): Same.
753         (find_exits): Same.
754         (may_assign_reg_p): Same.
755         (find_invariants_bb): Same.
756         (find_invariants_body): Same.
757         (replace_uses): Same.
758         (can_move_invariant_reg): Same.
759         (free_inv_motion_data): Same.
760         (move_single_loop_invariants): Same.
761         (change_pressure): Same.
762         (mark_ref_regs): Same.
763         (calculate_loop_reg_pressure): Same.
764         * loop-iv.c (biv_entry_hasher::equal): Same.
765         (iv_extend_to_rtx_code): Same.
766         (check_iv_ref_table_size): Same.
767         (clear_iv_info): Same.
768         (latch_dominating_def): Same.
769         (iv_get_reaching_def): Same.
770         (iv_constant): Same.
771         (iv_subreg): Same.
772         (iv_extend): Same.
773         (iv_neg): Same.
774         (iv_add): Same.
775         (iv_mult): Same.
776         (get_biv_step): Same.
777         (record_iv): Same.
778         (analyzed_for_bivness_p): Same.
779         (record_biv): Same.
780         (iv_analyze_biv): Same.
781         (iv_analyze_expr): Same.
782         (iv_analyze_def): Same.
783         (iv_analyze_op): Same.
784         (iv_analyze): Same.
785         (iv_analyze_result): Same.
786         (biv_p): Same.
787         (eliminate_implied_conditions): Same.
788         (simplify_using_initial_values): Same.
789         (shorten_into_mode): Same.
790         (canonicalize_iv_subregs): Same.
791         (determine_max_iter): Same.
792         (check_simple_exit): Same.
793         (find_simple_exit): Same.
794         (get_simple_loop_desc): Same.
795         * loop-unroll.c (report_unroll): Same.
796         (decide_unrolling): Same.
797         (unroll_loops): Same.
798         (loop_exit_at_end_p): Same.
799         (decide_unroll_constant_iterations): Same.
800         (unroll_loop_constant_iterations): Same.
801         (compare_and_jump_seq): Same.
802         (unroll_loop_runtime_iterations): Same.
803         (decide_unroll_stupid): Same.
804         (unroll_loop_stupid): Same.
805         (referenced_in_one_insn_in_loop_p): Same.
806         (reset_debug_uses_in_loop): Same.
807         (analyze_iv_to_split_insn): Same.
808         * lra-eliminations.c (lra_debug_elim_table): Same.
809         (setup_can_eliminate): Same.
810         (form_sum): Same.
811         (lra_get_elimination_hard_regno): Same.
812         (lra_eliminate_regs_1): Same.
813         (eliminate_regs_in_insn): Same.
814         (update_reg_eliminate): Same.
815         (init_elimination): Same.
816         (lra_eliminate): Same.
817         * lra-int.h: Same.
818         * lra-lives.c (initiate_live_solver): Same.
819         * lra-remat.c (create_remat_bb_data): Same.
820         * lra-spills.c (lra_spill): Same.
821         * lra.c (lra_set_insn_recog_data): Same.
822         (lra_set_used_insn_alternative_by_uid): Same.
823         (init_reg_info): Same.
824         (expand_reg_info): Same.
825         * lto-cgraph.c (output_symtab): Same.
826         (read_identifier): Same.
827         (get_alias_symbol): Same.
828         (input_node): Same.
829         (input_varpool_node): Same.
830         (input_ref): Same.
831         (input_edge): Same.
832         (input_cgraph_1): Same.
833         (input_refs): Same.
834         (input_symtab): Same.
835         (input_offload_tables): Same.
836         (output_cgraph_opt_summary): Same.
837         (input_edge_opt_summary): Same.
838         (input_cgraph_opt_section): Same.
839         * lto-section-in.c (lto_free_raw_section_data): Same.
840         (lto_create_simple_input_block): Same.
841         (lto_free_function_in_decl_state_for_node): Same.
842         * lto-streamer-in.c (lto_tag_check_set): Same.
843         (lto_location_cache::revert_location_cache): Same.
844         (lto_location_cache::input_location): Same.
845         (lto_input_location): Same.
846         (stream_input_location_now): Same.
847         (lto_input_tree_ref): Same.
848         (lto_input_eh_catch_list): Same.
849         (input_eh_region): Same.
850         (lto_init_eh): Same.
851         (make_new_block): Same.
852         (input_cfg): Same.
853         (fixup_call_stmt_edges): Same.
854         (input_struct_function_base): Same.
855         (input_function): Same.
856         (lto_read_body_or_constructor): Same.
857         (lto_read_tree_1): Same.
858         (lto_read_tree): Same.
859         (lto_input_scc): Same.
860         (lto_input_tree_1): Same.
861         (lto_input_toplevel_asms): Same.
862         (lto_input_mode_table): Same.
863         (lto_reader_init): Same.
864         (lto_data_in_create): Same.
865         * lto-streamer-out.c (output_cfg): Same.
866         * lto-streamer.h: Same.
867         * modulo-sched.c (duplicate_insns_of_cycles): Same.
868         (generate_prolog_epilog): Same.
869         (mark_loop_unsched): Same.
870         (dump_insn_location): Same.
871         (loop_canon_p): Same.
872         (sms_schedule): Same.
873         * omp-expand.c (expand_omp_for_ordered_loops): Same.
874         (expand_omp_for_generic): Same.
875         (expand_omp_for_static_nochunk): Same.
876         (expand_omp_for_static_chunk): Same.
877         (expand_omp_simd): Same.
878         (expand_omp_taskloop_for_inner): Same.
879         (expand_oacc_for): Same.
880         (expand_omp_atomic_pipeline): Same.
881         (mark_loops_in_oacc_kernels_region): Same.
882         * omp-offload.c (oacc_xform_loop): Same.
883         * omp-simd-clone.c (simd_clone_adjust): Same.
884         * optabs-query.c (get_traditional_extraction_insn): Same.
885         * optabs.c (expand_vector_broadcast): Same.
886         (expand_binop_directly): Same.
887         (expand_twoval_unop): Same.
888         (expand_twoval_binop): Same.
889         (expand_unop_direct): Same.
890         (emit_indirect_jump): Same.
891         (emit_conditional_move): Same.
892         (emit_conditional_neg_or_complement): Same.
893         (emit_conditional_add): Same.
894         (vector_compare_rtx): Same.
895         (expand_vec_perm_1): Same.
896         (expand_vec_perm_const): Same.
897         (expand_vec_cond_expr): Same.
898         (expand_vec_series_expr): Same.
899         (maybe_emit_atomic_exchange): Same.
900         (maybe_emit_sync_lock_test_and_set): Same.
901         (expand_atomic_compare_and_swap): Same.
902         (expand_atomic_load): Same.
903         (expand_atomic_store): Same.
904         (maybe_emit_op): Same.
905         (valid_multiword_target_p): Same.
906         (create_integer_operand): Same.
907         (maybe_legitimize_operand_same_code): Same.
908         (maybe_legitimize_operand): Same.
909         (create_convert_operand_from_type): Same.
910         (can_reuse_operands_p): Same.
911         (maybe_legitimize_operands): Same.
912         (maybe_gen_insn): Same.
913         (maybe_expand_insn): Same.
914         (maybe_expand_jump_insn): Same.
915         (expand_insn): Same.
916         * optabs.h (create_expand_operand): Same.
917         (create_fixed_operand): Same.
918         (create_output_operand): Same.
919         (create_input_operand): Same.
920         (create_convert_operand_to): Same.
921         (create_convert_operand_from): Same.
922         * optinfo.h: Same.
923         * poly-int.h: Same.
924         * predict.c (optimize_insn_for_speed_p): Same.
925         (optimize_loop_for_size_p): Same.
926         (optimize_loop_for_speed_p): Same.
927         (optimize_loop_nest_for_speed_p): Same.
928         (get_base_value): Same.
929         (predicted_by_loop_heuristics_p): Same.
930         (predict_extra_loop_exits): Same.
931         (predict_loops): Same.
932         (predict_paths_for_bb): Same.
933         (predict_paths_leading_to): Same.
934         (propagate_freq): Same.
935         (pass_profile::execute): Same.
936         * predict.h: Same.
937         * profile-count.c (profile_count::differs_from_p): Same.
938         (profile_probability::differs_lot_from_p): Same.
939         * profile-count.h: Same.
940         * profile.c (branch_prob): Same.
941         * regrename.c (free_chain_data): Same.
942         (mark_conflict): Same.
943         (create_new_chain): Same.
944         (merge_overlapping_regs): Same.
945         (init_rename_info): Same.
946         (merge_chains): Same.
947         (regrename_analyze): Same.
948         (regrename_do_replace): Same.
949         (scan_rtx_reg): Same.
950         (record_out_operands): Same.
951         (build_def_use): Same.
952         * regrename.h: Same.
953         * reload.h: Same.
954         * reload1.c (init_reload): Same.
955         (maybe_fix_stack_asms): Same.
956         (copy_reloads): Same.
957         (count_pseudo): Same.
958         (count_spilled_pseudo): Same.
959         (find_reg): Same.
960         (find_reload_regs): Same.
961         (select_reload_regs): Same.
962         (spill_hard_reg): Same.
963         (fixup_eh_region_note): Same.
964         (set_reload_reg): Same.
965         (allocate_reload_reg): Same.
966         (compute_reload_subreg_offset): Same.
967         (reload_adjust_reg_for_icode): Same.
968         (emit_input_reload_insns): Same.
969         (emit_output_reload_insns): Same.
970         (do_input_reload): Same.
971         (inherit_piecemeal_p): Same.
972         * rtl.h: Same.
973         * sanopt.c (maybe_get_dominating_check): Same.
974         (maybe_optimize_ubsan_ptr_ifn): Same.
975         (can_remove_asan_check): Same.
976         (maybe_optimize_asan_check_ifn): Same.
977         (sanopt_optimize_walker): Same.
978         * sched-deps.c (add_dependence_list): Same.
979         (chain_to_prev_insn): Same.
980         (add_insn_mem_dependence): Same.
981         (create_insn_reg_set): Same.
982         (maybe_extend_reg_info_p): Same.
983         (sched_analyze_reg): Same.
984         (sched_analyze_1): Same.
985         (get_implicit_reg_pending_clobbers): Same.
986         (chain_to_prev_insn_p): Same.
987         (deps_analyze_insn): Same.
988         (deps_start_bb): Same.
989         (sched_free_deps): Same.
990         (init_deps): Same.
991         (init_deps_reg_last): Same.
992         (free_deps): Same.
993         * sched-ebb.c: Same.
994         * sched-int.h: Same.
995         * sched-rgn.c (add_branch_dependences): Same.
996         (concat_insn_mem_list): Same.
997         (deps_join): Same.
998         (sched_rgn_compute_dependencies): Same.
999         * sel-sched-ir.c (reset_target_context): Same.
1000         (copy_deps_context): Same.
1001         (init_id_from_df): Same.
1002         (has_dependence_p): Same.
1003         (change_loops_latches): Same.
1004         (bb_top_order_comparator): Same.
1005         (make_region_from_loop_preheader): Same.
1006         (sel_init_pipelining): Same.
1007         (get_loop_nest_for_rgn): Same.
1008         (make_regions_from_the_rest): Same.
1009         (sel_is_loop_preheader_p): Same.
1010         * sel-sched-ir.h (inner_loop_header_p): Same.
1011         (get_all_loop_exits): Same.
1012         * selftest.h: Same.
1013         * sese.c (sese_build_liveouts): Same.
1014         (sese_insert_phis_for_liveouts): Same.
1015         * sese.h (defined_in_sese_p): Same.
1016         * sreal.c (sreal::stream_out): Same.
1017         * sreal.h: Same.
1018         * streamer-hooks.h: Same.
1019         * target-globals.c (save_target_globals): Same.
1020         * target-globals.h: Same.
1021         * target.def: Same.
1022         * target.h: Same.
1023         * targhooks.c (default_has_ifunc_p): Same.
1024         (default_empty_mask_is_expensive): Same.
1025         (default_init_cost): Same.
1026         * targhooks.h: Same.
1027         * toplev.c: Same.
1028         * tree-affine.c (aff_combination_mult): Same.
1029         (aff_combination_expand): Same.
1030         (aff_combination_constant_multiple_p): Same.
1031         * tree-affine.h: Same.
1032         * tree-cfg.c (build_gimple_cfg): Same.
1033         (replace_loop_annotate_in_block): Same.
1034         (replace_uses_by): Same.
1035         (remove_bb): Same.
1036         (dump_cfg_stats): Same.
1037         (gimple_duplicate_sese_region): Same.
1038         (gimple_duplicate_sese_tail): Same.
1039         (move_block_to_fn): Same.
1040         (replace_block_vars_by_duplicates): Same.
1041         (move_sese_region_to_fn): Same.
1042         (print_loops_bb): Same.
1043         (print_loop): Same.
1044         (print_loops): Same.
1045         (debug): Same.
1046         (debug_loops): Same.
1047         * tree-cfg.h: Same.
1048         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
1049         (chrec_fold_multiply_poly_poly): Same.
1050         (chrec_evaluate): Same.
1051         (chrec_component_in_loop_num): Same.
1052         (reset_evolution_in_loop): Same.
1053         (is_multivariate_chrec): Same.
1054         (chrec_contains_symbols): Same.
1055         (nb_vars_in_chrec): Same.
1056         (chrec_convert_1): Same.
1057         (chrec_convert_aggressive): Same.
1058         * tree-chrec.h: Same.
1059         * tree-core.h: Same.
1060         * tree-data-ref.c (dump_data_dependence_relation): Same.
1061         (canonicalize_base_object_address): Same.
1062         (data_ref_compare_tree): Same.
1063         (prune_runtime_alias_test_list): Same.
1064         (get_segment_min_max): Same.
1065         (create_intersect_range_checks): Same.
1066         (conflict_fn_no_dependence): Same.
1067         (object_address_invariant_in_loop_p): Same.
1068         (analyze_ziv_subscript): Same.
1069         (analyze_siv_subscript_cst_affine): Same.
1070         (analyze_miv_subscript): Same.
1071         (analyze_overlapping_iterations): Same.
1072         (build_classic_dist_vector_1): Same.
1073         (add_other_self_distances): Same.
1074         (same_access_functions): Same.
1075         (build_classic_dir_vector): Same.
1076         (subscript_dependence_tester_1): Same.
1077         (subscript_dependence_tester): Same.
1078         (access_functions_are_affine_or_constant_p): Same.
1079         (get_references_in_stmt): Same.
1080         (loop_nest_has_data_refs): Same.
1081         (graphite_find_data_references_in_stmt): Same.
1082         (find_data_references_in_bb): Same.
1083         (get_base_for_alignment): Same.
1084         (find_loop_nest_1): Same.
1085         (find_loop_nest): Same.
1086         * tree-data-ref.h (dr_alignment): Same.
1087         (ddr_dependence_level): Same.
1088         * tree-if-conv.c (fold_build_cond_expr): Same.
1089         (add_to_predicate_list): Same.
1090         (add_to_dst_predicate_list): Same.
1091         (phi_convertible_by_degenerating_args): Same.
1092         (idx_within_array_bound): Same.
1093         (all_preds_critical_p): Same.
1094         (pred_blocks_visited_p): Same.
1095         (predicate_bbs): Same.
1096         (build_region): Same.
1097         (if_convertible_loop_p_1): Same.
1098         (is_cond_scalar_reduction): Same.
1099         (predicate_scalar_phi): Same.
1100         (remove_conditions_and_labels): Same.
1101         (combine_blocks): Same.
1102         (version_loop_for_if_conversion): Same.
1103         (versionable_outer_loop_p): Same.
1104         (ifcvt_local_dce): Same.
1105         (tree_if_conversion): Same.
1106         (pass_if_conversion::gate): Same.
1107         * tree-if-conv.h: Same.
1108         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
1109         * tree-loop-distribution.c (bb_top_order_cmp): Same.
1110         (free_rdg): Same.
1111         (stmt_has_scalar_dependences_outside_loop): Same.
1112         (copy_loop_before): Same.
1113         (create_bb_after_loop): Same.
1114         (const_with_all_bytes_same): Same.
1115         (generate_memset_builtin): Same.
1116         (generate_memcpy_builtin): Same.
1117         (destroy_loop): Same.
1118         (build_rdg_partition_for_vertex): Same.
1119         (compute_access_range): Same.
1120         (data_ref_segment_size): Same.
1121         (latch_dominated_by_data_ref): Same.
1122         (compute_alias_check_pairs): Same.
1123         (fuse_memset_builtins): Same.
1124         (finalize_partitions): Same.
1125         (find_seed_stmts_for_distribution): Same.
1126         (prepare_perfect_loop_nest): Same.
1127         * tree-parloops.c (lambda_transform_legal_p): Same.
1128         (loop_parallel_p): Same.
1129         (reduc_stmt_res): Same.
1130         (add_field_for_name): Same.
1131         (create_call_for_reduction_1): Same.
1132         (replace_uses_in_bb_by): Same.
1133         (transform_to_exit_first_loop_alt): Same.
1134         (try_transform_to_exit_first_loop_alt): Same.
1135         (transform_to_exit_first_loop): Same.
1136         (num_phis): Same.
1137         (gen_parallel_loop): Same.
1138         (gather_scalar_reductions): Same.
1139         (get_omp_data_i_param): Same.
1140         (try_create_reduction_list): Same.
1141         (oacc_entry_exit_single_gang): Same.
1142         (parallelize_loops): Same.
1143         * tree-pass.h: Same.
1144         * tree-predcom.c (determine_offset): Same.
1145         (last_always_executed_block): Same.
1146         (split_data_refs_to_components): Same.
1147         (suitable_component_p): Same.
1148         (valid_initializer_p): Same.
1149         (find_looparound_phi): Same.
1150         (insert_looparound_copy): Same.
1151         (add_looparound_copies): Same.
1152         (determine_roots_comp): Same.
1153         (predcom_tmp_var): Same.
1154         (initialize_root_vars): Same.
1155         (initialize_root_vars_store_elim_1): Same.
1156         (initialize_root_vars_store_elim_2): Same.
1157         (finalize_eliminated_stores): Same.
1158         (initialize_root_vars_lm): Same.
1159         (remove_stmt): Same.
1160         (determine_unroll_factor): Same.
1161         (execute_pred_commoning_cbck): Same.
1162         (base_names_in_chain_on): Same.
1163         (combine_chains): Same.
1164         (pcom_stmt_dominates_stmt_p): Same.
1165         (try_combine_chains): Same.
1166         (prepare_initializers_chain_store_elim): Same.
1167         (prepare_initializers_chain): Same.
1168         (prepare_initializers): Same.
1169         (prepare_finalizers_chain): Same.
1170         (prepare_finalizers): Same.
1171         (insert_init_seqs): Same.
1172         * tree-scalar-evolution.c (loop_phi_node_p): Same.
1173         (compute_overall_effect_of_inner_loop): Same.
1174         (add_to_evolution_1): Same.
1175         (add_to_evolution): Same.
1176         (follow_ssa_edge_binary): Same.
1177         (follow_ssa_edge_expr): Same.
1178         (backedge_phi_arg_p): Same.
1179         (follow_ssa_edge_in_condition_phi_branch): Same.
1180         (follow_ssa_edge_in_condition_phi): Same.
1181         (follow_ssa_edge_inner_loop_phi): Same.
1182         (follow_ssa_edge): Same.
1183         (analyze_evolution_in_loop): Same.
1184         (analyze_initial_condition): Same.
1185         (interpret_loop_phi): Same.
1186         (interpret_condition_phi): Same.
1187         (interpret_rhs_expr): Same.
1188         (interpret_expr): Same.
1189         (interpret_gimple_assign): Same.
1190         (analyze_scalar_evolution_1): Same.
1191         (analyze_scalar_evolution): Same.
1192         (analyze_scalar_evolution_for_address_of): Same.
1193         (get_instantiated_value_entry): Same.
1194         (loop_closed_phi_def): Same.
1195         (instantiate_scev_name): Same.
1196         (instantiate_scev_poly): Same.
1197         (instantiate_scev_binary): Same.
1198         (instantiate_scev_convert): Same.
1199         (instantiate_scev_not): Same.
1200         (instantiate_scev_r): Same.
1201         (instantiate_scev): Same.
1202         (resolve_mixers): Same.
1203         (initialize_scalar_evolutions_analyzer): Same.
1204         (scev_reset_htab): Same.
1205         (scev_reset): Same.
1206         (derive_simple_iv_with_niters): Same.
1207         (simple_iv_with_niters): Same.
1208         (expression_expensive_p): Same.
1209         (final_value_replacement_loop): Same.
1210         * tree-scalar-evolution.h (block_before_loop): Same.
1211         * tree-ssa-address.h: Same.
1212         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
1213         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
1214         (record_edge_info): Same.
1215         * tree-ssa-live.c (var_map_base_fini): Same.
1216         (remove_unused_locals): Same.
1217         * tree-ssa-live.h: Same.
1218         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
1219         (pass_ch_vect::execute): Same.
1220         (pass_ch::process_loop_p): Same.
1221         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
1222         (movement_possibility): Same.
1223         (outermost_invariant_loop): Same.
1224         (stmt_cost): Same.
1225         (determine_max_movement): Same.
1226         (invariantness_dom_walker::before_dom_children): Same.
1227         (move_computations): Same.
1228         (may_move_till): Same.
1229         (force_move_till_op): Same.
1230         (force_move_till): Same.
1231         (memref_free): Same.
1232         (record_mem_ref_loc): Same.
1233         (set_ref_stored_in_loop): Same.
1234         (mark_ref_stored): Same.
1235         (sort_bbs_in_loop_postorder_cmp): Same.
1236         (sort_locs_in_loop_postorder_cmp): Same.
1237         (analyze_memory_references): Same.
1238         (mem_refs_may_alias_p): Same.
1239         (find_ref_loc_in_loop_cmp): Same.
1240         (rewrite_mem_ref_loc::operator): Same.
1241         (first_mem_ref_loc_1::operator): Same.
1242         (sm_set_flag_if_changed::operator): Same.
1243         (execute_sm_if_changed_flag_set): Same.
1244         (execute_sm): Same.
1245         (hoist_memory_references): Same.
1246         (ref_always_accessed::operator): Same.
1247         (refs_independent_p): Same.
1248         (record_dep_loop): Same.
1249         (ref_indep_loop_p_1): Same.
1250         (ref_indep_loop_p): Same.
1251         (can_sm_ref_p): Same.
1252         (find_refs_for_sm): Same.
1253         (loop_suitable_for_sm): Same.
1254         (store_motion_loop): Same.
1255         (store_motion): Same.
1256         (fill_always_executed_in): Same.
1257         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
1258         (estimated_unrolled_size): Same.
1259         (loop_edge_to_cancel): Same.
1260         (remove_exits_and_undefined_stmts): Same.
1261         (remove_redundant_iv_tests): Same.
1262         (unloop_loops): Same.
1263         (estimated_peeled_sequence_size): Same.
1264         (try_peel_loop): Same.
1265         (canonicalize_loop_induction_variables): Same.
1266         (canonicalize_induction_variables): Same.
1267         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
1268         (name_info): Same.
1269         (stmt_after_inc_pos): Same.
1270         (contains_abnormal_ssa_name_p): Same.
1271         (niter_for_exit): Same.
1272         (find_bivs): Same.
1273         (mark_bivs): Same.
1274         (find_givs_in_bb): Same.
1275         (find_induction_variables): Same.
1276         (find_interesting_uses_cond): Same.
1277         (outermost_invariant_loop_for_expr): Same.
1278         (idx_find_step): Same.
1279         (add_candidate_1): Same.
1280         (add_iv_candidate_derived_from_uses): Same.
1281         (alloc_use_cost_map): Same.
1282         (prepare_decl_rtl): Same.
1283         (generic_predict_doloop_p): Same.
1284         (computation_cost): Same.
1285         (determine_common_wider_type): Same.
1286         (get_computation_aff_1): Same.
1287         (get_use_type): Same.
1288         (determine_group_iv_cost_address): Same.
1289         (iv_period): Same.
1290         (difference_cannot_overflow_p): Same.
1291         (may_eliminate_iv): Same.
1292         (determine_set_costs): Same.
1293         (cheaper_cost_pair): Same.
1294         (compare_cost_pair): Same.
1295         (iv_ca_cand_for_group): Same.
1296         (iv_ca_recount_cost): Same.
1297         (iv_ca_set_remove_invs): Same.
1298         (iv_ca_set_no_cp): Same.
1299         (iv_ca_set_add_invs): Same.
1300         (iv_ca_set_cp): Same.
1301         (iv_ca_add_group): Same.
1302         (iv_ca_cost): Same.
1303         (iv_ca_compare_deps): Same.
1304         (iv_ca_delta_reverse): Same.
1305         (iv_ca_delta_commit): Same.
1306         (iv_ca_cand_used_p): Same.
1307         (iv_ca_delta_free): Same.
1308         (iv_ca_new): Same.
1309         (iv_ca_free): Same.
1310         (iv_ca_dump): Same.
1311         (iv_ca_extend): Same.
1312         (iv_ca_narrow): Same.
1313         (iv_ca_prune): Same.
1314         (cheaper_cost_with_cand): Same.
1315         (iv_ca_replace): Same.
1316         (try_add_cand_for): Same.
1317         (get_initial_solution): Same.
1318         (try_improve_iv_set): Same.
1319         (find_optimal_iv_set_1): Same.
1320         (create_new_iv): Same.
1321         (rewrite_use_compare): Same.
1322         (remove_unused_ivs): Same.
1323         (determine_scaling_factor): Same.
1324         * tree-ssa-loop-ivopts.h: Same.
1325         * tree-ssa-loop-manip.c (create_iv): Same.
1326         (compute_live_loop_exits): Same.
1327         (add_exit_phi): Same.
1328         (add_exit_phis): Same.
1329         (find_uses_to_rename_use): Same.
1330         (find_uses_to_rename_def): Same.
1331         (find_uses_to_rename_in_loop): Same.
1332         (rewrite_into_loop_closed_ssa): Same.
1333         (check_loop_closed_ssa_bb): Same.
1334         (split_loop_exit_edge): Same.
1335         (ip_end_pos): Same.
1336         (ip_normal_pos): Same.
1337         (copy_phi_node_args): Same.
1338         (gimple_duplicate_loop_to_header_edge): Same.
1339         (can_unroll_loop_p): Same.
1340         (determine_exit_conditions): Same.
1341         (scale_dominated_blocks_in_loop): Same.
1342         (niter_for_unrolled_loop): Same.
1343         (tree_transform_and_unroll_loop): Same.
1344         (rewrite_all_phi_nodes_with_iv): Same.
1345         * tree-ssa-loop-manip.h: Same.
1346         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
1347         (number_of_iterations_ne): Same.
1348         (assert_no_overflow_lt): Same.
1349         (assert_loop_rolls_lt): Same.
1350         (number_of_iterations_lt): Same.
1351         (adjust_cond_for_loop_until_wrap): Same.
1352         (tree_simplify_using_condition): Same.
1353         (simplify_using_initial_conditions): Same.
1354         (simplify_using_outer_evolutions): Same.
1355         (loop_only_exit_p): Same.
1356         (ssa_defined_by_minus_one_stmt_p): Same.
1357         (number_of_iterations_popcount): Same.
1358         (number_of_iterations_exit): Same.
1359         (find_loop_niter): Same.
1360         (finite_loop_p): Same.
1361         (chain_of_csts_start): Same.
1362         (get_val_for): Same.
1363         (loop_niter_by_eval): Same.
1364         (derive_constant_upper_bound_ops): Same.
1365         (do_warn_aggressive_loop_optimizations): Same.
1366         (record_estimate): Same.
1367         (get_cst_init_from_scev): Same.
1368         (record_nonwrapping_iv): Same.
1369         (idx_infer_loop_bounds): Same.
1370         (infer_loop_bounds_from_ref): Same.
1371         (infer_loop_bounds_from_array): Same.
1372         (infer_loop_bounds_from_pointer_arith): Same.
1373         (infer_loop_bounds_from_signedness): Same.
1374         (bound_index): Same.
1375         (discover_iteration_bound_by_body_walk): Same.
1376         (maybe_lower_iteration_bound): Same.
1377         (estimate_numbers_of_iterations): Same.
1378         (estimated_loop_iterations): Same.
1379         (estimated_loop_iterations_int): Same.
1380         (max_loop_iterations): Same.
1381         (max_loop_iterations_int): Same.
1382         (likely_max_loop_iterations): Same.
1383         (likely_max_loop_iterations_int): Same.
1384         (estimated_stmt_executions_int): Same.
1385         (max_stmt_executions): Same.
1386         (likely_max_stmt_executions): Same.
1387         (estimated_stmt_executions): Same.
1388         (stmt_dominates_stmt_p): Same.
1389         (nowrap_type_p): Same.
1390         (loop_exits_before_overflow): Same.
1391         (scev_var_range_cant_overflow): Same.
1392         (scev_probably_wraps_p): Same.
1393         (free_numbers_of_iterations_estimates): Same.
1394         * tree-ssa-loop-niter.h: Same.
1395         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
1396         (idx_analyze_ref): Same.
1397         (analyze_ref): Same.
1398         (gather_memory_references_ref): Same.
1399         (mark_nontemporal_store): Same.
1400         (emit_mfence_after_loop): Same.
1401         (may_use_storent_in_loop_p): Same.
1402         (mark_nontemporal_stores): Same.
1403         (should_unroll_loop_p): Same.
1404         (volume_of_dist_vector): Same.
1405         (add_subscript_strides): Same.
1406         (self_reuse_distance): Same.
1407         (insn_to_prefetch_ratio_too_small_p): Same.
1408         * tree-ssa-loop-split.c (split_at_bb_p): Same.
1409         (patch_loop_exit): Same.
1410         (find_or_create_guard_phi): Same.
1411         (easy_exit_values): Same.
1412         (connect_loop_phis): Same.
1413         (connect_loops): Same.
1414         (compute_new_first_bound): Same.
1415         (split_loop): Same.
1416         (tree_ssa_split_loops): Same.
1417         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
1418         (is_maybe_undefined): Same.
1419         (tree_may_unswitch_on): Same.
1420         (simplify_using_entry_checks): Same.
1421         (tree_unswitch_single_loop): Same.
1422         (tree_unswitch_loop): Same.
1423         (tree_unswitch_outer_loop): Same.
1424         (empty_bb_without_guard_p): Same.
1425         (used_outside_loop_p): Same.
1426         (get_vop_from_header): Same.
1427         (hoist_guard): Same.
1428         * tree-ssa-loop.c (gate_oacc_kernels): Same.
1429         (get_lsm_tmp_name): Same.
1430         * tree-ssa-loop.h: Same.
1431         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
1432         (build_and_add_sum): Same.
1433         (no_side_effect_bb): Same.
1434         (get_ops): Same.
1435         (linearize_expr): Same.
1436         (should_break_up_subtract): Same.
1437         (linearize_expr_tree): Same.
1438         * tree-ssa-scopedtables.c: Same.
1439         * tree-ssa-scopedtables.h: Same.
1440         * tree-ssa-structalias.c (condense_visit): Same.
1441         (label_visit): Same.
1442         (dump_pred_graph): Same.
1443         (perform_var_substitution): Same.
1444         (move_complex_constraints): Same.
1445         (remove_preds_and_fake_succs): Same.
1446         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
1447         (determine_bb_domination_status): Same.
1448         (duplicate_thread_path): Same.
1449         (thread_through_all_blocks): Same.
1450         * tree-ssa-threadupdate.h: Same.
1451         * tree-streamer-in.c (streamer_read_string_cst): Same.
1452         (input_identifier): Same.
1453         (unpack_ts_type_common_value_fields): Same.
1454         (unpack_ts_block_value_fields): Same.
1455         (unpack_ts_translation_unit_decl_value_fields): Same.
1456         (unpack_ts_omp_clause_value_fields): Same.
1457         (streamer_read_tree_bitfields): Same.
1458         (streamer_alloc_tree): Same.
1459         (lto_input_ts_common_tree_pointers): Same.
1460         (lto_input_ts_vector_tree_pointers): Same.
1461         (lto_input_ts_poly_tree_pointers): Same.
1462         (lto_input_ts_complex_tree_pointers): Same.
1463         (lto_input_ts_decl_minimal_tree_pointers): Same.
1464         (lto_input_ts_decl_common_tree_pointers): Same.
1465         (lto_input_ts_decl_non_common_tree_pointers): Same.
1466         (lto_input_ts_decl_with_vis_tree_pointers): Same.
1467         (lto_input_ts_field_decl_tree_pointers): Same.
1468         (lto_input_ts_function_decl_tree_pointers): Same.
1469         (lto_input_ts_type_common_tree_pointers): Same.
1470         (lto_input_ts_type_non_common_tree_pointers): Same.
1471         (lto_input_ts_list_tree_pointers): Same.
1472         (lto_input_ts_vec_tree_pointers): Same.
1473         (lto_input_ts_exp_tree_pointers): Same.
1474         (lto_input_ts_block_tree_pointers): Same.
1475         (lto_input_ts_binfo_tree_pointers): Same.
1476         (lto_input_ts_constructor_tree_pointers): Same.
1477         (lto_input_ts_omp_clause_tree_pointers): Same.
1478         (streamer_read_tree_body): Same.
1479         * tree-streamer.h: Same.
1480         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
1481         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
1482         (vect_analyze_possibly_independent_ddr): Same.
1483         (vect_analyze_data_ref_dependence): Same.
1484         (vect_compute_data_ref_alignment): Same.
1485         (vect_enhance_data_refs_alignment): Same.
1486         (vect_analyze_data_ref_access): Same.
1487         (vect_check_gather_scatter): Same.
1488         (vect_find_stmt_data_reference): Same.
1489         (vect_create_addr_base_for_vector_ref): Same.
1490         (vect_setup_realignment): Same.
1491         (vect_supportable_dr_alignment): Same.
1492         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
1493         (adjust_phi_and_debug_stmts): Same.
1494         (vect_set_loop_mask): Same.
1495         (add_preheader_seq): Same.
1496         (vect_maybe_permute_loop_masks): Same.
1497         (vect_set_loop_masks_directly): Same.
1498         (vect_set_loop_condition_masked): Same.
1499         (vect_set_loop_condition_unmasked): Same.
1500         (slpeel_duplicate_current_defs_from_edges): Same.
1501         (slpeel_add_loop_guard): Same.
1502         (slpeel_can_duplicate_loop_p): Same.
1503         (create_lcssa_for_virtual_phi): Same.
1504         (iv_phi_p): Same.
1505         (vect_update_ivs_after_vectorizer): Same.
1506         (vect_gen_vector_loop_niters_mult_vf): Same.
1507         (slpeel_update_phi_nodes_for_loops): Same.
1508         (slpeel_update_phi_nodes_for_guard1): Same.
1509         (find_guard_arg): Same.
1510         (slpeel_update_phi_nodes_for_guard2): Same.
1511         (slpeel_update_phi_nodes_for_lcssa): Same.
1512         (vect_do_peeling): Same.
1513         (vect_create_cond_for_alias_checks): Same.
1514         (vect_loop_versioning): Same.
1515         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
1516         (vect_inner_phi_in_double_reduction_p): Same.
1517         (vect_analyze_scalar_cycles_1): Same.
1518         (vect_fixup_scalar_cycles_with_patterns): Same.
1519         (vect_get_loop_niters): Same.
1520         (bb_in_loop_p): Same.
1521         (vect_get_max_nscalars_per_iter): Same.
1522         (vect_verify_full_masking): Same.
1523         (vect_compute_single_scalar_iteration_cost): Same.
1524         (vect_analyze_loop_form_1): Same.
1525         (vect_analyze_loop_form): Same.
1526         (vect_active_double_reduction_p): Same.
1527         (vect_analyze_loop_operations): Same.
1528         (neutral_op_for_slp_reduction): Same.
1529         (vect_is_simple_reduction): Same.
1530         (vect_model_reduction_cost): Same.
1531         (get_initial_def_for_reduction): Same.
1532         (get_initial_defs_for_reduction): Same.
1533         (vect_create_epilog_for_reduction): Same.
1534         (vectorize_fold_left_reduction): Same.
1535         (vectorizable_reduction): Same.
1536         (vectorizable_induction): Same.
1537         (vectorizable_live_operation): Same.
1538         (loop_niters_no_overflow): Same.
1539         (vect_get_loop_mask): Same.
1540         (vect_transform_loop_stmt): Same.
1541         (vect_transform_loop): Same.
1542         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
1543         (vect_determine_precisions): Same.
1544         (vect_pattern_recog_1): Same.
1545         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
1546         * tree-vect-stmts.c (stmt_vectype): Same.
1547         (process_use): Same.
1548         (vect_init_vector_1): Same.
1549         (vect_truncate_gather_scatter_offset): Same.
1550         (get_group_load_store_type): Same.
1551         (vect_build_gather_load_calls): Same.
1552         (vect_get_strided_load_store_ops): Same.
1553         (vectorizable_simd_clone_call): Same.
1554         (vectorizable_store): Same.
1555         (permute_vec_elements): Same.
1556         (vectorizable_load): Same.
1557         (vect_transform_stmt): Same.
1558         (supportable_widening_operation): Same.
1559         * tree-vectorizer.c (vec_info::replace_stmt): Same.
1560         (vec_info::free_stmt_vec_info): Same.
1561         (vect_free_loop_info_assumptions): Same.
1562         (vect_loop_vectorized_call): Same.
1563         (set_uid_loop_bbs): Same.
1564         (vectorize_loops): Same.
1565         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
1566         * tree.c (add_tree_to_fld_list): Same.
1567         (fld_type_variant_equal_p): Same.
1568         (fld_decl_context): Same.
1569         (fld_incomplete_type_of): Same.
1570         (free_lang_data_in_binfo): Same.
1571         (need_assembler_name_p): Same.
1572         (find_decls_types_r): Same.
1573         (get_eh_types_for_runtime): Same.
1574         (find_decls_types_in_eh_region): Same.
1575         (find_decls_types_in_node): Same.
1576         (assign_assembler_name_if_needed): Same.
1577         * value-prof.c (stream_out_histogram_value): Same.
1578         * value-prof.h: Same.
1579         * var-tracking.c (use_narrower_mode): Same.
1580         (prepare_call_arguments): Same.
1581         (vt_expand_loc_callback): Same.
1582         (resolve_expansions_pending_recursion): Same.
1583         (vt_expand_loc): Same.
1584         * varasm.c (const_hash_1): Same.
1585         (compare_constant): Same.
1586         (tree_output_constant_def): Same.
1587         (simplify_subtraction): Same.
1588         (get_pool_constant): Same.
1589         (output_constant_pool_2): Same.
1590         (output_constant_pool_1): Same.
1591         (mark_constants_in_pattern): Same.
1592         (mark_constant_pool): Same.
1593         (get_section_anchor): Same.
1594         * vr-values.c (compare_range_with_value): Same.
1595         (vr_values::extract_range_from_phi_node): Same.
1596         * vr-values.h: Same.
1597         * web.c (unionfind_union): Same.
1598         * wide-int.h: Same.
1600 2019-07-09  Martin Sebor  <msebor@redhat.com>
1602         PR c++/61339
1603         * align.h: Change class-key from class to struct and vice versa
1604         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
1605         * alloc-pool.h: Same.
1606         * asan.c (shadow_mem_size): Same.
1607         * auto-profile.c: Same.
1608         * basic-block.h: Same.
1609         * bitmap.h: Same.
1610         * cfgexpand.c (set_rtl): Same.
1611         (expand_one_stack_var_at): Same.
1612         * cfghooks.h: Same.
1613         * cfgloop.h: Same.
1614         * cgraph.h: Same.
1615         * config/i386/i386.h: Same.
1616         * df-problems.c (df_print_bb_index): Same.
1617         * df-scan.c: Same.
1618         * df.h (df_single_use): Same.
1619         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
1620         (layout::annotation_line_showed_range_p): Same.
1621         (get_printed_columns): Same.
1622         (correction::ensure_terminated): Same.
1623         (line_corrections::~line_corrections): Same.
1624         * dojump.h: Same.
1625         * dse.c: Same.
1626         * dump-context.h: Same.
1627         * dumpfile.h: Same.
1628         * dwarf2out.c: Same.
1629         * edit-context.c: Same.
1630         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
1631         * flags.h: Same.
1632         * function.c (assign_stack_local): Same.
1633         * function.h: Same.
1634         * gcc.c: Same.
1635         * gcov.c (block_info::block_info): Same.
1636         * genattrtab.c: Same.
1637         * genextract.c: Same.
1638         * genmatch.c (comparison_code_p): Same.
1639         (id_base::id_base): Same.
1640         (decision_tree::print): Same.
1641         * genoutput.c: Same.
1642         * genpreds.c (write_one_predicate_function): Same.
1643         * genrecog.c (validate_pattern): Same.
1644         (find_operand_positions): Same.
1645         (optimize_subroutine_group): Same.
1646         (merge_pattern_transition::merge_pattern_transition): Same.
1647         (merge_pattern_info::merge_pattern_info): Same.
1648         (merge_state_result::merge_state_result): Same.
1649         (merge_into_state): Same.
1650         * gensupport.c: Same.
1651         * gensupport.h: Same.
1652         * ggc-common.c (init_ggc_heuristics): Same.
1653         * ggc-tests.c (test_union): Same.
1654         * gimple-loop-interchange.cc (dump_induction): Same.
1655         * gimple-loop-versioning.cc: Same.
1656         * gimple-match.h (gimple_match_cond::any_else): Same.
1657         * gimple-ssa-backprop.c: Same.
1658         * gimple-ssa-sprintf.c: Same.
1659         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info): Same.
1660         (store_immediate_info::store_immediate_info): Same.
1661         (merged_store_group::apply_stores): Same.
1662         (get_location_for_stmts): Same.
1663         * gimple-ssa-strength-reduction.c: Same.
1664         * gimple-ssa-warn-alloca.c: Same.
1665         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
1666         * godump.c (go_type_decl): Same.
1667         * hash-map-tests.c (test_map_of_strings_to_int): Same.
1668         * hash-map.h: Same.
1669         * hash-set-tests.c (test_set_of_strings): Same.
1670         * hsa-brig.c: Same.
1671         * hsa-common.h: Same.
1672         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
1673         * input.c (assert_loceq): Same.
1674         * input.h: Same.
1675         * ipa-cp.c: Same.
1676         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
1677         * ipa-fnsummary.h: Same.
1678         * ipa-inline.h: Same.
1679         * ipa-prop.h: Same.
1680         * ipa-split.c (visit_bb): Same.
1681         * ira-int.h (minmax_set_iter_next): Same.
1682         * loop-invariant.c: Same.
1683         * loop-iv.c: Same.
1684         * lra-eliminations.c: Same.
1685         * lra-int.h: Same.
1686         * lra-lives.c (mark_regno_dead): Same.
1687         * lra-remat.c: Same.
1688         * lra-spills.c: Same.
1689         * lto-streamer.h: Same.
1690         * mem-stats.h: Same.
1691         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
1692         * omp-low.c (omp_clause_aligned_alignment): Same.
1693         * optabs-query.h (get_vcond_eq_icode): Same.
1694         * optabs.h: Same.
1695         * opts.c (wrap_help): Same.
1696         * poly-int.h: Same.
1697         * predict.c (predict_paths_leading_to_edge): Same.
1698         * pretty-print.h: Same.
1699         * profile-count.h: Same.
1700         * read-md.h: Same.
1701         * read-rtl-function.c: Same.
1702         * ree.c: Same.
1703         * reginfo.c: Same.
1704         * regrename.c: Same.
1705         * regrename.h: Same.
1706         * reload.h: Same.
1707         * rtl-iter.h: Same.
1708         * rtl.h (costs_add_n_insns): Same.
1709         * sanopt.c: Same.
1710         * sched-int.h: Same.
1711         * sel-sched-ir.h: Same.
1712         * selftest.h: Same.
1713         * sese.h (vec_find): Same.
1714         * stmt.c: Same.
1715         * target-globals.h: Same.
1716         * tree-affine.c (aff_combination_find_elt): Same.
1717         * tree-affine.h: Same.
1718         * tree-data-ref.h: Same.
1719         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
1720         * tree-predcom.c: Same.
1721         * tree-scalar-evolution.c (find_var_scev_info): Same.
1722         * tree-ssa-alias.h: Same.
1723         * tree-ssa-ccp.c: Same.
1724         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
1725         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
1726         (rewrite_mem_refs): Same.
1727         (execute_sm_if_changed): Same.
1728         (hoist_memory_references): Same.
1729         * tree-ssa-loop-ivopts.c (operator<=): Same.
1730         * tree-ssa-loop.h: Same.
1731         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
1732         * tree-ssa-structalias.c: Same.
1733         * tree-switch-conversion.h (cluster::cluster): Same.
1734         (simple_cluster::simple_cluster): Same.
1735         * tree-vect-patterns.c (type_conversion_p): Same.
1736         * tree-vectorizer.c (dump_stmt_cost): Same.
1737         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
1738         * tree.c (protected_set_expr_location): Same.
1739         * tree.h (desired_pro_or_demotion_p): Same.
1740         (fndecl_built_in_p): Same.
1741         * unique-ptr-tests.cc: Same.
1742         * var-tracking.c (delete_variable_part): Same.
1743         * varasm.c (assemble_real): Same.
1744         (tree_output_constant_def): Same.
1745         * vec.c: Same.
1746         * wide-int-bitmask.h: Same.
1747         * wide-int.h (decompose): Same.
1749 2019-07-09  Richard Biener  <rguenther@suse.de>
1751         PR tree-optimization/91114
1752         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
1753         find a vector type isn't fatal.
1755 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
1757         * config/aarch64/aarch64-simd.md
1758         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
1759         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
1760         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
1761         (*aarch64_crypto_aese_fused,
1762         *aarch64_crypto_aesd_fused): Update to new definition.
1763         * config/aarch64/aarch64.c
1764         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
1766 2019-07-09  Richard Biener  <rguenther@suse.de>
1768         * gimple-match.h (gimple_match_op::resimplify): New.
1769         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
1770         gimple_resimplify4, gimple_resimplify5): Remove.
1771         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
1772         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
1773         Make static.
1774         (gimple_match_op::resimplify): New.
1775         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
1776         according to availability.  Use gimple_match_op::resimplify. 
1778 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
1780         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
1782 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
1784         * config/arm/crypto.md:
1785         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
1786         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
1787         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
1788         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
1789         * config/arm/arm.c
1790         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
1791         * config/arm/aarch-common-protos.h
1792         (aarch_crypto_can_dual_issue): Remove.
1793         * config/arm/aarch-common.c
1794         (aarch_crypto_can_dual_issue): Likewise.
1795         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
1796         * config/arm/cortex-a53.md: Likewise.
1797         * config/arm/cortex-a57.md: Likewise.
1798         * config/arm/iterators.md:
1799         (CRYPTO_BINARY): Redefine.
1800         (CRYPTO_UNARY): Removed.
1801         (CRYPTO_AES, CRYPTO_AESMC): New.
1803 2019-07-09  Richard Biener  <rguenther@suse.de>
1805         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
1806         (vn_reference_lookup_3): If the main ref has no access path recorded
1807         but orig_ref has use it to do access-path based disambiguation.
1808         (vn_reference_lookup_pieces): Adjust.
1809         (vn_reference_lookup): Pass down original ref if we valueized.
1811 2019-07-09  Martin Liska  <mliska@suse.cz>
1813         * doc/extend.texi: Document influence on loop
1814         optimizers.
1816 2019-07-09  Martin Liska  <mliska@suse.cz>
1818         * lto-compress.c (lto_normalized_zstd_level): Do not use
1819         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
1820         of libzstd.  One can use 0 as a default compression level.
1822 2019-07-09  Martin Liska  <mliska@suse.cz>
1824         * doc/invoke.texi: Add link from -fprofile-dir option.
1825         Use better wording for 'gcno filename'.
1827 2019-07-08  Martin Sebor  <msebor@redhat.com>
1829         PR middle-end/71924
1830         PR middle-end/90549
1831         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
1832         comment.
1833         (args_loc_t): New type.
1834         (args_loc_t, locmap_t): same.
1835         (diag_returned_locals): New function.
1836         (is_addr_local): Same.
1837         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
1838         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
1839         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
1841 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
1843         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
1844         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
1845         and casts in offset when different, both through gimple stmts
1846         and through trees.  Rewritten using loops to minimize code duplication
1847         for each operand.
1849 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1851         * emit-rtl.c (set_insn_locations): New function moved from...
1852         * function.c (set_insn_locations): ...here.
1853         * ira-emit.c (emit_moves): Propagate location of the first instruction
1854         to the inserted move instructions.
1855         * reg-stack.c (compensate_edge): Set the location if the sequence is
1856         inserted on the edge.
1857         * rtl.h (set_insn_locations): Declare.
1859 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
1861         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
1862         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
1863         .machine string.
1865 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
1867         PR rtl-optimization/88233
1868         * common.opt (fsplit-wide-types-early): New option.
1869         * common/config/rs6000/rs6000-common.c
1870         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
1871         OPT_LEVELS_ALL.
1872         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
1873         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
1874         flag_split_wide_types_early.
1875         (pass_data_lower_subreg3): New.
1876         (pass_lower_subreg3): New.
1877         (make_pass_lower_subreg3): New.
1878         * passes.def (pass_lower_subreg2): Move after the loop passes.
1879         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
1880         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
1881         the pass pipeline; its previous place is taken by ...
1882         (make_pass_lower_subreg3): ... this.
1884 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
1886         * config/s390/s390.c (s390_shift_truncation_mask): Define.
1887         (TARGET_SHIFT_TRUNCATION_MASK): Define.
1889 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
1891         * config/s390/constraints.md: Add new jsc constraint.
1892         * config/s390/predicates.md: New predicates.
1893         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
1894         * config/s390/s390.c (s390_valid_shift_count): New function.
1895         (print_shift_count_operand): Use s390_valid_shift_count.
1896         (print_operand): Likewise.
1897         * config/s390/s390.md: Use new predicate.
1898         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
1899         * config/s390/vector.md: Use new predicate.
1901 2019-07-08  Joern Rennecke  <joern.rennecke@riscy-ip.com>
1903         Avoid clash with system header declaration.
1904         * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
1905         Remove unused declaration.
1907 2019-07-08  Andrew Waterman  <andrew@sifive.com>
1908             Jim Wilson  <jimw@sifive.com>
1910         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
1911         bitsize instead of BITS_PER_WORD.
1912         gcc/testsuite/
1914 2019-07-08  Martin Liska  <mliska@suse.cz>
1916         * collect2.c (defined): Revert to before r254460.
1917         (scan_prog_file): Revert to before r254460.
1919 2019-07-08  Richard Biener  <rguenther@suse.de>
1921         PR tree-optimization/83518
1922         * tree-ssa-sccvn.c: Include splay-tree.h.
1923         (struct pd_range, struct pd_data): New.
1924         (struct vn_walk_cb_data): Add data to track partial definitions.
1925         (vn_walk_cb_data::~vn_walk_cb_data): New.
1926         (vn_walk_cb_data::push_partial_def): New.
1927         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
1928         (vn_reference_lookup_2): When partial defs are registered give up.
1929         (vn_reference_lookup_3): Track partial defs for memset and
1930         constructor zeroing and for defs from constants.
1932 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
1934         * doc/install.texi (bootstrap-Og): Document.
1936 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
1938         * config/riscv/pic.md (*local_pic_load_s<mode>)
1939         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
1940         referenced by <mode>, giving...
1941         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
1942         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
1943         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
1944         use <X:MODE> for the mode attribute.
1946 2019-07-07  Jeff Law  <law@redhat.com>
1948         PR tree-optimization/91090
1949         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
1950         in handling of ranges to simplify switch statements.
1952 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
1954         * config/darwin.c (darwin_override_options): Make a final check on PIC
1955         options.
1957 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
1959         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
1960         on for kernel code.
1962 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
1964         PR target/91068
1965         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
1966         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
1967         instead of matching them to "l" output operands.
1969 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
1971         * config/mips/mips.c (mips_split_move): Zero-initialize addr
1972         and check whether addr.reg is nonnull before using it.
1974 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
1976         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
1977         ctx->for_simd_scan_phase simd copy the outer var to the privatized
1978         variable(s).  For conditional lastprivate look through outer
1979         GIMPLE_OMP_SCAN context.
1980         (lower_omp_1): For conditional lastprivate look through outer
1981         GIMPLE_OMP_SCAN context.
1983         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
1984         member to combined_into_simd_safelen1.
1985         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
1986         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
1987         clauses if ctx->combined_into_simd_safelen1 put statements after the
1988         predicate conditionalized block rather than into it.
1990 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1992         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
1993         operand 1.
1994         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
1995         Make the choice of <mode> explicit, giving...
1996         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
1998 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2000         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
2001         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
2002         of .md attributes.
2003         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
2004         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
2005         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
2006         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
2007         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
2008         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
2009         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
2010         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
2011         (*avx512f_scatterdi<mode>): Likewise.
2012         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
2014 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2016         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
2017         specify the mode iterator referenced by <mode>, giving...
2018         (*push1_h8300hs_<QHI:mode>): ...this.
2020 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2022         * config/gcn/gcn-valu.md
2023         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
2024         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
2025         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
2026         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
2027         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
2028         but using the _exec comparison patterns.
2029         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
2030         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
2031         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
2032         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
2033         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
2034         but using the _exec comparison patterns.
2036 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2038         * config/arm/sync.md
2039         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
2040         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
2041         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
2042         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
2043         <SIDI:cas_cmp_str>.
2045 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
2047         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
2048         (maybe_lookup_ctx): Add forward declaration.
2049         (omp_find_scan): Likewise.  Walk into body of simd if composited
2050         with worksharing loop.
2051         (scan_omp_simd_scan): New function.
2052         (scan_omp_1_stmt): Call it.
2053         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
2054         ctx->for_simd_scan_phase.
2055         (lower_rec_input_clauses): Do much less work for inscan reductions
2056         in ctx->for_simd_scan_phase is_simd regions.
2057         (lower_omp_scan): Set is_simd also on simd constructs composited
2058         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
2059         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
2060         emit their body after in simd constructs composited with worksharing
2061         loop.
2062         (lower_omp_for_scan): Handle worksharing loop composited with simd.
2064         * omp-low.c (omp_find_scan): Make static.
2065         (lower_omp_for_scan): Fix order of merge arguments in input phase of
2066         the second loop, var2 represents the first partial sum and so needs
2067         to go before rprivb[ivar].
2069 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
2071         * config/rs6000/rs6000-logue.c: Remove unused code.
2073 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2075         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
2077 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
2079         PR target/90712
2080         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
2081         check with a frame laid out check.
2083 2019-07-05  Richard Biener  <rguenther@suse.de>
2085         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
2086         when comparing against a store with possibly the same value.
2088 2019-07-05  Richard Biener  <rguenther@suse.de>
2090         PR tree-optimization/91091
2091         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
2092         (walk_non_aliased_vuses): Likewise.
2093         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
2094         (get_continuation_for_phi): New tbaa_p parameter and pass
2095         it down.
2096         (walk_non_aliased_vuses): Likewise.
2097         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
2098         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2099         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2100         Likewise.
2101         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
2102         (adjust_offsets_for_equal_base_address): New function.
2103         (vn_reference_lookup_3): Use it to catch more base equivalences.
2104         Handle and pass down tbaa_p flag.
2105         (vn_reference_lookup_pieces): Adjust.
2106         (vn_reference_lookup): Remove alias-set altering, instead pass
2107         down false as tbaa_p.
2109 2019-07-05  Richard Biener  <rguenther@suse.de>
2111         PR tree-optimization/91091
2112         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
2113         accesses can happen with -fno-strict-aliasing.
2115 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
2117         * tree-ssa-alias.c (alias_stats): Add
2118         nonoverlapping_component_refs_since_match_p_must_overlap.
2119         (dump_alias_stats): Print it.
2120         (nonoverlapping_component_refs_since_match_p): Add early exit.
2121         (nonoverlapping_component_refs_p): Do not account early exit.
2123 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2125         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
2126         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
2127         (emit_eh_dispatch): Delete.
2128         (lower_catch): Emit the eh_dispatch manually and set the location of
2129         the first catch statement onto it.
2130         (lower_eh_filter): Emit the eh_dispatch manually and set location.
2131         (lower_eh_dispatch): Propagate location.
2132         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
2133         (eliminate_build): Likewise.
2135 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
2137         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
2138         phi nodes if possible.
2139         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
2140         location info on the newly created statement.
2141         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
2142         newly created increment if needed.
2144 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2146         PR middle-end/78884
2147         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
2148         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
2149         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
2150         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
2151         ctx->add_safelen1 is set.
2153         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
2154         GOMP_loop_start at the start of second worksharing loop in a scan.
2155         For nowait, don't emit GOMP_loop_end_nowait at the end of first
2156         worksharing loop in a scan even if there are conditional lastprivates,
2157         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
2159 2019-07-04  Jan Hubicka  <jh@suse.cz>
2161         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2162         Fix check for match in the ref walk.
2164 2019-07-04  Martin Liska  <mliska@suse.cz>
2166         * tree-ssa-loop-niter.c (get_upper_bound_based_on_builtin_expr_with_prob):
2167         New function.
2168         (estimate_numbers_of_iterations):
2169         Support __builtin_expect_with_probability for analysis
2170         of # of loop iterations.
2172 2019-07-04  Alexandre Oliva <oliva@adacore.com>
2174         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
2175         * except.c: Likewise.
2176         * expr.c (expand_expr_real_1): Reject it.
2177         * gimplify.c (gimplify_expr): Gimplify it, within
2178         TRY_FINALLY_EXPR.
2179         * tree-dump.c (dequeue_and_dump): Dump it.
2180         * tree-pretty-print.c (dump_generic_node): Likewise.
2181         * tree.c (block_may_fallthru): Handle it.
2182         * tree.def (EH_ELSE_EXPR): Introduce it.
2183         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
2184         with GIMPLE_EH_ELSE as try/finally/else.
2186 2019-07-04  Richard Biener  <rguenther@suse.de>
2188         PR ipa/91062
2189         * tree-pass.h (execute_all_ipa_transforms): Add a flag
2190         parameter whether to disable GC collection.
2191         * passes.c (execute_one_ipa_transform_pass): Likewise, and
2192         honor it.
2193         (execute_all_ipa_transforms): Likewise and pass it down.
2194         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
2195         collection from applying IPA transforms.
2196         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
2197         from applying IPA transforms.
2199 2019-07-04  Richard Biener  <rguenther@suse.de>
2201         PR tree-optimization/90911
2202         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
2203         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
2204         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2205         scalar_loop_scaling.
2206         (vect_transform_loop): Scale scalar loop profile if needed.
2207         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
2208         the loop copy from if-conversion adjust edge probabilities
2209         and scale the vectorized loop body profile, queue the scalar
2210         profile for updating after peeling.
2212 2019-07-04  Jan Hubicka  <jh@suse.cz>
2214         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
2215         parameters; return early for must-alias.
2216         (indirect_ref_may_alias_decl_p): Likewise; when establishing
2217         outer types match, try nonoverlapping_component_refs
2218         if must-alias is not obvious.
2219         (indirect_refs_may_alias_p): Likewise.
2220         (refs_may_alias_p_2): Likewise.
2222 2019-07-04  Richard Biener  <rguenther@suse.de>
2224         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
2225         argument.
2226         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
2227         globals into...
2228         (struct vn_walk_cb_data): New callback data struct.
2229         (vn_reference_lookup_2): Adjust.
2230         (vn_reference_lookup_3): Likewise.
2231         (vn_reference_lookup_pieces): Likewise.
2232         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
2233         (visit_reference_op_load): Adjust.
2235 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2237         PR tree-optimization/91063
2238         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
2239         stmt from stmts sequence before calling vect_init_vector_1.
2240         Formatting fix.
2242 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2244         PR target/88833
2245         * fwprop.c (reg_single_def_p): New function.
2246         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
2247         (forward_propagate_into): New parameter reg_prop_only
2248         with default value false.
2249         Propagate def's src into loop only if SET_SRC and SET_DEST
2250         of def_set have single definitions.
2251         Likewise if reg_prop_only is set to true.
2252         (fwprop): New param fwprop_addr_p.
2253         Integrate fwprop_addr into fwprop.
2254         (fwprop_addr): Remove.
2255         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
2256         to true.
2257         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
2258         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
2259         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
2261 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
2263         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
2264         in worksharing loop scans.
2266         PR tree-optimization/91074
2267         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
2268         temporary.
2270         PR rtl-optimization/90756
2271         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
2272         for VECTOR_TYPE_P.
2274 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
2276         * config/aarch64/aarch64.md: Remove redundant constraints from
2277         define_expand but keep some patterns untouched if they are
2278         specially selected by TARGET_SECONDARY_RELOAD hook.
2279         * config/aarch64/aarch64-sve.md: Likewise.
2280         * config/aarch64/atomics.md: Remove redundant constraints from
2281         define_expand.
2282         * config/aarch64/aarch64-simd.md: Likewise.
2284 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
2286         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
2287         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
2288         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
2289         clauses.
2290         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
2291         DARWIN_NOPIE_SPEC.
2293 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
2295         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
2296         (STARTFILE_SPEC): Split crt3 into a separate spec.
2297         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
2298         (DARWIN_CRT2_SPEC): New.
2299         (DARWIN_CRT3_SPEC): New.
2300         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
2301         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
2302         (DARWIN_CRT3_SPEC): New.
2304 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
2306         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
2307         Change the RTL attribute "length" from "4" to "*" to allow the
2308         length attribute to be adjusted automatically for prefixed load,
2309         store, and add immediate instructions.
2310         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
2311         Likewise.
2312         (extendsi<mode>2, EXTSI iterator): Likewise.
2313         (movsi_internal1): Likewise.
2314         (movsi_from_sf): Likewise.
2315         (movdi_from_sf_zero_ext): Likewise.
2316         (mov<mode>_internal): Likewise.
2317         (movcc_internal1, QHI iterator): Likewise.
2318         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
2319         (movsf_from_si): Likewise.
2320         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
2321         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
2322         (mov<mode>, FMOVE128 iterator): Likewise.
2323         (movdi_internal64): Likewise.
2324         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
2325         Likewise.
2326         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
2327         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
2328         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
2329         (vsx_splat_v4sf): Likewise.
2331 2019-07-03  Mark Wielaard  <mark@klomp.org>
2333         PR debug/90981
2334         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
2335         DW_AT_addr_base if there is actually a .debug_addr section with
2336         addresses.
2337         (output_addr_table): Add DWARF5 table header generation here after
2338         checking there are actually any addresses from...
2339         (dwarf2out_finish): ...here.
2340         * testsuite/g++.dg/pr90981.C: New test.
2342 2019-07-03  Richard Biener  <rguenther@suse.de>
2344         PR middle-end/91069
2345         * match.pd (vec_perm -> bit_insert): Fix element read from
2346         first vector.
2348 2019-07-03  Martin Liska  <mliska@suse.cz>
2350         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
2351         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
2352         condition.
2353         * generic-match-head.c: Include dbgcnt.h.
2354         * gimple-match-head.c: Likewise.
2356 2019-07-03  Martin Liska  <mliska@suse.cz>
2358         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
2359         (GCOV_COUNTER_V_TOPN): New.
2360         (GCOV_COUNTER_V_INDIR): Use _topn.
2361         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
2362         (GCOV_TOPN_VALUES): New.
2363         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
2364         (GCOV_TOPN_VALUES_COUNTERS): New.
2365         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
2366         * tree-profile.c:
2367         (gimple_init_gcov_profiler): Rename variables from one_value
2368         to topn_values.
2369         (gimple_gen_one_value_profiler): Remove.
2370         (gimple_gen_topn_values_profiler): New function.
2371         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
2372         names instead of SINGLE_VALUE.
2373         (stream_out_histogram_value): Likewise.
2374         (stream_in_histogram_value): Likewise.
2375         (get_most_common_single_value): Likewise.
2376         (gimple_divmod_fixed_value_transform): Likewise.
2377         (gimple_stringops_transform): Likewise.
2378         (gimple_divmod_values_to_profile): Likewise.
2379         (gimple_stringops_values_to_profile): Likewise.
2380         (gimple_find_values_to_profile): Likewise.
2381         * value-prof.h (enum hist_type): Rename to TOPN.
2382         (gimple_gen_one_value_profiler): Remove.
2383         (gimple_gen_topn_values_profiler): New.
2385 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2387         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
2388         if it has the DW_AT_data_member_location attribute.
2390 2019-07-03  Richard Biener  <rguenther@suse.de>
2392         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
2393         dumping.
2395 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
2397         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
2398         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
2399         (tlsdesc_small_sve_<mode>): Likewise.
2401 2019-07-03  Martin Liska  <mliska@suse.cz>
2403         * Makefile.in: Define ZSTD_LIB.
2404         * common.opt: Adjust compression level
2405         to support also zstd levels.
2406         * config.in: Regenerate.
2407         * configure: Likewise.
2408         * configure.ac: Add --with-zstd and --with-zstd-include options
2409         and detect ZSTD.
2410         * doc/install.texi: Mention zstd dependency.
2411         * gcc.c: Print supported LTO compression algorithms.
2412         * lto-compress.c (lto_normalized_zstd_level): Likewise.
2413         (lto_compression_zstd): Likewise.
2414         (lto_uncompression_zstd): Likewise.
2415         (lto_end_compression): Dispatch in between zlib and zstd.
2416         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
2417         (lto_uncompression_zlib): Make it static.
2418         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
2419         * lto-section-in.c (lto_get_section_data): Pass info
2420         about used compression.
2421         * lto-streamer-out.c: By default use zstd when possible.
2422         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
2423         (TV_IPA_LTO_COMPRESS): Likewise for compression.
2425 2019-07-03  Martin Liska  <mliska@suse.cz>
2427         * lto-section-in.c (lto_get_section_data): Add "lto" section.
2428         * lto-section-out.c (lto_destroy_simple_output_block): Never
2429         compress LTO_section_lto section.
2430         * lto-streamer-out.c (produce_asm): Do not set major_version
2431         and minor_version.
2432         (lto_output_toplevel_asms): Likewise.
2433         (produce_lto_section): New function.
2434         (lto_output): Call produce_lto_section.
2435         (lto_write_mode_table): Do not set major_version and
2436         minor_version.
2437         (produce_asm_for_decls): Likewise.
2438         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
2439         type.
2440         (struct lto_header): Remove.
2441         (struct lto_section): New struct.
2442         (struct lto_simple_header): Do not inherit from lto_header.
2443         (struct lto_file_decl_data): Add lto_section_header field.
2445 2019-07-03  Martin Liska  <mliska@suse.cz>
2447         * lra-eliminations.c (eliminate_regs_in_insn): Remove
2448         dead assignemts.
2449         * reg-stack.c (check_asm_stack_operands): Likewise.
2450         * tree-ssa-structalias.c (create_function_info_for): Likewise.
2451         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2452         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
2453         force_expand_binop.
2455 2019-07-03  Martin Liska  <mliska@suse.cz>
2457         PR tree-optimization/90892
2458         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
2459         in string constants.
2461 2019-07-03  Martin Liska  <mliska@suse.cz>
2463         PR middle-end/90899
2464         * multiple_target.c (create_dispatcher_calls): Add to comdat
2465         group only if set for ifunc.
2467 2019-07-03  Martin Liska  <mliska@suse.cz>
2469         PR target/88056
2470         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2471         Define local_object_name in outer scope in order to handle
2472         use-after-scope issue.
2474 2019-07-03  Martin Liska  <mliska@suse.cz>
2476         * common.opt: Add fprofile-note.
2477         * coverage.c (coverage_init): Append the option
2478         to bbg_file_name.
2479         * doc/invoke.texi: Document -fprofile-note.
2481 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
2483         PR tree-optimization/91033
2484         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
2485         vect_analyze_data_refs): Add bool * arguments.
2486         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
2487         if failure is due to scatter/gather, set *fatal to false if non-NULL.
2488         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2489         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
2490         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
2491         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
2492         vect_analyze_data_refs caller.
2494         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
2495         clause.
2496         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
2497         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
2498         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
2499         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2500         OMP_CLAUSE__SCANTEMP_ entry.
2501         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
2502         * tree-pretty-print.c (dump_omp_clause): Likewise.
2503         * tree-nested.c (convert_nonlocal_omp_clauses,
2504         convert_local_omp_clauses): Likewise.
2505         * omp-general.h (struct omp_for_data): Add have_scantemp and
2506         have_nonctrl_scantemp members.
2507         * omp-general.c (omp_extract_for_data): Initialize them.
2508         * omp-low.c (struct omp_context): Add scan_exclusive member.
2509         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
2510         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
2511         ctx->scan_exclusive.
2512         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
2513         of !ctx->scan_inclusive.
2514         (lower_rec_input_clauses): Simplify gimplification of dtors using
2515         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
2516         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
2517         loops.  Don't add barrier for reduction_omp_orig_ref if
2518         ctx->scan_??xclusive.
2519         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
2520         (lower_omp_scan): Use ctx->scan_exclusive instead
2521         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
2522         reductions.  Use new_vard != new_var instead of repeated
2523         omp_is_reference calls.
2524         (omp_find_scan, lower_omp_for_scan): New functions.
2525         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
2526         inscan reductions.
2527         * omp-expand.c (expand_omp_scantemp_alloc): New function.
2528         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
2529         and fd->have_scantemp.
2531         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
2532         on worksharing loop propagate it as shared clause to containing
2533         combined parallel.
2535         * omp-expand.c (expand_omp_for_static_nochunk,
2536         expand_omp_for_static_chunk): For nowait worksharing loop with
2537         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
2538         at the end.
2540 2019-07-02  Joern Rennecke  <joern.rennecke@riscy-ip.com>
2542         PR testsuite/91065
2543         * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
2544         to reference fake_var.
2546 2019-07-02  qing zhao  <qing.zhao@oracle.com>
2548         PR preprocessor/90581
2549         * doc/cppopts.texi: Add document for -fmax-include-depth.
2550         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
2552 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2554         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
2555         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
2556         (mmx_packssdw): Ditto.
2557         (mmx_punpckhbw): Ditto.
2558         (mmx_punpcklbw): Ditto.
2559         (mmx_punpckhwd): Ditto.
2560         (mmx_punpcklwd): Ditto.
2561         (mmx_punpckhdq): Ditto.
2562         (mmx_punpckldq): Ditto.
2563         (*vec_dupv4hi): Ditto.
2564         (*vec_dupv2si): Ditto.
2565         (mmx_pmovmskb): Ditto.
2566         * config/i386/sse.md (sse_cvtpi2ps): Use
2567         TARGET_SSE2 && SSE_REG_P in split condition.
2568         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
2569         TARGET_SSSE3 && SSE_REGNO_P in split condition.
2570         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
2571         (ssse3_pshufbv8qi3): Ditto.
2572         (ssse3_palignrdi): Ditto.
2574 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
2576         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
2577         with inlined save and restore.
2579 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2581         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
2582         to be inserted on single successor edge of the entry block.  Then call
2583         commit_edge_insertions instead of inserting the instructions manually.
2584         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
2585         RTL expansion and rebuild jump labels chain.
2587 2019-07-02  Richard Biener  <rguenther@suse.de>
2589         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
2590         TI_CHREC_KNOWN.
2591         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2592         Define here.
2593         * tree.c (build_common_tree_nodes): Initialize them.
2594         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2595         Make declarations comments.
2596         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
2597         chrec_known): Remove definitions.
2598         (initialize_scalar_evolutions_analyzer): Remove.
2599         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
2600         * tree-streamer.c (preload_common_nodes): Do not preload
2601         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
2603 2019-07-02  Jan Hubicka  <jh@suse.cz>
2605         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
2606         sanity check.
2608 2019-07-02  Jan Hubicka  <jh@suse.cz>
2610         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
2611         to ..
2612         (nonoverlapping_component_refs_since_match_p): ... this one;
2613         handle also non-decl bases; return -1 if search gave up.
2614         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
2615         nonoverlapping_component_refs_of_decl_p_no_alias to
2616         nonoverlapping_component_refs_since_match_p_may_alias,
2617         nonoverlapping_component_refs_since_match_p_no_alias.
2618         (dump_alias_stats): Update dumping.
2619         (aliasing_matching_component_refs_p):  Break out from ...;
2620         dispatch to nonoverlapping_component_refs_for_decl_p
2621         and nonoverlapping_component_refs_since_match_p.
2622         (aliasing_component_refs_p): ... here; call
2623         nonoverlapping_component_refs_p in scenarios where we can not
2624         precisely determine base match.
2625         (decl_refs_may_alias_p): Use
2626         nonoverlapping_component_refs_since_match_p.
2627         (indirect_ref_may_alias_decl_p): Do not call
2628         nonoverlapping_component_refs_p.
2629         (indirect_refs_may_alias_p): Likewise.
2631 2019-07-02  Jan Hubicka  <jh@suse.cz>
2633         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
2634         to clobber of return value.
2636 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2638         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
2639         for is_neon_type instructions that have not already been categorized.
2641 2019-07-02  Richard Biener  <rguenther@suse.de>
2643         PR tree-optimization/58483
2644         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
2645         for MEM_REF base hashing.
2646         (equal_mem_array_ref_p): Likewise for base comparison.
2648 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2650         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
2651         parameterized name.
2652         (signbit<mode>2): Use that name.  Simplify.
2654 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
2656         PR middle-end/66726
2657         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
2658         Tune heuristic from PR71016 to allow MIN / MAX.
2659         * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
2661 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2663         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
2664         parameterized name.
2665         (abs<mode>2): Use that name.  Simplify.
2667 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2669         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
2670         parameterized name.
2671         (neg<mode>2): Use that name.  Simplify.
2673 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2675         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
2676         name.
2677         (abs<mode>2): Use that name.  Simplify.
2679 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2681         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
2682         name.
2683         (neg<mode>2): Use that name.  Simplify.
2685 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2687         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
2688         ("enabled" attribute): Handle sse_noavx isa attribute.
2689         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
2690         Use TARGET_SSE && SSE_REGNO_P in split condition.
2691         (*vec_dupv2sf): Ditto.
2693 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2695         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
2696         name.
2697         (floatsi<mode>2): Use that name.  Simplify.
2699 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2701         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
2702         parameterized name.
2703         (extenddf<mode>2_vsx): Make this a parameterized name.
2704         (extenddf<mode>2): Use those names.  Simplify.
2706 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2708         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
2709         name.
2710         (eh_return): Use that name.  Simplify.
2712 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2714         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
2715         (doloop_end): Use that name.  Simplify.
2717 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2719         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
2720         parameterized name.
2721         (indirect_jump): Use that name.  Simplify.
2723 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2725         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
2726         parameterized name.
2727         (abs<mode>2): Use that name.  Simplify.
2729 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2731         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
2732         parameterized name.
2733         (fix_trunc<mode>si2): Use that name.  Simplify.
2735 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2737         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
2738         (allocate_stack): Use that name.  Simplify.
2740 2019-07-01  Martin Sebor  <msebor@redhat.com>
2742         PR middle-end/90923
2743         * hash-map.h (hash_map::put): On insertion invoke element ctor.
2744         (hash_map::get_or_insert): Same.  Reformat comment.
2745         * hash-set.h (hash_set::add): On insertion invoke element ctor.
2746         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
2747         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
2748         * hash-table.h (hash_table::operator=): Prevent copy assignment.
2749          (hash_table::hash_table (const hash_table&)): Use copy ctor
2750          instead of assignment to copy elements.
2752 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
2753             John David Anglin  <danglin@gcc.gnu.org>
2755         PR target/90963
2756         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
2757         using saved frame pointer.
2759 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2761         PR middle-end/64242
2762         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
2763         Add frame clobber and schedule blockage.
2765 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
2767         * doc/invoke.texi (Link Options): Further editorial changes to
2768         -flinker-output docs.
2770 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
2772         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
2773         Load both operands of a PLUS into registers separately.
2775 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
2777         * config/s390/vector.md: Fix shift count operand printing.
2779 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2781         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
2783 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2785         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
2786         Use recog_data to test for an output operand.
2788 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2790         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
2791         exclude any others that are disparaged or that are bound to need
2792         a reload or spill.
2793         (ira_get_dup_out_num): Expand comment.
2795 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2797         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
2798         constraint string for each operand/alternative combo.  Only handle
2799         '%' at the start of constraint strings, and look for it outside
2800         the main loop.
2802 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2804         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
2805         alternative_mask instead of HARD_REG_SET to represent a
2806         bitmask of alternatives.
2807         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
2808         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
2810 2019-07-01  Martin Liska  <mliska@suse.cz>
2812         * edit-context.c (test_applying_fixits_unreadable_file): Do not
2813         use () for a constructor call.
2814         (test_applying_fixits_line_out_of_range): Likewise.
2815         * ggc-page.c (alloc_page): Use (void *) for %p printf format
2816         argument.
2817         (free_page): Likewise.
2819 2019-07-01  Vladislav Ivanishin <vlad@ispras.ru>
2821         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
2822         parameter names to match usage (no functional change).
2823         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
2825 2019-07-01  Richard Biener  <rguenther@suse.de>
2827         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
2828         pass parameter.
2829         (pass_fre::execute): Honor it.
2830         * passes.def: Adjust pass_fre invocations to allow iterating,
2831         add non-iterating pass_fre before late threading/dom.
2833 2019-07-01  Richard Biener  <rguenther@suse.de>
2835         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
2836         TARGET_MEM_REF handling to also handle address-taken ones.
2838 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
2840         * doc/sourcebuild.texi (Effective-Target Keywords, Other
2841         hardware attributes): Document avx512vp2intersect.
2843 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2845         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
2846         (abs<mode>2): New expander.
2847         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
2848         Use CODE_FOR_ssse3_absv8qi2.
2849         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
2850         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
2852 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2854         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
2855         to sse, sse_noavx and avx.  Update all uses.
2857 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2859         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
2860         (*mmx_<plusminus_insn><mode>3): Ditto.
2861         (*mmx_mulv4hi3"): Ditto.
2862         (*mmx_smulv4hi3_highpart): Ditto.
2863         (*mmx_umulv4hi3_highpart): Ditto.
2864         (*mmx_pmaddwd): Ditto.
2865         (*sse2_umulv1siv1di3): Ditto.
2866         (*mmx_<code>v4hi3): Ditto.
2867         (*mmx_<code>v8qi3): Ditto.
2868         (mmx_ashr<mode>3): Ditto.
2869         ("mmx_<shift_insn><mode>3): Ditto.
2870         (*mmx_eq<mode>3): Ditto.
2871         (mmx_gt<mode>3): Ditto.
2872         (mmx_andnot<mode>3): Ditto.
2873         (*mmx_<code><mode>3): Ditto.
2874         (*mmx_pinsrw): Ditto.
2875         (*mmx_pextrw): Ditto.
2876         (mmx_pshufw_1): Ditto.
2877         (*mmx_uavgv8qi3): Ditto.
2878         (*mmx_uavgv4hi3): Ditto.
2879         ("mmx_psadbw): Ditto.
2880         * config/i386/sse.md (sse_cvtps2pi): Ditto.
2881         (sse_cvttps2pi): Ditto.
2882         (ssse3_pmaddubsw): Ditto.
2883         (*ssse3_pmulhrswv4hi3): Ditto.
2884         (ssse3_psign<mode>3): Ditto.
2886 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2888         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
2889         adjustment for bit-fields to all aggregate types.
2891 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
2893         * config/rs6000/predicates.md (pcrel_address):  Use
2894         SYMBOL_REF_LOCAL_P to determine if a label is local.
2895         (pcrel_external_address): New predicate.
2896         (non_prefixed_mem_operand): Delete, predicate not used.
2897         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
2898         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
2899         addressing.
2900         (SYMBOL_REF_PCREL_P): Likewise.
2902         PR target/91009
2903         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
2904         alternative.
2905         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
2906         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
2907         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
2909 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
2911         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
2912         override on extra_headers.
2914 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
2916         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
2917         * config/darwin-driver.c (darwin_default_min_version): Remove newline
2918         from warning.
2919         (darwin_driver_init): Likewise.
2921 2019-06-28  Jan Beulich  <jbeulich@suse.com>
2923         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
2924         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
2925         Eliminate redundant alternative.
2927 2019-06-28  Jan Beulich  <jbeulich@suse.com>
2929         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
2930         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
2931         Use vector_operand.
2933 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
2935         * config/arc/arc.c (arc_rtx_costs): All short instructions are
2936         having a lower cost regardless of the speed option.
2938 2019-06-28  Jan Beulich  <jbeulich@suse.com>
2940         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
2941         vector_operand plus, on both alternatives, "Bm" constraint.
2943 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
2945         * config/arm/arm.md: Remove redundant constraints from
2946         define_expand but leave reload_inm and reload_outm patterns
2947         untouched since they need special constraints to work.
2948         * config/arm/arm-fixed.md: Remove redundant constraints from
2949         define_expand.
2950         * config/arm/iwmmxt.md: Likewise.
2951         * config/arm/neon.md: Likewise.
2952         * config/arm/sync.md: Likewise.
2953         * config/arm/thumb1.md: Likewise.
2954         * config/arm/vec-common.md: Likewise.
2956 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
2958         * doc/install.texi: Document --disable-tm-clone-registry.
2960 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
2962         PR c++/91024
2963         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
2964         statements.
2966         PR tree-optimization/91010
2967         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
2968         return true.  Otherwise, don't call operand_equal_p if offset1 or
2969         offset2 is NULL and just return false.
2971 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
2973         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
2974         user-specified float mode choice for kernel mode code.
2976 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
2978         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
2979         spec.
2981 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
2983         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
2984         use longcall for 64b code.
2986 2019-06-27  Aaron Sawdey <acsawdey@linux.ibm.com>
2988         * builtins.c (get_memory_rtx): Fix comment.
2989         * optabs.def (movmem_optab): Change to cpymem_optab.
2990         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
2991         (emit_block_move_hints): Change movmem to cpymem.
2992         * defaults.h: Change movmem to cpymem.
2993         * targhooks.c (get_move_ratio): Change movmem to cpymem.
2994         (default_use_by_pieces_infrastructure_p): Ditto.
2995         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
2996         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
2997         to cpymem.
2998         * config/aarch64/aarch64.h: Change movmem to cpymem.
2999         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
3000         * config/alpha/alpha.h: Change movmem to cpymem in comment.
3001         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
3002         movmem to cpymem.
3003         * config/arc/arc-protos.h: Change movmem to cpymem.
3004         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
3005         * config/arc/arc.h: Change movmem to cpymem in comment.
3006         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
3007         * config/arm/arm-protos.h: Change movmem to cpymem in names.
3008         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi, 
3009         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
3010         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
3011         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
3012         * config/avr/avr-protos.h: Change movmem to cpymem.
3013         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
3014         avr_out_movmem): Change movmem to cpymem.
3015         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
3016         Change movmem to cpymem.
3017         * config/bfin/bfin-protos.h: Change movmem to cpymem.
3018         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
3019         Change movmem to cpymem.
3020         * config/bfin/bfin.h: Change movmem to cpymem in comment.
3021         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
3022         * config/c6x/c6x-protos.h: Change movmem to cpymem.
3023         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
3024         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
3025         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
3026         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
3027         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
3028         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
3029         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
3030         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
3031         expand_small_cpymem_or_setmem,
3032         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
3033         expand_set_or_cpymem_constant_prologue, 
3034         ix86_expand_set_or_cpymem): Change movmem to cpymem.
3035         * config/i386/i386-protos.h: Change movmem to cpymem.
3036         * config/i386/i386.h: Change movmem to cpymem in comment.
3037         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
3038         (setmem<mode>): Change expansion function name.
3039         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
3040         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
3041         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
3042         * config/m32c/m32c-protos.h: Change movmem to cpymem.
3043         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
3044         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
3045         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
3046         to cpymem.
3047         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
3048         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
3049         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
3050         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
3051         Change movmem to cpymem.
3052         * config/mips/mips.h: Change movmem to cpymem.
3053         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
3054         * config/nds32/nds32-memory-manipulation.c
3055         (nds32_expand_movmemsi_loop_unknown_size,
3056         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
3057         nds32_expand_movmemsi_unroll,
3058         nds32_expand_movmemsi): Change movmem to cpymem.
3059         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
3060         * config/nds32/nds32-protos.h: Change movmem to cpymem.
3061         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
3062         (pa_adjust_insn_length): Change call to compute_movmem_length.
3063         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
3064         movmemdi, movmemdi_prereload, 
3065         movmemdi_postreload): Change movmem to cpymem.
3066         * config/pdp11/pdp11.md (movmemhi, movmemhi1, 
3067         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
3068         * config/riscv/riscv.c: Change movmem to cpymem in comment.
3069         * config/riscv/riscv.h: Change movmem to cpymem.
3070         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
3071         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
3072         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
3073         movmem to cpymem.
3074         * config/s390/s390-protos.h: Change movmem to cpymem.
3075         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
3076         s390_expand_insv): Change movmem to cpymem.
3077         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
3078         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
3079         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
3080         * config/sparc/sparc.h: Change movmem to cpymem in comment.
3081         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
3082         for nonexistent function.
3083         * config/vax/vax.h: Change movmem to cpymem in comment.
3084         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
3085         * config/visium/visium.h: Change movmem to cpymem in comment.
3086         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
3087         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
3088         * doc/md.texi: Change movmem to cpymem and update description to match.
3089         * doc/rtl.texi: Change movmem to cpymem.
3090         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
3091         * doc/tm.texi: Regenerate.
3093 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
3095         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3096         -fvariable-expansion-in-unroller by default.
3097         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
3098         default for Power.
3100 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
3102         Revert
3103         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3104         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3106         * config.gcc(rs6000-*-*): Define target_gtfiles.
3108 2019-06-27  Jan Hubicka  <jh@suse.cz>
3110         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
3111         (add_type_duplicate): When odr hash is not allocated, to nothing.
3112         (odr_based_tbaa_p): New function.
3113         (set_type_canonical_for_odr_type): New function.
3114         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
3115         set_type_canonical_for_odr_type): New.
3116         * tree.c (gimple_canonical_types_compatible_p): ODR types with
3117         ODR based TBAA are not equivalent to non-ODR types.
3119 2019-06-27  Martin Liska  <mliska@suse.cz>
3121         PR tree-optimization/90974
3122         PR rtl-optimization/90975
3123         PR rtl-optimization/90976
3124         PR target/91016
3125         PR tree-optimization/91017
3126         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
3127         unused tmp.
3128         * lra.c (lra_set_insn_recog_data): Remove a leftover from
3129         initial commit of IRA.
3130         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
3131         of op0 and op1.
3132         * tree-vect-loop.c (vect_create_epilog_for_reduction):
3133         Remove unused mode1.
3134         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
3135         to new_stmt_info.
3137 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
3139         PR target/90991
3140         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
3141         instead of register_operand for operands[1], add m to its constraints
3142         if operands[2] uses "C" constraint.  Ensure in condition that if
3143         operands[2] is not 0, then operands[1] is not a MEM.  For last two
3144         alternatives, use unaligned loads instead of aligned if operands[1] is
3145         misaligned_operand.
3147 2019-06-27  Martin Liska  <mliska@suse.cz>
3149         * asan.c (asan_emit_allocas_unpoison): Remove obviously
3150         dead assignments.
3151         * bt-load.c (move_btr_def): Likewise.
3152         * builtins.c (expand_builtin_apply_args_1): Likewise.
3153         (expand_builtin_apply): Likewise.
3154         * cfgexpand.c (expand_asm_stmt): Likewise.
3155         (construct_init_block): Likewise.
3156         * cfghooks.c (verify_flow_info): Likewise.
3157         * cfgloopmanip.c (remove_path): Likewise.
3158         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
3159         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
3160         * combine.c (simplify_if_then_else): Likewise.
3161         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
3162         (choose_basereg): Likewise.
3163         (ix86_expand_prologue): Likewise.
3164         (ix86_preferred_output_reload_class): Likewise.
3165         * cselib.c (cselib_record_sets): Likewise.
3166         * df-scan.c (df_scan_alloc): Likewise.
3167         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
3168         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
3169         * emit-rtl.c (try_split): Likewise.
3170         * graphite-scop-detection.c (assign_parameter_index_in_region): Likewise.
3171         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3172         * ira-color.c (setup_profitable_hard_regs): Likewise.
3173         * ira.c (rtx_moveable_p): Likewise.
3174         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3175         * read-rtl.c (read_subst_mapping): Likewise.
3176         * regrename.c (scan_rtx): Likewise.
3177         * reorg.c (fill_slots_from_thread): Likewise.
3178         * tree-inline.c (tree_function_versioning): Likewise.
3179         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
3180         * tree-ssa-sink.c (statement_sink_location): Likewise.
3181         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3182         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
3183         (vect_create_epilog_for_reduction): Likewise.
3184         * tree.c (build_nonstandard_integer_type): Likewise.
3186 2019-06-27  Richard Biener  <rguenther@suse.de>
3188         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
3190 2019-06-27  Jun Ma <JunMa@linux.alibaba.com>
3192         PR tree-optimization/89772
3193         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
3194         out-of-bound accesses checking.
3196 2019-06-27  Martin Liska  <mliska@suse.cz>
3198         PR tree-optimization/91014
3199         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
3200         when LHS is NULL_TREE.
3202 2019-06-27  Martin Liska  <mliska@suse.cz>
3204         * symbol-summary.h (traverse): Pass
3205         argument a to the call of callback.
3206         (gt_ggc_mx): Mark arguments as unused.
3207         (gt_pch_nx): Likewise.
3209 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
3211         PR target/62147
3212         * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
3213         finiteness.
3215 2019-06-26  Jeff Law  <law@redhat.com>
3217         PR tree-optimization/90883
3218         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
3219         (delete_dead_or_redundant_assignment): Likewise.
3221         PR tree-optimization/90883
3222         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
3223         * tree-ssa-dse.c: Update various comments to distinguish between
3224         dead and redundant stores.
3225         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
3226         (dse_optimize_redundant_stores): New function.
3227         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
3228         Distinguish between dead and redundant calls in dump output.  All
3229         callers updated.
3230         (delete_dead_or_redundant_assignment): Similarly for assignments.
3231         (dse_optimize_stmt): Handle _CHK variants.  For statements which
3232         store 0 into multiple memory locations, try to prove a subsequent
3233         store is redundant.
3235 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3237         PR target/89021
3238         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
3239         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
3241 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
3243         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
3244         (branch_islands): New extern.
3245         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
3246         * config/rs6000/rs6000.c: .. here.
3248 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
3250         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
3251         (powerpc*-*-*) ... to here.
3253 2019-06-26  Jeff Law  <law@redhat.com>
3255         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
3256         memcpy, memmove and memset builtins.
3257         (maybe_trim_memstar_call): Likewise.
3259 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3261         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
3263 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
3265         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3267 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3269         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
3270         declaration.
3271         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
3272         "static".
3273         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
3274         declaration.
3276 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3278         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
3280 2019-06-26  Richard Biener  <rguenther@suse.de>
3282         PR ipa/90982
3283         * tree-inline.c (remap_ssa_name): Copy SSA range info.
3285 2019-06-26  Richard Biener  <rguenther@suse.de>
3287         * lto-streamer.h (lto_bitmap_alloc): Remove.
3288         (lto_bitmap_free): Likewise.
3289         * lto-streamer.c (lto_bitmap_alloc): Remove.
3290         (lto_bitmap_free): Likewise.
3291         (lto_obstack): Likewise.
3292         (lto_obstack_initialized): Likewise.
3293         * lto-streamer-out.c (lto_output): Use own obstack for local
3294         bitmap, free it consistently.
3296 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
3298         PR target/90991
3299         * config/i386/sse.md
3300         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
3301         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
3302         insns if operands[2] is misaligned_operand.
3304 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
3306         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
3307         TARGET_POWERPC64.
3308         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
3309         to GPR.
3311 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
3313         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
3315 2019-06-26  Martin Liska  <mliska@suse.cz>
3317         PR tree-optimization/90973
3318         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
3319         epilogue_cost_vec instead of prologue_cost_vec for
3320         a epilogue cost.
3322 2019-06-26  Martin Liska  <mliska@suse.cz>
3324         * bb-reorder.c (connect_better_edge_p): Add missing else
3325         statement in the middle of if-else statements.
3327 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored to 'is_better_edge' is never read
3328         is_better_edge = true;
3329         ^                ~~~~
3330 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1034:2: warning: Value stored to 'is_better_edge' is never read
3331         is_better_edge = false;
3332         ^                ~~~~~
3334 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
3335             H.J. Lu  <hongjiu.lu@intel.com>
3336             Olga Makhotina  <olga.makhotina@intel.com>
3338         * common/config/i386/i386-common.c
3339         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
3340         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
3341         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
3342         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
3343         (ix86_handle_option): Handle -mavx512vp2intersect.
3344         * config/i386/avx512vp2intersectintrin.h: New.
3345         * config/i386/avx512vp2intersectvlintrin.h: New.
3346         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
3347         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3348         AVX512VP2INTERSECT.
3349         * config/i386/i386-builtin-types.def: Add new types.
3350         * config/i386/i386-builtin.def: Add new builtins.
3351         * config/i386/i386-builtins.c: (enum processor_features): Add
3352         F_AVX512VP2INTERSECT.
3353         (static const _isa_names_table isa_names_table): Ditto.
3354         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3355         __AVX512VP2INTERSECT__.
3356         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
3357         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
3358         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
3359         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
3360         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
3361         * config/i386/i386-options.c (ix86_target_string): Add
3362         -mavx512vp2intersect.
3363         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
3364         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
3365         P2HImode and P2QImode.
3366         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
3367         number for P2QImode and P2HImode.
3368         (ix86_regmode_natural_size): New function.
3369         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
3370         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
3371         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
3372         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
3373         * config/i386/i386.opt: Add -mavx512vp2intersect.
3374         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
3375         avx512vp2intersectvlintrin.h.
3376         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
3377         (define_mode_iterator VI48_AVX512VP2VL): New.
3378         (avx512vp2intersect_2intersect<mode>,
3379         avx512vp2intersect_2intersectv16si): New define_insn patterns.
3380         * config.gcc: Add avx512vp2intersectvlintrin.h and
3381         avx512vp2intersectintrin.h to extra_headers.
3382         * doc/invoke.texi: Document -mavx512vp2intersect.
3384 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
3386         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
3388 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3390         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
3391         savres_routine_syms, savres_routine_name, morestack_ref,
3392         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3393         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3394         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3395         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3396         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3397         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3398         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3399         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3400         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3401         get_stack_clash_protection_probe_interval,
3402         get_stack_clash_protection_guard_size,
3403         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3404         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3405         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3406         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3407         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3408         gen_frame_mem_offset, rs6000_savres_routine_name,
3409         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3410         ptr_regno_for_savres, rs6000_emit_savres_rtx,
3411         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3412         rs6000_global_entry_point_prologue_needed_p,
3413         rs6000_get_separate_components, rs6000_components_for_bb,
3414         rs6000_disqualify_components, rs6000_emit_prologue_components,
3415         rs6000_emit_epilogue_components, rs6000_set_handled_components,
3416         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3417         rs6000_output_savres_externs, rs6000_output_function_prologue,
3418         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3419         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3420         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3421         rs6000_output_function_epilogue, gen_add3_const,
3422         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3423         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3424         to rs6000-logue.c.
3425         (machine_function): Moved to rs6000.h.
3426         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
3427         rs6000-internal.h.
3428         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
3429         savres_routine_syms, savres_routine_name, morestack_ref,
3430         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3431         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3432         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3433         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3434         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3435         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3436         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3437         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3438         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3439         get_stack_clash_protection_probe_interval,
3440         get_stack_clash_protection_guard_size,
3441         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3442         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3443         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3444         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3445         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3446         gen_frame_mem_offset, rs6000_savres_routine_name,
3447         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3448         ptr_regno_for_savres, rs6000_emit_savres_rtx,
3449         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3450         rs6000_global_entry_point_prologue_needed_p,
3451         rs6000_get_separate_components, rs6000_components_for_bb,
3452         rs6000_disqualify_components, rs6000_emit_prologue_components,
3453         rs6000_emit_epilogue_components, rs6000_set_handled_components,
3454         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3455         rs6000_output_savres_externs, rs6000_output_function_prologue,
3456         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3457         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3458         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3459         rs6000_output_function_epilogue, gen_add3_const,
3460         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3461         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3462         to here from rs6000.c.
3463         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
3464         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
3465         quad_address_offset_p) Moved to here from rs6000.c.
3466         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
3467         * config/config.gcc: Add new source file rs6000-logue.c to garbage
3468         collector.
3470 2019-06-25  Martin Liska  <mliska@suse.cz>
3472         * hash-table.c (hashtab_chk_error): Move here from ...
3473         * hash-table.h (hashtab_chk_error): ... here.
3475 2019-06-25  Martin Liska  <mliska@suse.cz>
3477         PR tree-optimization/90978
3478         * df-scan.c (df_update_entry_block_defs): Remove dead else
3479         branch.
3480         (df_update_exit_block_uses): Likewise.
3482 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
3483             Andrew Stubbs  <ams@codesourcery.com>
3485         * config.gcc (thread_file): Set to gcn for AMD GCN.
3486         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
3487         (TARGET_EMUTLS_VAR_INIT): New hook.
3489 2019-06-25  Martin Jambor  <mjambor@suse.cz>
3491         PR ipa/90939
3492         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
3494 2019-06-25  Richard Biener  <rguenther@suse.de>
3496         PR tree-optimization/90930
3497         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
3498         into parallel form in the last pass instance.
3500 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
3502         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
3503         (arc_legitimize_pic_address): Simplify and cleanup the function.
3504         (SYMBOLIC_CONST): Remove.
3505         (prepare_pic_move): Likewise.
3506         (prepare_move_operands): Handle complex mov cases here.
3507         (arc_legitimize_address_0): Remove call to
3508         arc_legitimize_pic_address.
3509         (arc_legitimize_address): Remove call to
3510         arc_legitimize_tls_address.
3511         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
3512         (movhi_insn): Likewise.
3514 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3516         * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
3517         alternate "__intN__" name for "__intN" types.
3518         * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
3519         * gcc/cp/lex.c (init_reswords): Likewise.
3520         * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
3521         PTRDIFF_TYPE.
3522         * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
3523         * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
3524         C incompatibility if alternate "__intN__" form is used.
3525         * gcc/cp/decl.c (grokdeclarator): Likewise.
3526         * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
3527         decl_specs->int_n_alt if "__intN__" form is used.
3528         * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
3529         format of "__intN" types for UINTMAX_TYPE.
3530         * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
3531         format of "__intN" types for SIZE_TYPE.
3532         * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
3533         * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
3534         format of "__intN" types for SIZETYPE.
3535         * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
3536         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
3537         * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
3538         warnings.
3540 2019-06-25  Jan Hubicka  <jh@suse.cz>
3542         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
3543         base2_alias_set is non-zero before doing TBAA based disambiguation.
3545 2019-06-25  Martin Liska  <mliska@suse.cz>
3547         PR tree-optimization/90973
3548         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
3549         of prologue and epilogue.
3551 2019-06-24  Jan Hubicka  <jh@suse.cz>
3553         * ipa-utils.h (type_with_linkage_p): Verify that type is
3554         CXX_ODR_P.
3555         (odr_type_p): Remove extra return.
3556         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
3557         hash STRING_FLAG only for arrays and integers.
3558         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
3559         Update analogously.
3560         * tree-streamer-out.c (pack_ts_type_common_value_fields):
3561         Likewise.
3562         * print-tree.c (print_node): Print cxx-odr-p
3563         and string-flag.
3564         * tree.c (need_assembler_name_p): Also check that type
3565         is CXX_ODR_TYPE_P
3566         (verify_type_variant): Update verification of SRING_FLAG;
3567         also check CXX_ODR_P.
3568         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
3569         (TYPE_STRING_FLAG): Use it.
3570         (TYPE_CXX_ODR_P): New macro.
3571         * dwarf2out.c (gen_array_type_die): First check that type
3572         is an array and then test string flag.
3574 2019-06-24  Richard Biener  <rguenther@suse.de>
3576         PR tree-optimization/90972
3577         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
3578         in common code, dealing with STRING_CST properly.
3580 2019-06-24  Richard Biener  <rguenther@suse.de>
3582         PR tree-optimization/90930
3583         PR tree-optimization/90316
3584         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
3585         decrement of limit.
3587 2019-06-24  Martin Sebor  <msebor@redhat.com>
3589         * tree-pretty-print.h: Remove unnecessary punctuation characters
3590         from a diagnostic.
3591         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
3593 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
3595         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
3596         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
3597         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
3599 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
3601         * config/rs6000/darwin.h: Handle GCC target pragma.
3603 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
3605         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
3607 2019-06-22  Jeff Law  <law@redhat.com>
3609         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3611 2019-06-22  Jan Hubicka  <jh@suse.cz>
3613         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
3614         give up on bitfields; continue searching for different refs
3615         appearing later.
3617 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
3619         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3620         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
3621         containing the offset as possible simd lane access.  Look through
3622         widening conversion.  Move the
3623         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
3625 2019-06-21  Richard Biener  <rguenther@suse.de>
3627         PR tree-optimization/90930
3628         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
3629         flag on new stmts to avoid re-processing them.
3631 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
3633         PR c++/90875 - added -Wswitch-outside-range option
3634         * doc/invoke.texi (Wswitch-outside-range): Document.
3636 2019-06-21  Jeff Law  <law@redhat.com>
3638         PR tree-optimization/90949
3639         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
3640         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
3642 2019-06-21  Richard Biener  <rguenther@suse.de>
3644         PR debug/90914
3645         * dwarf2out.c (prune_unused_types_walk): Always consider
3646         function-local extern declarations as used.
3648 2019-06-21  Richard Biener  <rguenther@suse.de>
3650         PR tree-optimization/90913
3651         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
3652         the scalar variant of if-conversion versioning.
3654 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
3656         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
3657         create another "omp scan inscan exclusive" array if
3658         !ctx->scan_inclusive.
3659         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
3660         (lower_omp_scan): Likewise.
3661         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
3662         2-bit bitfield for simd_lane_access_p member.
3663         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
3664         aux == (void *)-4 as simd lane access.
3665         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
3666         comment with permutations to show the canonical permutation order.
3667         (vectorizable_scan_store): Handle exclusive scan.
3668         (vectorizable_store): Call vectorizable_scan_store even for
3669         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
3671         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3672         "omp simd array" arrays with one byte elements.
3674 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3676         * config/alpha/alpha.md (@unaligned_store<mode>):
3677         Rename from unaligned_store<mode>.
3678         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
3679         * config/alpha/sync.md (@load_locked_<mode>): Rename
3680         from load_locked_<mode>.
3681         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
3682         (@atomic_compare_and_swap<mode>_1): Rename
3683         from atomic_compare_and_swap<mode>_1.
3684         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
3685         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
3686         Use gen_reload_in_aligned and gen_unaligned_store.
3687         (emit_load_locked): Remove.
3688         (emit_store_conditional): Ditto.
3689         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
3690         (alpha_split_compare_and_swap): Ditto.
3691         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
3692         (alpha_split_compare_and_swap_12): Use gen_load_locked
3693         and gen_store_conditional.
3694         (alpha_split_atomic_exchange): Ditto.
3695         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
3696         (alpha_split_atomic_exchange_12): Use gen_load_locked
3697         and gen_store_conditional.
3699 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
3701         * config/aarch64/aarch64-errata.h: New file.
3702         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
3703         (CA53_ERR_843419_SPEC): Delete.
3704         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
3705         * config/aarch64/aarch64-linux.h: Likewise.
3706         * config/aarch64/aarch64-netbsd.h: Likewise.
3707         * config/aarch64/aarch64-freebsd.h: Likewise.
3709 2019-06-20  Marek Polacek  <polacek@redhat.com>
3711         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
3713 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
3715         * config/rs6000/rs6000.md (isa attribute): Add support for
3716         for a future processor.
3718 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3720         PR target/54855
3721         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
3722         standard scalar operation pattern for V2DF.
3723         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
3724         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
3725         (*ieee_<ieee_maxmin><mode>3): Likewise.
3726         (vec_setv2df_0): Likewise.
3728 2019-06-20  Jan Hubicka  <jh@suse.cz>
3730         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
3731         parameter; it has no use in gimple memory model.
3732         (indirect_ref_may_alias_decl_p): Update.
3734 2019-06-20  Martin Liska  <mliska@suse.cz>
3736         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
3737         to 10.
3739 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
3741         * tree-vect-stmts.c (enum scan_store_kind): New type.
3742         (scan_store_can_perm_p): Change last argument from int * to
3743         vec<enum scan_store_kind> *, record precisely which permutations
3744         need whole vector left shift or that plus VEC_COND_EXPR.
3745         (vectorizable_scan_store): Adjust caller, use whole vector left shift
3746         and additional VEC_COND_EXPR only for those iterations that need it.
3748 2019-06-20  Alexandre Oliva <oliva@adacore.com>
3750         * config.gcc: Fix ARM --with-fpu checking and error message.
3752 2019-06-19  Marek Polacek  <polacek@redhat.com>
3754         PR c++/60364 - noreturn after first decl not diagnosed.
3755         * attribs.c (get_attribute_namespace): No longer static.
3756         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
3757         attributes.
3758         (attr_noreturn_exclusions): Make it extern.
3759         * attribs.h (get_attribute_namespace): Declare.
3760         * tree-inline.c (function_attribute_inlinable_p): Use
3761         get_attribute_name.
3763 2019-06-19  Martin Sebor  <msebor@redhat.com>
3765         PR tree-optimization/90626
3766         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
3768         PR tree-optimization/90626
3769         * tree-ssa-strlen.c (strxcmp_unequal): New function.
3770         (handle_builtin_string_cmp): Call it.
3772 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
3774         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
3775         and DARWIN_NOPIE_SPEC.
3776         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
3777         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
3778         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
3779         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
3780         (DARWIN_EXPORT_DYNAMIC): Delete.
3781         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
3782         and pie options processing to  darwin.h.
3783         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
3785 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
3787         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
3788         in computing the number of options to be moved.
3790 2019-06-19  Maya Rashish  <coypu@sdf.org>
3792         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
3793         (CLEAR_INSN_CACHE) Use it.
3795 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3797         * config/i386/i386.md (cmpstrnsi): Remove dead code.
3799 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
3801         PR middle-end/84521
3802         * builtins.c (expand_builtin_setjmp_setup): Save
3803         hard_frame_pointer_rtx.
3804         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
3805         restore fp.
3806         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
3807         non-local goto.
3808         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
3809         elimination code.
3810         (remove_reg_equal_offset_note): Remove unused function.
3811         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
3812         code.
3813         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3814         (arc_builtin_setjmp_frame_value): Remove function.
3815         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3816         (avr_builtin_setjmp_frame_value): Remove function.
3817         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3818         (ix86_builtin_setjmp_frame_value): Remove function.
3819         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
3820         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3821         (sparc_builtin_setjmp_frame_value): Remove function.
3822         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3823         (vax_builtin_setjmp_frame_value): Remove function.
3824         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
3825         pointer if has_nonlocal_label.
3827 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
3829         * doc/md.texi: Document vec_shl_<mode> pattern.
3830         * optabs.def (vec_shl_optab): New optab.
3831         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
3832         argument, if == vec_shl_optab, check for left whole vector shift
3833         pattern rather than right shift.
3834         (expand_vec_perm_const): Add vec_shl_optab support.
3835         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
3836         in the comment.
3837         * tree-vect-generic.c (lower_vec_perm): Support permutations which
3838         can be handled by vec_shl_optab.
3839         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
3840         (check_scan_store): Use it.
3841         (vectorizable_scan_store): If target can't do normal permutations,
3842         try to use whole vector left shifts and if needed a VEC_COND_EXPR
3843         after it.
3844         * config/i386/sse.md (vec_shl_<mode>): New expander.
3846         * omp-low.c (lower_rec_input_clauses): Handle references properly
3847         in inscan clauses.
3848         (lower_omp_scan): Likewise.
3850 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
3852         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
3853         mem_mode is BLKmode.
3855 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
3857         PR target/90922
3858         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
3859         pointer adjustment for the case of no callee-saved registers and
3860         stack frame bigger than 128 bytes.
3862 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
3864         PR middle-end/90862
3865         * omp-low.c (check_omp_nesting_restrictions): Handle
3866         GF_OMP_TARGET_KIND_OACC_DECLARE.
3868 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3870         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
3871         (@add<mode>3_carry): Rename from add<mode>3_carry.
3872         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
3873         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
3874         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
3875         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
3876         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
3877         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
3878         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
3879         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
3880         (cmpstrnsi): Use gen_cmp_1.
3881         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
3882         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
3883         (@umonitor_<mode>): Rename from umonitor_<mode>.
3884         * config/i386/i386-expand.c (ix86_expand_copysign):
3885         Use gen_copysign3_const and gen_copysign3_var.
3886         (ix86_expand_xorsign): Use gen_xorsign3_1.
3887         (ix86_expand_branch): Use gen_sub3_carry_ccc,
3888         gen_sub3_carry_ccgz and gen_cmp1.
3889         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
3890         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
3891         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
3892         (ix86_split_lshr): Ditto.
3893         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
3895 2019-06-18  Jason Merrill  <jason@redhat.com>
3897         * tree.c (build_constructor): Add MEM_STAT_DECL.
3899 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3901         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
3902         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
3903         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
3904         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
3905         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
3906         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
3907         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
3908         Use CC_NZC instead of CC.
3909         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
3910         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
3911         (aarch64_print_operand): Handle E_CC_NZCmode.
3912         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
3913         of gen_set_clobber_cc.
3915 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3917         * config/aarch64/aarch64-sve.md: Tabify file.
3919 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3921         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
3922         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
3923         * config/aarch64/aarch64-sve.md: Use it.
3925 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3927         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
3928         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
3929         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
3930         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
3931         (aarch64_expand_sve_vec_cmp_int): Use it.
3932         (aarch64_expand_sve_vec_cmp_float): Likewise.
3933         * config/aarch64/aarch64-sve.md: Likewise throughout.
3935 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3936             Kugan Vivekanandarajah  <kuganv@linaro.org>
3938         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
3939         (*cond_<optab><mode>_z): Fold into...
3940         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
3941         operand 4 can be tied to operand 0 (either inherently or via RA).
3943 2019-06-18  Richard Biener  <rguenther@suse.de>
3945         PR debug/90900
3946         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
3947         as if optimized away.
3949 2019-06-18  Tom de Vries  <tdevries@suse.de>
3951         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
3952         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
3953         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
3954         Rename to ...
3955         (define_insn "@set_softstack_<mode>"): ... this.
3956         (define_insn "omp_simt_enter_<mode>"): Rename to ...
3957         (define_insn "@omp_simt_enter_<mode>"): ... this.
3958         (define_insn "omp_simt_exit_<mode>"): Rename to ...
3959         (define_insn "@omp_simt_exit_<mode>"): ... this.
3961 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
3963         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
3964         vf parameter.  Restore the previous iv step of nscalars_step,
3965         but give it iv_type rather than compare_type.  Tweak code order
3966         to match the comments.
3967         (vect_set_loop_condition_masked): Update accordingly.
3968         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
3969         for iv_precision.  Tweak comment formatting.
3971 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
3973         * config/darwin.c: Strip trailing whitespace.
3975 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
3977         * config/darwin.c (darwin_emit_unwind_label): New default to false.
3978         (darwin_override_options): Set darwin_emit_unwind_label as needed.
3980 2019-06-18  Martin Jambor  <mjambor@suse.cz>
3982         PR ipa/90889
3983         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
3984         caller does not have flag_ipa_cp set.
3986 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
3988         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
3989         from "*fold_left_plus_<mode>", updated operands order.
3990         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
3991         * internal-fn.c (mask_fold_left_direct): New define.
3992         (expand_mask_fold_left_optab_fn): Likewise.
3993         (direct_mask_fold_left_optab_supported_p): Likewise.
3994         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
3995         * optabs.def (mask_fold_left_plus_optab): New optab.
3996         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
3997         masked internal_fn for a reduction ifn.
3998         (vectorize_fold_left_reduction): Add support for masking reductions.
4000 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
4002         PR middle-end/80791
4003         * target.def (predict_doloop_p): New hook.
4004         * targhooks.h (default_predict_doloop_p): New declaration.
4005         * targhooks.c (default_predict_doloop_p): New function.
4006         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
4007         * doc/tm.texi: Regenerate.
4008         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
4009         (TARGET_PREDICT_DOLOOP_P): New macro.
4010         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
4012 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
4014         * omp-low.c (struct omp_context): Add scan_inclusive field.
4015         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
4016         if inclusive scan.
4017         (struct omplow_simd_context): Add lastlane member.
4018         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
4019         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
4020         1 or 2 argument.
4021         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
4022         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
4023         (lower_omp_scan): New function.
4024         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
4025         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
4026         check 3rd argument if present rather than 2nd.
4027         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
4028         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
4029         2-bit bitfield.
4030         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4031         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
4032         than 2nd.
4033         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
4034         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
4035         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
4036         init.
4037         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
4038         IFN_GOMP_SIMD_LANE argument.
4039         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
4040         encoded ->aux value.
4041         * tree-vect-stmts.c: Include attribs.h.
4042         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
4043         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
4044         functions.
4045         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
4046         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
4048 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4050         PR target/62055
4051         * config/i386/i386.md (*nabstf2_1): New insn pattern.
4052         (*nabs<mode>2_1): Ditto.
4053         (nabs sse-reg splitter): New splitter.
4054         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
4056 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
4058         PR bootstrap/90873.
4059         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4060         TMR index check.
4062 2019-06-17  Tom de Vries  <tdevries@suse.de>
4064         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
4065         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
4066         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
4067         ...
4068         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
4069         match_operand 0.
4070         (define_insn "omp_simt_enter_insn"): Rename to ...
4071         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
4072         match_operand 0, 1 and 2, as well as the unspec_volatile result.
4073         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
4074         gen_omp_simt_enter_si.
4075         (define_expand "omp_simt_exit"): New.
4076         (define_insn "omp_simt_exit"): Rename to ...
4077         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
4078         match_operand 0.
4080 2019-06-17  Matthew Green  <mrg@eterna.com.au>
4081             Maya Rashish  <coypu@sdf.org>
4083         * config.gcc (aarch64*-*-netbsd*): New target.
4084         * config/aarch64/aarch64-netbsd.h: New file.
4085         * config/aarch64/t-aarch64-netbsd: Likewise.
4087 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
4089         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
4090         the access path from base to first VIEW_CONVERT_EXPR or
4091         BIT_FIELD_REF.
4093 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
4095         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
4096         access path on BIT_FIELD_REFs.
4098 2019-06-17  Martin Liska  <mliska@suse.cz>
4100         PR ipa/90874
4101         * ipa-utils.h (odr_type_p): Remove dead code.
4103 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4105         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
4106         alternative Solaris 11.4 format.
4107         * configure: Regenerate.
4109 2019-06-17  Tom de Vries  <tdevries@suse.de>
4111         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
4112         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
4113         match_operand 0.
4114         (define_insn "call_value_insn"): Rename to ...
4115         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
4116         match_operand 0.
4117         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
4118         DI.
4120 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
4122         PR middle-end/64242
4123         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
4124         frame clobbers and schedule block.
4125         (builtin_longjmp): Likewise.
4127 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4129         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
4130         describe how to perform MSPABI compliant 64-bit shift.
4131         * config/msp430/msp430.md (ashldi3): New define_expand.
4132         (ashrdi3): New define_expand.
4133         (lshrdi3): New define_expand.
4135 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4137         * doc/sourcebuild.texi: Document new effective target keyword
4138         longlong64.
4140 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
4142         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
4143         indirect_refs_may_alias_p): Revert accidental commits.
4145         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
4146         at the end of structures.
4148 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
4150         * config/darwin.c (machopic_indirect_call_target): Use renamed
4151         darwin_picsymbol_stubs to decide on output.
4152         (darwin_override_options): Handle darwin_picsymbol_stubs.
4153         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
4154         (LD64_VERSION): Revise default.
4155         * config/darwin.opt: (mpic-symbol-stubs): New option.
4156         (darwin_picsymbol_stubs): New variable.
4157         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
4158         rename to TARGET_MACHO_PICSYM_STUBS.
4159         * config/i386/i386.c (output_pic_addr_const): Likewise.
4160         * config/i386/i386.h Likewise.
4161         * config/rs6000/darwin.h: Likewise.
4162         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
4163         darwin_picsymbol_stubs.
4165 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
4167         * config/darwin.opt (prebind, noprebind, seglinkedit,
4168         noseglinkedit): Add RejectNegative.
4170 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
4172         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
4173         in my previous patch.
4175 2019-06-16  Tom de Vries  <tdevries@suse.de>
4177         PR tree-optimization/89376
4178         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
4180 2019-06-15  Maya Rashish  <coypu@sdf.org>
4182         * doc/invoke.texi (Spec Files): Update location of the
4183         Fortran spec file.
4185 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
4187         * doc/extend.texi (Common Function Attributes): Clarify
4188         no_sanitize.  Fix grammar.
4190 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
4192         * tree-ssa-alias.c (alias_stats): Add
4193         nonoverlapping_component_refs_p_may_alias,
4194         nonoverlapping_component_refs_p_no_alias,
4195         nonoverlapping_component_refs_of_decl_p_may_alias,
4196         nonoverlapping_component_refs_of_decl_p_no_alias.
4197         (dump_alias_stats): Dump them.
4198         (nonoverlapping_component_refs_of_decl_p): Add stats.
4199         (nonoverlapping_component_refs_p): Add stats; do not stop on first
4200         ARRAY_REF.
4202 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4204         * config/i386/i386.md (and<mode>3): Generate zero-extends for
4205         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
4206         only.
4207         (*anddi3_doubleword): Split before reload. Merge with
4208         anddi->zext pre-reload splitter.
4209         (*andndi3_doubleword): Split before reload.
4210         (*<code>di3_doubleword): Ditto.
4211         (*one_cmpldi2_doubleword): Ditto.
4213 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4215         PR middle-end/90779
4216         * gimplify.c: Include omp-offload.h and context.h.
4217         (gimplify_bind_expr): Add "omp declare target" attributes
4218         to static block scope variables inside of target region or target
4219         functions.
4221 2019-06-15  Tom de Vries  <tdevries@suse.de>
4223         PR tree-optimization/90009
4224         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
4225         Return NULL if bb contains IFN_UNIQUE.
4227 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
4229         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
4230         (un): New define_mode_attr.
4231         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
4232         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
4233         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
4234         merge into ...
4235         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
4237 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
4239         * config/darwin.opt: Add RejectNegative where needed, reorder
4240         and add minimal functional descriptions.
4242 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4244         PR rtl-optimization/90765
4245         * calls.c (update_stack_alignment_for_call): New function.
4246         (expand_call): Call update_stack_alignment_for_call when
4247         outgoing parameter is passed in the stack.
4248         (emit_library_call_value_1): Likewise.
4249         * function.c (locate_and_pad_parm): Don't update
4250         stack_alignment_needed and preferred_stack_boundary.
4252 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4254         PR target/90877
4255         * config/i386/i386-features.c
4256         (dimode_scalar_chain::compute_convert_gain): Replace
4257         mmxsse_to_integer with sse_to_integer.
4258         * config/i386/i386.c (ix86_register_move_cost): Verify that
4259         moves between MMX and non-MMX units require secondary memory.
4260         Correct costs of moves between SSE and integer units.
4261         * config/i386/i386.h (processor_costs): Rename cost of moving
4262         SSE register to integer to sse_to_integer.  Rename cost of
4264 2019-06-14  Matt Thomas  <matt@3am-software.com>
4265             Matthew Green  <mrg@eterna.com.au>
4266             Nick Hudson  <skrll@netbsd.org>
4267             Maya Rashish  <coypu@sdf.org>
4268             Richard Earnshaw  <rearnsha@arm.com>
4270         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
4271         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
4272         * config/arm/netbsd-eabi.h: New file.
4273         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
4274         redefining.
4275         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
4276         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
4277         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
4278         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
4280 2019-06-14  Richard Biener  <rguenther@suse.de>
4282         * tree-loop-distribution.c (classify_partition): Return
4283         whether a reduction appeared in all partitions and do not
4284         stop builtin detection because of this.
4285         (distribute_loop): Sort a non-builtin partition last if
4286         there's a reduction in all partitions and make sure the
4287         partition prevailing as last is not a builtin.
4289 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
4291         PR ipa/90401
4292         * ipa-prop.c (add_to_agg_contents_list): New function.
4293         (clobber_by_agg_contents_list_p): Likewise.
4294         (extract_mem_content): Likewise.
4295         (get_place_in_agg_contents_list): Delete.
4296         (determine_known_aggregate_parts): Renamed from
4297         determine_locally_known_aggregate_parts.  New parameter
4298         aa_walk_budget_p.
4300 2019-06-13  Martin Sebor  <msebor@redhat.com>
4302         PR tree-optimization/90662
4303         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
4304         to the same type.
4306 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
4308         PR bootstrap/90873
4309         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
4310         dbase is not TARGET_MEM_REF.
4312 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4314         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
4315         Update all uses.
4316         (and<mode>3): Use gen_extend_insn instead of indirect functions.
4317         Do not generate DImode extends for 32bit targets.
4318         (and->zext post-reload splitter): Use gen_extend_insn
4319         instead of indirect functions.
4320         (anddi->zext pre-reload splitter): New.
4321         (*zext<mode>_doubleword_and): Remove.
4322         (*zext<mode>_doubleword): Ditto.
4323         (*zextsi_doubleword): Dittto.
4325 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4327         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
4328         Use gen_sub3_insn instead of indirect function.
4329         (ix86_expand_ashl_const): Use gen_add2_insn instead of
4330         indirect function.
4331         (ix86_adjust_counter): Ditto.
4333 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
4334             Lijia He  <helijia@linux.ibm.com>
4336         PR tree-optimization/77820
4337         * tree-ssa-threadedge.c
4338         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
4339         function.
4340         (thread_across_edge): Add call to
4341         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
4343 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
4345         * config/darwin-driver.c (validate_macosx_version_min): New.
4346         (darwin_default_min_version): Cleanup and validate supplied version.
4347         (darwin_driver_init): Likewise and push cleaned version into opts.
4349 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
4351         PR tree-optimization/90869
4352         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
4353         converts in MEM_REF referencing decl rather than view converts
4354         from decl type to MEM_REF type.
4356 2019-06-13  Richard Biener  <rguenther@suse.de>
4358         PR tree-optimization/90856
4359         * tree-sra.c (build_ref_for_model): Only use
4360         build_reconstructed_reference when address-spaces are the same.
4362 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
4364         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
4365         wrap ei variable name in the declaration in ()s.
4366         (nvptx_single): Actually use mode_label variable.  Formatting fix.
4368 2019-06-13  Richard Biener  <rguenther@suse.de>
4370         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
4371         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
4372         also return the condition stmt.
4373         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
4374         loop we can version and version that, reusing the loop version
4375         created by if-conversion instead of versioning again.
4377 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
4379         * gimple-loop-versioning.cc (prune_loop_conditions): Use
4380         may_contain_p.
4381         * tree-vrp (value_range_base::may_contain_p): Call into
4382         value_inside_range.
4383         (value_inside_range): Make private inside value_range_base class.
4384         Take min/max from *this.
4385         (range_includes_p): Remove.
4386         * tree-vrp.h (value_range_base): Add value_inside_range.
4387         (range_includes_p): Remove.
4388         (range_includes_zero_p): Call may_contain_p.
4389         * vr-values.c (compare_range_with_value): Same.
4391 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
4393         * doc/extend.texi (ARC Function Attributes): Update info.
4395 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4397         PR tree-optimization/89713
4398         * doc/invoke.texi (-ffinite-loops): Document new option.
4399         * common.opt (-ffinite-loops): New option.
4400         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
4401         IFN_GOACC_LOOP calls as necessary.
4402         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
4403         is finite.
4404         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
4405         IFN_GOACC_LOOP call is not used.
4406         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
4408 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4410         PR target/88838
4411         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
4412         compare_type is not with Pmode size, we will create an IV with
4413         Pmode size with truncated use (i.e. converted to the correct type).
4414         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
4415         (vect_iv_limit_for_full_masking): New. Factored out of
4416         vect_set_loop_condition_masked.
4417         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
4418         (vect_iv_limit_for_full_masking): Declare.
4420 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4422         PR target/88834
4423         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
4424         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
4425         (get_alias_ptr_type_for_ptr_address): Likewise.
4426         (add_iv_candidate_for_use): Add scaled index candidate if useful.
4427         * tree-ssa-address.c (preferred_mem_scale_factor): New.
4428         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
4429         allow_reg_index_p.
4431 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4433         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
4435 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
4437         * common/config/pru/pru-common.c: New file.
4438         * config.gcc: Add PRU target.
4439         * config/pru/alu-zext.md: New file.
4440         * config/pru/constraints.md: New file.
4441         * config/pru/predicates.md: New file.
4442         * config/pru/pru-opts.h: New file.
4443         * config/pru/pru-passes.c: New file.
4444         * config/pru/pru-pragma.c: New file.
4445         * config/pru/pru-protos.h: New file.
4446         * config/pru/pru.c: New file.
4447         * config/pru/pru.h: New file.
4448         * config/pru/pru.md: New file.
4449         * config/pru/pru.opt: New file.
4450         * config/pru/t-pru: New file.
4451         * doc/extend.texi: Document PRU pragmas.
4452         * doc/invoke.texi: Document PRU-specific options.
4453         * doc/md.texi: Document PRU asm constraints.
4455 2019-06-12  Martin Sebor  <msebor@redhat.com>
4457         PR middle-end/90676
4458         * tree-pretty-print.c (dump_mem_ref): New function.  Include
4459         MEM_REF type in output when different size than operand.
4460         (dump_generic_node): Move code to dump_mem_ref and call it.
4462 2019-06-12  Martin Sebor  <msebor@redhat.com>
4464         PR tree-optimization/90662
4465         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
4466         to arrays.
4468 2019-06-12  Tom de Vries  <tdevries@suse.de>
4470         PR tree-optimization/90009
4471         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
4473 2019-06-12  Martin Liska  <mliska@suse.cz>
4475         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
4476         the created map.
4477         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
4478         * mem-stats.h (mem_alloc_description::mem_alloc_description):
4479         Do not sanitize created maps.
4481 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
4483         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
4484         value_range::singleton_p.
4485         * tree-vrp.c (value_range_constant_singleton): Remove.
4486         * tree-vrp.h (value_range_constant_singleton): Remove.
4487         * vr-values.c (vr_values::singleton): Use
4488         value_range::singleton_p.
4490 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
4492         PR target/90811
4493         * cfgexpand.c (align_local_variable): Add really_expand argument,
4494         don't SET_DECL_ALIGN if it is false.
4495         (add_stack_var): Add really_expand argument, pass it through to
4496         align_local_variable.
4497         (expand_one_stack_var_1): Pass true as really_expand to
4498         align_local_variable.
4499         (expand_one_ssa_partition): Pass true as really_expand to
4500         add_stack_var.
4501         (expand_one_var): Pass really_expand through to add_stack_var.
4503 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
4505         * config/arm/iterators.md (VABAL): New int iterator.
4506         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
4507         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S, UNSPEC_VABAL_U
4508         values.
4510 2019-06-12  Martin Liska  <mliska@suse.cz>
4512         * value-prof.c (stream_out_histogram_value): Only first value
4513         can't be negative.
4515 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
4517         PR c/90760
4518         * symtab.c (symtab_node::set_section): Allow being called on aliases
4519         as long as they aren't analyzed yet.
4521 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
4523         * config/mips/mips.c (mips_final_postscan_insn): Modify call
4524         to `mips_set_text_contents_type' to indicate whether a
4525         non-debug insn follows.
4527 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
4529         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
4530         enabling -mpcrel by default.
4531         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
4532         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
4533         that the test against -mcpu=future is done first.  Then test if
4534         -mprefixed-addr is on for -mpcrel.
4535         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
4537 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4539         PR target/90811
4540         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
4541         instead of and.u%d.
4543 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
4545         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
4547 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
4549         PR c++/90449 - add -Winaccessible-base option.
4550         * doc/invoke.texi (Winaccessible-base): Document.
4552 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
4554         PR tree-optimization/62041
4555         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
4557 2019-06-11  Jason Merrill  <jason@redhat.com>
4559         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
4560         * tree.c (get_tree_code_name): Likewise.
4561         * print-tree.c (print_node): Only briefly print a node with an
4562         invalid code.
4564 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4566         PR bootstrap/90819
4567         * trans-mem.c (tm_memopt_compute_available): Add assertion
4568         that blocks is not empty.  Formatting fix.
4570 2019-06-11  Martin Liska  <mliska@suse.cz>
4572         PR c++/87847
4573         * hash-table.h: Extend create_gcc, add one parameter
4574         that is passed into hash_table::hash_table.
4576 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4578         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
4579         New prototype.
4580         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
4581         Emit clobber also for non-sse operations.
4582         (ix86_split_fp_absneg_operator): New function.
4583         * config/i386/i386.md (SSEMODEF): New mode iterator.
4584         (ssevecmodef): New mode attribute.
4585         (<code>tf2): Use absneg code iterator.
4586         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
4587         Add three-operand AVX alternatives.
4588         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
4589         Use absneg code iterator and X87MODEF mode iterator.
4590         (absneg fp_reg non-sse splitter): Call absneg code iterator
4591         and X87MODEF mode iterator.
4592         (absneg general_reg non-sse splitter): Use absneg code iterator
4593         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
4594         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
4595         code iterator.  Add three-operand AVX alternative.
4596         (absneg sse_reg splitter): Use absneg code iterator
4597         and SSEMODEF mode iterator.  Handle AVX operands.
4598         (absneg fp_reg splitter): Use absneg code iterator
4599         and MODEF mode iterator.
4600         (absneg general_reg splitter): Merge splitters using MODEF mode
4601         iterator.  Use absneg code iterator.  Call
4602         ix86_split_fp_absneg_operator.
4603         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
4604         Do not enable for non-sse modes before reload.
4605         (CSGNMODE): Remove.
4606         (CSGNVMODE): Ditto.
4607         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
4608         ssevecmodef mode attribute instaed of CSGNVMODE.
4609         (copysign<mode>3_const): Ditto.
4610         (copysign<mode>3_var): Ditto.
4611         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
4612         Use absneg code iterator.  Simplify code using std::swap.
4613         * config/i386/predicates.md (absneg_operator): Remove.
4615 2019-06-10  Martin Sebor  <msebor@redhat.com>
4617         * gimple-fold.c (get_range_strlen): Update comment that didn't
4618         make it into r267503 or related commits.
4620 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
4622         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
4623         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
4625 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
4627         * tree.def (OMP_SCAN): New tree code.
4628         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
4629         OMP_CLAUSE_EXCLUSIVE.
4630         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
4631         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
4632         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
4633         OMP_CLAUSE_{IN,EX}CLUSIVE.
4634         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4635         * tree-nested.c (convert_nonlocal_reference_stmt,
4636         convert_local_reference_stmt, convert_gimple_call): Handle
4637         GIMPLE_OMP_SCAN.
4638         * tree-pretty-print.c (dump_omp_clause): Handle
4639         OMP_CLAUSE_{IN,EX}CLUSIVE.
4640         (dump_generic_node): Handle OMP_SCAN.
4641         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
4642         * gimple.h (gomp_scan): New type.
4643         (is_a_helper <gomp_scan *>::test,
4644         is_a_helper <const gomp_scan *>::test): New templates.
4645         (gimple_build_omp_scan): Declare.
4646         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
4647         gimple_omp_scan_set_clauses): New inline functions.
4648         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
4649         * gimple.c (gimple_build_omp_scan): New function.
4650         (gimple_copy): Handle GIMPLE_OMP_SCAN.
4651         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
4652         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
4653         GIMPLE_OMP_TASKGROUP.
4654         (dump_gimple_omp_scan): New function.
4655         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
4656         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
4657         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
4658         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
4659         (is_gimple_stmt): Handle OMP_SCAN.
4660         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
4661         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4662         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
4663         mentioned in nested #pragma omp scan.  Handle
4664         OMP_CLAUSE_{IN,EX}CLUSIVE.
4665         (gimplify_expr): Handle OMP_SCAN.
4666         * omp-low.c (check_omp_nesting_restrictions): For parent context,
4667         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
4668         simd constructs.
4669         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
4670         GIMPLE_OMP_SCAN.
4672 2019-06-10  Martin Liska  <mliska@suse.cz>
4674         * ipa-cp.c (ignore_edge_p): New function.
4675         (build_toporder_info): Use it.
4676         * ipa-inline.c (ignore_edge_p): New function.
4677         (inline_small_functions): Use it.
4678         * ipa-pure-const.c (ignore_edge_for_nothrow):
4679         Verify opt_for_fn for caller and callee.
4680         (ignore_edge_for_pure_const): Likewise.
4681         * ipa-reference.c (ignore_edge_p): Extend to check
4682         for opt_for_fn.
4683         * ipa-utils.c (searchc): Refactor.
4684         * ipa-utils.h: Fix coding style.
4686 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
4688         * config/arc/arc.c (arc_rtx_costs): Update costs.
4690 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
4692         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
4693         (arc_split_ior): Likewise.
4694         (arc_check_mov_const): Likewise.
4695         (arc_split_mov_const): Likewise.
4696         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
4697         (arc_rtx_costs): Replace check Crr with Cax constraint.
4698         (prepare_move_operands): Cleanup, remove unused code.
4699         (arc_split_ior): New function.
4700         (arc_check_ior_const): Likewise.
4701         (arc_split_mov_const): Likewise.
4702         (arc_check_mov_const): Likewise.
4703         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
4704         in define_insn_and_split pattern.
4705         (iorsi3): Likewise.
4706         (mulsi3_v2): Add new matching variant.
4707         (andsi3_i): Cleanup pattern.
4708         (rotrsi3_cnt1): Update pattern.
4709         (rotrsi3_cnt8): New pattern.
4710         (ashlsi2_cnt8): Likewise.
4711         (ashlsi2_cnt16): Likewise.
4712         * config/arc/constraints.md (C0p): Update constraint.
4713         (Crr): Remove it.
4714         (C0x): New pattern.
4715         (Cax): New pattern.
4717 2019-06-10  Martin Liska  <mliska@suse.cz>
4719         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
4720         Update coding style.
4721         (sem_item_optimizer::dump_cong_classes):
4722         Print how many items are in a non-singular class.  Improve
4723         coding style.
4725 2019-06-10  Martin Liska  <mliska@suse.cz>
4727         * value-prof.c (dump_histogram_value): Change dump format.
4728         (gimple_mod_subtract_transform): Remove legacy comment.
4730 2019-06-10  Martin Liska  <mliska@suse.cz>
4732         * value-prof.c (dump_histogram_value): Print histogram values
4733         only if present.
4735 2019-06-10  Martin Liska  <mliska@suse.cz>
4737         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
4738         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
4739         * ipa-profile.c (ipa_profile_generate_summary):
4740         Use get_most_common_single_value.
4741         * tree-profile.c (gimple_init_gcov_profiler):
4742         Instrument with __gcov_one_value_profiler_v2
4743         and __gcov_indirect_call_profiler_v4.
4744         * value-prof.c (dump_histogram_value):
4745         Print all values for HIST_TYPE_SINGLE_VALUE.
4746         (stream_out_histogram_value): Update assert for
4747         N values.
4748         (stream_in_histogram_value): Set number of
4749         counters for HIST_TYPE_SINGLE_VALUE.
4750         (get_most_common_single_value): New.
4751         (gimple_divmod_fixed_value_transform):
4752         Use get_most_common_single_value.
4753         (gimple_ic_transform): Likewise.
4754         (gimple_stringops_transform): Likewise.
4755         (gimple_find_values_to_profile): Set number
4756         of counters for HIST_TYPE_SINGLE_VALUE.
4757         * value-prof.h (get_most_common_single_value):
4758         New.
4760 2019-06-10  Martin Liska  <mliska@suse.cz>
4762         * hash-map.h: Pass default value to hash_table ctor.
4763         * hash-table.h: Add default value to call of a ctor.
4765 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
4767         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
4768         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
4770 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
4772         PR target/90751
4773         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
4774         Call pa_output_function_label.
4775         (TARGET_ASM_FUNCTION_PROLOGUE): define.
4776         * config/pa/pa-protos.h (pa_output_function_label): Declare.
4777         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
4778         to declaration.
4779         (pa_linux_output_function_prologue): Declare.
4780         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
4781         (pa_output_function_label): New.
4782         (pa_output_function_prologue): Revise to use pa_output_function_label.
4783         (pa_linux_output_function_prologue): New.
4784         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
4786 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
4788         * tree-vrp.h (value_range_base::intersect): New.
4789         (value_range::intersect_helper): Move from here...
4790         (value_range_base::intersect_helper): ...to here.
4791         * tree-vrp.c (value_range::intersect_helper): Rename to...
4792         (value_range_base::intersect_helper): ...this, and rewrite to
4793         return a value instead of modifying THIS in place.
4794         Also, move equivalence handling...
4795         (value_range::intersect): ...here, while calling intersect_helper.
4796         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
4797         calling intersect.
4798         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
4799         Same.
4800         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
4802 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
4804         * Makefile.in (genprogerr): Add condmd.
4805         (genprog): Remove it here.
4807 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
4809         * doc/invoke.texi (AMD GCN Options): Add gfx906.
4811 2019-06-07  Richard Biener  <rguenther@suse.de>
4813         PR debug/90574
4814         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
4815         that appear after user labels.
4817 2019-06-07  Martin Liska  <mliska@suse.cz>
4819         * cselib.c (cselib_init): Disable hash table
4820         sanitization.
4821         * hash-set.h: Pass new default argument to m_table.
4822         * hash-table.c: Add global variable with hash table
4823         sanitization limit.
4824         * hash-table.h (Allocator>::hash_table): Add new argument
4825         to ctor.
4826         (hashtab_chk_error): New.
4827         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
4828         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
4829         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
4831 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
4833         * common.opt (flto-odr-type-merging): Ignore.
4834         * invoke.texi (-flto-odr-type-merging): Remove.
4835         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
4836         (can_be_vtable_hashed_p): Remove.
4837         (hash_odr_vtable): Remove.
4838         (odr_vtable_hasher::hash): Remove.
4839         (types_same_for_odr): Remove.
4840         (types_odr_comparable): Remove.
4841         (odr_vtable_hasher::equal): Remove.
4842         (odr_vtable_hash_type, odr_vtable_hash): Remove.        
4843         (add_type_duplicate): Do not synchronize vtable and name hashtables.
4844         (get_odr_type): Do not use vtable hash.
4845         (dump_odr_type): Remove commented out code.
4846         (build_type_inheritance_graph): Do not allocate vtable hash.
4847         (rebuild_type_inheritance_graph): Do not delete vtable hash.
4848         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
4849         (odr_type_p): Likewise.
4850         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
4851         test.
4853 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
4855         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
4856         immediately after same_types_for_tbaa_p returns -1 and continue
4857         looking for possible exact match; if matching types are arrays
4858         watch for partial overlaps.
4859         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
4860         (indirect_refs_may_alias_p): Do type based disambiguation first;
4861         update comment.
4863 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
4865         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
4867 2019-06-07  Martin Liska  <mliska@suse.cz>
4869         * doc/invoke.texi: Remove param.
4870         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
4871         Remove.
4872         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
4873         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
4874         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
4875         * profile.c (instrument_values): Remove
4876         HIST_TYPE_INDIR_CALL_TOPN.
4877         * tree-profile.c (init_ic_make_global_vars):
4878         Always build __gcov_indirect_call only.
4879         (gimple_init_gcov_profiler): Remove usage
4880         of PARAM_INDIR_CALL_TOPN_PROFILE.
4881         (gimple_gen_ic_profiler): Likewise.
4882         * value-prof.c (dump_histogram_value): Likewise.
4883         (stream_in_histogram_value): Likewise.
4884         (gimple_indirect_call_to_profile): Likewise.
4885         (gimple_find_values_to_profile): Likewise.
4886         * value-prof.h (enum hist_type): Likewise.
4888 2019-06-07  Martin Liska  <mliska@suse.cz>
4890         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
4891         function.
4893 2019-06-07  Martin Liska  <mliska@suse.cz>
4895         PR tree-optimization/78902
4896         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
4897         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
4898         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
4899         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
4900         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
4901         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
4902         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
4903         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
4904         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
4905         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
4906         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
4907         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST):  Remove.
4908         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
4909         New.
4910         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
4911         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
4912         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
4913         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
4914         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
4915         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
4916         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
4917         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
4918         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
4919         warn_unused_result attribute.
4920         (BUILT_IN_STRDUP): Likewise.
4921         (BUILT_IN_STRNDUP): Likewise.
4922         (BUILT_IN_ALLOCA): Likewise.
4923         (BUILT_IN_CALLOC): Likewise.
4924         (BUILT_IN_MALLOC): Likewise.
4925         (BUILT_IN_REALLOC): Likewise.
4927 2019-06-06  Jim Wilson  <jimw@sifive.com>
4929         PR target/89955
4930         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
4931         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
4932         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
4934 2019-06-06  Martin Sebor  <msebor@redhat.com>
4936         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
4937         (handle_builtin_malloc): Remove trailing spaces.
4938         (handle_builtin_memset): Same.
4939         (handle_builtin_memcmp): Same.
4940         (compute_string_length): Same.
4941         (determine_min_objsize): Same.
4942         (handle_builtin_string_cmp): Same.
4943         (handle_char_store): Same.  Break up excessively long line.
4945 2019-06-06  Martin Jambor  <mjambor@suse.cz>
4947         * tree-sra.c (build_reconstructed_reference): Drop the alignment
4948         check.
4950 2019-06-06  Martin Jambor  <mjambor@suse.cz>
4952         * tree-sra.c (struct access): New field grp_same_access_path.
4953         (dump_access): Dump it.
4954         (build_reconstructed_reference): New function.
4955         (build_ref_for_model): Use it if possible.
4956         (path_comparable_for_same_access): New function.
4957         (same_access_path_p): Likewise.
4958         (sort_and_splice_var_accesses): Set the new flag.
4959         (analyze_access_subtree): Likewise.
4960         (propagate_subaccesses_across_link): Propagate zero value of the new
4961         flag down the access tree.
4963 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
4965         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
4966         * config/gcn/gcn.opt (gpu_type): Add gfx906.
4967         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
4968         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
4969         Add gfx906.
4971 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4973         PR tree-optimization/90332
4974         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
4975         Handle VALS containing two vectors.
4976         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
4977         to...
4978         (@aarch64_combinez<mode>): ... This.
4979         (*aarch64_combinez_be<mode>): Rename to...
4980         (@aarch64_combinez_be<mode>): ... This.
4981         (vec_init<mode><Vhalf>): New define_expand.
4982         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
4984 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4986         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
4987         library functions only when not optimizing for size.
4988         (ashlsi3): Likewise.
4989         (ashrhi3): Likewise.
4990         (ashrsi3): Likewise.
4991         (lshrhi3): Likewise.
4992         (lshrsi3): Likewise.
4994 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
4996         PR rtl-optimization/88751
4997         * ira.c (ira): Use the number of the actually referenced registers
4998         when calculating the threshold.
5000 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
5002         * configure: Regenerate.
5004 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5006         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
5007         register if it is in memory, so the shift can be emulated with a rotate
5008         instruction.
5009         (ashrhi3): Likewise.
5010         (lshrhi3): Likewise.
5012 2019-06-06  Martin Liska  <mliska@suse.cz>
5014         PR tree-optimization/87954
5015         * match.pd: Simplify mult where both arguments are 0 or 1.
5017 2019-06-06  Richard Biener  <rguenther@suse.de>
5019         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
5020         put equivalences on UNDEFINED ranges.
5021         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
5022         Make sure to drop defs of stmts added during simplification
5023         to VARYING.
5025 2019-06-06  Richard Biener  <rguenther@suse.de>
5027         * tree-ssa-structalias.c: Include tree-cfg.h.
5028         (make_heapvar): Do not make heap vars artificial.
5029         (find_func_aliases_for_builtin_call): Handle stack allocation
5030         functions.
5031         (find_func_aliases): Delay processing of simple enough returns
5032         in non-IPA mode.
5033         (set_uids_in_ptset): Adjust.
5034         (find_what_var_points_to): Likewise.
5035         (solve_constraints): Do not dump points-to sets here.
5036         (compute_points_to_sets): Post-process return statements,
5037         amending the escaped solution.  Dump points-to sets afterwards.
5038         (ipa_pta_execute): Dump points-to sets.
5040 2019-06-06  Martin Liska  <mliska@suse.cz>
5042         PR web/87933
5043         * doc/install.texi: Fix HTML headers and
5044         titles for 'Installing GCC' pages.
5046 2019-06-06  Martin Liska  <mliska@suse.cz>
5048         * ipa-icf-gimple.h (dump_message_1): Remove.
5049         (dump_message): Likewise.
5050         (return_false_with_message_1): Print also file.
5051         (return_false_with_msg): Likewise.
5052         (return_with_result): Likewise.
5053         (return_with_debug): Likewise.
5054         * ipa-icf.c (sem_function::equals_private): Remove call
5055         to dump_message.
5057 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
5059         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
5060         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
5061         memory operand for it.
5062         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
5064 2019-06-05  Martin Sebor  <msebor@redhat.com>
5066         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
5067         Adjust quoting and hyphenation.
5068         * convert.c (convert_to_real_1): Same.
5069         * gcc.c (driver_wrong_lang_callback): Same.
5070         (driver::handle_unrecognized_options): Same.
5071         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5072         * opts-common.c (cmdline_handle_error): Same.
5073         (read_cmdline_option): Same.
5074         * opts-global.c (complain_wrong_lang): Same.
5075         (print_ignored_options): Same.
5076         (handle_common_deferred_options): Same.
5077         * pretty-print.h: Same.
5078         * print-rtl.c (debug_bb_n_slim): Same.
5079         * sched-rgn.c (make_pass_sched_fusion): Same.
5080         * tree-cfg.c (verify_gimple_assign_unary): Same.
5081         (verify_gimple_label): Same.
5082         * tree-ssa-operands.c (verify_ssa_operands): Same.
5083         * varasm.c (do_assemble_alias): Same.
5084         (assemble_alias): Same.
5086 2019-06-05  Richard Henderson  <rth@twiddle.net>
5088         * config/alpha/alpha.c (direct_return): Move down after
5089         struct machine_function definition; use saved frame_size;
5090         return bool.
5091         (struct machine_function): Add sa_mask, sa_size, frame_size.
5092         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
5093         (alpha_compute_frame_layout): ... new function.
5094         (TARGET_COMPUTE_FRAME_LAYOUT): New.
5095         (alpha_initial_elimination_offset): Use saved sa_size.
5096         (alpha_vms_initial_elimination_offset): Likewise.
5097         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
5098         (alpha_expand_prologue): Use saved frame data.  Merge integer
5099         and fp register save loops.
5100         (alpha_expand_epilogue): Likewise.
5101         (alpha_start_function): Use saved frame data.
5102         * config/alpha/alpha-protos.h (direct_return): Update.
5103         (alpha_sa_size): Remove.
5105 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5107         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
5108         multiplication by a power-of-two value.
5109         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
5110         and turn the modulo operation into a masking operation.
5112 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5114         PR debug/90733
5115         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
5116         with VOIDmode inner operands.
5118 2019-06-05  Richard Biener  <rguenther@suse.de>
5120         PR middle-end/90726
5121         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5122         turn an expression graph into a tree.
5124 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5126         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5127         member.
5128         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
5129         treat it like explicit monotonic schedule modifier.
5130         (expand_omp_for): Initialize has_lastprivate_conditional.
5131         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
5132         schedule modifier.
5134         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
5135         references, lookup in in hash map MEM_REF operand instead of the
5136         MEM_REF itself.
5137         (lower_omp_1): When looking for lastprivate conditional assignments,
5138         handle MEM_REFs with REFERENCE_TYPE operands.
5140         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
5141         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
5142         and references a VLA.  Handle references to non-VLAs if is_simd
5143         all privatization clauses like reductions.
5144         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
5145         If omp_is_reference, use always omp simd arrays and set
5146         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
5147         fails, emit reference initialization.
5149 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
5151         PR target/89803
5152         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
5153         _mm_mask_fpclass_sd_mask): New intrinsics.
5154         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
5155         * config/i386/i386-builtin.def
5156         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
5157         New builtins.
5158         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
5159         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
5160         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
5161         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
5162         case QI_FTYPE_V2SF_INT): Ditto.
5163         * config/i386/sse.md
5164         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
5165         Extended to insnstructions with mask operands.
5167 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5169         * config/rs6000/constraints.md (define_register_constraint "wp"):
5170         Delete.
5171         (define_register_constraint "wq"): 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_wp and RS6000_CONSTRAINT_wq.
5176         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
5177         (define_mode_attr VSa): Delete.
5178         (define_mode_attr VSisa): New.
5179         (rest of file): Adjust.
5180         * doc/md.texi (Machine Constraints): Adjust.
5182 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5184         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
5185         (define_attr "enabled"): Handle those new isa values.
5187 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5189         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
5190         (define_mode_attr VSr5): Delete.
5191         (define_mode_attr VStype_sqrt): Delete.
5192         (define_mode_iterator VSX_SPDP): Delete.
5193         (define_mode_attr VS_spdp_res): Delete.
5194         (define_mode_attr VS_spdp_insn): Delete.
5195         (define_mode_attr VS_spdp_type): Delete.
5196         (*vsx_sqrt<mode>2): Adjust.
5197         (vsx_<VS_spdp_insn>): Delete, split to...
5198         (vsx_xscvdpsp): ... this.  New.  And...
5199         (vsx_xvcvspdp): ... this.  New.  And...
5200         (vsx_xvcvdpsp): ... this.  New.
5202 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5204         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
5205         and V2DF.
5206         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
5207         (rest of file): Adjust.
5209 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5211         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
5212         (vsx_extract_<mode>_var): Ditto.
5214 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5216         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
5217         with just "wa".
5219 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5221         * config/rs6000/constraints.md (define_register_constraint "ww"):
5222         Delete.
5223         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5224         (rs6000_init_hard_regno_mode_ok): Adjust.
5225         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5226         RS6000_CONSTRAINT_ww.
5227         * config/rs6000/rs6000.md: Adjust.
5228         * config/rs6000/vsx.md: Adjust.
5229         * doc/md.texi (Machine Constraints): Adjust.
5231 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5233         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
5234         (define_mode_attr sd): New.
5235         (define_mode_attr s): New.
5236         (define_mode_attr Ftrad): Delete.
5237         (define_mode_attr Fvsx): Delete.
5238         (define_mode_attr Fs): Delete.
5239         (rest of file): Use the new mode attributes.
5240         * config.rs6000/vsx.md: Use the new mode attributes.
5242 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5244         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
5245         with just "wa".
5247 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5249         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
5250         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
5251         used with VSX_B, VSX_D, or VSX_F, with just "wa".
5253 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
5255         PR target/78263
5256         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
5257         C++ with strict ANSI requirements.
5259 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
5261         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
5262         computations when step is 1.
5264 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5266         * config/rs6000/constraints.md (define_register_constraint "wf"):
5267         Delete.
5268         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5269         (rs6000_init_hard_regno_mode_ok): Adjust.
5270         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5271         RS6000_CONSTRAINT_wf.
5272         * config/rs6000/rs6000.md: Adjust.
5273         * config/rs6000/vsx.md: Adjust.
5274         * doc/md.texi (Machine Constraints): Adjust.
5276 2019-06-04  Andrew Pinski  <apinski@marvell.com>
5278         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
5279         Fix ILP32 value.
5281 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5283         * config/rs6000/constraints.md (define_register_constraint "wd"):
5284         Delete.
5285         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5286         (rs6000_init_hard_regno_mode_ok): Adjust.
5287         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5288         RS6000_CONSTRAINT_wd.
5289         * config/rs6000/rs6000.md: Adjust.
5290         * config/rs6000/vsx.md: Adjust.
5291         * doc/md.texi (Machine Constraints): Adjust.
5293 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5295         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
5296         (rest of file): Adjust.
5298 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5300         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
5301         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
5302         (vsx_splat_<mode>_reg): Adjust.
5304 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5306         * config/rs6000/constraints.md (define_register_constraint "ws"):
5307         Delete.
5308         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5309         (rs6000_init_hard_regno_mode_ok): Adjust.
5310         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5311         RS6000_CONSTRAINT_ws.
5312         * config/rs6000/rs6000.md: Adjust.
5313         * config/rs6000/vsx.md: Adjust.
5314         * doc/md.texi (Machine Constraints): Adjust.
5316 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5318         * config/rs6000/constraints.md (define_register_constraint "wv"):
5319         Delete.
5320         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5321         (rs6000_init_hard_regno_mode_ok): Adjust.
5322         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5323         RS6000_CONSTRAINT_wv.
5324         * config/rs6000/rs6000.md: Adjust.
5325         * config/rs6000/vsx.md: Adjust.
5326         * doc/md.texi (Machine Constraints): Adjust.
5328 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
5330         * config/rs6000/constraints.md (define_register_constraint "wi"):
5331         Delete.
5332         (define_register_constraint "wt"): Delete.
5333         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5334         (rs6000_init_hard_regno_mode_ok): Adjust.
5335         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5336         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
5337         * config/rs6000/rs6000.md: Adjust.
5338         * config/rs6000/vsx.md: Adjust.
5339         * doc/md.texi (Machine Constraints): Adjust.
5341 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5343         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
5344         const.
5345         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
5346         default_elf_asm_output_external.
5348 2019-06-04  Martin Liska  <mliska@suse.cz>
5350         * ipa-icf.c (INCLUDE_LIST): Remove.
5351         (sem_item_optimizer::execute): Remove call to init_wpa.
5352         * ipa-icf.h (init_wpa): Remove.
5354 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
5356         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
5357         conditional on combined for simd.
5358         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
5359         member.
5360         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
5361         constructs, don't remove lastprivate_conditional_map, but instead set
5362         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
5363         to parent construct temporaries.
5364         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
5365         like !ctx->lastprivate_conditional_map.
5366         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
5367         use up->outer context instead of up.
5368         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
5369         gimple_omp_for_combined_p.
5370         (expand_omp_for_static_nochunk): Likewise.
5371         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
5372         probably moved over into expand_omp_for_generic rather than being copied
5373         there.
5375 2019-06-04  Martin Liska  <mliska@suse.cz>
5377         * value-prof.c (dump_histogram_value): Fix typo.
5378         (gimple_mod_subtract_transform): Likewise.
5380 2019-06-04  Richard Biener  <rguenther@suse.de>
5382         PR middle-end/90726
5383         * tree-chrec.c (chrec_contains_symbols): Add to visited.
5384         (tree_contains_chrecs): Likewise.
5385         (chrec_contains_symbols_defined_in_loop): Move here and avoid
5386         exponential behaivor from ...
5387         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5388         ... here.
5389         (expression_expensive_p): Avoid exponential behavior and compute
5390         expanded size, rejecting any expansion.
5391         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
5392         (idx_contains_abnormal_ssa_name_p): Likewise.
5393         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
5394         (contains_abnormal_ssa_name_p): Simplify and use
5395         walk_tree_without_duplicates.
5397 2019-06-04  Richard Biener  <rguenther@suse.de>
5399         PR tree-optimization/90738
5400         Revert
5401         2019-06-03  Richard Biener  <rguenther@suse.de>
5403         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5404         full reference tree and record in ref->ref.
5405         (vn_reference_lookup_3): Pass in original ref to
5406         ao_ref_init_from_vn_reference.
5407         (vn_reference_lookup): Likewise.
5408         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5409         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5410         Handle non-decl bases in the original reference.
5412 2019-06-04  Martin Liska  <mliska@suse.cz>
5414         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
5415         number of references.
5416         (sem_item_optimizer::do_congruence_step):
5417         (sem_item_optimizer::worklist_push): Dump how references
5418         a class has.
5419         (sem_item_optimizer::worklist_pop): Use heap.
5420         (sem_item_optimizer::process_cong_reduction): Likewise.
5421         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
5423 2019-06-04  Martin Liska  <mliska@suse.cz>
5425         * ipa-icf.h (struct sem_usage_pair_hash): New.
5426         (sem_usage_pair_hash::hash): Likewise.
5427         (sem_usage_pair_hash::equal): Likewise.
5428         (struct sem_usage_hash): Likewise.
5429         * ipa-icf.c (sem_item::sem_item): Initialize
5430         referenced_by_count.
5431         (sem_item::add_reference): Register a reference
5432         in ref_map and not in target->usages.
5433         (sem_item::setup): Remove initialization of
5434         dead vectors.
5435         (sem_item::~sem_item): Remove usage of dead vectors.
5436         (sem_item::dump): Remove dump of references.
5437         (sem_item_optimizer::sem_item_optimizer): Initialize
5438         m_references.
5439         (sem_item_optimizer::read_section): Remove useless
5440         dump.
5441         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
5442         (sem_item_optimizer::build_graph): Pass m_references
5443         to ::add_reference.
5444         (sem_item_optimizer::verify_classes): Remove usage of dead
5445         vectors.
5446         (sem_item_optimizer::traverse_congruence_split): Return true
5447         when a class is split.
5448         (sem_item_optimizer::do_congruence_step_for_index): Use
5449         hash_map for look up of (sem_item *, index). That brings
5450         significant speed up.
5451         (sem_item_optimizer::do_congruence_step): Return true
5452         when a split is done.
5453         (congruence_class::is_class_used): Use referenced_by_count.
5455 2019-06-04  Alan Modra  <amodra@gmail.com>
5457         PR target/90689
5458         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
5459         error.
5461 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5463         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
5464         * config/rs6000/rs6000.c (direct_move_p): Adjust.
5465         (rs6000_secondary_reload_simple_move): Adjust.
5466         (rs6000_opt_masks): Neuter the "mfpgpr" option.
5467         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
5468         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
5469         comment.
5470         (power6x): Adjust.
5471         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
5472         (floatunssi<mode>2_lfiwzx): Adjust.
5473         (fix_trunc<mode>si2_stfiwx): Adjust.
5474         (fixuns_trunc<mode>si2_stfiwx): Adjust.
5475         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
5476         (mfpgpr): Mark as deprecated.
5477         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
5478         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
5479         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
5481 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5483         * config/rs6000/constraints.md (define_register_constraint "wg"):
5484         Delete.
5485         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5486         RS6000_CONSTRAINT_wg.
5487         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5488         (rs6000_init_hard_regno_mode_ok): Adjust.
5489         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
5490         Delete "wg" alternatives.
5491         * doc/md.texi (Machine Constraints): Adjust.
5493 2019-06-03  Alan Modra  <amodra@gmail.com>
5495         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
5496         (get_uncond_jump_length): Assert length less than INT_MAX and
5497         non-negative.
5499 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
5501         PR middle-end/64242
5502         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
5503         block.
5504         (expand_builtin_nonlocal_goto): Likewise.
5506 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5508         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
5509         (aarch64_asm_output_external): Declare.
5510         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
5511         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
5512         (aarch64_asm_output_alias): New.
5513         (aarch64_asm_output_external): New.
5514         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5515         (ASM_OUTPUT_EXTERNAL): Define.
5517 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
5518         * tree-vrp.h (value_range_base::nonzero_p): New.
5519         (value_range_base::set_nonnull): Rename to...
5520         (value_range_base::set_nonzero): ...this.
5521         (value_range_base::set_null): Rename to...
5522         (value_range_base::set_zero): ...this.
5523         (value_range::set_nonnull): Remove.
5524         (value_range::set_null): Remove.
5525         * tree-vrp.c (range_is_null): Remove.
5526         (range_is_nonnull): Remove.
5527         (extract_range_from_binary_expr): Use value_range_base::*zero_p
5528         instead of range_is_*null.
5529         (extract_range_from_unary_expr): Same.
5530         (value_range_base::set_nonnull): Rename to...
5531         (value_range_base::set_nonzero): ...this.
5532         (value_range::set_nonnull): Remove.
5533         (value_range_base::set_null): Rename to...
5534         (value_range_base::set_zero): ...this.
5535         (value_range::set_null): Remove.
5536         (extract_range_from_binary_expr): Rename set_*null uses to
5537         set_*zero.
5538         (extract_range_from_unary_expr): Same.
5539         (union_helper): Same.
5540         * vr-values.c (get_value_range): Use set_*zero instead of
5541         set_*null.
5542         (vr_values::extract_range_from_binary_expr): Same.
5543         (vr_values::extract_range_basic): Same.
5545 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
5547         PR driver/90684
5548         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
5550 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5552         * config/aarch64/iterators.md (MAX_OPP): New code attr.
5553         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
5554         (aarch64_<su>abd<mode>_3): ... This.
5555         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
5557 2019-06-03  Richard Biener  <rguenther@suse.de>
5559         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5560         full reference tree and record in ref->ref.
5561         (vn_reference_lookup_3): Pass in original ref to
5562         ao_ref_init_from_vn_reference.
5563         (vn_reference_lookup): Likewise.
5564         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5565         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5566         Handle non-decl bases in the original reference.
5568 2019-06-03  Martin Liska  <mliska@suse.cz>
5570         * doc/generic.texi: Remove Java Trees.
5572 2019-06-03  Martin Liska  <mliska@suse.cz>
5574         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
5575         returns 0 when operands are equal.
5577 2019-06-03  Richard Biener  <rguenther@suse.de>
5579         PR tree-optimization/90716
5580         * tree-loop-distribution.c (destroy_loop): Process blocks in
5581         correct order.
5583 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5585         PR target/88837
5586         * vector-builder.h (vector_builder::count_dups): New method.
5587         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
5588         Declare prototype.
5589         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
5590         (vec_init<mode><Vel>): New pattern.
5591         * config/aarch64/aarch64.c (emit_insr): New function.
5592         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
5593         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
5594         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
5595         (aarch64_sve_expand_vector_init): Define two overloaded functions.
5597 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5599         PR tree-optimization/90681
5600         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
5601         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
5602         special case for SLP, but fail on non-groupped loads.
5604 2019-06-03  Martin Liska  <mliska@suse.cz>
5606         * cfg.c (debug): Use TDF_DETAILS for debug and
5607         print edge info only once.
5609 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
5611         PR fortran/90539
5612         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
5614 2019-06-01  Martin Sebor  <msebor@redhat.com>
5616         PR middle-end/90694
5617         * tree-pretty-print.c (dump_generic_node): Add parentheses.
5619 2019-05-31  Jan Hubicka  <jh@suse.cz>
5621         * alias.c: Include ipa-utils.h.
5622         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
5623         * ipa-devirt.c (prevailing_odr_type): New.
5624         * ipa-utils.h (previaling_odr_type): Declare.
5626 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5627             Hongtao Liu  <hongtao.liu@intel.com>
5629         PR target/89355
5630         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
5631         NOTE_INSN_DELETED_LABEL check.
5633 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
5634             Robert Suchanek  <robert.suchanek@mips.com>
5636         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
5637         and 3rd operands of the fmadd/fmsub/maddv builtin.
5639 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
5641         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
5642         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
5643         on OMP_SIMD if not nested inside of worksharing loop that also has
5644         lastprivate conditional clause for the same decl.
5645         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
5646         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
5647         on simd.
5648         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
5649         on simd construct.
5650         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
5651         on simd construct.
5652         (lower_lastprivate_clauses): Likewise.
5653         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
5654         calling lower_rec_input_clauses.
5655         (lower_omp_for): Likewise.
5656         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
5657         clause on simd construct.
5658         * omp-expand.c (expand_omp_simd): Initialize cond_var if
5659         OMP_CLAUSE__CONDTEMP_ clause is present.
5661         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
5662         ivar and lvar.
5664 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
5666         PR c/43673
5667         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
5668         TEX_D32, TEX_D64 or TEX_D128.
5670 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
5672         * match.pd (~(vec?cst1:cst2)): New transformation.
5674 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
5676         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
5677         ((size_t)(A /[ex] B) CMP C): New transformation.
5679 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
5681         * doc/md.texi: Document define_insn_and_rewrite.
5682         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
5683         * gensupport.c (queue_elem): Update comment.
5684         (replace_operands_with_dups): New function.
5685         (gen_rewrite_sequence): Likewise.
5686         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
5687         * read-rtl.c (apply_subst_iterator): Likewise.
5688         (add_condition_to_rtx, named_rtx_p): Likewise.
5689         (rtx_reader::read_rtx_operand): Likewise.
5690         * config/aarch64/aarch64-sve.md
5691         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
5692         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
5693         define_insn_and_rewrite.
5694         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
5695         Remove separate define_split.
5697 2019-05-31  Jan Hubicka  <jh@suse.cz>
5699         * tree-ssa-alias.c (type_has_components_p): New function.
5700         (aliasing_component_refs_p): Use it.
5702 2019-05-31  Martin Liska  <mliska@suse.cz>
5704         * gdbhooks.py: Add const_tree to TreePrinter.
5706 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
5708         PR debug/86964
5709         * common.opt (feliminate-unused-debug-symbols): Enable by default.
5710         * doc/invoke.texi (Debugging Options): Document new default of
5711         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
5713 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
5715         PR tree-optimization/90671
5716         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
5717         template_block used to be empty on the first call, don't use
5718         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
5719         seq with bb_seq and set it with set_bb_seq.
5721 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
5723         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
5725 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
5726             Michael Meissner  <meissner@linux.ibm.com>
5728         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
5729         (prefixed_mem_operand): Likewise.
5730         (non_prefixed_mem_operand): Likewise.
5731         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
5732         prototype.
5733         * config/rs6000/rs6000.c (print_operand_address): Handle
5734         PC-relative addresses.
5735         (mode_supports_prefixed_address_p): New function.
5736         (rs6000_prefixed_address): New function.
5737         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
5738         (SYMBOL_REF_PCREL_P): Likewise.
5740 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
5742         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
5743         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
5744         (gimplify_omp_for): If worksharing loop with lastprivate conditional
5745         is nested inside of parallel region, add _condtemp_ clause to both.
5746         * tree-nested.c (convert_nonlocal_omp_clauses,
5747         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
5748         assertion failure.
5749         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
5750         member.
5751         * omp-general.c (omp_extract_for_data): Compute it.
5752         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
5753         (lower_rec_input_clauses): Likewise.
5754         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
5755         clause is already present, just add one further one after it.
5756         (lower_lastprivate_clauses): Handle cond_ptr with array type.
5757         (lower_send_shared_vars): Clear _condtemp_ vars.
5758         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
5759         or section or taskgroup.
5760         * omp-expand.c (determine_parallel_type): Disallow combining only if
5761         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
5762         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
5763         (expand_omp_for_generic, expand_omp_for_static_nochunk,
5764         expand_omp_for_static_chunk, expand_omp_for): Use
5765         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
5766         determine if a special set of API routines are needed and if condtemp
5767         needs to be initialized, while always initialize cond_var if
5768         fd->lastprivate_conditional is non-zero.
5770 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
5771             Michael Meissner  <meissner@linux.ibm.com>
5773         * config/rs6000/constraints.md (eI): New constraint.
5774         * config/rs6000/predicates.md (cint34_operand): New predicate.
5775         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
5776         (SIGNED_34BIT_OFFSET_P): Likewise.
5777         * doc/md.texi (eI): Document constraint.
5779 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
5781         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
5783 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
5784             Michael Meissner  <meissner@linux.ibm.com>
5786         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
5787         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
5788         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
5789         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
5790         (OTHER_FUTURE_MASKS): Likewise.
5791         (POWERPC_MASKS): Likewise.
5792         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
5793         specified without -mprefixed-addr or -mcpu=future.  Error if
5794         -mprefixed-addr is specified without -mcpu=future.
5795         (rs6000_opt_masks): Add entry for prefixed-addr.
5796         * rs6000.opt (mprefixed-addr): New option.
5798 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
5800         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add 
5801         cfun->is_thunk check.
5803 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
5805         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
5806         to length.
5808 2019-05-30  Martin Liska  <mliska@suse.cz>
5810         * gdbinit.in: Fix 'ptc' command.  Add trt
5811         that prints TREE_TYPE($).
5813 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
5814             Alan Modra  <amodra@gmail.com>
5816         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
5817         calls here...
5818         (rs6000_indirect_call_template_1): ...and here.
5819         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
5820         plt16_ha, plt16_lo, mtctr indirect calls.  Use
5821         rs6000_pltseq_enum.
5822         (rs6000_decl_ok_for_sibcall): New function.
5823         (rs6000_function_ok_for_sibcall): Refactor.
5824         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
5825         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
5826         when pcrel.  Reorganize.
5827         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
5828         * rs6000.h (rs6000_pltseq_enum): New enum.
5829         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
5830         (*pltseq_tocsave): Use rs6000_pltseq_enum.
5831         (*pltseq_plt16_ha): Likewise.
5832         (*pltseq_plt16_lo): Likewise.
5833         (*pltseq_mtctr): Likewise.
5834         (*pltseq_plt_pcrel): New insn.
5835         (*call_local_aix): Handle @notoc calls.
5836         (*call_value_local_aix): Likewise.
5837         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
5838         (*call_value_nonlocal_aix): Likewise.
5839         (*call_indirect_pcrel): New insn.
5840         (*call_value_indirect_pcrel): Likewise.
5843 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5845         * config/i386/sse.md (*save_multiple<mode>): Rename from
5846         save_multiple<mode>.
5847         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
5848         (*restore_multiple_and_return<mode>): Rename from
5849         restore_multiple_and_return<mode>.
5850         (*restore_multiple_leave_return<mode>): Rename from
5851         restore_multiple_leave_return<mode>.
5853 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
5855         * config.gcc (rx-*-linux*): New target.
5856         * config/rx/elf.opt: New file.
5857         * config/rx/linux.h: Likewise.
5858         * config/rx/t-linux: Likewise.
5859         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
5860         make it zero.
5861         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
5862         (ASM_APP_OFF): Likewise.
5863         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
5864         moved elsewhere.
5866 2019-05-29  Jan Hubicka  <jh@suse.cz>
5868         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
5869         variants are pointer equivalent.
5871 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5873         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
5874         * config/aarch64/aarch64-sve2.md: New file.
5875         (<u>avg<mode>3_floor): New pattern.
5876         (<u>avg<mode>3_ceil): Likewise.
5877         (*<sur>h<addsub><mode>): Likewise.
5878         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
5879         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
5881 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
5883         PR bootstrap/90543
5884         * optc-save-gen.awk: In cl_optimization_print, use correct condition
5885         for var_opt_string printing.  In cl_optimization_print_diff, print
5886         (null) instead of invoking undefined behavior if one of the
5887         var_opt_string pointers is NULL and use && instead of first || in the
5888         guarding condition.  For var_target_other options, handle const char *
5889         target variables similarly to const char * optimize node variables.
5891 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
5893         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
5894         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
5895         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
5896         Add autib1716 and pacib1716 initialisation.
5897         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
5898         for autib1716 and pacib1716.
5899         * config/aarch64/aarch64-protos.h (aarch64_key_type,
5900         aarch64_post_cfi_startproc): Define.
5901         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
5902         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
5903         aarch64_handle_pac_ret_protection): Set default sign key to A.
5904         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
5905         aarch64_expand_prologue): Add check for b-key.
5906         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
5907         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
5908         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
5909         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
5910         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
5911         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
5912         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
5913         * config/aarch64/aarch64.md (do_return): Add check for b-key.
5914         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
5915         pauth_hint_num_a with pauth_hint_num.
5916         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
5917         pauth_hint_num_a with pauth_hint_num.
5918         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
5919         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
5920         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
5921         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
5922         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
5923         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
5924         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
5925         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
5926         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
5927         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
5928         UNSPEC_AUTIA1716 respectively.
5929         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
5930         and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
5931         * doc/invoke.texi (-mbranch-protection): Add b-key type.
5932         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
5933         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
5935 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
5937         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
5938         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
5939         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
5940         explicit clause on combined parallel into implicit shared clause.
5941         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
5942         and firstprivate if the decl has one too from combined parallel to
5943         the worksharing construct.
5945 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
5946             Michael Meissner  <meissner@linux.ibm.com>
5948         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
5950 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
5952         * rtl.h (LABEL_REF_P): New #define.
5954 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
5956         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
5958 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
5960         * internal-fn.c: Marked mask_load_direct as vectorizable.
5961         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
5962         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
5963         combined even if masks different with allow_slp_p param.
5964         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
5965         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
5966         dissolve SLP-only vectorizable groups when SLP has been discarded.
5967         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
5968         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
5969         masks.
5970         (vect_build_slp_tree_1): Fixed comment typo.
5971         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
5972         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
5973         loads for SLP only.
5974         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
5975         vectorizable.
5976         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
5978 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5980         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
5981         Remove obsolete use_thunk reference.
5982         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
5983         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5984         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
5985         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
5986         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5987         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5988         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5989         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
5990         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
5992 2019-05-28  Nathan Sidwell  <nathan@acm.org>
5994         * tree.h (IDENTIFIER_ANON_P): New.
5995         (anon_aggrname_format, anon_aggname_p): Don't declare.
5996         (make_anon_name): Declare.
5997         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
5998         (hash_tree): Likewise.
5999         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
6000         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
6001         (anon_cnt, make_anon_name): New.
6003 2019-05-28  Martin Liska  <mliska@suse.cz>
6005         PR other/90315
6006         * opts-global.c (decode_options): Print help for all
6007         help_option_arguments.
6008         * opts.c (print_help): Add new argument.
6009         (common_handle_option): Remember all values into
6010         help_option_arguments.
6011         * opts.h (print_help): Add new argument.
6013 2019-05-28  Martin Liska  <mliska@suse.cz>
6015         PR ipa/90555
6016         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
6017         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
6018         (func_checker::compare_bb): Call compare_loops.
6020 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
6022         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6023         on sections construct.
6024         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
6025         construct.
6026         (lower_omp_sections): Handle lastprivate conditional.
6027         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
6028         lastprivate_conditional_map.
6029         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
6031         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
6032         critical, taskgroup and section regions when looking for a region
6033         with non-NULL lastprivate_conditional_map.
6035 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6037         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
6038         (*ix86_gen_sub3): Ditto.
6039         (*ix86_gen_sub3_carry): Ditto.
6040         (*ix86_gen_one_cmpl2): Ditto.
6041         (*ix86_gen_andsp): Ditto.
6042         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
6043         (gen_and2_insn): New static function.
6044         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
6045         Use gen_add3_insn instead of ix86_gen_add3.
6046         (ix86_expand_split_stack_prologue): Use gen_add2_insn
6047         instead of ix86_gen_add3.
6048         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
6049         Use gen_sub3_insn instead of ix86_gen_sub3.
6050         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
6051         instead of ix86_gen_add3.
6052         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
6053         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
6054         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
6055         * config/i386/i386-options.c (ix86_option_override_internal):
6056         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6057         ix86_gen_one_cmpl2 and ix86_gen_andsp.
6059 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6061         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
6062         and DW_OP_GNU_const_index opcodes.
6064 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6066         * config/i386/i386.h (STACK_SIZE_MODE): Define.
6068 2019-05-27  Richard Biener  <rguenther@suse.de>
6070         PR tree-optimization/90637
6071         * tree-ssa-sink.c (statement_sink_location): Honor the
6072         computed sink location for single-uses.
6074 2019-05-27  Richard Biener  <rguenther@suse.de>
6076         PR middle-end/90610
6077         * match.pd (vec_perm): Avoid clobbering op0 when not generating
6078         a bit-insert.
6080 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6082         * config/i386/i386.md (@sub<mode>3_carry): Rename
6083         from sub<mode>3_carry.
6084         (@leave_<mode>): New expander.
6085         (*leave): Rename from leave.
6086         (*leave_rex64): Rename from leave_rex64.
6087         (@monitorx_<mode>): Rename from monitorx_<mode>.
6088         (@clzero_<mode>): Rename from clzero_<mode>.
6089         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
6090         from sse3_monitor_<mode>.
6091         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
6092         (*ix86_gen_leave): Ditto.
6093         (*ix86_gen_monitor): Ditto.
6094         (*ix86_gen_monitorx): Ditto.
6095         (*ix86_gen_clzero): Ditto.
6096         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
6097         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
6098         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
6099         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
6100         Use gen_sse3_monitor instead of ix86_gen_monitor.
6101         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
6102         instead of ix86_gen_monitorx.
6103         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
6104         instead of ix86_gen_clzero.
6105         * config/i386/i386-options.c (ix86_option_override_internal):
6106         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
6107         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
6109 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6111         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
6112         Rename from tls_global_dynamic_64_<mode>.
6113         (@tls_local_dynamic_base_64_<mode>): Rename from
6114         tls_local_dynamic_base_64_<mode>.
6115         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
6116         Remove indirect function.
6117         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
6118         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
6119         instead of ix86_gen_tls_global_dynamic_64.
6120         Use gen_tls_local_dynamic_base_64 instead of
6121         ix86_gen_tls_local_dynamic_base_64.
6122         * config/i386/i386-options.c (ix86_option_override_internal):
6123         Do not initialize ix86_gen_tls_global_dynamic_64 and
6124         ix86_gen_tls_local_dynamic_base_64.
6126 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6128         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
6129         Rename from pro_epilogue_adjust_stack_<mode>_add.
6130         (@pro_epilogue_adjust_stack_sub_<mode>)
6131         Rename from pro_epilogue_adjust_stack_<mode>_sub.
6132         (@allocate_stack_worker_probe_<mode>):
6133         Rename from allocate_stack_worker_probe_<mode>.
6134         (allocate_stack): Use gen_allocate_stack_worker_probe.
6135         (probe_stack): Use gen_probe_stack_1.
6136         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
6137         (@adjust_stack_and_probe_<mode>): Rename from
6138         adjust_stack_and_probe<mode>.
6139         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
6140         (stack_protect_set): Use gen_stack_protect_set_1.
6141         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
6142         (stack_protect_test): Use gen_stack_protect_test_1.
6143         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
6144         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
6145         Remove indirect function.
6146         (*ix86_gen_adjust_stack_and_probe): Ditto.
6147         (*ix86_gen_probe_stack_range): Ditto.
6148         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
6149         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
6150         (ix86_adjust_stack_and_probe_stack_clash): Use
6151         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
6152         (ix86_adjust_stack_and_probe): Ditto.
6153         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
6154         of ix86_gen_probe_stack_range.
6155         (ix86_expand_prologue):  Use gen_pro_epilogue_adjust_stack_sub
6156         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
6157         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
6158         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
6159         CODE_FOR_stack_protect_test_{si,di}.
6160         * config/i386/i386-options.c (ix86_option_override_internal):
6161         Do not initialize ix86_gen_allocate_stack_worker,
6162         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6164 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
6166         * doc/invoke.texi (Link Options): Many editorial changes around
6167         -flinker-output.
6169 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6171         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
6172         pre-Solaris 11 referene and most Studio compiler details.
6174 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
6176         PR target/90530
6177         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
6178         DImode to SImode in floating-point registers on 64-bit target.
6179         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
6180         register_operand in xmpyu patterns.
6182 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6184         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
6185         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
6186         OMP_CLAUSE__REDUCTEMP_.
6187         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6188         OMP_CLAUSE__CONDTEMP_.
6189         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
6190         * tree-pretty-print.c (dump_omp_clause): Likewise.
6191         * tree-nested.c (convert_nonlocal_omp_clauses,
6192         convert_local_omp_clauses): Likewise.
6193         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
6194         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
6195         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
6196         on OMP_FOR.
6197         (gimplify_omp_for): Warn and disable conditional modifier from
6198         lastprivate on loop iterators.
6199         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
6200         member.
6201         * omp-general.c (omp_extract_for_data): Initialize it.
6202         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
6203         member.
6204         (delete_omp_context): Delete it.
6205         (lower_lastprivate_conditional_clauses): New function.
6206         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
6207         handle lastprivate conditional clauses.
6208         (lower_reduction_clauses): Add CLIST argument, emit it into
6209         the critical section if any.
6210         (lower_omp_sections): Adjust lower_lastprivate_clauses and
6211         lower_reduction_clauses callers.
6212         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
6213         to lower_lastprivate_clauses.
6214         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
6215         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
6216         clist into a critical section if not emitted there already by
6217         lower_reduction_clauses.
6218         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
6219         callers.
6220         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
6221         conditional variables.
6222         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
6223         clause is present.
6224         (expand_omp_for_generic, expand_omp_for_static_nochunk,
6225         expand_omp_for_static_chunk): Handle lastprivate conditional.
6226         (expand_omp_for): Handle fd.lastprivate_conditional like
6227         fd.have_reductemp.
6229 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
6231         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
6232         kernel does not exit cleanly.
6233         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
6235 2019-05-24  Jason Merrill  <jason@redhat.com>
6237         Revert:
6238         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6240 2019-05-24  Richard Biener  <rguenther@suse.de>
6242         PR testsuite/90607
6243         * tree-loop-distribution.c (struct partition): Add location
6244         member.
6245         (partition_alloc): Initialize all fields.
6246         (generate_memset_builtin): Use the location recorded in the
6247         partition for the generated call.
6248         (generate_memcpy_builtin): Likewise.
6249         (classify_partition): Record the location of a single store
6250         as location for the partition.
6252 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
6254         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
6255         for lo-part.
6257 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
6259         PR target/90588
6260         * common/config/aarch64/aarch64-common.c
6261         (aarch64_rewrite_selected_cpu): Change local temporary variable
6262         type from unsigned long to uint64_t.
6263         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
6264         aarch64_get_extension_string_for_isa_flags): Change declaration to
6265         match new definition by replacing unsigned long with uint64_t.
6267 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6269         PR target/90568
6270         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
6271         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
6272         Handle stack_protect_test_<mode> codegen similarly to corresponding
6273         sub instruction.
6275 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
6277        * config/i386/darwin.h: Reject -mfentry*.
6278        * doc/sourcebuild.texi: Document mfentry target support.
6280 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6282         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
6283         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
6284         false for PC-relative functions.
6285         (rs6000_output_function_prologue): Change called function name to
6286         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
6287         name,1" for PC-relative functions.
6288         (rs6000_elf_declare_function_name): Change called function name to
6289         rs6000_global_entry_point_prologue_needed_p.
6291 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6293         PR target/90552
6294         * config/i386/i386.c (gen_rtx_cost):
6295         Use ix86_tune_cost instead of ix86_cost.
6297 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6298             Michael Meissner  <meissner@linux.ibm.com>
6299             Segher Boessenkool  <segher@kernel.crashing.org>
6301         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
6302         OPTION_MASK_PCREL.
6303         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
6304         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
6305         (rs6000_fndecl_pcrel_p): Likewise.
6306         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
6307         error if -mpcrel is requested without -mcpu=future.
6308         (rs6000_opt_masks): Add entry for pcrel.
6309         (rs6000_fndecl_pcrel_p): New function.
6310         (rs6000_pcrel_p): Likewise.
6311         * config/rs6000/rs6000.opt (mpcrel): New option.
6312         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
6314 2019-05-23  Jan Hubicka  <jh@suse.cz>
6315             Martin Liska  <mliska@suse.cz>
6317         PR tree-optimization/90576
6318         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
6319         poly_int_tree_p.
6320         (aliasing_component_refs_p): Fix three way size compare conditional;
6321         give up earlier in case we can not decide on equivalence.
6323 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6324             Michael Meissner  <meissner@linux.ibm.com>
6325             Segher Boessenkool  <segher@kernel.crashing.org>
6327         * config.gcc: Add future cpu.
6328         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
6329         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
6330         #define.
6331         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
6332         (RS6000_CPU): New instantiation for future cpu.
6333         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6334         PROCESSOR_FUTURE.
6335         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
6336         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
6337         * config/rs6000/rs6000-tables.opt: Regenerate.
6338         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
6339         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
6340         (rs6000_machine_from_flags): Handle future cpu.
6341         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
6342         PROCESSOR_POWER9 for now.
6343         (rs6000_adjust_cost): Likewise.
6344         (rs6000_issue_rate): Likewise.
6345         (rs6000_register_move_cost): Likewise.
6346         (rs6000_opt_masks): Add entry for future.
6347         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
6348         (MASK_FUTURE): New #define.
6349         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
6350         * config/rs6000/rs6000.opt (mfuture): New target option.
6351         * doc/invoke.texi (mcpu): Add future cpu.
6353 2019-05-23  Martin Liska  <mliska@suse.cz>
6355         PR c++/90587
6356         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
6357         operation points to a temporary (pointed via tree_to_wide_ref)
6358         that is out of scope after the &.
6360 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
6362         PR c++/90592
6363         * doc/extend.texi (Function Names): Add missing word.
6365 2019-05-23  Richard Biener  <rguenther@suse.de>
6367         PR tree-optimization/88440
6368         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
6369         at -O[2s]+.
6370         * tree-loop-distribution.c (generate_memset_builtin): Fold the
6371         generated call.
6372         (generate_memcpy_builtin): Likewise.
6373         (distribute_loop): Pass in whether to only distribute patterns.
6374         (prepare_perfect_loop_nest): Also allow size optimization.
6375         (pass_loop_distribution::execute): When optimizing a loop
6376         nest for size allow pattern replacement.
6378 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
6380         PR target/90568
6381         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
6382         of xor.
6384 2019-05-23  Martin Liska  <mliska@suse.cz>
6386         PR sanitizer/90570
6387         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
6388         expression similarly to gimplify_decl_expr.
6390 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6392         * cse.c (cse_dump_path): s/dump_file/f.
6394 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
6396         PR c++/90462
6397         * diagnostic-format-json.cc: Include "selftest.h".
6398         (json_from_expanded_location): Only add "file" key for non-NULL
6399         file strings.
6400         (json_from_location_range): Don't add "start" and "finish"
6401         children if they are UNKNOWN_LOCATION.
6402         (selftest::test_unknown_location): New selftest.
6403         (selftest::test_bad_endpoints): New selftest.
6404         (selftest::diagnostic_format_json_cc_tests): New function.
6405         * json.cc (json::object::get): New function.
6406         (selftest::test_object_get): New selftest.
6407         (selftest::json_cc_tests): Call it.
6408         * json.h (json::object::get): New decl.
6409         * selftest-run-tests.c (selftest::run_tests): Call
6410         selftest::diagnostic_format_json_cc_tests.
6411         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
6412         decl.
6414 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
6415             Andrew Stubbs  <amd@codesourcery.com>
6417         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
6418         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
6419         (kernel): Rename to...
6420         (main_kernel): ... this.
6421         (load_image): Load _init_array and _fini_array kernels.
6422         (run): Add argument for kernel to run.
6423         (main): Run init_array_kernel before main_kernel, and
6424         fini_array_kernel after.
6425         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
6426         amdgpu_hsa_kernel attribute on functions.
6427         (gcn_disable_constructors): Delete.
6428         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
6429         * config/gcn/crt0.c (size_t): Define.
6430         (_init_array, _fini_array): New.
6431         (__preinit_array_start, __preinit_array_end,
6432         __init_array_start, __init_array_end,
6433         __fini_array_start, __fini_array_end): Declare weak references.
6435 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
6437         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
6439 2019-05-22  Jason Merrill  <jason@redhat.com>
6441         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6443 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6445         PR target/88483
6446         * config/i386/i386-options.c (ix86_init_machine_status): Set
6447         stack_frame_required to true.
6448         * config/i386/i386.c (ix86_get_frame_size): New function.
6449         (ix86_frame_pointer_required): Replace get_frame_size with
6450         ix86_get_frame_size.
6451         (ix86_compute_frame_layout): Likewise.
6452         (ix86_find_max_used_stack_alignment): Changed to void.  Set
6453         stack_frame_required.
6454         (ix86_finalize_stack_frame_flags): Always call
6455         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
6456         ix86_get_frame_size.
6457         * config/i386/i386.h (machine_function): Add stack_frame_required.
6459 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6461         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
6463 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
6465         * common/config/aarch64/aarch64-common.c
6466         (struct aarch64_option_extension, struct processor_name_to_arch,
6467         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
6468         aarch64_contains_opt,
6469         aarch64_get_extension_string_for_isa_flags): Change type of
6470         variables storing flags to uint64_t.
6471         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
6472         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
6473         * config/aarch64/aarch64.c (struct processor,
6474         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
6475         aarch64_validate_march, aarch64_override_options,
6476         aarch64_option_print, aarch64_handle_attr_isa_flags,
6477         aarch64_declare_function_name, aarch64_start_file): Make flag
6478         variables uint64_t.
6479         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
6480         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
6481         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
6482         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
6483         * config/aarch64/driver-aarch64.c
6484         (struct aarch64_arch_extension, struct aarch64_core_data,
6485         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
6486         flag variables uint64_t.
6487         * doc/invoke.texi: Add documentation for new arguments.
6489 2019-05-22  Richard Biener  <rguenther@suse.de>
6491         * alias.c (ao_ref_from_mem): Move stack-slot sharing
6492         rewrite ...
6493         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
6495 2019-05-22  Martin Liska  <mliska@suse.cz>
6497         PR lto/90500
6498         * doc/extend.texi: Document the change.
6500 2019-05-22  Richard Biener  <rguenther@suse.de>
6502         PR tree-optimization/90450
6503         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
6504         (mem_ref_hasher::equal): Check it.
6505         (mem_ref_alloc): Initialize it.
6506         (gather_mem_refs_stmt): Set it.
6508 2019-05-22  Richard Biener  <rguenther@suse.de>
6510         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
6511         Add ABS_EXPR.
6512         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
6513         as ABSU_EXPR.
6515 2019-05-22  Alan Modra  <amodra@gmail.com>
6517         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
6518         (ASM_CPU_SPEC): Conditionally add -many.
6519         * config/rs6000/rs6000.c (rs6000_machine): New static var.
6520         (rs6000_machine_from_flags, emit_asm_machine): New functions..
6521         (rs6000_file_start): ..extracted from here, and modified to
6522         test all ISA bits.
6523         (rs6000_output_function_prologue): Emit .machine as necessary.
6524         * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
6525         power mnemonics.
6526         * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
6527         added by check_vect_support_and_set_flags.
6528         * testsuite/gcc.dg/vect/pr48765.c: Likewise.
6529         * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
6531 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
6533         PR middle-end/90553
6534         * ira-lives.c (process_bb_node_lives): Consider defs
6535         for a call insn to be die before the call, not after.
6537         * function.c (assign_parm_setup_block): Raise alignment of
6538         stacked parameter only for STRICT_ALIGNMENT targets.
6540 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6542         * config/rs6000/constraints.md (define_register_constraint "wz"):
6543         Delete.
6544         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6545         RS6000_CONSTRAINT_wz.
6546         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6547         (rs6000_init_hard_regno_mode_ok): Adjust.
6548         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
6549         * doc/md.texi (Machine Constraints): Adjust.
6551 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6553         * config/rs6000/constraints.md (define_register_constraint "wl"):
6554         Delete.
6555         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6556         RS6000_CONSTRAINT_wl.
6557         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6558         (rs6000_init_hard_regno_mode_ok): Adjust.
6559         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
6560         * doc/md.texi (Machine Constraints): Adjust.
6562 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6564         * config/rs6000/constraints.md (define_register_constraint "wm"):
6565         Delete.
6566         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6567         RS6000_CONSTRAINT_wm.
6568         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6569         (rs6000_init_hard_regno_mode_ok): Adjust.
6570         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
6571         * doc/md.texi (Machine Constraints): Adjust.
6573 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6575         * config/rs6000/constraints.md (define_register_constraint "wk"):
6576         Delete.
6577         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6578         RS6000_CONSTRAINT_wk.
6579         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6580         (rs6000_init_hard_regno_mode_ok): Adjust.
6581         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
6582         * doc/md.texi (Machine Constraints): Adjust.
6584 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6586         * config/rs6000/constraints.md (define_register_constraint "wj"):
6587         Delete.
6588         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6589         RS6000_CONSTRAINT_wj.
6590         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6591         (rs6000_init_hard_regno_mode_ok): Adjust.
6592         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
6593         (VS_64dm): Delete.
6594         * config/rs6000/vsx.md: Ditto.
6595         * doc/md.texi (Machine Constraints): Adjust.
6597 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6599         * config/rs6000/constraints.md (define_register_constraint "wh"):
6600         Delete.
6601         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6602         RS6000_CONSTRAINT_wh.
6603         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6604         (rs6000_init_hard_regno_mode_ok): Adjust.
6605         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
6606         * doc/md.texi (Machine Constraints): Adjust.
6608 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6610         PR target/90547
6611         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6612         Avoid calling gen_lowpart with CONST operand.
6614 2019-05-21  Alexandre Oliva <aoliva@redhat.com>
6616         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
6617         field template_last_to_copy.
6618         (ssa_create_duplicates): Set it, and use it.  Attempt to
6619         preserve more debug stmts.
6621 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6623         * config/i386/sse.md (VF1_AVX2): New mode iterator.
6624         (signbit<mode>2): New expander
6626 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
6628         PR bootstrap/87338
6629         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
6630         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
6632 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6634         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
6635         %ebx and %ecx bafore calling cpuid with leaf 1 or
6636         non-constant leaf argument.
6638 2019-05-21  Alan Modra  <amodra@gmail.com>
6640         PR target/90545
6641         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
6642         power9 direct move cost.
6643         * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
6644         Correct comments and rename functions to suit parameters.
6646 2019-05-21  Richard Biener  <rguenther@suse.de>
6648         PR middle-end/90510
6649         * fold-const.c (fold_read_from_vector): New function.
6650         * fold-const.h (fold_read_from_vector): Declare.
6651         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
6652         single-element insert permutations.  Canonicalize selector
6653         further and fix issue with last commit.
6655 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
6657         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
6658         parameter with default value false to declaration.
6659         (split_edges_for_insertion): New inline function.  Wrapper for
6660         split_critical_edges with for_edge_insertion_p = true.
6661         * tree-cfg.c (split_critical_edges): Don't split non-critical
6662         edges if for_edge_insertion_p is false.  Fix whitespace.
6663         * tree-ssa-pre.c (pass_pre::execute): Call
6664         split_edges_for_insertion instead of split_critical_edges.
6665         * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
6666         * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
6667         (pass_data_sink_code): Update function name in the comment.
6669 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
6671         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
6672         around is_value_included_in that knows how to handle BIT_AND_EXPR.
6673         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
6674         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
6675         positives.
6677 2019-05-21  Martin Liska  <mliska@suse.cz>
6679         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
6680         an extra newline.
6681         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
6682         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
6683         vec_lvsr.
6684         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6685         Quote a C type.
6686         (rs6000_function_arg): Likewise.
6687         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
6688         (rs6000_expand_ternop_builtin): Use interval syntax.
6689         (get_element_number): Likewise.
6690         (altivec_expand_builtin): Likewise.
6691         (rs6000_get_function_versions_dispatcher): Quote target_clones.
6693 Fix test-suite.
6695 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
6697         PR c++/59813
6698         PR target/90418
6699         * function.h (struct function): Add calls_eh_return member.
6700         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
6701         gimplifying __builtin_eh_return call.
6702         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
6703         to cfun.
6704         (expand_call_inline): Or in src_cfun->calls_eh_return into
6705         dst_cfun->calls_eh_return.
6706         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
6707         cfun->calls_eh_return.
6708         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
6709         * lto-streamer-out.c (output_struct_function_base): Write
6710         calls_eh_return.
6712 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
6714         PR rtl-optimization/43147
6715         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
6716         IX86_BUILTIN_SHUFPD.
6718 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
6720         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
6721         (refs_may_alias_p_1): ... here; update stats.
6722         (refs_may_alias_p): Do not update stats here.
6724 2019-05-20  Richard Biener  <rguenther@suse.de>
6726         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
6727         doesn't produce pointers.
6728         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
6729         the first operand points to.
6731 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
6733         * tree-ssa-alias.c (compare_sizes): New function.
6734         (sompare_type_sizes): New function
6735         (aliasing_component_refs_p): Use it.
6736         (indirect_ref_may_alias_decl_p): Likewise.
6738 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6740         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
6742 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6744         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
6745         (LIBLSAN_EARLY_SPEC): Likewise.
6746         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
6748 2019-05-20  Martin Liska  <mliska@suse.cz>
6750         * config/i386/i386.c (ix86_libc_has_fast_function):
6751         Add ATTRIBUTE_UNUSED for the argument.
6753 2019-05-20  Richard Biener  <rguenther@suse.de>
6755         * gimple-match-head.c: Include vec-perm-indices.h.
6756         * generic-match-head.c: Likewise.
6757         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
6758         is included.
6759         * fold-const.c (fold_vec_perm): Export.
6760         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
6761         (match.pd): ...here.
6763 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
6765         * cfgloop.h (struct loop): Add simdlen member.
6766         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
6767         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
6768         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
6769         as new argument to autovectorize_vector_sizes target hook.  If
6770         loop->simdlen, pick up vector size where the vectorization factor
6771         is equal to loop->simd, and if there is none, fall back to the first
6772         successful one.
6773         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
6774         caller.
6775         * omp-low.c (omp_clause_aligned_alignment): Likewise.
6776         * omp-general.c (omp_max_vf): Likewise.
6777         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
6778         * tree-vect-slp.c (vect_slp_bb): Likewise.
6779         * target.def (autovectorize_vector_sizes): Add ALL argument and
6780         document it.
6781         * doc/tm.texi: Adjust documentation.
6782         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
6783         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
6784         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
6785         bool argument.
6786         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
6787         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
6788         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
6789         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
6790         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
6791         preferred vector size is not 512-bit or 256-bit, just put those
6792         unpreferred ones last.
6794 2019-05-20  Martin Liska  <mliska@suse.cz>
6796         * targhooks.c (default_libc_has_fast_function): New function.
6797         * targhooks.h (default_libc_has_fast_function): Likewise.
6799 2019-05-20  Martin Liska  <mliska@suse.cz>
6801         PR middle-end/90263
6802         * builtins.c (expand_builtin_memory_copy_args): When having a
6803         target with fast mempcpy implementation do now use memcpy.
6804         * config/i386/i386.c (ix86_libc_has_fast_function): New.
6805         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
6806         * doc/tm.texi: Likewise.
6807         * doc/tm.texi.in: Likewise.
6808         * target.def:
6809         * expr.c (emit_block_move_hints): Add 2 new arguments.
6810         * expr.h (emit_block_move_hints): Bail out when libcall
6811         to memcpy would be used.
6813 2019-05-20  Martin Liska  <mliska@suse.cz>
6815         * profile-count.c: Add vertical spacing in order
6816         to separate functions.
6817         * profile-count.h: Likewise.
6819 2019-05-20  Martin Liska  <mliska@suse.cz>
6821         * profile-count.h: Do not use full qualified
6822         names if possible.
6823         * profile-count.c (profile_count::to_frequency): Likewise.
6825 2019-05-20  Martin Liska  <mliska@suse.cz>
6827         * profile-count.h (enum profile_quality): Use capital letters
6828         for enum value names.  Use the adjusted names.
6829         * profile-count.c: Use the adjusted names.
6831 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6833         * config/rs6000/constraints.md (define_register_constraint "wH"):
6834         Delete.
6835         (define_register_constraint "wI"): Delete.
6836         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6837         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
6838         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6839         (rs6000_init_hard_regno_mode_ok): Adjust.
6840         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
6841         resp. "d", or with "wa" as appropriate, all with "p8v".
6842         * config/rs6000/vsx.md: Ditto.
6843         * doc/md.texi (Machine Constraints): Adjust.
6845 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6847         * config/rs6000/constraints.md (define_register_constraint "wy"):
6848         Delete.
6849         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6850         RS6000_CONSTRAINT_wy.
6851         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6852         (rs6000_init_hard_regno_mode_ok): Adjust.
6853         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
6854         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
6855         (define_mode_attr Fisa): New.
6856         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
6857         * doc/md.texi (Machine Constraints): Adjust.
6859 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6861         * config/rs6000/constraints.md (define_register_constraint "wu"):
6862         Delete.
6863         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6864         RS6000_CONSTRAINT_wu.
6865         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6866         (rs6000_init_hard_regno_mode_ok): Adjust.
6867         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
6868         both with "p8v".
6869         (define_mode_attr Fa): Delete.
6870         * config/rs6000/vsx.md: Ditto.
6871         * doc/md.texi (Machine Constraints): Adjust.
6873 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6875         * config/rs6000/constraints.md (define_register_constraint "wJ"):
6876         Delete.
6877         (define_register_constraint "wK"): Delete.
6878         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6879         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
6880         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6881         (rs6000_init_hard_regno_mode_ok): Adjust.
6882         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
6883         Replace "wK" constraint by "wH" with "p9v".
6884         * config/rs6000/vsx.md: Ditto.
6885         * doc/md.texi (Machine Constraints): Adjust.
6887 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6889         * config/rs6000/constraints.md (define_register_constraint "wb"):
6890         Delete.
6891         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6892         RS6000_CONSTRAINT_wb.
6893         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6894         (rs6000_init_hard_regno_mode_ok): Adjust.
6895         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
6896         * config/rs6000/vsx.md: Ditto.
6897         * doc/md.texi (Machine Constraints): Adjust.
6899 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6901         * config/rs6000/constraints.md (define_register_constraint "wo"):
6902         Delete.
6903         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6904         RS6000_CONSTRAINT_wo.
6905         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6906         (rs6000_init_hard_regno_mode_ok): Adjust.
6907         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
6908         * config/rs6000/altivec.md: Ditto.
6909         * doc/md.texi (Machine Constraints): Adjust.
6911 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
6913         * config/darwin-c.c (darwin_register_objc_includes): Do not
6914         prepend the sysroot when building gnu-runtime header search
6915         paths.
6917 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
6919         * config/darwin.c (darwin_file_end): Use switch_to_section ()
6920         instead of direct output of the asm.
6922 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
6924         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
6925         argument to be type bool (was int before).
6926         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
6927         at first use.  Use type bool for some variables.  Fix a theoretical
6928         eh_return bug for svr4.
6930 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
6932         * config/rs6000/rs6000.md (isa): New attribute.
6933         (enabled): New attribute.
6935 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
6937         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
6938         assemble_start_function and assemble_end_function.
6940 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
6942         PR middle-end/89433
6943         * omp-general.c (oacc_verify_routine_clauses): Change formal
6944         parameters.  Add checking if already marked with an OpenACC
6945         'routine' directive.  Adjust all users.
6947         PR middle-end/89433
6948         * omp-general.c (oacc_build_routine_dims): Move some of its
6949         processing into...
6950         (oacc_verify_routine_clauses): ... this new function.
6951         * omp-general.h (oacc_verify_routine_clauses): New prototype.
6953 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
6955         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
6956         formating of picbase labels to match other ports.
6958 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
6960         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
6961         in the generated code.
6963 2019-05-16  Martin Sebor  <msebor@redhat.com>
6965         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
6966         identifiers, keywords, operators, and types in diagnostics.  Correct
6967         quoting, spelling, and sentence capitalization issues.
6968         (expand_builtin_atomic_is_lock_free): Same.
6969         (fold_builtin_next_arg): Same.
6970         * cfgexpand.c (expand_one_var): Same.
6971         (tree_conflicts_with_clobbers_p): Same.
6972         (expand_asm_stmt): Same.
6973         (verify_loop_structure): Same.
6974         * cgraphunit.c (process_function_and_variable_attributes): Same.
6975         * collect-utils.c (collect_execute): Same.
6976         * collect2.c (maybe_run_lto_and_relink): Same.
6977         (is_lto_object_file): Same.
6978         (scan_prog_file): Same.
6979         * convert.c (convert_to_real_1): Same.
6980         * dwarf2out.c (dwarf2out_begin_prologue): Same.
6981         * except.c (verify_eh_tree): Same.
6982         * gcc.c (execute): Same.
6983         (eval_spec_function): Same.
6984         (run_attempt): Same.
6985         (driver::set_up_specs): Same.
6986         (compare_debug_auxbase_opt_spec_function): Same.
6987         * gcov-tool.c (unlink_gcda_file): Same.
6988         (do_merge): Same.
6989         (do_rewrite): Same.
6990         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
6991         * gimplify.c (gimplify_asm_expr): Same.
6992         (gimplify_adjust_omp_clauses): Same.
6993         * hsa-gen.c (gen_hsa_addr_insns): Same.
6994         (gen_hsa_insns_for_load): Same.
6995         (gen_hsa_cmp_insn_from_gimple): Same.
6996         (gen_hsa_insns_for_operation_assignment): Same.
6997         (gen_get_level): Same.
6998         (gen_hsa_alloca): Same.
6999         (omp_simple_builtin::generate): Same.
7000         (gen_hsa_atomic_for_builtin): Same.
7001         (gen_hsa_insns_for_call): Same.
7002         * input.c (dump_location_info): Same.
7003         * ipa-devirt.c (compare_virtual_tables): Same.
7004         * ira.c (ira_setup_eliminable_regset): Same.
7005         * lra-assigns.c (lra_assign): Same.
7006         * lra-constraints.c (lra_constraints): Same.
7007         * lto-streamer-in.c (lto_input_mode_table): Same.
7008         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
7009         (merge_and_complain): Same.
7010         (compile_offload_image): Same.
7011         (compile_images_for_offload_targets): Same.
7012         (debug_objcopy): Same.
7013         (run_gcc): Same.
7014         (main): Same.
7015         * opts.c (print_specific_help): Same.
7016         (parse_no_sanitize_attribute): Same.
7017         (print_help): Same.
7018         (handle_param): Same.
7019         * plugin.c (add_new_plugin): Same.
7020         (parse_plugin_arg_opt): Same.
7021         (try_init_one_plugin): Same.
7022         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
7023         operators, and types in diagnostics.  Correct quoting and spelling
7024         issues.
7025         * read-rtl-function.c (parse_edge_flag_token): Same.
7026         (function_reader::parse_enum_value): Same.
7027         * reg-stack.c (check_asm_stack_operands): Same.
7028         * regcprop.c (validate_value_data): Same.
7029         * sched-rgn.c (make_pass_sched_fusion): Same.
7030         * stmt.c (check_unique_operand_names): Same.
7031         * targhooks.c (default_target_option_pragma_parse): Same.
7032         * tlink.c (recompile_files): Same.
7033         * toplev.c (process_options): Same.
7034         (do_compile): Same.
7035         * trans-mem.c (diagnose_tm_1): Same.
7036         (ipa_tm_scan_irr_block): Same.
7037         (ipa_tm_diagnose_transaction): Same.
7038         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
7039         format a tree code name in a diagnostic.
7040         (verify_types_in_gimple_min_lval): Same.
7041         (verify_types_in_gimple_reference): Same.
7042         (verify_gimple_call): Same.
7043         (verify_gimple_assign_unary): Same.
7044         (verify_gimple_assign_binary): Same.
7045         (verify_gimple_assign_ternary): Same.
7046         (verify_gimple_assign_single): Same.
7047         (verify_gimple_switch): Same.
7048         (verify_gimple_label): Same.
7049         (verify_gimple_phi): Same.
7050         (verify_gimple_in_seq): Same.
7051         (verify_eh_throw_stmt_node): Same.
7052         (collect_subblocks): Same.
7053         (gimple_verify_flow_info): Same.
7054         (do_warn_unused_result): Same.
7055         * tree-inline.c (expand_call_inline): Same.
7056         * tree-into-ssa.c (update_ssa): Same.
7057         * tree.c (tree_int_cst_elt_check_failed): Same.
7058         (tree_vec_elt_check_failed): Same.
7059         (omp_clause_operand_check_failed): Same.
7060         (verify_type_variant): Same.
7061         (verify_type): Same.
7062         * value-prof.c (verify_histograms): Same.
7063         * varasm.c (assemble_start_function): Same.
7065 2019-05-16  Martin Sebor  <msebor@redhat.com>
7067         * config/i386/i386-expand.c (get_element_number): Quote keywords
7068         and other internal names in diagnostics.  Adjust other diagnostic
7069         formatting issues noted by -Wformat-diag.
7070         * config/i386/i386-features.c
7071         (ix86_mangle_function_version_assembler_name): Same.
7072         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
7073         * config/i386/i386.c (ix86_function_type_abi): Same.
7074         (ix86_function_ms_hook_prologue): Same.
7075         (classify_argument): Same.
7076         (ix86_expand_prologue): Same.
7077         (ix86_md_asm_adjust): Same.
7078         (ix86_memmodel_check): Same.
7080 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
7082         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
7083         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
7084         and fpxx modes.
7086 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7088         PR target/90497
7089         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
7090         intrinsics without SSE/SSE2/SSSE3.
7091         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
7092         check.
7093         (*mmx_uavgv8qi3): Likewise.
7095 2019-05-17  Richard Biener  <rguenther@suse.de>
7097         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
7098         VEC_PERM_EXPR as __VEC_PERM with -gimple.
7100 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
7102         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
7103         vec_sldw insn pattern.
7105 2019-05-17  Richard Biener  <rguenther@suse.de>
7107         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
7109 2019-05-17  Martin Liska  <mliska@suse.cz>
7111         PR driver/90496
7112         * toplev.c (output_stack_usage): With LTO and sanitizer it
7113         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
7114         has no file location.
7116 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
7118         PR c++/90484
7119         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
7120         sz0 is equal to sz1, instead return false in that case.
7122         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
7123         has non-constant expression, force sctx.lane and use two
7124         argument IFN_GOMP_SIMD_LANE instead of single argument.
7125         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
7126         two argument IFN_GOMP_SIMD_LANE without lhs.
7127         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
7128         member.
7129         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
7130         Define.
7131         (LOOP_REQUIRES_VERSIONING): Or in
7132         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
7133         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7134         simd_if_cond.
7135         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
7136         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
7137         from simd if clause if needed.
7139 2019-05-16  Richard Biener  <rguenther@suse.de>
7141         * tree-affine.c (expr_to_aff_combination): New function split
7142         out from...
7143         (tree_to_aff_combination): ... here.
7144         (aff_combination_expand): Avoid building a GENERIC tree.
7146 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
7148         * cgraphunit.c (cgraph_node::expand_thunk): Remove
7149         assemble_start_function and assemble_end_function calls.
7150         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
7151         assemble_start_function and assemble_end_function.
7152         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
7153         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
7154         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
7155         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
7156         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
7157         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
7158         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
7159         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
7160         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7161         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7162         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7163         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
7164         Likewise.
7165         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7166         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
7167         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
7168         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
7169         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7170         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7171         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
7172         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
7173         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7174         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7175         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7176         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7177         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
7178         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
7179         Likewise.
7180         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7181         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7182         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
7184 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
7186         * tree-ssa-alias.c (alias_stats): Add
7187         aliasing_component_refs_p_may_alias and
7188         aliasing_component_refs_p_no_alias.
7189         (dump_alias_stats): Print aliasing_component_refs_p stats.
7190         (aliasing_component_refs_p): Update stats.
7192 2019-05-16  Martin Liska  <mliska@suse.cz>
7194         PR lto/90500
7195         * multiple_target.c (expand_target_clones): Do not allow
7196         target_clones being used with a symbol that is an alias.
7198 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
7200         PR tree-optimization/90394
7201         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
7202         positives rather than ICE for cases where (code2 == NE_EXPR
7203         && code1 == BIT_AND_EXPR).
7205 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
7207         PR fortran/90329
7208         * tree-core.h (struct tree_decl_common): Document
7209         decl_nonshareable_flag for PARM_DECLs.
7210         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
7211         * calls.c (expand_call): Don't try tail call if caller
7212         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
7213         passed on the stack and callee needs to pass any arguments on the
7214         stack.
7215         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7216         else if instead of series of mutually exclusive ifs.  Handle
7217         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
7218         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7220         * lto-streamer.h (LTO_major_version): Bump to 9.
7222 2019-05-16  Jun Ma <JunMa@linux.alibaba.com>
7224         PR tree-optimization/90106
7225         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
7226         new parameter as new internal function call, also move it to new
7227         basic block.
7228         (use_internal_fn): Pass internal function call to
7229         shrink_wrap_one_built_in_call_with_conds.
7231 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
7233         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
7234         max_vf to 1.
7235         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
7236         safelen_int and set loop->dont_vectorize.
7238 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7240         PR target/89021
7241         * config/i386/i386-builtin.def: Enable MMX intrinsics with
7242         SSE/SSE2/SSSE3.
7243         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7244         Likewise.
7245         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
7246         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
7247         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
7248         is defined.
7250 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7252         PR target/89021
7253         * config/i386/mmx.md (*vec_dupv2sf): Changed to
7254         define_insn_and_split to support SSE emulation.
7255         (*vec_extractv2sf_0): Likewise.
7256         (*vec_extractv2sf_1): Likewise.
7257         (*vec_extractv2si_0): Likewise.
7258         (*vec_extractv2si_1): Likewise.
7259         (*vec_extractv2si_zext_mem): Likewise.
7260         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
7261         (vec_extractv2sf_1 splitter): Likewise.
7262         (vec_extractv2sfsf): Likewise.
7263         (vec_setv2si): Likewise.
7264         (vec_extractv2si_1 splitter): Likewise.
7265         (vec_extractv2sisi): Likewise.
7266         (vec_setv4hi): Likewise.
7267         (vec_extractv4hihi): Likewise.
7268         (vec_setv8qi): Likewise.
7269         (vec_extractv8qiqi): Likewise.
7270         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
7271         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
7272         (vec_extractv2sisi): Likewise.
7273         (vec_extractv4hihi): Likewise.
7274         (vec_extractv8qiqi): Likewise.
7275         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
7276         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
7277         (vec_initv2sisi): Likewise.
7278         (vec_initv4hihi): Likewise.
7279         (vec_initv8qiqi): Likewise.
7280         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
7281         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
7282         (vec_setv4hi): Likewise.
7283         (vec_setv8qi): Likewise.
7285 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7287         PR target/89021
7288         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
7289         TARGET_MMX_WITH_SSE.
7290         (MMXMODE:*mov<mode>_internal): Likewise.
7291         (MMXMODE:movmisalign<mode>): Likewise.
7293 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7295         PR target/89021
7296         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
7297         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
7298         (sse2_cvtpd2pi): Ditto.
7299         (sse2_cvttpd2pi): Ditto.
7300         (*vec_concatv2sf_sse4_1): Ditto.
7301         (*vec_concatv2sf_sse): Ditto.
7302         (*vec_concatv2si_sse4_1): Ditto.
7303         (*vec_concatv2si): Ditto.
7304         (*vec_concatv4si_0): Ditto.
7305         (*vec_concatv2di_0): Ditto.
7307 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7309         PR target/89021
7310         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
7312 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7314         PR target/89021
7315         * config/i386/sse.md (ssse3_palignrdi): Changed to
7316         define_insn_and_split to support SSE emulation.
7318 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7320         PR target/89021
7321         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
7323 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7325         PR target/89021
7326         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
7327         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
7328         SSE emulation.
7330 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7332         PR target/89021
7333         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
7334         or TARGET_MMX_WITH_SSE.
7335         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
7337 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7339         PR target/89021
7340         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
7342 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7344         PR target/89021
7345         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
7346         Changed to define_insn_and_split to support SSE emulation.
7348 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7350         PR target/89021
7351         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
7352         Changed to define_insn_and_split to support SSE emulation.
7354 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7356         PR target/89021
7357         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
7358         (*mmx_<emms>): This.
7359         (mmx_<emms>): New expander.
7361 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7363         PR target/89021
7364         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
7365         support.
7366         (*sse2_umulv1siv1di3): Add SSE2 emulation.
7368 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7370         PR target/89021
7371         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
7373 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7375         PR target/89021
7376         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
7378 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7380         PR target/89021
7381         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
7382         TARGET_MMX_WITH_SSE.
7383         (*mmx_uavgv4hi3): Add SSE emulation.
7385 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7387         PR target/89021
7388         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
7389         and TARGET_MMX_WITH_SSE.
7390         (*mmx_uavgv8qi3): Add SSE emulation.
7392 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7394         PR target/89021
7395         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
7396         maskmovdqu for __MMX_WITH_SSE__.
7398 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7400         PR target/89021
7401         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
7402         TARGET_MMX and TARGET_MMX_WITH_SSE.
7403         (*mmx_umulv4hi3_highpart): Add SSE emulation.
7405 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7407         PR target/89021
7408         * config/i386/mmx.md (mmx_pmovmskb): Changed to
7409         define_insn_and_split to support SSE emulation.
7411 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7413         PR target/89021
7414         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
7415         and TARGET_MMX_WITH_SSE.
7416         (mmx_<code>v8qi3): Likewise.
7417         (smaxmin:<code>v4hi3): New.
7418         (umaxmin:<code>v8qi3): Likewise.
7419         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
7420         (umaxmin:*mmx_<code>v8qi3): Likewise.
7422 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7424         PR target/89021
7425         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
7426         TARGET_MMX_WITH_SSE.
7427         (*mmx_pinsrw): Add SSE emulation.
7429 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7431         PR target/89021
7432         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
7434 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7436         PR target/89021
7437         * config/i386/sse.md (sse_cvtpi2ps): Changed to
7438         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
7439         SSE emulation.
7441 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7443         PR target/89021
7444         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
7445         (sse_cvttps2pi): Likewise.
7447 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7449         PR target/89021
7450         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
7451         TARGET_MMX_WITH_SSE.
7452         (mmx_pshufw_1): Add SSE emulation.
7453         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
7454         TARGET_MMX_WITH_SSE to support SSE emulation.
7456 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7458         PR target/89021
7459         * config/i386/constraints.md (Yw): New constraint.
7460         * config/i386/mmx.md (*vec_dupv2si): Changed to
7461         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
7462         support SSE emulation.
7464 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7466         PR target/89021
7467         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
7468         TARGET_MMX_WITH_SSE.
7469         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
7470         support.
7471         (mmx_gt<mode>3): Likewise.
7473 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7475         PR target/89021
7476         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
7477         TARGET_MMX_WITH_SSE.  Add SSE support.
7479 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7481         PR target/89021
7482         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
7483         TARGET_MMX_WITH_SSE.
7484         (any_logic:<code><mode>3): New.
7485         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
7486         Add SSE support.
7488 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7490         PR target/89021
7491         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
7492         TARGET_MMX_WITH_SSE.  Add SSE emulation.
7493         (mmx_<shift_insn><mode>3): Likewise.
7494         (ashr<mode>3): New.
7495         (<shift_insn><mode>3): Likewise.
7497 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7499         PR target/89021
7500         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
7501         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
7503 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7505         PR target/89021
7506         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
7507         TARGET_MMX_WITH_SSE.
7508         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
7509         SSE support.
7511 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7513         PR target/89021
7514         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
7515         TARGET_MMX_WITH_SSE.
7516         (mulv4hi3): New.
7517         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
7518         support.
7520 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7522         PR target/89021
7523         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
7524         (plusminus:mmx_<plusminus_insn><mode>3): Check
7525         TARGET_MMX_WITH_SSE.
7526         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
7527         (<plusminus_insn><mode>3): New.
7528         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
7529         (*mmx_<plusminus_insn><mode>3): Likewise.
7531 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7533         PR target/89021
7534         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
7535         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
7536         prototype.
7537         * config/i386/mmx.m (mmx_punpckhbw): Changed to
7538         define_insn_and_split to support SSE emulation.
7539         (mmx_punpcklbw): Likewise.
7540         (mmx_punpckhwd): Likewise.
7541         (mmx_punpcklwd): Likewise.
7542         (mmx_punpckhdq): Likewise.
7543         (mmx_punpckldq): Likewise.
7545 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7546             Uros Bizjak  <ubizjak@gmail.com>
7548         PR target/89021
7549         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
7550         New function.
7551         (ix86_split_mmx_pack): Likewise.
7552         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
7553         New prototype.
7554         (ix86_split_mmx_pack): Likewise.
7555         * config/i386/i386.md (mmx_isa): New.
7556         (enabled): Also check mmx_isa.
7557         * config/i386/mmx.md (any_s_truncate): New code iterator.
7558         (s_trunsuffix): New code attr.
7559         (mmx_packsswb): Removed.
7560         (mmx_packssdw): Likewise.
7561         (mmx_packuswb): Likewise.
7562         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
7563         MMX packsswb/packuswb with SSE2.
7564         (mmx_packssdw): Likewise.
7565         * config/i386/predicates.md (register_mmxmem_operand): New.
7567 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7569         PR target/89021
7570         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7571         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
7572         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
7573         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
7574         (ix86_vector_mode_supported_p): Likewise.
7575         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
7577 2019-05-15  Martin Liska  <mliska@suse.cz>
7579         PR middle-end/90478
7580         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7581         Check for overflow.
7583 2019-05-15  Richard Biener  <rguenther@suse.de>
7585         * tree-into-ssa.c (pass_build_ssa::execute): Run
7586         update_address_taken before going into SSA.
7588 2019-05-15  Richard Biener  <rguenther@suse.de>
7590         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
7591         as __BIT_FIELD_REF with type with -gimple.
7593 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
7595         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
7596         semantically equivalent branches (left over after prior refactorings).
7598 2019-05-15  Richard Biener  <rguenther@suse.de>
7600         PR tree-optimization/88828
7601         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
7602         bogus check.
7604 2019-05-14  Richard Biener  <rguenther@suse.de>
7606         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
7607         as __VIEW_CONVERT with -gimple.
7609 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
7611         PR target/82920
7612         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
7613         Darwin.
7615 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
7617         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
7618         define_split to become a define_insn_and_split.
7620 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
7622         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
7623         arguments.
7624         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
7625         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
7626         (sibcall_epilogue): Adjust.
7627         (epilogue): Adjust.
7629 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7631         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
7632         to unsupported ones.
7633         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
7634         * config.host: Likewise.
7635         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
7636         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
7637         __svr4__]: Remove "brand" fallback.
7638         [!KSTAT_DATA_STRING]: Remove.
7639         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
7640         to *-*-solaris2*.
7641         (comdat_group): Likewise.
7642         (set_have_as_tls): Likewise.
7643         (gcc_cv_target_dl_iterate_phdr): Likewise.
7644         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
7645         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
7646         * configure: Regenerate.
7647         * doc/install.texi: Simplify Solaris target triplets.
7648         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
7649         (Specific, *-*-solaris2*): Document Solaris 10 removal.
7650         Remove Solaris 10 references.
7651         Remove obsolete Solaris bug reference.
7652         (Specific, sparc-sun-solaris2.10): Remove.
7654 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7656         * config/i386/i386.md (any_div): New code iterator.
7657         (paired_mod): New code attribute.
7658         (sgnprefix): Handle DIV and UDIV RTXes.
7659         (u): Ditto.
7660         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
7661         and udivmod<mode>4 patterns using any_div code iterator.
7662         (divmod splitters): Macroize splitters using any_div code iterator.
7663         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
7664         (*udivmodsi4_pow2_zext_2): Ditto.
7665         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
7666         and *udivmod<mode>4_noext patterns using any_div code iterator.
7667         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
7668         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
7669         patterns using any_div code iterator.
7670         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
7671         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
7672         patterns using any_div code iterator.
7673         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
7674         udivmodhiqi3 patterns using any_extend code iterator.
7676 2019-05-14  Richard Biener  <rguenther@suse.de>
7677             H.J. Lu  <hongjiu.lu@intel.com>
7679         PR tree-optimization/88828
7680         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7681         permuting in a single non-constant element not extracted
7682         from a vector.
7684 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7686         * internal-fn.def (SIGNBIT): New.
7687         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
7688         defined.
7689         (signbitv4sf2): Likewise.
7691 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
7693         PR target/90357
7694         * config/mips/mips.c (mips_split_move): Skip forward SRC into
7695         next insn when the SRC reg is dead.
7697 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
7699         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
7700         (alloc_cand_and_find_basis): Ditto.
7701         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
7702         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
7703         (create_add_imm_cand, slsr_process_cast): Ditto.
7704         (slsr_process_copy, replace_mult_candidate): Ditto.
7705         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
7706         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
7707         (pass_strength_reduction::execute): Init the first NULL element.
7709 2019-05-13  Nathan Sidwell  <nathan@acm.org>
7711         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
7712         (run_attempt): Reformat line break.
7714 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
7716         PR target/90418
7717         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
7718         data registers in sibcall epilogues.
7719         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
7721 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7723         PR target/89221
7724         * configure.ac (--enable-frame-pointer):
7725         Disable by default for cygwin and mingw.
7726         * configure: Regenerate.
7728 2019-05-13  Nathan Sidwell  <nathan@acm.org>
7730         * dwarf2out.c (breakout_comdat_types): Move comment to correct
7731         piece of code.
7732         (const_ok_for_output_1): Balance parens around #if/#else/#endif
7733         (gen_member_die): Move abstract origin check earlier.  Only VARs
7734         can be static_inline_p.  Simplify splicing control flow.
7736 2019-05-13  Richard Biener  <rguenther@suse.de>
7738         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7739         VIEW_CONVERT_EXPR.
7740         (vect_build_slp_tree_1): Likewise.
7742 2019-05-13  Richard Biener  <rguenther@suse.de>
7744         PR tree-optimization/90402
7745         * tree-if-conv.c (tree_if_conversion): Value number only
7746         the loop body by making the latch an exit of the region
7747         as well.
7748         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
7749         processing PHIs.
7750         (do_rpo_vn): Deal with multiple edges into the entry block
7751         that are not backedges inside the region by skipping PHIs
7752         of the entry block.
7754 2019-05-13  Richard Biener  <rguenther@suse.de>
7756         PR tree-optimization/90316
7757         * tree-ssa-pre.c (insert_aux): Fold into ...
7758         (insert): ... this function.  Use a RPO walk to reduce the
7759         number of required iterations.
7761 2019-05-13  Martin Liska  <mliska@suse.cz>
7763         PR tree-optimization/90416
7764         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
7765         string instead of passing the second part as va_arg argument.
7767 2019-05-13  Martin Liska  <mliska@suse.cz>
7769         PR gcov-profile/90380
7770         * gcov.c (handle_cycle): Do not support zero cycle count,
7771         it should not be possible.
7772         (path_contains_zero_cycle_arc): New function.
7773         (circuit): Ignore zero cycle arc counts.
7775 2019-05-13  Martin Liska  <mliska@suse.cz>
7777         PR gcov-profile/90380
7778         * gcov.c (enum loop_type): Remove the enum and
7779         the operator.
7780         (handle_cycle): Assert that we should not reach
7781         a negative count.
7782         (circuit): Use loop_found instead of a tri-state loop_type.
7783         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
7784         happen.
7786 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
7788         PR target/82920
7789         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
7790         (ix86_output_indirect_branch_via_reg): Use output mechanism
7791         accounting for __USER_LABEL_PREFIX__.
7792         (ix86_output_indirect_branch_via_push): Likewise.
7793         (ix86_output_function_return): Likewise.
7794         (ix86_output_indirect_function_return): Likewise.
7796 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
7798         * doc/md.texi: Document use of code attributes in rtx patterns.
7799         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
7800         * read-rtl.c (find_code): Split out search loops into...
7801         (maybe_find_code): ...this new function.
7802         (check_code_iterator): Make the error message more informative.
7803         (check_code_attribute): New function.
7804         (rtx_reader::rtx_alloc_for_name): Likewise.
7805         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
7806         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
7807         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
7808         <max_opp> directly as an rtx code instead of via a match_operator.
7809         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
7810         (<su>abd<mode>_3): Update accordingly.
7812 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
7814         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
7815         is given, print the state of the EH "save world" computation for
7816         Darwin.
7818 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
7820         PR c++/59813
7821         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
7822         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
7824 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7826         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
7827         Use pinsrd for TARGET_SSE4_1.
7828         * config/i386/sse.md (movdi_to_sse): Ditto.
7830 2019-05-10  Richard Biener  <rguenther@suse.de>
7832         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
7833         (do_rpo_vn): Initialize next_value_id.
7835 2019-05-10  Martin Liska  <mliska@suse.cz>
7837         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
7838         Fix plural form.
7840 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
7842         PR tree-optimization/90385
7843         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
7844         arguments of the exit phis.
7846         PR c++/90383
7847         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
7848         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
7849         id->do_not_fold.
7850         (copy_tree_body_r): Likewise.
7851         (copy_fn): Set id.do_not_fold to true.
7853 2019-05-10  Martin Liska  <mliska@suse.cz>
7855         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
7856         Reapply changes from r269790.
7858 2019-05-10  Martin Liska  <mliska@suse.cz>
7860         PR middle-end/90340
7861         * doc/invoke.texi: New params.
7862         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
7863         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
7864         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7865         Use it.
7866         * tree-switch-conversion.h (struct jump_table_cluster):
7867         Likewise.
7869 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
7871         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
7873 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
7875         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
7877 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
7879         PR rtl-optimization/88879
7880         * sel-sched.c (sel_target_adjust_priority): Remove assert.
7882 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
7884         PR target/90405
7885         * config/arm/arm.c (callee_saved_reg_p): Move before
7886         thumb_find_work_register.
7887         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
7888         thumb_find_work_register.  Only call df_get_live_out once.
7889         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
7890         (thumb_find_work_register): Use
7891         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
7892         algorithms to locate a spare call clobbered reg.
7894 2019-05-09  Martin Liska  <mliska@suse.cz>
7896         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
7897         and MAX_EXPR in GIMPLE FE format.
7899 2019-05-09  Martin Liska  <mliska@suse.cz>
7901         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
7902         * gimple-pretty-print.c (dump_gimple_bb_header):
7903         Dump BB count.
7904         (pp_cfg_jump): Dump edge probability.
7905         * profile-count.c (profile_quality_as_string): Simplify
7906         with a static array.
7907         (parse_profile_quality): New function.
7908         (profile_count::dump): Simplify with a static array.
7909         (profile_count::from_gcov_type): Add new argument.
7910         * profile-count.h (parse_profile_quality): Likewise.
7911         * predict.h (set_hot_bb_threshold): New.
7912         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
7913         New param.
7914         * predict.c (get_hot_bb_threshold): Set from the new param.
7915         (set_hot_bb_threshold): New.
7917 2019-05-09  Richard Biener  <rguenther@suse.de>
7919         PR tree-optimization/90395
7920         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
7921         rewrite vector stores that throw internally.
7923 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
7925         * cif-code.def (CHKP): Remove.
7927         PR target/89221
7928         * configure.ac (--enable-frame-pointer): Disable by default for
7929         GNU systems.
7930         * configure: Regenerate.
7932 2019-05-09  Alan Modra  <amodra@gmail.com>
7934         PR target/89271
7935         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
7936         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
7937         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
7938         cost for general <-> vsx when direct moves are available.
7939         Cost union classes at minimal cost for any reg in the class.
7940         Correct calculation for moves between vsx, float, and altivec.
7941         Don't return a low cost for moves between special regs.  Don't
7942         use hard coded register numbers.
7943         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
7944         (rs6000_ira_change_pseudo_allocno_class): New function.
7945         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
7946         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
7947         alternatives.
7948         (movsi_internal1): Don't disparage vector alternatives.
7949         (mov<mode>_internal): Likewise, excepting alternative that
7950         will be split.
7951         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
7952         we <- b alternative.
7954 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
7956         PR c++/59813
7957         PR tree-optimization/89060
7958         * tree-ssa-live.h (live_vars_map): New typedef.
7959         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
7960         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
7961         (struct compute_live_vars_data): New type.
7962         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
7963         live_vars_at_stmt, destroy_live_vars): New functions.
7964         * tree-tailcall.c: Include tree-ssa-live.h.
7965         (live_vars, live_vars_vec): New global variables.
7966         (find_tail_calls): Perform variable life analysis before punting.
7967         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
7968         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
7969         member.
7970         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
7971         Perform variable life analysis to select variables that really need
7972         clobbers added.
7973         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
7974         instead set id->eh_landing_pad_dest and assert it is the same.
7975         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
7977 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
7978             Richard Earnshaw  <rearnsha@arm.com>
7980         PR target/88167
7981         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
7982         function.
7983         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
7984         (thumb1_compute_save_core_reg_mask): Don't force a spare work
7985         register if both the epilogue and prologue can use call-clobbered
7986         regs.
7987         (thumb1_unexpanded_epilogue): Use
7988         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
7989         picking temporaries for restoring high regs to match that of the
7990         prologue where possible.
7991         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
7992         the list of work registers.  Detect if the return address is still live
7993         at the end of the prologue and avoid using it for a work register if so.
7994         If the return address is not live, add LR to the list of pushable regs
7995         after the first pass.
7997 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
7999         PR tree-optimization/90078
8000         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
8001         (INFTY): Increase the value for infinite cost.
8002         (struct comp_cost): Promote type of members to int64_t.
8003         (infinite_cost): Don't set complexity in initialization.
8004         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
8005         overflows to infinite_cost.
8006         (adjust_setup_cost): Promote type of parameter and cost computation
8007         to int64_t.
8008         (struct ainc_cost_data, struct iv_ca): Promote type of member to
8009         int64_t.
8010         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
8011         cost computation to int64_t.
8012         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
8013         int64_t's format specifier in dump.
8015 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
8017         PR tree-optimization/90240
8018         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
8019         with respect to scaling factor pre-computed for each basic block.
8020         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
8021         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
8022         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
8023         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
8024         live range for array of loop's basic blocks.  Cleanup aux field of
8025         loop's basic blocks.
8027 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
8029         PR tree-optimization/90356
8030         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
8032 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
8034         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
8035         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
8036         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
8037         (ix86_handle_option): Handle -mavx512bf16.
8038         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
8039         to extra_headers.
8040         * config/i386/avx512bf16vlintrin.h: New.
8041         * config/i386/avx512bf16intrin.h: New.
8042         * config/i386/cpuid.h (bit_AVX512BF16): New.
8043         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
8044         * config/i386/i386-builtin-types.def: Add new types.
8045         * config/i386/i386-builtin.def: Add new builtins.
8046         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8047         __AVX512BF16__.
8048         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
8049         (ix86_option_override_internal): Handle BF16.
8050         (ix86_valid_target_attribute_inner_p): Ditto.
8051         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
8052         * config/i386/i386-builtin.c (enum processor_features): Add
8053         F_AVX512BF16.
8054         (static const _isa_names_table isa_names_table): Ditto.
8055         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
8056         (PTA_AVX512BF16): Ditto.
8057         * config/i386/i386.opt: Add -mavx512bf16.
8058         * config/i386/immintrin.h: Include avx512bf16intrin.h
8059         and avx512bf16vlintrin.h.
8060         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
8061         avx512f_cvtneps2bf16_<mode><mask_name>,
8062         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
8063         * config/i386/subst.md (mask_half): Add new subst.
8064         * doc/invoke.texi: Document -mavx512bf16.
8066 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
8068         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
8069         Delete declaration.
8070         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
8071         (rs6000_debug_legitimize_reload_address): Delete.
8072         (rs6000_legitimize_reload_address_ptr): Delete.
8073         (rs6000_option_override_internal): Adjust.
8074         (mem_operand_gpr): Adjust comment.
8075         (legitimate_lo_sum_address_p): Ditto.
8076         (rs6000_legitimize_reload_address): Delete.
8077         (rs6000_debug_legitimize_reload_address): Delete.
8078         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
8080 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8082         PR target/89765
8083         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8084         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
8085         to compute vector element selector for both constant and variable
8086         operands.
8088 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8090         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
8091         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
8092         ashrdi3_cvt using SWI48 mode iterator.
8094 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
8096         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
8097         (aarch64_<su>abd<mode>_3): Likewise.
8098         (*aarch64_<su>abd<mode>_3): New define_insn.
8099         (<sur>sad<vsi2qi>): New define_expand.
8100         * config/aarch64/iterators.md: Added MAX_OPP attribute.
8101         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
8102         (build_vect_cond_expr): Likewise.
8104 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8106         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
8107         clobbers outside of accessible_reg_set.
8108         * config/i386/i386.c (ix86_conditional_register_usage):
8109         Disable register sets by clearing corresponding bits in
8110         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
8111         call_used_regs and don't clear corresponding reg_names array members.
8113 2019-05-07  Richard Biener  <rguenther@suse.de>
8115         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
8116         not specified still compute a comp_vectype for invariant
8117         compares.
8119 2019-05-07  Richard Biener  <rguenther@suse.de>
8121         PR tree-optimization/90316
8122         * tree-ssa-pre.c (translate_vuse_through_block): When
8123         same_valid is NULL do not bother to search for a virtual
8124         PHI continuation.
8125         (phi_translate_1): When operands changed we cannot keep
8126         the same value-number so do not bother to ask whether
8127         that's possible from translate_vuse_through_block.
8129 2019-05-07  Martin Liska  <mliska@suse.cz>
8131         * bitmap.c (bitmap_register): Come up with
8132         alloc_descriptor_max_uid and assign it for
8133         a new bitmap.
8134         (register_overhead): Use get_descriptor as
8135         a descriptor.
8136         (release_overhead): New.
8137         (bitmap_elem_to_freelist): Call it.
8138         (bitmap_elt_clear_from): Likewise.
8139         (bitmap_obstack_free): Likewise.
8140         (bitmap_move): Sensitively release memory.
8141         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
8142         (bitmap_initialize): Initialize alloc_descriptor to zero.
8143         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
8145 2019-05-07  Richard Biener  <rguenther@suse.de>
8147         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
8148         we build a SLP node.  Remove max_size and limiting.
8149         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
8151 2019-05-07  Richard Biener  <rguenther@suse.de>
8153         PR tree-optimization/90316
8154         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
8155         limit by reference.
8156         (walk_non_aliased_vuses): Take walking limit argument.
8157         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
8158         walking if it is reached instead of just counting.
8159         (get_continuation_for_phi): Likewise.
8160         (walk_non_aliased_vuses): Likewise, instead of leaving counter
8161         limiting to the callback.
8162         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
8163         (vn_reference_lookup_3): Likewise.
8164         (vn_reference_lookup_pieces): Likewise.
8165         (vn_reference_lookup): Likewise.
8166         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
8167         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
8168         (avail_exprs_stack::lookup_avail_expr): Likewise.
8170 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
8172         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
8173         for comparaible types in the second direction even if first one
8174         hits incomparable type.
8176 2019-05-07  Richard Biener  <rguenther@suse.de>
8178         PR lto/90369
8179         * lto-wrapper.c (debug_objcopy): Use the original filename
8180         including archive offset for the filename used for -save-temps.
8182 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
8184         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
8185         detection.
8187 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8188             Hongtao Liu  <hongtao.liu@intel.com>
8190         PR target/89750
8191         PR target/86444
8192         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
8193         Modified, original implementation isn't correct.
8195 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8197         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
8198         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
8199         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
8200         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
8201         (FRAME_POINTER_REGNUM): Change numbering.
8202         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
8203         (alt_reg_names): Adjust.
8204         (rs6000_conditional_register_usage): Don't mark hard register 64 as
8205         fixed.
8206         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8207         (DWARF_FRAME_REGISTERS): Delete.
8208         (DWARF2_FRAME_REG_OUT): Fix whitespace.
8209         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8210         Adjust.
8211         (REG_ALLOC_ORDER): Adjust.
8212         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
8213         (REG_CLASS_CONTENTS): Adjust.
8214         (RETURN_ADDR_RTX): Change comment.
8215         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
8216         instead of 67.
8217         (REGISTER_NAMES): Adjust.
8218         (ADDITIONAL_REGISTER_NAMES): Adjust.
8219         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8221 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8223         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
8224         Delete.
8225         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8226         (DWARF_FRAME_REGISTERS): Adjust.
8227         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8228         Adjust.
8229         (REG_ALLOC_ORDER): Adjust.
8230         (enum reg_class): Delete SPR_REGS.
8231         (REG_CLASS_NAMES): Delete SPR_REGS.
8232         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
8233         (REGISTER_NAMES): Adjust.
8234         (ADDITIONAL_REGISTER_NAMES): Adjust.
8235         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8236         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
8237         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
8238         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
8239         (htm_spr_regno): Delete.
8240         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
8241         argument.
8242         (rs6000_dbx_register_number): Adjust.
8244 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8246         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
8248 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8250         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
8251         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
8253 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
8255         PR tree-optimization/88709
8256         PR tree-optimization/90271
8257         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
8258         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
8259         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
8260         variable.
8261         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
8262         of the store merging group is larger than
8263         PARAM_STORE_MERGING_MAX_SIZE parameter.
8264         (split_group): Add bzero_first argument.  If set, always emit first
8265         the first store which must be = {} of the whole area and then for the
8266         rest of the stores consider all zero bytes as paddings.
8267         (imm_store_chain_info::output_merged_store): Check if first store
8268         is = {} of the whole area and if yes, determine which setting of
8269         bzero_first for split_group gives smaller number of stores.  Adjust
8270         split_group callers.
8271         (lhs_valid_for_store_merging_p): Allow decls.
8272         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
8273         no elts.
8274         (pass_store_merging::process_store): Likewise.
8276 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8278         PR target/89424
8279         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8280         handling of V1TImode.
8282 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8284         PR target/89221
8285         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
8286         and enable_frame_pointer ...
8287         * configure.ac: ... here.  Update help strings for
8288         --enable-frame-pointer.
8289         * configure: Regenerate.
8290         * config/i386/i386-options.c (ix86_option_override_internal): Remove
8291         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
8292         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
8293         (USE_X86_64_FRAME_POINTER): Ditto.
8295 2019-05-06  Martin Liska  <mliska@suse.cz>
8297         * config.gcc: Append to target_gtfiles and fix indentation.
8299 2019-05-06  Richard Biener  <rguenther@suse.de>
8301         PR tree-optimization/90358
8302         * tree-vect-stmts.c (get_group_load_store_type): Properly
8303         detect unused upper half of load.
8304         (vectorizable_load): Likewise.
8306 2019-05-06  Richard Biener  <rguenther@suse.de>
8308         PR tree-optimization/88828
8309         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
8310         (simplify_vector_constructor): ...here.  Handle constants in
8311         the constructor.
8313 2019-05-06  Richard Biener  <rguenther@suse.de>
8315         PR tree-optimization/90328
8316         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
8317         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
8318         is valid in the loop nest before using it.
8319         (initialize_data_dependence_relation): Adjust.
8320         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
8321         loop as loop-nest to dr_may_alias_p.
8323 2019-05-06  Richard Biener  <rguenther@suse.de>
8325         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
8327 2019-05-06  Richard Biener  <rguenther@suse.de>
8329         PR tree-optimization/90316
8330         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
8331         compute target on demand.
8332         (get_continuation_for_phi): Remove code walking stmts to
8333         get to a target virtual operand which could end up being
8334         quadratic.
8336 2019-05-06  Martin Liska  <mliska@suse.cz>
8338         PR sanitizer/90312
8339         * config/i386/i386-options.c (ix86_option_override_internal): Error only
8340         when -mabi is selected to a non-default version.
8342 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
8343             Martin Liska  <mliska@suse.cz>
8345         * Makefile.in: Add lto-dump.texi.
8346         * cgraph.h: Add new functions get_visibility_string and
8347         get_symtab_type_string.
8348         * doc/gcc.texi: Include lto-dump section.
8349         * doc/lto-dump.texi: New file.
8350         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
8351         (parse_dump_option): Factor out this function.
8352         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
8353         (parse_dump_option): Export the function.
8354         * symtab.c (symtab_node::get_visibility_string): New function.
8355         (symtab_node::get_symtab_type_string): Likewise.
8357 2019-05-06  Martin Liska  <mliska@suse.cz>
8359         * config/i386/i386-builtins.c: New file.
8360         * config/i386/i386-builtins.h: New file.
8361         * config/i386/i386-expand.c: New file.
8362         * config/i386/i386-expand.h: New file.
8363         * config/i386/i386-features.c: New file.
8364         * config/i386/i386-features.h: New file.
8365         * config/i386/i386-options.c: New file.
8366         * config/i386/i386-options.h: New file.
8367         * config.gcc: Add new files into extra_objs and
8368         target_gtfiles.
8369         * config/i386/i386.c: Split content of the file
8370         into newly introduced files.
8371         * config/i386/i386.h: Declare common variables
8372         and macros.
8373         * config/i386/t-i386: Define dependencies for new files.
8375 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
8377         PR target/89400
8378         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
8379         Restrict 'all' variant to 32-bit configurations.
8380         (unaligned_loadhiu): Likewise.
8381         (unaligned_storehi): Likewise.
8382         (unaligned_storesi): Likewise.
8383         (unaligned_loadhis): Disable when compiling for thumb1.
8385 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
8387         PR tree-optimization/90269
8388         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8389         Ignore clobbers.
8391 2019-05-03  Martin Liska  <mliska@suse.cz>
8393         * hash-map.h: Add is_empty function.
8394         * hash-set.h: Likewise.
8395         * hash-table.h: Likewise.
8396         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
8397         elements () == 0 (and similar usages).
8398         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
8399         * gimplify.c (gimplify_bind_expr): Likewise.
8400         (gimplify_switch_expr): Likewise.
8401         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
8402         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
8403         * postreload-gcse.c (dump_hash_table): Likewise.
8404         (gcse_after_reload_main): Likewise.
8405         * predict.c (combine_predictions_for_bb): Likewise.
8406         * tree-parloops.c (reduction_phi): Likewise.
8407         (separate_decls_in_region): Likewise.
8408         (transform_to_exit_first_loop): Likewise.
8409         (gen_parallel_loop): Likewise.
8410         (gather_scalar_reductions): Likewise.
8411         (try_create_reduction_list): Likewise.
8412         * var-tracking.c (dump_vars): Likewise.
8413         (emit_notes_for_changes): Likewise.
8414         (vt_emit_notes): Likewise.
8416 2019-05-03  Richard Biener  <rguenther@suse.de>
8418         PR tree-optimization/90316
8419         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
8420         before running VN.
8422 2019-05-03  Richard Biener  <rguenther@suse.de>
8424         * tree-vect-stmts.c (get_group_load_store_type): Avoid
8425         peeling for gaps by loading only lower halves of vectors
8426         if possible.
8427         (vectorizable_load): Likewise.
8429 2019-05-03  Richard Biener  <rguenther@suse.de>
8431         PR middle-end/89518
8432         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
8434 2019-05-03  Richard Biener  <rguenther@suse.de>
8436         PR middle-end/87314
8437         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
8438         Handle STRING_CST vs DECL or STRING_CST.
8440 2019-05-03  Richard Biener  <rguenther@suse.de>
8442         PR tree-optimization/88963
8443         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
8444         vector loads feeding only BIT_FIELD_REFs to component
8445         loads.  Rewrite stores fed by CONSTRUCTORs to component
8446         stores.
8448 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
8450         * opts.h (finish_options): Remove lang_mask argument.
8451         (print_help, help_option_argument): Declare.
8452         * opts.c (print_help): Remove forward declaration, no longer static.
8453         (finish_options): Remove lang_mask argument, don't call print_help
8454         here.
8455         * opts-global.c (decode_options): Adjust finish_option caller, call
8456         print_help here.
8458         PR tree-optimization/90303
8459         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
8460         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
8462 2019-05-03  Richard Biener  <rguenther@suse.de>
8464         PR tree-optimization/89698
8465         * gimple-fold.c (canonicalize_constructor_val): Early out
8466         for constants, handle unfolded INTEGER_CSTs as they appear in
8467         C++ virtual table ctors.
8469 2019-05-03  Richard Biener  <rguenther@suse.de>
8471         * passes.c (execute_function_todo): Remove dead code.
8473 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
8475         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
8476         the internal register number, for any "real" register.
8478 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
8480         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
8481         correct numbers for TFHAR, TFIAR, TEXASR.
8483 2019-05-02  Richard Biener  <rguenther@suse.de>
8485         PR tree-optimization/89653
8486         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
8487         update-address-taken before the pass.
8488         * passes.def (pass_tree_loop_init): Put comment before it.
8490 2019-05-02  Richard Biener  <rguenther@suse.de>
8492         PR tree-optimization/89509
8493         * tree-ssa-structalias.c (compute_dependence_clique): Look
8494         at the first subvar when determining whether it is restrict.
8496 2019-05-02  Richard Biener  <rguenther@suse.de>
8498         PR tree-optimization/90273
8499         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
8500         useless debug stmts.
8502 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
8504         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
8505         ACLE branch.
8506         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
8507         SVE ACLE branch.
8508         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
8509         VEC_COND_EXPR be inserted to emulate a conditional internal function.
8510         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
8511         (vectorizable_reduction): Use the functions above to vectorize in a
8512         fully masked loop codes that don't have a conditional internal
8513         function.
8515 2019-05-02  Martin Liska  <mliska@suse.cz>
8517         * cgraphclones.c: Call valid_attribute_p with 1 for
8518         target_clone.
8519         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
8520         it's for target attribute.
8521         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
8522         Add new boolean argument.
8523         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8524         Likewise.
8525         (ix86_valid_target_attribute_tree): Pass target_clone_attr
8526         to ix86_valid_target_attribute_inner_p.
8527         (ix86_valid_target_attribute_p): Pass flags argument to
8528         ix86_valid_target_attribute_inner_p.
8529         (get_builtin_code_for_version): Use 0 as it's target attribute.
8531 2019-05-02  Martin Liska  <mliska@suse.cz>
8533         * gcc.c (process_command): Add dummy file only
8534         if n_infiles == 0.
8535         * opts-global.c (decode_options): Pass lang_mask.
8536         * opts.c (print_help): New function.
8537         (finish_options): Print --help if help_option_argument
8538         is set.
8539         (common_handle_option): Factor out content of OPT__help_
8540         into print_help.
8541         * opts.h (finish_options): Add new argument.
8543 2019-05-02  Martin Liska  <mliska@suse.cz>
8545         PR target/88809
8546         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
8547         With -minline-all-stringops use inline expansion using 4B loop.
8548         * doc/invoke.texi: Document the change of
8549         -minline-all-stringops.
8551 2019-05-01  Jeff Law  <law@redhat.com>
8553         PR tree-optimization/88797
8554         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
8555         PHI feeds a conditional on the RHS of an assignment.
8557 2019-04-30  Andrew Waterman  <andrew@sifive.com>
8558             Jim Wilson  <jimw@sifive.com>
8560         * config/riscv/constraints.md (L): New.
8561         * config/riscv/predicates.md (lui_operand): New.
8562         (sfb_alu_operand): New.
8563         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
8564         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
8565         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
8566         * config/riscv/risc.md (type): Add sfb_alu.
8567         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
8568         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
8569         (branch_zero<mode>): Delete.
8570         (mov<mode>cc): New.
8571         (mov<GPR:mode><X:mode>cc): Likewise.
8572         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
8574 2019-04-30  Nathan Sidwell  <nathan@acm.org>
8576         * tree.h (MARK_TS_EXP): New.
8578 2019-04-30  Martin Liska  <mliska@suse.cz>
8580         * opts.c (enable_warning_as_error): Provide hints
8581         for unknown options.
8583 2019-04-30  Martin Liska  <mliska@suse.cz>
8585         PR debug/90288
8586         * doc/invoke.texi: Add missing dash for gas-locview-support
8587         and gno-as-locview-support.
8589 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
8591         PR target/89093
8592         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
8593         whitespace at the start of target attribute string.
8595 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8597         PR target/86538
8598         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8599         Define __ARM_FEATURE_ATOMICS.
8601 2019-04-30  Martin Liska  <mliska@suse.cz>
8603         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
8604         into built_in_function enum. Remove code for endp == 2 and
8605         use BUILT_IN_* constants.
8606         (gimple_fold_builtin): Call the function with fcode.
8608 2019-04-30  Martin Liska  <mliska@suse.cz>
8610         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
8611         DECL_FUNCTION_CODE into ix86_builtins enum before
8612         the switch statement.
8614 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
8616         PR tree-optimization/89475
8617         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
8618         calls.
8620 2019-04-30  Martin Liska  <mliska@suse.cz>
8622         PR translation/90274
8623         * opts.c (print_filtered_help): Wrap string in _(...).
8625 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
8627         PR tree-optimization/90240
8628         Revert:
8629         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
8631         PR tree-optimization/90078
8632         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8633         checks for infinite_cost overflow.
8635 2019-04-29  Jeff Law  <law@redhat.com>
8637         * passes.def: Move -Wrestrict pass after copy propagation.
8639 2019-04-29  Maya Rashish  <coypu@sdf.org>
8641         * config.gcc (default_gnu_indirect_function): Default to yes
8642         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
8643         sparc*-*-netbsd*, x86_64-*-netbsd*.
8645 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
8647         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
8648         where cond2 is NE_EXPR.
8649         (is_value_included_in): Update comment.
8651 2019-04-29  Richard Biener  <rguenther@suse.de>
8653         PR tree-optimization/90278
8654         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
8655         EH on comparison simplification.
8657 2019-04-29  Jason Merrill  <jason@redhat.com>
8659         PR c++/82081 - tail call optimization breaks noexcept
8660         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
8661         nothrow function to a might-throw function into a tail call.
8663 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8665         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
8666         (DDR_INNER_LOOP): Likewise.
8667         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
8668         (initialize_data_dependence_relation): Likewise.
8669         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
8671 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
8673         PR rtl-optimization/90257
8674         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
8675         return value.
8677         Revert the revert:
8678         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
8680         PR target/90178
8681         Revert:
8682         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
8684         Revert the revert:
8685         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8687         Revert:
8688         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8690         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8692 2019-04-29  Richard Biener  <rguenther@suse.de>
8694         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
8695         rhs issue a reset.
8697 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
8699         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
8700         varasm.h, and netbsd-protos.h.
8702 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8704         PR target/89261
8705         * config/i386/i386-protos.h (ix86_data_alignment): Change
8706         the second argument type to unsigned int.
8707         * config/i386/i386.c (ix86_data_alignment): Change "align"
8708         argument type to unsigned int.
8710 2019-04-27  Martin Liska  <mliska@suse.cz>
8712         PR middle-end/90258
8713         * opt-suggestions.c (option_proposer::build_option_suggestions):
8714         When get_valid_option_values returns empty values, add the
8715         misspelling candidate.
8717 2019-04-26  Jim Wilson  <jimw@sifive.com>
8719         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
8720         parameter.
8721         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
8722         Pass orig_mode to riscv_build_integer.
8723         (riscv_split_integer): Pass mode to riscv_move_integer.
8724         (riscv_legitimize_const_move): Likewise.
8725         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
8726         promoted_mode.  Replace force_reg call with code to load constant into
8727         promoted reg and then subreg it for the store.
8728         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
8729         riscv_move_integer.
8731 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
8733         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
8734         corrupt codes.
8736 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
8738         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
8739         commentary about the encoding of precision.
8741 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
8743         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
8744         * config/i386/t-freebsd64: New file.
8745         * config.gcc: Add the t-freebsd64 for multilib support.
8747 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8749         * doc/extend.texi (vector_size): Add missing comma after @xref.
8751 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
8753         * BASE-VER: Set to 10.0.0.
8755 2019-04-25  Richard Biener  <rguenther@suse.de>
8757         PR middle-end/89765
8758         * gimplify.c (gimplify_expr): Avoid turning a lvalue
8759         VIEW_CONVERT_EXPR into one operating on an rvalue.
8761 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8763         PR target/89929
8764         * config/i386/i386.c (feature_priority): Moved to file scope.
8765         (processor_features): Likewise.
8766         (processor_model): Likewise.
8767         (_arch_names_table): Likewise.
8768         (arch_names_table): Likewise.
8769         (_feature_list): Removed.
8770         (feature_list): Likewise.
8771         (_isa_names_table): Moved to file scope.  Add priority.
8772         (isa_names_table): Likewise.
8773         (get_builtin_code_for_version): Replace feature_list with
8774         isa_names_table.  Update error message for P_ZERO priority.
8776 2019-04-25  Richard Biener  <rguenther@suse.de>
8778         * tree-pass.h (make_pass_phi_only_cprop): Remove.
8779         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
8781 2019-04-24  Jeff Law  <law@redhat.com>
8783         PR tree-optimization/90037
8784         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
8785         * passes.def: Replace all instance of phi-only cprop with the
8786         lattice propagator.  Move propagation pass from after erroneous
8787         path isolation to before erroneous path isolation.
8788         * tree-ssa-phionlycprop.c: Remove.
8790 2019-04-24  Richard Biener  <rguenther@suse.de>
8792         PR middle-end/90213
8793         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
8794         by size and BITS_PER_UNIT on poly-wide-ints.
8796 2019-04-25  Richard Biener  <rguenther@suse.de>
8798         PR middle-end/90194
8799         * match.pd: Add pattern to simplify view-conversion of an
8800         empty constructor.
8802 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
8804         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
8805         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
8806         for Go on 32 bit AIX.
8807         * config/rs6000/aix72.h: Likewise.
8809 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
8811         PR target/90193
8812         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
8813         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
8815 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
8817         PR target/89952
8818         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
8819         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
8820         for restored hard frame pointer.
8821         (s390_sched_dependencies_evaluation): Implement new target hook.
8822         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
8824 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
8826         * config/arc/arc-options.def: Fix typos and spelling mistakes.
8827         * config/arc/arc.c (arc_init): Cleanup warning message.
8828         (arc_override_options): Likewise.
8830 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
8832         PR target/90187
8833         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
8834         a register if both if_true and if_false are MEMs.
8836         PR tree-optimization/90208
8837         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
8838         after labels of new_bb, not before them.
8840         PR tree-optimization/90211
8841         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
8842         which are not SSA_NAMEs.
8844 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
8846         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
8847         AArch64.
8848         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
8850 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
8852         PR rtl-optimization/87979
8853         * modulo-sched.c (sms_schedule): Start ii value "mii" should
8854         not equal zero.
8856 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
8858         PR rtl-optimization/84032
8859         * modulo-sched.c (ps_insn_find_column): Change condition so that
8860         branch will always be the last insn in a row inside partial
8861         schedule.
8863 2019-04-23  Richard Biener  <rguenther@suse.de>
8865         PR debug/90131
8866         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
8867         dest_single_pred_p argument.
8868         (remove_forwarder_block): Adjust.
8869         (remove_forwarder_block_with_phi): Likewise.
8871 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8872             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8873             Jakub Jelinek  <jakub@redhat.com>
8875         PR target/89093
8876         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
8877         if used with general-regs-only.
8878         (arm_conditional_register_usage): Don't add non-general regs if
8879         general-regs-only.
8880         (arm_valid_target_attribute_rec): Handle general-regs-only.
8881         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
8882         general-regs-only.
8883         (TARGET_HARD_FLOAT_SUB): Define.
8884         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
8885         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
8886         (TARGET_REALLY_IWMMXT2): Likewise.
8887         * config/arm/arm.opt: Add -mgeneral-regs-only.
8888         * doc/extend.texi: Document ARM general-regs-only target.
8889         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
8891 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
8893         PR tree-optimization/90078
8894         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8895         checks for infinite_cost overflow.
8897 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
8899         PR tree-optimization/90021
8900         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
8901         and check univariate against it.
8902         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
8903         * tree-data-ref.c (add_other_self_distances): Pass new argument.
8905 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
8907         PR target/90178
8908         Revert:
8909         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
8911         Revert the revert:
8912         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8914         Revert:
8915         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8917         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8919 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
8921         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
8922         names using operand format, rather than hard-wired.
8923         (speculation_barrier): Likewise.
8925 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
8927         PR tree-optimization/88055
8928         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
8929         (gen_one_condition): Use it if !HONOR_NANS.
8931 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
8933         PR middle-end/90139
8934         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
8935         assign_temp instead of gen_reg_rtx.
8937 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
8939         PR translation/90118
8940         * config/aarch64/aarch64.c (aarch64_override_options_internal):
8941         Add missing space before %<.
8943 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
8945         PR rtl-optimization/87871
8946         * ira-lives.c (make_object_dead): Don't add conflicts to
8947         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
8949 2019-04-18  Martin Sebor  <msebor@redhat.com>
8951         PR middle-end/89797
8952         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
8953         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
8954         assuming type size fits in SHWI.
8956 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
8958         PR ipa/85051
8959         * ipa-inline.c (flatten_function): New parameter UPDATE.
8960         (ipa_inline, early_inliner): Use it.
8962 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
8964         * fold-const.c (int_const_binop): Return early on failure.
8966 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
8968         PR middle-end/85164
8969         * combine.c (force_int_to_mode): Cast the argument rather than
8970         the result of known_alignment.
8971         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
8973 2019-04-18  Richard Biener  <rguenther@suse.de>
8975         PR debug/90131
8976         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
8977         out from ...
8978         (remove_forwarder_block): ... here.
8979         (remove_forwarder_block_with_phi): Also move debug stmts here.
8981 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
8983         PR translation/79183
8984         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
8985         inform where appropriate.
8987 2019-04-18  Richard Biener  <rguenther@suse.de>
8989         * tree.c (get_qualified_type): Put found type variants at the
8990         head of the variant list.
8992 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
8994         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
8996 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
8998         PR target/90125
8999         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
9000         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
9001         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
9002         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
9003         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
9005 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
9007         * ira-conflicts.c (print_allocno_conflicts): Always print something,
9008         even for allocno's with no conflicts.
9009         (print_conflicts): Print an extra newline.
9011 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
9013         * auto-inc-dec.c (attempt_change): Set the alignment of the
9014         temporary memory to that of the original.
9016 2019-04-17  Joao Moreira  <jmoreira@suse.de>
9018         * targhooks.c (default_print_patchable_function_entry): Emit
9019         __patchable_function_entries section with writable flags to allow
9020         relocation resolution.
9022 2019-04-17  Jonny Grant  <jg@jguk.org>
9024         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
9026 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
9028         PR middle-end/90095
9029         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
9030         on lowpart SUBREGs.
9032 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
9034         * config/arc/arc.c (arc_init): Format diagnostic string.
9035         (arc_override_options): Likewise.
9036         (check_if_valid_regno_const): Likewise.
9037         (arc_reorg): Likewise.
9039 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
9041         PR target/17108
9042         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
9043         name.
9044         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
9045         name.
9046         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
9047         (*movdi_update1): Use Pmode.
9048         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
9049         (movdi_<mode>_update_stack): Rename to ...
9050         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
9051         use Pmode.
9052         (*movsi_update1): Use Pmode.
9053         (*movsi_update2): Use Pmode.
9054         (movsi_update): Rename to ...
9055         (movsi_<mode>_update): ... this.  Use Pmode.
9056         (movsi_update_stack): Fix condition.
9057         (*movhi_update1): Use Pmode.  Fix argument to
9058         avoiding_indexed_address_p.
9059         (*movhi_update2): Ditto.
9060         (*movhi_update3): Ditto.
9061         (*movhi_update4): Ditto.
9062         (*movqi_update1): Ditto.
9063         (*movqi_update2): Ditto.
9064         (*movqi_update3): Ditto.
9065         (*movsf_update1, *movdf_update1): Merge, rename to...
9066         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
9067         avoiding_indexed_address_p.  Add "size" attribute.
9068         (*movsf_update2, *movdf_update2): Merge, rename to...
9069         (*mov<mode>_update2): This.  Ditto.
9070         (*movsf_update3): Use Pmode.  Fix argument to
9071         avoiding_indexed_address_p.
9072         (*movsf_update4): Ditto.
9073         (allocate_stack): Simplify condition.  Adjust pattern names.
9075 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
9077         PR target/89093
9078         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
9079         whitespace at the start of target attribute string.
9081 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
9083         PR target/84369
9084         * config/rs6000/power9.md: Add store forwarding bypass.
9086 2019-04-16  Alexandre Oliva <aoliva@redhat.com>
9088         PR debug/89528
9089         * valtrack.c (dead_debug_insert_temp): Reset debug references
9090         to the return value of a call being removed.
9092 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9094         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
9095         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
9096         implement target hook.
9097         (arc_memory_move_cost): New function.
9098         (TARGET_REGISTER_MOVE_COST): Define.
9099         (TARGET_MEMORY_MOVE_COST): Likewise.
9100         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
9101         (MEMORY_MOVE_COST): Likewise.
9103 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9105         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
9106         (sibcall_value_insn): Likewise.
9107         * config/arc/constraints.md (Rs5): Remove.
9109 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9111         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
9112         for last two fake registers.
9113         (arc_conditional_register_usage): Make sure fake frame and arg
9114         pointer regs are in general regs class.
9115         (FRAME_POINTER_MASK): Remove.
9116         (RETURN_ADDR_MASK): Remove.
9117         (arc_must_save_register): Use hard frame regnum.
9118         (frame_restore_reg): Use hard_frame_pointer_rtx.
9119         (arc_save_callee_saves): Likewise.
9120         (arc_restore_callee_saves): Likewise.
9121         (arc_save_callee_enter): Likewise.
9122         (arc_restore_callee_leave): Likewise.
9123         (arc_save_callee_milli): Likewise.
9124         (arc_eh_return_address_location): Likewise.
9125         (arc_check_multi): Use hard frame regnum.
9126         (arc_can_eliminate): Likewise.
9127         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
9128         for register allocator.
9129         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
9130         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
9131         (FRAME_POINTER_REGNUM): Change it to a fake register.
9132         (HARD_FRAME_POINTER_REGNUM): Defined.
9133         (ARG_POINTER_REGNUM): Change it to a new fake register.
9134         (ELIMINABLE_REGS): Update.
9135         (REGISTER_NAMES): Update names.
9136         * config/arc/arc.md (LP_START): Remove.
9137         (LP_END): Likewise.
9138         (shift_si3_loop): Update pattern.
9140 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
9142         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
9143         to avoid delay slot scheduling.
9144         (arc_must_save_register): Don't save SP.
9145         * config/arc/arc.md (stack_tie): Remove.
9146         (UNSPEC_ARC_STKTIE): Likewise.
9148 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
9149             Shiva Chen  <shiva0217@gmail.com>
9151         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
9152         code gen with large shift amount.
9154 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
9156         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
9157         subreg.
9159 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
9161         PR target/90096
9162         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
9163         print -m64/-mx32/-m32 if it is true.
9164         (ix86_debug_options, ix86_function_specific_print): Pass true as
9165         ADD_ABI_P to ix86_target_string.
9166         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
9167         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
9168         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
9170         PR rtl-optimization/90082
9171         * dce.c (can_delete_call): New function.
9172         (deletable_insn_p, mark_insn): Use it.
9174         PR tree-optimization/90090
9175         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
9176         throw internally.
9177         (is_division_by_square): Likewise.  Formatting fix.
9179 2019-04-16  Richard Biener  <rguenther@suse.de>
9181         PR tree-optimization/56049
9182         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
9183         equality check if alias-set zero will prevail.
9185 2019-04-15  Jeff Law  <law@redhat.com>
9187         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
9188         size and alignment as unsigned.
9190 2019-04-15  Richard Biener  <rguenther@suse.de>
9192         PR debug/90074
9193         * tree-loop-distribution.c (destroy_loop): Preserve correct
9194         debug info.
9196 2019-04-15  Richard Biener  <rguenther@suse.de>
9198         PR tree-optimization/90071
9199         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
9200         abnormal operands from def stmts.
9202 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
9204         PR rtl-optimization/89794
9205         * combine.c (count_auto_inc): New function.
9206         (try_combine): Count how many auto_inc expressions there were in the
9207         original instructions.  Ensure we have the same number in the new
9208         instructions.  Remove the code that tried to ensure auto_inc side
9209         effects on i1 and i0 are not lost.
9211 2019-04-15  Richard Biener  <rguenther@suse.de>
9213         PR ipa/88936
9214         * tree.h (auto_var_p): Declare.
9215         * tree.c (auto_var_p): New function, split out from ...
9216         (auto_var_in_fn_p): ... here.
9217         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
9218         member.
9219         (new_var_info): Initialize it.
9220         (set_uids_in_ptset): Also set the shadow variable uid if required.
9221         (ipa_pta_execute): Postprocess points-to solutions assigning
9222         shadow variable uids for locals that may reach their containing
9223         function recursively.
9224         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
9225         assert but instead check whether the points-to solution is
9226         a singleton.
9228 2019-04-15  Martin Jambor  <mjambor@suse.cz>
9230         PR ipa/pr89693
9231         * cgraph.c (clone_of_p): Loop over clone chain for each step in
9232         the thunk chain.
9234 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
9236         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
9238 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
9239             Kito Cheng  <kito.cheng@gmail.com>
9240             Shiva Chen  <shiva0217@gmail.com>
9242         * config/nds32/nds32-md-auxiliary.c
9243         (nds32_legitimize_pic_address): Use new PIC pattern.
9244         (nds32_legitimize_tls_address): Use new TLS pattern.
9245         (nds32_output_symrel): New.
9246         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
9247         (nds32_alloc_relax_group_id): Ditto.
9248         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
9249         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
9250         relax_group_id.
9251         (nds32_group_tls_insn): Ditto.
9252         (nds32_group_float_insns): Ditto.
9253         * config/nds32/nds32.md (tls_le): New.
9254         (sym_got): Ditto.
9256 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
9258         * configure: Add nds32 target for dwarf2 debug_line checking.
9259         * configure.ac: Regenerated.
9261 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
9263         PR lto/89358
9264         * ipa-devirt.c (skip_in_fields_list_p): New.
9265         (odr_types_equivalent_p): Use it.
9267 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
9269         PR target/89093
9270         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
9271         instead of strncmp when checking for thumb and arm.  Formatting fixes.
9273 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
9275         * doc/install.texi: Document --with-target-system-zlib.
9277 2019-04-12  Martin Sebor  <msebor@redhat.com>
9279         PR c/88383
9280         PR c/89288
9281         PR c/89798
9282         PR c/89797
9283         * targhooks.c (default_vector_alignment): Avoid assuming
9284         argument fits in SHWI.
9285         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
9286         a shift expression.
9287         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
9289 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9291         PR rtl-optimization/89965
9292         * dce.c: Include rtl-iter.h.
9293         (struct check_argument_load_data): New type.
9294         (check_argument_load): New function.
9295         (find_call_stack_args): Check for loads from stack slots still tracked
9296         in sp_bytes and punt if any is found.
9298         * config/mips/loongson-mmiintrin.h: Fix up #error message.
9300 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
9302         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
9303         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
9305 2019-04-12  Martin Liska  <mliska@suse.cz>
9307         PR middle-end/89970
9308         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
9309         in error message.
9310         (separate_attrs): Handle multiple 'default's.
9311         (expand_target_clones): Rework error handling code.
9313 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9315         PR target/87532
9316         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
9317         mode of vector rather than mode of destination for move instruction.
9318         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
9319         Use QI inner mode with V16QI vector mode.
9321 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9323         PR target/52726
9324         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
9325         "invalid %%t operand" in output_operand_lossage message.
9327 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
9329         * config/s390/predicates.md (permute_pattern_operand): New
9330         predicate.
9331         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
9332         operand for the permute pattern.
9333         ("*vec_perm<mode>"): New insn definition.
9334         ("bswap<mode>"): Generate the permute pattern operand in the
9335         expander and perform the operand reloads for pre arch13 level
9336         already.
9337         ("*bswap<mode>_emu"): Rename to ...
9338         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
9339         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
9340         Add the USE operand for the permute pattern.
9341         ("*vec_set_bswap_vec<mode>"): Likewise.
9343 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
9345         PR c/89946
9346         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
9347         and gcc_unreachable if it fails, just call tree_to_uhwi which
9348         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
9349         Start warning message with a lower-case letter.  Formatting fixes.
9351         PR rtl-optimization/90026
9352         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
9353         successors, look for BARRIERs inside of the whole BB_FOOTER chain
9354         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
9355         in cfglayout mode, use emit_barrier_after_bb.
9357 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
9359         PR rtl-optimization/87763
9360         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
9361         New Instruction.
9363 2019-04-11  Tom de Vries  <tdevries@suse.de>
9365         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
9366         max macro using statement expression.
9368 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
9370         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
9371         * xcoffout.c (xcoff_private_rodata_section_name): Define.
9372         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
9373         read_only_private_data_section using xcoff_private_rodata_section_name.
9374         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
9376 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
9378         PR target/90016
9379         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
9381 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
9383         PR rtl-optimization/89965
9384         * dce.c (sp_based_mem_offset): New function.
9385         (find_call_stack_args): Use sp_based_mem_offset.
9387 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
9389         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
9391 2019-04-11  Richard Biener  <rguenther@suse.de>
9393         PR tree-optimization/90020
9394         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
9395         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
9396         * tree-ssa-pre.c (compute_avail): Use it to not put
9397         possibly trapping references after a call that might not
9398         return into EXP_GEN.
9399         * gcse.c (compute_hash_table_work): Do not elide
9400         marking a block containing a call if the call might not
9401         return.
9403 2019-04-11  Richard Biener  <rguenther@suse.de>
9405         PR tree-optimization/90018
9406         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
9407         Test both SLP and interleaving variants.
9409 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
9411         * config/s390/8561.md: New file.
9412         * config/s390/driver-native.c (s390_host_detect_local_cpu):
9413         Add arch13 cpu model.
9414         * config/s390/s390-opts.h (enum processor_type): Likewise.
9415         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
9416         (s390_get_unit_mask): Likewise.
9417         (s390_is_fpd): Likewise.
9418         (s390_is_fxd): Likewise.
9419         * config/s390/s390.h (s390_tune_attr): Likewise.
9420         * config/s390/s390.md: Include arch13 pipeline description.
9421         * config/s390/s390.opt: Add arch13.
9423 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
9425         PR rtl-optimization/87763
9426         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
9427         New prototype.
9428         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
9429         New function.
9430         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
9431         New instruction.
9432         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
9433         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
9434         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
9435         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
9437 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
9439         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
9440         "Although" in -fipa-icf documentation.
9442         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
9443         of using multiple -g options.
9445 2019-04-10  Martin Liska  <mliska@suse.cz>
9447         PR gcov-profile/89959
9448         * doc/gcov.texi: Make documentation of -x option
9449         more precise.
9451 2019-04-10  Richard Biener  <rguenther@suse.de>
9453         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
9454         member.
9455         (DR_GROUP_SAME_DR_STMT): Remove.
9456         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
9457         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
9458         replace with assert.
9459         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
9460         (vect_record_grouped_load_vectors): Remove unreachable code.
9462 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
9464         PR target/90016
9465         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
9466         obsolete reference to N.
9468 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
9470         PR middle-end/90025
9471         * expr.c (store_expr): Set properly size on the MEM passed to
9472         clear_storage.
9474         PR c++/90010
9475         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
9476         with strlen in between hostsz-3 and hostsz-1 inclusive when no
9477         translation is needed, and when translation is needed, only append
9478         ... if the string length is hostsz or more bytes long.  Avoid using
9479         strncpy or strcat.
9481 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
9483         PR target/90024
9484         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
9485         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
9486         into three.
9487         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
9488         differences directly.
9489         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
9491 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
9493         PR translation/90011
9494         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
9495         from diagnostics.
9496         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
9497         diagnostics.
9498         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
9499         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
9500         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
9501         trailing space from -gsplit-dwarf diagnostics.
9503         PR tree-optimization/89998
9504         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
9505         instead of integer_type_node if possible, don't add ranges if return
9506         type is not compatible with int.
9507         * gimple-fold.c (gimple_fold_builtin_sprintf,
9508         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
9509         integer_type_node.
9511 2019-04-09  Martin Liska  <mliska@suse.cz>
9513         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
9514         * doc/install.texi: Document the new config.
9516 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
9518         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
9519         use gimple_expr_type for load and store calls.  Skip over the
9520         condition argument in a conditional internal function.
9521         Protect use of TREE_INT_CST_LOW.
9523 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
9525         PR target/90015
9526         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
9527         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
9528         trailing period from it too.
9530 2019-04-08  wu yuan  <wuyuan5@huawei.com>
9532         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
9533         * config/aarch64/aarch64.md : Add "tsv110.md"
9534         * config/aarch64/tsv110.md: New file.
9536 2019-04-08  Richard Biener  <rguenther@suse.de>
9538         PR tree-optimization/90006
9539         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
9540         calls like lrint.
9542 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
9544         PR target/83033
9545         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
9546         construction.
9547         (fma_root_node): Likewise.
9548         (func_fma_steering): Likewise.
9550 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
9552         PR rtl-optimization/89865
9553         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
9555         PR rtl-optimization/89865
9556         * config/i386/i386.md
9557         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
9558         numbers not to clash with the additional operands[4].
9559         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
9560         with extra register copy in the middle.
9562 2019-04-08  Martin Liska  <mliska@suse.cz>
9564         PR gcov-profile/89961
9565         * doc/gcov.texi: Document data_file.
9566         * gcov.c (generate_results): Add data_info into JSON output.
9568 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
9570         PR tree-optimization/89725
9571         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
9572         loop's chrec as invariant symbol.
9573         * tree-chrec.h (chrec_contains_symbols): New parameter.
9574         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
9575         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
9576         function of loops not in DDR's loop_nest.
9577         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
9579 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
9581         PR target/89623
9582         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
9583         Mask.
9585 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9587         PR target/89945
9588         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
9589         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
9591 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
9593         * sched-deps.c (sched_macro_fuse_insns): Check return value of
9594         targetm.fixed_condition_code_regs.
9596 2019-04-05  Richard Biener  <rguenther@suse.de>
9598         PR debug/89892
9599         PR debug/89905
9600         * tree-cfgcleanup.c (remove_forwarder_block): Always move
9601         debug bind stmts but reset them if they are not valid at the
9602         destination.
9604 2019-04-05  Martin Liska  <mliska@suse.cz>
9606         PR translation/89936
9607         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
9608         order to wrap keywords or arguments.
9609         * collect2.c (main): Likewise.
9610         (scan_prog_file): Likewise.
9611         (scan_libraries): Likewise.
9612         * common/config/riscv/riscv-common.c
9613         (riscv_subset_list::parsing_subset_version): Likewise.
9614         (riscv_subset_list::parse_std_ext): Likewise.
9615         * config/aarch64/aarch64.c (aarch64_override_options_internal):
9616         Likewise.
9617         * config/arm/arm.c (arm_option_override): Likewise.
9618         * config/cris/cris.c (cris_print_operand): Likewise.
9619         * config/darwin-c.c (darwin_pragma_options): Likewise.
9620         (darwin_pragma_unused): Likewise.
9621         (darwin_pragma_ms_struct): Likewise.
9622         * config/ft32/ft32.c (ft32_print_operand): Likewise.
9623         * config/i386/i386.c (print_reg): Likewise.
9624         (ix86_print_operand): Likewise.
9625         * config/i386/xm-djgpp.h: Likewise.
9626         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
9627         * config/m32c/m32c.c (m32c_option_override): Likewise.
9628         * config/msp430/msp430.c (msp430_option_override): Likewise.
9629         * config/nds32/nds32.c (nds32_option_override): Likewise.
9630         * config/nvptx/mkoffload.c (main): Likewise.
9631         * config/rx/rx.c (rx_print_operand): Likewise.
9632         (valid_psw_flag): Likewise.
9633         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
9634         (vms_pragma_nomember_alignment): Likewise.
9635         (vms_pragma_extern_model): Likewise.
9636         * lto-wrapper.c (compile_offload_image): Likewise.
9637         * omp-offload.c (oacc_parse_default_dims): Likewise.
9638         * symtab.c (symtab_node::verify_base): Likewise.
9639         * tlink.c (recompile_files): Likewise.
9640         (start_tweaking): Likewise.
9641         * tree-profile.c (parse_profile_filter): Likewise.
9643 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
9645         PR tree-optimization/89956
9646         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
9647         multiple negates of the same value.
9649 2019-04-04  Martin Sebor  <msebor@redhat.com>
9651         PR middle-end/89957
9652         PR middle-end/89911
9653         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
9654         have the same precision since the function crashes otherwise.
9655         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
9656         has non-zero arguments.
9658 2019-04-04  Martin Sebor  <msebor@redhat.com>
9660         PR middle-end/89934
9661         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
9662         out if the number of arguments is less than expected.
9664 2019-04-04  Jeff Law  <law@redhat.com>
9666         PR rtl-optimization/89399
9667         * ree.c (combine_set_extension): Use single_set rather than
9668         digging into PATTERN for items on the candidate list.
9669         (combine_reaching_defs): Likewise.
9671 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
9673         PR rtl-optimization/46590
9674         * loop-invariant.c (find_defs): Move df_remove_problem and
9675         df_process_deferred_rescans to move_invariants.
9676         Move df_live_add_problem and df_live_set_all_dirty calls
9677         to move_invariants.
9678         (move_invariants): Likewise.
9679         (move_loop_invariants): Likewise, making the df_live calls
9680         conditional on -O.  Remove the problem again if we added it
9681         locally.
9683 2019-04-03  qing zhao  <qing.zhao@oracle.com>
9685         PR tree-optimization/89730
9686         * ipa-inline.c (can_inline_edge_p): Delete the checking for
9687         -flive-patching=inline-only-static.
9688         (can_inline_edge_by_limits_p): Add the checking for
9689         -flive-patching=inline-only-static and grant always_inline
9690         even when -flive-patching=inline-only-static is specified.
9692 2019-04-03  Jeff Law  <law@redhat.com>
9694         PR rtl-optimization/81025
9695         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
9697 2019-04-03  Richard Biener  <rguenther@suse.de>
9699         PR tree-optimization/84101
9700         * tree-vect-stmts.c: Include explow.h for hard_function_value,
9701         regs.h for hard_regno_nregs.
9702         (cfun_returns): New helper.
9703         (vect_model_store_cost): When vectorizing a store to a decl
9704         we return and the function ABI returns in a multi-reg location
9705         account for the possible spilling that will happen.
9707 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
9709         * config/s390/s390.c (s390_legitimate_address_p): Reject long
9710         displacement addresses for vector mode operands.
9712 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
9714         * config/arc/arc.c (GMASK_LEN): Define.
9715         (arc_restore_callee_saves): Restore first blink when
9716         !optimize_size.
9718 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
9720         * doc/extend.texi: Add deprecated comment on sign-return-address
9721         function attribute and add mbranch-protection.
9722         * doc/invoke.texi: Add bti to the options for mbranch-protection.
9724 2019-04-03  Richard Biener  <rguenther@suse.de>
9726         PR lto/89896
9727         * lto-wrapper.c (run_gcc): Avoid implicit rules making
9728         the all target phony.
9730 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9732         PR target/89902
9733         PR target/89903
9734         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
9735         Return false for variable DImode shifts.
9736         (dimode_scalar_chain::compute_convert_gain): Do not handle
9737         register count operand in variable DImode shifts.
9738         (dimode_scalar_chain::make_vector_copies): Remove support to copy
9739         count argument of a variable shift instruction to a vector register.
9740         (dimode_scalar_chain::convert_reg): Remove support to convert
9741         count argument of a variable shift instruction.
9743 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
9745         PR rtl-optimization/84206
9746         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
9747         iterating over loop headers.
9749 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
9751         PR rtl-optimization/85876
9752         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
9753         beyond the original fence.
9755 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
9757         * config.gcc: Mark spu* targets as deprecated/obsolete.
9759 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9761         * config/s390/s390-builtin-types.def: New builtin function type
9762         definitions. Remove unused types.
9763         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
9764         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
9765         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
9766         overloaded builtins.
9767         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
9768         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
9769         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
9770         (vec_double, vec_signed, vec_unsigned): Define to use the new
9771         overloaded builtins.
9772         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
9773         Remove expanders.
9775 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9777         * config/s390/s390-builtin-types.def: New builtin function type
9778         definitions.
9779         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
9780         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
9781         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
9782         (s390_vstrszh, s390_vstrszf): New low-level builtins.
9783         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
9784         constant definitions.
9785         * config/s390/vecintrin.h (vec_search_string_cc)
9786         (vec_search_string_until_zero_cc): New builtin name definitions.
9787         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
9788         expanders.
9789         ("vec_vstrs<mode>"): New insn definition.
9791 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9793         * config/s390/s390-builtin-types.def: Add new builtin function
9794         types.
9795         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
9796         New overloaded builtins.
9797         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
9798         s390_vsrd.
9799         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
9800         (UNSPEC_VEC_SLDBYTE): ... this.
9801         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
9802         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
9803         definitions.
9804         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
9805         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
9806         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
9808 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9810         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
9811         New insn definition.
9812         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
9813         * config/s390/vector.md (V_HW_HSD): ... here.
9815 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9817         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
9818         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
9819         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
9820         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
9821         New insn definitions.
9823 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9825         * config/s390/s390-builtin-types.def: Add new builtin function type.
9826         * config/s390/s390-builtins.def: Add overloaded builtin
9827         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
9828         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
9829         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
9830         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
9831         ("eltswap<mode>"): New expander.
9832         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
9833         insn definitions.
9835 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9837         * config/s390/s390-builtin-types.def: Add new builtin function types.
9838         * config/s390/s390-builtins.def: Add overloaded builtin
9839         s390_vec_revb. Add low-level builtins for vlbr and vstbr
9840         instructions.
9841         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
9842         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
9843         ("bswap<mode>"): New expander.
9844         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
9846 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9848         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
9849         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
9850         vector builtin version number in __VEC__.
9852 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9854         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
9855         iterators.
9856         (SFSI): New mode attribute.
9857         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
9858         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
9859         rename to ...
9860         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
9861         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
9862         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
9863         ("floatsi<mode>2"): Add wcefb instruction.
9865 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9867         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
9868         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
9869         mode iterators.
9870         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
9871         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
9872         support 32 bit fp-int conversions. Rename to ...
9873         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
9874         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
9875         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
9876         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
9877         ... to these.
9879 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9881         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
9882         if-then-else constructs if we can use the select instruction.
9883         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
9885 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9887         * config/s390/s390.md ("*popcountdi_arch13_cc")
9888         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
9889         definition.
9890         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
9891         Append _z196 to make it ...
9892         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
9893         ("popcounthi2_z196"): ... this.
9894         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
9895         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
9897 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9899         * config/s390/s390.c (s390_canonicalize_comparison): Convert
9900         certain compares for arch13 in order to make use of the condition
9901         code result produced by the new instructions.
9902         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
9903         nxrk, and nxgrk instruction patterns.
9904         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
9905         (inv_no): Add new code iterator together with some attributes.
9906         ("*andc_split_<mode>"): Disable splitter for arch13.
9907         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
9908         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
9909         ("*<ANDOR:bitops_name>c<GPR:mode>")
9910         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
9911         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
9912         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
9913         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
9915 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
9917         * common/config/s390/s390-common.c (processor_flags_table): New
9918         entry for arch13.
9919         * config.gcc: Support arch13 with the --with-arch= configure flag.
9920         * config/s390/driver-native.c (s390_host_detect_local_cpu):
9921         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
9922         * config/s390/s390.c (s390_get_sched_attrmask)
9923         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
9924         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
9925         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
9926         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
9927         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
9928         definitions.
9929         * config/s390/s390.opt: Support arch13 as processor type in
9930         command line options.
9932 2019-04-02  Martin Liska  <mliska@suse.cz>
9934         PR translation/89912
9935         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
9936         Fix param description of graphite-max-arrays-per-scop.
9938 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9940         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
9941         (ASAN_CC1_SPEC): Use it in 64-bit mode.
9942         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
9944 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
9946         PR rtl-optimization/85412
9947         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
9948         sel_sched_region_1, not after.
9950 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
9952         PR rtl-optimization/86928
9953         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
9954         compute_live if necessary.
9955         (sel_redirect_edge_and_branch): Likewise.
9957 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
9959         PR rtl-optimization/89865
9960         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
9961         register if it is a part of small class.
9963 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
9965         PR rtl-optimization/87273
9966         * sel-sched-ir.c (merge_fences): Remove assert.
9968 2019-04-01  Richard Biener  <rguenther@suse.de>
9970         PR tree-optimization/46590
9971         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
9972         (dom_walker::m_reachability): Add in place of...
9973         (dom_walker::m_skip_unreachable_blocks): ...this.
9974         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
9975         Move complex initialization ...
9976         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
9977         lazily and initialize edge flags on each invocation.
9978         (dom_walker::bb_reachable): Use m_reachability.
9980 2019-04-01  Martin Liska  <mliska@suse.cz>
9982         PR driver/89861
9983         * opt-suggestions.c (option_proposer::build_option_suggestions):
9984         Add variant without any argument in order to provide better
9985         hints.
9987 2019-04-01  Richard Biener  <rguenther@suse.de>
9989         PR c/71598
9990         * gimple.c: Include langhooks.h.
9991         (gimple_get_alias_set): Treat enumeral types as the underlying
9992         integer type.
9994 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
9995             Eric Botcazou  <ebotcazou@adacore.com>
9997         PR rtl-optimization/89862
9998         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
9999         that operates on the full registers for WORD_REGISTER_OPERATIONS
10000         architectures.
10002 2019-03-29  Jim Wilson  <jimw@sifive.com>
10004         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
10005         Clear MASK_RVC and then set if C subset supported.
10007 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
10009         PR c/89872
10010         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
10011         non-addressable complit into its initializer if it is volatile.
10013 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
10015         * opts-common.c (integral_argument): Set errno properly in one case.
10017 2019-03-29  Martin Liska  <mliska@suse.cz>
10019         * doc/invoke.texi: Remove -Wchkp from documentation.
10021 2019-03-29  Martin Liska  <mliska@suse.cz>
10023         * dbgcnt.c (print_limit_reach): New function.
10024         (dbg_cnt): Use it.
10026 2019-03-29  Martin Liska  <mliska@suse.cz>
10028         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
10029         (dbg_cnt_process_opt): Parse first tokens aas
10030         dbg_cnt_process_single_pair is also using strtok.
10032 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
10034         PR rtl-optimization/87485
10035         * function.c (expand_function_end): Move stack_protect_epilogue
10036         before loading of return value into hard register(s).
10038 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
10040         PR middle-end/89621
10041         * tree-inline.h (struct copy_body_data): Add
10042         dont_remap_vla_if_no_change flag.
10043         * tree-inline.c (remap_type_3, remap_type_2): New functions.
10044         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
10045         and remap_type_2 returns false.
10046         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
10047         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
10048         only from where it is copied to nested contexts.
10050 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10052         PR target/89865
10053         * config/i386/i386.md (RMW operation with LEA peephole):
10054         Use LEAMODE mode attribute instead of SWI mode iterator for
10055         LEA pattern.
10057 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10059         PR target/89848
10060         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10061         Also process XEXP (src, 0) of a shift insn.
10063 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
10065         PR middle-end/89725
10066         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
10067         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
10069 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
10071         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
10072         test.
10073         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
10074         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
10075         immediately after first one with df_analyze in between, but rather
10076         process all bbs, queueing ones that need second pass in a worklist,
10077         df_analyze, process queued debug insn changes and if second pass is
10078         needed, process bbs from worklist, df_analyze, process queued debug
10079         insns again.
10081         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
10082         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
10083         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
10085 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
10087         PR c/79022
10088         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
10089         definition.
10091 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
10093         PR target/85667
10094         * config/i386/i386.c (ix86_function_value_1): Call the newly added
10095         function for 32-bit MS_ABI.
10096         (function_value_ms_32): New function.
10098 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
10100         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
10101         (movdi): Call gen_movdi_symbol_save_scc.
10102         (gen_movdi_symbol_save_scc): New insn and split.
10104 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
10106         PR rtl-optimization/89313
10107         * function.c (matching_constraint_num): New static function.
10108         (match_asm_constraints_1): Use it.  Fixup white space and comment.
10109         Don't replace inputs with non-matching constraints which conflict
10110         with early clobber outputs.
10112 2019-03-27  Jeff Law  <law@redhat.com>
10115         PR rtl-optimization/87761
10116         PR rtl-optimization/89826
10117         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
10118         slightly later.
10119         (pass_cprop_hardreg::execute): Call df_analyze after adding the
10120         note problem to get REG_DEAD/REG_UNUSED notes updated.
10122 2019-03-27  Richard Biener  <rguenther@suse.de>
10124         PR tree-optimization/89463
10125         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
10126         queue edges to remove.
10127         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
10128         dead stmts.  Delay edge removal until PHIs are removed to
10129         make debug-stmt creation not confused by seemingly degenerate
10130         PHIs.
10132 2019-03-27  Alan Modra  <amodra@gmail.com>
10134         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
10135         throughout file.
10136         * config/rs6000/darwin.h: Likewise.
10137         * config/rs6000/rs6000.c: Likewise.
10139 2019-03-27  Alan Modra  <amodra@gmail.com>
10141         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
10142         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
10144 2019-03-26  Andrew Waterman  <andrew@sifive.com>
10145             Jim Wilson  <jimw@sifive.com>
10147         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
10148         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
10149         (generic_idivdi, generic_fmul_single, generic_fmul_double)
10150         (generic_fdiv, generic_fsqrt): Add check for generic tune.
10151         (generic_alu): Add auipc to type list.
10152         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
10153         (riscv_microarchitecture): Declare.
10154         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
10155         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
10156         field.
10157         (riscv_microarchitecture): New.
10158         (sifive_7_tune_info): New.
10159         (riscv_cpu_info_table): Add microarchitecture value for rocket and
10160         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
10161         entries.
10162         (riscv_store_data_bypass_p): New.
10163         (riscv_option_override): Set riscv_microarchitecture from
10164         cpu->microarchitecture.
10165         * config/riscv/riscv.md: Include sifive-7.md.
10166         (type): Add auipc.
10167         (tune): New.
10168         (auipc<mode>): Change type to auipc.
10169         (restore_stack_nonlocal): New.
10170         * config/riscv/sifive-7.md: New.
10171         * doc/invoke.texi (RISC-V Options): Update mtune docs.
10173 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10175         PR target/89827
10176         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10177         Also process XEXP (src, 0) of a shift insn.
10179 2019-03-26  Richard Biener  <rguenther@suse.de>
10181         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
10182         (copy_debug_stmt): Likewise.
10183         (expand_call_inline): Likewise.
10184         (copy_bb): Avoid redundant lookup & set of gimple_block.
10185         * gimple-low.c (lower_gimple_return): Likewise.
10186         (lower_builtin_setjmp): Likewise.
10188 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
10190         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
10191         is constant 0, turn into static const data member initialized to false.
10192         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
10193         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
10195 2019-03-26  Jason Merrill  <jason@redhat.com>
10196             Jakub Jelinek  <jakub@redhat.com>
10198         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
10199         method.
10200         (mem_alloc_description::release_object_overhead): Fix comment typos.
10201         * hash-table.h (hash_table::~hash_table): Call
10202         release_instance_overhead only if m_entries is non-NULL, otherwise
10203         call unregister_descriptor.
10205 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
10207         PR tree-optimization/81740
10208         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10209         In case of outer loop vectorization, check for backward dependence
10210         at the inner loop if outer loop dependence is reversed.
10212 2019-03-26  Alan Modra  <amodra@gmail.com>
10214         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
10215         rs6000_vector_mem init.  Correct wI and wJ comment.
10217 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
10219         PR rtl-optimization/88347
10220         PR rtl-optimization/88423
10221         * sched-deps.c (sched_analyze_insn): Take into account that for
10222         tablejumps the barrier appears after a label and a jump_table_data.
10224 2019-03-25  Martin Sebor  <msebor@redhat.com>
10226         PR c/89812
10227         * c-common.c (check_user_alignment): Rename local.  Correct maximum
10228         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
10229         convert it to UHWI when it fits.
10231 2019-03-25  Johan Karlsson <johan.karlsson@enea.com>
10233         PR debug/86964
10234         * dwarf2out.c (premark_used_variables): New function.
10235         (prune_unused_types_walk): Do not mark not premarked external
10236         variables.
10237         (prune_unused_types): Call premark_used_variables.
10239 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
10241         PR rtl-optimization/89676
10242         * lra-constraints.c (curr_insn_transform): Do match reload for
10243         early clobbers when the match was successful only for different
10244         registers.
10246 2019-03-25  Martin Sebor  <msebor@redhat.com>
10248         * doc/extend.texi (Common Type Attributes): Document vector_size.
10249         (Common Variable Attributes): Mention size constraint.  Correct
10250         quoting and typos.
10251         (Vector Extensions): Use @dfn when defining bas type.  Clarify
10252         base type and size constraints.
10254 2019-03-25  Richard Biener  <rguenther@suse.de>
10256         PR tree-optimization/89789
10257         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
10258         changes from non-undefined back to undefined.
10260 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
10262         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
10263         heap string and a gc string, but since this variable is unknown to
10264         ggc the gc string might get reused and corrupted. Fixed by always
10265         using a heap string.
10267 2019-03-25  Richard Biener  <rguenther@suse.de>
10269         PR tree-optimization/89779
10270         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
10271         to remove IV defs, delay actual removal.
10272         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
10273         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
10274         very end, properly also reset loop control IV information.
10276 2019-03-25  Richard Biener  <rguenther@suse.de>
10278         PR tree-optimization/89802
10279         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
10280         move EH data to folded stmt.
10282 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
10284         * config/s390/s390-builtin-types.def: Remove few unused types and
10285         fix sort order for others.
10287 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
10289         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
10290         expected and found types with -mdebug during builtin matching.
10292 2019-03-25  Richard Biener  <rguenther@suse.de>
10294         PR middle-end/89790
10295         * fold-const.c (operand_equal_p): Revert last change with
10296         updated comment.
10298 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
10300         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
10301         notes for the result of the __tls_get_addr calls.
10302         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
10304 2019-03-24  Jeff Law  <law@redhat.com>
10306         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
10308         PR rtl-optimization/87761
10309         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
10310         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
10311         as needed.
10312         (pass_cprop_hardreg::execute): Add df note problem and defer insn
10313         rescans.  Reprocess blocks as needed, calling df_analyze before
10314         reprocessing.  Always call df_analyze before fixing up debug bind
10315         insns.
10317 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
10319         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
10320         big endian.
10322 2019-03-22  Andrew Pinski  <apinski@marvell.com>
10324         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
10325         attrribute for uxtw.
10327 2019-03-26  Jeff Law  <law@redhat.com>
10329         PR rtl-optimization/87761
10330         * config/mips/mips-protos.h (mips_split_move): Add new argument.
10331         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
10332         (mips_split_move): Accept new INSN argument.  Try to forward SRC
10333         into the next instruction.
10334         (mips_split_move_insn): Pass INSN through to mips_split_move.
10336 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
10338         PR rtl-optimization/89676
10339         * lra-constraints.c (curr_insn_transform): Do match reload for
10340         early clobbers even if the match was successful.
10342 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
10344         PR c++/87481
10345         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
10347 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
10349         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10351 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
10353         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
10354         <avx512>_fmsub_<mode>_mask3<round_name>,
10355         <avx512>_fnmadd_<mode>_mask3<round_name>,
10356         <avx512>_fnmsub_<mode>_mask3<round_name>,
10357         avx512f_vmfmadd_<mode>_mask3<round_name>,
10358         avx512f_vmfmsub_<mode>_mask3<round_name>,
10359         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
10360         instead of register_operand and %v instead of v for match_operand 1.
10361         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
10362         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
10363         <round_nimm_predicate> instead of register_operand and %v instead of v
10364         for match_operand 1.
10366         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
10367         <avx512>_fmadd_<mode>_mask3<round_name>,
10368         <avx512>_fmsub_<mode>_mask<round_name>,
10369         <avx512>_fmsub_<mode>_mask3<round_name>,
10370         <avx512>_fnmadd_<mode>_mask<round_name>,
10371         <avx512>_fnmadd_<mode>_mask3<round_name>,
10372         <avx512>_fnmsub_<mode>_mask<round_name>,
10373         <avx512>_fnmsub_<mode>_mask3<round_name>,
10374         <avx512>_fmaddsub_<mode>_mask<round_name>,
10375         <avx512>_fmaddsub_<mode>_mask3<round_name>,
10376         <avx512>_fmsubadd_<mode>_mask<round_name>,
10377         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
10378         <round_nimm_predicate> instead of nonimmediate_operand.
10379         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
10380         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
10381         Use register_operand instead of <round_nimm_predicate> for the
10382         operand that needs to match output.
10383         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
10384         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
10385         Likewise.  Formatting fixes.
10387         PR target/89784
10388         * config/i386/i386.c (enum ix86_builtins): Remove
10389         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
10390         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
10391         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
10392         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
10393         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
10394         __builtin_ia32_vfmsubss3_mask3): New builtins.
10395         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
10396         avx512f_vmfmadd_<mode>_mask3<round_name>,
10397         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
10398         *avx512f_vmfmsub_<mode>_mask<round_name>,
10399         avx512f_vmfmsub_<mode>_mask3<round_name>,
10400         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
10401         *avx512f_vmfnmadd_<mode>_mask<round_name>,
10402         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
10403         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
10404         *avx512f_vmfnmsub_<mode>_mask<round_name>,
10405         avx512f_vmfnmsub_<mode>_mask3<round_name>,
10406         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
10407         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
10408         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
10409         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
10410         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
10411         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
10412         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
10413         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
10414         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
10415         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
10416         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
10417         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
10418         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
10419         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
10420         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
10421         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
10422         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
10423         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
10424         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
10425         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
10426         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
10427         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
10429 2019-03-21  Martin Sebor  <msebor@redhat.com>
10431         PR tree-optimization/89350
10432         * builtins.c (compute_objsize): Also ignore offsets whose upper
10433         bound is negative.
10434         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
10435         (builtin_memref::builtin_memref): Initialize new member.
10436         Allow EXPR to be null.
10437         (builtin_memref::extend_offset_range): Replace local with a member.
10438         Avoid assuming pointer offsets are unsigned.
10439         (builtin_memref::set_base_and_offset): Determine base object
10440         before computing offset range.
10441         (builtin_access::builtin_access): Handle memset.
10442         (builtin_access::generic_overlap): Replace local with a member.
10443         (builtin_access::strcat_overlap): Same.
10444         (builtin_access::overlap): Same.
10445         (maybe_diag_overlap): Same.
10446         (maybe_diag_access_bounds): Same.
10447         (wrestrict_dom_walker::check_call): Handle memset.
10448         (check_bounds_or_overlap): Same.
10450 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
10451             Jakub Jelinek  <jakub@redhat.com>
10453         PR lto/89692
10454         * tree.c (fld_type_variant, fld_incomplete_type_of,
10455         fld_process_array_type): Call fld->pset.add and don't call
10456         add_tree_to_fld_list if it returns true.
10457         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
10458         non-marked types from TYPE_NEXT_VARIANT list.
10459         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
10461 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
10463         * hash-table.h (hash_table): Add Lazy template parameter defaulted
10464         to false, if true, don't alloc_entries during construction, but defer
10465         it to the first method that needs m_entries allocated.
10466         (hash_table::hash_table, hash_table::~hash_table,
10467         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
10468         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
10469         hash_table::clear_slot, hash_table::traverse_noresize,
10470         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
10471         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
10472         false.
10473         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
10474         NO_INSERT instead of find_with_hash.
10475         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
10476         hash_set::m_table): Add Lazy to template params of hash_table.
10477         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
10478         * attribs.c (test_attribute_exclusions): Likewise.
10479         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
10480         hash_set.  Add tests for hash_set with Lazy = true.
10482 2019-03-21  Richard Biener  <rguenther@suse.de>
10484         PR tree-optimization/89779
10485         * tree.c (tree_nop_conversion): Consolidate and fix defensive
10486         checks with respect to released SSA names now having error_mark_node
10487         type.
10488         * fold-const.c (operand_equal_p): Likewise.
10490 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
10492         PR target/89775
10493         * config/s390/s390.c (global_not_special_regno_p): Move to make it
10494         available to ...
10495         (s390_optimize_register_info): Use global_not_special_regno_p to
10496         check for global regs.
10498 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
10500         PR target/89752
10501         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
10502         update this_alternative nor this_alternative_set.
10504 2019-03-19  Jim Wilson  <jimw@sifive.com>
10506         PR target/89411
10507         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
10508         align, size, offset.  Use them to handle a BLKmode reference.  Update
10509         comment.
10510         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
10512 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10514         PR rtl-optimization/89768
10515         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
10516         instead of GEN_INT.
10517         (unroll_loop_runtime_iterations): Likewise.
10519 2019-03-19  Martin Sebor  <msebor@redhat.com>
10521         PR tree-optimization/89644
10522         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
10523         rather than endptr as an indicator of nul-termination.
10525         PR tree-optimization/89644
10526         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
10527         arrays in determining sequence sizes in strncpy and stpncpy.
10529 2019-03-19  Martin Liska  <mliska@suse.cz>
10531         PR middle-end/89737
10532         * predict.c (combine_predictions_for_bb): Empty likely_edges and
10533         unlikely_edges if there's an edge that belongs to both these sets.
10535 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
10537         PR target/89746
10538         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
10539         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
10540         go via a stack temporary.
10542 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10544         PR target/89378
10545         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
10546         instead of gen_rtx_SUBREG.
10547         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
10549 2019-03-19  Richard Biener  <rguenther@suse.de>
10551         PR debug/88389
10552         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
10554 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
10556         PR lto/87809
10557         PR lto/89335
10558         * tree.c (free_lang_data_in_decl): Do not free context of C++
10559         destrutors.
10561 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10563         PR target/89506
10564         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
10565         subs for the first alternative except when operands[3] is 1.
10567         PR target/89752
10568         * gimplify.c (gimplify_asm_expr): For output argument with
10569         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
10570         diagnose error.
10572 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
10574         PR rtl-optimization/89753
10575         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
10576         explicit unrolling factor even more robust.
10578 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
10580         PR target/89726
10581         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
10582         compensation use x2 += 1 instead of x2 -= -1 and when honoring
10583         signed zeros, do another copysign after the compensation.
10585 2019-03-18  Martin Sebor  <msebor@redhat.com>
10587         PR tree-optimization/89720
10588         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
10589         more conservatively, the same as anti-range.
10591 2019-03-18  Richard Biener  <rguenther@suse.de>
10593         PR middle-end/88945
10594         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
10595         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
10596         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
10597         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
10599 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
10601         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
10602         Extend queue to 1024 entries.
10603         Add "consumed" field.
10604         (gomp_print_output): Remove print_index parameter.
10605         Add final parameter.
10606         Change limit to unsigned.
10607         Use consumed field to implement circular buffer.
10608         Detect interrupted print in final pass.
10609         Flush output at the end.
10610         (run): Update gomp_print_output usage.
10611         (main): Initialize kernargs->output_data.consumed.
10613 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
10615         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
10616         calculation of the minimum number of scalar iterations for
10617         fully-predicated loops.
10619 2019-03-18  Martin Jambor  <mjambor@suse.cz>
10621         PR tree-optimization/89546
10622         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
10623         any propagation to its children took place.
10625 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
10627         PR target/89627
10628         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
10629         parameter, and make use of it.
10630         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
10632 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10634         * config/arc/arc.opt (mcode-density-frame): Get the inital value
10635         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
10636         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10637         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10638         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
10639         match what the ops is doing.
10640         (push_multi_fp_blink): Likewise.
10641         * config/arc/arc.c (arc_override_options): Enable enter/leave when
10642         compiling for size and elf target.
10643         (arc_save_callee_enter): Adjust note to match what enter/leave
10644         operation does.
10646 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10648         * config/arc/arc.md (tst_movb): Fix constraint.
10650 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10652         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10654 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
10656         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
10657         * config/arc/arc.c (arc_conditional_register_usage): Remove all
10658         reg_alloc_order references.
10659         (size_alloc_order): Define.
10660         (arc_adjust_reg_alloc_order): New function.
10661         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
10662         order.
10663         (ADJUST_REG_ALLOC_ORDER): Define.
10664         (HONOR_REG_ALLOC_ORDER): Likewise.
10666 2019-03-18  Richard Biener  <rguenther@suse.de>
10668         PR target/87561
10669         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
10670         loads and stores a bit more.
10672 2019-03-18  Richard Biener  <rguenther@suse.de>
10674         PR target/87561
10675         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
10676         load pessimization to stores as well.
10678 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
10680         PR middle-end/86979
10681         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
10682         successor, use NULL as its av set.
10684 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
10686         PR rtl-optimization/89721
10687         * lra-constraints (invariant_p): Return false if side_effects_p holds.
10689 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10691         PR target/87532
10692         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10693         When handling vec_extract, use modular arithmetic to allow
10694         constant selectors greater than vector length.
10695         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
10696         V1TImode vectors to have constant selector values greater than 0.
10697         Use modular arithmetic to compute vector index.
10698         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
10699         index for in-memory vectors.  Correct code generation for
10700         in-register vectors.
10701         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
10702         compute index.
10704 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
10706         PR c++/88534
10707         PR c++/88537
10708         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
10709         VAR_DECL args.
10711 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
10713         PR c++/89709
10714         * tree.c (inchash::add_expr): Strip any location wrappers.
10715         * fold-const.c (operand_equal_p): Move stripping of location wrapper
10716         after hash verification.
10718         PR debug/89704
10719         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
10720         SIGN_EXTEND and ZERO_EXTEND.
10722 2019-03-14  Jason Merrill  <jason@redhat.com>
10723             Jakub Jelinek  <jakub@redhat.com>
10725         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
10726         than if is_empty (*slot).
10727         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
10728         existing elt and for elt removal.
10729         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
10730         of already removed elt.
10732 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
10734         PR target/89650
10735         * config/i386/i386.c (remove_partial_avx_dependency): Handle
10736         REG_EH_REGION note.
10738 2019-03-14  Martin Liska  <mliska@suse.cz>
10740         PR other/89712
10741         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
10743 2019-03-14  Richard Biener  <rguenther@suse.de>
10745         PR target/89711
10746         * config/i386/i386.c (make_resolver_func): Properly set
10747         DECL_CONTEXT on the RESULT_DECL.
10748         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
10750 2019-03-14  Richard Biener  <rguenther@suse.de>
10752         * gimple-pretty-print.c: Include cfgloop.h.
10753         (dump_gimple_phi): Adjust.
10754         (dump_gimple_bb_header): Dump loop header for GIMPLE.
10755         (pp_cfg_jump): Adjust.
10756         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
10757         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
10758         (lower_phi_internal_fn): Remove.
10759         (verify_gimple_call): Remove IFN_PHI special-casing.
10760         (dump_function_to_file): Dump IL state.
10761         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
10762         done to deal with PHI nodes being present in non-SSA state.
10764 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
10766         PR ipa/89684
10767         * multiple_target.c (create_dispatcher_calls): Change
10768         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
10769         In the node->iterate_referring loop, push *ref rather than ref, call
10770         ref->remove_reference () and always pass 0 to iterate_referring.
10772         PR rtl-optimization/89679
10773         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
10774         would contain a paradoxical SUBREG.
10776 2019-03-14  Richard Biener  <rguenther@suse.de>
10778         PR tree-optimization/89710
10779         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
10780         safe_dyn_cast.
10782 2019-03-14  Martin Liska  <mliska@suse.cz>
10784         * coverage.c (coverage_begin_function): Stream also
10785         end_column.
10786         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
10787         documentation about function declaration location.
10788         * gcov-dump.c (tag_function): Print whole range
10789         of function declaration.
10790         * gcov.c (struct function_info): Add end_column field.
10791         (function_info::function_info): Initialize it.
10792         (output_json_intermediate_file): Output {start,end}_column
10793         fields.
10794         (read_graph_file): Read end_column.
10796 2019-03-14  Richard Biener  <rguenther@suse.de>
10798         PR middle-end/89698
10799         * fold-const.c (operand_equal_p): For INDIRECT_REF check
10800         that the access types are similar.
10802 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
10804         PR tree-optimization/89703
10805         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
10806         aren't compatible also with builtin_decl_explicit.  Check pure
10807         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
10808         and BUILT_IN_STPNCPY{,_CHK}.
10810 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
10812         PR target/89523
10813         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
10814         addr32 prefix to VSIB address for X32.
10815         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
10816         "%M2" to opcode.
10817         (*avx512pf_gatherpf<mode>df_mask): Likewise.
10818         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
10819         (*avx512pf_scatterpf<mode>df_mask): Likewise.
10820         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
10821         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
10822         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
10823         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
10824         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
10825         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
10826         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
10827         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
10828         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
10829         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
10830         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
10831         (*avx512f_scatterdi<mode>): Likewise.
10833 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
10835         PR target/85860
10836         * lra-constraints.c (inherit_in_ebb): Update
10837         potential_reload_hard_regs along with live_hard_regs.
10839 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
10841         PR debug/89498
10842         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
10843         DWARF_OFFSET_SIZE.
10844         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
10846 2019-03-13  Martin Sebor  <msebor@redhat.com>
10848         PR tree-optimization/89662
10849         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
10850         has a size.
10852 2019-03-13  Richard Biener  <rguenther@suse.de>
10854         PR middle-end/89677
10855         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
10856         throw FP expressions at tree-affine.
10858 2019-03-14  Richard Biener  <rguenther@suse.de>
10860         * tree-pretty-print.c (dump_generic_node): For -gimple properly
10861         dump negative integer constants using _Literal (type) -num.
10863 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
10865         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
10866         nonlocal_value member.
10868         PR middle-end/88588
10869         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
10870         (ipa_simd_modify_function_body): Handle PHIs.
10872 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
10874         * config/s390/s390.c (s390_option_override_internal): Use more
10875         aggressive inlining parameters.
10877 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
10879         * config/s390/3906.md: New file.
10880         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
10881         (LONGRUNNING_THRESHOLD): Remove.
10882         (MAX_SCHED_MIX_SCORE): Decrease.
10883         (MAX_SCHED_MIX_DISTANCE): Decrease.
10884         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
10885         (struct s390_sched_state): New struct to hold scheduling state.
10886         (S390_SCHED_STATE_NORMAL): Remove.
10887         (S390_SCHED_STATE_CRACKED): Remove.
10888         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
10889         (s390_get_sched_attrmask): Use new attribute.
10890         (s390_get_unit_mask): Use new units.
10891         (s390_is_fpd): New function.
10892         (s390_is_fxd): New function.
10893         (s390_is_longrunning): New function.
10894         (s390_sched_score): Use new functions.
10895         (s390_sched_reorder): Likewise.
10896         (s390_sched_variable_issue): Rework and use new functions.
10897         (s390_sched_init): Use new functions.
10898         * config/s390/s390.h (s390_tune_attr):  Add z14.
10899         * config/s390/s390.md: Add z14.
10901 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
10903         * config/s390/2964.md: Update pipeline description.
10904         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
10905         (LONGRUNNING_THRESHOLD): Remove.
10906         (LATENCY_FACTOR): Remove.
10907         (s390_get_unit_mask): Add unit.
10908         (s390_sched_score): Use fxd/fpd.
10909         (s390_sched_variable_issue): Use fxd/fpd.
10911 2019-03-12  Martin Liska  <mliska@suse.cz>
10913         * config/i386/i386.c: Reword an error message.
10915 2019-03-12  Martin Jambor  <mjambor@suse.cz>
10917         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
10918         terminate with newline.
10920 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
10922         PR target/52726
10923         * config/s390/s390.md (tabort): Use %wd instead of
10924         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
10925         letters and periods.
10926         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
10927         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
10928         's with %< and %>.
10930         PR middle-end/89663
10931         * builtins.c (expand_builtin_int_roundingfn,
10932         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
10933         gcc_unreachable if validate_arglist fails.
10935 2019-03-12  Richard Biener  <rguenther@suse.de>
10937         PR tree-optimization/89664
10938         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
10939         free the occurance tree after the early out.
10941 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
10943         PR middle-end/89655
10944         PR bootstrap/89656
10945         * vr-values.c (vr_values::update_value_range): If
10946         old_vr->varying_p (), don't update it, make new_vr also VARYING
10947         and return false.
10949 2019-03-11  Martin Liska  <mliska@suse.cz>
10951         * config/aarch64/aarch64.c (aarch64_override_options_internal):
10952         Fix double string quoting.
10954 2019-03-11  Martin Liska  <mliska@suse.cz>
10956         * collect-utils.c (collect_wait): Wrap apostrophes
10957         in gcc internal format with %'.
10958         * collect2.c (main): Likewise.
10959         (scan_prog_file): Likewise.
10960         (scan_libraries): Likewise.
10961         * config/i386/i386.c (ix86_expand_call): Likewise.
10962         (ix86_handle_interrupt_attribute): Likewise.
10963         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
10964         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
10965         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
10966         * lto-wrapper.c (find_crtoffloadtable): Likewise.
10967         * symtab.c (symtab_node::verify_base): Likewise.
10968         * tree-cfg.c (verify_gimple_label): Likewise.
10969         * tree.c (verify_type_variant): Likewise.
10971 2019-03-11  Martin Liska  <mliska@suse.cz>
10973         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
10974         in a string format message and fix GNU coding style.
10975         (expand_builtin_set_thread_pointer): Likewise.
10976         * common/config/aarch64/aarch64-common.c
10977         (aarch64_rewrite_selected_cpu): Likewise.
10978         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
10979         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
10980         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
10981         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
10982         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
10983         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
10984         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
10985         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
10986         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
10987         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
10988         Likewise.
10989         * common/config/riscv/riscv-common.c
10990         (riscv_subset_list::parsing_subset_version): Likewise.
10991         (riscv_subset_list::parse_std_ext): Likewise.
10992         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
10993         (riscv_subset_list::parse): Likewise.
10994         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
10995         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
10996         (aarch64_override_options_internal): Likewise.
10997         (aarch64_validate_mcpu): Likewise.
10998         (aarch64_validate_march): Likewise.
10999         (aarch64_validate_mtune): Likewise.
11000         (aarch64_override_options): Likewise.
11001         * config/alpha/alpha.c (alpha_option_override): Likewise.
11002         * config/arc/arc.c (arc_init): Likewise.
11003         (parse_mrgf_banked_regs_option): Likewise.
11004         (arc_override_options): Likewise.
11005         (arc_expand_builtin_aligned): Likewise.
11006         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
11007         (arm_expand_builtin): Likewise.
11008         * config/arm/arm.c (arm_option_check_internal): Likewise.
11009         (arm_configure_build_target): Likewise.
11010         (arm_option_override): Likewise.
11011         (arm_options_perform_arch_sanity_checks): Likewise.
11012         (arm_handle_cmse_nonsecure_entry): Likewise.
11013         (arm_handle_cmse_nonsecure_call): Likewise.
11014         (arm_tls_referenced_p): Likewise.
11015         (thumb1_expand_prologue): Likewise.
11016         * config/avr/avr.c (avr_option_override): Likewise.
11017         * config/bfin/bfin.c (bfin_option_override): Likewise.
11018         * config/c6x/c6x.c (c6x_option_override): Likewise.
11019         * config/cr16/cr16.c (cr16_override_options): Likewise.
11020         * config/cris/cris.c (cris_option_override): Likewise.
11021         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
11022         * config/darwin-c.c (macosx_version_as_macro): Likewise.
11023         * config/darwin.c (darwin_override_options): Likewise.
11024         * config/frv/frv.c (frv_expand_builtin): Likewise.
11025         * config/h8300/h8300.c (h8300_option_override): Likewise.
11026         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
11027         (ix86_option_override_internal): Likewise.
11028         (warn_once_call_ms2sysv_xlogues): Likewise.
11029         (ix86_expand_prologue): Likewise.
11030         (split_stack_prologue_scratch_regno): Likewise.
11031         (ix86_warn_parameter_passing_abi): Likewise.
11032         * config/ia64/ia64.c (fix_range): Likewise.
11033         * config/m68k/m68k.c (m68k_option_override): Likewise.
11034         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
11035         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
11036         (mips_set_compression_mode): Likewise.
11037         * config/mmix/mmix.c (mmix_option_override): Likewise.
11038         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
11039         * config/msp430/msp430.c (msp430_option_override): Likewise.
11040         * config/nds32/nds32.c (nds32_option_override): Likewise.
11041         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
11042         (nios2_option_override): Likewise.
11043         (nios2_expand_custom_builtin): Likewise.
11044         * config/nvptx/mkoffload.c (main): Likewise.
11045         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
11046         * config/pa/pa.c (fix_range): Likewise.
11047         (pa_option_override): Likewise.
11048         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
11049         (riscv_option_override): Likewise.
11050         * config/rl78/rl78.c (rl78_option_override): Likewise.
11051         * config/rs6000/aix61.h: Likewise.
11052         * config/rs6000/aix71.h: Likewise.
11053         * config/rs6000/aix72.h: Likewise.
11054         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
11055         * config/rs6000/freebsd64.h: Likewise.
11056         * config/rs6000/linux64.h: Likewise.
11057         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
11058         (rs6000_expand_zeroop_builtin): Likewise.
11059         (rs6000_expand_mtfsb_builtin): Likewise.
11060         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
11061         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
11062         (rs6000_invalid_builtin): Likewise.
11063         (rs6000_expand_split_stack_prologue): Likewise.
11064         * config/rs6000/rtems.h: Likewise.
11065         * config/rx/rx.c (valid_psw_flag): Likewise.
11066         (rx_expand_builtin): Likewise.
11067         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
11068         * config/s390/s390.c (s390_expand_builtin): Likewise.
11069         (s390_function_profiler): Likewise.
11070         (s390_option_override_internal): Likewise.
11071         (s390_option_override): Likewise.
11072         * config/sh/sh.c (sh_option_override): Likewise.
11073         (sh_builtin_saveregs): Likewise.
11074         (sh_fix_range): Likewise.
11075         * config/sh/vxworks.h: Likewise.
11076         * config/sparc/sparc.c (sparc_option_override): Likewise.
11077         * config/spu/spu.c (spu_option_override): Likewise.
11078         (fix_range): Likewise.
11079         * config/visium/visium.c (visium_option_override): Likewise.
11080         (visium_handle_interrupt_attr): Likewise.
11081         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
11082         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
11083         (dbg_cnt_process_opt): Likewise.
11084         * dwarf2out.c (output_dwarf_version): Likewise.
11085         * except.c (expand_eh_return): Likewise.
11086         * gcc.c (defined): Likewise.
11087         (driver_handle_option): Likewise.
11088         (process_command): Likewise.
11089         (compare_files): Likewise.
11090         (driver::prepare_infiles): Likewise.
11091         (driver::do_spec_on_infiles): Likewise.
11092         (driver::maybe_run_linker): Likewise.
11093         * omp-offload.c (oacc_parse_default_dims): Likewise.
11094         * opts-global.c (handle_common_deferred_options): Likewise.
11095         * opts.c (parse_sanitizer_options): Likewise.
11096         (common_handle_option): Likewise.
11097         (enable_warning_as_error): Likewise.
11098         * passes.c (enable_disable_pass): Likewise.
11099         * plugin.c (parse_plugin_arg_opt): Likewise.
11100         (default_plugin_dir_name): Likewise.
11101         * targhooks.c (default_expand_builtin_saveregs): Likewise.
11102         (default_pch_valid_p): Likewise.
11103         * toplev.c (init_asm_output): Likewise.
11104         (process_options): Likewise.
11105         (toplev::run_self_tests): Likewise.
11106         * tree-cfg.c (verify_gimple_call): Likewise.
11107         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
11108         (tree_inlinable_function_p): Likewise.
11109         * var-tracking.c (vt_find_locations): Likewise.
11111 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
11113         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
11114         only on the else branch.
11116 2019-03-11  Martin Liska  <mliska@suse.cz>
11118         * gcov.c (output_intermediate_json_line): Print function
11119         name of each line.
11120         (output_json_intermediate_file): Add new argument.
11121         * doc/gcov.texi: Document the change.
11123 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
11125         PR rtl-optimization/89588
11126         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11127         explicit unrolling factor more robust.
11129 2019-03-11  Richard Biener  <rguenther@suse.de>
11131         PR tree-optimization/89649
11132         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
11133         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
11134         on the prolog and epilog loops.
11135         (vect_loop_versioning): Return copy of loop.
11136         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
11137         on the non-vectorized version of the loop.
11139 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11141         PR target/68924
11142         * config/i386/sse.md (*vec_extractv2di_0_sse):
11143         Add (=r,x) alternative and corresponding splitter.
11145 2019-03-10  Martin Jambor  <mjambor@suse.cz>
11147         PR tree-optimization/85762
11148         PR tree-optimization/87008
11149         PR tree-optimization/85459
11150         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
11151         it points to if there is a type changing MEM_REF.  Adjust all callers.
11152         (build_accesses_from_assign): Disable total scalarization if
11153         contains_vce_or_bfcref_p returns true through the new parameter, for
11154         both rhs and lhs.
11156 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
11158         PR c/88568
11159         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
11160         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
11162         PR target/79645
11163         * common.opt (fdiagnostics-show-labels,
11164         fdiagnostics-show-line-numbers, fdiagnostics-format=,
11165         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
11166         gas-locview-support, ginline-points, ginternal-reset-location-views):
11167         Terminate description text with a dot.
11168         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
11169         * config/mcore/mcore.opt (m210, m340): Likewise.
11170         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
11171         mnops=): Start description text with a capital letter.
11172         * config/arc/arc.opt (msize-level=): Likewise.
11173         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
11174         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
11175         mnewlib): Likewise.
11176         * config/ft32/ft32.opt (msim): Likewise.
11177         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
11178         (mnodiv, mnopm): Terminate description text with a dot.
11179         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
11180         a colon.
11181         * config/i386/i386.opt (prefer_vector_width, instrument_return):
11182         Likewise.
11183         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
11184         text.
11186         PR rtl-optimization/89634
11187         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
11188         are modified in BB_END (e->src) instruction.
11190 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
11192         PR target/79926
11193         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
11194         messages more amenable to translation, and improve wording.
11196 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
11198         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
11199         ud- and du-chains between phases.
11201 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
11203         PR debug/89631
11204         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
11205         instead of POLY_INT_CST.
11207 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11209         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
11210         requirement.
11212 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11214         PR target/68924
11215         PR target/78782
11216         PR target/87558
11217         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
11218         (_mm_storeu_si64): Ditto.
11220 2019-03-08  Martin Liska  <mliska@suse.cz>
11222         PR target/86952
11223         * config/i386/i386.c (ix86_option_override_internal): Disable
11224         jump tables when retpolines are used.
11226 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
11228         PR go/63560
11229         * ipa-split.c (execute_split_functions): Do not split
11230         'noinline' or 'section' function.
11232 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
11234         PR target/79846
11235         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
11236         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
11237         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
11239         PR ipa/80000
11240         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11241         from diagnostics.  Formatting fixes.
11243         PR target/85665
11244         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
11245         warn_odr diagnostics.
11247         PR other/80058
11248         * lra-constraints.c (process_alt_operands): Avoid one space before
11249         " at the end of line and another after " on another line in a string
11250         literal.
11251         * attribs.c (handle_dll_attribute): Likewise.
11252         * config/avr/avr-devices.c (avr_texinfo): Likewise.
11254         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
11255         warning_at or inform messages in G_() if there is no ?:.
11257         PR tree-optimization/89550
11258         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
11259         returned true.  Formatting fixes.
11260         (expand_builtin_strnlen): Formatting fixes.
11261         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
11262         if warning_at returned true.
11263         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
11265 2019-03-08  Richard Biener  <rguenther@suse.de>
11267         PR middle-end/89578
11268         * cfgloop.h (struct loop): Add owned_clique field.
11269         * cfgloopmanip.c (copy_loop_info): Copy it.
11270         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
11271         cliques.
11272         * tree-inline.c (copy_loops): Remap owned_clique.
11273         * lto-streamer-in.c (input_cfg): Stream owned_clique.
11274         * lto-streamer-out.c (output_cfg): Likewise.
11276 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
11278         PR target/80190
11279         * config/darwin.c: Include intl.h.
11280         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
11281         composing the message out of two separate parts.
11283 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
11285         PR target/80003
11286         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
11287         doesn't start with a capital letter and doesn't end with a dot.
11288         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
11289         with a capital letter.
11290         (ix86_mangle_function_version_assembler_name): Likewise.
11291         (ix86_generate_version_dispatcher_body): Likewise.
11292         (fold_builtin_cpu): Likewise.
11293         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
11294         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
11295         translators, wrap full type name in %qs.
11297         PR translation/79999
11298         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
11299         depend clause with source (or sink) modifier.
11300         * omp-expand.c (expand_omp_ordered_sink): Likewise.
11302         PR target/89602
11303         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
11304         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
11305         (avx512f_load<mode>_mask): New define_expand.
11306         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
11307         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
11308         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
11309         __builtin_ia32_movess_mask): New builtins.
11310         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
11311         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
11312         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
11313         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
11315 2019-03-07  Martin Jambor  <mjambor@suse.cz>
11317         PR lto/87525
11318         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
11319         for extern inline functions.
11321 2019-03-07  Martin Jambor  <mjambor@suse.cz>
11323         PR ipa/88235
11324         * cgraph.h (cgraph_node): New inline method former_thunk_p.
11325         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
11326         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
11327         have multiple callees.  At the end check if declarations match as
11328         opposed to cgraph_nodes.
11330 2019-03-07  Martin Liska  <mliska@suse.cz>
11332         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
11333         which is equivalent to searching for this in clones chain.
11334         * symtab.c (symtab_node::verify_base): Similarly compare ASM
11335         names with a neighbour and special case first node in a chain.
11337 2019-01-25  Jason Merrill  <jason@redhat.com>
11339         PR c++/80916 - spurious "static but not defined" warning.
11340         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
11341         for an internal symbol with DECL_EXTERNAL.
11343 2019-04-07  Richard Biener  <rguenther@suse.de>
11345         PR middle-end/89618
11346         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
11347         * tree-inline.c (copy_loops): Simplify.
11349 2019-03-07  Martin Liska  <mliska@suse.cz>
11351         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
11353 2019-03-07  Richard Biener  <rguenther@suse.de>
11355         PR tree-optimization/89595
11356         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
11357         stmt iterator as reference, take boolean output parameter to
11358         indicate whether the stmt was removed and thus the iterator
11359         already advanced.
11360         (dom_opt_dom_walker::before_dom_children): Re-iterate over
11361         stmts created by folding.
11363 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
11365         PR c++/89585
11366         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
11367         at toplevel.
11369 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
11371         PR rtl-optimization/88845
11372         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
11373         LRA.
11374         * lra.c (remove_scratches_1): New function.
11375         (remove_scratches): Use it.
11376         (lra_emit_move): Likewise.
11378 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
11380         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
11381         unaligned_access variable.
11382         * config/arc/arc.c (arc_override_options): Set unaligned access
11383         default on for HS CPUs.
11384         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
11386 2019-03-06  Martin Liska  <mliska@suse.cz>
11388         PR gcov-profile/89577
11389         * doc/gcov.texi: Prefer to use --coverage.
11390         * doc/sourcebuild.texi: Likewise.
11392 2019-03-02  Jason Merrill  <jason@redhat.com>
11394         PR c++/86485 - -Wmaybe-unused with empty class ?:
11395         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
11397 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11399         PR target/89587
11400         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
11401         if_multiarch.
11403         PR middle-end/89590
11404         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
11405         exactly one argument.
11407 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11408             Richard Sandiford  <richard.sandiford@arm.com>
11410         PR tree-optimization/89570
11411         * match.pd (vec_cond into cond_op simplification): Don't use
11412         get_conditional_internal_fn, use as_internal_fn (cond_op).
11414 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
11416         PR target/89222
11417         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
11418         to decide when to split off a non-zero offset from a symbol.
11419         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
11420         in function symbols.
11422 2019-03-05  Richard Biener  <rguenther@suse.de>
11424         PR tree-optimization/89594
11425         * tree-if-conv.c (pass_if_conversion::execute): Handle
11426         case where .LOOP_VECTORIZED_FUNCTION was removed.
11428 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
11430         PR bootstrap/89560
11431         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
11432         instead alloca it only when needed with the needed size.
11434         PR tree-optimization/89570
11435         * match.pd (vec_cond into cond_op simplification): Guard with
11436         vectorized_internal_fn_supported_p test and #if GIMPLE.
11438         PR tree-optimization/89566
11439         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
11440         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
11441         Punt if get_user_idx_format succeeds, but idx_format argument is
11442         not provided or doesn't have pointer type, or if idx_args is above
11443         number of provided arguments.
11445 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
11447         PR tree-optimization/89437
11448         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
11450 2019-03-04  Richard Biener  <rguenther@suse.de>
11452         PR middle-end/89572
11453         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
11454         safe_dyn_cast.
11456 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
11458         PR tree-optimization/89487
11459         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
11460         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
11461         (distribute_loop): Don't do runtime alias check if there is non-
11462         addressable data reference.
11463         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
11464         is a register variable.
11466 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
11468         PR target/89506
11469         * config/arm/arm.md (cmpsi2_addneg): Use
11470         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
11471         If operands[2] is 0 or INT_MIN, force use of subs.
11472         (*compare_scc splitter): Use gen_int_mode.
11473         (*negscc): Likewise.
11474         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
11476 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
11477             Monk Chiang  <sh.chiang04@gmail.com>
11479         * common/config/riscv/riscv-common.c: Include sstream.
11480         (riscv_subset_list::to_string): New.
11481         (riscv_arch_str): Likewise.
11482         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
11483         * config.in: Regen.
11484         * config/riscv/riscv-protos.h (riscv_arch_str): New.
11485         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
11486         (riscv_emit_attribute): New.
11487         (riscv_file_start): Emit attribute if needed.
11488         (riscv_option_override): Init riscv_emit_attribute_p.
11489         * config/riscv/riscv.opt (mriscv-attribute): New option.
11490         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
11491         * configure: Regen.
11492         * doc/install.texi: Document --with-riscv-attribute.
11493         * doc/invoke.texi: Document -mriscv-attribute.
11495         * common/config/riscv/riscv-common.c:
11496         Include config/riscv/riscv-protos.h.
11497         (INCLUDE_STRING): Defined.
11498         (RISCV_DONT_CARE_VERSION): Defined.
11499         (riscv_subset_t): Declare.
11500         (riscv_subset_t::riscv_subset_t): New.
11501         (riscv_subset_list): Declare.
11502         (riscv_subset_list::riscv_subset_list): New.
11503         (riscv_subset_list::~riscv_subset_list): Likewise.
11504         (riscv_subset_list::parsing_subset_version): Likewise.
11505         (riscv_subset_list::parse_std_ext): Likewise.
11506         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11507         (riscv_subset_list::add): Likewise.
11508         (riscv_subset_list::lookup): Likewise.
11509         (riscv_subset_list::xlen): Likewise.
11510         (riscv_subset_list::parse): Likewise.
11511         (riscv_supported_std_ext): Likewise.
11512         (current_subset_list): Likewise.
11513         (riscv_parse_arch_string): Using riscv_subset_list::parse to
11514         parse.
11516 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
11518         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11519         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
11520         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
11522 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
11524         PR rtl-optimization/85899
11525         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
11526         fallthru edges leading to the exit block.
11528 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
11530         PR target/89517
11531         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
11532         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
11534 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
11536         PR tree-optimization/89535
11537         * tree-vect-stmts.c (vectorizable_call): Record the vector types
11538         for each operand.  Calculate the fallback choice for mask operands
11539         and pass it to vect_get_vec_def_for_operand.
11541 2019-03-01  Richard Biener  <rguenther@suse.de>
11543         PR middle-end/89541
11544         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
11545         get virtual operands.
11546         (get_expr_operands): Handle CONST_DECL like other decls.
11548 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
11550         PR middle-end/89503
11551         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
11552         on DECL_P and EXPR_P.
11554 2019-03-01  Richard Biener  <rguenther@suse.de>
11556         PR middle-end/89497
11557         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
11558         argument, defaulted to zero.
11559         * passes.c (execute_function_todo): Pass down SSA update flags
11560         to cleanup_tree_cfg.
11561         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
11562         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
11563         form if requested.
11564         (cleanup_tree_cfg): Get and pass down SSA update flags.
11566 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
11568         PR bootstrap/89539
11569         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
11570         early_lto_debug argument.
11572 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11574         PR tree-optimization/89536
11575         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
11576         only whether bit #0 of the value is 0 instead of the entire value.
11578 2019-02-28  Marek Polacek  <polacek@redhat.com>
11580         PR c++/87068 - missing diagnostic with fallthrough statement.
11581         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
11582         at the end of a seq, save its location to walk_stmt_info.
11583         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
11584         a switch.
11586 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
11588         PR lto/88585
11589         * tree.c (find_atomic_core_type): Move ahead in file.
11590         (check_base_type): Correctly compare alignments of atomic types.
11592 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
11594         PR target/89455
11595         * config/i386/i386.c (get_builtin_code_for_version): Identify
11596         Westmere from PCLMUL, instead of AES.
11598 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
11600         PR target/89434
11601         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
11602         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
11603         -UINTVAL (...).
11605 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
11607         PR target/88530
11608         * config/aarch64/aarch64-option-extensions.def: Document it.
11609         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
11610         if empty hwcaps.
11612 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
11614         PR c/89520
11615         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
11616         builtins if they don't have a single scalar floating point argument.
11617         Formatting fixes.
11619 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11621         PR rtl-optimization/89490
11622         * varasm.c (get_block_for_section): Bail out for mergeable sections.
11623         (default_use_anchors_for_symbol_p, output_object_block): Assert the
11624         block section is not mergeable.
11626 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
11628         PR target/70341
11629         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
11630         old define_insn to ...
11631         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
11632         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
11633         Rename old define_insn to ...
11634         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
11635         (thumb2_casesi_internal_pic): New define_expand.  Rename old
11636         define_insn to ...
11637         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
11638         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
11639         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
11641 2019-02-27  Richard Biener  <rguenther@suse.de>
11643         PR debug/88878
11644         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
11646 2019-02-27  Richard Biener  <rguenther@suse.de>
11648         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
11649         building.
11651 2019-02-27  Richard Biener  <rguenther@suse.de>
11653         PR debug/88878
11654         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
11655         parameter, prefix section name with .gnu.debuglto_ if true.
11656         (dwarf2out_finish): Pass false to output_comdat_type_unit.
11657         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
11659 2019-02-27  Richard Biener  <rguenther@suse.de>
11661         PR debug/89514
11662         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
11663         rather than on use_debug_types, doing what output_die does.
11664         (value_format): Likewise.
11666 2019-02-27  Martin Jambor  <mjambor@suse.cz>
11667             Martin Sebor  <msebor@redhat.com>
11669         * doc/invoke.texi (Warning Options): Reword description of
11670         -Wno-absolute-value.
11672 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
11674         PR tree-optimization/89280
11675         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
11676         builtin_setjmp_setup_bb): New functions.
11677         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
11678         When visiting __builtin_setjmp_setup block, queue in special
11679         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
11680         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
11681         from visited after the loop if they don't have any visited successor
11682         blocks.
11684 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
11686         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
11687         New function.
11688         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
11690 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
11692         PR c++/89507
11693         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
11694         with types other than sizetype/ssizetype.
11696 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
11698         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
11699         (enum sparc_processor_type): ...this.
11700         (enum sparc_code_model_type): New enumeration type.
11701         (enum sparc_memory_model_type): Tweak comments.
11702         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
11703         (mtune): Likewise.
11704         (mcmodel): Use sparc_code_model enumeration and variable.
11705         (sparc_code_model): New enumeration.
11706         (mdebug): Add Undocumented marker.
11707         * config/sparc/sparc.h (enum cmodel): Delete.
11708         (sparc_cmodel): Likewise.
11709         (TARGET_CM_MEDLOW): Adjust to above renaming.
11710         (TARGET_CM_MEDMID): Likewise.
11711         (TARGET_CM_MEDANY): Likewise.
11712         (TARGET_CM_EMBMEDANY): Likewise.
11713         * config/sparc/sparc.c (sparc_cmodel): Delete.
11714         (sparc_option_override): Remove string/value mapping support for the
11715         code model.  Move code and memory model support to after the handling
11716         of target flags.  Do private machine setup last.
11717         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
11718         (sparc_legitimize_reload_address): Likewise.
11719         (sparc_output_mi_thunk): Likewise.
11720         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
11722 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
11724         PR tree-optimization/89500
11725         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
11726         (handle_builtin_strlen): Remove noncst_bound variable.  Always
11727         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
11728         cst if the first cst bytes starting at x are known to be non-zero,
11729         even if the string is not zero terminated.  Don't try to modify
11730         *si for strnlen.  Update strlen_to_stridx only for strlen or if
11731         we can prove strnlen returns the same value as strlen would.
11733 2019-02-26  Martin Liska  <mliska@suse.cz>
11735         * alloc-pool.h (struct pool_usage): Remove extra
11736         print_dash_line.
11737         * bitmap.h (struct bitmap_usage): Likewise.
11738         * ggc-common.c (struct ggc_usage): Likewise.
11739         * mem-stats.h (struct mem_usage): Likewise.
11740         (mem_alloc_description::dump): Print dash lines
11741         here and repeat header at the end of a table report.
11742         It's then more readable.
11743         * tree-phinodes.c (phinodes_print_statistics): Make
11744         horizontal alignment.
11745         * tree-ssanames.c (ssanames_print_statistics): Likewise.
11746         * vec.c (struct vec_usage): Remove extra print_dash_line.
11747         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
11749 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11751         * doc/extend.texi (__builtin_object_size):
11752         Use @pxref instead of @xref inside parenthesis.
11753         (__builtin_has_attribute): Add missing comma after @xref.
11754         (__builtin_object_size): Ditto.
11755         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
11756         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
11757         in the list.
11759 2019-02-26  Jeff Law  <law@redhat.com>
11761         PR rtl-optimization/87761
11762         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
11763         detect obviously dead insns and delete them.
11765 2019-02-26  Richard Biener  <rguenther@suse.de>
11767         PR tree-optimization/89505
11768         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
11769         to handle restrict pointed-to vars with multiple subvars
11770         correctly.
11772 2019-02-26  Richard Biener  <rguenther@suse.de>
11774         PR tree-optimization/89489
11775         * tree-parloops.c (create_loop_fn): Copy over last_clique.
11777 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
11779         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
11780         and move around comment.
11781         <BIT_AND_EXPR>: Likewise.
11782         <BIT_NOT_EXPR>: Add specific handling for boolean types.
11784 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
11786         PR target/89474
11787         * config/i386/i386.c (remove_partial_avx_dependency): Call
11788         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
11789         after changing possibly many instructions to use that pseudo.  Fix up
11790         insertion of v4sf_const0 setter at the start of bb.
11792 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
11794         PR c/80409
11795         * doc/extend.texi (Variadic Pointer Args): New section.
11797 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
11798             Martin Sebor  <msebor@gmail.com>
11800         * common.opt (Wattribute-alias): Likewise.
11801         * doc/invoke.texi (Option Summary): List general form of
11802         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
11803         (-Wmissing-attributes): Invert entry, rewrite and correct default.
11804         Add cross-references.
11805         (-Wattribute-alias): Rewrite and correct default.  Mention
11806         considered attributes (same as for -Wmissing-attributes).
11808 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
11810         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
11811         (_mm_cvtpd_ps): Likewise.
11812         (_mm_cvttpd_epi32): Likewise.
11814         PR target/89338
11815         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
11816         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
11818         PR target/89339
11819         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
11821 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
11823         PR target/88530
11824         * common/config/aarch64/aarch64-common.c
11825         (struct aarch64_option_extension): Add is_synthetic.
11826         (all_extensions): Use it.
11827         (TARGET_OPTION_INIT_STRUCT): Define hook.
11828         (struct gcc_targetm_common): Moved to end.
11829         (all_extensions_by_on): New.
11830         (opt_ext_cmp, typedef opt_ext): New.
11831         (aarch64_option_init_struct): New.
11832         (aarch64_contains_opt): New.
11833         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
11834         * config/aarch64/aarch64-option-extensions.def
11835         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
11836         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
11837         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
11838         Set is_synthetic to false.
11839         (crypto): Set is_synthetic to true.
11840         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
11841         SYNTHETIC.
11843 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
11845         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
11846         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
11847         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
11848         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
11849         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
11850         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
11851         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
11852         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
11853         Rename ...
11854         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
11855         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
11856         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
11857         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
11858         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
11859         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
11860         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
11861         vfmlsl_laneq_high_f16): ... To this.
11862         * config/arm/neon.md: Update comments.
11864 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
11866         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
11867         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
11868         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
11869         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
11870         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
11871         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
11872         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
11873         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
11874         Rename ...
11875         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
11876         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
11877         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
11878         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
11879         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
11880         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
11881         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
11882         vfmlslq_laneq_high_f16): ... To this.
11884 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
11886         PR rtl-optimization/86096
11887         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
11888         comparing mw_order values.
11890 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
11892         PR target/89434
11893         * config/arm/arm.md (*subsi3_carryin_const): Use
11894         arm_neg_immediate_operand predicate instead of
11895         arm_not_immediate_operand, "L" constraint instead of "K" and
11896         print it using %n2 instead of %B2.
11897         (*subsi3_carryin_const0): New define_insn.
11898         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
11899         instead of arm_not_operand and "I" constraint instead of "K" and
11900         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
11901         another match_operand and in the condition check that it is negation
11902         of operands[2].
11903         (*subsi3_carryin_compare_const0): New define_ins.
11904         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
11905         *subsi3_carryin_const.
11906         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
11907         split into *subsi3_carryin_compare_const0 if the highpart is zero.
11909         PR target/89438
11910         * config/arm.vfp.md (*negdf2_vfp): Use
11911         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
11912         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
11914 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
11916         PR rtl-optimization/89445
11917         * simplify-rtx.c (simplify_ternary_operation): Don't use
11918         simplify_merge_mask on operands that may trap.
11919         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
11920         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
11921         second operand is CONST_VECTOR, check if any element could be zero.
11922         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
11923         their operands can trap.
11925 2019-02-23  Martin Sebor  <msebor@redhat.com>
11927         * gimple-ssa-sprintf.c (target_strtol): Rename...
11928         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
11929         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
11930         check for range error.
11932 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
11934         PR driver/69471
11935         * opts-common.c (prune_options): Also prune joined switches
11936         with Negative and RejectNegative.
11937         * config/i386/i386.opt (march=): Add Negative(march=).
11938         (mtune=): Add Negative(mtune=).
11939         * doc/options.texi: Document Negative used together with Joined
11940         and RejectNegative.
11942 2019-02-22  Martin Sebor  <msebor@redhat.com>
11944         * doc/extend.texi (Other Builtins): Add
11945         __builtin_is_constant_evaluated.
11947 2019-02-22  Richard Biener  <rguenther@suse.de>
11949         PR tree-optimization/87609
11950         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
11952 2019-02-22  Jeff Law  <law@redhat.com>
11954         PR rtl-optimization/87761
11955         * config/mips/mips.md: Add new combiner pattern to recognize
11956         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
11958 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
11960         PR target/89324
11961         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
11962         destination register in peepholes generating patterns for ADDS/SUBS.
11963         (add<mode>3_compare0,
11964         *addsi3_compare0_uxtw, add<mode>3_compareC,
11965         add<mode>3_compareV_imm, add<mode>3_compareV,
11966         *adds_<optab><ALLX:mode>_<GPI:mode>,
11967         *subs_<optab><ALLX:mode>_<GPI:mode>,
11968         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
11969         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
11970         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
11971         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
11972         sub<mode>3_compare1): Allow stack pointer for source register.
11973         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
11975 2019-02-22  Martin Sebor  <msebor@redhat.com>
11977         PR tree-optimization/88993
11978         PR tree-optimization/88853
11979         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
11980         New helper.
11981         (sprintf_dom_walker::call_info::is_string_func): New helper.
11982         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
11983         for formatted string functions.
11984         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
11986 2019-02-22  Martin Sebor  <msebor@redhat.com>
11988         PR c/89425
11989         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
11990         unreachable subexpressions.
11992 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
11993             Hongtao Liu  <hongtao.liu@intel.com>
11994             Sunil K Pandey  <sunil.k.pandey@intel.com>
11996         PR target/87007
11997         * config/i386/i386-passes.def: Add
11998         pass_remove_partial_avx_dependency.
11999         * config/i386/i386-protos.h
12000         (make_pass_remove_partial_avx_dependency): New.
12001         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
12002         New function.
12003         (pass_data_remove_partial_avx_dependency): New.
12004         (pass_remove_partial_avx_dependency): Likewise.
12005         (make_pass_remove_partial_avx_dependency): Likewise.
12006         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
12007         (*extendsfdf2): Add avx_partial_xmm_update.
12008         (truncdfsf2): Likewise.
12009         (*float<SWI48:mode><MODEF:mode>2): Likewise.
12010         (SF/DF conversion splitters): Disabled for TARGET_AVX.
12012 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
12014         PR middle-end/85598
12015         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
12016         analysis for pass.
12018 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
12020         PR target/89444
12021         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
12022         (PTA_SKYLAKE): Add PTA_AES.
12023         (PTA_GOLDMONT): Likewise.
12025 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
12027         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
12028         instruction if enabled.
12029         (aarch64_override_options): Remove reference to return address key.
12031 2019-02-22  Richard Biener  <rguenther@suse.de>
12033         PR tree-optimization/89440
12034         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12035         not necessary assert.
12037 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
12039         PR fortran/72741
12040         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
12041         (oacc_replace_fn_attrib_attr): ... this new function.
12042         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
12043         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
12045 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12047         * config/arm/arm-cpus.in (ares): Rename to...
12048         (neoverse-n1): ... This.  Add ares as alias.
12049         * config/arm/arm-tables.opt: Regenerate.
12050         * config/arm/arm-tune.md: Likewise.
12051         * doc/invoke.txt (ARM Options): Document neoverse-n1.
12053 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12055         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
12056         * config/aarch64/aarch64-tune.md: Regenerate.
12057         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
12059 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12061         * config/aarch64/aarch64.c (ares_tunings): Rename to...
12062         (neoversen1_tunings): ... This.
12063         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
12064         (neoverse-n1): New CPU.
12065         * config/aarch64/aarch64-tune.md: Regenerate.
12066         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
12068 2019-02-22  Richard Biener  <rguenther@suse.de>
12070         PR middle-end/87609
12071         * cfghooks.h (dependence_hash): New typedef.
12072         (struct copy_bb_data): New type.
12073         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
12074         (duplicate_block): Likewise.
12075         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
12076         (copy_bbs): Create and pass down copy_bb_data.
12077         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
12078         (rtl_duplicate_bb): Likewise.
12079         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
12080         remap dependence info.
12082 2019-02-22  Richard Biener  <rguenther@suse.de>
12084         PR tree-optimization/87609
12085         * tree-core.h (tree_base): Document special clique values.
12086         * tree-inline.c (remap_dependence_clique): Do not use the
12087         special clique value of one.
12088         (maybe_set_dependence_info): Use clique one.
12089         (clear_dependence_clique): New callback.
12090         (compute_dependence_clique): Clear clique one from all refs
12091         before assigning it (again).
12093 2019-02-21  Martin Sebor  <msebor@redhat.com>
12095         * doc/extend.texi (__clear_cache): Correct signature.
12097 2019-02-21  Ian Lance Taylor  <iant@golang.org>
12099         PR go/89170
12100         * varasm.c (decode_addr_const): Call lookup_constant_def rather
12101         than output_constant_def.
12102         (add_constant_to_table): New static function.
12103         (output_constant_def): Call add_constant_to_table.
12104         (tree_output_constant_def): Likewise.
12106 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
12108         PR c++/89285
12109         * builtins.c (fold_builtin_arith_overflow): If first two args are
12110         INTEGER_CSTs, set intres and ovfres to constants rather than calls
12111         to ifn.
12113 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
12115         PR target/87412
12116         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
12117         error for -mindirect-branch/-mfunction-return with incompatible
12118         -fcf-protection.
12120 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
12122         PR bootstrap/88714
12123         * constraints.md (q): Remove.
12124         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
12125         instead of q.
12127 2019-02-21  Martin Jambor  <mjambor@suse.cz>
12129         PR hsa/89302
12130         * omp-general.c (omp_extract_for_data): Removed a duplicate call
12131         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
12132         (omp_adjust_for_condition): ...here.  Added necessary parameters.
12133         * omp-general.h (omp_adjust_for_condition): Updated declaration.
12134         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
12135         proper values to new parameters of omp_adjust_for_condition.
12137 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12139         PR middle-end/89412
12140         * expr.c (expand_assignment): If result is a MEM, use change_address
12141         instead of simplify_gen_subreg.
12143 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12144             David Malcolm  <dmalcolm@redhat.com>
12146         PR middle-end/89091
12147         * fold-const.c (decode_field_reference): Return NULL_TREE if
12148         lang_hooks.types.type_for_size returns NULL.  Check it before
12149         overwriting *exp_.  Use return NULL_TREE instead of return 0.
12151 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
12153         PR middle-end/88074
12154         PR middle-end/89415
12155         * toplev.c (do_compile): Double the emin/emax exponents to workaround
12156         buggy mpc_norm.
12158 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12160         PR target/89397
12161         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
12162         TARGET_SSE in addition to TARGET_SSE_MATH.
12164         (ix86_excess_precision): Ditto.
12165         (ix86_float_exceptions_rounding_supported_p): Ditto.
12166         (use_rsqrt_p): Ditto.
12167         * config/i386/sse.md (rsqrt<mode>2): Ditto.
12169 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
12171         PR c/89410
12172         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
12173         linenum_arith_t when determining if two adjacent line spans are
12174         close enough to merge.
12175         (diagnostic_show_locus): Use linenum_arith_t when iterating over
12176         lines within each line_span.
12178 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
12180         PR target/86487
12181         * lra-constraints.c(uses_hard_regs_p): Fix handling of
12182         paradoxical SUBREGS.
12184 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
12186         PR target/88100
12187         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
12188         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
12189         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
12190         range checking it.
12192 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
12194         * config/gcn/gcn.c (print_operand): Fix typo.
12196 2019-02-19  Richard Biener  <rguenther@suse.de>
12198         PR middle-end/88074
12199         * toplev.c (do_compile): Initialize mpfr's exponent range
12200         based on available float modes.
12202 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12204         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
12205         as long as the epilogue isn't completed.
12207 2019-02-18  Martin Sebor  <msebor@redhat.com>
12209         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
12210         __has_cpp_attribute, and __has_include.
12212 2019-02-18  Martin Sebor  <msebor@redhat.com>
12214         * doc/invoke.texi (-Wreturn-type): Correct and expand.
12216 2019-02-18  Martin Sebor  <msebor@redhat.com>
12218         PR middle-end/89294
12219         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
12220         expression.
12221         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
12223 2019-02-18  Richard Biener  <rguenther@suse.de>
12225         PR tree-optimization/89296
12226         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
12227         of no-warning flag to cases that might emit the bogus warning.
12229 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
12231         PR bootstrap/88714
12232         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
12233         "q" constraint.
12234         * config/arm/vfp.md (*movdi_vfp): Likewise.
12235         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
12236         "q" constraint for operands[0].
12238         PR target/89369
12239         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
12240         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
12241         pattern in a temporary buffer.
12242         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
12243         than 64-operands[2].
12245         PR target/89361
12246         * config/s390/s390.c (s390_indirect_branch_attrvalue,
12247         s390_indirect_branch_settings): Define unconditionally.
12248         (s390_set_current_function): Likewise, but guard the whole body except
12249         the s390_indirect_branch_settings call with
12250         #if S390_USE_TARGET_ATTRIBUTE.
12251         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
12253         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
12254         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
12255         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
12256         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
12257         HOST_WIDE_INT_1U instead of 1ULL.
12258         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
12259         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
12260         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
12261         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
12262         instead of 1UL.
12263         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
12264         instead of 1ul.
12266 2019-02-18  Martin Jambor  <mjambor@suse.cz>
12268         PR tree-optimization/89209
12269         * tree-sra.c (create_access_replacement): New optional parameter
12270         reg_tree.  Use it as a type if non-NULL and access type is not of
12271         a register type.
12272         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
12273         to create_access_replacement.
12274         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
12275         Check lacc is non-NULL before attempting to re-create it on the RHS.
12277 2019-02-18  Martin Liska  <mliska@suse.cz>
12279         PR ipa/89306
12280         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
12281         by default.
12282         (symbol_table::free_edge): Recycle m_summary_id.
12283         * cgraph.h (get_summary_id): New.
12284         (symbol_table::release_symbol): Set m_summary_id to -1
12285         by default.
12286         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
12287         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
12288         function_summary to fast_function_summary.
12289         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
12290         * ipa-pure-const.c (class funct_state_summary_t):
12291         Switch from function_summary to fast_function_summary.
12292         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
12293         (class ipa_ref_opt_summary_t): Switch from function_summary
12294         to fast_function_summary.
12295         * symbol-summary.h (class function_summary_base): New class
12296         that is created from base of former function_summary.
12297         (function_summary_base::unregister_hooks): New.
12298         (class function_summary): Inherit from function_summary_base.
12299         (class call_summary_base): New class
12300         that is created from base of former call_summary.
12301         (class call_summary): Inherit from call_summary_base.
12302         (struct is_same): New.
12303         (class fast_function_summary): New summary class.
12304         (class fast_call_summary): New summary class.
12305         * vec.h (vec_safe_grow_cleared): New function.
12307 2019-02-18  Martin Liska  <mliska@suse.cz>
12309         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
12310         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
12311         * doc/tm.texi: Document new target hook.
12312         * doc/tm.texi.in: Likewise.
12313         * target.def: Add new target macro.
12314         * gcc.c (find_fortran_preinclude_file): Do not search multilib
12315         suffixes.
12317 2019-02-17  Alan Modra  <amodra@gmail.com>
12319         PR target/89271
12320         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
12321         output reg on add insn.
12322         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
12324 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12326         PR target/89372
12327         * config/i386/sse.md (ssedoublemode): Remove V4HI.
12328         (PMULHRSW): Likewise.
12329         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
12330         TARGET_AVX2.
12331         (ssse3_pmulhrswv4hi3): New expander.
12333 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12335         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
12336         MMX.  Add isa attribute.
12338 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
12340         PR rtl-optimization/66152
12341         * builtins.h (c_readstr): Declare.
12342         * builtins.c (c_readstr): Remove forward declaration.  Add
12343         null_terminated_p argument, if false, read all bytes from the
12344         string instead of stopping after '\0'.
12345         * expr.c (string_cst_read_str): New function.
12346         (store_expr): Use string_cst_read_str instead of
12347         builtin_strncpy_read_str.  Try to store by pieces the whole
12348         exp_len first, and only if that fails, split it up into
12349         store by pieces followed by clear_storage.  Formatting fix.
12351         * config/i386/i386.md (*movqi_internal): Remove static from
12352         buf variable.  Use output_asm_insn (buf, operands); return "";
12353         instead of return buf;.
12354         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
12355         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
12356         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
12358 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12360         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
12361         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
12362         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
12363         (CC1_SPEC): Likewise.
12364         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
12366 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12368         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
12369         the base address on 64-bit strict-alignment platforms.
12371 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12373         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
12375 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12377         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
12379 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
12381         PR rtl-optimization/88308
12382         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
12383         on copied instruction.
12385 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12387         * final.c (insn_current_reference_address): Replace test on JUMP_P
12388         with test on jump_to_label_p.
12389         * config/visium/visium-passes.def: New file.
12390         * config/visium/t-visium (PASSES_EXTRA): Define.
12391         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
12392         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
12393         (TRAMPOLINE_ALIGNMENT): Define.
12394         * config/visium/visium.c (visium_option_override): Do not register
12395         the machine-specific reorg pass here.
12396         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
12397         for the GR6.
12398         (output_branch): Adjust threshold for long branch instruction.
12399         * config/visium/visium.md (cpu): Move around.
12400         (length): Adjust for the GR6.
12402 2019-02-15  Richard Biener  <rguenther@suse.de>
12403             Jakub Jelinek  <jakub@redhat.com>
12405         PR tree-optimization/89278
12406         * tree-loop-distribution.c: Include tree-eh.h.
12407         (generate_memset_builtin, generate_memcpy_builtin): Call
12408         rewrite_to_non_trapping_overflow on builtin->size before passing it
12409         to force_gimple_operand_gsi.
12411 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
12413         PR other/89342
12414         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
12415         optimize_debug.
12416         * opth-gen.awk: Likewise.
12418 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12420         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
12421         Enable MMX, SSE and SSE2 by default.
12422         * config/i386/i386.c (ix86_option_override_internal): Do not
12423         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
12425 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
12427         PR rtl-optimization/89354
12428         * combine.c (make_extraction): Punt if extraction_mode is narrower
12429         than len bits.
12431 2019-02-14  Maya Rashish  <coypu@sdf.org>
12433         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
12434         * config/netbsd-d.c: New file.
12435         * config/t-netbsd: Add netbsd-d.o
12437 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
12439         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
12440         affects_type_identity to true for aarch64_vector_pcs.
12441         (aarch64_comp_type_attributes): New function.
12442         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
12444 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
12446         PR target/88850
12447         * config/arm/iterators.md (ANY64): Add V4HF.
12449 2019-02-14  Martin Liska  <mliska@suse.cz>
12451         PR rtl-optimization/89242
12452         * dce.c (delete_unmarked_insns): Call free_dominance_info we
12453         process a transformation.
12455 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
12457         PR tree-optimization/89314
12458         * fold-const.c (fold_binary_loc): Cast strlen argument to
12459         const char * before dereferencing it.  Formatting fixes.
12461         PR middle-end/89284
12462         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
12464 2019-02-13  Ian Lance Taylor  <iant@golang.org>
12466         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
12467         and set current index for other optimizations.
12469 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12471         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
12472         nonimmediate_operand as operand 2 predicate.
12473         (vec_set<VF2_512_256:mode>_0): Ditto.
12474         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
12475         (*vec_concatv2si): Remove alternative 2.
12476         (*vec_concatv4si_0): Use vm constraint for alternative 0.
12477         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
12478         (vec_concatv2di): Split alternatives 4,5,6 to ...
12479         (*vec_concatv2di_0) ... new pattern.
12481 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
12483         PR target/89190
12484         * config/arm/arm.c (ldm_stm_operation_p) Set
12485         addr_reg_in_reglist correctly for first register.
12486         (load_multiple_sequence): Remove dead base check.
12487         (gen_ldm_seq): Correctly set write_back for Thumb-1.
12489 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
12491         PR target/88847
12492         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
12493         Expose as @aarch64_pred_mov.
12494         * config/aarch64/aarch64.c (aarch64_classify_address):
12495         Use expand_insn which legitimizes operands.
12497 2019-02-13  Martin Liska  <mliska@suse.cz>
12499         * builtins.h (expand_builtin_with_bounds): Remove declaration.
12500         * calls.c (struct arg_data): Remove special_slot, pointer_arg
12501         and pointer_offset fields.
12502         (initialize_argument_information): Remove usage of dead
12503         fields.
12504         * cgraph.h (struct cgraph_thunk_info): Remove
12505         add_pointer_bounds_args.
12506         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
12507         fields.
12508         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
12509         fields.
12510         * config/i386/i386.c (ix86_function_arg_advance): Remove
12511         unrelated comment.
12512         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
12513         (def_builtin):  Remove usage of dead
12514         fields.
12515         (ix86_add_new_builtins): Likewise.
12516         * ipa-fnsummary.c (compute_fn_summary): Likewise.
12517         * ipa-icf.c (sem_function::equals_wpa): Likewise.
12518         (sem_function::init): Likewise.
12519         (sem_variable::merge): Likewise.
12520         * ipa-visibility.c (function_and_variable_visibility): Likewise.
12521         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
12522         * lto-cgraph.c (lto_output_node): Likewise.
12523         (lto_output_varpool_node): Likewise.
12524         (input_node): Likewise.
12525         (input_varpool_node): Likewise.
12526         * lto-streamer-out.c (lto_output): Likewise.
12527         * tree-inline.c (expand_call_inline): Remove usage of
12528         assign_stmts.
12529         * tree-inline.h (struct copy_body_data): Likewise.
12530         * varpool.c (varpool_node::dump): Likewise.
12532 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
12534         PR middle-end/89303
12535         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
12536         into pt->vars_contains_escaped_heap instead of setting
12537         pt->vars_contains_escaped_heap to it.
12539         PR middle-end/89281
12540         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
12541         INTVAL (size), compare it to GET_MODE_MASK instead of
12542         1 << GET_MODE_BITSIZE.
12544         PR target/89290
12545         * config/i386/predicates.md (x86_64_immediate_operand): Allow
12546         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
12547         -mcmodel=large.
12549 2019-02-13  Martin Liska  <mliska@suse.cz>
12551         PR lto/88858
12552         * cfgrtl.c (remove_barriers_from_footer): New function.
12553         (try_redirect_by_replacing_jump): Use it.
12554         (cfg_layout_redirect_edge_and_branch): Likewise.
12556 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
12558         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
12559         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
12560         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
12561         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
12562         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
12563         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
12564         New BU_CRYPTO_2.
12565         * config/rs6000/rs6000.c (builtin_function_type)
12566         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
12567         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
12568         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
12569         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
12570         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
12572 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
12574         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
12575         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
12577 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
12579         PR target/89229
12580         * config/i386/i386.md (*movoi_internal_avx): Revert revision
12581         268678 and revision 268657.
12582         (*movti_internal): Likewise.
12584 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
12586         PR target/89233
12587         * config/s390/s390.c (s390_decompose_address): Update comment.
12588         (s390_check_qrst_address): Reject invalid address forms after
12589         LRA.
12591 2019-02-12  Martin Liska  <mliska@suse.cz>
12593         PR lto/88876
12594         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
12595         we need default values of funct_state for a function that
12596         is not optimized.
12598 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
12600         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
12601         the object to pick the size of stores on strict-alignment platforms.
12603         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
12604         (*movdi_insn_sp32): Likewise.
12605         (*movdi_insn_sp64): Likewise.
12607 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
12609         PR lto/88677
12610         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
12611         types that needs constructiong.
12612         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
12614 2019-02-12  Richard Biener  <rguenther@suse.de>
12616         PR tree-optimization/89253
12617         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
12618         duplicate the loop.
12620 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
12622         PR lto/88147
12623         * input.c (selftest::test_line_offset_overflow): New selftest.
12624         (selftest::input_c_tests): Call it.
12626 2019-02-11  Martin Sebor  <msebor@redhat.com>
12628         PR tree-optimization/88771
12629         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
12630         when -Wstringop-overflow is set.
12631         (builtin_memref::builtin_memref): Adjust excessive upper bound
12632         only when lower bound is not excessive.
12633         (maybe_diag_overlap): Detect and diagnose excessive bounds via
12634         -Wstringop-ovefflow.
12635         (maybe_diag_offset_bounds): Rename...
12636         (maybe_diag_access_bounds): ...to this.
12637         (check_bounds_or_overlap): Adjust for name change above.
12639 2019-02-11  Martin Sebor  <msebor@redhat.com>
12641         PR c++/87996
12642         * builtins.c (max_object_size): Move from here...
12643         * builtins.h (max_object_size): ...and here...
12644         * tree.c (max_object_size): ...to here...
12645         * tree.h (max_object_size): ...and here.
12647 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
12649         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
12650         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
12651         for correct semantics.
12653 2019-02-11  Alan Modra  <amodra@gmail.com>
12655         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
12656         -mlongcall and -mpltseq.
12657         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
12658         (RS/6000 and PowerPC Options <-mpltseq>): Document.
12659         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
12660         * config/rs6000/sysv4.opt (mpltseq): New option.
12661         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
12662         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
12663         support is lacking.  Don't allow -mpltseq with -mbss-plt.
12664         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
12665         -mpltseq given for ELFv1.
12666         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
12667         Only use UNSPEC_PLTSEQ for inline PLT calls.
12668         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
12669         use UNSPEC_PLTSEQ for inline PLT calls.
12670         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
12671         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
12672         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
12673         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
12674         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
12675         (pltseq_mtctr_<mode>): Likewise.
12677 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12679         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
12680         Solaris ld.
12681         * configure: Regenerate.
12683 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
12685         PR bootstrap/88714
12686         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
12687         instead of r.
12689 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
12691         * function.c (assign_parm_setup_block): Use the stored
12692         size, not the passed size, when allocating stack-space,
12693         also for a parameter with alignment larger than
12694         MAX_SUPPORTED_STACK_ALIGNMENT.
12696 2019-02-11  Martin Liska  <mliska@suse.cz>
12698         PR ipa/89009
12699         * ipa-cp.c (build_toporder_info): Remove usage of a param.
12700         * ipa-inline.c (inline_small_functions): Likewise.
12701         * ipa-pure-const.c (propagate_pure_const): Likewise.
12702         (propagate_nothrow): Likewise.
12703         * ipa-reference.c (propagate): Likewise.
12704         * ipa-utils.c (struct searchc_env): Remove unused field.
12705         (searchc): Always search across AVAIL_INTERPOSABLE.
12706         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
12707         the only called IPA pure const can properly not propagate
12708         across interposable boundary.
12709         * ipa-utils.h (ipa_reduced_postorder): Remove param.
12711 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
12713         * config/nds32/nds32.md (call_internal, call_value_internal,
12714         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
12716 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
12718         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
12719         typo.
12721 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
12723         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
12724         in comments
12726 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12728         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
12730 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
12732         PR tree-optimization/89268
12733         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
12734         if preds is non-NULL.
12736 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12738         PR lto/89272
12739         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
12740         polymorphic types.
12742 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
12744         * config/nds32/nds32.md (trap): New pattern.
12746 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
12748         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
12749         dwarf span.
12751 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12753         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
12754         to split POST_INC.
12756 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12758         * ipa-visibility.c (localize_node): Also do not localize
12759         LDPR_PREVAILING_DEF_IRONLY_EXP.
12761 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12763         PR lto/87957
12764         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
12765         instead of type_with_linkage.
12767 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
12769         PR ipa/88755
12770         * params.def (uninlined-function-insns, uninlined-function-time,
12771         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
12772         bound so we don't get overflows.
12774 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
12776         * config/rs6000/rs6000-string.c (expand_compare_loop,
12777         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
12778         memcmp/strncmp.
12780 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
12782         PR middle-end/89246
12783         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12784         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
12785         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
12787 2019-02-09  Alan Modra  <amodra@gmail.com>
12789         PR target/88343
12790         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
12791         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
12792         setup.
12794 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
12796         PR middle-end/88560
12797         * lra-constraints.c (process_alt_operands): Don't increase reject
12798         for memory when offset memory is required.
12800 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
12802         * config/s390/vector.md: Implement vector copysign.
12804 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
12806         * expr.c (expand_constructor): Correct indentations.
12808 2019-02-08  Richard Biener  <rguenther@suse.de>
12810         PR tree-optimization/89247
12811         * tree-if-conv.c: Include tree-cfgcleanup.h.
12812         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
12813         (tree_if_conversion): Pass through predicate vector.
12814         (pass_if_conversion::execute): Do CFG cleanup and SSA update
12815         inline, see if any if-converted loops we refrece in
12816         LOOP_VECTORIZED calls vanished and fixup.
12817         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
12819 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
12821         * config/s390/constraints.md (jdd): New constraint.
12823 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
12825         PR target/89229
12826         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
12827         upper 16 vector registers without TARGET_AVX512VL.
12828         (*movti_internal): Likewise.
12830 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
12832         PR rtl-optimization/89234
12833         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
12834         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
12835         (copy_reg_eh_region_note_backward): Likewise.
12837 2019-02-08  Richard Biener  <rguenther@suse.de>
12839         PR middle-end/89223
12840         * tree-data-ref.c (initialize_matrix_A): Fail if constant
12841         doesn't fit in HWI.
12842         (analyze_subscript_affine_affine): Handle failure from
12843         initialize_matrix_A.
12845 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
12847         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
12848         cfun everywhere.
12850 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
12852         PR tree-optimization/86637
12853         PR tree-optimization/89235
12854         * tree-vect-loop.c (optimize_mask_stores): Add an
12855         auto_purge_vect_location sentinel to ensure that vect_location is
12856         purged on exit.
12857         * tree-vectorizer.c
12858         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
12859         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
12860         to ensure that vect_location is purged on exit.
12861         (pass_slp_vectorize::execute): Likewise, replacing the manual
12862         reset.
12863         * tree-vectorizer.h (class auto_purge_vect_location): New class.
12865 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12867         * config/aarch64/iterators.md (max_opp): New code_attr.
12868         (USMAX): New code iterator.
12869         * config/aarch64/predicates.md (aarch64_smin): New predicate.
12870         (aarch64_smax): Likewise.
12871         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
12872         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
12873         MINUS (MAX MIN).
12875 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
12877         PR target/89229
12878         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
12879         for TARGET_AVX512VL.
12880         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
12882 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
12884         * config/s390/s390-builtin-types.def: Add new types.
12885         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
12886         (s390_vec_xlw4): Make the memory operand into a const pointer.
12887         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
12888         float.
12889         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
12890         a new vector type with the alignment of the scalar memory operand.
12892 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
12893             Jakub Jelinek  <jakub@redhat.com>
12895         PR bootstrap/88714
12896         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
12897         arm_count_ldrdstrd_insns): New declarations.
12898         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
12899         MINUS.
12900         (valid_operands_ldrd_strd): New function.
12901         (arm_count_ldrdstrd_insns): New function.
12902         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
12903         sets instead of single DImode set and define new insns to match this.
12905 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
12907         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
12908         Make it a C initializer.
12910 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
12912         PR/target 88850
12913         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
12915 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12917         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
12918         Use neon_dot<q> for type.
12919         (neon_<sup>dot_lane<vsi2qi>): Likewise.
12921 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12923         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
12924         Use neon_dot<q> for type.
12925         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
12926         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
12928 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
12930         PR rtl-optimization/89225
12931         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
12932         sizes check.
12934 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12936         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
12937         after restoring registers saved to allocate the frame on Windows.
12939 2019-02-06  Richard Biener  <rguenther@suse.de>
12941         PR tree-optimization/89182
12942         * graphite.h (cached_scalar_evolution_in_region): Declare.
12943         * graphite.c (struct seir_cache_key): New.
12944         (struct sese_scev_hash): Likewise.
12945         (seir_cache): New global.
12946         (cached_scalar_evolution_in_region): New function.
12947         (graphite_transform_loops): Allocate and release seir_cache.
12948         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
12949         cached_scalar_evolution_in_region.
12950         * graphite-scop-detection.c (scop_detection::can_represent_loop):
12951         Simplify.
12952         (scop_detection::graphite_can_represent_expr: Use
12953         cached_scalar_evolution_in_region.
12954         (scop_detection::stmt_simple_for_scop_p): Likewise.
12955         (find_params_in_bb): Likewise.
12956         (gather_bbs::before_dom_children): Likewise.
12957         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
12958         (add_loop_constraints): Likewise.
12960 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
12962         PR middle-end/89210
12963         * fold-const-call.c (fold_const_vec_convert): Pass true as last
12964         operand to new_unary_operation only if both element types are integral
12965         and it isn't a widening conversion.  Return NULL_TREE if
12966         new_unary_operation failed.
12968 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
12970         PR target/88856
12971         * config/s390/s390.md: Remove load and test FP splitter.
12973 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
12975         PR target/89112
12976         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
12977         expand_compare_loop, expand_block_compare_gpr,
12978         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
12979         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
12980         #include "profile-count.h" and "predict.h" for types and functions
12981         needed to work with REG_BR_PROB notes.
12983 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
12985         PR target/89112
12986         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
12987         for the long branch case.
12989 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
12991         PR target/89188
12992         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
12993         can throw, non-call exceptions are enabled and we can't delete
12994         dead exceptions or alter cfg.  Set must_clean if
12995         delete_insn_and_edges returns true, don't set it blindly for calls.
12996         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
12998         PR rtl-optimization/89195
12999         * combine.c (make_extraction): For MEMs, don't extract bytes outside
13000         of the original MEM.
13002 2019-02-05  Martin Liska  <mliska@suse.cz>
13004         PR gcov-profile/89000
13005         * gcov.c (function_summary): Remove argument.
13006         (file_summary): New function.
13007         (print_usage): Replace tabs with spaces.
13008         (generate_results): Use new function file_summary.
13010 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
13012         PR target/89186
13013         * optabs.c (prepare_cmp_insn): Pass x and y to
13014         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
13016 2019-02-05  Richard Biener  <rguenther@suse.de>
13018         PR middle-end/89150
13019         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
13020         (struct bitmap_element): Drop chain_prev so we properly recurse on
13021         the prev member, supporting tree views.
13022         (struct bitmap_head): GTY skip the obstack member.
13024 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
13026         PR c/88698
13027         * doc/extend.texi (Vector Extensions): Add an example of using vector
13028         types together with x86 intrinsics.
13030 2019-02-04  Alan Modra  <amodra@gmail.com>
13032         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
13033         str[] size to 160, and comment.
13035 2019-02-04  Alan Modra  <amodra@gmail.com>
13037         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
13038         (rs6000_pltseq_template): Guard output of TLS markers with
13039         TARGET_TLS_MARKERS.
13040         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
13041         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
13042         to use inline PLT sequences.
13043         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
13044         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
13045         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
13047 2019-02-04  Martin Liska  <mliska@suse.cz>
13049         PR ipa/88985
13050         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
13051         out when ipa_fn_summaries does not contain entry for callee.
13053 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
13055         * config/sparc/sparc.h: Remove superfluous blank lines.
13056         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
13057         (got_register_rtx): ...this.
13058         (sparc_got): Adjust to above renaming.
13059         (sparc_tls_got): Likewise.
13060         (sparc_delegitimize_address): Likewise.
13061         (sparc_output_mi_thunk): Likewise.
13062         (sparc_init_pic_reg): Likewise.
13063         (save_local_or_in_reg_p): Fix test on the GOT register.
13064         (USE_HIDDEN_LINKONCE): Move around.
13065         (get_pc_thunk_name): Likewise.
13066         (gen_load_pcrel_sym): Likewise.
13067         (load_got_register): Likewise.
13069 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
13071         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
13072         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
13074 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13076         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
13077         into consideration.
13079 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13081         * config.gcc (with_nds32_lib, glibc):
13082         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
13083         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
13084         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
13086 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13088         PR target/89071
13089         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
13090         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
13091         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
13092         (*rcpsf2_sse): Ditto.
13093         (*rsqrtsf2_sse): Ditto.
13094         (sse4_1_round<mode<2): Ditto.
13096 2019-02-03  Richard Biener  <rguenther@suse.de>
13098         PR debug/87295
13099         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
13100         orig.
13102 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
13104         PR middle-end/87887
13105         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13106         Punt with warning on aggregate return or argument types.  Ignore
13107         type/mode checking for uniform arguments.
13109 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
13111         * combine.c (try_combine): Do not print "Can't combine" messages unless
13112         printing failed combination attempts.
13114 2019-02-01  Martin Jambor  <mjambor@suse.cz>
13116         PR hsa/87863
13117         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
13118         segment and global segment variables before making them static.
13120 2019-02-01  Martin Jambor  <mjambor@suse.cz>
13122         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
13123         missed optimization dump with dump_enabled_p.
13125 2019-02-01  Richard Biener  <rguenther@suse.de>
13127         PR middle-end/88597
13128         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
13129         the instantiate cache.
13130         (instantiate_scev_binary): Elide second operand procesing
13131         if equal to the first.
13132         * tree-chrec.c (chrec_contains_symbols): Add visited set.
13133         (chrec_contains_undetermined): Likewise.
13134         (tree_contains_chrecs): Likewise.
13136 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
13138         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
13140 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
13142         PR tree-optimization/89143
13143         * wide-int-range.h (wide_int_range_absu): Declare.
13144         * wide-int-range.cc (wide_int_range_absu): New function.
13145         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
13147         PR tree-optimization/88107
13148         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
13149         instead of assertion that eh_region_outermost is non-NULL, if it
13150         is NULL, set *ALL to true and return NULL.
13151         (move_sese_region_to_fn): Adjust caller, if all is set, call
13152         duplicate_eh_regions with NULL region.
13154 2019-02-01  Richard Biener  <rguenth@suse.de>
13156         PR rtl-optimization/88593
13157         * mode-switching.c (optimize_mode_switching): Free dominators before
13158         calling cleanup_cfg.
13160 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
13162         PR tree-optimization/88932
13163         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
13165 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
13167         PR middle-end/89137
13168         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
13169         bogus clang warning.
13171 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13173         PR target/89071
13174         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
13175         alternative to avoid partial SSE register stall for TARGET_AVX.
13176         (truncdfsf2): Ditto.
13177         (sse4_1_round<mode>2): Ditto.
13179 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
13181         PR tree-optimization/89008
13182         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
13183         process anything of the form X * 0.
13185 2019-01-31  Richard Biener  <rguenther@suse.de>
13187         PR tree-optimization/89135
13188         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
13189         with abnormal preds.
13191 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
13193         PR sanitizer/89124
13194         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
13195         always_inline callees into no_sanitize_address callers.
13197 2019-01-31  Richard Biener  <rguenther@suse.de>
13199         PR rtl-optimization/89115
13200         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
13202 2019-01-30  Martin Sebor  <msebor@redhat.com>
13204         PR other/89106
13205         * doc/extend.texi (cast to a union): Correct and expand.
13207 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13209         PR rtl-optimization/87246
13210         * lra-constraints.c (simplify_operand_subreg): Reload memory
13211         in subreg if the address became invalid.
13213 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
13215         PR target/87064
13216         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
13217         Disable for little-endian.
13219 2019-01-30  Richard Biener  <rguenther@suse.de>
13221         PR rtl-optimization/89115
13222         * opts.c (default_options_optimization): Reduce
13223         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
13224         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
13225         to the default.
13227 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13229         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
13230         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
13231         type of vector element when vec_extract is implemented by direct
13232         move.
13234 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
13236         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
13238 2019-01-30  Richard Biener  <rguenther@suse.de>
13240         PR tree-optimization/89111
13241         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
13242         canonicalization to appropriately sized access types.
13244 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
13246         PR c++/89105
13247         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
13248         for arguments to functions that are TU-local and shouldn't be
13249         referenced by assembly.
13251 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
13253         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
13254         after '='.
13256 2019-01-29  Martin Sebor  <msebor@redhat.com>
13258         PR c/88956
13259         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
13261 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
13263         PR c++/66676
13264         PR ipa/89104
13265         * omp-simd-clone.c (simd_clone_clauses_extract)
13266         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
13267         OMP_CLAUSE_ALIGNED_ALIGNMENT.
13269 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
13271         * config.gcc: Force .init_array for ARC.
13273 2019-01-29  Richard Biener  <rguenther@suse.de>
13275         PR debug/87295
13276         * dwarf2out.c (collect_skeleton_dies): New helper.
13277         (copy_decls_for_unworthy_types): Call it.
13278         (build_abbrev_table): Assert we do not try to replace
13279         DW_AT_signature refs with local refs.
13281 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
13283         PR middle-end/89002
13284         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
13285         for lastprivate/linear IV, push gimplify context around gimplify_assign
13286         and, if it needed any temporaries, pop it into a gimple bind around the
13287         sequence.
13289 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13291         * common.opt (-Wattribute-alias): Remove "no-" from name.
13292         Make -Wattribute-alias command line option and
13293         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
13295 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
13297         PR target/89073
13298         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
13299         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
13300         x86 ISA options.
13301         (bmi2): Add missing @opindex.
13302         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
13303         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
13304         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
13305         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
13306         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
13307         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
13308         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
13309         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
13310         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
13311         xsavec, xsaveopt and xsaves options.
13313 2019-01-28  Richard Biener  <rguenther@suse.de>
13315         PR debug/89076
13316         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
13317         support removal.
13319 2019-01-28  Richard Biener  <rguenther@suse.de>
13321         PR tree-optimization/88739
13322         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13323         BIT_FIELD_REFs only are applied to mode-precision operands
13324         when they are integral.
13325         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
13326         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
13327         BIT_FIELD_REFs of non-mode-precision integral operands.
13329 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
13331         PR target/87214
13332         * config/i386/sse.md
13333         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
13334         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
13335         first constants in pairs are multiples of 2.  Formatting fixes.
13336         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
13337         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
13338         first constants in each quadruple are multiples of 4.  Formatting fixes.
13340 2019-01-26  Martin Jambor  <mjambor@suse.cz>
13342         PR ipa/88933
13343         * tree-inline.c: Include tree-cfgcleanup.h.
13344         (delete_unreachable_blocks_update_callgraph): Move...
13345         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
13346         ...here, make externally visible, make second argument bool, adjust
13347         all callers.
13348         * tree-cfgcleanup.c: Include cgraph.h.
13349         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
13350         Declare.
13351         * ipa-prop.c: Include tree-cfgcleanup.h.
13352         (ipcp_transform_function): Call
13353         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
13355 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
13357         PR rtl-optimization/88846
13358         * ira.c (process_set_for_memref_referenced_p): New.
13359         (memref_referenced_p): Add new param.  Use
13360         process_set_for_memref_referenced_p.  Add new switch cases.
13361         (memref_used_between_p): Pass new arg to memref_referenced_p.
13363 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
13365         PR target/88469
13366         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
13367         argument ABI_BREAK.  Set to true if the calculated alignment has
13368         changed in gcc-9.  Check bit-fields for their base type alignment.
13369         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
13370         (aarch64_function_arg_boundary): Likewise.
13371         (aarch64_gimplify_va_arg_expr): Likewise.
13373 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
13375         PR middle-end/89037
13376         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
13377         instead of accessing TREE_INT_CST_ELT directly.
13379 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
13381         * doc/sourcebuild.texi (Environment attributes): Add fenv and
13382         fenv_exceptions description.
13384 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
13386         PR rtl-optimization/87763
13387         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
13388         Allow SUBREG when matching CC_NZmode compare.
13390 2019-01-25  Richard Biener  <rguenther@suse.de>
13392         PR tree-optimization/89049
13393         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13394         Look at the pattern stmt to determine if the stmt is vectorized.
13396 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
13398         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
13399         (pred_mov<mode>): Handle all-register forms using both a new
13400         alternative and a split.
13402 2019-01-25  Richard Biener  <rguenther@suse.de>
13404         PR tree-optimization/86865
13405         * graphite-scop-detection.c (scop_detection::can_represent_loop):
13406         Reject non-do-while loops.
13408 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
13410         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
13411         * config/rs6000/constraints.md (Q constraint): Use REG_P.
13412         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
13413         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13414         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
13415         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13416         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
13417         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
13418         vlogical_operand, gpc_reg_operand, int_reg_operand,
13419         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
13420         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
13421         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
13422         (save_world_operation, restore_world_operation, lmw_operation,
13423         stmw_operation): Use MEM_P and REG_P.
13424         (tie_operand): Use MEM_P.
13425         (vrsave_operation, crsave_operation): Use REG_P.
13426         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
13427         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
13428         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
13429         (call_operand): Use HARD_REGISTER_P.
13430         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
13431         Use CONST_INT_P.
13432         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
13433         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
13434         quad_aligned_load_p, replace_swapped_aligned_store,
13435         recombine_lvx_pattern, replace_swapped_aligned_load,
13436         recombine_stvx_pattern): Use MEM_P.
13437         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
13438         Use MEM_P and SYMBOL_REF_P.
13439         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
13440         (insn_is_swappable_p): Use REG_P and MEM_P.
13441         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
13442         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
13443         Use CONST_INT_P.
13444         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
13445         Use CONST_DOUBLE_P.
13446         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
13447         CONST_WIDE_INT_P.
13448         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
13449         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
13450         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
13451         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
13452         reg_or_subregno:
13453         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13454         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
13455         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
13456         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
13457         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
13458         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
13459         rs6000_split_logical_di): Use CONST_INT_P.
13460         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
13461         REG_P and SYMBOL_REF_P.
13462         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
13463         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
13464         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
13465         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
13466         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
13467         (small_data_operand, print_operand_address): Use CONST_INT_P and
13468         SYMBOL_REF_P.
13469         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
13470         (rs6000_init_hard_regno_mode_ok, direct_move_p):
13471         Use HARD_REGISTER_NUM_P.
13472         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
13473         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
13474         SUBREG_P and SYMBOL_REF_P.
13475         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
13476         and HARD_REGISTER_NUM_P.
13477         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
13478         reg_or_subregno.
13479         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
13480         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
13481         MEM_P and REG_P.
13482         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
13483         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
13484         find_addr_reg): Use REG_P.
13485         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
13486         (rs6000_emit_le_vsx_move): Use SUBREG_P.
13487         (offsettable_ok_by_alignment, constant_pool_expr_p,
13488         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
13489         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
13490         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
13491         rs6000_assemble_integer, create_TOC_reference,
13492         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
13493         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
13494         (rs6000_split_vec_extract_var): Use reg_or_subregno.
13495         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13496         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13497         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13498         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13499         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
13500         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
13501         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
13502         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
13503         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
13504         and cbranch<mode>4): Use CONST_INT_P.
13505         (multiple define_splits): Use REG_P and SUBREG_P.
13506         (define_expands call, call_value): Use MEM_P.
13507         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
13508         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
13509         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
13510         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
13511         and HARD_REGISTER_NUM_P.
13512         (multiple define_splits): Use HARD_REGISTER_NUM_P.
13514 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13516         PR rtl-optimization/88948
13517         * rtl.h (prepare_copy_insn): New prototype.
13518         * gcse.c (prepare_copy_insn): New function, split out from
13519         process_insert_insn.
13520         (process_insert_insn): Use prepare_copy_insn.
13521         * store-motion.c (replace_store_insn): Use prepare_copy_insn
13522         instead of gen_move_insn.
13524 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
13526         PR debug/89006
13527         * config/i386/i386.c (ix86_pic_register_p): Return true for
13528         UNSPEC_SET_GOT too.
13530         PR tree-optimization/88964
13531         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
13532         punt if HONOR_SNANS (chrec).
13534         PR middle-end/89015
13535         * tree-nested.c (convert_nonlocal_reference_stmt,
13536         convert_local_reference_stmt, convert_tramp_reference_stmt,
13537         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
13538         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
13539         or GIMPLE_OMP_TASK.
13541         PR tree-optimization/89027
13542         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
13543         for "omp simd array" variables.
13545 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
13547         PR target/88469
13548         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
13549         force the alignment of m_val.
13551 2019-01-24  Richard Biener  <rguenther@suse.de>
13553         PR lto/87187
13554         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
13555         When in "legacy" debug mode make sure to reset self-origins.
13557 2019-01-24  Martin Liska  <mliska@suse.cz>
13559         PR gcov-profile/88994
13560         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
13561         result will be always smaller or equal to the original.
13562         * gcov.c (mangle_name): Fix else branch where we should
13563         also copy to PTR and shift the pointer.
13565 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
13567         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
13568         * vr-values.c (find_case_label_ranges): Fix a comment typo.
13570 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
13572         * common/config/i386/i386-common.c
13573         (OPTION_MASK_ISA_ENQCMD_SET,
13574         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
13575         (ix86_handle_option): Handle -menqcmd.
13576         * config.gcc (enqcmdintrin.h): New header file.
13577         * config/i386/cpuid.h (bit_ENQCMD): New bit.
13578         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
13579         -menqcmd.
13580         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
13581         function type.
13582         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
13583         __builtin_ia32_enqcmds): New builtins.
13584         * config/i386/i386-c.c (__ENQCMD__): New macro.
13585         * config/i386/i386-option.c (ix86_target_string): Add
13586         -menqcmd.
13587         (ix86_valid_target_attribute_inner_p): Likewise.
13588         * config/i386/i386-expand.c
13589         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
13590         IX86_BUILTIN_ENQCMDS.
13591         * config/i386/i386.h (TARGET_ENQCMD): New.
13592         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
13593         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
13594         (movdir64b_<mode>): Parameterize to enable share expansion code
13595         with ENQCMD in function ix86_expand_builtin.
13596         * config/i386/i386.opt: Add -menqcmd.
13597         * config/i386/immintrin.h: Include enqcmdintrin.h.
13598         * config/i386/enqcmdintrin.h: New intrinsic file.
13599         * doc/invoke.texi: Add -menqcmd.
13601 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
13602             Steve Ellcey <sellcey@marvell.com>
13604         PR target/85711
13605         * recog.c (address_operand): Return false on wrong mode for address.
13606         (constrain_operands): Check for mode with 'p' constraint.
13608 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13610         PR target/88998
13611         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
13612         Disparage MMX alternative.
13613         (sse2_cvtpd2pi): Ditto.
13614         (sse2_cvttpd2pi): Ditto.
13616 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
13618         PR driver/89014
13619         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
13620         use-after-free of the result of
13621         aarch64_get_extension_string_for_isa_flags.
13623 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
13625         PR c/44715
13626         * doc/extend.texi: Document break and continue behavior in
13627         statement expressions.
13629 2019-01-23  Richard Biener  <rguenther@suse.de>
13631         PR tree-optimization/89008
13632         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
13633         not leave another stray operand.
13635 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
13637         * BASE-VER: Bump to 9.0.1.
13639 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
13641         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
13642         thunk that returns by reference, use the type of the return object
13643         of the thunk instead of that of the alias to build the dereference.
13645 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
13647         * config/arc/atomic.md: Add operand to DMB instruction.
13649 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
13651         PR tree-optimization/88964
13652         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
13653         build_zero_cst instead of build_int_cst.  Return false for loop
13654         invariants which honor signed zeros.
13656 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
13658         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
13660 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
13662         PR target/88965
13663         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
13664         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
13665         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
13667         PR middle-end/88968
13668         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
13669         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
13671         PR target/87064
13672         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
13673         Disable for little endian.
13675 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
13677         PR target/88469
13678         * config/arm/arm.c (arm_needs_double_word_align): Check
13679         DECL_BIT_FIELD_TYPE.
13681 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
13682             H.J. Lu  <hongjiu.lu@intel.com>
13684         PR target/88909
13685         * config/i386/i386-builtin.def: Add mask2 to all builtin
13686         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
13687         SPECIAL_ARGS.
13688         * config/i386/i386.c (BDESC): Add mask2 to the definition.
13689         (BDESC_FIRST): Likewise.
13690         (define_builtin): Add an argument for mask2.  Updated to handle
13691         both ix86_isa_flags and ix86_isa_flags2.
13692         (define_builtin_const): Likewise.
13693         (define_builtin_pure): Likewise.
13694         (define_builtin2): Deleted.
13695         (define_builtin_const2): Likewise.
13696         (builtin_description): Add a member, mask2.
13697         (bdesc_*): Add mask2 to builtin initializations.
13698         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
13699         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
13700         support.
13701         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
13703 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
13705         PR target/88954
13706         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
13707         noplt attribute.
13709 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
13711         PR target/88469
13712         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
13713         alignment is dominated by a bitfield with 64-bit aligned base type.
13714         (arm_function_arg): Emit a warning if the alignment has changed since
13715         earlier GCC releases.
13716         (arm_function_arg_boundary): Likewise.
13717         (arm_setup_incoming_varargs): Likewise.
13719 2019-01-22  Richard Biener  <rguenther@suse.de>
13721         PR tree-optimization/88862
13722         * graphite-scop-detection.c
13723         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
13725 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
13727         * doc/extend.tex (AMD GCN Function Attributes): New section.
13728         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
13729         * doc/invoke.texi (AMD GCN Options): New section.
13730         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
13732 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13734         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
13735         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
13737 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
13739         PR tree-optimization/88044
13740         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
13741         is false in the first iteration, but !every_iteration, return false
13742         instead of true with niter->niter zero.
13744         PR rtl-optimization/88904
13745         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
13746         any nonequal registers before processing BB_END (b).
13748         PR target/88905
13749         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
13750         GET_MODE (op0).
13751         (expand_binop_directly, expand_doubleword_clz,
13752         expand_doubleword_popcount, expand_ctz, expand_ffs,
13753         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
13755         PR rtl-optimization/49429
13756         PR target/49454
13757         PR rtl-optimization/86334
13758         PR target/88906
13759         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
13760         addressable from here...
13761         (emit_block_op_via_libcall): ... to here.
13763 2019-01-22  Richard Biener  <rguenther@suse.de>
13765         * tree-vect-loop.c (vect_analyze_loop_operations): Use
13766         auto_vec for cost vector to fix memleak.
13767         (vectorize_fold_left_reduction): Properly gather SLP defs.
13768         (vectorizable_comparison): Do not swap operands to properly
13769         gather SLP defs.
13771 2019-01-22  Alan Modra  <amodra@gmail.com>
13773         PR target/88614
13774         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
13775         stays a reg.  Allow a const_int.
13776         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
13777         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
13778         (IS_NOMARK_TLSGETADDR): Define.
13779         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
13780         (rs6000_output_tlsargs): New function.
13781         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
13782         __tls_get_addr call takes an arg.
13783         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
13784         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
13785         delete split..
13786         (call_value_nonlocal_sysv): ..or here, delete split.
13787         (tls_gdld_nomark): Delete.
13788         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
13789         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
13790         (call_value_nonlocal_sysv): Likewise.
13791         (call_value_nonlocal_sysv_secure): Likewise.
13792         (call_value_nonlocal_aix): Likewise.
13793         (call_value_indirect_aix): Likewise.
13794         (call_value_indirect_elfv2): Likewise.
13795         (call_value_local32, call_value_local64): Disable for no-mark tls.
13796         (call_value_local_aix): Likewise.
13798 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13800         PR target/88938
13801         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
13802         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
13804 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
13806         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
13807         string contents as hash_map keys.
13809 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13811         PR c/88928
13812         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
13813         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
13814         instead of TYPE_ALIGN.
13815         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
13816         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
13817         pointer from TYPE_STUB_DECL.
13819 2019-01-21  Richard Biener  <rguenther@suse.de>
13821         PR tree-optimization/88934
13822         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
13823         at the possibly non-constant operand.
13824         (vect_get_constant_vectors): Adjust.
13826 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
13828         PR target/71659
13829         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
13830         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
13831         instead of _X86INTRIN_H_INCLUDED.
13832         * onfig/i386/clwbintrin.h: Likewise.
13833         * config/i386/pkuintrin.h: Likewise.
13834         * config/i386/prfchwintrin.h: Likewise.
13835         * config/i386/rdseedintrin.h: Likewise.
13836         * config/i386/wbnoinvdintrin.h: Likewise.
13837         * config/i386/xsavecintrin.h: Likewise.
13838         * config/i386/xsavesintrin.h: Likewise.
13839         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
13840         * config/i386/xsaveintrin.h: Likewise.
13841         * config/i386/xsaveoptintrin.h: Likewise.
13842         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
13843         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
13844         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
13845         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
13846         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
13847         * config/i386/immintrin.h: Here.
13849 2019-01-20  Martin Jambor  <mjambor@suse.cz>
13851         PR ipa/87615
13852         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
13853         with aa_walk_budget.
13854         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
13855         aa_walk_budget_p parameter.
13856         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
13857         walk.  Updated all callers.
13858         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
13859         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
13860         unmodified_parm.
13861         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
13862         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
13863         and to unmodified_parm.
13864         (phi_result_unknown_predicate): New parameter fbi, removed parameter
13865         info, updated call to will_be_nonconstant_expr_predicate.
13866         (param_change_prob): New parameter fbi, limit AA walking.
13867         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
13868         calls to various above functions.
13869         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
13870         parameter.  Use it to limit AA walking.
13871         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
13872         fbi, limit AA walk.
13873         (detect_type_change): New parameter fbi, pass it on to
13874         detect_type_change_from_memory_writes.
13875         (detect_type_change_ssa): Likewise.
13876         (aa_overwalked): Removed.
13877         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
13878         accordingly, adjust to the neew AA limiting scheme.
13879         (parm_ref_data_preserved_p): Likewise.
13880         (ipa_compute_jump_functions_for_edge): Adjust call to
13881         get_dynamic_type.
13882         (ipa_analyze_call_uses): Likewise.
13883         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
13884         (ipa_analyze_node): Initialize aa_walk_budget.
13885         (ipcp_transform_function): Likewise.
13886         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
13887         to get_dynamic_type.
13889 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
13891         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
13892         outside of #if CHECKING_P code.
13894 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
13896         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
13897         New function, split out from...
13898         (loop_versioning::analyze_stride): ...here.
13899         (loop_versioning::find_per_loop_multiplication): Use gassign.
13900         (loop_versioning::analyze_term_using_scevs): Return a success code.
13901         (loop_versioning::analyze_arbitrary_term): New function.
13902         (loop_versioning::analyze_address_fragment): Use
13903         analyze_arbitrary_term if all else fails.
13905 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
13907         PR target/88892
13908         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
13909         operands.
13911 2019-01-18  Richard Biener  <rguenther@suse.de>
13913         PR tree-optimization/88903
13914         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
13915         scalar stmts a SLP shift amount is composed of when detecting
13916         shifts by scalars.
13918 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
13920         PR target/88799
13921         * config/arm/arm-cpus.in (mp): New feature.
13922         (sec): New feature.
13923         (fgroup ARMv7ve): Add mp and sec features.
13924         (arch armv7-a): Add options to allow mp and sec extensions.
13925         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
13926         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
13927         extenstions to the base architecture.
13928         (cpu cortex-a8): Add sec extension to the base architecture.
13929         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
13930         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
13931         variants down to the base v7-a varaint.
13932         * config/arm/t-multilib (v7_a_arch_variants): New variable.
13933         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
13934         of permitted extensions for -march=armv7-a and for
13935         -mcpu=generic-armv7-a.
13937 2019-01-18  Martin Liska  <mliska@suse.cz>
13939         * params.def: Fix comment.
13940         * tree-profile.c (gimple_init_gcov_profiler): Bump function
13941         name.
13942         (gimple_gen_ic_func_profiler): Likewise.
13944 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13946         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
13947         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
13948         and put in error checks for stack protector guard options.
13949         (aarch64_stack_protect_guard): New.
13950         (TARGET_STACK_PROTECT_GUARD): Define.
13951         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
13952         (reg_stack_protect_address<mode>): New.
13953         (stack_protect_set): Adjust for SSP_GLOBAL.
13954         (stack_protect_test): Likewise.
13955         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
13956         (-mstack-protector-guard): Likewise.
13957         (-mstack-protector-guard-offset): Likewise.
13959 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
13961         PR tree-optimization/86214
13962         * tree-inline.h (struct copy_body_data): Add
13963         add_clobbers_to_eh_landing_pads member.
13964         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
13965         (copy_edges_for_bb): Call it if EH edge destination is <
13966         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
13967         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
13968         if flag_stack_reuse != SR_NONE and clear it afterwards.
13970 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
13972         PR target/85596
13973         * doc/install.texi (with-multilib-list): Document for aarch64.
13975 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
13977         PR target/88734
13978         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
13979         (("..."))) with ("...").
13981 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13983         * doc/extend.texi (Built-in Functions for Memory Model Aware
13984         Atomic Operations): Document atomic fetch and nand.
13986 2019-01-18  Martin Liska  <mliska@suse.cz>
13987             Richard Biener  <rguenther@suse.de>
13989         PR middle-end/88587
13990         * cgraph.h (create_version_clone_with_body): Add new argument
13991         with attributes.
13992         * cgraphclones.c (cgraph_node::create_version_clone): Add
13993         DECL_ATTRIBUTES to a newly created decl.  And call
13994         valid_attribute_p so that proper cl_target_optimization_node
13995         is set for the newly created declaration.
13996         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
13997         for declaration.
13998         (expand_target_clones): Do not call valid_attribute_p, it must
13999         be already done.
14000         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
14001         vector types.
14003 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
14005         PR target/88734
14006         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
14007         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
14008         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
14010 2019-01-17  Martin Sebor  <msebor@redhat.com>
14012         PR middle-end/88273
14013         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
14014         Handle anti-ranges the same as no range at all.
14016 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
14018         * config/aarch64/aarch64.c (cgraph.h): New include.
14019         (intl.h): New include.
14020         (supported_simd_type): New function.
14021         (currently_supported_simd_type): Ditto.
14022         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
14023         (aarch64_simd_clone_adjust): Ditto.
14024         (aarch64_simd_clone_usable): Ditto.
14025         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
14026         (TARGET_SIMD_CLONE_ADJUST): Ditto.
14027         (TARGET_SIMD_CLONE_USABLE): Ditto.
14028         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
14029         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
14030         call.
14032 2019-01-17  Martin Sebor  <msebor@redhat.com>
14034         PR tree-optimization/88800
14035         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
14036         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
14037         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
14038         redundant argument.  Add new argument and issue diagnostics under
14039         its control.  Detect out-of-bounds access even with warnings
14040         disabled.
14041         (check_bounds_or_overlap): Change return type.  Add argument.
14042         (wrestrict_dom_walker::check_call): Adjust.
14043         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
14044         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
14045         check_bounds_or_overlap's return value.
14046         (handle_builtin_stxncpy): Same.
14047         (handle_builtin_strcat): Same.
14049 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14050             Kwok Cheung Yeung  <kcy@codesourcery.com>
14051             Julian Brown  <julian@codesourcery.com>
14052             Tom de Vries  <tom@codesourcery.com>
14054         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
14056 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14058         * doc/sourcebuild.texi: Document dg-require-effective-target
14059         llvm_binutils and offload_gcn.
14061 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14062             Kwok Cheung Yeung  <kcy@codesourcery.com>
14063             Julian Brown  <julian@codesourcery.com>
14064             Tom de Vries  <tom@codesourcery.com>
14066         * doc/sourcebuild.texi: Document dg-required-effective-target
14067         exceptions.
14069 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14070             Kwok Cheung Yeung  <kcy@codesourcery.com>
14071             Julian Brown  <julian@codesourcery.com>
14072             Tom de Vries  <tom@codesourcery.com>
14073             Jan Hubicka  <hubicka@ucw.cz>
14074             Martin Jambor  <mjambor@suse.cz>
14076         * config.gcc: Add amdgcn*-*-amdhsa configuration.
14077         * configure.ac: Check for dlopen.
14078         * configure: Regenerate.
14080 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14081             Kwok Cheung Yeung  <kcy@codesourcery.com>
14082             Julian Brown  <julian@codesourcery.com>
14083             Tom de Vries  <tom@codesourcery.com>
14084             Jan Hubicka  <hubicka@ucw.cz>
14085             Martin Jambor  <mjambor@suse.cz>
14087         * common/config/gcn/gcn-common.c: New file.
14088         * config/gcn/driver-gcn.c: New file.
14089         * config/gcn/gcn-builtins.def: New file.
14090         * config/gcn/gcn-hsa.h: New file.
14091         * config/gcn/gcn-modes.def: New file.
14092         * config/gcn/gcn-opts.h: New file.
14093         * config/gcn/gcn-passes.def: New file.
14094         * config/gcn/gcn-protos.h: New file.
14095         * config/gcn/gcn-run.c: New file.
14096         * config/gcn/gcn-tree.c: New file.
14097         * config/gcn/gcn.c: New file.
14098         * config/gcn/gcn.h: New file.
14099         * config/gcn/gcn.opt: New file.
14100         * config/gcn/t-gcn-hsa: New file.
14102 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
14103             Kwok Cheung Yeung  <kcy@codesourcery.com>
14104             Julian Brown  <julian@codesourcery.com>
14105             Tom de Vries  <tom@codesourcery.com>
14106             Jan Hubicka  <hubicka@ucw.cz>
14107             Martin Jambor  <mjambor@suse.cz>
14109         * config/gcn/constraints.md: New file.
14110         * config/gcn/gcn-valu.md: New file.
14111         * config/gcn/gcn.md: New file.
14112         * config/gcn/predicates.md: New file.
14114 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14116         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
14117         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
14118         (stmt_uses_0_or_null_in_undefined_way): Likewise.
14119         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
14121 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
14123         PR target/88851
14124         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
14125         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
14126         it and document registers.
14128 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14130         * config/aarch64/aarch64.c (ares_tunings): Define.
14131         * config/aarch64/aarch64-cores.def (ares): Use the above.
14133 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14135         PR target/88794
14136         Revert:
14137         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
14139         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
14140         (_mm512_fixupimm_round_pd): Update parameters and builtin.
14141         (_mm512_maskz_fixupimm_round_pd): Ditto.
14142         (_mm512_fixupimm_round_ps): Ditto.
14143         (_mm512_maskz_fixupimm_round_ps): Ditto.
14144         (_mm_fixupimm_round_sd): Ditto.
14145         (_mm_maskz_fixupimm_round_sd): Ditto.
14146         (_mm_fixupimm_round_ss): Ditto.
14147         (_mm_maskz_fixupimm_round_ss): Ditto.
14148         (_mm512_fixupimm_pd): Ditto.
14149         (_mm512_maskz_fixupimm_pd): Ditto.
14150         (_mm512_fixupimm_ps): Ditto.
14151         (_mm512_maskz_fixupimm_ps): Ditto.
14152         (_mm_fixupimm_sd): Ditto.
14153         (_mm_maskz_fixupimm_sd): Ditto.
14154         (_mm_fixupimm_ss): Ditto.
14155         (_mm_maskz_fixupimm_ss): Ditto.
14156         (_mm512_mask_fixupimm_round_pd): Update builtin.
14157         (_mm512_mask_fixupimm_round_ps): Ditto.
14158         (_mm_mask_fixupimm_round_sd): Ditto.
14159         (_mm_mask_fixupimm_round_ss): Ditto.
14160         (_mm512_mask_fixupimm_pd): Ditto.
14161         (_mm512_mask_fixupimm_ps): Ditto.
14162         (_mm_mask_fixupimm_sd): Ditto.
14163         (_mm_mask_fixupimm_ss): Ditto.
14164         * config/i386/avx512vlintrin.h:
14165         (_mm256_fixupimm_pd): Update parameters and builtin.
14166         (_mm256_maskz_fixupimm_pd): Ditto.
14167         (_mm256_fixupimm_ps): Ditto.
14168         (_mm256_maskz_fixupimm_ps): Ditto.
14169         (_mm_fixupimm_pd): Ditto.
14170         (_mm_maskz_fixupimm_pd): Ditto.
14171         (_mm_fixupimm_ps): Ditto.
14172         (_mm_maskz_fixupimm_ps): Ditto.
14173         (_mm256_mask_fixupimm_pd): Update builtin.
14174         (_mm256_mask_fixupimm_ps): Ditto.
14175         (_mm_mask_fixupimm_pd): Ditto.
14176         (_mm_mask_fixupimm_ps): Ditto.
14177         * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
14178         * config/i386/i386-builtin.def: Update builtin definitions.
14179         * config/i386/i386.c: Handle new builtin types and remove useless ones.
14180         * config/i386/sse.md: Update VFIXUPIMM* patterns.
14181         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14182         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14183         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
14184         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14185         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14186         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
14187         * config/i386/subst.md:
14188         (round_saeonly_sd_mask_operand4): Add new subst_attr.
14189         (round_saeonly_sd_mask_op4): Ditto.
14190         (round_saeonly_expand_operand5): Ditto.
14191         (round_saeonly_expand): Update.
14193 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14195         PR target/88794
14196         Revert:
14197         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
14199         * config/i386/sse.md: Combine VFIXUPIMM* patterns
14200         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14201         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14202         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
14203         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14204         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14205         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
14207 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
14209         PR target/88794
14210         Revert:
14211         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
14213         PR target/88489
14214         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
14215         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
14216         instead of UNSPEC_FIXUPIMM.
14218 2019-01-17  Richard Biener  <rguenther@suse.de>
14220         PR lto/86736
14221         * dwarf2out.c (want_pubnames): Never generate pubnames sections
14222         and friends for the LTO part of debug info.
14224 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
14226         PR tree-optimization/86214
14227         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
14228         if x == y.
14230         PR rtl-optimization/88870
14231         * dce.c (deletable_insn_p): Never delete const/pure calls that can
14232         throw if we can't alter the cfg or delete dead exceptions.
14233         (mark_insn): Don't call find_call_stack_args for such calls.
14235 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
14237         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
14238         prototypes for vec_st.
14239         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
14240         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
14241         mainly on signed/unsigned long long and double.
14243 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
14245         PR target/88861
14246         * combine.c (delete_noop_moves): Convert to "bool" return,
14247         returning true if any edges are eliminated.
14248         (combine_instructions): Also return true if delete_noop_moves
14249         returns true.
14251 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
14253         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
14254         correct max nunits for endian swap.
14255         (aarch64_expand_fcmla_builtin): Correct subreg code.
14256         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14257         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
14258         lane endianness.
14260 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14262         * config/alpha/alpha.c (alpha_gimplify_va_arg):
14263         Handle split indirect COMPLEX_TYPE arguments.
14265 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
14267         PR target/86891
14268         * config/aarch64/aarch64-modes.def: Add comment about how the carry
14269         bit is set by add and compare.
14270         (CC_ADC): New CC_MODE.
14271         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
14272         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
14273         comparison.  Add detection for CC_ADCmode.
14274         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
14275         CC_ADCmode.
14276         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
14277         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
14278         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
14279         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
14280         to eliminate the need for zero-extending the operands.
14281         (add<mode>3_compareC_imm): Delete.  Merge into ...
14282         (add<mode>3_compareC): ... this.  Restructure the comparison to
14283         eliminate the need for zero-extending the operands.
14284         (add<mode>3_carryin): Use LTU for the overflow detection.
14285         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
14286         Reexpress comparison for overflow.
14287         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
14288         (add<mode>3_carryinC): Likewise.
14289         (add<mode>3_carryinV): Use LTU for carry between partials.
14290         * config/aarch64/predicates.md (aarch64_carry_operation): Update
14291         handling of CC_Cmode and add CC_ADCmode.
14292         (aarch64_borrow_operation): Likewise.
14294 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
14296         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
14297         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
14298         * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
14299         neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
14301 2019-01-16  Martin Liska  <mliska@suse.cz>
14303         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
14304         for GCC driver.
14305         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
14306         a new argument.
14307         * gcc.c (add_sysrooted_hdrs_prefix): New function.
14308         (path_prefix_reset): Move up in the source file.
14309         (find_fortran_preinclude_file): Make complex search for the
14310         fortran header files.
14312 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
14314         * godump.c (go_output_typedef): When outputting a typedef, refer
14315         to the underlying type by its name and not its structure.
14317 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
14319         PR c++/88795
14320         * tree.c (build_function_type): Assert that arg_types is not
14321         error_mark_node.
14323 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14325         PR inline-asm/52813
14326         * doc/extend.texi: Document that listing the stack pointer in the
14327         clobber list of an asm is a deprecated feature.
14328         * common.opt (Wdeprecated): Moved from c-family/c.opt.
14329         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
14330         warning instead of an error for clobbers of the stack pointer.
14331         Add a note explaining why.
14333 2019-01-15  Richard Biener  <rguenther@suse.de>
14335         PR debug/88046
14336         * dwarf2out.c (gen_member_die): Do not generate inheritance
14337         DIEs late.
14339 2019-01-15  Richard Biener  <rguenther@suse.de>
14341         PR tree-optimization/88855
14342         * tree-if-conv.c (combine_blocks): Collect
14343         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
14345 2019-01-15  Tom de Vries  <tdevries@suse.de>
14347         PR target/80547
14348         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
14349         lhs == NULL_TREE for gang-level reduction.
14351 2019-01-15  Richard Biener  <rguenther@suse.de>
14352             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14354         PR ipa/88788
14355         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
14356         return true if SSA_NAME is already marked in visited bitmap.
14357         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
14359 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
14361         PR tree-optimization/88775
14362         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
14363         equal == 0 equality pointer comparisons some more if compared in
14364         integral types and either one points to an automatic var and the
14365         other to a global, or we can prove at least one points to the middle
14366         or both point to start or both point to end.
14368 2019-01-14  Andi Kleen  <ak@linux.intel.com>
14370         * Makefile.in: Lower autofdo sampling rate by 10x.
14371         * Makefile.tpl: Dito.
14373 2019-01-14  Tom Honermann  <tom@honermann.net>
14375         * defaults.h: Define CHAR8_TYPE.
14377 2019-01-14  Martin Sebor  <msebor@redhat.com>
14379         PR target/88638
14380         * doc/extend.texi (Darwin Format Checks): Clarify.
14382 2019-01-14  Richard Biener  <rguenther@suse.de>
14384         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
14385         whether we are in (simplify ...) or (match ...) context.
14387 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
14389         PR rtl-optimization/88796
14390         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
14391         * cfgexpand.c (stack_protect_prologue): Initialize
14392         crtl->stack_protect_guard_decl.
14393         * function.c (stack_protect_epilogue): Use it instead of calling
14394         targetm.stack_protect_guard again.
14395         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
14396         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
14397         crtl->stack_protect_guard_decl.
14398         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
14399         on the returned MEM_EXPR.
14401 2019-01-12  Tom de Vries  <tdevries@suse.de>
14403         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
14404         vector length using -fopenacc-dim.
14406 2019-01-12  Tom de Vries  <tdevries@suse.de>
14408         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
14409         lengths into account.
14411 2019-01-12  Svante Signell  <svante.signell@gmail.com>
14413         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
14414         (TARGET_CAN_SPLIT_STACK): Define.
14415         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
14417 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
14419         * params.def (inline-unit-growth): Set to 40.
14421 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
14423         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
14425 2019-01-12  Tom de Vries  <tdevries@suse.de>
14427         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
14428         region calling vector-partitionable routine, set default_vector_length
14429         to WARP_SIZE.
14431 2019-01-12  Tom de Vries  <tdevries@suse.de>
14433         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
14434         variable default_vector_length.
14436 2019-01-12  Tom de Vries  <tdevries@suse.de>
14438         PR middle-end/88703
14439         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
14440         from oacc_default_dims, as oacc_validate_dims would do it, and apply
14441         dimensions limits.
14443 2019-01-12  Tom de Vries  <tdevries@suse.de>
14445         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
14446         (nvptx_goacc_validate_dims): Add used parameter.
14447         * doc/tm.texi: Regenerate.
14448         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
14449         argument to call to targetm.goacc.validate_dims.
14450         (default_goacc_validate_dims): Add used
14451         parameter.
14452         * target.def (validate_dims): Add used parameter in DEFHOOK.
14453         * targhooks.h (default_goacc_validate_dims): Add used parameter.
14455 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14457         PR middle-end/85956
14458         PR lto/88733
14459         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
14460         field.
14461         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
14462         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
14463         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
14464         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
14466 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
14468         PR rtl-optimization/87305
14469         * lra-assigns.c
14470         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
14471         for little endian pseudos used as paradoxical subreg.
14473 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14475         PR tree-optimization/88693
14476         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
14477         for STRING_CSTs that don't contain any NUL characters in the first
14478         TREE_STRING_LENGTH bytes.
14480 2019-01-11  Alan Modra  <amodra@gmail.com>
14482         PR 88777
14483         PR 88614
14484         * genattrtab.c (min_fn): Don't translate values.
14485         (min_attr_value): Return INT_MAX when the value can't be calculated.
14486         Return minimum among any values that can be calculated.
14487         (max_attr_value): Adjust.
14489 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14491         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
14493 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
14495         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14496         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
14497         (aarch64_return_call_with_max_clobbers): New function.
14498         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
14499         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
14500         argument.
14501         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
14502         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
14503         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
14504         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
14505         * cselib.c (cselib_process_insn): Add argument to
14506         targetm.hard_regno_call_part_clobbered call.
14507         * ira-conflicts.c (ira_build_conflicts): Ditto.
14508         * ira-costs.c (ira_tune_allocno_costs): Ditto.
14509         * lra-constraints.c (inherit_reload_reg): Ditto.
14510         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
14511         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
14512         argument.  Call targetm.return_call_with_max_clobbers.
14513         Add argument to targetm.hard_regno_call_part_clobbered call.
14514         (calls_have_same_clobbers_p): New function.
14515         (process_bb_lives): Add call_insn and last_call_insn variables.
14516         Pass call_insn to check_pseudos_live_through_calls.
14517         Modify if stmt to check targetm.return_call_with_max_clobbers.
14518         Update setting of flush variable.
14519         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
14520         to false.
14521         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
14522         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
14523         targetm.hard_regno_call_part_clobbered call.
14524         * reginfo.c (choose_hard_reg_mode): Ditto.
14525         * regrename.c (check_new_reg_p): Ditto.
14526         * reload.c (find_equiv_reg): Ditto.
14527         * reload1.c (emit_reload_insns): Ditto.
14528         * sched-deps.c (deps_analyze_insn): Ditto.
14529         * sel-sched.c (init_regs_for_mode): Ditto.
14530         (mark_unavailable_hard_regs): Ditto.
14531         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
14532         * target.def (hard_regno_call_part_clobbered): Add insn argument.
14533         (return_call_with_max_clobbers): New target function.
14534         * doc/tm.texi: Regenerate.
14535         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
14536         * hooks.c (hook_bool_uint_mode_false): Change to
14537         hook_bool_insn_uint_mode_false.
14538         * hooks.h (hook_bool_uint_mode_false): Ditto.
14540 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
14542         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14543         (aarch64_remove_extra_call_preserved_regs): New function.
14544         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
14545         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
14546         * doc/tm.texi: Regenerate.
14547         * final.c (get_call_reg_set_usage): Call new hook.
14548         * target.def (remove_extra_call_preserved_regs): New hook.
14549         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
14550         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
14552 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
14554         PR bootstrap/88714
14555         * passes.c (finish_optimization_passes): Call print_combine_total_stats
14556         inside of pass_combine_1 dump rather than pass_profile_1.
14558 2019-01-11  Tom de Vries  <tdevries@suse.de>
14560         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
14561         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
14562         (PTX_NUM_PER_WORKER_BARRIERS): Define.
14563         (nvptx_apply_dim_limits): Prevent vector_length 64 and
14564         num_workers 16.
14566 2019-01-11  Tom de Vries  <tdevries@suse.de>
14568         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
14570 2019-01-11  Jan Beulich  <jbeulich@suse.com>
14572         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
14573         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
14574         sse2_cvtsi2sd): Add {l}.
14575         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
14576         syntax.
14578 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
14580         PR target/88785
14581         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
14582         define_expand.
14583         (*float<floatunssuffix>v2div2sf2): New define_insn.
14584         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
14585         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
14586         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
14587         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
14588         match_operands with "const0_operand" "C".
14590 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
14592         * config/aarch64/aarch64-builtins.c
14593         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
14594         (aarch64_init_simd_builtins): ...Here
14596 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
14598         PR rtl-optimization/87305
14599         * lra-assigns.c
14600         (setup_live_pseudos_and_spill_after_risky_transforms): Check
14601         allocation for big endian pseudos used as paradoxical subregs and
14602         spill them if it is wrong.
14603         * lra-constraints.c (lra_constraints): Add a comment.
14605 2019-01-10  Richard Biener  <rguenther@suse.de>
14607         PR tree-optimization/88792
14608         * tree-ssa-pre.c (get_representative_for): Do not return a
14609         value-number here.
14611 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
14613         PR middle-end/84877
14614         PR bootstrap/88450
14615         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
14616         (assign_parm_setup_block): Do the argument slot realignment here
14617         instead.
14619 2019-01-10  Stefan Agner  <stefan@agner.ch>
14621         PR target/88648
14622         * config/arm/arm.c (arm_option_override_internal): Force
14623         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
14625 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
14627         PR c/88568
14628         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
14629         DECL_EXTERNAL.
14631 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
14633         * config/arm/arm-builtins.c
14634         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
14635         (MAC_LANE_PAIR_QUALIFIERS): New.
14636         (arm_expand_builtin_args): Use it.
14637         (arm_expand_builtin_1): Likewise.
14638         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
14639         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
14640         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
14641         * config/arm/arm_neon.h:
14642         (vcadd_rot90_f16): New.
14643         (vcaddq_rot90_f16): New.
14644         (vcadd_rot270_f16): New.
14645         (vcaddq_rot270_f16): New.
14646         (vcmla_f16): New.
14647         (vcmlaq_f16): New.
14648         (vcmla_lane_f16): New.
14649         (vcmla_laneq_f16): New.
14650         (vcmlaq_lane_f16): New.
14651         (vcmlaq_laneq_f16): New.
14652         (vcmla_rot90_f16): New.
14653         (vcmlaq_rot90_f16): New.
14654         (vcmla_rot90_lane_f16): New.
14655         (vcmla_rot90_laneq_f16): New.
14656         (vcmlaq_rot90_lane_f16): New.
14657         (vcmlaq_rot90_laneq_f16): New.
14658         (vcmla_rot180_f16): New.
14659         (vcmlaq_rot180_f16): New.
14660         (vcmla_rot180_lane_f16): New.
14661         (vcmla_rot180_laneq_f16): New.
14662         (vcmlaq_rot180_lane_f16): New.
14663         (vcmlaq_rot180_laneq_f16): New.
14664         (vcmla_rot270_f16): New.
14665         (vcmlaq_rot270_f16): New.
14666         (vcmla_rot270_lane_f16): New.
14667         (vcmla_rot270_laneq_f16): New.
14668         (vcmlaq_rot270_lane_f16): New.
14669         (vcmlaq_rot270_laneq_f16): New.
14670         (vcadd_rot90_f32): New.
14671         (vcaddq_rot90_f32): New.
14672         (vcadd_rot270_f32): New.
14673         (vcaddq_rot270_f32): New.
14674         (vcmla_f32): New.
14675         (vcmlaq_f32): New.
14676         (vcmla_lane_f32): New.
14677         (vcmla_laneq_f32): New.
14678         (vcmlaq_lane_f32): New.
14679         (vcmlaq_laneq_f32): New.
14680         (vcmla_rot90_f32): New.
14681         (vcmlaq_rot90_f32): New.
14682         (vcmla_rot90_lane_f32): New.
14683         (vcmla_rot90_laneq_f32): New.
14684         (vcmlaq_rot90_lane_f32): New.
14685         (vcmlaq_rot90_laneq_f32): New.
14686         (vcmla_rot180_f32): New.
14687         (vcmlaq_rot180_f32): 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         (vcmla_rot270_lane_f32): New.
14695         (vcmla_rot270_laneq_f32): New.
14696         (vcmlaq_rot270_lane_f32): New.
14697         (vcmlaq_rot270_laneq_f32): New.
14698         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
14699         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
14700         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
14701         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
14702         vcmlaq_lane270): New.
14703         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
14704         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
14705         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
14706         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
14707         (arm_option_reconfigure_globals): Use them.
14708         * config/arm/iterators.md (VDF, VQ_HSF): New.
14709         (VCADD, VCMLA): New.
14710         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
14711         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
14712         New.
14713         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
14714         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
14716 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
14718         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14719         Add qualifier_lane_pair_index.
14720         (emit-rtl.h): Include.
14721         (TYPES_QUADOP_LANE_PAIR): New.
14722         (aarch64_simd_expand_args): Use it.
14723         (aarch64_simd_expand_builtin): Likewise.
14724         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
14725         New.
14726         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
14727         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
14728         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
14729         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
14730         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
14731         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
14732         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
14733         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
14734         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
14735         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
14736         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
14737         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
14738         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
14739         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14740         Add __ARM_FEATURE_COMPLEX.
14741         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
14742         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
14743         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
14744         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
14745         fcmlaq_lane270): New.
14746         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14747         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
14748         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
14749         * config/aarch64/arm_neon.h:
14750         (vcadd_rot90_f16): New.
14751         (vcaddq_rot90_f16): New.
14752         (vcadd_rot270_f16): New.
14753         (vcaddq_rot270_f16): New.
14754         (vcmla_f16): New.
14755         (vcmlaq_f16): New.
14756         (vcmla_lane_f16): New.
14757         (vcmla_laneq_f16): New.
14758         (vcmlaq_lane_f16): New.
14759         (vcmlaq_rot90_lane_f16): New.
14760         (vcmla_rot90_laneq_f16): New.
14761         (vcmla_rot90_lane_f16): New.
14762         (vcmlaq_rot90_f16): New.
14763         (vcmla_rot90_f16): New.
14764         (vcmlaq_laneq_f16): New.
14765         (vcmla_rot180_laneq_f16): New.
14766         (vcmla_rot180_lane_f16): New.
14767         (vcmlaq_rot180_f16): New.
14768         (vcmla_rot180_f16): New.
14769         (vcmlaq_rot90_laneq_f16): New.
14770         (vcmlaq_rot270_laneq_f16): New.
14771         (vcmlaq_rot270_lane_f16): New.
14772         (vcmla_rot270_laneq_f16): New.
14773         (vcmlaq_rot270_f16): New.
14774         (vcmla_rot270_f16): New.
14775         (vcmlaq_rot180_laneq_f16): New.
14776         (vcmlaq_rot180_lane_f16): New.
14777         (vcmla_rot270_lane_f16): New.
14778         (vcadd_rot90_f32): New.
14779         (vcaddq_rot90_f32): New.
14780         (vcaddq_rot90_f64): New.
14781         (vcadd_rot270_f32): New.
14782         (vcaddq_rot270_f32): New.
14783         (vcaddq_rot270_f64): New.
14784         (vcmla_f32): New.
14785         (vcmlaq_f32): New.
14786         (vcmlaq_f64): New.
14787         (vcmla_lane_f32): New.
14788         (vcmla_laneq_f32): New.
14789         (vcmlaq_lane_f32): New.
14790         (vcmlaq_laneq_f32): New.
14791         (vcmla_rot90_f32): New.
14792         (vcmlaq_rot90_f32): New.
14793         (vcmlaq_rot90_f64): New.
14794         (vcmla_rot90_lane_f32): New.
14795         (vcmla_rot90_laneq_f32): New.
14796         (vcmlaq_rot90_lane_f32): New.
14797         (vcmlaq_rot90_laneq_f32): New.
14798         (vcmla_rot180_f32): New.
14799         (vcmlaq_rot180_f32): New.
14800         (vcmlaq_rot180_f64): New.
14801         (vcmla_rot180_lane_f32): New.
14802         (vcmla_rot180_laneq_f32): New.
14803         (vcmlaq_rot180_lane_f32): New.
14804         (vcmlaq_rot180_laneq_f32): New.
14805         (vcmla_rot270_f32): New.
14806         (vcmlaq_rot270_f32): New.
14807         (vcmlaq_rot270_f64): New.
14808         (vcmla_rot270_lane_f32): New.
14809         (vcmla_rot270_laneq_f32): New.
14810         (vcmlaq_rot270_lane_f32): New.
14811         (vcmlaq_rot270_laneq_f32): New.
14812         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
14813         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
14814         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
14815         (FCADD, FCMLA): New.
14816         (rot): New.
14817         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
14819 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
14821         PR other/16615
14823         * config/pa/pa.c: Change "can not" to "cannot".
14824         * gimple-ssa-evrp-analyze.c: Likewise.
14825         * ipa-icf.c: Likewise.
14826         * ipa-polymorphic-call.c: Likewise.
14827         * ipa-pure-const.c: Likewise.
14828         * lra-constraints.c: Likewise.
14829         * lra-remat.c: Likewise.
14830         * reload1.c: Likewise.
14831         * reorg.c: Likewise.
14832         * tree-ssa-uninit.c: Likewise.
14834 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
14836         PR other/16615
14838         * Makefile.in: Mechanically replace "can not" with "cannot".
14839         * alias.c: Likewise.
14840         * builtins.c: Likewise.
14841         * calls.c: Likewise.
14842         * cgraph.c: Likewise.
14843         * cgraph.h: Likewise.
14844         * cgraphclones.c: Likewise.
14845         * cgraphunit.c: Likewise.
14846         * combine-stack-adj.c: Likewise.
14847         * combine.c: Likewise.
14848         * common/config/i386/i386-common.c: Likewise.
14849         * config/aarch64/aarch64.c: Likewise.
14850         * config/alpha/sync.md: Likewise.
14851         * config/arc/arc.c: Likewise.
14852         * config/arc/predicates.md: Likewise.
14853         * config/arm/arm-c.c: Likewise.
14854         * config/arm/arm.c: Likewise.
14855         * config/arm/arm.h: Likewise.
14856         * config/arm/arm.md: Likewise.
14857         * config/arm/cortex-r4f.md: Likewise.
14858         * config/csky/csky.c: Likewise.
14859         * config/csky/csky.h: Likewise.
14860         * config/darwin-f.c: Likewise.
14861         * config/epiphany/epiphany.md: Likewise.
14862         * config/i386/i386.c: Likewise.
14863         * config/i386/sol2.h: Likewise.
14864         * config/m68k/m68k.c: Likewise.
14865         * config/mcore/mcore.h: Likewise.
14866         * config/microblaze/microblaze.md: Likewise.
14867         * config/mips/20kc.md: Likewise.
14868         * config/mips/sb1.md: Likewise.
14869         * config/nds32/nds32.c: Likewise.
14870         * config/nds32/predicates.md: Likewise.
14871         * config/pa/pa.c: Likewise.
14872         * config/rs6000/e300c2c3.md: Likewise.
14873         * config/rs6000/rs6000.c: Likewise.
14874         * config/s390/s390.h: Likewise.
14875         * config/sh/sh.c: Likewise.
14876         * config/sh/sh.md: Likewise.
14877         * config/spu/vmx2spu.h: Likewise.
14878         * cprop.c: Likewise.
14879         * dbxout.c: Likewise.
14880         * df-scan.c: Likewise.
14881         * doc/cfg.texi: Likewise.
14882         * doc/extend.texi: Likewise.
14883         * doc/fragments.texi: Likewise.
14884         * doc/gty.texi: Likewise.
14885         * doc/invoke.texi: Likewise.
14886         * doc/lto.texi: Likewise.
14887         * doc/md.texi: Likewise.
14888         * doc/objc.texi: Likewise.
14889         * doc/rtl.texi: Likewise.
14890         * doc/tm.texi: Likewise.
14891         * dse.c: Likewise.
14892         * emit-rtl.c: Likewise.
14893         * emit-rtl.h: Likewise.
14894         * except.c: Likewise.
14895         * expmed.c: Likewise.
14896         * expr.c: Likewise.
14897         * fold-const.c: Likewise.
14898         * genautomata.c: Likewise.
14899         * gimple-fold.c: Likewise.
14900         * hard-reg-set.h: Likewise.
14901         * ifcvt.c: Likewise.
14902         * ipa-comdats.c: Likewise.
14903         * ipa-cp.c: Likewise.
14904         * ipa-devirt.c: Likewise.
14905         * ipa-fnsummary.c: Likewise.
14906         * ipa-icf.c: Likewise.
14907         * ipa-inline-transform.c: Likewise.
14908         * ipa-inline.c: Likewise.
14909         * ipa-polymorphic-call.c: Likewise.
14910         * ipa-profile.c: Likewise.
14911         * ipa-prop.c: Likewise.
14912         * ipa-pure-const.c: Likewise.
14913         * ipa-reference.c: Likewise.
14914         * ipa-split.c: Likewise.
14915         * ipa-visibility.c: Likewise.
14916         * ipa.c: Likewise.
14917         * ira-build.c: Likewise.
14918         * ira-color.c: Likewise.
14919         * ira-conflicts.c: Likewise.
14920         * ira-costs.c: Likewise.
14921         * ira-int.h: Likewise.
14922         * ira-lives.c: Likewise.
14923         * ira.c: Likewise.
14924         * ira.h: Likewise.
14925         * loop-invariant.c: Likewise.
14926         * loop-unroll.c: Likewise.
14927         * lower-subreg.c: Likewise.
14928         * lra-assigns.c: Likewise.
14929         * lra-constraints.c: Likewise.
14930         * lra-eliminations.c: Likewise.
14931         * lra-lives.c: Likewise.
14932         * lra-remat.c: Likewise.
14933         * lra-spills.c: Likewise.
14934         * lra.c: Likewise.
14935         * lto-cgraph.c: Likewise.
14936         * lto-streamer-out.c: Likewise.
14937         * postreload-gcse.c: Likewise.
14938         * predict.c: Likewise.
14939         * profile-count.h: Likewise.
14940         * profile.c: Likewise.
14941         * recog.c: Likewise.
14942         * ree.c: Likewise.
14943         * reload.c: Likewise.
14944         * reload1.c: Likewise.
14945         * reorg.c: Likewise.
14946         * resource.c: Likewise.
14947         * rtl.def: Likewise.
14948         * rtl.h: Likewise.
14949         * rtlanal.c: Likewise.
14950         * sched-deps.c: Likewise.
14951         * sched-ebb.c: Likewise.
14952         * sched-rgn.c: Likewise.
14953         * sel-sched-ir.c: Likewise.
14954         * sel-sched.c: Likewise.
14955         * shrink-wrap.c: Likewise.
14956         * simplify-rtx.c: Likewise.
14957         * symtab.c: Likewise.
14958         * target.def: Likewise.
14959         * toplev.c: Likewise.
14960         * tree-call-cdce.c: Likewise.
14961         * tree-cfg.c: Likewise.
14962         * tree-complex.c: Likewise.
14963         * tree-core.h: Likewise.
14964         * tree-eh.c: Likewise.
14965         * tree-inline.c: Likewise.
14966         * tree-loop-distribution.c: Likewise.
14967         * tree-nrv.c: Likewise.
14968         * tree-profile.c: Likewise.
14969         * tree-sra.c: Likewise.
14970         * tree-ssa-alias.c: Likewise.
14971         * tree-ssa-dce.c: Likewise.
14972         * tree-ssa-dom.c: Likewise.
14973         * tree-ssa-forwprop.c: Likewise.
14974         * tree-ssa-loop-im.c: Likewise.
14975         * tree-ssa-loop-ivcanon.c: Likewise.
14976         * tree-ssa-loop-ivopts.c: Likewise.
14977         * tree-ssa-loop-niter.c: Likewise.
14978         * tree-ssa-phionlycprop.c: Likewise.
14979         * tree-ssa-phiopt.c: Likewise.
14980         * tree-ssa-propagate.c: Likewise.
14981         * tree-ssa-threadedge.c: Likewise.
14982         * tree-ssa-threadupdate.c: Likewise.
14983         * tree-ssa-uninit.c: Likewise.
14984         * tree-ssanames.c: Likewise.
14985         * tree-streamer-out.c: Likewise.
14986         * tree.c: Likewise.
14987         * tree.h: Likewise.
14988         * vr-values.c: Likewise.
14990 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14992         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
14993         (ix86_split_xorsign): Ditto.
14994         * config/i386/i386.c (ix86_expand_xorsign): New function.
14995         (ix86_split_xorsign): Ditto.
14996         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
14997         (xorsign<mode>3): New expander.
14998         (xorsign<mode>3_1): New insn_and_split pattern.
14999         * config/i386/sse.md (xorsign<mode>3): New expander.
15001 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15003         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
15004         (*tablejump_sp64): Likewise.
15005         (*tablejump<P:mode>): ...this.
15006         (*call_address_sp32): Merge into...
15007         (*call_address_sp64): Likewise.
15008         (*call_address<P:mode>): ...this.
15009         (*call_symbolic_sp32): Merge into...
15010         (*call_symbolic_sp64): Likewise.
15011         (*call_symbolic<P:mode>): ...this.
15012         (call_value): Remove constraint and add predicate.
15013         (*call_value_address_sp32): Merge into...
15014         (*call_value_address_sp64): Likewise.
15015         (*call_value_address<P:mode>): ...this.
15016         (*call_value_symbolic_sp32): Merge into...
15017         (*call_value_symbolic_sp64): Likewise.
15018         (*call_value_symbolic<P:mode>): ...this.
15019         (*sibcall_symbolic_sp32): Merge into...
15020         (*sibcall_symbolic_sp64): Likewise.
15021         (*sibcall_symbolic<P:mode>): ...this.
15022         (sibcall_value): Remove constraint and add predicate.
15023         (*sibcall_value_symbolic_sp32): Merge into...
15024         (*sibcall_value_symbolic_sp64): Likewise.
15025         (*sibcall_value_symbolic<P:mode>): ...this.
15026         (window_save): Minor tweak.
15027         (*branch_sp32): Merge into...
15028         (*branch_sp64): Likewise.
15029         (*branch<P:mode>): ...this.
15031 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15032             James Clarke  <jrtc27@jrtc27.com>
15034         PR target/84010
15035         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
15036         consistently in TLS address generation and adjust code to the renaming
15037         of patterns.  Mark calls to __tls_get_addr as const.
15038         * config/sparc/sparc.md (tgd_hi22): Turn into...
15039         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
15040         (tgd_lo10): Turn into...
15041         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
15042         (tgd_add32): Merge into...
15043         (tgd_add64): Likewise.
15044         (tgd_add<P:mode>): ...this and use Pmode throughout.
15045         (tldm_hi22): Turn into...
15046         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
15047         (tldm_lo10): Turn into...
15048         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
15049         (tldm_add32): Merge into...
15050         (tldm_add64): Likewise.
15051         (tldm_add<P:mode>): ...this and use Pmode throughout.
15052         (tldm_call32): Merge into...
15053         (tldm_call64): Likewise.
15054         (tldm_call<P:mode>): ...this and use Pmode throughout.
15055         (tldo_hix22): Turn into...
15056         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
15057         (tldo_lox10): Turn into...
15058         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
15059         (tldo_add32): Merge into...
15060         (tldo_add64): Likewise.
15061         (tldo_add<P:mode>): ...this and use Pmode throughout.
15062         (tie_hi22): Turn into...
15063         (tie_hi22<P:mode>): ...this and use Pmode throughout.
15064         (tie_lo10): Turn into...
15065         (tie_lo10<P:mode>): ...this and use Pmode throughout.
15066         (tie_ld64): Use DImode throughout.
15067         (tie_add32): Merge into...
15068         (tie_add64): Likewise.
15069         (tie_add<P:mode>): ...this and use Pmode throughout.
15070         (tle_hix22_sp32): Merge into...
15071         (tle_hix22_sp64): Likewise.
15072         (tle_hix22<P:mode>): ...this and use Pmode throughout.
15073         (tle_lox22_sp32): Merge into...
15074         (tle_lox22_sp64): Likewise.
15075         (tle_lox22<P:mode>): ...this and use Pmode throughout.
15076         (*tldo_ldub_sp32): Merge into...
15077         (*tldo_ldub_sp64): Likewise.
15078         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
15079         (*tldo_ldub1_sp32): Merge into...
15080         (*tldo_ldub1_sp64): Likewise.
15081         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
15082         (*tldo_ldub2_sp32): Merge into...
15083         (*tldo_ldub2_sp64): Likewise.
15084         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
15085         (*tldo_ldsb1_sp32): Merge into...
15086         (*tldo_ldsb1_sp64): Likewise.
15087         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
15088         (*tldo_ldsb2_sp32): Merge into...
15089         (*tldo_ldsb2_sp64): Likewise.
15090         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
15091         (*tldo_ldub3_sp64): Use DImode throughout.
15092         (*tldo_ldsb3_sp64): Likewise.
15093         (*tldo_lduh_sp32): Merge into...
15094         (*tldo_lduh_sp64): Likewise.
15095         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
15096         (*tldo_lduh1_sp32): Merge into...
15097         (*tldo_lduh1_sp64): Likewise.
15098         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
15099         (*tldo_ldsh1_sp32): Merge into...
15100         (*tldo_ldsh1_sp64): Likewise.
15101         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
15102         (*tldo_lduh2_sp64): Use DImode throughout.
15103         (*tldo_ldsh2_sp64): Likewise.
15104         (*tldo_lduw_sp32): Merge into...
15105         (*tldo_lduw_sp64): Likewise.
15106         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
15107         (*tldo_lduw1_sp64): Use DImode throughout.
15108         (*tldo_ldsw1_sp64): Likewise.
15109         (*tldo_ldx_sp64): Likewise.
15110         (*tldo_stb_sp32): Merge into...
15111         (*tldo_stb_sp64): Likewise.
15112         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
15113         (*tldo_sth_sp32): Merge into...
15114         (*tldo_sth_sp64): Likewise.
15115         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
15116         (*tldo_stw_sp32): Merge into...
15117         (*tldo_stw_sp64): Likewise.
15118         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
15119         (*tldo_stx_sp64): Use DImode throughout.
15121 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15123         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
15124         check configure option to set BTI and Return Address Signing.
15125         * configure.ac: Add --enable-standard-branch-protection and
15126         --disable-standard-branch-protection.
15127         * configure: Regenerated.
15128         * doc/install.texi: Document the same.
15130 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15131             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15133         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
15134         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
15135         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
15136         if bti is enabled.
15137         * config/aarch64/aarch64-bti-insert.c: New file.
15138         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
15139         pass.
15140         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
15141         new bti pass.
15142         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
15143         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
15144         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
15145         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
15147 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15149         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
15150         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
15151         Disable bti for -mbranch-protection=none.
15152         (aarch64_handle_standard_branch_protection): Enable bti for
15153         -mbranch-protection=standard.
15154         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
15155         -mbranch-protection.
15156         (aarch64_bti_enabled): Check if bti is enabled.
15157         * config/aarch64/aarch64.opt: Declare target variable.
15158         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
15160 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15162         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
15163         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
15164         (aarch64_expand_epilogue): Likewise.
15165         (aarch64_output_mi_thunk): Likewise
15166         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
15167         TAILCALL_ADDR_REGS to x16 and x17.
15168         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
15170 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15172         * config/aarch64/aarch64-option-extensions.def: Define
15173         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
15174         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
15175         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
15176         (AARCH64_FL_PREDRES): New.
15177         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
15178         AARCH64_FL_PREDRES by default.
15179         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
15181 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
15183         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
15184         ARMv8.5-A.
15185         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
15186         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
15187         * doc/invoke.texi: Document ARMv8.5-A.
15189 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15191         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
15192         (xorsign<mode>3): Likewise.
15194 2019-01-09  Jelinek  <jakub@redhat.com>
15196         PR middle-end/88758
15197         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
15198         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
15200         PR rtl-optimization/88331
15201         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
15202         not currently_expanding_to_rtl.
15204 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
15206         * doc/invoke.texi (-Os): Remove trailing spaces.
15207         (-finline-functions): Remove reference to -O2.
15209 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
15211         PR rtl-optimization/79593
15212         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
15214         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
15215         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
15217 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
15219         PR bootstrap/88721
15220         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
15221         to -1 on entry.
15223         PR debug/88723
15224         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
15225         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
15227 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
15229         PR target/88717
15230         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
15231         ix86_avx_u128_mode_entry.
15233 2019-01-08  Martin Liska  <mliska@suse.cz>
15235         PR tree-optimization/88753
15236         * tree-switch-conversion.c (switch_conversion::build_one_array):
15237         Come up with local variable constructor.  Convert first to
15238         type of constructor values.
15240 2019-01-08  Richard Biener  <rguenther@suse.de>
15242         PR tree-optimization/86554
15243         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
15244         rpo_avail): Move earlier.
15245         (visit_nary_op): When value-numbering to expressions
15246         with different overflow behavior make sure there's an
15247         available expression on the path.
15249 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
15251         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
15252         aarch64_parse_branch_protection,
15253         struct aarch64_branch_protect_type,
15254         aarch64_handle_no_branch_protection,
15255         aarch64_handle_standard_branch_protection,
15256         aarch64_validate_mbranch_protection,
15257         aarch64_handle_pac_ret_protection,
15258         aarch64_handle_attr_branch_protection,
15259         accepted_branch_protection_string,
15260         aarch64_pac_ret_subtypes,
15261         aarch64_branch_protect_types,
15262         aarch64_handle_pac_ret_leaf): Define.
15263         (aarch64_override_options_after_change_1, aarch64_override_options):
15264         Add check for accepted_branch_protection_string.
15265         (aarch64_option_save): Save accepted_branch_protection_string.
15266         (aarch64_option_restore): Save accepted_branch_protection_string.
15267         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
15268         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
15269         msign-return-address.
15270         * doc/invoke.texi: Add mbranch-protection.
15272 2019-01-08  Alan Modra  <amodra@gmail.com>
15274         PR target/88614
15275         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
15276         Delete "unknownp" parameter.  Adjust callers.  Handle
15277         CONST_INT, PLUS, MINUS, and MULT.
15278         (attr_value_aligned): Renamed from or_attr_value.
15279         (min_attr_value): Return INT_MIN for unhandled rtl case..
15280         (min_fn): ..and translate to INT_MAX here.
15281         (write_length_unit_log): Modify to cope without "unknown".
15282         (write_attr_value): Handle IF_THEN_ELSE.
15284 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15286         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
15287         optimization for masked stores.
15289 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15291         PR middle-end/88567
15292         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
15293         output vector directly to duplicate_and_interleave instead of
15294         going through a temporary.  Postpone insertion of ctor_seq to
15295         the end of the loop.
15297 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
15299         PR target/86891
15300         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
15301         unsigned_p.  Handle signed and unsigned overflow correction as
15302         required.
15303         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
15304         prototype.
15305         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
15306         for operand 2.
15307         (add<mode>3_compareV_imm): Make this callable for expanding.
15308         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
15309         aarch64_plus_operand for operand 2.
15310         (subv<GPI:mode>_insn): New insn pattern.
15311         (subv<GPI:mode>_imm): Likewise.
15312         (negv<GPI:mode>3): New expand pattern.
15313         (negv<GPI:mode>_insn): New insn pattern.
15314         (negv<GPI:mode>_cmp_only): Likewise.
15315         (cmpv<GPI:mode>_insn): Likewise.
15316         (subvti4): Use register_operand for operand 1.  Update call to
15317         aarch64_expand_subvti.
15318         (usubvti4): Likewise.
15319         (negvti3): New expand pattern.
15320         (negdi_carryout): New insn pattern.
15321         (negvdi_carryinV): New insn pattern.
15322         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
15323         version the named version.
15324         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
15325         operands.
15326         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
15327         patterns.
15328         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
15329         patterns.
15330         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
15331         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
15332         (sub<mode>3_carryinCV): Delete.
15333         (sub<GPI:mode>3_carryinV): New expand pattern.
15334         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
15336 2019-01-07  Richard Biener  <rguenther@suse.de>
15338         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
15339         of tree_operand_hash.
15341 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15343         PR tree-optimization/88598
15344         * tree.h (single_nonzero_element): Declare.
15345         * tree.c (single_nonzero_element): New function.
15346         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
15347         if I is the only nonzero element of CST.
15349 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15351         PR tree-optimization/88598
15352         * tree.h (initializer_each_zero_or_onep): Declare.
15353         * tree.c (initializer_each_zero_or_onep): New function.
15354         (signed_or_unsigned_type_for): Handle float types too.
15355         (unsigned_type_for, signed_type_for): Update comments accordingly.
15356         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
15357         x & { 0 or -1, 0 or -1, ... }.
15359 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
15361         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
15362         with x86_64-pc-linux-gnu.
15364 2019-01-07  Tom de Vries  <tdevries@suse.de>
15366         PR target/85486
15367         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
15368         function.
15369         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
15370         routines.
15372 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
15374         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
15375         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
15376         TARGET_AVX512F as condition.
15378         PR debug/88723
15379         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
15380         const_not_ok_for_debug_p target hook.
15381         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
15382         on UNSPEC and subexpressions thereof if all subexpressions of the
15383         UNSPEC are CONSTANT_P.
15385         PR tree-optimization/88676
15386         * tree-ssa-phiopt.c (two_value_replacement): New function.
15387         (tree_ssa_phiopt_worker): Call it.
15389         PR sanitizer/88619
15390         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
15391         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
15393         PR c++/85052
15394         * tree-vect-generic.c: Include insn-config.h and recog.h.
15395         (expand_vector_piecewise): Add defaulted ret_type argument,
15396         if non-NULL, use that in preference to type for the result type.
15397         (expand_vector_parallel): Formatting fix.
15398         (do_vec_conversion, do_vec_narrowing_conversion,
15399         expand_vector_conversion): New functions.
15400         (expand_vector_operations_1): Call expand_vector_conversion
15401         for VEC_CONVERT ifn calls.
15402         * internal-fn.def (VEC_CONVERT): New internal function.
15403         * internal-fn.c (expand_VEC_CONVERT): New function.
15404         * fold-const-call.c (fold_const_vec_convert): New function.
15405         (fold_const_call): Use it for CFN_VEC_CONVERT.
15406         * doc/extend.texi (__builtin_convertvector): Document.
15408 2019-01-07  Tom de Vries  <tdevries@suse.de>
15410         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
15411         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
15412         vector_red_partition, vector_red_sym): New global variables.
15413         (nvptx_option_override): Initialize vector_red_sym.
15414         (nvptx_declare_function_name): Restore red_partition register.
15415         (nvptx_file_end): Emit code to declare the vector reduction variables.
15416         (nvptx_output_red_partition): New function.
15417         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
15418         large vector reductions.
15419         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
15420         (nvptx_init_builtins): Add VECTOR_ADDR.
15421         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
15422         Handle nvptx_expand_shared_addr.
15423         (nvptx_get_shared_red_addr): Add vector argument and handle large
15424         vectors.
15425         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
15426         large vectors.
15427         (nvptx_goacc_reduction_init): Likewise.
15428         (nvptx_goacc_reduction_fini): Likewise.
15429         (nvptx_goacc_reduction_teardown): Likewise.
15430         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
15431         init,fini,teardown}.
15432         (nvptx_init_axis_predicate): Initialize vector_red_partition.
15433         (nvptx_set_current_function): Init vector_red_partition.
15434         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
15435         (nvptx_red_partition): New insn.
15436         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
15438 2019-01-07  Tom de Vries  <tdevries@suse.de>
15440         PR target/85381
15441         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
15442         empty loops.
15444 2019-01-07  Tom de Vries  <tdevries@suse.de>
15446         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
15447         (nvptx_option_override): Init oacc_bcast_partition.
15448         (nvptx_init_oacc_workers): New function.
15449         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
15450         (nvptx_needs_shared_bcast): New function.
15451         (nvptx_find_par): Generalize to enable vectors to use shared-memory
15452         to propagate state.
15453         (nvptx_shared_propagate): Initialize vector bcast partition and
15454         synchronization state.
15455         (nvptx_single):  Generalize to enable vectors to use shared-memory
15456         to propagate state.
15457         (nvptx_process_pars): Likewise.
15458         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
15459         * config/nvptx/nvptx.h (struct machine_function): Add
15460         bcast_partition and sync_bar members.
15462 2019-01-07  Tom de Vries  <tdevries@suse.de>
15464         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
15465         (nvptx_apply_dim_limits): New function.
15466         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
15467         PTX_WARP_SIZE.
15469 2019-01-07  Tom de Vries  <tdevries@suse.de>
15471         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
15472         as late as possible.
15474 2019-01-07  Tom de Vries  <tdevries@suse.de>
15476         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
15477         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
15478         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
15479         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
15480         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
15482 2019-01-07  Tom de Vries  <tdevries@suse.de>
15484         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
15486 2019-01-07  Tom de Vries  <tdevries@suse.de>
15488         * omp-offload.c (oacc_get_min_dim): New function.
15489         * omp-offload.h (oacc_get_min_dim): Declare.
15491 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
15493         PR target/88521
15494         * config/i386/i386.c (function_value_ms_64): Return small sturct in
15495         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
15497 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15499         PR tree-opt/86020
15500         Revert:
15501         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
15503         * ipa-inline.c (edge_badness): Use inlined_time instead of
15504         inline_summaries->get.
15506 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15508         * opts.c (enable_fdo_optimizations): Enable
15509         version-loops-for-strides, loop-interchange, unrol-and-jam
15510         and tree-loop-distribution.
15511         * invoke.texi: Document newly enabled options.
15513 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15515         * doc/invoke.texi (max-inline-insns-small): New parameters.
15516         * ipa-inline.c (want_early_inline_function_p): simplify.
15517         (want_inline_small_function_p): Fix pasto from previous patch;
15518         use max-inline-insns-small bound.
15519         * params.def (max-inline-insns-small): New param.
15520         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
15521         variables correctly.
15523 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15525         * doc/invoke.texi: Document max-inline-insns-size,
15526         uninlined-function-insns, uninlined-function-time,
15527         uninlined-thunk-insns and uninlined-thunk-time.
15528         * params.def: Add max-inline-insns-size,
15529         uninlined-function-insns, uninlined-function-time,
15530         uninlined-thunk-insns and uninlined-thunk-time.
15531         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
15532         new parameters.
15533         * ipa-inline.c (can_inline_edge_by_limits_p,
15534         want_inline_small_function_p): Use new parameters.
15536 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
15538         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
15540 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
15542         PR middle-end/82564
15543         PR target/88620
15544         * expr.c (expand_assignment): For calls returning VLA structures
15545         if to_rtx is not a MEM, force it into a stack temporary.
15547         PR debug/88635
15548         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
15549         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
15550         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
15551         subexpressions of both operands.
15552         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
15553         subrtxes are CONSTANT_P.
15554         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
15555         2018-11-09 changes.
15557 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
15559         * params.def (hot-bb-count-ws-permille): Set to 990.
15561 2019-01-04  Martin Sebor  <msebor@redhat.com>
15563         PR c/88546
15564         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
15565         leaf.
15567 2019-01-04  Martin Sebor  <msebor@redhat.com>
15569         PR c/88363
15570         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
15572 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
15574         * gdbinit.in: Turn off pagination for the skip commands, restore
15575         it to previous state afterwards.
15577 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
15579         PR target/88594
15580         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
15581         of GET_MODE (opN) as modes of the libcall arguments.
15583 2019-01-04  Jan Beulich  <jbeulich@suse.com>
15585         * config/i386/sse.md
15586         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
15587         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
15588         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15589         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15590         avx512f_vmcmp<mode>3<round_saeonly_name>,
15591         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
15592         avx512f_maskcmp<mode>3,
15593         <avx512>_cvt<ssemodesuffix>2mask<mode>,
15594         <avx512>_cvt<ssemodesuffix>2mask<mode>,
15595         *<avx512>_cvtmask2<ssemodesuffix><mode>,
15596         *<avx512>_cvtmask2<ssemodesuffix><mode>,
15597         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15598         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15599         <avx512>_gt<mode>3<mask_scalar_merge_name>,
15600         <avx512>_gt<mode>3<mask_scalar_merge_name>,
15601         <avx512>_testm<mode>3<mask_scalar_merge_name>,
15602         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
15603         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
15604         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
15605         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
15606         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
15607         avx512cd_maskb_vec_dup<mode>,
15608         avx512cd_maskw_vec_dup<mode>,
15609         avx512dq_fpclass<mode><mask_scalar_merge_name>,
15610         avx512dq_vmfpclass<mode>,
15611         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
15612         instead of =Yk.
15614 2019-01-03  Martin Sebor  <msebor@redhat.com>
15616         PR tree-optimization/88659
15617         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
15619 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
15621         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
15622         unaligned vsx and avoid lxvd2x/stxvd2x.
15623         (gen_lvx_v4si_move): New function.
15625 2019-01-03  Tom de Vries  <tdevries@suse.de>
15627         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
15628         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
15629         function.
15630         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
15632 2019-01-03  Tom de Vries  <tdevries@suse.de>
15634         * config/nvptx/nvptx.c (struct offload_attrs): New.
15635         (populate_offload_attrs): New function.  Factor mask extraction out of
15636         nvptx_reorg.  Add extraction of dimensions.
15637         (nvptx_reorg): Use populate_offload_attrs.
15639 2019-01-03  Tom de Vries  <tdevries@suse.de>
15641         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
15642         cases for oacc_min_dims_p and routine_p.  Add asserts for
15643         oacc_default_dims_p and offload_region_p.
15645 2019-01-03  Tom de Vries  <tdevries@suse.de>
15647         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
15648         factored out of ...
15649         (nvptx_goacc_validate_dims): ... here.
15651 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
15653         PR tree-optimization/85574
15654         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
15655         structure.
15656         (struct ssa_equip_hash_traits): Declare.
15657         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
15659 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
15661         PR debug/88644
15662         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
15663         change it to qualified_type.
15665 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
15667         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
15668         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
15670 2019-01-02  Martin Sebor  <msebor@redhat.com>
15671             Jeff Law  <law@redhat.com>
15673         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
15674         (get_range_strlen_tree): Update appropriately.
15675         (get_range_strlen)
15676         * gimple-fold.h (get_range_strlen): Drop unused last argument.
15678         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
15679         rather than set_range_info.
15680         * tree-ssa-strlen.c (set_strlen_range): Extracted from
15681         maybe_set_strlen_range.  Handle potentially boundary crossing
15682         cases more conservatively.
15683         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
15684         Call set_strlen_range.
15685         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
15687         PR middle-end/88663
15688         * gimple-fold.c (get_range_strlen): Update prototype to no longer
15689         need the flexp argument.
15690         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
15691         from calls to get_range_strlen.  Update comments.  Just update
15692         VAL for an unterminated const char array and let the reset of the
15693         code handle it normally.  No longer try to set *flexp.  Adjust
15694         return value.
15695         (get_range_strlen): Update for the new get_range_strlen API.
15696         (get_maxval_strlen): Similarly.
15697         (gimple_fold_builtin_strlen): Handle update meaning of return value
15698         from get_range_strlen.
15699         * gimple-ssa-sprintf.c (get_string_length): Update for the new
15700         get_range_strlen API.
15702 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
15704         PR lto/88130
15705         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
15706         false at WPA time when body was removed.
15708 2019-01-02  Martin Liska  <mliska@suse.cz>
15710         PR tree-optimization/88650
15711         * predict.c (set_even_probabilities): Calculate probability
15712         remainer only when really used.
15714 2019-01-02  Richard Biener  <rguenther@suse.de>
15716         PR middle-end/88651
15717         * tree-data-ref.c (analyze_subscript_affine_affine): Use
15718         widest_ints when mangling max_stmt_execution results.
15720 2019-01-02  Richard Biener  <rguenther@suse.de>
15722         PR tree-optimization/88621
15723         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
15724         bitfields when canoncalizing.
15726 2019-01-02  Richard Biener  <rguenther@suse.de>
15728         PR target/87545
15729         * config/i386/x86-tune-costs.h (intel_cost): Adjust
15730         cost of cheap SSE instruction.
15732 2019-01-02  Richard Biener  <rguenther@suse.de>
15734         PR ipa/85574
15735         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
15736         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
15737         function.
15738         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
15739         set after UIDs before splitting them.
15741 2019-01-01  Martin Sebor  <msebor@redhat.com>
15742             Jeff Law  <law@redhat.com>
15744         * gimple-fold.c (get_range_strlen_tree): Record if the computed
15745         length is optimistic.  If it is, then arrange to compute the
15746         conservative length as well.
15748         * gimple-fold.h (get_range_strlen): Update prototype.
15749         * builtins.c (check_access): Update call to get_range_strlen to use
15750         c_strlen_data pointer.   Change various variable accesses to instead
15751         pull data from the c_strlen_data structure.
15752         (check_strncat_sizes, expand_builtin_strncat): Likewise.
15753         * calls.c (maybe_warn_nonstring_arg): Likewise.
15754         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
15755         minimum length if maximum lengh is unknown.
15756         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
15757         that used c_strlen, it's no longer needed.  Restructure slightly.
15758         (format_string): Set unlikely range appropriately.
15759         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
15760         formatting issues.
15761         (get_range_strlen):  Accept c_strlen_data pointer for external
15762         call sites as well.  Pass through to call to internal get_range_strlen.
15763         Adjust minlen, maxlen and maxbound as needed.
15764         (get_maxval_strlen): Update comments.
15765         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
15766         to use c_strlen_data pointer.  Change variable accesses to instead
15767         use c_strlen_data data members.
15769         * gimple-fold.c (get_range_strlen): Update prototype.
15770         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
15771         local variables.  Use pdata to return information to caller.
15772         Update calls to get_range_strlen.  Update pdata->maxbound.
15773         (get_range_strlen -- static version): Similarly.
15774         (get_range_strlen -- extern version): Update for internal
15775         get_range_strlen API change.  Convert to external data format.
15776         (get_maxval_strlen): Similarly.
15778 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
15780         * coverage.c (get_coverage_counts): Use current_function_decl.
15781         * profile.c (read_thunk_profile): New function.
15782         (branch_prob): Add THUNK parameter.
15783         * tree-profile.c (tree_profiling): Handle thunks.
15784         * value-prof.c (init_node_map): Handle thunks.
15785         * value-prof.h (branch_prob): Upate prototype.
15786         (read_thunk_profile): Declare.
15788 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
15790         Update copyright years.
15792         * gcc.c (process_command): Update copyright notice dates.
15793         * gcov-dump.c (print_version): Ditto.
15794         * gcov.c (print_version): Ditto.
15795         * gcov-tool.c (print_version): Ditto.
15796         * gengtype.c (create_file): Ditto.
15797         * doc/cpp.texi: Bump @copying's copyright year.
15798         * doc/cppinternals.texi: Ditto.
15799         * doc/gcc.texi: Ditto.
15800         * doc/gccint.texi: Ditto.
15801         * doc/gcov.texi: Ditto.
15802         * doc/install.texi: Ditto.
15803         * doc/invoke.texi: Ditto.
15805 Copyright (C) 2019 Free Software Foundation, Inc.
15807 Copying and distribution of this file, with or without modification,
15808 are permitted in any medium without royalty provided the copyright
15809 notice and this notice are preserved.