Daily bump.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2021-07-20  Martin Sebor  <msebor@redhat.com>
2
3         PR middle-end/101397
4         * builtins.c (gimple_call_return_array): Add argument.  Correct
5         offsets for memchr, mempcpy, stpcpy, and stpncpy.
6         (compute_objsize_r): Adjust offset computation for argument returning
7         built-ins.
8
9 2021-07-20  Martin Sebor  <msebor@redhat.com>
10
11         PR middle-end/101300
12         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
13
14 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
15
16         * function.c (assign_parm_setup_block): Use adjust_address instead
17         of change_address to preserve MEM_EXPR and friends.
18
19 2021-07-20  Martin Sebor  <msebor@redhat.com>
20
21         * cfgloop.h (single_likely_exit): Adjust by-value argument to
22         by-const-reference.
23         * cfgloopanal.c (single_likely_exit): Same.
24         * cgraph.h (struct cgraph_node): Same.
25         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
26         * genautomata.c (merge_states): Same.
27         * genextract.c (VEC_char_to_string): Same.
28         * genmatch.c (dt_node::gen_kids_1): Same.
29         (walk_captures): Adjust by-value argument to by-reference.
30         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
31         to by-const-reference.
32         * gimple.c (gimple_build_call_vec): Same.
33         (gimple_build_call_internal_vec): Same.
34         (gimple_build_switch): Same.
35         (sort_case_labels): Same.
36         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
37         by-reference.
38         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
39         by-const-reference.
40         (gimple_build_call_internal_vec): Same.
41         (gimple_build_switch): Same.
42         (sort_case_labels): Same.
43         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
44         by-reference.
45         * haifa-sched.c (calc_priorities): Adjust by-value argument to
46         by-const-reference.
47         (sched_init_luids): Same.
48         (haifa_init_h_i_d): Same.
49         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
50         (adjust_callers_for_value_intersection): Adjust by-value argument to
51         by-reference.
52         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
53         by-const-reference.
54         (find_more_contexts_for_caller_subset): Same.
55         (find_aggregate_values_for_callers_subset): Same.
56         (copy_useful_known_contexts): Same.
57         * ipa-fnsummary.c (remap_edge_summaries): Same.
58         (remap_freqcounting_predicate): Same.
59         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
60         by-reference.
61         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
62         to by-const-reference.
63         * ipa-predicate.h (predicate::remap_after_inlining): Same.
64         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
65         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
66         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
67         * read-rtl.c (add_overload_instance): Same.
68         * rtl.h (native_decode_rtx): Same.
69         (native_decode_vector_rtx): Same.
70         * sched-int.h (sched_init_luids): Same.
71         (haifa_init_h_i_d): Same.
72         * simplify-rtx.c (native_decode_vector_rtx): Same.
73         (native_decode_rtx): Same.
74         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
75         (shrink_wrap_one_built_in_call_with_conds): Same.
76         (shrink_wrap_conditional_dead_built_in_calls): Same.
77         * tree-data-ref.c (create_runtime_alias_checks): Same.
78         (compute_all_dependences): Same.
79         * tree-data-ref.h (compute_all_dependences): Same.
80         (create_runtime_alias_checks): Same.
81         (index_in_loop_nest): Same.
82         * tree-if-conv.c (mask_exists): Same.
83         * tree-loop-distribution.c (class loop_distribution): Same.
84         (loop_distribution::create_rdg_vertices): Same.
85         (dump_rdg_partitions): Same.
86         (debug_rdg_partitions): Same.
87         (partition_contains_all_rw): Same.
88         (loop_distribution::distribute_loop): Same.
89         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
90         (oacc_entry_exit_single_gang): Same.
91         * tree-ssa-loop-im.c (hoist_memory_references): Same.
92         (loop_suitable_for_sm): Same.
93         * tree-ssa-loop-niter.c (bound_index): Same.
94         * tree-ssa-reassoc.c (update_ops): Same.
95         (swap_ops_for_binary_stmt): Same.
96         (rewrite_expr_tree): Same.
97         (rewrite_expr_tree_parallel): Same.
98         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
99         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
100         * tree-ssa-structalias.c (process_all_all_constraints): Same.
101         (make_constraints_to): Same.
102         (handle_lhs_call): Same.
103         (find_func_aliases_for_builtin_call): Same.
104         (sort_fieldstack): Same.
105         (check_for_overlaps): Same.
106         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
107         (vect_create_cond_for_unequal_addrs): Same.
108         (vect_create_cond_for_lower_bounds): Same.
109         (vect_create_cond_for_alias_checks): Same.
110         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
111         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
112         (vect_make_slp_decision): Same.
113         (vect_slp_bbs): Same.
114         (duplicate_and_interleave): Same.
115         (vect_transform_slp_perm_load): Same.
116         (vect_schedule_slp): Same.
117         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
118         (vect_schedule_slp): Same.
119         (duplicate_and_interleave): Same.
120         * tree.c (build_vector_from_ctor): Same.
121         (build_vector): Same.
122         (check_vector_cst): Same.
123         (check_vector_cst_duplicate): Same.
124         (check_vector_cst_fill): Same.
125         (check_vector_cst_stepped): Same.
126         * tree.h (build_vector_from_ctor): Same.
127
128 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
129
130         PR target/101384
131         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
132         type from bool to int.
133         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
134         EASY_VECTOR_MSB case if either step or copies is not 1.
135         (vspltis_shifted): Fix comment typo.
136         (easy_altivec_constant): Change return type from bool to int, instead
137         of returning true return byte size of the element mode that should be
138         used to synthetize the constant.
139         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
140         that vspltis_shifted is 0, handle the case where easy_altivec_constant
141         assumes using different vector mode from CONST_VECTOR's mode.
142         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
143         easy_altivec_constant to determine mode in which -1 >> -1 should be
144         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
145
146 2021-07-20  Richard Biener  <rguenther@suse.de>
147
148         PR debug/101473
149         * dwarf2out.h (dwarf_file_data): Add key member.
150         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
151         (dwarf_file_hasher::hash): Hash key.
152         (lookup_filename): Remap the filename and store it in the
153         filename member of dwarf_file_data when creating a new
154         dwarf_file_data.
155         (file_name_acquire): Do not remap the filename again.
156         (maybe_emit_file): Likewise.
157
158 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
159
160         * config/aarch64/aarch64-simd-builtins.def: Use two variant
161         generators for all TBL/TBX intrinsics and rename to
162         consistent forms: qtbl[1234] or qtbx[1234].
163         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
164         Rename to...
165         (aarch64_qtbl1<mode>): This.
166         (aarch64_tbx1<mode>): Rename to...
167         (aarch64_qtbx1<mode>): This.
168         (aarch64_tbl2v16qi): Delete.
169         (aarch64_tbl3<mode>): Rename to...
170         (aarch64_qtbl2<mode>): This.
171         (aarch64_tbx4<mode>): Rename to...
172         (aarch64_qtbx2<mode>): This.
173         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
174         renamed qtbl1 and qtbl2 RTL patterns.
175         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
176         RTL pattern.
177         (vqtbl1_s8): Likewise.
178         (vqtbl1_u8): Likewise.
179         (vqtbl1q_p8): Likewise.
180         (vqtbl1q_s8): Likewise.
181         (vqtbl1q_u8): Likewise.
182         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
183         (vqtbx1_u8): Likewise.
184         (vqtbx1_p8): Likewise.
185         (vqtbx1q_s8): Likewise.
186         (vqtbx1q_u8): Likewise.
187         (vqtbx1q_p8): Likewise.
188         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
189         (vtbl1_u8): Likewise.
190         (vtbl1_p8): Likewise.
191         (vtbl2_s8): Likewise
192         (vtbl2_u8): Likewise.
193         (vtbl2_p8): Likewise.
194         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
195         (vtbl3_u8): Likewise.
196         (vtbl3_p8): Likewise.
197         (vtbl4_s8): Likewise.
198         (vtbl4_u8): Likewise.
199         (vtbl4_p8): Likewise.
200         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
201         (vtbx2_u8): Likewise.
202         (vtbx2_p8): Likewise.
203         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
204         (vqtbl2_u8): Likewise.
205         (vqtbl2_p8): Likewise.
206         (vqtbl2q_s8): Likewise.
207         (vqtbl2q_u8): Likewise.
208         (vqtbl2q_p8): Likewise.
209         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
210         (vqtbx2_u8): Likewise.
211         (vqtbx2_p8): Likewise.
212         (vqtbx2q_s8): Likewise.
213         (vqtbx2q_u8): Likewise.
214         (vqtbx2q_p8): Likewise.
215         (vtbx4_s8): Likewise.
216         (vtbx4_u8): Likewise.
217         (vtbx4_p8): Likewise.
218
219 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
220
221         PR target/100182
222         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
223         Remove.
224         (define_peephole2 atomic_loaddi_fpu): Ditto.
225
226 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
227
228         * config.gcc (riscv*-*-*): Detect which python is available.
229
230 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
231
232         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
233         (smul<mode>3_highpart): ... this.
234         (mulhu_<mode>): Rename to...
235         (umul<mode>3_highpart): ... this.
236         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
237         MULHU_V2DI, MULHU_V4SI): Adjust.
238
239 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
240
241         PR tree-optimization/100696
242         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
243         * internal-fn.def (IFN_MULH): New internal function.
244         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
245         recog normal multiply highpart as IFN_MULH.
246         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
247         function CFN_MULH.
248
249 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
250
251         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
252         (BTF_DEBUGGING_INFO): Likewise.
253         * doc/tm.texi.in: Document the new macros.
254         * doc/tm.texi: Regenerated.
255         * toplev.c: Guard initialization of debug hooks.
256
257 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
258
259         * flags.h (ctf_debuginfo_p): New function declaration.
260         * opts.c (ctf_debuginfo_p): New function definition.
261
262 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
263
264         PR target/100208
265         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
266         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
267         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
268         * config/gcn/gcn-valu.md: Add a warning comment.
269         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
270         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
271         * config/gcn/gcn.md: Add a warning comment.
272         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
273         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
274         SRAM-ECC flag.
275         (EF_AMDGPU_XNACK): New.
276         (EF_AMDGPU_SRAM_ECC): New.
277         (elf_flags): New.
278         (copy_early_debug_info): Use elf_flags.
279         (main): Handle -mxnack and -msram-ecc options.
280         * doc/invoke.texi: Document -mxnack and -msram-ecc.
281
282 2021-07-19  Andrew Pinski  <apinski@marvell.com>
283
284         PR target/101205
285         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
286         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
287
288 2021-07-19  Richard Biener  <rguenther@suse.de>
289
290         PR tree-optimization/101505
291         * tree-vect-patterns.c (vect_determine_precisions): Walk
292         PHIs also for loop vectorization.
293
294 2021-07-19  Richard Biener  <rguenther@suse.de>
295
296         * gimple.h (gimple_expr_type): Remove.
297         * doc/gimple.texi: Remove gimple_expr_type documentation.
298
299 2021-07-19  Richard Biener  <rguenther@suse.de>
300
301         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
302         (ao_ref_init_from_vn_reference): Likewise.
303         (fully_constant_reference): Likewise.
304         (vn_reference_lookup_call): Do not set vr->type to random
305         values.
306         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
307         without a value.
308         * tree-vect-generic.c (expand_vector_piecewise): Pass in
309         whether we expanded parallel.
310         (expand_vector_parallel): Adjust.
311         (expand_vector_addition): Likewise.
312         (expand_vector_comparison): Likewise.
313         (expand_vector_operation): Likewise.
314         (expand_vector_scalar_condition): Likewise.
315         (expand_vector_conversion): Likewise.
316
317 2021-07-19  Richard Biener  <rguenther@suse.de>
318
319         * tree-vrp.c (register_edge_assert_for_2): Use the
320         type from the LHS.
321         (vrp_folder::fold_predicate_in): Likewise.
322         * vr-values.c (gimple_assign_nonzero_p): Likewise.
323         (vr_values::extract_range_from_comparison): Likewise.
324         (vr_values::extract_range_from_ubsan_builtin): Use the
325         type of the first operand.
326         (vr_values::extract_range_basic): Push down type
327         computation, use the appropriate LHS.
328         (vr_values::extract_range_from_assignment): Use the
329         type of the LHS.
330
331 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
332
333         PR target/101492
334         * common/config/i386/i386-common.c (ix86_handle_option): For
335         -mgeneral-regs-only, enable the GPR only instructions which are
336         enabled implicitly by SSE ISAs unless they have been disabled
337         explicitly.
338
339 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
340
341         PR target/101495
342         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
343         ix86_avx_u128_mode_needed.
344         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
345         returns AVX register.
346
347 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
348
349         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
350         (handle_const_call): Liekise
351         (handle_pure_call): Liekise
352
353 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
354
355         PR tree-optimization/96542
356         * range-op.cc (range_operator::wi_fold_in_parts): New.
357         (range_operator::fold_range): Call wi_fold_in_parts.
358         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
359         * range-op.h (wi_fold_in_parts): Add prototype.
360
361 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
362
363         * doc/analyzer.texi: Add __analyzer_dump_state.
364
365 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
366
367         * config/rs6000/rbtree.c: New file.
368         * config/rs6000/rbtree.h: New file.
369
370 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
371
372         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
373         (typeinfo): Add restr field.
374         (match_bracketed_pair): New function.
375         (match_const_restriction): Implement.
376
377 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
378
379         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
380
381 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
382
383         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
384         (basetype): Likewise.
385         (typeinfo): Likewise.
386         (handle_pointer): New function.
387         (match_basetype): New stub function.
388         (match_const_restriction): Likewise.
389         (match_type): New function.
390
391 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
392
393         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
394         function.
395         (advance_line): Likewise.
396         (safe_inc_pos): Likewise.
397         (match_identifier): Likewise.
398         (match_integer): Likewise.
399         (match_to_right_bracket): Likewise.
400
401 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
402
403         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
404         (ovld_file): Likewise.
405         (header_file): Likewise.
406         (init_file): Likewise.
407         (defines_file): Likewise.
408         (pgm_path): Likewise.
409         (bif_path): Likewise.
410         (ovld_path): Likewise.
411         (header_path): Likewise.
412         (init_path): Likewise.
413         (defines_path): Likewise.
414         (LINELEN): New macro.
415         (linebuf): New variable.
416         (line): Likewise.
417         (pos): Likewise.
418         (diag): Likewise.
419         (bif_diag): New function.
420         (ovld_diag): Likewise.
421
422 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
423
424         * config/rs6000/rs6000-builtin-new.def: New.
425         * config/rs6000/rs6000-overload.def: New.
426
427 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
428
429         * config/rs6000/rs6000-gen-builtins.c: New.
430
431 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
432
433         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
434         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
435         * gengtype-state.c (state_writer::write_state_file_list): Add a
436         parameter to the fileslist expression for the number of build
437         headers to scan.
438         (read_state_files_list): Detect build headers and strip the
439         initial "./" or ".\" from their names.
440         * gengtype.c (build_headers): New global variable.
441         (num_build_headers): Likewise.
442         (open_base_files): Emit #include for each build header.
443         (main): Detect and count build headers.
444         * gengtype.h (build_headers): New extern variable.
445         (num_build_headers): Likewise.
446
447 2021-07-16  Richard Biener   <rguenther@suse.de>
448
449         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
450         the type of the LHS.
451         (find_bswap_or_nop_1): Likewise.
452         (find_bswap_or_nop): Likewise.
453         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
454         prototype.
455         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
456         Remove unused parameters, pass in the scalar type.  Fix
457         internal store function handling.
458         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
459         (vect_get_vector_types_for_stmt): Move down check for
460         existing vector stmt after we've determined a scalar type.
461         Pass down the used scalar type to vect_get_smallest_scalar_type.
462         * tree-vect-generic.c (expand_vector_condition): Use
463         the type of the LHS.
464         (expand_vector_scalar_condition): Likewise.
465         (expand_vector_operations_1): Likewise.
466         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
467         (vect_recog_dot_prod_pattern): Likewise.
468         (vect_recog_sad_pattern): Likewise.
469         (vect_recog_widen_op_pattern): Likewise.
470         (vect_recog_widen_sum_pattern): Likewise.
471         (vect_recog_mixed_size_cond_pattern): Likewise.
472
473 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
474
475         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
476         (dump_eaf_flags): Dump EAF_NOT_RETURNED
477         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
478         and EAF_NOT_RETURNED.
479         (modref_summary::useful_p): Likewise.
480         (modref_summary_lto::useful_p): Likewise.
481         (struct) modref_summary_lto: Use eaf_fleags_t.
482         (deref_flags): Handle EAF_NOT_RETURNED.
483         (struct escape_point): Use min_flags.
484         (modref_lattice::init): Add EAF_NOT_RETURNED.
485         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
486         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
487         handle call flags.
488         (analyze_parms): Also analyze const functions; update conition on
489         flags usefulness.
490         (modref_write): Update streaming.
491         (read_section): Update streaming.
492         (remap_arg_flags): Use eaf_flags_t.
493         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
494         * ipa-modref.h: (eaf_flags_t): New typedef.
495         (struct modref_summary): Use eaf_flags_t.
496         * tree-core.h (EAF_NOT_RETURNED): New constant.
497
498 2021-07-16  Richard Biener  <rguenther@suse.de>
499
500         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
501         the type of the LHS.
502         (gimple_assign_nonnegative_warnv_p): Likewise.
503         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
504         if the call has no LHS.
505         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
506         * tree-eh.c (stmt_could_throw_1_p): Likewise.
507         * tree-inline.c (insert_init_stmt): Likewise.
508         * tree-ssa-loop-niter.c (get_val_for): Likewise.
509         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
510         the def.
511         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
512         gassign *.  Use the type of the lhs.
513         (vn_nary_op_lookup_stmt): Adjust.
514         (vn_nary_op_insert_stmt): Likewise.
515
516 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
517
518         * config/s390/predicates.md (bras_sym_operand): Accept all
519         functions in 64-bit mode, use UNSPEC_PLT31.
520         (larl_operand): Use UNSPEC_PLT31.
521         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
522         (legitimize_pic_address): Likewise.
523         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
524         use UNSPEC_PLT31.
525         (s390_delegitimize_address): Use UNSPEC_PLT31.
526         (s390_output_addr_const_extra): Likewise.
527         (print_operand): Add @PLT to TLS calls, handle %K.
528         (s390_function_profiler): Mark __fentry__/_mcount as function,
529         use %K, use UNSPEC_PLT31.
530         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
531         (s390_emit_call): Use UNSPEC_PLT31.
532         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
533         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
534         (*movdi_64): Use %K.
535         (reload_base_64): Likewise.
536         (*sibcall_brc): Likewise.
537         (*sibcall_brcl): Likewise.
538         (*sibcall_value_brc): Likewise.
539         (*sibcall_value_brcl): Likewise.
540         (*bras): Likewise.
541         (*brasl): Likewise.
542         (*bras_r): Likewise.
543         (*brasl_r): Likewise.
544         (*bras_tls): Likewise.
545         (*brasl_tls): Likewise.
546         (main_base_64): Likewise.
547         (reload_base_64): Likewise.
548         (@split_stack_call<mode>): Likewise.
549
550 2021-07-16  Richard Biener  <rguenther@suse.de>
551
552         PR tree-optimization/101467
553         * tree-vect-stmts.c (vect_gen_while): Properly guard
554         make_temp_ssa_name usage.
555
556 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
557
558         * config.gcc: Don't use forked print-sysroot-suffix.sh and
559         t-sysroot-suffix for C-SKY.
560         * config/csky/print-sysroot-suffix.sh: Delete.
561         * config/csky/t-csky-linux: Delete.
562         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
563         instead of CSKY_MULTILIB_DIRNAMES.
564
565 2021-07-16  Richard Biener  <rguenther@suse.de>
566
567         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
568         conversion issues with the partial reduction of the reused
569         vector accumulator.
570
571 2021-07-16  Richard Biener  <rguenther@suse.de>
572
573         * config/i386/i386-options.c (ix86_option_override_internal): Set
574         param_vect_partial_vector_usage to zero if not set.
575
576 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
577
578         PR target/101346
579         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
580         (VALID_INT_MODE_P): Add SDmode and DDmode.
581         Add TDmode for TARGET_64BIT.
582         (VALID_DFP_MODE_P): Remove.
583         * config/i386/i386.c (ix86_hard_regno_mode_ok):
584         Do not use VALID_DFP_MODE_P.
585
586 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
587
588         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
589         gimple_range_type.
590         (fold_using_range::fold_stmt): Ditto.
591         (fold_using_range::range_of_range_op): Ditto.
592         (fold_using_range::range_of_phi): Ditto.
593         (fold_using_range::range_of_call): Ditto.
594         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
595         (fold_using_range::range_of_builtin_call): Ditto.
596         (fold_using_range::range_of_cond_expr): Ditto.
597         * gimple-range-fold.h (gimple_range_type): New.
598
599 2021-07-15  Martin Sebor  <msebor@redhat.com>
600
601         PR middle-end/97027
602         * tree-ssa-strlen.c (handle_assign): New function.
603         (maybe_warn_overflow): Add argument.
604         (nonzero_bytes_for_type): New function.
605         (count_nonzero_bytes): Handle more tree types.  Call
606         nonzero_bytes_for_tye.
607         (count_nonzero_bytes): Handle types.
608         (handle_store): Handle stores from function calls.
609         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
610         it for assignments from function calls.
611
612 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
613
614         PR analyzer/95006
615         PR analyzer/94713
616         PR analyzer/94714
617         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
618
619 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
620
621         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
622
623 2021-07-15  Martin Sebor  <msebor@redhat.com>
624
625         PR c/101289
626         PR c/97548
627         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
628         (operand_compare::verify_hash_value): Same.
629         * tree-core.h (OEP_DECL_NAME): New.
630
631 2021-07-15  Martin Jambor  <mjambor@suse.cz>
632
633         * profile-count.h (profile_count::value): Change the return type to
634         uint64_t.
635         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
636         statement.
637         * tree-cfg.c (dump_function_to_file): Likewise.
638
639 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
640
641         PR target/101129
642         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
643         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
644         not swappable.
645
646 2021-07-15  Richard Biener  <rguenther@suse.de>
647
648         * tree-vectorizer.h (vect_gen_while): Match up with
649         vect_gen_while_not.
650         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
651         of vect_gen_while_not.
652         (vect_gen_while_not): Adjust.
653         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
654
655 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
656
657         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
658         (ranger_cache::range_of_def): Call adjust_range.
659         (ranger_cache::entry_range): Same.
660         * gimple-range-cache.h (non_null_ref::adjust_range): New.
661         * gimple-range.cc (gimple_ranger::range_of_expr): Call
662         adjust_range.
663         (gimple_ranger::range_on_entry): Same.
664
665 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
666
667         Revert:
668         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
669
670         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
671
672 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
673
674         Revert:
675         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
676
677         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
678         (sdot_prod, udot_prod): ...These.
679         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
680         (aarch64_<sur>dot<vsi2qi>): Rename to...
681         (<sur>dot_prod<vsi2qi>): ...This.
682         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
683         Update builtins.
684
685 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
686
687         PR middle-end/101437
688         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
689         types even if they have non-BLKmode TYPE_MODE.
690
691 2021-07-15  Richard Biener  <rguenther@suse.de>
692
693         PR driver/101383
694         * gcc.c (process_command): Process -gtoggle like process_options
695         would after parsing options.
696
697 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
698
699         * cfgexpand.c (expand_asm_loc): Adjust.
700         (expand_asm_stmt): Likewise.
701         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
702         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
703         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
704         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
705         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
706         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
707         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
708         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
709         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
710         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
711         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
712         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
713         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
714         * doc/tm.texi: Regenerate.
715         * target.def: Add location argument to md_asm_adjust.
716
717 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
718
719         * tree-diagnostic.c (diagnostic_report_current_function): Use the
720         diagnostic's location, not input_location.
721
722 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
723
724         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
725         diagnostics.
726         (expand_asm_stmt): Likewise.
727
728 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
729
730         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
731         addressed memory rtx, if any.
732         (rs6000_split_multireg_move): Fix code formatting.
733         Handle MMA build built-ins with operands in adjacent memory locations.
734
735 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
736
737         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
738         in the file.
739
740 2021-07-14  Jason Merrill  <jason@redhat.com>
741
742         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
743
744 2021-07-14  Jason Merrill  <jason@redhat.com>
745
746         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
747         C++.
748
749 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
750
751         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
752         Remove erroneous line.
753
754 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
755
756         * params.opt (param_evrp_mode): Change default.
757
758 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
759
760         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
761         (sdot_prod, udot_prod): ...These.
762         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
763         (aarch64_<sur>dot<vsi2qi>): Rename to...
764         (<sur>dot_prod<vsi2qi>): ...This.
765         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
766         Update builtins.
767
768 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
769
770         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
771
772 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
773
774         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
775
776 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
777
778         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
779
780 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
781
782         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
783         (usdot_prod<vsi2qi>): ... This.
784         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
785         (usdot_prod): ...This.
786         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
787         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
788         Rename to...
789         (@<sur>dot_prod<vsi2qi>): ...This.
790         * config/aarch64/aarch64-sve-builtins-base.cc
791         (svusdot_impl::expand): Use it.
792
793 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
794
795         * optabs.def (usdot_prod_optab): New.
796         * doc/md.texi: Document it and clarify other dot prod optabs.
797         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
798         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
799         * optabs.c (expand_widen_pattern_expr): Likewise.
800         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
801         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
802         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
803         optab subtype.
804         (vect_widened_op_tree): Optionally ignore
805         mismatch types.
806         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
807
808 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
809
810         PR target/101395
811         * config/i386/driver-i386.c (host_detect_local_cpu): Check
812         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
813         Enable UINTR only for 64-bit codegen.
814         * config/i386/i386-options.c
815         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
816         in 64-bit mode.
817         * config/i386/i386.h (ARCH_ARG): New.
818         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
819         "[arch|tune] 64" for 64-bit codegen.
820
821 2021-07-14  Richard Biener  <rguenther@suse.de>
822
823         PR tree-optimization/101445
824         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
825         of the IV in the correct direction for negative stride
826         accesses.
827
828 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
829
830         PR go/101407
831         * godump.c (godump_str_hash): New type.
832         (godump_container::pot_dummy_types): Use string_hash instead of
833         ptr_hash in the hash_set.
834
835 2021-07-14  Richard Biener  <rguenther@suse.de>
836
837         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
838         vector types where the old vector type has a multiple of
839         the new vector type elements.
840         (vect_create_partial_epilog): New function, split out from...
841         (vect_create_epilog_for_reduction): ... here.
842         (vect_transform_cycle_phi): Reduce the re-used accumulator
843         to the new vector type.
844
845 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
846
847         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
848         non-'t'-sized arg check.
849
850 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
851
852         * tree-cfg.c (cleanup_dead_labels_eh): Update
853         post_landing_pad label upon change of landing pad block's
854         primary label.
855         (cleanup_dead_labels): Check that a removed label is not that
856         of a landing pad.
857
858 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
859
860         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
861         simplification.
862         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
863         Add Neon to general purpose register case for zero-extend
864         pattern.
865         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
866         case to prevent some cases opting to go through memory.
867         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
868         * rtl.c (rtvec_series_p): Define predicate to determine
869         whether a vector contains a linear series of integers.
870         * rtl.h (rtvec_series_p): Define.
871         * rtlanal.c (vec_series_lowpart_p): Define predicate to
872         determine if a vector selection is equivalent to the low part
873         of the vector.
874         * rtlanal.h (vec_series_lowpart_p): Define.
875         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
876         Add vec_select -> subreg simplification.
877
878 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
879
880         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
881         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
882         _mm_test_mix_ones_zeros): New.
883
884 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
885             Richard Biener  <rguenther@suse.de>
886
887         * gimple.c (gimple_could_trap_p_1):  Make S argument a
888         "const gimple*".  Preserve constness in call to
889         gimple_asm_volatile_p.
890         (gimple_could_trap_p): Make S argument a "const gimple*".
891         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
892         Update function prototypes.
893
894 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
895
896         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
897         (_loop_vec_info::main_loop_edge): New field.
898         (_loop_vec_info::skip_main_loop_edge): Likewise.
899         (_loop_vec_info::skip_this_loop_edge): Likewise.
900         (_loop_vec_info::reusable_accumulators): Likewise.
901         (_stmt_vec_info::reduc_scalar_results): Likewise.
902         (_stmt_vec_info::reused_accumulator): Likewise.
903         (vect_get_main_loop_result): Declare.
904         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
905         reduc_scalar_inputs.
906         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
907         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
908         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
909         skip_main_loop_edge and skip_this_loop_edge fields.
910         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
911         (vect_emit_reduction_init_stmts): New function.
912         (get_initial_def_for_reduction): Use it.
913         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
914         parameter to a loop_vec_info.
915         (vect_create_epilog_for_reduction): Store the scalar results
916         in the reduc_info.  If an epilogue loop is reusing an accumulator
917         from the main loop, and if the epilogue loop can also be skipped,
918         try to place the reduction code in the join block.  Record
919         accumulators that could potentially be reused by epilogue loops.
920         (vect_transform_cycle_phi): When vectorizing epilogue loops,
921         try to reuse accumulators from the main loop.  Record the initial
922         value in reduc_info for non-SLP reductions too.
923
924 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
925
926         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
927         adjustment handling.  Take the neutral value as an argument,
928         in place of the code argument.
929         (vect_transform_cycle_phi): Update accordingly.  Handle the
930         initial values of cond reductions separately from code reductions.
931         Choose the adjustment here rather than in
932         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
933
934 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
935
936         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
937         (neutral_op_for_reduction): ...this, providing a more general
938         interface.
939         (vect_create_epilog_for_reduction): Update accordingly.
940         (vectorizable_reduction): Likewise.
941         (vect_transform_cycle_phi): Likewise.
942
943 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
944
945         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
946         reduc_info instead of the original stmt_vec_info.
947         (vect_transform_cycle_phi): Update accordingly.
948
949 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
950
951         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
952         reduc_info as an additional parameter.
953         (vect_transform_cycle_phi): Update accordingly.
954
955 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
956
957         * tree-vectorizer.h: Include tree-ssa-operands.h.
958         (vect_phi_initial_value): New function.
959         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
960         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
961         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
962         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
963
964 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
965
966         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
967         the phi results to vectype after creating them.  Remove later
968         conversion code that thus becomes redundant.
969
970 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
971
972         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
973         the new_phis vector with a reduc_inputs vector.  Combine handling
974         of reduction chains and ncopies > 1.
975
976 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
977
978         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
979         scalar_results to group_size elements after reducing down from
980         N*group_size elements.  Construct an array_slice of the live-out
981         stmts and assert that there is one stmt per scalar result.
982
983 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
984
985         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
986         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
987         assignment to "loop".
988
989 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
990
991         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
992         vector types first.  For scalar types, consider both the preferred
993         vector mode and the alternative vector modes.
994         * optabs-query.c (can_vec_mask_load_store_p): Use the same
995         structure as above, in particular using related_vector_mode
996         for modes provided by autovectorize_vector_modes.
997
998 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
999             Richard Biener  <rguenther@suse.de>
1000
1001         PR tree-optimization/101419
1002         * tree-pass.h (PROP_objsz): Define.
1003         (make_pass_early_object_sizes): Declare.
1004         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
1005         there to pass_early_object_sizes, drop parameter.
1006         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
1007         drop parameter, move pass_post_ipa_warn right after that.
1008         * tree-object-size.c (pass_object_sizes::execute): Rename to...
1009         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
1010         (pass_data_object_sizes): Move after object_sizes_execute.
1011         (pass_object_sizes): Likewise.  In execute method call
1012         object_sizes_execute, drop set_pass_param method and insert_min_max_p
1013         non-static data member and its initializer in the ctor.
1014         (pass_data_early_object_sizes, pass_early_object_sizes,
1015         make_pass_early_object_sizes): New.
1016         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
1017         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
1018
1019 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
1020
1021         PR target/101275
1022         * config/riscv/constraints.md ("S"): Update description and remove
1023         @internal.
1024         * doc/md.texi (Machine Constraints): Document the 'S' constraints
1025         for RISC-V.
1026
1027 2021-07-13  Richard Biener  <rguenther@suse.de>
1028
1029         Revert:
1030         2021-07-12  Richard Biener  <rguenther@suse.de>
1031
1032         * tree-vect-slp.c (vect_slp_region): Show the number of
1033         SLP graph entries in the optimization message.
1034
1035 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
1036
1037         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
1038         value to to long.
1039         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
1040         return type to long.
1041         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
1042         type to long.
1043
1044 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
1045
1046         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
1047         Query relation between the 2 operands and use it.
1048
1049 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
1050
1051         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
1052
1053 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
1054
1055         PR target/101424
1056         * config/i386/predicates.md (vec_setm_sse41_operand):
1057         Rename from vec_setm_operand.
1058         (vec_setm_avx2_operand): New predicate.
1059         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
1060         Use vec_setm_sse41_operand as operand 2 predicate.
1061         (vec_set<V_256_512:mode): New expander.
1062         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
1063         as operand 2 predicate.
1064
1065 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
1066
1067         PR tree-optimization/101335
1068         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
1069
1070 2021-07-12  Andrew Pinski  <apinski@marvell.com>
1071
1072         * tree-ssa-phiopt.c (match_simplify_replacement): Move
1073         insert of the sequence before the movement of the
1074         statement. Check if to see if the statement is used
1075         outside of the original phi to see if we should move it.
1076
1077 2021-07-12  Richard Biener  <rguenther@suse.de>
1078
1079         * dump-context.h (debug_dump_context::debug_dump_context):
1080         Add FILE * parameter defaulted to stderr.
1081         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
1082         * tree-vect-slp.c (dot_slp_tree): New functions.
1083
1084 2021-07-12  Richard Biener  <rguenther@suse.de>
1085
1086         PR tree-optimization/101373
1087         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
1088         references when the BB may not return.
1089         (compute_avail): Pass in the function we're working on and
1090         replace cfun references with it.  Externally throwing
1091         const calls also possibly terminate the function.
1092         (pass_pre::execute): Pass down the function we're working on.
1093         * gcse.c (compute_hash_table_work): Externally throwing
1094         const/pure calls also need record_last_mem_set_info.
1095         * postreload-gcse.c (record_opr_changes): Looping or externally
1096         throwing const/pure calls also need record_last_mem_set_info.
1097
1098 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
1099
1100         * recog.c (memory_address_addr_space_p): Change the type to bool.
1101         Return true/false instead of 1/0.
1102         (offsettable_memref_p): Ditto.
1103         (offsettable_nonstrict_memref_p): Ditto.
1104         (offsettable_address_addr_space_p): Ditto.
1105         Change the type of addressp indirect function to bool.
1106         * recog.h (memory_address_addr_space_p): Change the type to bool.
1107         (strict_memory_address_addr_space_p): Ditto.
1108         (offsettable_memref_p): Ditto.
1109         (offsettable_nonstrict_memref_p): Ditto.
1110         (offsettable_address_addr_space_p): Ditto.
1111         * reload.c (maybe_memory_address_addr_space_p): Ditto.
1112         (strict_memory_address_addr_space_p): Change the type to bool.
1113         Return true/false instead of 1/0.
1114         (maybe_memory_address_addr_space_p): Change the type to bool.
1115
1116 2021-07-12  Richard Biener  <rguenther@suse.de>
1117
1118         * tree-vect-slp.c (vect_slp_region): Show the number of
1119         SLP graph entries in the optimization message.
1120
1121 2021-07-12  Richard Biener  <rguenther@suse.de>
1122
1123         PR tree-optimization/101394
1124         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
1125         copies from abnormals for a full redundancy.
1126
1127 2021-07-12  Richard Biener  <rguenther@suse.de>
1128
1129         PR middle-end/101423
1130         * gimple.c (gimple_could_trap_p_1): Internal function calls
1131         do not trap.
1132         * tree-eh.c (tree_could_trap_p): Likewise.
1133
1134 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
1135
1136         PR target/66791
1137         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
1138         __a * __b.
1139         (vmulq_n_u32): Likewise.
1140         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
1141         (vmulq_n_f32): Likewise.
1142         (vmul_n_f16): Likewise.
1143         (vmulq_n_f16): Likewise.
1144
1145 2021-07-12  Martin Liska  <mliska@suse.cz>
1146
1147         PR sanitizer/101425
1148         * gcc.c (check_offload_target_name): Call
1149           candidates_list_and_hint only if we have a candidate.
1150
1151 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
1152
1153         PR target/98435
1154         * config/arm/neon.md (vec_init): Move to ...
1155         * config/arm/vec-common.md (vec_init): ... here.
1156         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
1157
1158 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
1159
1160         PR tree-optimization/101403
1161         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
1162         signedness of the shift is not the same as the signedness of
1163         the type extension.
1164
1165 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
1166             Uroš Bizjak  <ubizjak@gmail.com>
1167
1168         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
1169         divmod of a constant numerator with new define_insn_and_split.
1170
1171 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
1172
1173         PR target/100152
1174         * config/i386/i386-expand.c (ix86_expand_call): If a call is
1175         to a non-local-binding, or local but to a public symbol, then
1176         assume that it might be indirected via the lazy symbol binder.
1177         Mark R10 and R10 as clobbered in that case.
1178
1179 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
1180
1181         PR target/101377
1182         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
1183         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
1184         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
1185
1186 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
1187
1188         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
1189         log2 range of operands[3] to [1,31].
1190         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
1191
1192 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
1193
1194         * doc/md.texi: Don't split @smallexample in multiple @groups.
1195
1196 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
1197
1198         * doc/md.texi: Add missing 'see' word.
1199
1200 2021-07-09  Andrew Pinski  <apinski@marvell.com>
1201
1202         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
1203         to take sequence and gimple_match_op.  Accept the case where
1204         op is a SSA_NAME and one statement in the sequence.
1205         Also allow constants.
1206         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
1207         Update call to phiopt_early_allow.  Discard the sequence if not
1208         used.
1209
1210 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
1211
1212         PR target/100760
1213         PR target/100761
1214         PR target/100762
1215         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
1216         instead of ISA_HAS_MSA.
1217         (mips_expand_vec_unpack): Likewise.
1218         (mips_expand_vector_init): Likewise.
1219
1220 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
1221
1222         * config/rs6000/vsx.md (mods_<mode>): Rename to...
1223         (mod<mode>3): ... this.
1224         (modu_<mode>): Rename to...
1225         (umod<mode>3): ... this.
1226         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
1227         MODU_V4SI): Adjust.
1228
1229 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
1230
1231         * config/h8300/shiftrotate.md (variable shifts): Expose condition
1232         code handling for the test before the loop.
1233
1234 2021-07-08  Martin Jambor  <mjambor@suse.cz>
1235
1236         PR ipa/101066
1237         * ipa-sra.c (class isra_call_summary): New member
1238         m_before_any_store, initialize it in the constructor.
1239         (isra_call_summary::dump): Dump the new field.
1240         (ipa_sra_call_summaries::duplicate): Copy it.
1241         (process_scan_results): Set it.
1242         (isra_write_edge_summary): Stream it.
1243         (isra_read_edge_summary): Likewise.
1244         (param_splitting_across_edge): Only override
1245         safe_to_import_accesses if m_before_any_store is set.
1246
1247 2021-07-08  Martin Sebor  <msebor@redhat.com>
1248
1249         PR bootstrap/101374
1250         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
1251         Use Object Size Type 0 instead of 1.
1252
1253 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
1254
1255         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
1256         if condition.
1257
1258 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
1259
1260         * match.pd: Simplify an extend-operate-truncate sequence involving
1261         a POLY_INT_CST.
1262
1263 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
1264             Richard Biener  <rguenther@suse.de>
1265
1266         PR tree-optimization/40210
1267         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
1268         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
1269         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
1270
1271 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
1272
1273         PR target/100637
1274         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
1275         Handle V4QI mode.
1276         * config/i386/mmx.md (V_32): New mode iterator.
1277         (mov<V_32:mode>): Use V_32 mode iterator.
1278         (*mov<V_32:mode>_internal): Ditto.
1279         (*push<V_32:mode>2_rex64): Ditto.
1280         (*push<V_32:mode>2): Ditto.
1281         (movmisalign<V_32:mode>): Ditto.
1282         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
1283         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
1284         (vec_unpacks_lo_v4qi): New expander.
1285         (vec_unpacks_hi_v4qi): Ditto.
1286         (vec_unpacku_lo_v4qi): Ditto.
1287         (vec_unpacku_hi_v4qi): Ditto.
1288         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
1289         (VALID_INT_MODE_P): Ditto.
1290
1291 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
1292
1293         PR target/100809
1294         * config/rs6000/rs6000.md (udivti3): New insn.
1295         (divti3): New insn.
1296         (umodti3): New insn.
1297         (modti3): New insn.
1298
1299 2021-07-07  Martin Sebor  <msebor@redhat.com>
1300
1301         PR tree-optimization/100137
1302         PR tree-optimization/99121
1303         PR tree-optimization/97027
1304         * builtins.c (access_ref::access_ref): Also set offmax.
1305         (access_ref::offset_in_range): Define new function.
1306         (access_ref::add_offset): Set offmax.
1307         (access_ref::inform_access): Handle access_none.
1308         (handle_mem_ref): Clear ostype.
1309         (compute_objsize_r): Handle ASSERT_EXPR.
1310         * builtins.h (struct access_ref): Add offmax member.
1311         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
1312         compute_objsize() and simplify.
1313
1314 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
1315
1316         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
1317         and VSX_BUILTIN_STXVP.
1318
1319 2021-07-07  Martin Sebor  <msebor@redhat.com>
1320
1321         PR target/101363
1322         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
1323         a stray %K from error_at() missed in r12-2088.
1324
1325 2021-07-07  Richard Biener  <rguenther@suse.de>
1326
1327         PR tree-optimization/99728
1328         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
1329         aggregate copies.
1330         (mem_refs_may_alias_p): Add assert we handled aggregate
1331         copies elsewhere.
1332         (sm_seq_valid_bb): Give up when running into aggregate copies.
1333         (ref_indep_loop_p): Handle aggregate copies as never
1334         being invariant themselves but allow other refs to be
1335         disambiguated against them.
1336         (can_sm_ref_p): Do not try to apply store-motion to aggregate
1337         copies.
1338
1339 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
1340
1341         PR debug/101283
1342         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
1343         number of bits.
1344
1345 2021-07-06  Martin Sebor  <msebor@redhat.com>
1346
1347         * gimple-pretty-print.c (percent_G_format): Remove.
1348         * tree-diagnostic.c (default_tree_printer): Remove calls.
1349         * tree-pretty-print.c (percent_K_format): Remove.
1350         * tree-pretty-print.h (percent_K_format): Remove.
1351
1352 2021-07-06  Martin Sebor  <msebor@redhat.com>
1353
1354         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
1355         Remove %K and use error_at.
1356         (aarch64_expand_fcmla_builtin): Same.
1357         (aarch64_expand_builtin_tme): Same.
1358         (aarch64_expand_builtin_memtag): Same.
1359         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
1360         (arm_expand_builtin): Same.
1361         * config/arm/arm.c (bounds_check): Same.
1362
1363 2021-07-06  Martin Sebor  <msebor@redhat.com>
1364
1365         * builtins.c (warn_string_no_nul): Remove %G.
1366         (maybe_warn_for_bound): Same.
1367         (warn_for_access): Same.
1368         (check_access): Same.
1369         (check_strncat_sizes): Same.
1370         (expand_builtin_strncat): Same.
1371         (expand_builtin_strncmp): Same.
1372         (expand_builtin): Same.
1373         (expand_builtin_object_size): Same.
1374         (warn_dealloc_offset): Same.
1375         (maybe_emit_free_warning): Same.
1376         * calls.c (maybe_warn_alloc_args_overflow): Same.
1377         (maybe_warn_nonstring_arg): Same.
1378         (maybe_warn_rdwr_sizes): Same.
1379         * expr.c (expand_expr_real_1): Remove %K.
1380         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
1381         (gimple_fold_builtin_strncat): Same.
1382         * gimple-ssa-sprintf.c (format_directive): Same.
1383         (handle_printf_call): Same.
1384         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
1385         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
1386         (maybe_diag_access_bounds): Same.  Call gimple_location.
1387         (check_bounds_or_overlap): Same.
1388         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
1389         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
1390         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
1391         (maybe_diag_stxncpy_trunc): Same.
1392         (handle_builtin_stxncpy_strncat): Same.
1393         (maybe_warn_pointless_strcmp): Same.
1394         * tree-ssa-uninit.c (maybe_warn_operand): Same.
1395
1396 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
1397
1398         PR target/97194
1399         * config/i386/predicates.md (vec_setm_operand): Enable
1400         register_operand for TARGET_SSE4_1.
1401         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
1402         as operand 2 predicate.  Call ix86_expand_vector_set_var
1403         for non-constant index operand.
1404         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
1405         Call ix86_expand_vector_set_var for non-constant index operand.
1406
1407 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
1408
1409         * config/h8300/jumpcall.md (*branch): When possible, generate
1410         the comparison in CCZN mode.
1411         * config/h8300/predicates.md (simple_memory_operand): Reject all
1412         auto-increment addressing modes.
1413
1414 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
1415
1416         PR bootstrap/100246
1417         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
1418         this type.
1419
1420 2021-07-06  Richard Biener  <rguenther@suse.de>
1421
1422         * doc/md.texi (vec_fmaddsub<mode>4): Document.
1423         (vec_fmsubadd<mode>4): Likewise.
1424         * optabs.def (vec_fmaddsub$a4): Add.
1425         (vec_fmsubadd$a4): Likewise.
1426         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
1427         (IFN_VEC_FMSUBADD): Likewise.
1428         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
1429         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
1430         (addsub_pattern::build): Likewise.
1431         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
1432         and CFN_VEC_FMSUBADD are not transparent for permutes.
1433         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
1434         (vec_fmsubadd<mode>4): Likewise.
1435
1436 2021-07-06  Richard Biener  <rguenther@suse.de>
1437
1438         * doc/invoke.texi (fmove-loop-stores): Document.
1439         * common.opt (fmove-loop-stores): New option.
1440         * opts.c (default_options_table): Enable -fmove-loop-stores
1441         at -O1 but not -Og.
1442         * tree-ssa-loop-im.c (pass_lim::execute): Pass
1443         flag_move_loop_stores instead of true to
1444         loop_invariant_motion_in_fun.
1445
1446 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
1447
1448         * doc/install.texi: Document --with-dsymutil.
1449
1450 2021-07-06  Andrew Pinski  <apinski@marvell.com>
1451
1452         PR tree-optimization/101256
1453         * dbgcnt.def (phiopt_edge_range): New counter.
1454         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
1455         Check to make sure the new name is defined in the same
1456         bb as the conditional before duplicating range info.
1457         Also add debug counter.
1458
1459 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
1460
1461         PR rtl-optimization/100328
1462         * config/i386/i386-options.c (ix86_option_override_internal):
1463         Set param_ira_consider_dup_in_all_alts to 0.
1464
1465 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
1466
1467         PR rtl-optimization/100328
1468         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
1469         parameter.
1470         * ira.c (ira_get_dup_out_num): Adjust as parameter
1471         param_ira_consider_dup_in_all_alts.
1472         * params.opt (ira-consider-dup-in-all-alts): New.
1473         * ira-conflicts.c (process_regs_for_copy): Add one parameter
1474         single_input_op_has_cstr_p.
1475         (get_freq_for_shuffle_copy): New function.
1476         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
1477         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
1478
1479 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
1480
1481         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
1482         generate condition code aware RTL directly.
1483
1484 2021-07-05  Andrew Pinski  <apinski@marvell.com>
1485
1486         PR tree-optimization/101039
1487         * match.pd (A CMP 0 ? A : -A): New patterns.
1488         * tree-ssa-phiopt.c (abs_replacement): Delete function.
1489         (tree_ssa_phiopt_worker): Don't call abs_replacement.
1490         Update comment about abs_replacement.
1491
1492 2021-07-05  Andrew Pinski  <apinski@marvell.com>
1493
1494         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
1495         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
1496
1497 2021-07-05  Andrew Pinski  <apinski@marvell.com>
1498
1499         * tree-ssa-phiopt.c (match_simplify_replacement):
1500         Add early_p argument. Call gimple_simplify_phiopt
1501         instead of gimple_simplify.
1502         (tree_ssa_phiopt_worker): Update call to
1503         match_simplify_replacement and allow unconditionally.
1504         (phiopt_early_allow): New function.
1505         (gimple_simplify_phiopt): New function.
1506
1507 2021-07-05  Andrew Pinski  <apinski@marvell.com>
1508
1509         PR middle-end/101237
1510         * fold-const.c (negate_expr_p): Remove call to element_mode
1511         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
1512         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
1513         (fold_negate_expr_1): Likewise.
1514         (const_unop): Likewise.
1515         (fold_cond_expr_with_comparison): Likewise.
1516         (fold_binary_loc): Likewise.
1517         (fold_ternary_loc): Likewise.
1518         (tree_call_nonnegative_warnv_p): Likewise.
1519         * match.pd (-(A + B) -> (-B) - A): Likewise.
1520
1521 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
1522
1523         * configure.ac: Handle --with-dsymutil in the same way as we
1524         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
1525         Extract the type and version for the dsymutil configured or
1526         found by the default searches.
1527         * config.in: Regenerated.
1528         * configure: Regenerated.
1529         * collect2.c (do_dsymutil): Handle locating dsymutil in the
1530         same way as for the assembler and  linker.
1531         * config/darwin.h (DSYMUTIL): Delete.
1532         * gcc.c: Report a configured dsymutil correctly.
1533         * exec-tool.in: Allow for dsymutil.
1534
1535 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
1536
1537         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
1538         Handle V4QI and V2HI modes.
1539         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
1540         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
1541         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
1542         Handle 4-byte dual operands with TARGET_XOP and single operands
1543         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
1544         mmx_pshufbv4qi3 for TARGET_SSSE3.
1545         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
1546         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
1547         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
1548         (expand_vec_perm_even_odd_1): Handle V4QI mode.
1549         (expand_vec_perm_broadcast_1): Handle V4QI mode.
1550         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
1551         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
1552         (mmx_pshufbv4qi3): Ditto.
1553         (*mmx_pblendw32): Ditto.
1554         (*mmx_pblendw64): Rename from *mmx_pblendw.
1555         (mmx_punpckhbw_low): New insn_and_split pattern.
1556         (mmx_punpcklbw_low): Ditto.
1557
1558 2021-07-05  Richard Biener  <rguenther@suse.de>
1559
1560         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
1561         set LOOP_C_INFINITE on the vectorized loop.
1562
1563 2021-07-05  Richard Biener  <rguenther@suse.de>
1564
1565         PR middle-end/101291
1566         * cfgloopmanip.c (loop_version): Set the loop copy of the
1567         versioned loop to the new loop.
1568
1569 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
1570
1571         PR target/100269
1572         * config.gcc: Ensure that Darwin biarch definitions are
1573         added before i386.h.
1574         * config/i386/darwin.h (TARGET_64BIT): Remove.
1575         (PR80556_WORKAROUND): New.
1576         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
1577         (DARWIN_SUBARCH_SPEC): New.
1578         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
1579         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
1580         (REAL_LIBGCC_SPEC): Remove.
1581         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
1582         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
1583         (REAL_LIBGCC_SPEC): Remove.
1584
1585 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
1586
1587         PR middle-end/101294
1588         * expr.c (store_constructor): Don't use vec_duplicate on vector.
1589
1590 2021-07-02  Martin Sebor  <msebor@redhat.com>
1591
1592         PR middle-end/98871
1593         PR middle-end/98512
1594         * diagnostic.c (get_any_inlining_info): New.
1595         (update_effective_level_from_pragmas): Handle inlining context.
1596         (diagnostic_enabled): Same.
1597         (diagnostic_report_diagnostic): Same.
1598         * diagnostic.h (struct diagnostic_info): Add ctor.
1599         (struct diagnostic_context): Add new member.
1600         * tree-diagnostic.c (set_inlining_locations): New.
1601         (tree_diagnostics_defaults): Set new callback pointer.
1602
1603 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
1604
1605         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
1606         New macros.
1607         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
1608         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
1609         lxvp and stxvp built-ins.
1610         (mma_init_builtins): Handle lxvp and stxvp built-ins.
1611         (builtin_function_type): Likewise.
1612         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
1613
1614 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
1615
1616         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
1617         additional argument for the code.
1618         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
1619         argument for the code.  Just return if the ZN bits are useful or
1620         not rather than the old style CC_* enums.
1621         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
1622         more generic shiftqi patterns.
1623         (shifthi_noscratch, shiftsi_noscratch): Similarly.
1624         (shiftqi_noscratch_set_flags): New pattern.
1625         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
1626
1627 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
1628
1629         PR tree-optimization/101223
1630         * range-op.cc (build_lt): Add -1 for signed values.
1631         (built_gt): Subtract -1 for signed values.
1632
1633 2021-07-02  David Faust  <david.faust@oracle.com>
1634
1635         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
1636         (btf_asm_type): Likewise.
1637
1638 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
1639
1640         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
1641         an array of rtx rather than a pointer to rtx.  Add code argument.
1642         (compute_a_shift_length): Similarly.
1643         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
1644         shift itself isn't an operand.  Create dummy operand[0] to carry
1645         a mode and pass a suitable rtx code to compute_a_shift_length.
1646         (get_shift_alg): Adjust operand number of clobber in output templates.
1647         (output_a_shift): Make first argument an array of rtx rather than
1648         a pointer to rtx.  Add code argument for the type of shift.
1649         Adjust now that the shift itself is no longer an operand.
1650         (compute_a_shift_length): Similarly.
1651         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
1652         iterator rather than nshift_operator.
1653         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
1654         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
1655         and compute_a_shift_length.
1656         (shiftqi_noscratch_clobber_flags): Likewise.
1657         (shifthi_noscratch_clobber_flags): Likewise.
1658         (shiftsi_noscratch_clobber_flags): Likewise.
1659
1660 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
1661
1662         PR debug/101283
1663         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
1664         dsymutil for BTF/CTF.
1665
1666 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
1667
1668         PR debug/101283
1669         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
1670         segment to include BTF.
1671         (BTF_INFO_SECTION_NAME): New.
1672
1673 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
1674
1675         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
1676         (small_data_operand, memreg_operand, small_insn_p): Likewise.
1677         * config/m32r/m32r.c (call_operand): Adjust return type.
1678         (small_data_operand, memreg_operand): Likewise.
1679
1680 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
1681
1682         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
1683         type.
1684         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
1685         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
1686         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
1687         (move_source_operand, move_destination_operand): Likewise.
1688         (condexec_source_operand, condexec_dest_operand): Likewise.
1689         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
1690         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
1691         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
1692         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
1693         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
1694         (even_fpr_operand, odd_fpr_operand): Likewise.
1695         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
1696         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
1697         (uint4_operand, uint1_operand, int_2word_operand): Likewise
1698         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
1699         (relational_operator, float_relational_operator): Likewise.
1700         (ccr_eqne_operator, minmax_operator): Likewise.
1701         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
1702         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
1703         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
1704         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
1705         (quad_acc_operand, accg_operand): Likewise.
1706
1707 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
1708
1709         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
1710         return type to a bool.
1711         (nonimmediate_nonstack_operand): Likewise.
1712         (xstormy16_splittable_below100_operand): Likewise.
1713         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
1714         return type.
1715         (xstormy16_splittable_below100_operand): Likewise.
1716
1717 2021-07-02  Richard Biener  <rguenther@suse.de>
1718
1719         PR tree-optimization/101293
1720         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
1721         with combined offsets.
1722         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
1723         combined with the rest of the offset.
1724
1725 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1726
1727         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
1728         PIC encodings for PE-COFF targets.
1729
1730 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
1731
1732         PR target/101286
1733         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
1734         Return nullptr for TImode inner mode.
1735
1736 2021-07-02  Richard Biener  <rguenther@suse.de>
1737
1738         PR tree-optimization/101280
1739         PR tree-optimization/101173
1740         * gimple-loop-interchange.cc
1741         (tree_loop_interchange::valid_data_dependences): Properly
1742         guard all dependence checks with DDR_REVERSED_P or its
1743         inverse.
1744
1745 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
1746
1747         * config/i386/i386-expand.c (ix86_expand_builtin):
1748         Add branch to clear odata when ZF is set for asedecenc_expand
1749         and wideaesdecenc_expand.
1750
1751 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
1752
1753         * config/i386/gcc-auto-profile: regenerate
1754
1755 2021-07-02  liuhongt  <hongtao.liu@intel.com>
1756
1757         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
1758         (trunc<mode><pmov_dst_4_lower>2): this.
1759
1760 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
1761
1762         * diagnostic.h (diagnostic_context::m_file_cache): New field.
1763         * input.c (class fcache): Rename to...
1764         (class file_cache_slot): ...this, making most members private and
1765         prefixing fields with "m_".
1766         (file_cache_slot::get_file_path): New accessor.
1767         (file_cache_slot::get_use_count): New accessor.
1768         (file_cache_slot::missing_trailing_newline_p): New accessor.
1769         (file_cache_slot::inc_use_count): New.
1770         (fcache_buffer_size): Move to...
1771         (file_cache_slot::buffer_size): ...here.
1772         (fcache_line_record_size): Move to...
1773         (file_cache_slot::line_record_size): ...here.
1774         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
1775         (fcache_tab_size): Move to file_cache::num_file_slots.
1776         (diagnostic_file_cache_init): Update for move of fcache_tab
1777         to global_dc->m_file_cache.
1778         (diagnostic_file_cache_fini): Likewise.
1779         (lookup_file_in_cache_tab): Convert to...
1780         (file_cache::lookup_file): ...this.
1781         (diagnostics_file_cache_forcibly_evict_file): Update for move of
1782         fcache_tab to global_dc->m_file_cache, moving most of
1783         implementation to...
1784         (file_cache::forcibly_evict_file): ...this new function and...
1785         (file_cache_slot::evict): ...this new function.
1786         (evicted_cache_tab_entry): Convert to...
1787         (file_cache::evicted_cache_tab_entry): ...this.
1788         (add_file_to_cache_tab): Convert to...
1789         (file_cache::add_file): ...this, moving bulk of implementation
1790         to...
1791         (file_cache_slot::create): ..this new function.
1792         (file_cache::file_cache): New.
1793         (file_cache::~file_cache): New.
1794         (lookup_or_add_file_to_cache_tab): Convert to...
1795         (file_cache::lookup_or_add_file): ..this new function.
1796         (fcache::fcache): Rename to...
1797         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
1798         to fields.
1799         (fcache::~fcache): Rename to...
1800         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
1801         to fields.
1802         (needs_read): Convert to...
1803         (file_cache_slot::needs_read_p): ...this.
1804         (needs_grow): Convert to...
1805         (file_cache_slot::needs_grow_p): ...this.
1806         (maybe_grow): Convert to...
1807         (file_cache_slot::maybe_grow): ...this.
1808         (read_data): Convert to...
1809         (file_cache_slot::read_data): ...this.
1810         (maybe_read_data): Convert to...
1811         (file_cache_slot::maybe_read_data): ...this.
1812         (get_next_line): Convert to...
1813         (file_cache_slot::get_next_line): ...this.
1814         (goto_next_line): Convert to...
1815         (file_cache_slot::goto_next_line): ...this.
1816         (read_line_num): Convert to...
1817         (file_cache_slot::read_line_num): ...this.
1818         (location_get_source_line): Update for moving of globals to
1819         global_dc->m_file_cache.
1820         (location_missing_trailing_newline): Likewise.
1821         * input.h (class file_cache_slot): New forward decl.
1822         (class file_cache): New.
1823
1824 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
1825
1826         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
1827         128-bit floating point conditional move support.
1828         (have_compare_and_set_mask): Add IEEE 128-bit floating point
1829         types.
1830         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
1831         (mov<mode>cc_p10, IEEE128 iterator): New insn.
1832         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
1833         (fpmask<mode>, IEEE128 iterator): New insn.
1834         (xxsel<mode>, IEEE128 iterator): New insn.
1835
1836 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
1837
1838         PR debug/101283
1839         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
1840
1841 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
1842
1843         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
1844         Make it global.
1845         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
1846         New prototype.
1847         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
1848         (vec_duplicate<mode>): New expander.
1849
1850 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
1851
1852         PR target/100865
1853         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
1854         New prototype.
1855         (ix86_byte_broadcast): New function.
1856         (ix86_convert_const_wide_int_to_broadcast): Likewise.
1857         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
1858         size is 16 bytes or bigger.
1859         (ix86_broadcast_from_integer_constant): New function.
1860         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
1861         to broadcast if mode size is 16 bytes or bigger.
1862         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
1863         prototype.
1864         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
1865
1866 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1867
1868         * config/i386/predicates.md (ix86_endbr_immediate_operand):
1869         Return true/false instead of 1/0.
1870         (movq_parallel): Ditto.
1871
1872 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1873
1874         * recog.c (general_operand): Return true/false instead of 1/0.
1875         (register_operand): Ditto.
1876         (immediate_operand): Ditto.
1877         (const_int_operand): Ditto.
1878         (const_scalar_int_operand): Ditto.
1879         (const_double_operand): Ditto.
1880         (push_operand): Ditto.
1881         (pop_operand): Ditto.
1882         (memory_operand): Ditto.
1883         (indirect_operand): Ditto.
1884
1885 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1886
1887         * genpreds.c (write_predicate_subfunction):
1888         Change the type of written subfunction to bool.
1889         (write_one_predicate_function):
1890         Change the type of written function to bool.
1891         (write_tm_preds_h): Ditto.
1892         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
1893         * recog.c (general_operand): Change the type to bool.
1894         (address_operand): Ditto.
1895         (register_operand): Ditto.
1896         (pmode_register_operand): Ditto.
1897         (scratch_operand): Ditto.
1898         (immediate_operand): Ditto.
1899         (const_int_operand): Ditto.
1900         (const_scalar_int_operand): Ditto.
1901         (const_double_operand): Ditto.
1902         (nonimmediate_operand): Ditto.
1903         (nonmemory_operand): Ditto.
1904         (push_operand): Ditto.
1905         (pop_operand): Ditto.
1906         (memory_operand): Ditto.
1907         (indirect_operand): Ditto.
1908         (ordered_comparison_operator): Ditto.
1909         (comparison_operator): Ditto.
1910         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
1911         Change the type of indirect predicate function to bool.
1912         * config/rs6000/rs6000.c (easy_vector_constant):
1913         Change the type to bool.
1914         * config/mips/mips-protos.h (m16_based_address_p):
1915         Change the type of operand 3 to bool.
1916
1917 2021-07-01  Richard Biener  <rguenther@suse.de>
1918
1919         PR tree-optimization/101280
1920         PR tree-optimization/101173
1921         * gimple-loop-interchange.cc
1922         (tree_loop_interchange::valid_data_dependences): Revert
1923         previous change and instead correctly handle DDR_REVERSED_P
1924         dependence.
1925
1926 2021-07-01  Richard Biener  <rguenther@suse.de>
1927
1928         PR tree-optimization/101278
1929         * tree-ssa-dse.c (dse_classify_store): First check for
1930         uses, then ignore stmt for chaining purposes.
1931
1932 2021-07-01  Richard Biener  <rguenther@suse.de>
1933
1934         PR tree-optimization/100778
1935         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
1936         vectorized ops ahead of their scalar BB.
1937
1938 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1939
1940         PR target/101044
1941         * config/i386/i386.md (*nabs<dwi>2_doubleword):
1942         New insn_and_split pattern.
1943         (*nabs<dwi>2_1): Ditto.
1944         * config/i386/i386-features.c
1945         (general_scalar_chain::compute_convert_gain):
1946         Handle (NEG (ABS (...))) RTX.  Rewrite src code
1947         scanner as switch statement.
1948         (general_scalar_chain::convert_insn):
1949         Handle (NEG (ABS (...))) RTX.
1950         (general_scalar_to_vector_candidate_p):
1951         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
1952         for (AND (NOT (...) ...)) fallthrough.
1953
1954 2021-07-01  Richard Biener  <rguenther@suse.de>
1955
1956         PR tree-optimization/101178
1957         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
1958         (slpg::perm_in): Add.
1959         (slpg::get_perm_in): Remove.
1960         (slpg::get_perm_materialized): Add.
1961         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
1962         during permute propagation and materialization.
1963
1964 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
1965
1966         PR debug/101266
1967         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
1968
1969 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
1970
1971         PR middle-end/94366
1972         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
1973         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
1974         use boolean_type_node instead of integer_type_node as NE_EXPR type.
1975         (lower_reduction_clauses): Likewise.
1976
1977 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1978
1979         * config/gcn/gcn.c: Include dwarf2.h.
1980         (gcn_addr_space_debug): New function.
1981         (TARGET_ADDR_SPACE_DEBUG): New hook.
1982
1983 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1984
1985         * common/config/gcn/gcn-common.c
1986         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
1987         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
1988         when emitting CFI.
1989         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
1990         (gcn_frame_pointer_rqd): New function.
1991         (TARGET_FRAME_POINTER_REQUIRED): New hook.
1992
1993 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1994
1995         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
1996         prologue register saves.
1997         (gcn_debug_unwind_info): Use UI_DWARF2.
1998         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
1999         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
2000         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
2001         (DWARF_LINK_REGISTER): New define.
2002         (FIRST_PSEUDO_REGISTER): Increment.
2003         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
2004         (CALL_USED_REGISTERS): Likewise.
2005         (REGISTER_NAMES): Likewise.
2006
2007 2021-06-30  Richard Biener  <rguenther@suse.de>
2008
2009         PR tree-optimization/101267
2010         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
2011         API and use SLP compatible interface of vect_is_simple_use.
2012         Reject not vectorized SLP defs for callers that do not support
2013         that.
2014         (vect_check_store_rhs): Handle masked stores and pass down
2015         the appropriate operator index.
2016         (vectorizable_call): Adjust.
2017         (vectorizable_store): Likewise.
2018         (vectorizable_load): Likewise.  Handle SLP pecularity of
2019         masked loads.
2020         (vect_is_simple_use): Remove special-casing of masked stores.
2021
2022 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
2023
2024         * common.opt (foffload): Remove help as Driver only.
2025         * gcc.c (display_help): Add -foffload.
2026
2027 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
2028
2029         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
2030         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
2031         a candidate list; better inform no offload target is configured
2032         and fix hint extraction when passed target is not '\0' at [len].
2033         * common.opt (foffload): Add tailing '.'.
2034         (foffload-options): Likewise; fix flag name in the help string.
2035
2036 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
2037
2038         PR target/66791
2039         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
2040         (vcage_f32): Gate comparison on __FAST_MATH__.
2041         (vcageq_f32): Likewise.
2042         (vcale_f32): Likewise.
2043         (vcaleq_f32): Likewise.
2044         (vcagt_f32): Likewise.
2045         (vcagtq_f32): Likewise.
2046         (vcalt_f32): Likewise.
2047         (vcaltq_f32): Likewise.
2048         (vcage_f16): Likewise.
2049         (vcageq_f16): Likewise.
2050         (vcale_f16): Likewise.
2051         (vcaleq_f16): Likewise.
2052         (vcagt_f16): Likewise.
2053         (vcagtq_f16): Likewise.
2054         (vcalt_f16): Likewise.
2055         (vcaltq_f16): Likewise.
2056
2057 2021-06-30  Richard Biener  <rguenther@suse.de>
2058
2059         PR tree-optimization/101264
2060         * tree-vect-slp.c (vect_optimize_slp): Propagate the
2061         computed perm_in to all "any" permute successors
2062         we cannot de-duplicate immediately.
2063
2064 2021-06-30  liuhongt  <hongtao.liu@intel.com>
2065
2066         PR target/101248
2067         * config/i386/sse.md
2068         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
2069         Refined to ..
2070         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
2071         this.
2072         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
2073         * config/i386/subst.md (maskz_scalar): New define_subst.
2074         (maskz_scalar_name): New subst_attr.
2075         (maskz_scalar_op5): Ditto.
2076         (round_saeonly_maskz_scalar_op5): Ditto.
2077         (round_saeonly_maskz_scalar_operand5): Ditto.
2078
2079 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
2080
2081         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
2082         Increase code CSECT alignment to at least 32 bytes.
2083         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
2084         alignment designation.
2085
2086 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
2087
2088         * doc/generic.texi: Fix s/net yet/not yet/ typo.
2089
2090 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
2091
2092         PR tree-optimization/101254
2093         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
2094         wrapping/non-wrapping when setting the result range.
2095
2096 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
2097
2098         * value-query.cc (gimple_range_global): Allow phis.
2099
2100 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
2101
2102         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
2103         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
2104         statement for location context.
2105         (check_for_binary_op_overflow): Ditto.
2106         (simplify_using_ranges::get_vr_for_comparison): Ditto.
2107         (simplify_using_ranges::compare_name_with_value): Ditto.
2108         (simplify_using_ranges::compare_names): Ditto.
2109         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
2110         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
2111         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
2112         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
2113         (simplify_using_ranges::two_valued_val_range_p): Ditto.
2114         (simplify_using_ranges::simplify): Ditto.
2115         * vr-values.h: Adjust prototypes.
2116
2117 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
2118
2119         PR target/95046
2120         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
2121
2122 2021-06-29  Julian Brown  <julian@codesourcery.com>
2123
2124         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
2125         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
2126         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
2127         otherwise.
2128         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
2129         (MAX_FIXED_MODE_SIZE): Change to 128.
2130
2131 2021-06-29  Julian Brown  <julian@codesourcery.com>
2132
2133         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
2134         (s_mnemonic): Add clrsb.
2135         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
2136         (clrsb<mode>2): Add expander for SImode/DImode.
2137
2138 2021-06-29  Julian Brown  <julian@codesourcery.com>
2139
2140         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
2141         muldi3): Add patterns.
2142
2143 2021-06-29  Julian Brown  <julian@codesourcery.com>
2144
2145         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
2146         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
2147
2148 2021-06-29  Julian Brown  <julian@codesourcery.com>
2149
2150         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
2151
2152 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
2153
2154         * btfout.c, ctfout.c: Include "memmodel.h".
2155
2156 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
2157
2158         * gcc.c (check_offload_target_name): Cast len argument to
2159         %q.*s to 'int'; avoid -Wstringop-truncation warning.
2160
2161 2021-06-29  Richard Biener  <rguenther@suse.de>
2162
2163         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
2164         to "any" permute nodes and relax "any" permute proapgation
2165         during iterative backward propagation.
2166
2167 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
2168
2169         PR other/67300
2170         * common.opt (-foffload=): Update description.
2171         (-foffload-options=): New.
2172         * doc/invoke.texi (C Language Options): Document
2173         -foffload and -foffload-options.
2174         * gcc.c (check_offload_target_name): New, split off from
2175         handle_foffload_option.
2176         (check_foffload_target_names): New.
2177         (handle_foffload_option): Handle -foffload=default.
2178         (driver_handle_option): Update for -foffload-options.
2179         * lto-opts.c (lto_write_options): Use -foffload-options
2180         instead of -foffload.
2181         * lto-wrapper.c (merge_and_complain, append_offload_options):
2182         Likewise.
2183         * opts.c (common_handle_option): Likewise.
2184
2185 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
2186
2187         * doc/invoke.texi (C Language Options): Sort options
2188         alphabetically in optlist and also the description itself.
2189         Remove leftover -fallow-single-precision from and add missing
2190         -fgnu-tm to the optlist.
2191
2192 2021-06-29  Richard Biener  <rguenther@suse.de>
2193
2194         * tree-vect-slp.c (slpg_vertex::visited): Remove.
2195         (vect_slp_perms_eq): Handle -1 permutes.
2196         (vect_optimize_slp): Rewrite permute propagation.
2197
2198 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
2199
2200         PR c++/101210
2201         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
2202         perform the optimization in GENERIC when sanitizing and x has a
2203         reference type.
2204
2205 2021-06-29  Richard Biener  <rguenther@suse.de>
2206
2207         PR tree-optimization/101242
2208         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
2209         PHIs with not represented initial values as leafs.
2210
2211 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
2212
2213         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
2214         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
2215         "register" keyword.
2216         (pdp11_initial_elimination_offset) Remove unused variable.
2217         (pdp11_cmp_length) Ditto.
2218         (pdp11_insn_cost): Ditto, and fix signedness warning.
2219
2220 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
2221
2222         * btfout.c: Include tm_p.h.
2223         * ctfout.c: Same.
2224
2225 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
2226
2227         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
2228         frame related.
2229         (bpf_expand_epilogue): Likewise.
2230         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
2231         Do not define DBX_DEBUGGING_INFO.
2232
2233 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
2234
2235         * doc/invoke.texi: Document the CTF and BTF debug info options.
2236
2237 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
2238             David Faust  <david.faust@oracle.com>
2239             Jose E. Marchesi  <jose.marchesi@oracle.com>
2240             Weimin Pan  <weimin.pan@oracle.com>
2241
2242         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
2243         GTFILES.  Add new object files.
2244         * common.opt: Add CTF and BTF debug info options.
2245         * btfout.c: New file.
2246         * ctfc.c: Likewise.
2247         * ctfc.h: Likewise.
2248         * ctfout.c: Likewise.
2249         * dwarf2ctf.c: Likewise.
2250         * dwarf2ctf.h: Likewise.
2251         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
2252         BTF_DEBUG.
2253         * dwarf2out.c (dwarf2out_source_line): Likewise.
2254         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
2255         be generated.
2256         (debug_format_do_cu): New function.
2257         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
2258         them if requested.
2259         Include dwarf2ctf.c.
2260         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
2261         formats.
2262         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
2263         (CTF_DEBUG): New bitmask.
2264         (BTF_DEBUG): Likewise.
2265         (enum ctf_debug_info_levels): New enum.
2266         * gengtype.c (open_base_files): Handle ctfc.h.
2267         (main): Handle uint32_t type.
2268         * flags.h (btf_debuginfo_p): New definition.
2269         (dwarf_based_debuginfo_p): Likewise.
2270         * opts.c (debug_type_names): Add entries for CTF and BTF.
2271         (btf_debuginfo_p): New function.
2272         (dwarf_based_debuginfo_p): Likewise.
2273         (common_handle_option): Handle -gctfN and -gbtf options.
2274         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
2275         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
2276         frontend is not C.
2277
2278 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
2279
2280         * dwarf2out.c (AT_class): Function is no longer static.
2281         (AT_int): Likewise.
2282         (AT_unsigned): Likewise.
2283         (AT_loc): Likewise.
2284         (get_AT): Likewise.
2285         (get_AT_string): Likewise.
2286         (get_AT_flag): Likewise.
2287         (get_AT_unsigned): Likewise.
2288         (get_AT_ref): Likewise.
2289         (new_die_raw): Likewise.
2290         (lookup_decl_die): Likewise.
2291         (base_type_die): Likewise.
2292         (add_name_attribute): Likewise.
2293         (add_AT_int): Likewise.
2294         (add_AT_unsigned): Likewise.
2295         (add_AT_loc): Likewise.
2296         (dw_get_die_tag): New function.
2297         (dw_get_die_child): Likewise.
2298         (dw_get_die_sib): Likewise.
2299         (struct dwarf_file_data): Move from here to dwarf2out.h
2300         (struct dw_attr_struct): Likewise.
2301         * dwarf2out.h: Analogous changes.
2302
2303 2021-06-28  Martin Jambor  <mjambor@suse.cz>
2304
2305         PR ipa/93385
2306         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
2307         members m_dead_stmts and m_dead_ssas.
2308         * ipa-param-manipulation.c
2309         (ipa_param_body_adjustments::mark_dead_statements): New function.
2310         (ipa_param_body_adjustments::common_initialization): Call it on
2311         all removed but not split parameters.
2312         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
2313         new mwmbers.
2314         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
2315         are dead.
2316         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
2317         dead debug statements.
2318         (copy_phis_for_bb): Do not copy dead PHI nodes.
2319
2320 2021-06-28  Martin Jambor  <mjambor@suse.cz>
2321
2322         PR ipa/93385
2323         * symtab-clones.h (clone_info): Removed member param_adjustments.
2324         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
2325         deal with pass-through splits now.
2326         (ipa_param_performed_split): Removed.
2327         (ipa_param_adjustments::modify_call): Adjusted parameters.
2328         (class ipa_param_body_adjustments): Adjusted parameters of
2329         register_replacement, modify_gimple_stmt and modify_call_stmt.
2330         (ipa_verify_edge_has_no_modifications): Declare.
2331         (ipa_edge_modifications_finalize): Declare.
2332         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
2333         performed_splits processing, pas only edge to padjs->modify_call,
2334         check that call arguments were not modified if they should not have
2335         been.
2336         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
2337         splits.
2338         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
2339         (ipa_edge_modification_info): Likewise.
2340         (ipa_edge_modification_sum): Likewise.
2341         (ipa_edge_modifications): New edge summary.
2342         (ipa_verify_edge_has_no_modifications): New function.
2343         (transitive_split_p): Removed.
2344         (transitive_split_map): Likewise.
2345         (init_transitive_splits): Likewise.
2346         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
2347         summary instead of performed_splits.
2348         (ipa_param_body_adjustments::register_replacement): Drop dummy
2349         parameter, set base_index of the created ipa_param_body_replacement.
2350         (phi_arg_will_live_p): New function.
2351         (ipa_param_body_adjustments::common_initialization): Do not create
2352         IPA_SRA dummy decls.
2353         (simple_tree_swap_info): Removed.
2354         (remap_split_decl_to_dummy): Likewise.
2355         (record_argument_state_1): New function.
2356         (record_argument_state): Likewise.
2357         (ipa_param_body_adjustments::modify_call_stmt): New parameter
2358         orig_stmt.  Do not work with dummy decls, save necessary info about
2359         changes to ipa_edge_modifications.
2360         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
2361         orig_stmt, pass it to modify_call_stmt.
2362         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
2363         modify_gimple_stmt.
2364         (ipa_edge_modifications_finalize): New function.
2365         * tree-inline.c (remap_gimple_stmt): Pass original statement to
2366         modify_gimple_stmt.
2367         (copy_phis_for_bb): Do not copy dead PHI nodes.
2368         (expand_call_inline): Do not remap performed_splits.
2369         (update_clone_info): Likewise.
2370         * toplev.c: Include ipa-param-manipulation.h.
2371         (toplev::finalize): Call ipa_edge_modifications_finalize.
2372
2373 2021-06-28  Andrew Pinski  <apinski@marvell.com>
2374
2375         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
2376         info if we're the only things setting the target PHI.
2377         (value_replacement): Don't duplicate range here.
2378         (minmax_replacement): Likewise.
2379
2380 2021-06-28  Richard Biener  <rguenther@suse.de>
2381
2382         PR tree-optimization/101229
2383         * gimple-walk.c (gimple_walk_op): Handle PHIs.
2384
2385 2021-06-28  Martin Liska  <mliska@suse.cz>
2386
2387         * config/v850/v850.c (construct_dispose_instruction): Allocate
2388         a bigger buffer.
2389         (construct_prepare_instruction): Likewise.
2390
2391 2021-06-28  Martin Liska  <mliska@suse.cz>
2392
2393         * config/v850/v850.c (v850_option_override): Build default
2394         target node.
2395         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
2396         ignored for inlining.
2397         (TARGET_CAN_INLINE_P): New.
2398
2399 2021-06-28  Richard Biener  <rguenther@suse.de>
2400
2401         PR tree-optimization/101207
2402         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
2403         permute eliding for load permutations properly.
2404
2405 2021-06-28  Richard Biener  <rguenther@suse.de>
2406
2407         PR tree-optimization/101173
2408         * gimple-loop-interchange.cc
2409         (tree_loop_interchange::valid_data_dependences): Disallow outer
2410         loop dependence distance of zero.
2411
2412 2021-06-28  liuhongt  <hongtao.liu@intel.com>
2413
2414         PR target/100648
2415         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
2416         define_insn_and_split.
2417         (*avx_cmp<mode>3_ltint): Ditto.
2418         (*avx2_pcmp<mode>3_3): Ditto.
2419         (*avx2_pcmp<mode>3_4): Ditto.
2420         (*avx2_pcmp<mode>3_5): Ditto.
2421
2422 2021-06-28  liuhongt  <hongtao.liu@intel.com>
2423
2424         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
2425         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
2426         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
2427         IX86_BUILTIN_PBLENDVB128): Replace icode with
2428         CODE_FOR_nothing.
2429         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
2430         builtins.
2431         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
2432         New pre_reload splitter.
2433
2434 2021-06-27  Andrew Pinski  <apinski@marvell.com>
2435
2436         PR middle-end/101230
2437         * fold-const.c (fold_ternary_loc): Check
2438         the return value of invert_tree_comparison.
2439
2440 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
2441
2442         * config.gcc: Add SPDX License Identifier.
2443         (powerpc-ibm-aix789): Default to aix73.h.
2444         (powerpc-ibm-aix7.2.*.*): New stanza.
2445         * config/rs6000/aix72.h: Add SPDX License Identifier.
2446         * config/rs6000/aix73.h: New file.
2447
2448 2021-06-26  Jason Merrill  <jason@redhat.com>
2449
2450         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
2451
2452 2021-06-26  Andrew Pinski  <apinski@marvell.com>
2453
2454         * genmatch.c (lower_cond): Copy for_subst_vec
2455         for the simplify also.
2456         (lower): Swap the order for lower_for and lower_cond.
2457
2458 2021-06-26  Andrew Pinski  <apinski@marvell.com>
2459
2460         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
2461         flow senatitive info on the moved ssa set.
2462
2463 2021-06-26  Andrew Pinski  <apinski@marvell.com>
2464
2465         * fold-const.c (fold_cond_expr_with_comparison):
2466         Exand arg0 into comp_code, arg00, and arg01.
2467         (fold_ternary_loc): Use invert_tree_comparison
2468         instead of fold_invert_truthvalue for the case
2469         where we have A CMP B ? C : A.
2470
2471 2021-06-25  Martin Sebor  <msebor@redhat.com>
2472
2473         PR middle-end/101216
2474         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
2475
2476 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
2477
2478         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
2479
2480 2021-06-25  Richard Biener  <rguenther@suse.de>
2481
2482         PR tree-optimization/101202
2483         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
2484         failed nodes.
2485
2486 2021-06-25  Richard Biener  <rguenther@suse.de>
2487
2488         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
2489         STMT_VINFO_REDUC_DEF from the original representative.
2490
2491 2021-06-25  Martin Sebor  <msebor@redhat.com>
2492
2493         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
2494         gimple_no_warning_p and gimple_set_no_warning with
2495         warning_suppressed_p, and suppress_warning.
2496         (c_strlen): Same.
2497         (maybe_warn_for_bound): Same.
2498         (warn_for_access): Same.
2499         (check_access): Same.
2500         (expand_builtin_strncmp): Same.
2501         (fold_builtin_varargs): Same.
2502         * calls.c (maybe_warn_nonstring_arg): Same.
2503         (maybe_warn_rdwr_sizes): Same.
2504         * cfgexpand.c (expand_call_stmt): Same.
2505         * cgraphunit.c (check_global_declaration): Same.
2506         * fold-const.c (fold_undefer_overflow_warnings): Same.
2507         (fold_truth_not_expr): Same.
2508         (fold_unary_loc): Same.
2509         (fold_checksum_tree): Same.
2510         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
2511         (array_bounds_checker::check_mem_ref): Same.
2512         (array_bounds_checker::check_addr_expr): Same.
2513         (array_bounds_checker::check_array_bounds): Same.
2514         * gimple-expr.c (copy_var_decl): Same.
2515         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
2516         (gimple_fold_builtin_strncat): Same.
2517         (gimple_fold_builtin_stxcpy_chk): Same.
2518         (gimple_fold_builtin_stpcpy): Same.
2519         (gimple_fold_builtin_sprintf): Same.
2520         (fold_stmt_1): Same.
2521         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
2522         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
2523         * gimple-ssa-sprintf.c (handle_printf_call): Same.
2524         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
2525         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
2526         * gimple-ssa-warn-restrict.h: Adjust declarations.
2527         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
2528         gimple_no_warning_p and gimple_set_no_warning with
2529         warning_suppressed_p, and suppress_warning.
2530         (check_call): Same.
2531         (check_bounds_or_overlap): Same.
2532         * gimple.c (gimple_build_call_from_tree): Same.
2533         * gimplify.c (gimplify_return_expr): Same.
2534         (gimplify_cond_expr): Same.
2535         (gimplify_modify_expr_complex_part): Same.
2536         (gimplify_modify_expr): Same.
2537         (gimple_push_cleanup): Same.
2538         (gimplify_expr): Same.
2539         * omp-expand.c (expand_omp_for_generic): Same.
2540         (expand_omp_taskloop_for_outer): Same.
2541         * omp-low.c (lower_rec_input_clauses): Same.
2542         (lower_lastprivate_clauses): Same.
2543         (lower_send_clauses): Same.
2544         (lower_omp_target): Same.
2545         * tree-cfg.c (pass_warn_function_return::execute): Same.
2546         * tree-complex.c (create_one_component_var): Same.
2547         * tree-inline.c (remap_gimple_op_r): Same.
2548         (copy_tree_body_r): Same.
2549         (declare_return_variable): Same.
2550         (expand_call_inline): Same.
2551         * tree-nested.c (lookup_field_for_decl): Same.
2552         * tree-sra.c (create_access_replacement): Same.
2553         (generate_subtree_copies): Same.
2554         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
2555         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
2556         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
2557         * tree-ssa-loop-im.c (execute_sm): Same.
2558         * tree-ssa-phiopt.c (cond_store_replacement): Same.
2559         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
2560         (handle_builtin_strcpy): Same.
2561         (maybe_diag_stxncpy_trunc): Same.
2562         (handle_builtin_stxncpy_strncat): Same.
2563         (handle_builtin_strcat): Same.
2564         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
2565         (set_no_uninit_warning): Same.
2566         (uninit_undefined_value_p): Same.
2567         (warn_uninit): Same.
2568         (maybe_warn_operand): Same.
2569         * tree-vrp.c (compare_values_warnv): Same.
2570         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
2571         (test_for_singularity): Same.
2572         * gimple.h (warning_suppressed_p): New function.
2573         (suppress_warning): Same.
2574         (copy_no_warning): Same.
2575         (gimple_set_block): Call gimple_set_location.
2576         (gimple_set_location): Call copy_warning.
2577
2578 2021-06-25  Martin Sebor  <msebor@redhat.com>
2579
2580         * tree.h (warning_suppressed_at, copy_warning,
2581         warning_suppressed_p, suppress_warning): New functions.
2582
2583 2021-06-25  Martin Sebor  <msebor@redhat.com>
2584
2585         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
2586         * gengtype.c (open_base_files): Add diagnostic-spec.h.
2587         * diagnostic-spec.c: New file.
2588         * diagnostic-spec.h: New file.
2589         * tree.h (no_warning, all_warnings, suppress_warning_at): New
2590         declarations.
2591         * warning-control.cc: New file.
2592
2593 2021-06-25  liuhongt  <hongtao.liu@intel.com>
2594
2595         PR target/101185
2596         * config/i386/i386.c (x86_order_regs_for_local_alloc):
2597         Revert r12-1669.
2598
2599 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
2600
2601         PR tree-optimization/101189
2602         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
2603         LHS range of condition to postfold routine.
2604         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
2605         FALSE edge if the LHS range supports it being taken.
2606         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
2607
2608 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
2609
2610         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
2611         (relation_oracle::find_relation_block): Check correct bitmap.
2612         (relation_oracle::dump): Do not dump NULL blocks.
2613
2614 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
2615
2616         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
2617         range_on_edge instead of manually calculating.
2618
2619 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
2620
2621         * range-op.cc: Fix comment.
2622
2623 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
2624
2625         PR target/89021
2626         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
2627         Handle V8QI and V4HI modes.
2628         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
2629         New insn pattern.
2630         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
2631         (mmxpackmode): New mode attribute.
2632         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
2633         (mmxunpackmode): New mode attribute.
2634         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
2635         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
2636         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
2637         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
2638         * config/i386/i386.md (extsuffix): Move from ...
2639         * config/i386/sse.md: ... here.
2640
2641 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2642
2643         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
2644         (dwarf2out_finish): ...instead of here.
2645
2646 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2647
2648         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
2649         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
2650         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
2651         * configure: Regenerate.
2652
2653 2021-06-24  Richard Biener  <rguenther@suse.de>
2654
2655         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
2656         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
2657         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
2658
2659 2021-06-24  Richard Biener  <rguenther@suse.de>
2660
2661         * config/i386/sse.md (avx_addsubv4df3): Rename to
2662         vec_addsubv4df3.
2663         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
2664         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
2665         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
2666         * config/i386/i386-builtin.def: Adjust.
2667         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
2668         * optabs.def (vec_addsub_optab): New optab.
2669         * tree-vect-slp-patterns.c (class addsub_pattern): New.
2670         (slp_patterns): Add addsub_pattern.
2671         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
2672         across CFN_VEC_ADDSUB.
2673         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
2674         m_ops optional.
2675         * doc/md.texi (vec_addsub<mode>3): Document.
2676
2677 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2678
2679         PR middle-end/101170
2680         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
2681         where regno + subreg_regno_offset wraps around use 0 as starting
2682         regno.
2683
2684 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2685
2686         PR middle-end/101172
2687         * stor-layout.c (finish_bitfield_representative): If nextf has
2688         error_mark_node type, set repr type to error_mark_node too.
2689
2690 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
2691
2692         * config/s390/s390.c (s390_function_profiler): Ignore labelno
2693         parameter.
2694         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
2695
2696 2021-06-24  Richard Biener  <rguenther@suse.de>
2697
2698         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
2699         across operations that have different semantics on different
2700         lanes.
2701
2702 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2703
2704         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
2705         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
2706         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
2707         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
2708         OMP_TARGET user outer_ctx instead of ctx for placeholders and
2709         initializer/combiner gimplification.
2710         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
2711         on target constructs.
2712         (lower_rec_input_clauses): Likewise.
2713         (lower_omp_target): Likewise.
2714         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
2715         on target if in_reduction is present.
2716
2717 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
2718
2719         * tree-predcom.c (class pcom_worker): New class.
2720         (release_chain): Renamed to...
2721         (pcom_worker::release_chain): ...this.
2722         (release_chains): Renamed to...
2723         (pcom_worker::release_chains): ...this.
2724         (aff_combination_dr_offset): Renamed to...
2725         (pcom_worker::aff_combination_dr_offset): ...this.
2726         (determine_offset): Renamed to...
2727         (pcom_worker::determine_offset): ...this.
2728         (class comp_ptrs): New class.
2729         (split_data_refs_to_components): Renamed to...
2730         (pcom_worker::split_data_refs_to_components): ...this,
2731         and update with class comp_ptrs.
2732         (suitable_component_p): Renamed to...
2733         (pcom_worker::suitable_component_p): ...this.
2734         (filter_suitable_components): Renamed to...
2735         (pcom_worker::filter_suitable_components): ...this.
2736         (valid_initializer_p): Renamed to...
2737         (pcom_worker::valid_initializer_p): ...this.
2738         (find_looparound_phi): Renamed to...
2739         (pcom_worker::find_looparound_phi): ...this.
2740         (add_looparound_copies): Renamed to...
2741         (pcom_worker::add_looparound_copies): ...this.
2742         (determine_roots_comp): Renamed to...
2743         (pcom_worker::determine_roots_comp): ...this.
2744         (determine_roots): Renamed to...
2745         (pcom_worker::determine_roots): ...this.
2746         (single_nonlooparound_use): Renamed to...
2747         (pcom_worker::single_nonlooparound_use): ...this.
2748         (remove_stmt): Renamed to...
2749         (pcom_worker::remove_stmt): ...this.
2750         (execute_pred_commoning_chain): Renamed to...
2751         (pcom_worker::execute_pred_commoning_chain): ...this.
2752         (execute_pred_commoning): Renamed to...
2753         (pcom_worker::execute_pred_commoning): ...this.
2754         (struct epcc_data): New member worker.
2755         (execute_pred_commoning_cbck): Call execute_pred_commoning
2756         with pcom_worker pointer.
2757         (find_use_stmt): Renamed to...
2758         (pcom_worker::find_use_stmt): ...this.
2759         (find_associative_operation_root): Renamed to...
2760         (pcom_worker::find_associative_operation_root): ...this.
2761         (find_common_use_stmt): Renamed to...
2762         (pcom_worker::find_common_use_stmt): ...this.
2763         (combinable_refs_p): Renamed to...
2764         (pcom_worker::combinable_refs_p): ...this.
2765         (reassociate_to_the_same_stmt): Renamed to...
2766         (pcom_worker::reassociate_to_the_same_stmt): ...this.
2767         (stmt_combining_refs): Renamed to...
2768         (pcom_worker::stmt_combining_refs): ...this.
2769         (combine_chains): Renamed to...
2770         (pcom_worker::combine_chains): ...this.
2771         (try_combine_chains): Renamed to...
2772         (pcom_worker::try_combine_chains): ...this.
2773         (prepare_initializers_chain): Renamed to...
2774         (pcom_worker::prepare_initializers_chain): ...this.
2775         (prepare_initializers): Renamed to...
2776         (pcom_worker::prepare_initializers): ...this.
2777         (prepare_finalizers_chain): Renamed to...
2778         (pcom_worker::prepare_finalizers_chain): ...this.
2779         (prepare_finalizers): Renamed to...
2780         (pcom_worker::prepare_finalizers): ...this.
2781         (tree_predictive_commoning_loop): Renamed to...
2782         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
2783         some calls and remove some cleanup code.
2784         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
2785         (static variable looparound_phis): Remove.
2786         (static variable name_expansions): Remove.
2787
2788 2021-06-24  Richard Biener  <rguenther@suse.de>
2789
2790         * tree-vect-slp.c (slpg_vertex): New struct.
2791         (vect_slp_build_vertices): Adjust.
2792         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
2793         and a materialized one.
2794
2795 2021-06-24  Richard Biener  <rguenther@suse.de>
2796
2797         PR tree-optimization/101105
2798         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2799         Only ignore steps when they are equal or scalar order is preserved.
2800
2801 2021-06-24  liuhongt  <hongtao.liu@intel.com>
2802
2803         PR target/98434
2804         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
2805         Adjust comments for ix86_expand_vecop_qihi2.
2806         (ix86_expand_vecmul_qihi): Renamed to ..
2807         (ix86_expand_vecop_qihi2): Adjust function prototype to
2808         support shift operation, add static to definition.
2809         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
2810         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
2811         ix86_expand_vec_shift_qihi_constant.
2812         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
2813         (ix86_expand_vec_shift_qihi_constant): Deleted.
2814         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
2815         iterator.
2816         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
2817         condition TARGET_64BIT.
2818         (mul<mode>3): Ditto.
2819         (<insn><mode>3): Ditto.
2820         (vlshr<mode>3): Extend to support avx512 vlshr.
2821         (v<insn><mode>3): New expander for
2822         vashr/vlshr/vashl.
2823         (v<insn>v8qi3): Ditto.
2824         (vashrv8hi3<mask_name>): Renamed to ..
2825         (vashr<mode>3): And extend to support V16QImode for avx512.
2826         (vashrv16qi3): Deleted.
2827         (vashrv2di3<mask_name>): Extend expander to support avx512
2828         instruction.
2829
2830 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
2831
2832         * doc/lto.texi (Design Overview): Update that slim objects are
2833         the default.
2834
2835 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
2836
2837         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
2838         of OTHER_POWER10_MASKS so it will not be enabled by default.
2839
2840 2021-06-23  Richard Biener  <rguenther@suse.de>
2841             Martin Jambor  <mjambor@suse.cz>
2842
2843         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
2844         param replacement unconditionally.  Adjust comment.
2845
2846 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2847
2848         * Makefile.in (OBJS): Add gimple-range-fold.o
2849         * gimple-range-fold.cc: New.
2850         * gimple-range-fold.h: New.
2851         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
2852         (gimple_range_calc_op2): Ditto.
2853         * gimple-range-gori.h: Move prototypes to here.
2854         * gimple-range.cc: Adjust include files.
2855         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
2856         (fur_source::get_operand): Ditto.
2857         (fur_source::get_phi_operand): Ditto.
2858         (fur_source::query_relation): Ditto.
2859         (fur_source::register_relation): Ditto.
2860         (class fur_edge): Ditto.
2861         (fur_edge::fur_edge): Ditto.
2862         (fur_edge::get_operand): Ditto.
2863         (fur_edge::get_phi_operand): Ditto.
2864         (fur_stmt::fur_stmt): Ditto.
2865         (fur_stmt::get_operand): Ditto.
2866         (fur_stmt::get_phi_operand): Ditto.
2867         (fur_stmt::query_relation): Ditto.
2868         (class fur_depend): Relocate to gimple-range-fold.h.
2869         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
2870         (fur_depend::register_relation): Ditto.
2871         (fur_depend::register_relation): Ditto.
2872         (class fur_list): Ditto.
2873         (fur_list::fur_list): Ditto.
2874         (fur_list::get_operand): Ditto.
2875         (fur_list::get_phi_operand): Ditto.
2876         (fold_range): Ditto.
2877         (adjust_pointer_diff_expr): Ditto.
2878         (gimple_range_adjustment): Ditto.
2879         (gimple_range_base_of_assignment): Ditto.
2880         (gimple_range_operand1): Ditto.
2881         (gimple_range_operand2): Ditto.
2882         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
2883         (gimple_range_calc_op2): Ditto.
2884         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
2885         (fold_using_range::range_of_range_op): Ditto.
2886         (fold_using_range::range_of_address): Ditto.
2887         (fold_using_range::range_of_phi): Ditto.
2888         (fold_using_range::range_of_call): Ditto.
2889         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
2890         (fold_using_range::range_of_builtin_call): Ditto.
2891         (fold_using_range::range_of_cond_expr): Ditto.
2892         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
2893         (fold_using_range::relation_fold_and_or): Ditto.
2894         (fold_using_range::postfold_gcond_edges): Ditto.
2895         * gimple-range.h: Add gimple-range-fold.h to include files. Change
2896         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
2897         (gimple_range_handler): Relocate to gimple-range-fold.h.
2898         (gimple_range_ssa_p): Ditto.
2899         (range_compatible_p): Ditto.
2900         (class fur_source): Ditto.
2901         (class fur_stmt): Ditto.
2902         (class fold_using_range): Ditto.
2903         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
2904         (gimple_range_calc_op2): Ditto.
2905
2906 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2907
2908         PR tree-optimization/101148
2909         PR tree-optimization/101014
2910         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
2911         (ranger_cache::~ranger_cache): Adjust.
2912         (ranger_cache::block_range): Check if propagation disallowed.
2913         (ranger_cache::propagate_cache): Disallow propagation if new value
2914         can't be stored properly.
2915         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
2916
2917 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2918
2919         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
2920         (sbr_vector::set_bb_range): Return true.
2921         (class sbr_sparse_bitmap): Adjust.
2922         (sbr_sparse_bitmap::set_bb_range): Return value.
2923         (block_range_cache::set_bb_range): Return value.
2924         (ranger_cache::propagate_cache): Use return value to print msg.
2925         * gimple-range-cache.h (class block_range_cache): Adjust.
2926
2927 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2928
2929         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
2930
2931 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
2932
2933         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
2934         so this pattern can be used for test/compare removal.  Pass
2935         current insn to compute_logical_op_length and output_logical_op.
2936         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
2937         (h8300_and_costs): Add argument to compute_logical_op_length.
2938         (output_logical_op): Add new argument.  Use it to determine if the
2939         condition codes are used and adjust the output accordingly.
2940         (compute_logical_op_length): Add new argument and update length
2941         computations when condition codes are used.
2942         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
2943         prototype.
2944         (output_logical_op): Likewise.
2945
2946 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
2947
2948         PR target/89021
2949         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
2950         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
2951         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
2952         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
2953         * config/i386/sse.md (unspec): ... here.
2954
2955 2021-06-23  Martin Liska  <mliska@suse.cz>
2956
2957         PR target/98636
2958         * optc-save-gen.awk: Put back arm_fp16_format to
2959         checked_options.
2960
2961 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
2962
2963         PR target/101175
2964         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
2965         (bsr): Ditto.
2966         (*bsrhi): Remove.
2967         (clz<mode>2): Update RTX pattern for additions.
2968
2969 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
2970
2971         PR middle-end/101167
2972         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
2973         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
2974
2975 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
2976
2977         * doc/rtl.texi: drop unbalanced parenthesis.
2978
2979 2021-06-22  Richard Biener  <rguenther@suse.de>
2980
2981         PR middle-end/101156
2982         * gimplify.c (gimplify_expr): Remove premature incorrect
2983         optimization.
2984
2985 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2986
2987         PR tree-optimization/101159
2988         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
2989         comment typos.
2990
2991 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2992
2993         PR middle-end/101160
2994         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
2995         clear crtl->return_rtx instead of keeping it referencing a pseudo.
2996
2997 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2998             Andrew Pinski  <apinski@marvell.com>
2999
3000         PR tree-optimization/101162
3001         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
3002         types.
3003
3004 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3005
3006         * range-op.cc (range_relational_tests): New.
3007         (range_op_tests): Call range_relational_tests.
3008
3009 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3010
3011         * range-op.cc (operator_cast::lhs_op1_relation): New.
3012         (operator_identity::lhs_op1_relation): Mew.
3013
3014 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3015
3016         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
3017
3018 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3019
3020         * range-op.cc (operator_plus::lhs_op1_relation): New.
3021         (operator_plus::lhs_op2_relation): New.
3022
3023 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3024
3025         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
3026         relation_oracle if dominators exist.
3027         (ranger_cache::~ranger_cache): Dispose of oracle.
3028         (ranger_cache::dump_bb): Dump oracle.
3029         * gimple-range.cc (fur_source::fur_source): New.
3030         (fur_source::get_operand): Use mmeber query.
3031         (fur_source::get_phi_operand): Use member_query.
3032         (fur_source::query_relation): New.
3033         (fur_source::register_dependency): Delete.
3034         (fur_source::register_relation): New.
3035         (fur_edge::fur_edge): Adjust.
3036         (fur_edge::get_phi_operand): Fix comment.
3037         (fur_edge::query): Delete.
3038         (fur_stmt::fur_stmt): Adjust.
3039         (fur_stmt::query): Delete.
3040         (fur_depend::fur_depend): Adjust.
3041         (fur_depend::register_relation): New.
3042         (fur_depend::register_relation): New.
3043         (fur_list::fur_list): Adjust.
3044         (fur_list::get_operand): Use member query.
3045         (fold_using_range::range_of_range_op): Process and query relations.
3046         (fold_using_range::range_of_address): Adjust dependency call.
3047         (fold_using_range::range_of_phi): Ditto.
3048         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
3049         (fold_using_range::relation_fold_and_or): New.
3050         (fold_using_range::postfold_gcond_edges): New.
3051         * gimple-range.h (class gimple_ranger): Adjust.
3052         (class fur_source): Adjust members.
3053         (class fur_stmt): Ditto.
3054         (class fold_using_range): Ditto.
3055
3056 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3057
3058         * range-op.cc (range_operator::wi_fold): Apply relation effect.
3059         (range_operator::fold_range): Adjust and apply relation effect.
3060         (*::fold_range): Add relation parameters.
3061         (*::op1_range): Ditto.
3062         (*::op2_range): Ditto.
3063         (range_operator::lhs_op1_relation): New.
3064         (range_operator::lhs_op2_relation): New.
3065         (range_operator::op1_op2_relation): New.
3066         (range_operator::op1_op2_relation_effect): New.
3067         (relop_early_resolve): New.
3068         (operator_equal::op1_op2_relation): New.
3069         (operator_equal::fold_range): Call relop_early_resolve.
3070         (operator_not_equal::op1_op2_relation): New.
3071         (operator_not_equal::fold_range): Call relop_early_resolve.
3072         (operator_lt::op1_op2_relation): New.
3073         (operator_lt::fold_range): Call relop_early_resolve.
3074         (operator_le::op1_op2_relation): New.
3075         (operator_le::fold_range): Call relop_early_resolve.
3076         (operator_gt::op1_op2_relation): New.
3077         (operator_gt::fold_range): Call relop_early_resolve.
3078         (operator_ge::op1_op2_relation): New.
3079         (operator_ge::fold_range): Call relop_early_resolve.
3080         * range-op.h (class range_operator): Adjust parameters and methods.
3081
3082 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
3083
3084         * Makefile.in (OBJS): Add value-relation.o.
3085         * gimple-range.h: Adjust include files.
3086         * tree-data-ref.c: Adjust include file order.
3087         * value-query.cc (range_query::get_value_range): Default to no oracle.
3088         (range_query::query_relation): New.
3089         (range_query::query_relation): New.
3090         * value-query.h (class range_query): Adjust.
3091         * value-relation.cc: New.
3092         * value-relation.h: New.
3093
3094 2021-06-22  Richard Biener  <rguenther@suse.de>
3095
3096         PR tree-optimization/101151
3097         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
3098         region check.
3099
3100 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
3101
3102         * config/riscv/riscv.c (thead_c906_tune_info): New.
3103         (riscv_tune_info_table): Use new tune.
3104
3105 2021-06-22  Richard Biener  <rguenther@suse.de>
3106
3107         PR tree-optimization/101158
3108         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
3109         checking after checking for matching operation.
3110
3111 2021-06-22  Richard Biener  <rguenther@suse.de>
3112
3113         PR tree-optimization/101159
3114         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
3115         missing NULL vectype check.
3116
3117 2021-06-22  Richard Biener  <rguenther@suse.de>
3118
3119         PR tree-optimization/101154
3120         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
3121
3122 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
3123
3124         PR target/11877
3125         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
3126         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
3127         * config/i386/i386.c (ix86_expand_prologue): Clear it.
3128         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
3129         Remove "" from match_operand.  Emit new insns using emit_move_insn and
3130         set ix86_last_zero_store_uid to INSN_UID of the last store.
3131         Add peephole2s for 1/2/4 stores of const0_rtx following previous
3132         successful peep2s.
3133
3134 2021-06-22  Martin Liska  <mliska@suse.cz>
3135
3136         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
3137         was changed.
3138
3139 2021-06-22  Martin Liska  <mliska@suse.cz>
3140
3141         * gcov-io.h: Remove padding entries.
3142
3143 2021-06-22  liuhongt  <hongtao.liu@intel.com>
3144
3145         PR tree-optimization/97770
3146         * tree-vect-patterns.c (vect_recog_popcount_pattern):
3147         New.
3148         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
3149
3150 2021-06-22  liuhongt  <hongtao.liu@intel.com>
3151
3152         PR target/100267
3153         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
3154         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
3155         (expand<mode>_mask): this ..
3156         (*expand<mode>_mask): New pre_reload splitter to transform
3157         v{,p}expand* to vmov* when mask is zero, all ones, or has all
3158         ones in it's lower part, otherwise still generate
3159         v{,p}expand*.
3160
3161 2021-06-22  liuhongt  <hongtao.liu@intel.com>
3162
3163         PR target/100310
3164         * config/i386/i386-expand.c
3165         (ix86_expand_special_args_builtin): Keep constm1_operand only
3166         if it satisfies insn's operand predicate.
3167
3168 2021-06-21  Jason Merrill  <jason@redhat.com>
3169
3170         PR target/88529
3171         * df-scan.c (df_ref_record): Check that regno < endregno.
3172         * function.c (assign_parms, expand_function_end): Do nothing with a
3173         TYPE_EMPTY_P result.
3174
3175 2021-06-21  Richard Biener  <rguenther@suse.de>
3176
3177         PR tree-optimization/101120
3178         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
3179         built increment.
3180         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
3181         DR chain DCE capability.
3182         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
3183         * tree-vect-stmts.c (vectorizable_load): Remove unused
3184         loads in the DR chain for SLP.
3185
3186 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
3187
3188         PR inline-asm/100785
3189         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
3190         output or input operands were already error_mark_node.
3191         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
3192         remove all inputs, outputs and clobbers from the asm and
3193         set template to "".
3194
3195 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
3196
3197         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
3198         (vceq_s16): Likewise.
3199         (vceq_s32): Likewise.
3200         (vceq_u8): Likewise.
3201         (vceq_u16): Likewise.
3202         (vceq_u32): Likewise.
3203         (vceq_p8): Likewise.
3204         (vceqq_s8): Likewise.
3205         (vceqq_s16): Likewise.
3206         (vceqq_s32): Likewise.
3207         (vceqq_u8): Likewise.
3208         (vceqq_u16): Likewise.
3209         (vceqq_u32): Likewise.
3210         (vceqq_p8): Likewise.
3211         (vceq_f32): Gate __a == __b on __FAST_MATH__.
3212         (vceqq_f32): Likewise.
3213         (vceq_f16): Likewise.
3214         (vceqq_f16): Likewise.
3215
3216 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
3217
3218         PR target/97906
3219         * config/arm/iterators.md (NEON_VACMP): Remove.
3220         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
3221         iterator.
3222         (neon_vca<cmp_op><mode>_insn): Likewise.
3223         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
3224         NEON_VACMP.
3225
3226 2021-06-21  Richard Biener  <rguenther@suse.de>
3227
3228         PR tree-optimization/101121
3229         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
3230         when we just lack a stmt with the desired op when doing permutation.
3231         (vect_build_slp_tree): When caching a failed SLP build attempt
3232         assert that at least one lane is marked as not matching.
3233
3234 2021-06-21  liuhongt  <hongtao.liu@intel.com>
3235
3236         PR target/101142
3237         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
3238         register alternative.
3239         (*and<mode>_1): Ditto.
3240         (*andqi_1): Ditto.
3241         (*andn<mode>_1): Ditto.
3242         (*<code><mode>_1): Ditto.
3243         (*<code>qi_1): Ditto.
3244         (*one_cmpl<mode>2_1): Ditto.
3245         (*one_cmplsi2_1_zext): Ditto.
3246         (*one_cmplqi2_1): Ditto.
3247         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
3248         the order of mask registers to be before general registers.
3249
3250 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
3251
3252         PR target/11877
3253         * config/i386/i386.md: New define_peephole2s to shrink writing
3254         1, 2 or 4 consecutive zeros to memory when optimizing for size.
3255
3256 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
3257
3258         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
3259         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
3260         more efficient code when the source can be trivially simplified.
3261
3262 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
3263
3264         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
3265         a range if global is not available.
3266         (ranger_cache::entry_range): Fallback to range_of_def.
3267         * gimple-range-cache.h (range_of_def): Adjust prototype.
3268
3269 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
3270
3271         PR tree-optimization/101014
3272         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
3273         value list.
3274         (ranger_cache::~ranger_cache): Ditto.
3275         (ranger_cache::enable_new_values): Delete.
3276         (ranger_cache::push_poor_value): Delete.
3277         (ranger_cache::range_of_def): Remove poor value processing.
3278         (ranger_cache::entry_range): Ditto.
3279         (ranger_cache::fill_block_cache): Ditto.
3280         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
3281         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
3282         * gimple-range.h (class gimple_ranger): Adjust.
3283
3284 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
3285
3286         PR target/100856
3287         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
3288         derived from arm_canon_arch.
3289         (arm_canon_arch_option): Call it.
3290         (arm_canon_arch_multilib_option): New function.
3291         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
3292         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
3293         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
3294         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
3295         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
3296         * config/arm/arm.opt (mlibarch): New option.
3297         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
3298         of march on RHS with mlibarch.
3299
3300 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
3301
3302         * config.in: Regenerate.
3303         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
3304         functions.
3305         * configure: Regenerate.
3306         * configure.ac: Fix for global_load assembler functions.
3307
3308 2021-06-18  Richard Biener  <rguenther@suse.de>
3309
3310         PR tree-optimization/101112
3311         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
3312         to lookup a pattern stmt def.
3313
3314 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
3315
3316         PR middle-end/101062
3317         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
3318         representatives in QUAL_UNION_TYPE.
3319
3320 2021-06-18  Andrew Pinski  <apinski@marvell.com>
3321
3322         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
3323         Add counting of how many times it is done.
3324         (factor_out_conditional_conversion): Likewise.
3325         (match_simplify_replacement): Likewise.
3326         (value_replacement): Likewise.
3327         (spaceship_replacement): Likewise.
3328         (cond_store_replacement): Likewise.
3329         (cond_if_else_store_replacement_1): Likewise.
3330         (hoist_adjacent_loads): Likewise.
3331
3332 2021-06-18  Andrew Pinski  <apinski@marvell.com>
3333
3334         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
3335         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
3336         (verify_gimple_assign_binary): Reject point and offset types on
3337         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
3338         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
3339         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
3340
3341 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
3342
3343         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
3344         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
3345         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
3346         New insns.
3347
3348 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
3349
3350         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
3351         earlyclobber to alts 0/1.
3352         (gen_addadd): Add earlyclobber to alts 0/1.
3353         * config/rs6000/fusion.md: Regenerate file.
3354
3355 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3356
3357         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
3358
3359 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
3360
3361         * gimple-range-cache.cc: Comment cleanups.
3362         * gimple-range-gori.cc: Comment cleanups.
3363         * gimple-range.cc: Comment/spacing cleanups
3364         * value-range.h: Comment cleanups.
3365
3366 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
3367
3368         PR target/100704
3369         * calls.c (expand_call): Replace PUSH_ARGS with
3370         targetm.calls.push_argument (0).
3371         (emit_library_call_value_1): Likewise.
3372         * defaults.h (PUSH_ARGS): Removed.
3373         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
3374         targetm.calls.push_argument (0).
3375         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3376         (emit_push_insn): Pass the number bytes to push to
3377         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
3378         * hooks.c (hook_bool_uint_true): New.
3379         * hooks.h (hook_bool_uint_true): Likewise.
3380         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
3381         targetm.calls.push_argument (0).
3382         * target.def (push_argument): Add a targetm.calls hook.
3383         * targhooks.c (default_push_argument): New.
3384         * targhooks.h (default_push_argument): Likewise.
3385         * config/bpf/bpf.h (PUSH_ARGS): Removed.
3386         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
3387         * config/cr16/cr16.h (PUSH_ARGS): Removed.
3388         * config/i386/i386.c (ix86_push_argument): New.
3389         (TARGET_PUSH_ARGUMENT): Likewise.
3390         * config/i386/i386.h (PUSH_ARGS): Removed.
3391         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
3392         * config/m32c/m32c.h (PUSH_ARGS): Removed.
3393         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
3394         * config/pru/pru.h (PUSH_ARGS): Likewise.
3395         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
3396         TARGET_PUSH_ARGUMENT hook.
3397         * doc/tm.texi: Regenerated.
3398
3399 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
3400
3401         PR target/97194
3402         * config/i386/i386-expand.c (expand_vector_set_var):
3403         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
3404         ix86_expand_vector_init_duplicate.
3405         (ix86_expand_vector_init_duplicate): Emit insv_1 for
3406         QImode for !TARGET_PARTIAL_REG_STALL.
3407         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
3408         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
3409         as operand 2 predicate.  Call ix86_expand_vector_set_var
3410         for non-constant index operand.
3411         (vec_setv2si): Ditto.
3412         (vec_setv4hi): Ditto.
3413         (vec_setv8qi): ditto.
3414
3415 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
3416
3417         PR tree-optimization/100790
3418         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
3419         code.
3420
3421 2021-06-17  Martin Liska  <mliska@suse.cz>
3422
3423         * doc/invoke.texi: Use consistently -O1 instead of -O.
3424
3425 2021-06-17  Martin Liska  <mliska@suse.cz>
3426
3427         * gcov-io.h: Update documentation entry about string format.
3428
3429 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
3430
3431         PR target/100871
3432         * config/s390/vecintrin.h (vec_doublee): Fix to use
3433           __builtin_s390_vflls.
3434         (vec_floate): Fix to use __builtin_s390_vflrd.
3435
3436 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3437
3438         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
3439         * dominance.h (get_dominated_to_depth): Likewise.
3440         (get_all_dominated_blocks): Likewise.
3441         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
3442         * gcse.c (hoist_code): Likewise.
3443         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
3444         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
3445         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
3446         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
3447
3448 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3449
3450         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
3451         * dominance.h (get_dominated_by_region): Likewise.
3452         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
3453         (gimple_duplicate_sese_tail): Likewise.
3454         (move_sese_region_to_fn): Likewise.
3455
3456 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3457
3458         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
3459         * dominance.h (get_dominated_by): Likewise.
3460         * auto-profile.c (afdo_find_equiv_class): Adjust.
3461         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
3462         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
3463         * tree-cfg.c (test_linear_chain): Likewise.
3464         (test_diamond): Likewise.
3465
3466 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3467
3468         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
3469         * cfgloopanal.c (get_loop_hot_path): Likewise.
3470         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
3471
3472 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3473
3474         * cgraph.c (cgraph_node::collect_callers): Return
3475         auto_vec<cgraph_edge *>.
3476         * cgraph.h (cgraph_node::collect_callers): Likewise.
3477         * ipa-cp.c (create_specialized_node): Adjust.
3478         (decide_about_value): Likewise.
3479         (decide_whether_version_node): Likewise.
3480         * ipa-sra.c (process_isra_node_results): Likewise.
3481
3482 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
3483
3484         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
3485         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
3486         constructor.
3487         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
3488         assignment.
3489
3490 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
3491
3492         * gimple-range.cc (debug_seed_ranger): New.
3493         (dump_ranger): New.
3494         (debug_ranger): New.
3495
3496 2021-06-17  Richard Biener   <rguenther@suse.de>
3497
3498         PR tree-optimization/54400
3499         * tree-vectorizer.h (enum slp_instance_kind): Add
3500         slp_inst_kind_bb_reduc.
3501         (reduction_fn_for_scalar_code): Declare.
3502         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
3503         Check SLP_INSTANCE_KIND instead of looking at the
3504         representative.
3505         (vect_slp_analyze_instance_alignment): Likewise.
3506         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
3507         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
3508         chain linearization from vect_build_slp_tree_2 and generalize
3509         for the use of BB reduction vectorization.
3510         (vect_build_slp_tree_2): Adjust accordingly.
3511         (vect_optimize_slp): Elide permutes at the root of BB reduction
3512         instances.
3513         (vectorizable_bb_reduc_epilogue): New function.
3514         (vect_slp_prune_covered_roots): Likewise.
3515         (vect_slp_analyze_operations): Use them.
3516         (vect_slp_check_for_constructors): Recognize associatable
3517         chains for BB reduction vectorization.
3518         (vectorize_slp_instance_root_stmt): Generate code for the
3519         BB reduction epilogue.
3520
3521 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
3522
3523         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
3524         may_recompute_p.
3525         (gori_compute::may_recompute_p): New.
3526         (gori_compute::outgoing_edge_range_p): Perform recomputations.
3527         * gimple-range-gori.h (class gori_compute): Add prototype.
3528
3529 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
3530
3531         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
3532         true when a range can be calculated.
3533         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
3534
3535 2021-06-16  Martin Sebor  <msebor@redhat.com>
3536
3537         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
3538         Correct documented defaults.
3539
3540 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
3541
3542         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
3543         m_new_value_p directly.
3544
3545 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
3546
3547         PR target/89021
3548         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
3549         Handle 64bit modes for TARGET_SSE4_1.
3550         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
3551         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
3552         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
3553         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
3554         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
3555         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
3556
3557 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
3558
3559         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
3560         Change to an expander that emits the correct instruction
3561         depending on endianness.
3562         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
3563         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
3564
3565 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
3566
3567         * config/aarch64/aarch64-simd-builtins.def: Split generator
3568         for aarch64_<su>qmovn builtins into scalar and vector
3569         variants.
3570         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
3571         Define.
3572         (aarch64_<su>qmovn<mode>_insn_be): Define.
3573         (aarch64_<su>qmovn<mode>): Split into scalar and vector
3574         variants. Change vector variant to an expander that emits the
3575         correct instruction depending on endianness.
3576
3577 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
3578
3579         * config/aarch64/aarch64-simd-builtins.def: Split generator
3580         for aarch64_sqmovun builtins into scalar and vector variants.
3581         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
3582         Split into scalar and vector variants. Change vector variant
3583         to an expander that emits the correct instruction depending
3584         on endianness.
3585         (aarch64_sqmovun<mode>_insn_le): Define.
3586         (aarch64_sqmovun<mode>_insn_be): Define.
3587
3588 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
3589
3590         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
3591         Define - modeling zero-high-half semantics.
3592         (aarch64_xtn<mode>): Change to an expander that emits the
3593         appropriate instruction depending on endianness.
3594         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
3595         semantics.
3596         (aarch64_xtn2<mode>_le): Rename to...
3597         (aarch64_xtn2<mode>_insn_le): This.
3598         (aarch64_xtn2<mode>_be): Rename to...
3599         (aarch64_xtn2<mode>_insn_be): This.
3600         (vec_pack_trunc_<mode>): Emit truncation instruction instead
3601         of aarch64_xtn.
3602         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
3603         attribute iterator.
3604
3605 2021-06-16  Martin Jambor  <mjambor@suse.cz>
3606
3607         PR tree-optimization/100453
3608         * tree-sra.c (create_access): Disqualify any const candidates
3609         which are written to.
3610         (sra_modify_expr): Do not store sub-replacements back to a const base.
3611         (handle_unscalarized_data_in_subtree): Likewise.
3612         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
3613         instead of constant_decl_p.
3614
3615 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
3616
3617         PR middle-end/101062
3618         * stor-layout.c (finish_bitfield_representative): For fields in unions
3619         assume nextf is always NULL.
3620         (finish_bitfield_layout): Compute bit field representatives also in
3621         unions, but handle it as if each bitfield was the only field in the
3622         aggregate.
3623
3624 2021-06-16  Richard Biener  <rguenther@suse.de>
3625
3626         PR tree-optimization/101088
3627         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
3628         supported refs on edges.  Do not assert same ref but
3629         different kind stores are unsuported but mark them so.
3630         (hoist_memory_references): Only look for supported refs
3631         on exits.
3632
3633 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
3634
3635         PR rtl-optimization/46235
3636         * config/i386/i386.md: New define_split for bt followed by cmov.
3637         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
3638         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
3639         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
3640         by setnc with zero extension.
3641
3642 2021-06-16  Richard Biener  <rguenther@suse.de>
3643
3644         PR tree-optimization/101083
3645         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
3646         vectype as argument.
3647         (vect_build_slp_tree_2): Adjust.
3648
3649 2021-06-15  Martin Sebor  <msebor@redhat.com>
3650
3651         PR middle-end/100876
3652         * builtins.c: (gimple_call_return_array): Account for size_t
3653         mangling as either unsigned int or unsigned long
3654
3655 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
3656
3657         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
3658         up before eliminating comparisons.
3659
3660 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
3661
3662         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
3663         nonzero|X is nonzero.
3664         (range_op_bitwise_and_tests): Add tests for above.
3665
3666 2021-06-15  Carl Love  <cel@us.ibm.com>
3667
3668         PR target/101022
3669         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
3670         enum definition.
3671         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
3672         definitions.
3673
3674 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
3675
3676         PR fortran/92568
3677         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
3678         (struct gimplify_omp_ctx): Extend defaultmap array by one.
3679         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
3680         (omp_notice_variable): Update type classification for Fortran.
3681         (gimplify_scan_omp_clauses): Update calls for new argument; handle
3682         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
3683         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
3684         * langhooks.c (lhd_omp_scalar_p): Likewise.
3685         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
3686         (LANG_HOOKS_DECLS): Add them.
3687         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
3688         omp_scalar_p pointer type to include the new bool argument.
3689
3690 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
3691
3692         * doc/analyzer.texi
3693         (Special Functions for Debugging the Analyzer): Add
3694         __analyzer_dump_capacity.
3695
3696 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
3697
3698         PR target/101046
3699         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
3700         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
3701
3702 2021-06-15  Richard Biener  <rguenther@suse.de>
3703
3704         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
3705         check to identify loop latches.
3706         * cfgloop.c (verify_loop_structure): Likewise.
3707         * loop-init.c (apply_loop_flags): Allow marked irreducible
3708         regions even with multiple latches.
3709         * predict.c (rebuild_frequencies): Simplify.
3710
3711 2021-06-15  Richard Biener  <rguenther@suse.de>
3712
3713         * tree-ssa-threadupdate.c
3714         (jump_thread_path_registry::mark_threaded_blocks): Assert we
3715         have marked irreducible regions.
3716
3717 2021-06-14  Martin Sebor  <msebor@redhat.com>
3718
3719         PR c++/100876
3720         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
3721         Handle calls to placement new.
3722         (ndecl_dealloc_argno): Avoid placement delete.
3723
3724 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
3725
3726         PR target/100777
3727         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
3728         create_tmp_reg_or_ssa_name().
3729
3730 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
3731
3732         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
3733         (ranger_cache::enable_new_values): Set to specified value and
3734         return the old value.
3735         (ranger_cache::disable_new_values): Delete.
3736         (ranger_cache::fill_block_cache): Disable non 1st order derived
3737         poor values.
3738         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
3739         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
3740
3741 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
3742
3743         PR target/101058
3744         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
3745         Return true early when testing with V2HImode.
3746         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
3747
3748 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
3749
3750         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
3751         (mve_vec_unpack<US>_hi_<mode>): New pattern.
3752         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
3753         (mve_vmovntq_<supf><mode>): Prefix with '@'.
3754         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
3755         vec-common.md.
3756         (vec_unpack<US>_lo_<mode>): Likewise.
3757         (vec_pack_trunc_<mode>): Rename to
3758         neon_quad_vec_pack_trunc_<mode>.
3759         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
3760         pattern.
3761         (vec_unpack<US>_lo_<mode>): New.
3762         (vec_pack_trunc_<mode>): New.
3763
3764 2021-06-14  Richard Biener  <rguenther@suse.de>
3765
3766         PR tree-optimization/100934
3767         * tree-ssa-dom.c (pass_dominator::execute): Properly
3768         mark irreducible regions.
3769
3770 2021-06-14  Martin Liska  <mliska@suse.cz>
3771
3772         * doc/invoke.texi: Put r{...} on the same line as @item.
3773
3774 2021-06-14  Martin Liska  <mliska@suse.cz>
3775
3776         * doc/invoke.texi: Add missing newline.
3777
3778 2021-06-14  Martin Liska  <mliska@suse.cz>
3779
3780         * doc/invoke.texi: Remove '+' charasters.
3781
3782 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
3783
3784         * config.gcc (arc): Add support for with_cpu option.
3785         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
3786
3787 2021-06-14  Richard Biener  <rguenther@suse.de>
3788
3789         PR tree-optimization/101031
3790         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
3791         instead of size when accounting for a possibly string
3792         terminating nul.
3793
3794 2021-06-14  Martin Liska  <mliska@suse.cz>
3795
3796         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
3797
3798 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
3799
3800         * value-query.cc (gimple_range_global): Call get_range_global
3801         if called after inlining.
3802
3803 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
3804
3805         PR target/101021
3806         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
3807         Emit constant permutation insn directly from here.
3808
3809 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
3810
3811         * attribs.c (find_attribute_namespace): Iterate over vec<> with
3812         range based for.
3813         * auto-profile.c (afdo_find_equiv_class): Likewise.
3814         * gcc.c (do_specs_vec): Likewise.
3815         (do_spec_1): Likewise.
3816         (driver::set_up_specs): Likewise.
3817         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
3818         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
3819         (imm_store_chain_info::try_coalesce_bswap): Likewise.
3820         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3821         (get_location_for_stmts): Likewise.
3822         * graphite-poly.c (print_iteration_domains): Likewise.
3823         (free_poly_bb): Likewise.
3824         (remove_gbbs_in_scop): Likewise.
3825         (free_scop): Likewise.
3826         (dump_gbb_cases): Likewise.
3827         (dump_gbb_conditions): Likewise.
3828         (print_pdrs): Likewise.
3829         (print_scop): Likewise.
3830         * ifcvt.c (cond_move_process_if_block): Likewise.
3831         * lower-subreg.c (decompose_multiword_subregs): Likewise.
3832         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
3833         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
3834         * sel-sched-dump.c (dump_insn_vector): Likewise.
3835         * store-motion.c (store_ops_ok): Likewise.
3836         (store_killed_in_insn): Likewise.
3837         * timevar.c (timer::named_items::print): Likewise.
3838         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
3839         (cleanup_tree_cfg_noloop): Likewise.
3840         * tree-data-ref.c (dump_data_references): Likewise.
3841         (print_dir_vectors): Likewise.
3842         (print_dist_vectors): Likewise.
3843         (dump_data_dependence_relations): Likewise.
3844         (dump_dist_dir_vectors): Likewise.
3845         (dump_ddrs): Likewise.
3846         (create_runtime_alias_checks): Likewise.
3847         (free_subscripts): Likewise.
3848         (save_dist_v): Likewise.
3849         (save_dir_v): Likewise.
3850         (invariant_access_functions): Likewise.
3851         (same_access_functions): Likewise.
3852         (access_functions_are_affine_or_constant_p): Likewise.
3853         (find_data_references_in_stmt): Likewise.
3854         (graphite_find_data_references_in_stmt): Likewise.
3855         (free_dependence_relations): Likewise.
3856         (free_data_refs): Likewise.
3857         * tree-inline.c (copy_debug_stmts): Likewise.
3858         * tree-into-ssa.c (dump_currdefs): Likewise.
3859         (rewrite_update_phi_arguments): Likewise.
3860         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
3861         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
3862         Likewise.
3863         (vect_slp_analyze_node_dependences): Likewise.
3864         (vect_slp_analyze_instance_dependence): Likewise.
3865         (vect_record_base_alignments): Likewise.
3866         (vect_get_peeling_costs_all_drs): Likewise.
3867         (vect_peeling_supportable): Likewise.
3868         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
3869         (vec_info::free_stmt_vec_infos): Likewise.
3870
3871 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
3872
3873         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
3874         (andqi3_1<cczn>): Removed.
3875         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
3876         (H8/SX bit logicals): Split out from other patterns.
3877         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
3878         mulqihi3_const_clobber_flags.
3879         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
3880
3881 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
3882
3883         PR target/101023
3884         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
3885         to true if red zone is used.
3886         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
3887         ix86_red_zone_used.
3888         * config/i386/i386.h (machine_function): Add red_zone_used.
3889         (ix86_red_zone_size): Removed.
3890         (ix86_red_zone_used): New.
3891         * config/i386/i386.md (peephole2 patterns): Replace
3892         ix86_red_zone_size with ix86_red_zone_used.
3893
3894 2021-06-12  Jason Merrill  <jason@redhat.com>
3895
3896         * doc/extend.texi (unused variable attribute): Applies to
3897         structure fields as well.
3898
3899 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
3900
3901         * auto-profile.c (read_profile): fix a typo in an error string
3902
3903 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
3904
3905         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
3906         default argument.
3907         * tree-pretty-print.c (dump_omp_clauses): Update.
3908         (dump_generic_node) <OMP_CLAUSE>: Use it.
3909
3910 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
3911
3912         PR target/101016
3913         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
3914         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
3915         the polymorphic variants matching code.
3916         (__arm_vld1q_z): Likewise.
3917         (__arm_vld2q): Likewise.
3918         (__arm_vld4q): Likewise.
3919         (__arm_vldrbq_gather_offset): Likewise.
3920         (__arm_vldrbq_gather_offset_z): Likewise.
3921
3922 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
3923
3924         PR tree-optimization/96392
3925         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
3926
3927 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
3928
3929         PR tree-optimization/96392
3930         * fold-const.c (fold_real_zero_addition_p): Take both arguments
3931         of the addition or subtraction, not just the zero.  Use this
3932         other argument in tests for signaling NaNs and signed zeros.
3933         (tree_expr_maybe_real_minus_zero_p): New predicate.
3934         * fold-const.h (fold_real_zero_addition_p): Update prototype.
3935         (tree_expr_maybe_real_minus_zero_p): New function prototype.
3936         * match.pd: Update calls to fold_real_zero_addition_p.
3937         Replace HONOR_NANS with tree_expr_maybe_nan_p.
3938         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
3939         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
3940         * tree-ssa-reassoc.c (eliminate_using_constants): Update
3941         call to fold_real_zero_addition_p.
3942
3943 2021-06-11  Richard Biener  <rguenther@suse.de>
3944
3945         PR tree-optimization/101025
3946         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
3947         all refs that require dependence checking.
3948
3949 2021-06-11  Richard Biener  <rguenther@suse.de>
3950
3951         PR tree-optimization/101028
3952         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
3953         reassoc discovery fails fatally, mark appropriate lanes
3954         in matches[] so.
3955
3956 2021-06-11  Richard Biener  <rguenther@suse.de>
3957
3958         PR tree-optimization/101026
3959         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
3960         have a representative for the associated chain nodes.
3961
3962 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
3963
3964         PR rtl-optimization/101008
3965         * simplify-rtx.c (relational_result): New function.
3966         (simplify_logical_relational_operation,
3967         simplify_relational_operation): Use it.
3968
3969 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
3970
3971         PR target/101007
3972         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
3973
3974 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
3975
3976         PR target/101021
3977         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
3978         false if the permutation can be implemented with constant
3979         permutation instruction in wider mode.
3980         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
3981         Handle V8QImode and V4HImode.
3982
3983 2021-06-11  Martin Liska  <mliska@suse.cz>
3984
3985         PR gcov-profile/100788
3986         * common.opt: Add new option.
3987         * coverage.c (coverage_begin_function): Emit warning instead on
3988         the internal compiler error.
3989         * doc/invoke.texi: Document the option.
3990         * toplev.c (process_options): Enable it by default.
3991
3992 2021-06-11  Richard Biener  <rguenther@suse.de>
3993
3994         PR middle-end/101009
3995         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
3996         to set *init_b to true when we encounter a constant equal
3997         index pair.
3998         (compute_affine_dependence): Also dump the actual DR_REF.
3999
4000 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
4001
4002         PR tree-optimization/100984
4003         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
4004         replacements table.
4005         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
4006
4007 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
4008
4009         * config/rs6000/rs6000.md
4010         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
4011         define_insn_and_split.
4012
4013 2021-06-11  Richard Biener  <rguenther@suse.de>
4014
4015         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
4016         to sort operands of the associative chain.
4017
4018 2021-06-11  Richard Biener  <rguenther@suse.de>
4019
4020         * system.h (gcc_stablesort_r): Declare.
4021         * sort.cc (gcc_sort_r): Support stable sort.
4022         (gcc_stablesort_r): Define.
4023         * vec.h (vec<>::stablesort): Add.
4024
4025 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
4026
4027         PR target/89021
4028         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
4029         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
4030         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
4031         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
4032         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
4033         (expand_vec_perm_interleave2): Handle 64bit modes.
4034         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
4035         (expand_vec_perm_even_odd_1): Ditto.
4036         (ix86_vectorize_vec_perm_const): Ditto.
4037         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
4038         * config/i386/sse.md: ... here.
4039         * config/i386/mmx.md (*vec_interleave_lowv2sf):
4040         New insn_and_split pattern.
4041         (*vec_interleave_highv2sf): Ditto.
4042         (mmx_pshufbv8qi3): New insn pattern.
4043         (*mmx_pblendw): Ditto.
4044
4045 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
4046
4047         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
4048         (build_acc): Likewise.
4049         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
4050         source operands in little-endian mode.
4051         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
4052         (mma_init_builtins): Likewise.
4053         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
4054         ordering for the MMA assemble and build source operands.
4055         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
4056         Document.
4057         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
4058         documentation.
4059
4060 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
4061
4062         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
4063         REG_P.
4064         * config/h8300/extensions.md: Replace _clobber_flags patterns
4065         with <cczn>.
4066
4067 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
4068
4069         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
4070         (vcond_mask_<mode><tointvec>): this.
4071
4072 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4073             Thomas Schwinge  <thomas@codesourcery.com>
4074
4075         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
4076         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
4077         * gimple.h (enum gf_mask): Split
4078         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
4079         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
4080         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
4081         (is_gimple_omp_oacc): Update.
4082         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
4083         * gimplify.c (gimplify_omp_target_update): Likewise.
4084         * omp-expand.c (expand_omp_target, build_omp_regions_1)
4085         (omp_make_gimple_edges): Likewise.
4086         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
4087         Likewise.
4088
4089 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
4090
4091         * value-query.cc (value_query::value_on_edge): Rename name to
4092         expr.
4093         (range_query::range_on_edge): Same.
4094         (range_query::value_of_expr): Same.
4095         (range_query::value_on_edge): Same.
4096         * value-query.h (class value_query): Same.
4097         (class range_query): Same.
4098
4099 2021-06-10  Richard Biener  <rguenther@suse.de>
4100
4101         PR tree-optimization/101003
4102         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
4103         use the pattern stmt defs when linearizing a chain.
4104
4105 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
4106
4107         PR debug/100852
4108         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
4109         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
4110
4111 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
4112
4113         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
4114         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
4115
4116 2021-06-09  Andrew Pinski  <apinski@marvell.com>
4117
4118         PR tree-optimization/100925
4119         * match.pd (a ? CST1 : CST2): Limit transformations
4120         that would produce a negative to integeral types only.
4121         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
4122
4123 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
4124
4125         Revert:
4126         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
4127
4128         * doc/tm.texi: Correctly update.
4129
4130 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
4131
4132         * doc/tm.texi: Correctly update.
4133
4134 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4135
4136         PR other/100735
4137         * doc/tm.texi.in (Trampolines): Add a missing blank line.
4138
4139 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
4140
4141         PR other/100735
4142         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
4143         and -ftrampolines work only with Ada.
4144         * doc/tm.texi.in (Trampolines): Likewise.
4145         * doc/tm.texi: Regenerated.
4146
4147 2021-06-09  Carl Love  <cel@us.ibm.com>
4148
4149         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
4150         Add define for new builtins.
4151         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
4152         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
4153         overloaded builtin definitions.
4154         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
4155         VSIGNEXTSD2Q):  Add builtin expansions.
4156         (SIGNEXT): Add P10 overload definition.
4157         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
4158         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
4159         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
4160         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
4161         vsignextend_si_v2di)[VIlong]: Add define_expand.
4162         Make define_insn vsx_sign_extend_si_v2di visible.
4163         * doc/extend.texi:  Add documentation for the vec_signexti,
4164         vec_signextll builtins and vec_signextq.
4165
4166 2021-06-09  Carl Love  <cel@us.ibm.com>
4167
4168         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
4169         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
4170         __floattikf_sw, __floatuntikf_sw respectively.
4171         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
4172         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
4173         define_insn for mode IEEE 128.
4174
4175 2021-06-09  Carl Love  <cel@us.ibm.com>
4176
4177         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
4178         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
4179         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
4180         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
4181         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
4182         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
4183         uses of VSX_TI to VEC_TI.
4184
4185 2021-06-09  Carl Love  <cel@us.ibm.com>
4186
4187         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
4188
4189 2021-06-09  Carl Love  <cel@us.ibm.com>
4190
4191         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
4192         builtins.
4193         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
4194         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
4195         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
4196         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
4197         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
4198         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
4199         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
4200         define_insn.
4201         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
4202         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
4203         altivec_vrlqnm): New define_expands.
4204         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
4205         VCMPGTUT_P): Add macro expansions.
4206         (BU_P10V_AV_P): Add builtin predicate definition.
4207         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
4208         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
4209         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
4210         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
4211         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
4212         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
4213         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
4214         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
4215         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
4216         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
4217         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
4218         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
4219         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
4220         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
4221         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
4222         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
4223         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
4224         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
4225         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
4226         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
4227         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
4228         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
4229         P10V_BUILTIN_MODU_V1TI):
4230         New overloaded definitions.
4231         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
4232         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
4233         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
4234         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
4235         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
4236         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
4237         New assignments.
4238         (altivec_init_builtins): New E_V1TImode case statement.
4239         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
4240         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
4241         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
4242         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
4243         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
4244         E_V1TImode]: New case statements.
4245         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
4246         value RS6000_BTI_bool_V1TI.
4247         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
4248         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
4249         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
4250         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
4251         vlshrv1ti3, vashrv1ti3): New define_expands.
4252         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
4253         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
4254         UNSPEC_VSX_MODUQ): New unspecs.
4255         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
4256         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
4257         define_insns.
4258         (vcmpnet): New define_expand.
4259         * doc/extend.texi: Add documentation for the new builtins vec_rl,
4260         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
4261         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
4262         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
4263         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
4264         vec_any_ge, vec_any_le.
4265
4266 2021-06-09  Carl Love  <cel@us.ibm.com>
4267
4268         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
4269         bug in argument generation.
4270
4271 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
4272
4273         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
4274         (VCLZQ): Remove.
4275         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
4276         remove <supf> iterator.
4277         (mve_vclzq_u<mode>): New.
4278         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
4279         (neon_vclz<mode): Move to ...
4280         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
4281         * config/arm/vec-common.md: ... here. Add support for MVE.
4282
4283 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
4284
4285         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
4286         (@mve_vrhaddq_<supf><mode): Likewise.
4287         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
4288         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
4289         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
4290
4291 2021-06-09  imba-tjd  <109224573@qq.com>
4292
4293         * doc/invoke.texi: Fix typo.
4294
4295 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
4296
4297         PR middle-end/53267
4298         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
4299         Support evaluation of fmod/fmodf/fmodl at compile-time.
4300
4301 2021-06-09  Richard Biener  <rguenther@suse.de>
4302
4303         PR tree-optimization/100981
4304         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4305         gimple_get_lhs to also handle calls.
4306         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
4307         reduction info.
4308
4309 2021-06-09  Richard Biener  <rguenther@suse.de>
4310
4311         PR tree-optimization/97832
4312         * tree-vectorizer.h (_slp_tree::failed): New.
4313         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
4314         failed member.
4315         (_slp_tree::~_slp_tree): Free failed.
4316         (vect_build_slp_tree): Retain failed nodes and record
4317         matches in them, copying that back out when running
4318         into a cached fail.  Dump start and end of discovery.
4319         (dt_sort_cmp): New.
4320         (vect_build_slp_tree_2): Handle associatable chains
4321         together doing more aggressive operand swapping.
4322
4323 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4324
4325         PR target/100896
4326         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
4327         GNU targets.
4328         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
4329         Linux and GNU targets.
4330
4331 2021-06-09  Richard Biener  <rguenther@suse.de>
4332
4333         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
4334         from the stmt.
4335
4336 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
4337
4338         * config/arc/arc.md (loop_end): Change it to
4339         define_insn_and_split.
4340
4341 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
4342
4343         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
4344         (machi): New pattern.
4345         (umaddhisi4): Use VMAC2HU instruction.
4346         (umachi): New pattern.
4347
4348 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
4349
4350         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
4351         * config/arc/arc.c (arc_split_move_p): New function.
4352         (arc_split_move): Clean up.
4353         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
4354         (movdf_insn): Likewise.
4355         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
4356
4357 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
4358
4359         PR target/100936
4360         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
4361         argument to "raw".  Do not emit segment overrides when "raw" is true.
4362
4363 2021-06-09  Martin Liska  <mliska@suse.cz>
4364
4365         * doc/gcov.texi: Create a proper JSON files.
4366         * doc/invoke.texi: Remove dots in order to make it a valid
4367         JSON object.
4368
4369 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
4370
4371         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
4372         (insn_is_load_p): Use pattern_is_rotate64.
4373         (insn_is_swap_p): Likewise.
4374         (quad_aligned_load_p): Likewise.
4375         (const_load_sequence_p): Likewise.
4376         (replace_swapped_aligned_load): Likewise.
4377         (recombine_lvx_pattern): Likewise.
4378         (recombine_stvx_pattern): Likewise.
4379
4380 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
4381
4382         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
4383         fur_stmt source record.
4384         * gimple-range.cc (fur_source::get_operand): Generic range query.
4385         (fur_source::get_phi_operand): New.
4386         (fur_source::register_dependency): New.
4387         (fur_source::query): New.
4388         (class fur_edge): New.  Edge source for operands.
4389         (fur_edge::fur_edge): New.
4390         (fur_edge::get_operand): New.
4391         (fur_edge::get_phi_operand): New.
4392         (fur_edge::query): New.
4393         (fur_stmt::fur_stmt): New.
4394         (fur_stmt::get_operand): New.
4395         (fur_stmt::get_phi_operand): New.
4396         (fur_stmt::query): New.
4397         (class fur_depend): New.  Statement source and process dependencies.
4398         (fur_depend::fur_depend): New.
4399         (fur_depend::register_dependency): New.
4400         (class fur_list): New.  List source for operands.
4401         (fur_list::fur_list): New.
4402         (fur_list::get_operand): New.
4403         (fur_list::get_phi_operand): New.
4404         (fold_range): New.  Instantiate appropriate fur_source class and fold.
4405         (fold_using_range::range_of_range_op): Use new API.
4406         (fold_using_range::range_of_address): Ditto.
4407         (fold_using_range::range_of_phi): Ditto.
4408         (imple_ranger::fold_range_internal): Use fur_depend class.
4409         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
4410         * gimple-range.h (class fur_source): Now a base class.
4411         (class fur_stmt): New.
4412         (fold_range): New prototypes.
4413         (fur_source::fur_source): Delete.
4414
4415 2021-06-08  Andrew Pinski  <apinski@marvell.com>
4416
4417         PR tree-optimization/25290
4418         * tree-ssa-phiopt.c (xor_replacement): Delete.
4419         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
4420         (match_simplify_replacement): Allow one cheap preparation
4421         statement that can be moved to before the if.
4422
4423 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
4424
4425         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
4426         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
4427
4428 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
4429
4430         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
4431         Create length attribute on define_insn_and_split.  Only split for cases which we
4432         know will use AND.
4433         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
4434         fix length computation.
4435         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
4436
4437 2021-06-08  Richard Biener  <rguenther@suse.de>
4438
4439         PR tree-optimization/100923
4440         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
4441         the operand vector to be valueized.
4442         (valueize_refs): Likewise.
4443         (valueize_shared_reference_ops_from_ref): Adjust.
4444         (valueize_shared_reference_ops_from_call): Likewise.
4445         (vn_reference_lookup_3): Likewise.
4446         (vn_reference_lookup_pieces): Likewise.  Re-valueize
4447         with honoring availability when we are about to create
4448         the ao_ref and valueized before.
4449         (vn_reference_lookup): Likewise.
4450         (vn_reference_insert_pieces): Adjust.
4451
4452 2021-06-08  Richard Biener  <rguenther@suse.de>
4453
4454         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
4455         (_slp_instance::root_stmts): ... a vector.
4456         (SLP_INSTANCE_ROOT_STMT): Rename to ...
4457         (SLP_INSTANCE_ROOT_STMTS): ... this.
4458         (slp_root::root): Change to...
4459         (slp_root::roots): ... a vector.
4460         (slp_root::slp_root): Adjust.
4461         * tree-vect-slp.c (_slp_instance::location): Adjust.
4462         (vect_free_slp_instance): Release the root stmt vector.
4463         (vect_build_slp_instance): Adjust.
4464         (vect_analyze_slp): Likewise.
4465         (_bb_vec_info::~_bb_vec_info): Likewise.
4466         (vect_slp_analyze_operations): Likewise.
4467         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
4468         costs for the root stmt.
4469         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
4470         as root stmts.
4471         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
4472         as pure_slp.
4473         (vectorize_slp_instance_root_stmt): Adjust.
4474         (vect_schedule_slp): Likewise.
4475
4476 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
4477
4478         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
4479         (ssa_equiv_stack::ssa_equiv_stack): New.
4480         (ssa_equiv_stack::~ssa_equiv_stack): New.
4481         (ssa_equiv_stack::enter): New.
4482         (ssa_equiv_stack::leave): New.
4483         (ssa_equiv_stack::push_replacement): New.
4484         (ssa_equiv_stack::get_replacement): New.
4485         (is_pointer_ssa): New.
4486         (class pointer_equiv_analyzer): New.
4487         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
4488         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
4489         (pointer_equiv_analyzer::set_global_equiv): New.
4490         (pointer_equiv_analyzer::set_cond_equiv): New.
4491         (pointer_equiv_analyzer::get_equiv): New.
4492         (pointer_equiv_analyzer::enter): New.
4493         (pointer_equiv_analyzer::leave): New.
4494         (pointer_equiv_analyzer::get_equiv_expr): New.
4495         (pta_valueize): New.
4496         (pointer_equiv_analyzer::visit_stmt): New.
4497         (pointer_equiv_analyzer::visit_edge): New.
4498         (hybrid_folder::value_of_expr): Call PTA.
4499         (hybrid_folder::value_on_edge): Same.
4500         (hybrid_folder::pre_fold_bb): New.
4501         (hybrid_folder::post_fold_bb): New.
4502         (hybrid_folder::pre_fold_stmt): New.
4503         (rvrp_folder::pre_fold_bb): New.
4504         (rvrp_folder::post_fold_bb): New.
4505         (rvrp_folder::pre_fold_stmt): New.
4506         (rvrp_folder::value_of_expr): Call PTA.
4507         (rvrp_folder::value_on_edge): Same.
4508
4509 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
4510
4511         PR c++/100957
4512         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
4513         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
4514
4515 2021-06-08  Richard Biener  <rguenther@suse.de>
4516
4517         PR middle-end/100951
4518         * tree-vect-generic.c (expand_vector_piecewise): Build a
4519         VECTOR_CST if all elements are constant.
4520         (expand_vector_condition): Likewise.
4521         (lower_vec_perm): Likewise.
4522         (expand_vector_conversion): Likewise.
4523
4524 2021-06-08  Martin Liska  <mliska@suse.cz>
4525
4526         * doc/invoke.texi: Document new param evrp-sparse-threshold.
4527
4528 2021-06-08  Martin Liska  <mliska@suse.cz>
4529
4530         * genautomata.c (create_automata): Fix typo.
4531
4532 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
4533
4534         PR tree-optimization/100794
4535         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
4536         allow_unroll_p and only allow unrolling when it's true.
4537         (tree_predictive_commoning): Add parameter allow_unroll_p and
4538         adjust for it.
4539         (run_tree_predictive_commoning): Likewise.
4540         (pass_predcom::gate): Check flag_tree_loop_vectorize and
4541         global_options_set.x_flag_predictive_commoning.
4542         (pass_predcom::execute): Adjust for allow_unroll_p.
4543
4544 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
4545
4546         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
4547         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
4548         lambda function cleanup, remove scev_reset call, and adjust return
4549         value.
4550         (tree_predictive_commoning): Adjust for different changed values,
4551         only set flag TODO_update_ssa_only_virtuals if changed.
4552         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
4553         from todo_flags_finish.
4554
4555 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
4556
4557         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
4558         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
4559         (sbr_sparse_bitmap::bitmap_set_quad): New.
4560         (sbr_sparse_bitmap::bitmap_get_quad): New.
4561         (sbr_sparse_bitmap::set_bb_range): New.
4562         (sbr_sparse_bitmap::get_bb_range): New.
4563         (sbr_sparse_bitmap::bb_range_p): New.
4564         (block_range_cache::block_range_cache): initialize bitmap obstack.
4565         (block_range_cache::~block_range_cache): Destruct obstack.
4566         (block_range_cache::set_bb_range): Decide when to utilze the
4567         sparse on entry cache.
4568         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
4569         * params.opt (-param=evrp-sparse-threshold): New.
4570
4571 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
4572
4573         * bitmap.c (bitmap_set_aligned_chunk): New.
4574         (bitmap_get_aligned_chunk): New.
4575         (test_aligned_chunk): New.
4576         (bitmap_c_tests): Call test_aligned_chunk.
4577         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
4578
4579 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
4580
4581         PR target/100637
4582         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
4583         Handle V4QI mode.
4584         (ix86_expand_vector_init_one_nonzero): Ditto.
4585         (ix86_expand_vector_init_one_var): Ditto.
4586         (ix86_expand_vector_init_general): Ditto.
4587         * config/i386/mmx.md (vec_initv4qiqi): New expander.
4588
4589 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
4590
4591         * config/h8300/movepush.md: Change most _clobber_flags
4592         patterns to instead use <cczn> subst.
4593         (movsi_cczn): New pattern with usable CC cases split out.
4594         (movsi_h8sx_cczn): Likewise.
4595
4596 2021-06-07  Martin Liska  <mliska@suse.cz>
4597
4598         * common/common-target.def: Split long lines and replace them
4599         with '\n\'.
4600         * target.def: Likewise.
4601         * doc/tm.texi: Re-generated.
4602
4603 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
4604
4605         PR target/100887
4606         * fold-const.c (fold_read_from_vector): Return NULL if trying to
4607         read from a CONSTRUCTOR with vector type elements.
4608
4609 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
4610
4611         PR middle-end/100898
4612         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
4613         should copy any arguments.  Don't call gimple_call_num_args
4614         on id->call_stmt or call_stmt more than once.
4615
4616 2021-06-07  liuhongt  <hongtao.liu@intel.com>
4617
4618         PR target/100885
4619         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
4620         constraints.
4621         (<insn>v4siv4di2): Delete constraints for define_expand.
4622
4623 2021-06-07  liuhongt  <hongtao.liu@intel.com>
4624
4625         PR target/82735
4626         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
4627         assignment of cfun->machine->has_explicit_vzeroupper.
4628         * config/i386/i386-features.c
4629         (ix86_add_reg_usage_to_vzerouppers): Delete.
4630         (ix86_add_reg_usage_to_vzeroupper): Ditto.
4631         (rest_of_handle_insert_vzeroupper): Remove
4632         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
4633         of the function.
4634         (gate): Remove cfun->machine->has_explicit_vzeroupper.
4635         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
4636         Declared.
4637         * config/i386/i386.c (ix86_insn_callee_abi): New function.
4638         (ix86_initialize_callee_abi): Ditto.
4639         (ix86_expand_avx_vzeroupper): Ditto.
4640         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
4641         ABI.
4642         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
4643         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
4644         directly.
4645         * config/i386/i386.h (struct GTY(()) machine_function): Delete
4646         has_explicit_vzeroupper.
4647         * config/i386/i386.md (enum unspec): New member
4648         UNSPEC_CALLEE_ABI.
4649         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
4650         define_constants for insn callee abi index.
4651         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
4652         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
4653         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
4654         (*avx_vzeroupper): Rename to ..
4655         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
4656         call_insn which has a special vzeroupper ABI.
4657         (*avx_vzeroupper_1): Deleted.
4658
4659 2021-06-07  liuhongt  <hongtao.liu@intel.com>
4660
4661         PR target/82735
4662         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
4663         it won't use stack pointer reg.
4664         * final.c (leaf_function_p): When call_insn is a fake call, it
4665         won't affect caller as a leaf function.
4666         * reg-stack.c (callee_clobbers_any_stack_reg): New.
4667         (subst_stack_regs): When call_insn doesn't clobber any stack
4668         reg, don't clear the arguments.
4669         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
4670         a insn.
4671         * shrink-wrap.c (requires_stack_frame_p): No need for stack
4672         frame for a fake call.
4673         * rtl.h (FAKE_CALL_P): New macro.
4674
4675 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
4676
4677         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
4678         to...
4679         (sparc_order_regs_for_local_alloc): ...this.
4680         (sparc_leaf_reg_remap): Declare.
4681         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
4682         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
4683         * config/sparc/sparc.c (leaf_reg_remap): Delete.
4684         (order_regs_for_local_alloc): Rename to...
4685         (sparc_order_regs_for_local_alloc): ...this.
4686         (sparc_leaf_reg_remap): New function.
4687         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
4688
4689 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
4690
4691         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
4692         Use assemble_name to output BSS section name.
4693
4694 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
4695
4696         * config/i386/constraints.md (Bs):
4697         Remove boolean operators from match_test RTX.
4698         (Bw): Ditto.
4699         (L): Ditto.
4700         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
4701         (Wz): Ditto.
4702
4703 2021-06-06  Martin Liska  <mliska@suse.cz>
4704
4705         * doc/extend.texi: Add missing @headitem.
4706         * doc/invoke.texi: Likewise.
4707         * doc/objc.texi: Likewise.
4708
4709 2021-06-06  Martin Liska  <mliska@suse.cz>
4710
4711         * genhooks.c (emit_findices): Remove unused function.
4712         (emit_documentation): Do not call emit_findices
4713         and do not search for @Fcode directives.
4714
4715 2021-06-06  Martin Liska  <mliska@suse.cz>
4716
4717         * doc/invoke.texi: Remove extra character.
4718
4719 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
4720
4721         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
4722
4723 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
4724
4725         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
4726         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
4727         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
4728         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
4729
4730 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
4731
4732         * config/or1k/or1k.md (*movdi): Fix empty split condition.
4733
4734 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
4735
4736         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
4737         split condition.
4738
4739 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
4740
4741         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
4742         *zero_extendsidi2): Fix empty split condition.
4743
4744 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
4745
4746         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
4747         patterns.
4748         * config/h8300/bitfield.md: Likewise.
4749         * config/h8300/combiner.md: Likewise.
4750         * config/h8300/divmod.md: Likewise.
4751         * config/h8300/extensions.md: Likewise.
4752         * config/h8300/jumpcall.md: Likewise.
4753         * config/h8300/movepush.md: Likewise.
4754         * config/h8300/multiply.md: Likewise.
4755         * config/h8300/other.md: Likewise.
4756         * config/h8300/shiftrotate.md: Likewise.
4757         * config/h8300/logical.md: Likewise.  Fix split pattern to use
4758         code iterator that somehow slipped through.
4759
4760 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
4761
4762         PR middle-end/100905
4763         * tree-nested.c (convert_nonlocal_omp_clauses,
4764         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
4765
4766 2021-06-04  Martin Sebor  <msebor@redhat.com>
4767
4768         PR middle-end/100732
4769         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
4770         with either source or destination argument of invalid type.
4771         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
4772         calls with arguments of invalid type.
4773
4774 2021-06-04  Martin Sebor  <msebor@redhat.com>
4775
4776         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
4777         order.
4778         (attr_access::vla_bounds): Also handle VLA bounds.
4779
4780 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
4781
4782         * config/i386/predicates.md (GOT_memory_operand):
4783         Implement using match_code RTXes.
4784         (GOT32_symbol_operand): Ditto.
4785
4786 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
4787
4788         PR target/100637
4789         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
4790         Handle V2HI mode.
4791         (ix86_expand_vector_init_general): Ditto.
4792         Use SImode instead of word_mode for logic operations
4793         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
4794         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
4795         implemented by expand_vec_perm_1.
4796         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
4797         should be implemented using standard shuffle patterns.
4798         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
4799         V2HI modes to modes, implementable with shuffle for one operand.
4800         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
4801         (*pshufw_1): New insn pattern.
4802         (*vec_dupv2hi): Ditto.
4803         (vec_initv2hihi): New expander.
4804
4805 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
4806
4807         * config/arm/vfp.md (no_literal_pool_df_immediate,
4808         no_literal_pool_sf_immediate): Fix empty split condition.
4809
4810 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
4811
4812         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
4813         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
4814         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
4815         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
4816         *<sse4_1_avx2>_pblendvb_lt): Likewise.
4817
4818 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
4819
4820         PR target/100887
4821         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
4822         concatenation from half-sized modes with TImode elements.
4823
4824 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
4825
4826         * config/arc/arc.c (arc_override_options): Disable millicode
4827         thunks when RF16 is on.
4828
4829 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
4830
4831         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
4832
4833 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
4834
4835         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
4836         Replace PROMOTE_MODE marco with its content.
4837
4838 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
4839
4840         * config/cris/cris.md (*addi_reload): Fix empty split condition.
4841
4842 2021-06-03  Jim Wilson  <jimw@sifive.com>
4843
4844         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
4845         turn it on for all riscv targets.
4846
4847 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
4848
4849         PR target/100637
4850         * config/i386/i386-expand.c (ix86_expand_vector_set):
4851         Handle V2HI and V4QI modes.
4852         (ix86_expand_vector_extract): Ditto.
4853         * config/i386/mmx.md (*pinsrw): New insn pattern.
4854         (*pinsrb): Ditto.
4855         (*pextrw): Ditto.
4856         (*pextrw_zext): Ditto.
4857         (*pextrb): Ditto.
4858         (*pextrb_zext): Ditto.
4859         (vec_setv2hi): New expander.
4860         (vec_extractv2hihi): Ditto.
4861         (vec_setv4qi): Ditto.
4862         (vec_extractv4qiqi): Ditto.
4863         (vec_setv8qi): Enable only for TARGET_SSE4_1.
4864         (vec_extractv8qiqi): Ditto.
4865
4866 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
4867
4868         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
4869         order to subf instruction.
4870         * config/rs6000/fusion.md: Regenerate.
4871
4872 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
4873
4874         * calls.c (get_size_range): Use range_of_expr instead of
4875         determine_value_range.
4876         * tree-affine.c (expr_to_aff_combination): Same.
4877         * tree-data-ref.c (split_constant_offset): Same.
4878         * tree-vrp.c (determine_value_range_1): Remove.
4879         (determine_value_range): Remove.
4880         * tree-vrp.h (determine_value_range): Remove.
4881
4882 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
4883
4884         * function-tests.c (test_ranges): Call gimple_range_tests.
4885         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
4886         to get_tree_range.
4887         * gimple-range.cc (fur_source::get_operand): Do not call
4888         get_tree_range or gimple_range_global.
4889         get_tree_range.
4890         (get_tree_range): Move to value-query.cc.
4891         Call get_arith_expr_range.
4892         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
4893         Include gimple-range-tests.cc.
4894         * gimple-range.h (fold_range): Add argument.
4895         (get_tree_range): Remove.
4896         * selftest.h (gimple_range_tests): New.
4897         * value-query.cc (global_range_query::range_of_expr): Add
4898         stmt argument.
4899         (range_query::get_tree_range): Move from gimple-range.cc.
4900         * value-query.h (class range_query): Add get_tree_range and
4901         get_arith_expr_range.  Make fur_source a friend.
4902         * vr-values.c (vr_values::range_of_expr): Pass stmt to
4903         get_tree_range.
4904         * gimple-range-tests.cc: New file.
4905
4906 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
4907
4908         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
4909           update_global_range.
4910         * value-query.cc (update_global_range): New.
4911         * value-query.h (update_global_range): New.
4912
4913 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
4914
4915         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
4916         printing the same location twice if there are fix-it hints,
4917         multiple locations, or a label.
4918
4919 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4920
4921         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
4922         thresholds to narrow the upper bound on epilogue iterations.
4923
4924 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
4925
4926         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
4927         (mve_vabsq_s<mode>): Likewise.
4928         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
4929         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
4930         * config/arm/vec-common.md (neg<mode>2): Rename to
4931         <absneg_str><mode>2.
4932
4933 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
4934
4935         * common/config/arc/arc-common.c (arc_option_optimization_table):
4936         Remove malign-call.
4937         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
4938         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
4939         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
4940         * config/arc/arc.md (abssi2_mixed): Remove pattern.
4941         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
4942         (malign-call): Likewise.
4943         (mmixed-code): Likewise.
4944         * doc/invoke.texi (ARC): Update doc.
4945
4946 2021-06-03  Martin Liska  <mliska@suse.cz>
4947
4948         * common.opt: Use proper Enum values.
4949         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
4950         (parse_sanitizer_options): Handle only sanitizer_opts.
4951         (common_handle_option): Just assign value.
4952
4953 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4954
4955         PR ipa/99122
4956         * tree-inline.c (inline_forbidden_p): Remove test on return type.
4957
4958 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4959
4960         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
4961         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
4962         (type_byte_size): Inline into...
4963         (add_byte_size_attribute): ...this and call add_scalar_info.
4964
4965 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4966
4967         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
4968         (typed_binop_from_tree): New function.
4969         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
4970         turn a divide by a power of 2 into a shift.
4971         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
4972         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
4973         typed divide by calling typed_binop_from_tree.
4974
4975 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4976
4977         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
4978         (is_handled_procedure_type): Likewise.
4979         (struct loc_descr_context): Add strict_signedness field.
4980         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
4981         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
4982         (resolve_args_picking): Minor tweak.
4983         (function_to_dwarf_procedure): Initialize strict_signedness field.
4984         (type_byte_size): Likewise.
4985         (field_byte_offset): Likewise.
4986         (gen_descr_array_type_die): Likewise.
4987         (gen_variant_part): Likewise.
4988         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
4989         to true when a context is present before evaluating the arguments.
4990         <COND_EXPR>: Do not generate a useless comparison with zero.
4991         When dereferencing an address, if strict_signedness is true and the
4992         type is small and signed, use DW_OP_deref_type to do the dereference
4993         and then DW_OP_convert to convert back to the generic type.
4994
4995 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
4996
4997         PR c++/100859
4998         * tree-inline.c (copy_tree_body_r): Handle iterators on
4999         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
5000
5001 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
5002
5003         * config/arc/arc.md (*bbit_di): Remove.
5004
5005 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
5006
5007         PR rtl-optimization/100264
5008         * ree.c (get_sub_rtx): Ignore SET expressions without register
5009         destinations and remove assertion, as it is not valid anymore
5010         with this new behaviour.
5011         (merge_def_and_ext): Eliminate destination check for register
5012         as such SET expressions can't occur anymore.
5013         (combine_reaching_defs): Likewise.
5014
5015 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
5016
5017         PR target/100841
5018         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
5019         -Wtype-limits warnings.
5020         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
5021         in operands to avoid -Wsign-compare warnings.
5022
5023 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
5024
5025         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
5026         gen_frame_store.
5027
5028 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
5029
5030         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
5031
5032 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
5033
5034         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
5035         constraint.
5036         * config/s390/subst.md(cconly_subst): Use a single constraint
5037         in (match_scratch).
5038
5039 2021-06-02  Martin Liska  <mliska@suse.cz>
5040
5041         * ipa-icf.h: Use auto_vec for memory_access_types.
5042
5043 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
5044
5045         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
5046         argument from prototype.
5047         (output_logical_op): Add rtx_code argument.
5048         (compute_logical_op_length): Likewise.
5049         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
5050         to compute_a_shift_length.
5051         (output_logical_op); New argument with the rtx code rather than
5052         extracting it from an operand.  Handle QImode too.
5053         (compute_logical_op_length): Similary.
5054         (compute_a_shift_length): Drop unused argument.
5055         * config/h8300/h8300.md (logicals): New code iterator.
5056         * config/h8300/logical.md (<code><mode>3 expander): Combine
5057         the "and" expander with the "ior"/"xor" expander.
5058         (bclr<mode>msx): Combine the QI/HI mode patterns.
5059         (<logical><mode>3 insns): Use code iterator rather than match_operator.
5060         Handle QImode as well.   Update call to output_logical_op and
5061         compute_logical_op_length to pass in rtx_code
5062         Fix split condition on all define_insn_and_split patterns.
5063         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
5064         the flags and setting ZN via existing define_subst.
5065         * config/h8300/shiftrotate.md: Drop unused argument from
5066         calls to compute_a_shift_length.
5067         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
5068
5069 2021-06-01  Andrew Pinski  <apinski@marvell.com>
5070
5071         PR tree-optimization/25290
5072         * tree-ssa-phiopt.c (match_simplify_replacement):
5073         New function.
5074         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
5075         (two_value_replacement): Change the comment about
5076         conditional_replacement.
5077         (conditional_replacement): Delete.
5078
5079 2021-06-01  Andrew Pinski  <apinski@marvell.com>
5080
5081         PR tree-optimization/95481
5082         * tree-tailcall.c (find_tail_calls): Handle empty typed
5083         return decls.
5084
5085 2021-06-01  Andrew Pinski  <apinski@marvell.com>
5086
5087         * gimplify.c (zero_sized_field_decl): Delete
5088         (zero_sized_type): Delete
5089         (gimplify_init_ctor_eval): Use is_empty_type instead
5090         of zero_sized_field_decl.
5091         (gimplify_modify_expr): Use is_empty_type instead of
5092         zero_sized_type.
5093
5094 2021-06-01  Jason Merrill  <jason@redhat.com>
5095
5096         PR c++/91859
5097         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
5098
5099 2021-06-01  Jason Merrill  <jason@redhat.com>
5100
5101         PR c++/94492
5102         * diagnostic.h (warning_enabled_at): Declare.
5103         * diagnostic.c (diagnostic_enabled): Factor out from...
5104         (diagnostic_report_diagnostic): ...here.
5105         (warning_enabled_at): New.
5106
5107 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
5108
5109         * gimple-ssa-evrp.c: Enable exporting of global ranges.
5110
5111 2021-06-01  Martin Liska  <mliska@suse.cz>
5112
5113         PR other/100826
5114         * doc/invoke.texi: Mention that -fgcse-after-reload
5115         is enabled with -O3.
5116
5117 2021-06-01  liuhongt  <hongtao.liu@intel.com>
5118
5119         PR tree-optimization/98365
5120         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
5121         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
5122         (convert_scalar_cond_reduction): Ditto.
5123         (predicate_scalar_phi): Ditto.
5124
5125 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
5126
5127         PR tree-optimization/100781
5128         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
5129         value calculation by default.
5130         (ranger_cache::enable_new_values): New.
5131         (ranger_cache::disable_new_values): New.
5132         (ranger_cache::push_poor_value): Check if new values are allowed.
5133         * gimple-range-cache.h (class ranger_cache): New member/methods.
5134         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
5135         statement, and disable/renable new value calculation.
5136
5137 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
5138
5139         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
5140         (ranger_cache::range_of_def): New.
5141         (ranger_cache::entry_range): New.
5142         (ranger_cache::exit_range): New.
5143         (ranger_cache::range_of_expr): Adjust.
5144         (ranger_cache::range_on_edge): Adjust.
5145         (ranger_cache::propagate_cache): Call exit_range directly.
5146         * gimple-range-cache.h (class ranger_cache): Adjust.
5147
5148 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
5149
5150         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
5151         gori_compute being a member rather than base class.
5152         dervied call to member call.
5153         (ranger_cache::dump): No longer dump gori_map.
5154         (ranger_cache::dump_bb): New.
5155         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
5156         being a member rather than base class.
5157         (ranger_cache::set_global_range): Ditto.
5158         (ranger_cache::ssa_range_in_bb): Ditto.
5159         (ranger_cache::range_of_expr): New.
5160         (ranger_cache::range_on_edge): New.
5161         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
5162         (ranger_cache::propagate_cache):  Adjust debugging output.
5163         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
5164         output changes.
5165         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
5166         member, and inherit from range_query instead.
5167         (ranger_cache::dump_bb): New. split from dump.
5168         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
5169         (gori_compute::expr_range_at_stmt): Delete.
5170         (gori_compute::compute_name_range_op): Delete.
5171         (gori_compute::compute_operand_range_switch): Add fur_source.
5172         (gori_compute::compute_operand_range): Add fur_source param, inline
5173         old compute_name_range_op and optimize_logical_operands.
5174         (struct tf_range): Delete.
5175         (gori_compute::logical_combine): Adjust
5176         (gori_compute::optimize_logical_operands): Delete.
5177         (gori_compute::compute_logical_operands_in_chain): Delete.
5178         (gori_compute::compute_logical_operands): Adjust.
5179         (gori_compute::compute_operand1_range): Adjust to fur_source.
5180         (gori_compute::compute_operand2_range): Ditto.
5181         (gori_compute::compute_operand1_and_operand2_range): Ditto.
5182         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
5183         and adjust to fur_source.
5184         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
5185         range_query and fur_source.
5186         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
5187         from the ranger_cache..
5188         (gimple_ranger::fold_range_internal): Adjust to base class change of
5189         ranger_cache.
5190         (gimple_ranger::dump_bb): Adjust dump.
5191         * gimple-range.h (gimple_ranger):export gori computes object.
5192
5193 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
5194
5195         PR tree-optimization/100774
5196         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
5197         Constant values are also not stale.
5198         (ranger_cache::set_global_range): Range invariant values should also
5199         have the correct timestamp.
5200
5201 2021-05-31  Martin Liska  <mliska@suse.cz>
5202
5203         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
5204         Unpack FUNCTION_DECL_DECL_TYPE.
5205         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
5206         Stream FUNCTION_DECL_DECL_TYPE instead of
5207         DECL_IS_OPERATOR_NEW_P.
5208         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
5209         macro.
5210         (DECL_IS_OPERATOR_NEW_P): Likewise.
5211         (DECL_IS_OPERATOR_DELETE_P): Likewise.
5212         (DECL_LAMBDA_FUNCTION_P): Likewise.
5213
5214 2021-05-31  Richard Biener  <rguenther@suse.de>
5215
5216         PR c++/88601
5217         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
5218         * internal-fn.def (SHUFFLEVECTOR): New.
5219         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
5220         * doc/extend.texi: Document __builtin_shufflevector.
5221
5222 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
5223
5224         PR target/99842
5225         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
5226         indexed form addresses.
5227
5228 2021-05-29  Jeff Law  <jlaw@tachyum.com>
5229
5230         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
5231         parameter.  Call callers fixed.
5232         (push): Likewise.
5233         (output_plussi): Add FALLTHRU markers.
5234         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
5235
5236 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
5237
5238         PR middle-end/99928
5239         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
5240         combined with parallel, make sure to add shared clause to
5241         parallel for explicit linear clause.
5242
5243 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
5244
5245         PR tree-optimization/100787
5246         * gimple-ssa-evrp.c: Disable exporting of global ranges.
5247
5248 2021-05-28  Jason Merrill  <jason@redhat.com>
5249
5250         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
5251         operator--, operator*, operator==, and operator!=.
5252         (class tsi_range): New.
5253
5254 2021-05-28  Richard Biener  <rguenther@suse.de>
5255
5256         PR tree-optimization/100778
5257         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
5258         trapping ops in different BBs.
5259
5260 2021-05-28  Richard Biener  <rguenther@suse.de>
5261
5262         PR ipa/100791
5263         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
5264         copy fntype from original call.
5265
5266 2021-05-28  Martin Liska  <mliska@suse.cz>
5267
5268         PR gcov-profile/100751
5269         * doc/gcov.texi: Revert partially a hunk that was wrong.
5270
5271 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
5272
5273         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
5274         Defined.
5275         (HAVE_sync_compare_and_swaphi): Likewise.
5276         (HAVE_sync_compare_and_swapsi): Likewise.
5277
5278 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
5279
5280         PR middle-end/99928
5281         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
5282
5283 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5284
5285         * gimplify.c (gimplify_omp_affinity): New.
5286         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
5287         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
5288         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
5289         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
5290         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
5291
5292 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
5293             Richard Biener   <rguenther@suse.de>
5294
5295         * match.pd <popcount & / + pattern matching>:
5296         When generating popcount directly fails, try doing it in two halves.
5297
5298 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5299
5300         * Makefile.in (generated_files): Add gimple-match.c and
5301         generic-match.c
5302
5303 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5304
5305         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
5306
5307 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5308
5309         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
5310
5311 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
5312
5313         PR tree-optimization/99398
5314         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
5315         where the fed operands are CTOR/CST and propagated through
5316         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
5317         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
5318         function.
5319         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
5320         declare.
5321
5322 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
5323
5324         * config/i386/mmx.md (addv2sf3): Do not call
5325         ix86_fixup_binary_operands_no_copy.
5326         (subv2sf3): Ditto.
5327         (mulv2sf3): Ditto.
5328         (<smaxmin:code>v2sf3): Ditto.
5329         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
5330         (<plusminus:insn><VI_32:mode>3): Remove expander.
5331         (<plusminus:insn><VI_32:mode>3): Rename from
5332         "*<plusminus:insn><VI_32:mode>3".
5333         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
5334         (mulv2hi3): Remove expander.
5335         (mulv2hi3): Rename from *mulv2hi3.
5336         (<s>mulv2hi3_highpart): Remove expander.
5337         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
5338         (<smaxmin:code><MMXMODE14:mode>3): Rename from
5339         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
5340         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
5341         (SMAXMIN_MMXMODEI): Remove mode iterator.
5342         (<smaxmin:code>v4hi3): New expander.
5343         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
5344         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
5345         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
5346         (SMAXMIN_VI_32): Remove mode iterator.
5347         (<umaxmin:code><MMXMODE24:mode>3): Rename from
5348         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
5349         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
5350         (UMAXMIN_MMXMODEI): Remove mode iterator.
5351         (<umaxmin:code>v8qi3): New expander.
5352         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
5353         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
5354         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
5355         (UMAXMIN_VI_32): Remove mode iterator.
5356         (<any_shift:insn>v2hi3): Remove expander.
5357         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
5358         (<any_logic:code><MMXMODEI:mode>3): Do not call
5359         ix86_fixup_binary_operands_no_copy.
5360         (<any_logic:code><VI_32:mode>3): Remove expander.
5361         (<any_logic:code><VI_32:mode>3): Rename from
5362         "*<any_logic:code><VI_32:mode>3".
5363         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
5364         * config/i386/sse.md (div<VF2:mode>3): Do not call
5365         ix86_fixup_binary_operands_no_copy.
5366         (div<VF1:mode>3): Ditto.
5367         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
5368         (smulhrsv4hi3): Ditto.
5369         (smulhrsv2hi3): Ditto.
5370
5371 2021-05-27  Martin Sebor  <msebor@redhat.com>
5372
5373         * ggc.h (gt_ggc_mx): Add overloads for all integers.
5374         (gt_pch_nx):  Same.
5375         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
5376         integers.
5377         (hash_map::operator==): New function.
5378
5379 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
5380
5381         PR target/100637
5382         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
5383         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
5384         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
5385         (*xop_maskcmp<VI_32:mode>3): Ditto.
5386         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
5387         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
5388
5389 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
5390
5391         PR target/100767
5392         * config/arm/arm.c (arm_configure_build_target): Remove parameter
5393         opts_set, directly check opts parameters for being non-null.
5394         (arm_option_restore): Update call to arm_configure_build_target.
5395         (arm_option_override): Likewise.
5396         (arm_can_inline_p): Likewise.
5397         (arm_valid_target_attribute_tree): Likewise.
5398         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
5399         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
5400         prototype.
5401
5402 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
5403
5404         * vr-values.c (simplify_conversion_using_ranges): Use
5405         get_range_query instead of get_global_range_query.
5406
5407 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
5408
5409         * gimple-range.cc (get_range_global): Move to value-query.cc.
5410         (gimple_range_global): Same.
5411         (get_global_range_query): Same.
5412         (global_range_query::range_of_expr): Same.
5413         * gimple-range.h (class global_range_query): Move to
5414         value-query.h.
5415         (gimple_range_global): Same.
5416         * tree-ssanames.c (get_range_info): Move to value-query.cc.
5417         (get_ptr_nonnull): Same.
5418         * tree-ssanames.h (get_range_info): Remove.
5419         (get_ptr_nonnull): Remove.
5420         * value-query.cc (get_ssa_name_range_info): Move from
5421         tree-ssanames.c.
5422         (get_ssa_name_ptr_info_nonnull): Same.
5423         (get_range_global): Move from gimple-range.cc.
5424         (gimple_range_global): Same.
5425         (get_global_range_query): Same.
5426         (global_range_query::range_of_expr): Same.
5427         * value-query.h (class global_range_query): Move from
5428         gimple-range.h.
5429         (gimple_range_global): Same.
5430
5431 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
5432
5433         PR target/100637
5434         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
5435         (uavgv2hi3_ceil): Ditto.
5436
5437 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5438
5439         PR c/100653
5440         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
5441
5442 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
5443
5444         * tree-ssanames.c (get_range_info): Merge both copies of
5445         get_range_info into one that works with irange.
5446         * tree-ssanames.h (get_range_info): Remove version that works on
5447         wide_ints.
5448
5449 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
5450
5451         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
5452         (expand_builtin_strnlen): Same.
5453         (determine_block_size): Same.
5454         * fold-const.c (expr_not_equal_to): Same.
5455         * gimple-fold.c (size_must_be_zero_p): Same.
5456         * gimple-match-head.c: Include gimple-range.h.
5457         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
5458         * gimple-ssa-warn-restrict.c
5459         (builtin_memref::extend_offset_range): Same.
5460         * graphite-sese-to-poly.c (add_param_constraints): Same.
5461         * internal-fn.c (get_min_precision): Same.
5462         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
5463         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
5464         * match.pd: Same.
5465         * tree-data-ref.c (split_constant_offset): Same.
5466         (dr_step_indicator): Same.
5467         * tree-dfa.c (get_ref_base_and_extent): Same.
5468         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
5469         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
5470         (determine_value_range): Same.
5471         (record_nonwrapping_iv): Same.
5472         (infer_loop_bounds_from_signedness): Same.
5473         (scev_var_range_cant_overflow): Same.
5474         * tree-ssa-phiopt.c (two_value_replacement): Same.
5475         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
5476         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
5477         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
5478         (get_range): Same.
5479         (dump_strlen_info): Same.
5480         (set_strlen_range): Same.
5481         (maybe_diag_stxncpy_trunc): Same.
5482         (get_len_or_size): Same.
5483         (handle_integral_assign): Same.
5484         * tree-ssa-structalias.c (find_what_p_points_to): Same.
5485         * tree-ssa-uninit.c (find_var_cmp_const): Same.
5486         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
5487         * tree-vect-patterns.c (vect_get_range_info): Same.
5488         (vect_recog_divmod_pattern): Same.
5489         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
5490         (register_edge_assert_for_2): Same.
5491         (determine_value_range_1): Same.
5492         * tree.c (get_range_pos_neg): Same.
5493         * vr-values.c (vr_values::get_lattice_entry): Same.
5494         (vr_values::update_value_range): Same.
5495         (simplify_conversion_using_ranges): Same.
5496
5497 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
5498
5499         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
5500           get_range_query instead of query argument.
5501         (pass_walloca::execute): Enable and disable global ranger.
5502
5503 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
5504
5505         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
5506         enable_ranger.
5507         (rvrp_folder::~rvrp_folder): Call disable_ranger.
5508         (hybrid_folder::hybrid_folder): Call enable_ranger.
5509         (hybrid_folder::~hybrid_folder): Call disable_ranger.
5510
5511 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
5512
5513         * function.c (allocate_struct_function): Set cfun->x_range_query.
5514         * function.h (struct function): Declare x_range_query.
5515         (get_range_query): New.
5516         (get_global_range_query): New.
5517         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
5518         Remove call to safe_grow_cleared.
5519         * gimple-range.cc (get_range_global): New.
5520         (gimple_range_global): Move from gimple-range.h.
5521         (get_global_range_query): New.
5522         (global_range_query::range_of_expr): New.
5523         (enable_ranger): New.
5524         (disable_ranger): New.
5525         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
5526         (class global_range_query): New.
5527         (enable_ranger): New.
5528         (disable_ranger): New.
5529         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
5530         dump_all_value_ranges to dump.
5531         * tree-vrp.c (vrp_prop::finalize): Same.
5532         * value-query.cc (range_query::dump): New.
5533         * value-query.h (range_query::dump): New.
5534         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
5535         (vr_values::dump): ...this.
5536         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
5537         dump and make virtual.
5538
5539 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
5540
5541         * config/i386/i386.c (ix86_autovectorize_vector_modes):
5542         Add V4QImode and V16QImode for TARGET_SSE2.
5543         * doc/sourcebuild.texi (Vector-specific attributes):
5544         Add vect64 and vect32 description.
5545
5546 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5547
5548         * gimple-range-gori.cc (range_def_chain::register_dependency):
5549         Resize m_def_chain when needed.
5550
5551 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
5552
5553         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
5554         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
5555         * config/arm/vec-common.md: .. here. Add support for MVE.
5556
5557 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5558
5559         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
5560         register keywords.
5561         * config/microblaze/microblaze.c (microblaze_legitimize_address,
5562         call_internal1,
5563         microblaze_option_override, print_operand): Likewise.
5564         * config/microblaze/microblaze.md (call_internal_plt,
5565         call_value_intern_plt, call_value_intern): Likewise.
5566         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
5567         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
5568         call_value_multiple_internal1): Likewise.
5569         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
5570
5571 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5572
5573         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
5574         arc_ccfsm_advance, symbolic_reference_mentioned_p,
5575         arc_raw_symbolic_reference_mentioned_p): Remove register
5576         keyword.
5577
5578 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5579
5580         PR libgomp/100573
5581         * omp-low.c: Include omp-offload.h.
5582         (create_omp_child_function): If current_function_decl has
5583         "omp declare target" attribute and is_gimple_omp_offloaded,
5584         remove that attribute from the copy of attribute list and
5585         add "omp target entrypoint" attribute instead.
5586         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
5587         variables for offloading if in omp_maybe_offloaded_ctx.
5588         * omp-offload.c (pass_omp_target_link::execute): Nullify second
5589         argument to GOMP_target_data_ext in offloaded code.
5590
5591 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
5592
5593         * config/csky/csky.c (csky_can_change_mode_class): Delete.
5594         For csky, HF/SF mode use the low bits of VREGS.
5595
5596 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5597
5598         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
5599         DECL which is a reference for OMP.
5600
5601 2021-05-26  Martin Liska  <mliska@suse.cz>
5602
5603         PR gcov-profile/100751
5604         * doc/gcov.texi: Document that __gcov_dump can be called just
5605         once and that __gcov_reset resets run-time counters.
5606
5607 2021-05-26  Martin Liska  <mliska@suse.cz>
5608
5609         * doc/install.texi: Port relevant part from install-old.texi
5610         and re-generate list of CPUs and systems.
5611
5612 2021-05-26  Martin Liska  <mliska@suse.cz>
5613
5614         * Makefile.in: Remove it.
5615         * doc/include/fdl.texi: Update next/previous chapters.
5616         * doc/install.texi: Likewise.
5617         * doc/install-old.texi: Removed.
5618
5619 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
5620
5621         * config/csky/csky.c (ck810_legitimate_index_p): Support
5622         "base + index" with DF mode.
5623         * config/csky/constraints.md ("Y"): New constraint for memory operands
5624         without index register.
5625         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
5626         when mov between memory and general registers, and lower their priority.
5627         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
5628
5629 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
5630
5631         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
5632
5633 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
5634
5635         * config/csky/csky.md (untyped_call): Emit clobber for return
5636         registers to mark them used.
5637
5638 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
5639
5640         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
5641
5642 2021-05-26  Andrew Pinski  <apinski@marvell.com>
5643
5644         * match.pd (x < 0 ? ~y : y): New patterns.
5645
5646 2021-05-26  Andrew Pinski  <apinski@marvell.com>
5647
5648         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
5649         A?POW2:0 and A?0:POW2.
5650
5651 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5652
5653         * gimple-range-gori.cc (class logical_stmt_cache): Delete
5654         (logical_stmt_cache::logical_stmt_cache ): Delete.
5655         (logical_stmt_cache::~logical_stmt_cache): Delete.
5656         (logical_stmt_cache::cache_entry::dump): Delete.
5657         (logical_stmt_cache::get_range): Delete.
5658         (logical_stmt_cache::cached_name ): Delete.
5659         (logical_stmt_cache::same_cached_name): Delete.
5660         (logical_stmt_cache::cacheable_p): Delete.
5661         (logical_stmt_cache::slot_diagnostics ): Delete.
5662         (logical_stmt_cache::dump): Delete.
5663         (gori_compute_cache::gori_compute_cache): Delete.
5664         (gori_compute_cache::~gori_compute_cache): Delete.
5665         (gori_compute_cache::compute_operand_range): Delete.
5666         (gori_compute_cache::cache_stmt): Delete.
5667         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
5668         virtual.
5669         (class gori_compute_cache): Delete.
5670
5671 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5672
5673         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
5674         intead of m_cache.
5675         (fold_using_range::range_of_address): Adjust.
5676         (fold_using_range::range_of_phi): Adjust.
5677         * gimple-range.h (class fur_source): Adjust.
5678         (fur_source::fur_source): Adjust.
5679
5680 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5681
5682         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
5683         from expr_range_in_bb and adjust.
5684         (gori_compute::compute_name_range_op): Adjust.
5685         (gori_compute::optimize_logical_operands): Adjust.
5686         (gori_compute::compute_logical_operands_in_chain): Adjust.
5687         (gori_compute::compute_operand1_range): Adjust.
5688         (gori_compute::compute_operand2_range): Adjust.
5689         (ori_compute_cache::cache_stmt): Adjust.
5690         * gimple-range-gori.h (gori_compute): Rename prototype.
5691
5692 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5693
5694         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
5695         checked only after range_of_stmt, not range_on_entry.
5696         (gimple_ranger::range_on_entry): Check for non-null in any
5697         predecessor block, if it is not already non-null.
5698         (gimple_ranger::range_on_exit): DOnt check for non-null after
5699         range on entry call.
5700         (gimple_ranger::dump_bb): New.  Split from dump.
5701         (gimple_ranger::dump): Adjust.
5702         * gimple-range.h (class gimple_ranger): Adjust.
5703
5704 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5705
5706         * gimple-range-cache.cc (struct range_timestamp): Delete.
5707         (class temporal_cache): Adjust.
5708         (temporal_cache::get_timestamp): Delete.
5709         (temporal_cache::set_dependency): Delete.
5710         (temporal_cache::temporal_value): Adjust.
5711         (temporal_cache::current_p): Take dependencies as params.
5712         (temporal_cache::set_timestamp): Adjust.
5713         (temporal_cache::set_always_current): Adjust.
5714         (ranger_cache::get_non_stale_global_range): Adjust.
5715         (ranger_cache::register_dependency): Delete.
5716         * gimple-range-cache.h (class range_cache): Adjust.
5717
5718 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5719
5720         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
5721         bitmap obstack.
5722         (range_def_chain::~range_def_chain): Dispose of obstack rather than
5723         each individual bitmap.
5724         (range_def_chain::set_import): New.
5725         (range_def_chain::get_imports): New.
5726         (range_def_chain::chain_import_p): New.
5727         (range_def_chain::register_dependency): Rename from build_def_chain
5728         and set imports.
5729         (range_def_chain::def_chain_in_bitmap_p): New.
5730         (range_def_chain::add_def_chain_to_bitmap): New.
5731         (range_def_chain::has_def_chain): Just check first depenedence.
5732         (range_def_chain::get_def_chain): Process imports, use generic
5733         register_dependency routine.
5734         (range_def_chain::dump): New.
5735         (gori_map::gori_map): Allocate import list.
5736         (gori_map::~gori_map): Release imports.
5737         (gori_map::exports): Check for past allocated block size.
5738         (gori_map::imports): New.
5739         (gori_map::def_chain_in_export_p): Delete.
5740         (gori_map::is_import_p): New.
5741         (gori_map::maybe_add_gori): Handle imports.
5742         (gori_map::dump): Adjust output, add imports.
5743         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
5744         (gori_export_iterator::gori_export_iterator): New.
5745         (gori_export_iterator::next): New.
5746         (gori_export_iterator::get_name): New.
5747         * gimple-range-gori.h (range_def_chain): Add imports and direct
5748         dependecies via struct rdc.
5749         (range_def_chain::depend1): New.
5750         (range_def_chain::depend2): New.
5751         (class gori_map): Adjust.
5752         (FOR_EACH_GORI_IMPORT_NAME): New.
5753         (FOR_EACH_GORI_EXPORT_NAME): New.
5754         (class gori_export_iterator): New.
5755
5756 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5757
5758         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
5759         export cache filling to here.
5760         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
5761
5762 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
5763
5764         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
5765         (gori_map): Move to gimple-range-gori.h.
5766         (gori_compute::gori_compute): Adjust.
5767         (gori_compute::~gori_compute): Delete.
5768         (gori_compute::compute_operand_range_switch): Adjust.
5769         (gori_compute::compute_operand_range): Adjust.
5770         (gori_compute::compute_logical_operands): Adjust.
5771         (gori_compute::has_edge_range_p ): Adjust.
5772         (gori_compute::set_range_invariant): Delete.
5773         (gori_compute::dump): Adjust.
5774         (gori_compute::outgoing_edge_range_p): Adjust.
5775         * gimple-range-gori.h (class range_def_chain): Relocate here.
5776         (class gori_map): Relocate here.
5777         (class gori_compute): Inherit from gori_map, and adjust.
5778
5779 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
5780
5781         * value-range.cc (range_tests_legacy): Use
5782         build_nonstandard_integer_type instead of int and short.
5783
5784 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5785
5786         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
5787         when really creating an initialization statement for it.
5788
5789 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5790
5791         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
5792
5793 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
5794
5795         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
5796
5797 2021-05-25  Martin Liska  <mliska@suse.cz>
5798
5799         PR tree-optimization/92860
5800         PR target/99592
5801         * optc-save-gen.awk: Remove exceptions.
5802
5803 2021-05-25  Martin Liska  <mliska@suse.cz>
5804
5805         * asan.h (sanitize_coverage_p): New function.
5806         * doc/extend.texi: Document it.
5807         * fold-const.c (fold_range_test): Use sanitize_flags_p
5808         instead of flag_sanitize_coverage.
5809         (fold_truth_andor): Likewise.
5810         * sancov.c: Likewise.
5811         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5812         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
5813         -fsanitize-coverage when inlining.
5814
5815 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
5816
5817         * config/csky/csky-modes.def : Fix copyright.
5818
5819 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
5820
5821         * config/csky/csky-modes.def : Amend copyright.
5822         * config/csky/csky_insn_fpuv2.md : Likewise.
5823         * config/csky/csky_insn_fpuv3.md : Likewise.
5824
5825 2021-05-25  Richard Biener  <rguenther@suse.de>
5826
5827         PR middle-end/100727
5828         * calls.c (initialize_argument_information): Explicitely test
5829         for WITH_SIZE_EXPR.
5830         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
5831
5832 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
5833
5834         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
5835         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
5836         the signle definition. The signle definition may not work well
5837         at simplify_subreg_regno().
5838         (HARD_FRAME_POINTER_REGNUM): New.
5839         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
5840         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
5841         csky_initial_elimination_offset, csky_expand_prologue,
5842         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
5843
5844 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
5845
5846         * config/csky/csky.c (csky_option_override):
5847         Init csky_arch_isa_features[] in advance, so TARGET_DSP
5848         and TARGET_DIV can be set well.
5849
5850 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
5851
5852         * config/csky/constraints.md ("l", "h"): Delete.
5853         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
5854         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
5855         * config/csky/csky.c (regno_reg_classm,
5856         csky_secondary_reload, csky_register_move_cost):
5857         Use HILO_REGS instead of LO_REGS and HI_REGS.
5858
5859 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
5860
5861         * config/csky/constraints.md ("W"): New constriant for mem operand
5862         with base reg, index register.
5863         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
5864         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
5865         constraint.
5866         ("Dv"): New constraint for const double value that can be used at
5867         fmovi instruction.
5868         * config/csky/csky-modes.def (HFmode): New mode.
5869         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
5870         to "csky_valid_mem_constraint_operand" and support new constraint
5871         "W".
5872         (csky_get_movedouble_length): New.
5873         (fpuv3_output_move): New.
5874         (fpuv3_const_double): New.
5875         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
5876         (decompose_csky_address): Refine.
5877         (csky_print_operand): New "CONST_DOUBLE" operand.
5878         (csky_output_move): Support fpv3 instructions.
5879         (csky_get_movedouble_length): New.
5880         (fpuv3_output_move): New.
5881         (fpuv3_const_double): New.
5882         (csky_emit_compare): Cover float comparsion.
5883         (csky_emit_compare_float): Refine.
5884         (csky_vaild_fpuv2_mem_operand): Rename to
5885         "csky_valid_mem_constraint_operand" and support new constraint "W".
5886         (ck860_rtx_costs): New.
5887         (csky_rtx_costs): Add the cost calculation of CK860.
5888         (regno_reg_class): New vregs for fpuv3.
5889         (csky_dbx_regno): Likewise.
5890         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
5891         (csky_conditional_register_usage): Suporrot fpuv3.
5892         (csky_dwarf_register_span): Suporrot fpuv3.
5893         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
5894         (ck810_legitimate_index_p): Support fp16.
5895         * config/csky/csky.h (TARGET_TLS): ADD CK860.
5896         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
5897         (TARGET_SINGLE_FPU): Support fpuv3.
5898         (TARGET_SUPPORT_FPV3): New.
5899         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
5900         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
5901          REG_CLASS_CONTENTS): Support fpuv3.
5902         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
5903         (csky_movsf_fpv2): Likewise.
5904         (ck801_movsf): Likewise.
5905         (csky_movsf): Likewise.
5906         (movdf): Likewise.
5907         (csky_movdf_fpv2): Likewise.
5908         (ck801_movdf): Likewise.
5909         (csky_movdf): Likewise.
5910         (movsicc): Refine. Use "comparison_operatior" instead of
5911         "ordered_comparison_operatior".
5912         (addsicc): Likewise.
5913         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
5914         (call_value_internal_vh): New.
5915         * config/csky/csky_cores.def (CK860): New arch and cpu.
5916         (fpv3_hf): New.
5917         (fpv3_hsf): New.
5918         (fpv3_sdf): New.
5919         (fpv3): New.
5920         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
5921         into emit-patterns and match-patterns, remain the emit-patterns here,
5922         and move the match-patterns to csky_insn_fpuv2.md or
5923         csky_insn_fpuv3.md.
5924         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
5925         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
5926         isntructions.
5927         * config/csky/csky_isa.def (fcr): New.
5928         (fpv3_hi): New.
5929         (fpv3_hf): New.
5930         (fpv3_sf): New.
5931         (fpv3_df): New.
5932         (CK860): New definition for ck860.
5933         * config/csky/csky_tables.opt (ck860): New processors ck860,
5934         ck860f. And new arch ck860.
5935         (fpv3_hf): New.
5936         (fpv3_hsf): New.
5937         (fpv3_hdf): New.
5938         (fpv3): New.
5939         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
5940         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
5941         * config/csky/t-csky-elf: Support 860.
5942         * config/csky/t-csky-linux: Likewise.
5943         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
5944
5945 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
5946
5947         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
5948         add generation of logical-add and add-logical fusion pairs.
5949         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
5950         and powerpc mask.
5951         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
5952         logical-add and add-logical fusion by default.
5953         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
5954         -mpower10-fusion-add-logical options.
5955         * config/rs6000/fusion.md: Regenerate file.
5956
5957 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
5958
5959         * value-range.cc (irange::legacy_equal_p): Check type when
5960         comparing VR_VARYING types.
5961         (range_tests_legacy): Test comparing VARYING ranges of different
5962         sizes.
5963
5964 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
5965
5966         * config/aarch64/aarch64.c (neoversen1_tunings):
5967         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
5968
5969 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
5970
5971         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
5972         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
5973         PIC/PIE.
5974
5975 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
5976
5977         * config/arm/neon.md (vec_load_lanesxi<mode>)
5978         (vec_store_lanexoi<mode>): Move ...
5979         * config/arm/vec-common.md: here.
5980
5981 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
5982
5983         * config/arm/neon.md (vec_load_lanesoi<mode>)
5984         (vec_store_lanesoi<mode>): Move ...
5985         * config/arm/vec-common.md: here.
5986
5987 2021-05-24  liuhongt  <hongtao.liu@intel.com>
5988
5989         PR target/100660
5990         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
5991         stmt with GIMPLE_NOP when lhs doesn't exist.
5992
5993 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
5994
5995         PR target/100722
5996         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
5997         New instruction pattern.
5998         (*push<VI_32:mode>2): Ditto.
5999         (push splitter for SSE registers): New splitter.
6000
6001 2021-05-23  Andrew Pinski  <apinski@marvell.com>
6002
6003         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
6004
6005 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
6006
6007         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
6008         * config/rs6000/fusion.md: Regenerate file.
6009
6010 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
6011
6012         * config/rs6000/genfusion.pl (gen_addadd): New function.
6013         * config/rs6000/fusion.md: Regenerate file.
6014         * config/rs6000/rs6000-cpus.def: Add
6015         OPTION_MASK_P10_FUSION_2ADD to masks.
6016         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6017         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
6018         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
6019
6020 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
6021
6022         PR middle-end/99928
6023         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
6024         * gimplify.c (enum gimplify_omp_var_data): Fix up
6025         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
6026         (omp_lastprivate_for_combined_outer_constructs): If combined target
6027         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
6028         GOVD_MAP | GOVD_SEEN.
6029         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
6030         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
6031         (gimplify_adjust_omp_clauses): For firstprivate clauses with
6032         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
6033         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
6034         let it be replaced by implicit map clause.
6035
6036 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
6037
6038         PR middle-end/99928
6039         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
6040         function.
6041         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
6042         (gimplify_omp_for): Likewise.
6043
6044 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6045
6046         PR middle-end/90115
6047         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
6048         'external' in blocks.
6049
6050 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6051
6052         PR middle-end/90115
6053         * flag-types.h (enum openacc_privatization): New.
6054         * params.opt (-param=openacc-privatization): New.
6055         * doc/invoke.texi (openacc-privatization): Document it.
6056         * omp-general.h (get_openacc_privatization_dump_flags): New
6057         function.
6058         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
6059         * omp-offload.c (execute_oacc_device_lower)
6060         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
6061         * target.def (goacc.adjust_private_decl): Add 'location_t'
6062         parameter.
6063         * doc/tm.texi: Regenerate.
6064         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
6065         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
6066         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
6067         Likewise.  Preserve it for...
6068         (nvptx_goacc_expand_var_decl): ... use here.
6069
6070 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6071
6072         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
6073         DejaGnu selector.
6074
6075 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6076
6077         PR middle-end/90115
6078         * omp-low.c (oacc_privatization_candidate_p): New function.
6079         (oacc_privatization_scan_clause_chain)
6080         (oacc_privatization_scan_decl_chain): Use it.  Also
6081         'gcc_checking_assert' that we're not seeing duplicates.
6082
6083 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6084
6085         PR middle-end/90115
6086         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
6087         work to be done.
6088
6089 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6090
6091         PR middle-end/90115
6092         * omp-offload.c (execute_oacc_device_lower): Explain.
6093
6094 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6095
6096         PR middle-end/90115
6097         * omp-offload.c (execute_oacc_device_lower)
6098         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
6099         case, too.
6100         * internal-fn.c (expand_UNIQUE): Don't expect
6101         'IFN_UNIQUE_OACC_PRIVATE'.
6102
6103 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6104
6105         PR middle-end/90115
6106         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
6107
6108 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6109
6110         PR middle-end/90115
6111         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
6112         (nvptx_goacc_expand_var_decl): Tighten.
6113
6114 2021-05-21  Julian Brown  <julian@codesourcery.com>
6115             Chung-Lin Tang  <cltang@codesourcery.com>
6116             Thomas Schwinge  <thomas@codesourcery.com>
6117
6118         PR middle-end/90115
6119         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
6120         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
6121         * doc/tm.texi: Regenerate.
6122         * expr.c (expand_expr_real_1): Expand decls using the
6123         expand_var_decl OpenACC hook if defined.
6124         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
6125         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
6126         * omp-low.c (omp_context): Add oacc_privatization_candidates
6127         field.
6128         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
6129         before fork.
6130         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
6131         private marker's gimple call arguments, and pass it to
6132         lower_oacc_reductions.
6133         (oacc_privatization_scan_clause_chain)
6134         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
6135         New functions.
6136         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
6137         * omp-offload.c (convert.h): Include.
6138         (oacc_loop_xform_head_tail): Treat private-variable markers like
6139         fork/join when transforming head/tail sequences.
6140         (struct var_decl_rewrite_info): Add struct.
6141         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
6142         (execute_oacc_device_lower): Support rewriting gang-private
6143         variables using target hook, and fix up addr_expr and var_decl
6144         nodes afterwards.
6145         * target.def (adjust_private_decl, expand_var_decl): New hooks.
6146         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
6147         Rename to...
6148         (gcn_goacc_adjust_private_decl): ...this.
6149         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
6150         Rename to...
6151         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
6152         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
6153         definition using gcn_goacc_adjust_gangprivate_decl...
6154         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
6155         gcn_goacc_adjust_private_decl.
6156         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
6157         (gang_private_shared_size): New global variable.
6158         (gang_private_shared_align): Likewise.
6159         (gang_private_shared_sym): Likewise.
6160         (gang_private_shared_hmap): Likewise.
6161         (nvptx_option_override): Initialize these.
6162         (nvptx_file_end): Output gang_private_shared_sym.
6163         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
6164         New functions.
6165         (nvptx_set_current_function): Clear gang_private_shared_hmap.
6166         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
6167         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
6168
6169 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
6170
6171         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
6172
6173 2021-05-21  Richard Biener  <rguenther@suse.de>
6174             H.J. Lu  <hjl.tools@gmail.com>
6175
6176         PR middle-end/90773
6177         * expr.c (expand_constructor): Elide expand_constructor if
6178         move by pieces is preferred.
6179
6180 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6181
6182         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
6183         Take a flag and mode value as arguments.
6184         (aarch64_modifies_global_state_p): Likewise.
6185         (aarch64_reads_global_state_p): Likewise.
6186         (aarch64_could_trap_p): Likewise.
6187         (aarch64_get_attributes): Likewise.
6188         (aarch64_init_simd_builtins): Adjust callsite of above.
6189         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
6190         function attributes to apply to builtins.
6191         (aarch64_init_crc32_builtins): Likewise.
6192         (aarch64_init_builtin_rsqrt): Likewise.
6193
6194 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
6195
6196         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
6197         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
6198         (gen_2logical): Use new fusion types.
6199         * config/rs6000/fusion.md: Regenerate.
6200
6201 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
6202
6203         PR target/100637
6204         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
6205         Handle V4QI and V2HI modes.
6206         (ix86_expand_sse_movcc): Ditto.
6207         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
6208         New instruction pattern.
6209         (*eq<VI_32:mode>3): Ditto.
6210         (*gt<VI_32:mode>3): Ditto.
6211         (*xop_pcmov_<VI_32:mode>): Ditto.
6212         (mmx_pblendvb32): Ditto.
6213         (mmx_pblendvb64): Rename from mmx_pblendvb.
6214         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
6215         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
6216         (vcond<VI_32:mode><VI_32:mode>): Ditto.
6217         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
6218         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
6219
6220 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
6221
6222         PR tree-optimization/94589
6223         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
6224         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
6225         not the same as cmp3) treat <= the same as < and >= the same as >.
6226         Don't require that cond2_phi_edge is true edge, instead take
6227         false/true edges into account based on cmp1/cmp2 comparison kinds.
6228
6229 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
6230
6231         PR target/100637
6232         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
6233         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
6234         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
6235         using SMAXMIN_MMXMODEI mode iterator.
6236         (*<smaxmin:code>v4qi3): New insn pattern.
6237         (*<smaxmin:code>v2hi3): Ditto.
6238         (SMAXMIN_VI_32): New mode iterator.
6239         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
6240         (UMAXMIN_MMXMODEI): New mode iterator.
6241         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
6242         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
6243         using UMAXMIN_MMXMODEI mode iterator.
6244         (*<umaxmin:code>v4qi3): New insn pattern.
6245         (*<umaxmin:code>v2hi3): Ditto.
6246         (UMAXMIN_VI_32): New mode iterator.
6247         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
6248         (abs<VI_32:mode>2): New insn pattern.
6249         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
6250         * config/i386/sse.md: ... here.
6251
6252 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
6253             David Edelsohn  <dje.gcc@gmail.com>
6254
6255         * collect2.c (scan_prog_file): Issue non-fatal warning for
6256         non-COFF files.
6257
6258 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
6259
6260         * doc/invoke.texi (-Wno-c++11-extensions)
6261         (-Wno-c++14-extensions, -Wno-c++17-extensions)
6262         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
6263         new options.
6264
6265 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
6266
6267         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
6268         * config/darwin.c (darwin_override_options): Likewise.
6269         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
6270         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
6271         (DWARF2_FRAME_REG_OUT): Likewise.
6272         * config/mips/mips.c (mips_output_filename): Likewise.
6273         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
6274         Likewise.
6275         (rs6000_dbx_register_number): Likewise.
6276         * dbxout.c: Include flags.h.
6277         * dwarf2cfi.c (cfi_label_required_p): Likewise.
6278         (dwarf2out_do_frame): Likewise.
6279         * except.c: Include flags.h.
6280         * final.c (dwarf2_debug_info_emitted_p): Likewise.
6281         (final_scan_insn_1): Likewise.
6282         * flags.h (dwarf_debuginfo_p): New function declaration.
6283         * opts.c (dwarf_debuginfo_p): New function definition.
6284         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
6285         * toplev.c (process_options): Likewise.
6286
6287 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
6288
6289         * common.opt: Change type to support bitmasks.
6290         * flag-types.h (enum debug_info_type): Rename enumerator constants.
6291         (NO_DEBUG): New bitmask.
6292         (DBX_DEBUG): Likewise.
6293         (DWARF2_DEBUG): Likewise.
6294         (XCOFF_DEBUG): Likewise.
6295         (VMS_DEBUG): Likewise.
6296         (VMS_AND_DWARF2_DEBUG): Likewise.
6297         * flags.h (debug_set_to_format): New function declaration.
6298         (debug_set_count): Likewise.
6299         (debug_set_names): Likewise.
6300         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
6301         (debug_set_to_format): New function definition.
6302         (debug_set_count): Likewise.
6303         (debug_set_names): Likewise.
6304         (set_debug_level): Update access to debug_type_names.
6305         * toplev.c: Likewise.
6306
6307 2021-05-20  Martin Sebor  <msebor@redhat.com>
6308
6309         PR middle-end/100684
6310         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
6311
6312 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
6313
6314         PR target/100701
6315         * config/i386/i386.md (isa): Remove x64_bmi.
6316         (enabled): Remove x64_bmi.
6317         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
6318         Remove general register alternative.
6319         (*andnot<VI_32:mode>3): Ditto.
6320         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
6321         (*<any_logic:code><VI_32:mode>3): Ditto.
6322
6323 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
6324
6325         * config/arm/arm.c: Include head files tree-vectorizer.h and
6326         cfgloop.h.
6327
6328 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
6329
6330         PR target/100637
6331         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
6332         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
6333         (<s>mulv4hi3_highpart): New expander.
6334         (*<s>mulv2hi3_highpart): New insn pattern.
6335         (<s>mulv2hi3_higpart): New expander.
6336         (*<any_shift:insn>v2hi3): New insn pattern.
6337         (<any_shift:insn>v2hi3): New expander.
6338         * config/i386/sse.md (smulhrsv2hi3): New expander.
6339         (*smulhrsv2hi3): New insn pattern.
6340
6341 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
6342
6343         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
6344         parameter.
6345         * params.opt (vect-inner-loop-cost-factor): New.
6346         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
6347         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
6348         tree-vectorizer.h and its required ones.
6349         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
6350         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
6351         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
6352         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
6353         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
6354         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
6355         Likewise.
6356         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
6357         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
6358         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
6359
6360 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
6361             Torbjörn Svensson  <torbjorn.svensson@st.com>
6362
6363         PR c/42579
6364         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
6365
6366 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
6367
6368         PR middle-end/99928
6369         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
6370         explicit linear clause when combined with target, make it map(tofrom:)
6371         instead of no clause or firstprivate.
6372
6373 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
6374
6375         PR tree-optimization/94589
6376         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
6377         of integral conversions.
6378
6379 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
6380
6381         * gimple-range.cc (fur_source::get_operand): New.
6382         (gimple_range_fold): Delete.
6383         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
6384         (fold_using_range::range_of_range_op): Move from gimple_ranger.
6385         (fold_using_range::range_of_address): Ditto.
6386         (fold_using_range::range_of_phi): Ditto.
6387         (fold_using_range::range_of_call): Ditto.
6388         (fold_using_range::range_of_builtin_ubsan_call): Move from
6389         range_of_builtin_ubsan_call.
6390         (fold_using_range::range_of_builtin_call): Move from
6391         range_of_builtin_call.
6392         (gimple_ranger::range_of_builtin_call): Delete.
6393         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
6394         (gimple_ranger::fold_range_internal): New.
6395         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
6396         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
6397         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
6398         * gimple-range.h (gimple_ranger): Remove various range_of routines.
6399         (class fur_source): New.
6400         (class fold_using_range): New.
6401         (fur_source::fur_source): New.
6402         (fold_range): New.
6403         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
6404         instead of range_of_builtin_call.
6405
6406 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
6407
6408         * doc/cpp.texi (Common Predefined Macros): Update documentation
6409         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
6410
6411 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
6412
6413         PR target/100333
6414         * config/arm/arm.md (nonsecure_call_internal): Always ensure
6415         callee's address is in a register.
6416
6417 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
6418
6419         * common/config/riscv/riscv-common.c
6420         (riscv_subset_list::parsing_subset_version): Properly parse the letter
6421         'p' in '-march'.
6422         (riscv_subset_list::parse_std_ext,
6423          riscv_subset_list::parse_multiletter_ext): To handle errors generated
6424         in riscv_subset_list::parsing_subset_version.
6425
6426 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
6427
6428         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
6429         type attribute in patterns generating XTN(2).
6430
6431 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
6432
6433         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
6434         Remove as duplicate of...
6435         (aarch64_xtn<mode>): This.
6436         (aarch64_xtn2<mode>_le): Move position in file.
6437         (aarch64_xtn2<mode>_be): Move position in file.
6438         (aarch64_xtn2<mode>): Move position in file.
6439         (vec_pack_trunc_<mode>): Define as an expander.
6440
6441 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
6442
6443         * config/aarch64/aarch64-simd-builtins.def: Split builtin
6444         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
6445         separate scalar and vector generators.
6446         * config/aarch64/aarch64-simd.md
6447         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
6448         split into...
6449         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
6450         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
6451         * config/aarch64/iterators.md: Define SD_HSDI iterator.
6452
6453 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
6454
6455         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
6456         of UNSPEC_SQXTUN2.
6457         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
6458
6459 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
6460
6461         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
6462         Implement as an expand emitting a big/little endian
6463         instruction pattern.
6464         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
6465         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
6466
6467 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
6468
6469         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
6470         Implement as an expand emitting a big/little endian
6471         instruction pattern.
6472         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
6473         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
6474         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
6475         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
6476
6477 2021-05-19  Richard Biener  <rguenther@suse.de>
6478
6479         PR middle-end/100672
6480         * fold-const.c (fold_negate_expr_1): Use element_precision.
6481         (negate_expr_p): Likewise.
6482
6483 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6484
6485         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
6486         (pred_load): New int attribute.
6487         * config/aarch64/aarch64-sve.md
6488         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
6489         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
6490         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
6491         code_for_aarch64_load.
6492
6493 2021-05-19  Richard Biener  <rguenther@suse.de>
6494
6495         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
6496         sure TARGET_MEM_REF bases are expanded as memory.
6497         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
6498         Do not mark TARGET_MEM_REF bases addressable.
6499         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
6500         TARGET_MEM_REF bases as never rewritable.
6501         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
6502         walk TARGET_MEM_REF bases as address-takens.
6503         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
6504
6505 2021-05-19  Richard Biener  <rguenther@suse.de>
6506
6507         * builtins.c (get_object_alignment_1): Strip outer
6508         WITH_SIZE_EXPR.
6509         * tree-dfa.c (get_ref_base_and_extent): Handle outer
6510         WITH_SIZE_EXPR for size processing and process the
6511         containing ref.
6512         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
6513         outer WITH_SIZE_EXPR.
6514         (ao_ref_base_alias_ptr_type): Likewise.
6515         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
6516         and handle that accordingly, stripping it for the
6517         core alias workers.
6518         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
6519         looking through it instead of returning NULL.
6520
6521 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
6522
6523         PR middle-end/100576
6524         * builtins.c (check_read_access): Convert bound to size_type_node if
6525         non-NULL.
6526
6527 2021-05-19  Richard Biener  <rguenther@suse.de>
6528
6529         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
6530         (verify_types_in_gimple_reference): ... here.  Sanitize.
6531         (verify_gimple_call): Verify references in LHS and arguments.
6532         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
6533
6534 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
6535
6536         * config/i386/i386.h (VALID_INT_MODE_P):
6537         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
6538         * config/i386/i386.md (isa): Add x64_bmi.
6539         (enabled): Handle x64_bmi.
6540         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
6541         Add alternative using 64bit general registers.
6542         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
6543
6544 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
6545
6546         PR middle-end/99928
6547         * tree.h (OMP_MASTER_COMBINED): Define.
6548         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
6549         handling for outer combined/composite constructs to a loop.
6550         Handle lastprivate on combined target.
6551         (gimplify_expr): Formatting fix.
6552
6553 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
6554
6555         * passes.def: Add sink_code pass before store_merging.
6556         * tree-ssa-sink.c (pass_sink_code:clone): New.
6557
6558 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
6559
6560         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
6561         rs6000_special_adjust_field_align_p.
6562         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6563         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
6564         Remove ABI warning.
6565         (rs6000_function_arg): Likewise.
6566         * config/rs6000/rs6000-protos.h
6567         (rs6000_special_adjust_field_align_p): Remove prototype.
6568         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
6569         Remove.
6570         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
6571         rs6000_special_adjust_field_align_p.
6572
6573 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
6574
6575         PR target/100637
6576         * config/i386/i386.h (VALID_SSE2_REG_MODE):
6577         Add V4QI and V2HI modes.
6578         (VALID_INT_MODE_P): Ditto.
6579         * config/i386/mmx.md (VI_32): New mode iterator.
6580         (mmxvecsize): Handle V4QI and V2HI.
6581         (Yv_Yw): Ditto.
6582         (mov<VI_32:mode>): New expander.
6583         (*mov<mode>_internal): New insn pattern.
6584         (movmisalign<VI_32:mode>): New expander.
6585         (neg<VI_32:mode>): New expander.
6586         (<plusminus:insn><VI_32:mode>3): New expander.
6587         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
6588         (mulv2hi3): New expander.
6589         (*mulv2hi3): New insn pattern.
6590         (one_cmpl<VI_32:mode>2): New expander.
6591         (*andnot<VI_32:mode>3): New insn pattern.
6592         (<any_logic:code><VI_32:mode>3): New expander.
6593         (*<any_logic:code><VI_32:mode>3): New insn pattern.
6594
6595 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
6596
6597         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
6598         Fix a mode mismatch with operand 1.
6599
6600 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
6601
6602         PR target/100626
6603         * config/i386/i386-expand.c (split_double_mode): Return
6604         temporary register when simplify_gen_subreg fails with
6605         the high half od the paradoxical subreg.
6606
6607 2021-05-18  Richard Biener  <rguenther@suse.de>
6608
6609         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
6610         and honor it when expanding.
6611         (expand_used_vars_for_block): Pass through forced_stack_var.
6612         (expand_used_vars): Likewise.
6613         (discover_nonconstant_array_refs_r): Set bits in
6614         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
6615         (avoid_type_punning_on_regs): Likewise.
6616         (discover_nonconstant_array_refs): Likewise.
6617         (pass_expand::execute): Create and pass down forced_stack_var
6618         bitmap.  For parameters and returns temporarily set
6619         TREE_ADDRESSABLE when expand_function_start.
6620
6621 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6622
6623         * doc/sourcebuild.texi: Document 'dg-note'.
6624
6625 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
6626
6627         PR other/100598
6628         * configure: Regenerate.
6629         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
6630
6631 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6632
6633         * gimple.h (is_gimple_omp_oacc): Tighten.
6634         * omp-low.c (check_omp_nesting_restrictions): Adjust.
6635
6636 2021-05-18  Richard Biener  <rguenther@suse.de>
6637
6638         * tree-ssa-operands.c (mark_address_taken): Simplify.
6639
6640 2021-05-18  Martin Liska  <mliska@suse.cz>
6641
6642         * config/gcn/mkoffload.c (STR): Redefine.
6643         * config/i386/intelmic-mkoffload.c (STR): Likewise.
6644         * config/nvptx/mkoffload.c (STR): Likewise.
6645
6646 2021-05-18  Martin Liska  <mliska@suse.cz>
6647
6648         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
6649         Use startswith function instead of strncmp.
6650         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
6651         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
6652         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
6653         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
6654         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
6655         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
6656         * config/arm/arm.c (arm_file_start): Likewise.
6657         (arm_valid_target_attribute_rec): Likewise.
6658         (thumb1_md_asm_adjust): Likewise.
6659         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
6660         * config/avr/avr.c (STR_PREFIX_P): Likewise.
6661         (avr_set_current_function): Likewise.
6662         (avr_handle_addr_attribute): Likewise.
6663         (avr_asm_output_aligned_decl_common): Likewise.
6664         (avr_asm_named_section): Likewise.
6665         (avr_section_type_flags): Likewise.
6666         (avr_asm_select_section): Likewise.
6667         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
6668         (c6x_section_type_flags): Likewise.
6669         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
6670         (darwin_objc_declare_unresolved_class_reference): Likewise.
6671         (darwin_objc_declare_class_definition): Likewise.
6672         * config/darwin.c (indirect_data): Likewise.
6673         (darwin_encode_section_info): Likewise.
6674         (darwin_objc2_section): Likewise.
6675         (darwin_objc1_section): Likewise.
6676         (machopic_select_section): Likewise.
6677         (darwin_globalize_label): Likewise.
6678         (darwin_label_is_anonymous_local_objc_name): Likewise.
6679         (darwin_asm_named_section): Likewise.
6680         (darwin_asm_output_dwarf_offset): Likewise.
6681         * config/frv/frv.c (frv_string_begins_with): Likewise.
6682         (frv_in_small_data_p): Likewise.
6683         * config/gcn/mkoffload.c (STR): Likewise.
6684         (main): Likewise.
6685         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
6686         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
6687         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
6688         (ix86_md_asm_adjust): Likewise.
6689         * config/i386/intelmic-mkoffload.c (STR): Likewise.
6690         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
6691         (i386_pe_file_end): Likewise.
6692         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
6693         (ia64_section_type_flags): Likewise.
6694         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
6695         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
6696         (mips16_stub_function_p): Likewise.
6697         (mips_function_rodata_section): Likewise.
6698         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
6699         (msp430_function_section): Likewise.
6700         (msp430_section_type_flags): Likewise.
6701         (msp430_expand_helper): Likewise.
6702         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
6703         (nios2_valid_target_attribute_rec): Likewise.
6704         * config/nvptx/mkoffload.c (process): Likewise.
6705         (STR): Likewise.
6706         * config/pa/som.h: Likewise.
6707         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
6708         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
6709         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
6710         (rs6000_inner_target_options): Likewise.
6711         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
6712         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
6713         * config/vax/vax.c (vax_output_int_move): Likewise.
6714         * config/vms/vms-ld.c (startswith): Likewise.
6715         (process_args): Likewise.
6716         (main): Likewise.
6717         * config/vms/vms.c: Likewise.
6718
6719 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
6720
6721         PR rtl-optimization/100590
6722         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
6723         they are NONJUMP_INSN_P.
6724
6725 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
6726
6727         PR c++/100580
6728         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
6729         DECL_ASSEMBLER_NAME on the fn_decl.
6730
6731 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
6732
6733         PR tree-optimization/94589
6734         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
6735         phi result used in (res & ~1) == 0 comparison as res >= 0 as
6736         res == 2 would be UB with -ffinite-math-only.
6737
6738 2021-05-18  Martin Liska  <mliska@suse.cz>
6739
6740         * Makefile.in: genversion.o should depend on DATESTAMP.
6741
6742 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
6743
6744         * config/arc/simdext.md (negv2si2): Remove round bracket.
6745
6746 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
6747
6748         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
6749         _Bool as macro expanding to _Bool.
6750
6751 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
6752
6753         PR c++/100281
6754         * tree.c (build_reference_type_for_mode)
6755         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
6756         is VOIDmode.
6757         (build_reference_type, build_pointer_type): Invoke
6758         build_*_type_for_mode with VOIDmode.
6759
6760 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
6761
6762         PR tree-optimization/100512
6763         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
6764         and non-zero pointer ranges as invariant.
6765         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
6766         processing from here.
6767
6768 2021-05-17  Tom de Vries  <tdevries@suse.de>
6769
6770         PR target/100497
6771         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
6772         * config/nvptx/nvptx.c (nvptx_output_barrier)
6773         (nvptx_output_atomic_insn): New function.
6774         (nvptx_print_operand): Add support for 'B'.
6775         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
6776         insns.
6777
6778 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
6779
6780         PR tree-optimization/100349
6781         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
6782           NULL.
6783
6784 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
6785
6786         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
6787         (host_detect_local_cpu): Use it.
6788
6789 2021-05-17  Martin Liska  <mliska@suse.cz>
6790
6791         * doc/invoke.texi: Add 2 missing dots.
6792
6793 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
6794
6795         PR bootstrap/100552
6796         * configure.ac: Replace pattern substitution with call to sed.
6797         * configure: Regenerate.
6798
6799 2021-05-17  Richard Biener  <rguenther@suse.de>
6800
6801         PR middle-end/100582
6802         * tree.c (array_at_struct_end_p): Get to the base of the
6803         reference before looking for the underlying decl.
6804
6805 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
6806
6807         * genoutput.c (validate_insn_alternatives) Make "wrong number of
6808         alternatives" message more specific, and remove assumption on where
6809         the problem is.
6810
6811 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
6812
6813         * config/arm/iterators.md (V16): New iterator.
6814         (VH_cvtto): New iterator.
6815         (v_cmp_result): Added V4HF and V8HF support.
6816         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
6817         (vcond<mode><mode>): Likewise.
6818         (vcond_mask_<mode><v_cmp_result>): Likewise.
6819         (vcond<VH_cvtto><mode>): New expander.
6820
6821 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
6822
6823         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
6824         prototype.
6825         * config/arm/arm.c (arm_expand_vector_compare): Add support for
6826         MVE.
6827         (arm_expand_vcond): Likewise.
6828         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
6829         VCMPEQQ_N_S, VCMPNEQ_N_S.
6830         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
6831         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
6832         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
6833         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
6834         (@mve_vpselq_<supf><mode>): Likewise.
6835         (@mve_vpselq_f<mode>"): Likewise.
6836         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
6837         and move to vec-common.md.
6838         (vec_cmpu<mode><mode>): Likewise.
6839         (vcond<mode><mode>): Likewise.
6840         (vcond<V_cvtto><mode>): Likewise.
6841         (vcondu<mode><v_cmp_result>): Likewise.
6842         (vcond_mask_<mode><v_cmp_result>): Likewise.
6843         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
6844         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
6845         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
6846         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
6847         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
6848         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
6849         from neon.md.
6850         (vec_cmpu<mode><mode>): Likewise.
6851         (vcond<mode><mode>): Likewise.
6852         (vcond<V_cvtto><mode>): Likewise.
6853         (vcondu<mode><v_cmp_result>): Likewise.
6854         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
6855         condition.
6856
6857 2021-05-17  liuhongt  <hongtao.liu@intel.com>
6858
6859         PR target/100549
6860         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
6861         gsi_insert_seq_before instead.
6862
6863 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
6864
6865         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
6866         (arm_sat_ok): ...this.
6867
6868 2021-05-17  Martin Liska  <mliska@suse.cz>
6869
6870         * lto-wrapper.c (merge_flto_options): Factor out a new function.
6871         (merge_and_complain): Use it.
6872         (run_gcc): Merge also linker command line -flto=foo argument
6873         with IL files.
6874
6875 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
6876
6877         * config/arm/arm.h (CPP_SPEC): Remove error message about
6878         -mlittle-endian/-mbig-endian conflict.
6879
6880 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
6881
6882         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6883         __ROP_PROTECT__ if -mrop-protect is selected.
6884
6885 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
6886
6887         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
6888         rop_hash_save_offset and rop_hash_size.
6889         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
6890         rop_hash_size and rop_hash_save_offset.
6891         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
6892         (rs6000_emit_prologue): Emit hashst[p] in prologue.
6893         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
6894         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
6895         UNSPEC_HASHCHK.
6896         (hashst): New define_insn.
6897         (hashchk): Likewise.
6898
6899 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
6900
6901         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6902         Disable shrink wrap when inserting ROP-protect instructions.
6903         * config/rs6000/rs6000.opt (mrop-protect): New option.
6904         (mprivileged): Likewise.
6905         * doc/invoke.texi: Document mrop-protect and mprivileged.
6906
6907 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
6908
6909         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
6910         "Remove CC0".
6911
6912 2021-05-15  Martin Jambor  <mjambor@suse.cz>
6913
6914         Revert:
6915         2021-05-13  Martin Jambor  <mjambor@suse.cz>
6916
6917         PR tree-optimization/100453
6918         * tree-sra.c (sra_modify_assign): All const base accesses do not
6919         need refreshing, not just those from decl_pool.
6920         (sra_modify_assign): Do not refresh into a const base decl.
6921
6922 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
6923
6924         PR rtl-optimization/100342
6925         * regcprop.c (copy_value): When copying a source reg in a wider
6926         mode than it has recorded for the value, adjust recorded destination
6927         mode too or punt if !REG_CAN_CHANGE_MODE_P.
6928
6929 2021-05-14  Jason Merrill  <jason@redhat.com>
6930
6931         * intl.h: Add comments.
6932
6933 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6934
6935         * config/aarch64/aarch64-simd.md
6936         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
6937         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
6938         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
6939         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
6940         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
6941         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
6942         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
6943         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
6944         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
6945
6946 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6947
6948         PR target/66791
6949         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
6950         boolean logic equivalent.
6951         (vtst_s16): Likewise.
6952         (vtst_s32): Likewise.
6953         (vtst_u8): Likewise.
6954         (vtst_u16): Likewise.
6955         (vtst_u32): Likewise.
6956         (vtst_p8): Likewise.
6957         (vtst_p16): Likewise.
6958         (vtstq_s8): Likewise.
6959         (vtstq_s16): Likewise.
6960         (vtstq_s32): Likewise.
6961         (vtstq_u8): Likewise.
6962         (vtstq_u16): Likewise.
6963         (vtstq_u32): Likewise.
6964         (vtstq_p8): Likewise.
6965         (vtstq_p16): Likewise.
6966         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
6967         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
6968
6969 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6970
6971         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
6972         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
6973         (aarch64_sqdmlsl2<mode>): Delete.
6974         (aarch64_sqdmlal2_lane<mode>): Merge this...
6975         (aarch64_sqdmlsl2_lane<mode>): ... And this...
6976         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
6977         (aarch64_sqdmlal2_laneq<mode>): Merge this...
6978         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
6979         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
6980         (aarch64_sqdmlal2_n<mode>): Merge this...
6981         (aarch64_sqdmlsl2_n<mode>): ... And this...
6982         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
6983
6984 2021-05-13  Martin Sebor  <msebor@redhat.com>
6985
6986         PR middle-end/100574
6987         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
6988         all null arguments.
6989
6990 2021-05-13  Martin Sebor  <msebor@redhat.com>
6991
6992         PR tree-optimization/93100
6993         PR middle-end/98583
6994         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
6995         don't modify referenced objects.
6996
6997 2021-05-13  Martin Jambor  <mjambor@suse.cz>
6998
6999         PR tree-optimization/100453
7000         * tree-sra.c (sra_modify_assign): All const base accesses do not
7001         need refreshing, not just those from decl_pool.
7002         (sra_modify_assign): Do not refresh into a const base decl.
7003
7004 2021-05-13  Martin Liska  <mliska@suse.cz>
7005
7006         * tree-ssa-dom.c: Remove m_simplifier.
7007
7008 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
7009
7010         PR target/100563
7011         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
7012         canonicalize DImode inequality comparisons against the
7013         maximum integral value.
7014
7015 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
7016
7017         PR tree-optimization/98856
7018         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
7019         Expect V2DI and V4DI arithmetic right shifts to be emulated.
7020         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
7021         caller.
7022         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
7023         expand_vec_perm_2perm_pblendv): New functions.
7024         (ix86_expand_vec_perm_const_1): Use them.
7025         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
7026         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
7027         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
7028         (ashrv4di3): New define_expand.
7029         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
7030         and !TARGET_AVX512VL expansion.
7031
7032 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
7033
7034         PR target/100581
7035         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
7036         sizes < 16 to a register when constructing vpcmov pattern.
7037         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
7038
7039 2021-05-13  Martin Liska  <mliska@suse.cz>
7040
7041         * gcov-io.c (gcov_write_block): Remove.
7042         (gcov_write_words): Likewise.
7043         (gcov_read_words): Re-implement using gcov_read_bytes.
7044         (gcov_allocate): Remove.
7045         (GCOV_BLOCK_SIZE): Likewise.
7046         (struct gcov_var): Remove most of the fields.
7047         (gcov_position): Implement with ftell.
7048         (gcov_rewrite): Remove setting of start and offset fields.
7049         (from_file): Re-format.
7050         (gcov_open): Remove setbuf call. It should not be needed.
7051         (gcov_close): Remove internal buffer handling.
7052         (gcov_magic): Use __builtin_bswap32.
7053         (gcov_write_counter): Use directly gcov_write_unsigned.
7054         (gcov_write_string): Use direct fwrite and do not round
7055         to 4 bytes.
7056         (gcov_seek): Use directly fseek.
7057         (gcov_write_tag): Use gcov_write_unsigned directly.
7058         (gcov_write_length): Likewise.
7059         (gcov_write_tag_length): Likewise.
7060         (gcov_read_bytes): Use directly fread.
7061         (gcov_read_unsigned): Use gcov_read_words.
7062         (gcov_read_counter): Likewise.
7063         (gcov_read_string): Use gcov_read_bytes.
7064         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
7065         that size is not in bytes, but words (4B).
7066         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
7067         (GCOV_TAG_ARCS_LENGTH): Likewise.
7068         (GCOV_TAG_ARCS_NUM): Likewise.
7069         (GCOV_TAG_COUNTER_LENGTH): Likewise.
7070         (GCOV_TAG_COUNTER_NUM): Likewise.
7071         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
7072
7073 2021-05-13  liuhongt  <hongtao.liu@intel.com>
7074
7075         PR target/94680
7076         * config/i386/sse.md (ssedoublevecmode): Add attribute for
7077         V64QI/V32HI/V16SI/V4DI.
7078         (ssehalfvecmode): Add attribute for V2DI/V2DF.
7079         (*vec_concatv4si_0): Extend to VI124_128.
7080         (*vec_concat<mode>_0): New pre-reload splitter.
7081         * config/i386/predicates.md (movq_parallel): New predicate.
7082
7083 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
7084
7085         * targhooks.c (default_zero_call_used_regs): Retry using
7086         successfully-zeroed registers as sources.
7087
7088 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
7089
7090         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
7091
7092 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
7093
7094         PR c/100521
7095         * gimple-range.cc (range_of_builtin_call): Skip out on
7096           processing __builtin_clz when varying.
7097
7098 2021-05-12  Tom de Vries  <tdevries@suse.de>
7099
7100         PR target/96005
7101         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
7102         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
7103         to ptx_version_option.
7104         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
7105         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
7106         (define_insn "nvptx_vote_ballot"): Use sync variant for
7107         TARGET_PTX_6_3.
7108         * config/nvptx/nvptx.opt (ptx_version): Add enum.
7109         (mptx): Add option.
7110         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
7111
7112 2021-05-12  Richard Biener  <rguenther@suse.de>
7113
7114         PR tree-optimization/100566
7115         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
7116         allow_back for all edge queries.
7117
7118 2021-05-12  liuhongt  <hongtao.liu@intel.com>
7119
7120         PR target/99908
7121         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
7122         splitters for pblendvb of NOT mask register.
7123
7124 2021-05-12  Richard Biener  <rguenther@suse.de>
7125
7126         PR tree-optimization/100519
7127         * tree-ssa-reassoc.c (can_associate_p): Split into...
7128         (can_associate_op_p): ... this
7129         (can_associate_type_p): ... and this.
7130         (is_reassociable_op): Call can_associate_op_p.
7131         (break_up_subtract_bb): Call the appropriate predicates.
7132         (reassociate_bb): Likewise.
7133
7134 2021-05-12  Martin Liska  <mliska@suse.cz>
7135
7136         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
7137         (run_gcc): Use -flto argument detection for merged
7138         fdecoded_options.
7139
7140 2021-05-12  Martin Liska  <mliska@suse.cz>
7141
7142         * lto-wrapper.c (print_lto_docs_link): New function.
7143         (run_gcc): Print warning about missing job server detection
7144         after we know NR of partitions. Do the same for -flto{,=1}.
7145         * opts.c (get_option_html_page): Support -flto option.
7146
7147 2021-05-12  Martin Liska  <mliska@suse.cz>
7148
7149         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
7150         return type.
7151         (append_option): Remove.
7152         (find_option): Rework to use the vector type.
7153         (remove_option): Remove.
7154         (merge_and_complain): Use vectors for cl_decoded_option data
7155         type arguments.
7156         (append_compiler_options): Likewise.
7157         (append_diag_options): Likewise.
7158         (append_linker_options): Likewise.
7159         (append_offload_options): Likewise.
7160         (compile_offload_image): Likewise.
7161         (compile_images_for_offload_targets): Likewise.
7162         (find_and_merge_options): Likewise.
7163         (run_gcc): Likewise.
7164
7165 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7166
7167         PR debug/100515
7168         * dwarf2out.c (dwarf2out_finish): Set
7169         have_multiple_function_sections with multi-range text_section.
7170
7171 2021-05-12  Martin Liska  <mliska@suse.cz>
7172
7173         PR bootstrap/100560
7174         * Makefile.in: Remove version.h from linker command line.
7175
7176 2021-05-12  Richard Biener  <rguenther@suse.de>
7177
7178         PR middle-end/100547
7179         * rtl.h (rtvec_alloc): Make argument size_t.
7180         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
7181
7182 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
7183
7184         PR middle-end/100508
7185         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
7186         type, don't reuse DECL_RTL if it has different mode, instead force
7187         creation of a new DEBUG_EXPR.
7188
7189 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
7190             Marc Glisse  <marc.glisse@inria.fr>
7191
7192         PR tree-optimization/94589
7193         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
7194         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
7195
7196 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
7197
7198         PR target/98218
7199         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
7200         * config/i386/mmx.md (MMXMODE124): New mode iterator.
7201         (V2FI): Ditto.
7202         (mmxintvecmode): New mode attribute.
7203         (mmxintvecmodelower): Ditto.
7204         (*mmx_maskcmpv2sf3_comm): New insn pattern.
7205         (*mmx_maskcmpv2sf3): Ditto.
7206         (vec_cmpv2sfv2si): New expander.
7207         (vcond<V2FI:mode>v2si): Ditto.
7208         (mmx_vlendvps): New insn pattern.
7209         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
7210         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
7211         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
7212
7213 2021-05-11  Martin Sebor  <msebor@redhat.com>
7214
7215         PR middle-end/21433
7216         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
7217
7218 2021-05-11  Richard Biener  <rguenther@suse.de>
7219
7220         * gimple-fold.c (gimple_fold_call): Do not call
7221         maybe_fold_reference on call arguments or the static chain.
7222         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
7223         inputs.
7224
7225 2021-05-11  Martin Liska  <mliska@suse.cz>
7226
7227         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
7228         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
7229         (DEF_HSAIL_SAT_BUILTIN): Likewise.
7230         (DEF_HSAIL_INTR_BUILTIN): Likewise.
7231         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
7232         * doc/frontends.texi: Remove BRIG.
7233         * doc/install.texi: Likewise.
7234         * doc/invoke.texi: Likewise.
7235         * doc/standards.texi: Likewise.
7236         * brig-builtins.def: Removed.
7237         * brig/ChangeLog: Removed.
7238         * brig/Make-lang.in: Removed.
7239         * brig/brig-builtins.h: Removed.
7240         * brig/brig-c.h: Removed.
7241         * brig/brig-lang.c: Removed.
7242         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
7243         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
7244         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
7245         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
7246         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
7247         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
7248         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
7249         * brig/brigfrontend/brig-comment-handler.cc: Removed.
7250         * brig/brigfrontend/brig-control-handler.cc: Removed.
7251         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
7252         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
7253         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
7254         * brig/brigfrontend/brig-function-handler.cc: Removed.
7255         * brig/brigfrontend/brig-function.cc: Removed.
7256         * brig/brigfrontend/brig-function.h: Removed.
7257         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
7258         * brig/brigfrontend/brig-label-handler.cc: Removed.
7259         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
7260         * brig/brigfrontend/brig-machine.c: Removed.
7261         * brig/brigfrontend/brig-machine.h: Removed.
7262         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
7263         * brig/brigfrontend/brig-module-handler.cc: Removed.
7264         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
7265         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
7266         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
7267         * brig/brigfrontend/brig-to-generic.cc: Removed.
7268         * brig/brigfrontend/brig-to-generic.h: Removed.
7269         * brig/brigfrontend/brig-util.cc: Removed.
7270         * brig/brigfrontend/brig-util.h: Removed.
7271         * brig/brigfrontend/brig-variable-handler.cc: Removed.
7272         * brig/brigfrontend/hsa-brig-format.h: Removed.
7273         * brig/brigfrontend/phsa.h: Removed.
7274         * brig/brigspec.c: Removed.
7275         * brig/config-lang.in: Removed.
7276         * brig/gccbrig.texi: Removed.
7277         * brig/lang-specs.h: Removed.
7278         * brig/lang.opt: Removed.
7279
7280 2021-05-11  Richard Biener  <rguenther@suse.de>
7281
7282         PR ipa/100513
7283         * ipa-param-manipulation.c
7284         (ipa_param_body_adjustments::modify_call_stmt): Avoid
7285         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
7286         via gimple_call_lhs_ptr.
7287
7288 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
7289
7290         PR target/99725
7291         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
7292         Avoid emitting CFA adjusts on the sp if we have the fp.
7293
7294 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7295
7296         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
7297         (VMULD): New iterator.
7298         (VCOND): Handle V4HF and V8HF.
7299         (VCONQ): Fix entry for V2SF.
7300         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
7301         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
7302         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
7303         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
7304         Use a 128-bit vector mode for the indexed operand.  Use stype for
7305         the scheduling type.
7306
7307 2021-05-11  Richard Biener  <rguenther@suse.de>
7308
7309         * gimple-fold.c (maybe_fold_reference): Only return
7310         is_gimple_min_invariant values.
7311
7312 2021-05-11  Richard Biener  <rguenther@suse.de>
7313
7314         PR middle-end/100509
7315         * gimple-fold.c (fold_gimple_assign): Only call
7316         get_symbol_constant_value on register type symbols.
7317
7318 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
7319             Joe Ramsay   <joe.ramsay@arm.com>
7320
7321         PR target/100419
7322         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
7323         (__arm_vcmpneq): Remove duplicate definition.
7324         (__arm_vstrwq_scatter_offset_p): Likewise.
7325         (__arm_vmaxq_x): Likewise.
7326         (__arm_vmlsdavaq): Likewise.
7327         (__arm_vmlsdavaxq): Likewise.
7328         (__arm_vmlsdavq_p): Likewise.
7329         (__arm_vmlsdavxq_p): Likewise.
7330         (__arm_vrmlaldavhaq): Likewise.
7331         (__arm_vstrbq_p): Likewise.
7332         (__arm_vstrbq_scatter_offset): Likewise.
7333         (__arm_vstrbq_scatter_offset_p): Likewise.
7334         (__arm_vstrdq_scatter_offset): Likewise.
7335         (__arm_vstrdq_scatter_offset_p): Likewise.
7336         (__arm_vstrdq_scatter_shifted_offset): Likewise.
7337         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
7338
7339 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
7340
7341         PR middle-end/100471
7342         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
7343         is 0, bypass the reduction loop including
7344         GOMP_taskgroup_reduction_unregister call.
7345
7346 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
7347
7348         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
7349         costing_for_scalar.
7350         (rs6000_density_test): Early return if costing_for_scalar is true.
7351         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
7352
7353 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
7354
7355         * doc/tm.texi: Regenerated.
7356         * target.def (init_cost): Add new parameter costing_for_scalar.
7357         * targhooks.c (default_init_cost): Adjust for new parameter.
7358         * targhooks.h (default_init_cost): Likewise.
7359         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
7360         (vect_compute_single_scalar_iteration_cost): Likewise.
7361         (vect_analyze_loop_2): Likewise.
7362         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
7363         (vect_bb_vectorization_profitable_p): Likewise.
7364         * tree-vectorizer.h (init_cost): Likewise.
7365         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
7366         * config/i386/i386.c (ix86_init_cost): Likewise.
7367         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
7368
7369 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
7370
7371         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
7372         vect_nonmem and moved into...
7373         (struct rs6000_cost_data): ...here.
7374         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
7375         (rs6000_add_stmt_cost): Likewise.
7376         (rs6000_finish_cost): Likewise.
7377
7378 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
7379
7380         * range-op.cc (get_bool_state): Adjust head comment.
7381         (operator_not_equal::op1_range): Fix comment.
7382         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
7383
7384 2021-05-10  Martin Sebor  <msebor@redhat.com>
7385
7386         PR middle-end/100425
7387         PR middle-end/100510
7388         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
7389         (pass_walloca::xlimit_certain_p): ...to this.
7390         (pass_walloca::gate): Execute for any kind of handled warning.
7391         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
7392         warnings when xlimit_certain_p is set.
7393
7394 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
7395
7396         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
7397         Return ALTIVEC_REGS if that is best_class.
7398         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
7399
7400 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
7401
7402         * config/arm/arm.h (CPP_SPEC): Remove error message about
7403         -mfloat-abi.
7404
7405 2021-05-10  Martin Jambor  <mjambor@suse.cz>
7406
7407         * ipa-prop.h (IPA_NODE_REF): Removed.
7408         (IPA_NODE_REF_GET_CREATE): Likewise.
7409         (IPA_EDGE_REF): Likewise.
7410         (IPA_EDGE_REF_GET_CREATE): Likewise.
7411         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
7412         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
7413         use of ipa_node_params_sum.
7414         (ipcp_versionable_function_p): Likewise.
7415         (push_node_to_stack): Likewise.
7416         (pop_node_from_stack): Likewise.
7417         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
7418         direct use of ipa_node_params_sum.
7419         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
7420         ipa_node_params_sum.
7421         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
7422         ipa_edge_args_sum.
7423         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
7424         use of ipa_node_params_sum.
7425         (self_recursively_generated_p): Likewise.
7426         (propagate_scalar_across_jump_function): Likewise.
7427         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
7428         direct use of ipa_edge_args_sum, moved the lookup after the early
7429         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
7430         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
7431         direct uses of ipa_node_params_sum.
7432         (propagate_vr_across_jump_function): Likewise.
7433         (propagate_aggregate_lattice): Likewise.
7434         (propagate_aggs_across_jump_function): Likewise.
7435         (propagate_constants_across_call): Likewise, also replaced
7436         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
7437         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
7438         of ipa_node_params_sum.
7439         (estimate_local_effects): Likewise.
7440         (add_all_node_vals_to_toposort): Likewise.
7441         (propagate_constants_topo): Likewise.
7442         (ipcp_propagate_stage): Likewise.
7443         (ipcp_discover_new_direct_edges): Likewise.
7444         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
7445         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
7446         (get_info_about_necessary_edges): Likewise.
7447         (want_remove_some_param_p): Likewise.
7448         (create_specialized_node): Likewise.
7449         (self_recursive_pass_through_p): Likewise.
7450         (self_recursive_agg_pass_through_p): Likewise.
7451         (find_more_scalar_values_for_callers_subset): Likewise and also
7452         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
7453         case replacing two of those with a single query.
7454         (find_more_contexts_for_caller_subset): Likewise for the
7455         ipa_polymorphic_call_context overload.
7456         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
7457         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
7458         ipa_node_params_sum.
7459         (find_aggregate_values_for_callers_subset): Likewise, also reusing
7460         results of ipa_edge_args_sum->get.
7461         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
7462         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
7463         direct use of ipa_edge_args_sum.
7464         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
7465         summary query after the early exit and reused the result later.
7466         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
7467         ipa_node_params_sum.
7468         (decide_whether_version_node): Likewise.  Removed re-querying for
7469         summaries after cloning.
7470         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
7471         ipa_node_params_sum.
7472         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
7473         some queries.
7474         (identify_dead_nodes): Likewise.
7475         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
7476         ipa_node_params_sum.
7477         (ipcp_store_vr_results): Likewise.
7478         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
7479         (ipa_fn_summary_t::duplicate): Likewise.
7480         (analyze_function_body): Likewise.
7481         (estimate_calls_size_and_time): Likewise.
7482         (ipa_cached_call_context::duplicate_from): Likewise.
7483         (ipa_call_context::equal_to): Likewise.
7484         (remap_edge_params): Likewise.
7485         (ipa_merge_fn_summary_after_inlining): Likewise.
7486         (inline_read_section): Likewise.
7487         * ipa-icf.c (sem_function::param_used_p): Likewise.
7488         * ipa-modref.c (compute_parm_map): Likewise.
7489         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
7490         ipa_edge_args_sum.
7491         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
7492         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
7493         ipa_edge_args_sum.
7494         * ipa-profile.c (check_argument_count): Likewise.
7495         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
7496         with a direct use of ipa_node_params_sum.
7497         (ipa_initialize_node_params): Likewise.
7498         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
7499         direct use of ipa_edge_args_sum and reused the query result.
7500         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
7501         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
7502         direct use of ipa_edge_args_sum.
7503         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
7504         ipa_node_params_sum and reused the result of the query.
7505         (ipa_analyze_node): Likewise.
7506         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
7507         of ipa_node_params_sum.
7508         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
7509         direct uses of ipa_edge_args_sum.
7510         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
7511         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
7512         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
7513         top edge summary.
7514         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
7515         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
7516         ipa_edge_args_sum.
7517         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
7518         direct use of ipa_edge_args_sum.
7519         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
7520         use of ipa_node_params_sum.
7521         (ipa_print_node_params): Likewise.
7522         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
7523         direct uses of ipa_edge_args_sum.
7524         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
7525         ipa_edge_args_sum.
7526         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
7527         ipa_node_params_sum.
7528         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
7529         scopes where it is used.
7530
7531 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
7532
7533         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
7534         <case E_V2SImode>: Force op_true to register.
7535
7536 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
7537
7538         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
7539         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
7540         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
7541         patterns.
7542         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
7543         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
7544         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
7545         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
7546         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
7547         (mve_vcmpneq_n_f<mode>): Remove.
7548         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
7549         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
7550         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
7551
7552 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
7553
7554         * config/arm/iterators.md (MVE_COMPARISONS): New.
7555         (mve_cmp_op): New.
7556         (mve_cmp_type): New.
7557         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
7558         mve_vcmp patterns.
7559         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
7560         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
7561         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
7562         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
7563         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
7564         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
7565         (mve_vcmpneq_n_<mode>): Remove.
7566
7567 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
7568
7569         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
7570         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
7571         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
7572         names.
7573
7574 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
7575
7576         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
7577         (vcmpneq_n_u): Likewise.
7578         (vcmpeqq_u,): Likewise.
7579         (vcmpeqq_n_u): Likewise.
7580         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
7581         VCMPEQQ_N_U and VCMPNEQ_N_U.
7582         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
7583         (mve_vcmpeqq_n): Likewise.
7584         (mve_vcmpeqq): Likewise.
7585         (mve_vcmpneq_n): Likewise.
7586
7587 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
7588
7589         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
7590         the 's' version of the builtin.
7591
7592 2021-05-10  Richard Biener  <rguenther@suse.de>
7593
7594         PR tree-optimization/100492
7595         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
7596         Find nothing when the loop contains an irreducible region.
7597
7598 2021-05-10  Richard Biener  <rguenther@suse.de>
7599
7600         PR middle-end/100464
7601         PR c++/100468
7602         * gimple-fold.c (canonicalize_constructor_val): Do not set
7603         TREE_ADDRESSABLE.
7604
7605 2021-05-10  Richard Biener  <rguenther@suse.de>
7606
7607         PR tree-optimization/100434
7608         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
7609         call LHS.
7610         (dse_optimize_stmt): Handle call LHS by dropping the
7611         LHS or the whole call if it doesn't have other
7612         side-effects.
7613         (pass_dse::execute): Adjust.
7614
7615 2021-05-10  Martin Liska  <mliska@suse.cz>
7616
7617         * Makefile.in: Add missing genversion rule.
7618
7619 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
7620
7621         PR target/99960
7622         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
7623         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
7624
7625 2021-05-10  Martin Liska  <mliska@suse.cz>
7626
7627         * builtins.c (is_builtin_name): Use startswith
7628         function instead of strncmp.
7629         * collect2.c (main): Likewise.
7630         (has_lto_section): Likewise.
7631         (scan_libraries): Likewise.
7632         * coverage.c (coverage_checksum_string): Likewise.
7633         (coverage_init): Likewise.
7634         * dwarf2out.c (is_cxx): Likewise.
7635         (gen_compile_unit_die): Likewise.
7636         * gcc-ar.c (main): Likewise.
7637         * gcc.c (init_spec): Likewise.
7638         (read_specs): Likewise.
7639         (execute): Likewise.
7640         (check_live_switch): Likewise.
7641         * genattrtab.c (write_attr_case): Likewise.
7642         (IS_ATTR_GROUP): Likewise.
7643         * gencfn-macros.c (main): Likewise.
7644         * gengtype.c (type_for_name): Likewise.
7645         (gen_rtx_next): Likewise.
7646         (get_file_langdir): Likewise.
7647         (write_local): Likewise.
7648         * genmatch.c (get_operator): Likewise.
7649         (get_operand_type): Likewise.
7650         (expr::gen_transform): Likewise.
7651         * genoutput.c (validate_optab_operands): Likewise.
7652         * incpath.c (add_sysroot_to_chain): Likewise.
7653         * langhooks.c (lang_GNU_C): Likewise.
7654         (lang_GNU_CXX): Likewise.
7655         (lang_GNU_Fortran): Likewise.
7656         (lang_GNU_OBJC): Likewise.
7657         * lto-wrapper.c (run_gcc): Likewise.
7658         * omp-general.c (omp_max_simt_vf): Likewise.
7659         * omp-low.c (omp_runtime_api_call): Likewise.
7660         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
7661         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
7662         * real.c (real_from_string): Likewise.
7663         * selftest.c (assert_str_startswith): Likewise.
7664         * timevar.c (timer::validate_phases): Likewise.
7665         * tree.c (get_file_function_name): Likewise.
7666         * ubsan.c (ubsan_use_new_style_p): Likewise.
7667         * varasm.c (default_function_rodata_section): Likewise.
7668         (incorporeal_function_p): Likewise.
7669         (default_section_type_flags): Likewise.
7670         * system.h (startswith): Define startswith.
7671
7672 2021-05-10  Martin Liska  <mliska@suse.cz>
7673
7674         * bitmap.h (class auto_bitmap): Remove
7675         __cplusplus >= 201103.
7676         * config/aarch64/aarch64.c: Likewise.
7677         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
7678         Likewise.
7679         * sbitmap.h: Likewise.
7680
7681 2021-05-10  Martin Liska  <mliska@suse.cz>
7682
7683         * Makefile.in: Rename gcov-iov to genversion and depend
7684         on version.h (instead of gcov-iov.h).
7685         * gcov-io.h: Include version.h instread of gcov-iov.h.
7686         * gengtype-state.c (read_state_version): Likewise.
7687         * gcov-iov.c: Moved to...
7688         * genversion.c: ...here.
7689         * lto-streamer.h (LTO_major_version): Define it with
7690         GCC_major_version.
7691         * version.c: Removed.
7692         * version.h: Removed.
7693
7694 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7695
7696         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
7697         * config/arc/simdext.md (VCT): Add predicates for iterator
7698         elements.
7699         (EMUVEC): Define.
7700         (voptab): Likewise.
7701         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
7702         (<voptab>v2si3): New patterns.
7703         (neg): Likewise.
7704         (reduc_plus_scal_v4hi): Likewise.
7705         (reduc_plus_scal_v2si): Likewise.
7706         (vec_duplicatev2si): Likewise.
7707         (vec_duplicatev4hi): Likewise.
7708
7709 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7710
7711         * config/arc/simdext.md: Format and cleanup file.
7712
7713 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7714
7715         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
7716         only when munaligned-access option is on.
7717         (movmisalign<mode>): Likewise.
7718
7719 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7720
7721         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
7722         from string.
7723         * config/arc/arc.c (arc_reorg): Remove underscore from string.
7724
7725 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7726
7727         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
7728         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
7729         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
7730         (norm_f): Likewise.
7731         (ffs): Likewise.
7732         (ffs_f): Likewise.
7733         (clzsi2): Use fls instruction when available.
7734         (arc_clzsi2): Likewise.
7735
7736 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7737
7738         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
7739
7740 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
7741
7742         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
7743
7744 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7745
7746         PR middle-end/100467
7747         * toplev.c (compile_file): Call insn_locations_init before
7748         targetm.asm_out.code_end.
7749
7750 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
7751
7752         Revert:
7753         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
7754
7755         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
7756
7757 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
7758             Andrew Stubbs  <amd@codesourcery.com>
7759
7760         PR target/100418
7761         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
7762         emit_move_insn operands.
7763
7764 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
7765
7766         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
7767         location for the outgoing edges of an empty block.
7768         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
7769         type by means of the get_array_descr_info langhook, if it is set and
7770         returns true.  Remove obsolete code dealing with unnamed subtypes.
7771
7772 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7773
7774         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
7775         (sbr_vector): Renamed from ssa_block_cache.
7776         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
7777         (ssa_block_ranges::~ssa_block_ranges): Remove.
7778         (sbr_vector::set_bb_range): Use varying and undefined cached values.
7779         (ssa_block_ranges::set_bb_varying): Remove.
7780         (sbr_vector::get_bb_range): Adjust assert.
7781         (sbr_vector::bb_range_p): Adjust assert.
7782         (~block_range_cache): No freeing loop required.
7783         (block_range_cache::get_block_ranges): Remove.
7784         (block_range_cache::set_bb_range): Inline get_block_ranges.
7785         (block_range_cache::set_bb_varying): Remove.
7786         * gimple-range-cache.h (set_bb_varying): Remove prototype.
7787         * value-range.h (irange_allocator::get_memory): New.
7788
7789 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7790
7791         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
7792         dominator tree is available and requested.
7793         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
7794         (ranger_cache::fill_block_cache): Don't search dom tree here either.
7795         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
7796
7797 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7798
7799         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
7800         only PHI nodes better.
7801
7802 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7803
7804         * gimple-range-edge.h (gimple_outgoing_range): Rename from
7805         outgoing_range.
7806         (gcond_edge_range): Export prototype.
7807         * gimple-range-edge.cc (gcond_edge_range): New.
7808         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
7809         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
7810
7811 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7812
7813         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
7814         default range into a temp and allocate only what is needed.
7815
7816 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7817
7818         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
7819
7820 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
7821
7822         * gimple-range.h (gimple_range_global): Pick up parameter initial
7823         values, and use-before defined locals are UNDEFINED.
7824
7825 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
7826
7827         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
7828         and vector fields.
7829         * tree.h (reverse_storage_order_for_component_p): Return false if
7830         the type is a pointer.
7831
7832 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
7833
7834         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
7835
7836 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
7837
7838         PR target/98218
7839         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
7840         Handle V8QI, V4HI and V2SI modes.
7841         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
7842         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
7843         * config/i386/i386.md (unspec): ... here.
7844
7845 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
7846             Tom de Vries  <tdevries@suse.de>
7847
7848         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
7849         a truth_value_p reduction variable is nonintegral.
7850
7851 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
7852
7853         PR target/100445
7854         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
7855         Return false for mode sizes < 16.
7856
7857 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
7858
7859         PR target/100445
7860         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
7861
7862 2021-05-06  Martin Jambor  <mjambor@suse.cz>
7863
7864         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
7865         when there is no function summary.
7866         (ipa_sra_summarize_function): produce edge summaries even when
7867         bailing out early.
7868
7869 2021-05-06  Tom Tromey  <tom@tromey.com>
7870
7871         * godump.c (string_hash_eq): Remove.
7872         (go_finish): Use htab_eq_string.
7873
7874 2021-05-06  Tom Tromey  <tom@tromey.com>
7875
7876         * gengtype-state.c (read_state): Use htab_eq_string.
7877         (string_eq): Remove.
7878
7879 2021-05-06  Tom Tromey  <tom@tromey.com>
7880
7881         * gensupport.c (htab_eq_string): Remove.
7882
7883 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7884
7885         PR ipa/97937
7886         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
7887         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
7888         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
7889         set_ignored_loc callbacks.
7890         * debug.c (do_nothing_debug_hooks): Likewise.
7891         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7892         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
7893         (in_text_section_p, last_text_label, last_cold_label,
7894         switch_text_ranges, switch_cold_ranges): New data items.
7895         (dwarf2out_note_section_used): Remove.
7896         (dwarf2out_begin_prologue): Set fde->ignored_debug and
7897         in_text_section_p.
7898         (mark_ignored_debug_section): New helper function.
7899         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
7900         mark_ignored_debug_section.
7901         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
7902         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
7903         (size_of_aranges): Adjust formula for multi-part text ranges size.
7904         (output_aranges): Output multi-part text ranges.
7905         (dwarf2out_set_ignored_loc): New callback function.
7906         (dwarf2out_finish): Output multi-part text ranges.
7907         (dwarf2out_c_finalize): Clear new data items.
7908         * final.c (final_start_function_1): Call set_ignored_loc callback.
7909         (final_scan_insn_1): Likewise.
7910         * ggc-page.c (gt_ggc_mx): New helper function.
7911         * stringpool.c (gt_pch_nx): Likewise.
7912
7913 2021-05-06  Richard Biener  <rguenther@suse.de>
7914
7915         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
7916         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
7917         (TV_TREE_INTO_SSA): New.
7918         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
7919         (rewrite_blocks): Likewise.
7920         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
7921
7922 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
7923
7924         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
7925         abs_replacement, xor_replacement,
7926         cond_removal_in_popcount_clz_ctz_pattern,
7927         replace_phi_edge_with_variable): Change type of phi argument from
7928         gimple * to gphi *.
7929
7930 2021-05-06  Richard Biener  <rguenther@suse.de>
7931
7932         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
7933         Output an opt-info message.
7934         (do_split_loop_on_cond): Likewise.
7935         (tree_ssa_split_loops): Update SSA form here.
7936
7937 2021-05-06  Richard Biener  <rguenther@suse.de>
7938
7939         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
7940         return variable removal.
7941
7942 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
7943
7944         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
7945         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
7946         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
7947         operand.
7948         * config/s390/s390.c (s390_const_operand_ok): Remove unused
7949         values.
7950
7951 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
7952
7953         PR tree-optimization/94589
7954         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
7955         spaceship_replacement.
7956         (cond_only_block_p, spaceship_replacement): New functions.
7957
7958 2021-05-06  Richard Biener  <rguenther@suse.de>
7959
7960         PR ipa/100373
7961         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
7962         dealing with a debug use and only query existing addresses
7963         if so.
7964         (lower_emutls_1): Avoid splitting out addresses for debug
7965         stmts, reset the debug stmt when we fail to find existing
7966         lowered addresses.
7967         (lower_emutls_phi_arg): Set wi.stmt.
7968
7969 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
7970
7971         PR target/100266
7972         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
7973         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
7974         (stack_protect_test): Use cbranch helper.
7975
7976 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7977
7978         PR target/100402
7979         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
7980         always return the establisher frame for __builtin_frame_address (0).
7981
7982 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
7983
7984         PR target/91400
7985         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
7986         (ix86_cpu_model_var): Likewise.
7987         (ix86_cpu_features2_type_node): Likewise.
7988         (ix86_cpu_features2_var): Likewise.
7989         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
7990         their types.
7991
7992 2021-05-05  Martin Sebor  <msebor@redhat.com>
7993
7994         * passes.def (pass_warn_printf): Run after SSA.
7995
7996 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7997
7998         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
7999         * config/arm/predicates.md (minus_one_operand): New predicate.
8000
8001 2021-05-05  Jeff Law  <jlaw@tachyum.com>
8002
8003         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
8004
8005 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
8006
8007         PR rtl-optimization/100263
8008         * postreload.c (move2add_valid_value_p): Ensure register can
8009         change mode.
8010
8011 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
8012
8013         PR rtl-optimization/100411
8014         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
8015         and beginning of function markers.
8016
8017 2021-05-05  Jeff Law  <jlaw@tachyum.com>
8018
8019         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
8020         * config/cr16/cr16.c (notice_update_cc): Remove.
8021         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
8022
8023 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
8024
8025         PR target/98218
8026         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8027         Handle V8QI, V4HI and V2SI modes.
8028         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
8029         (ix86_build_signbit_mask): Ditto.
8030         * config/i386/mmx.md (MMXMODE14): New mode iterator.
8031         (<smaxmin:code><MMXMODE14:mode>3): New expander.
8032         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
8033         (<umaxmin:code><MMXMODE24:mode>3): New expander.
8034         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
8035         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
8036         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8037         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8038         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8039         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
8040
8041 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
8042
8043         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
8044         not expand the VALUE_EXPR of variables put in the non-local frame.
8045         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
8046         to be ignored for debug info, ensure its variable offsets are not.
8047
8048 2021-05-05  Richard Biener  <rguenther@suse.de>
8049
8050         PR tree-optimization/79333
8051         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8052         Fold stmt following SSA edges.
8053
8054 2021-05-05  Richard Biener  <rguenther@suse.de>
8055
8056         PR middle-end/100394
8057         * calls.c (expand_call): Preserve possibly throwing calls.
8058         * cfgexpand.c (expand_call_stmt): When a call can throw signal
8059         RTL expansion there are side-effects.
8060         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
8061         mark all possibly throwing stmts necessary unless we can elide
8062         dead EH.
8063         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
8064         -fdelete-dead-exceptions.
8065         * tree.h (DECL_PURE_P): Add note about exceptions.
8066
8067 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
8068
8069         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
8070         unconditional.
8071
8072 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
8073
8074         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
8075         get_fnname_from_decl for name of thunk.
8076         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
8077         and ASM_OUTPUT_LABEL.
8078         (rs6000_xcoff_declare_function_name): Use assemble_name and
8079         ASM_OUTPUT_LABEL.
8080         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
8081         (rs6000_xcoff_encode_section_info): Don't add mapping class
8082         for aliases.  Always add [DS] mapping class to primary
8083         FUNCTION_DECL.
8084         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
8085
8086 2021-05-04  Martin Sebor  <msebor@redhat.com>
8087
8088         PR middle-end/100307
8089         * builtins.c (compute_objsize_r): Clear base0 for pointers.
8090
8091 2021-05-04  Jeff Law  <jlaw@tachyum.com>
8092
8093         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
8094
8095 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8096
8097         * caller-save.c: Remove CC0.
8098         * cfgcleanup.c: Remove CC0.
8099         * cfgrtl.c: Remove CC0.
8100         * combine.c: Remove CC0.
8101         * compare-elim.c: Remove CC0.
8102         * conditions.h: Remove CC0.
8103         * config/h8300/h8300.h: Remove CC0.
8104         * config/h8300/h8300-protos.h: Remove CC0.
8105         * config/h8300/peepholes.md: Remove CC0.
8106         * config/i386/x86-tune-sched.c: Remove CC0.
8107         * config/m68k/m68k.c: Remove CC0.
8108         * config/rl78/rl78.c: Remove CC0.
8109         * config/sparc/sparc.c: Remove CC0.
8110         * config/xtensa/xtensa.c: Remove CC0.
8111         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
8112         RTL where that is used as a placeholder only.
8113         * cprop.c: Remove CC0.
8114         * cse.c: Remove CC0.
8115         * cselib.c: Remove CC0.
8116         * df-problems.c: Remove CC0.
8117         * df-scan.c: Remove CC0.
8118         * doc/md.texi: Remove CC0.  Adjust an example.
8119         * doc/rtl.texi: Remove CC0.  Adjust an example.
8120         * doc/tm.texi: Regenerate.
8121         * doc/tm.texi.in: Remove CC0.
8122         * emit-rtl.c: Remove CC0.
8123         * final.c: Remove CC0.
8124         * fwprop.c: Remove CC0.
8125         * gcse-common.c: Remove CC0.
8126         * gcse.c: Remove CC0.
8127         * genattrtab.c: Remove CC0.
8128         * genconfig.c: Remove CC0.
8129         * genemit.c: Remove CC0.
8130         * genextract.c: Remove CC0.
8131         * gengenrtl.c: Remove CC0.
8132         * genrecog.c: Remove CC0.
8133         * haifa-sched.c: Remove CC0.
8134         * ifcvt.c: Remove CC0.
8135         * ira-costs.c: Remove CC0.
8136         * ira.c: Remove CC0.
8137         * jump.c: Remove CC0.
8138         * loop-invariant.c: Remove CC0.
8139         * lra-constraints.c: Remove CC0.
8140         * lra-eliminations.c: Remove CC0.
8141         * optabs.c: Remove CC0.
8142         * postreload-gcse.c: Remove CC0.
8143         * postreload.c: Remove CC0.
8144         * print-rtl.c: Remove CC0.
8145         * read-rtl-function.c: Remove CC0.
8146         * reg-notes.def: Remove CC0.
8147         * reg-stack.c: Remove CC0.
8148         * reginfo.c: Remove CC0.
8149         * regrename.c: Remove CC0.
8150         * reload.c: Remove CC0.
8151         * reload1.c: Remove CC0.
8152         * reorg.c: Remove CC0.
8153         * resource.c: Remove CC0.
8154         * rtl.c: Remove CC0.
8155         * rtl.def: Remove CC0.
8156         * rtl.h: Remove CC0.
8157         * rtlanal.c: Remove CC0.
8158         * sched-deps.c: Remove CC0.
8159         * sched-rgn.c: Remove CC0.
8160         * shrink-wrap.c: Remove CC0.
8161         * simplify-rtx.c: Remove CC0.
8162         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
8163         CC_STATUS_MDEP, and CC_STATUS.
8164         * target.def: Remove CC0.
8165         * valtrack.c: Remove CC0.
8166         * var-tracking.c: Remove CC0.
8167
8168 2021-05-04  Richard Biener  <rguenther@suse.de>
8169
8170         PR tree-optimization/100414
8171         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
8172         info here.
8173         (tree_ssa_phiopt_worker): But unconditionally here.
8174
8175 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
8176
8177         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
8178         && and || with floating-point and complex arguments.
8179
8180 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
8181
8182         * tree-inline.c (insert_debug_decl_map): Delete.
8183         (copy_debug_stmt): Minor tweak.
8184         (setup_one_parameter): Do not use a variable if the value is either
8185         a read-only DECL or a non-addressable local variable in the caller.
8186         In this case, insert the debug-only variable in the map manually.
8187         (expand_call_inline): Do not generate a CLOBBER for these values.
8188         * tree-inline.h (debug_map): Minor tweak.
8189
8190 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
8191
8192         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
8193         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
8194
8195 2021-05-04  Richard Biener  <rguenther@suse.de>
8196
8197         PR tree-optimization/100329
8198         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
8199         asm goto defs.
8200         (insert_stmt_after): Assert we're not running into asm goto.
8201
8202 2021-05-04  Richard Biener  <rguenther@suse.de>
8203
8204         PR tree-optimization/100398
8205         * tree-ssa-dse.c (pass_dse::execute): Preserve control
8206         altering stmts.
8207
8208 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8209
8210         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
8211
8212 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
8213
8214         * builtins.c (try_store_by_multiple_pieces): New.
8215         (expand_builtin_memset_args): Use it.  If target_char_cast
8216         fails, proceed as for non-constant val.  Pass len's ctz to...
8217         * expr.c (clear_storage_hints): ... this.  Try store by
8218         multiple pieces after setmem.
8219         (clear_storage): Adjust.
8220         * expr.h (clear_storage_hints): Likewise.
8221         (try_store_by_multiple_pieces): Declare.
8222         * passes.def: Replace the last copy_prop with ccp.
8223
8224 2021-05-03  Tom de Vries  <tdevries@suse.de>
8225
8226         PR target/100321
8227         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
8228         reduction.
8229
8230 2021-05-03  Richard Biener  <rguenther@suse.de>
8231
8232         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
8233
8234 2021-05-03  Richard Biener  <rguenther@suse.de>
8235
8236         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
8237         (dse_dom_walker): Remove.
8238         (dse_dom_walker::dse_optimize_stmt): Rename...
8239         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
8240         (dse_dom_walker::before_dom_children): Inline ...
8241         (pass_dse::execute): ... here.  Perform a reverse program
8242         order walk.
8243
8244 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
8245
8246         PR bootstrap/99703
8247         * configure: Regenerated.
8248
8249 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
8250
8251         PR target/100217
8252         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
8253         (s390_md_asm_adjust): Handle hard registers.
8254
8255 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
8256
8257         PR tree-optimization/100382
8258         * tree-ssa-dse.c: Include tree-eh.h.
8259         (dse_dom_walker::before_dom_children): Don't remove stmts if
8260         stmt_unremovable_because_of_non_call_eh_p is true.
8261
8262 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
8263
8264         * varasm.c (compute_reloc_for_var): Split out from...
8265         (get_variable_section): Use it.
8266         * output.h (compute_reloc_for_var): Declare.
8267         * config/rs6000/rs6000-protos.h
8268         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
8269         unsigned int.
8270         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
8271         Don't append storage mapping class to symbol.
8272         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
8273         Don't convert TLS BSS to common.
8274         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
8275         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
8276         bss_initializer.
8277         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
8278         mapping class.
8279         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
8280         If align is 0 from TLS class, use the same rules as varasm.c
8281         If not common, switch to BSS section manually.
8282         If common, emit appropriate comm or lcomm directive.
8283         (rs6000_xcoff_encode_section_info): Add logic to append all
8284         storage mapping classes.
8285         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
8286         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8287         rs6000_xcoff_asm_output_aligned_decl_common.
8288         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8289         rs6000_xcoff_asm_output_aligned_decl_common.
8290         (ASM_OUTPUT_TLS_COMMON): Use
8291         rs6000_xcoff_asm_output_aligned_decl_common.
8292
8293 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
8294
8295         PR target/100375
8296         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
8297         as first argument of pseudo_node_t constructors.
8298
8299 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
8300
8301         PR target/100336
8302         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
8303
8304 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
8305
8306         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
8307         (gt_pch_nx (int_range<1> *&)): New.
8308         (gt_ggc_mx (int_range<1> *&)): New.
8309         * value-range.h (class irange): Add GTY support for
8310         the base class.
8311
8312 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
8313
8314         * doc/options.texi (Negative): Change either or to both and.
8315
8316 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
8317
8318         * config/aarch64/aarch64-simd-builtins.def: Add
8319         float_ml[as][q]_laneq builtin generator macros.
8320         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
8321         (aarch64_float_mla_laneq<mode>): Define.
8322         (aarch64_float_mls_laneq<mode>): Define.
8323         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
8324         instead of GCC vector extensions.
8325         (vmlaq_laneq_f32): Likewise.
8326         (vmls_laneq_f32): Likewise.
8327         (vmlsq_laneq_f32): Likewise.
8328
8329 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
8330
8331         * config/aarch64/aarch64-simd-builtins.def: Add
8332         float_ml[as]_lane builtin generator macros.
8333         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
8334         Rename to...
8335         (mul_lane<mode>3): This, and re-order arguments.
8336         (aarch64_float_mla_lane<mode>): Define.
8337         (aarch64_float_mls_lane<mode>): Define.
8338         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
8339         instead of GCC vector extensions.
8340         (vmlaq_lane_f32): Likewise.
8341         (vmls_lane_f32): Likewise.
8342         (vmlsq_lane_f32): Likewise.
8343
8344 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
8345
8346         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
8347         builtin generator macros.
8348         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
8349         Define.
8350         (aarch64_float_mls<mode>): Define.
8351         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
8352         instead of relying on GCC vector extensions.
8353         (vmla_f64): Likewise.
8354         (vmlaq_f32): Likewise.
8355         (vmlaq_f64): Likewise.
8356         (vmls_f32): Likewise.
8357         (vmls_f64): Likewise.
8358         (vmlsq_f32): Likewise.
8359         (vmlsq_f64): Likewise.
8360         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
8361
8362 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
8363
8364         * config/aarch64/aarch64-simd-builtins.def: Add
8365         float_ml[as]_n_builtin generator macros.
8366         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
8367         Rename to...
8368         (mul_n<mode>3): This, and re-order arguments.
8369         (aarch64_float_mla_n<mode>): Define.
8370         (aarch64_float_mls_n<mode>): Define.
8371         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
8372         instead of inline asm.
8373         (vmlaq_n_f32): Likewise.
8374         (vmls_n_f32): Likewise.
8375         (vmlsq_n_f32): Likewise.
8376
8377 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
8378
8379         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
8380         builtin generator macros.
8381         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
8382         (aarch64_pmull_hiv16qi_insn): Define.
8383         (aarch64_pmull_hiv16qi): Define.
8384         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
8385         instead of inline asm.
8386         (vmull_p8): Likewise.
8387
8388 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
8389
8390         * config/avr/avr.md: Adjust peepholes to match and
8391         generate parallels with clobber of REG_CC.
8392         (mov<mode>_insn): Rename to mov<mode>_insn_split.
8393         (*mov<mode>_insn): Rename to mov<mode>_insn.
8394
8395 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
8396
8397         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
8398         for VAR_DECLs if -fdata-sections enabled.
8399
8400 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
8401
8402         PR bootstrap/100327
8403         * config/rs6000/rs6000.c
8404         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
8405         (rs6000_libgcc_floating_mode_supported_p): New target hook.
8406
8407 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
8408
8409         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
8410         from here...
8411         (class back_threader_registry): ...to here...
8412         (class back_threader_profitability): ...and here...
8413         (thread_jumps::thread_through_all_blocks): Remove argument.
8414         (back_threader_registry::back_threader_registry): New.
8415         (back_threader_registry::~back_threader_registry): New.
8416         (back_threader_registry::thread_through_all_blocks): New.
8417         (thread_jumps::profitable_jump_thread_path): Move from here...
8418         (back_threader_profitability::profitable_path_p): ...to here.
8419         (thread_jumps::find_taken_edge): New.
8420         (thread_jumps::convert_and_register_current_path): Move...
8421         (back_threader_registry::register_path): ...to here.
8422         (thread_jumps::register_jump_thread_path_if_profitable): Move...
8423         (thread_jumps::maybe_register_path): ...to here.
8424         (thread_jumps::handle_phi): Call find_taken_edge and
8425         maybe_register_path.
8426         (thread_jumps::handle_assignment): Same.
8427         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
8428         tree argument to handle_phi and handle_assignment.
8429         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
8430         set of m_speed_p and m_max_threaded_paths.
8431         (pass_thread_jumps::execute): Remove second argument from
8432         find_jump_threads_backwards.
8433         (pass_early_thread_jumps::execute): Same.
8434
8435 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
8436
8437         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
8438         (class dom_opt_dom_walker): Initialize some class variables.
8439         (pass_dominator::execute): Pass evrp_range_analyzer and
8440         dom_jump_threader_simplifier to dom_opt_dom_walker.
8441         Adjust for some functions moving into classes.
8442         (simplify_stmt_for_jump_threading): Adjust and move to...
8443         (jump_threader_simplifier::simplify): ...here.
8444         (dom_opt_dom_walker::before_dom_children): Adjust for
8445         m_evrp_range_analyzer.
8446         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
8447         (test_for_singularity): Place in dom_opt_dom_walker class.
8448         (dom_opt_dom_walker::optimize_stmt): The argument
8449         evrp_range_analyzer is now a class field.
8450         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
8451         (thread_jumps::thread_through_all_blocks): New.
8452         (thread_jumps::convert_and_register_current_path): Use m_registry.
8453         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
8454         being in the threader class.
8455         (pass_early_thread_jumps::execute): Same.
8456         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
8457         (jump_threader::jump_threader): ...here.
8458         (threadedge_finalize_values): Move...
8459         (jump_threader::~jump_threader): ...here.
8460         (jump_threader::remove_jump_threads_including): New.
8461         (jump_threader::thread_through_all_blocks): New.
8462         (record_temporary_equivalences_from_phis): Move...
8463         (jump_threader::record_temporary_equivalences_from_phis): ...here.
8464         (record_temporary_equivalences_from_stmts_at_dest): Move...
8465         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
8466         Here...
8467         (simplify_control_stmt_condition_1): Move to jump_threader class.
8468         (simplify_control_stmt_condition): Move...
8469         (jump_threader::simplify_control_stmt_condition): ...here.
8470         (thread_around_empty_blocks): Move...
8471         (jump_threader::thread_around_empty_blocks): ...here.
8472         (thread_through_normal_block): Move...
8473         (jump_threader::thread_through_normal_block): ...here.
8474         (thread_across_edge): Move...
8475         (jump_threader::thread_across_edge): ...here.
8476         (thread_outgoing_edges): Move...
8477         (jump_threader::thread_outgoing_edges): ...here.
8478         * tree-ssa-threadedge.h: Move externally facing functings...
8479         (class jump_threader): ...here...
8480         (class jump_threader_simplifier): ...and here.
8481         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
8482         (jump_thread_path_allocator::jump_thread_path_allocator): New.
8483         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
8484         (jump_thread_path_allocator::allocate_thread_edge): New.
8485         (jump_thread_path_allocator::allocate_thread_path): New.
8486         (jump_thread_path_registry::jump_thread_path_registry): New.
8487         (jump_thread_path_registry::~jump_thread_path_registry): New.
8488         (jump_thread_path_registry::allocate_thread_edge): New.
8489         (jump_thread_path_registry::allocate_thread_path): New.
8490         (dump_jump_thread_path): Make extern.
8491         (debug (const vec<jump_thread_edge *> &path)): New.
8492         (struct removed_edges): Move to tree-ssa-threadupdate.h.
8493         (struct thread_stats_d): Remove.
8494         (remove_ctrl_stmt_and_useless_edges): Make static.
8495         (lookup_redirection_data): Move...
8496         (jump_thread_path_registry::lookup_redirection_data): ...here.
8497         (ssa_redirect_edges): Make static.
8498         (thread_block_1): Move...
8499         (jump_thread_path_registry::thread_block_1): ...here.
8500         (thread_block): Move...
8501         (jump_thread_path_registry::thread_block): ...here.
8502         (thread_through_loop_header):  Move...
8503         (jump_thread_path_registry::thread_through_loop_header): ...here.
8504         (mark_threaded_blocks): Move...
8505         (jump_thread_path_registry::mark_threaded_blocks): ...here.
8506         (debug_path): Move...
8507         (jump_thread_path_registry::debug_path): ...here.
8508         (debug_all_paths): Move...
8509         (jump_thread_path_registry::dump): ..here.
8510         (rewire_first_differing_edge): Move...
8511         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
8512         (adjust_paths_after_duplication): Move...
8513         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
8514         (duplicate_thread_path): Move...
8515         (jump_thread_path_registry::duplicate_thread_path): ..here.
8516         (remove_jump_threads_including): Move...
8517         (jump_thread_path_registry::remove_jump_threads_including): ...here.
8518         (thread_through_all_blocks): Move to...
8519         (jump_thread_path_registry::thread_through_all_blocks): ...here.
8520         (delete_jump_thread_path): Remove.
8521         (register_jump_thread): Move...
8522         (jump_thread_path_registry::register_jump_thread): ...here.
8523         * tree-ssa-threadupdate.h: Move externally facing functions...
8524         (class jump_thread_path_allocator): ...here...
8525         (class jump_thread_path_registry): ...and here.
8526         (thread_through_all_blocks): Remove.
8527         (struct removed_edges): New.
8528         (register_jump_thread): Remove.
8529         (remove_jump_threads_including): Remove.
8530         (delete_jump_thread_path): Remove.
8531         (remove_ctrl_stmt_and_useless_edges): Remove.
8532         (free_dom_edge_info): New prototype.
8533         * tree-vrp.c: Remove x_vr_values hack.
8534         (class vrp_jump_threader_simplifier): New.
8535         (vrp_jump_threader_simplifier::simplify): New.
8536         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
8537         Remove m_dummy_cond.
8538         Instantiate m_simplifier and m_threader.
8539         (vrp_jump_threader::thread_through_all_blocks): New.
8540         (vrp_jump_threader::simplify_stmt): Remove.
8541         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
8542         Remove x_vr_values hack.
8543         (execute_vrp): Adjust for thread_through_all_blocks being in a
8544         class.
8545
8546 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
8547
8548         * genflags.c (gen_insn): Print failed expansion string.
8549
8550 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
8551
8552         * expr.c (alignment_for_piecewise_move): Call mode_for_size
8553         without limit to MAX_FIXED_MODE_SIZE.
8554
8555 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
8556
8557         PR middle-end/90773
8558         * builtins.c (builtin_memset_gen_str): Don't use return from
8559         simplify_gen_subreg.
8560
8561 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
8562
8563         PR target/98060
8564         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
8565         (*addsi3_carry_zext_0r): Ditto.
8566         (*sub<mode>3_carry_0): Ditto.
8567         (*subsi3_carry_zext_0r): Ditto.
8568         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
8569         New predicate.
8570         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
8571         Also consider ix86_carry_flag_unset_operator to calculate
8572         the cost of adc/sbb insn.
8573
8574 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
8575
8576         PR rtl-optimization/100225
8577         PR rtl-optimization/84878
8578         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
8579         where we have an instruction which touches (writes) any hard
8580         register from df->regular_block_artificial_uses set.
8581         Allow not-single-set instruction only right before basic block
8582         tail.
8583
8584 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
8585
8586         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
8587
8588 2021-04-30  LevyHsu  <admin@levyhsu.com>
8589
8590         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
8591         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
8592         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
8593         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
8594
8595 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
8596
8597         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
8598
8599 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
8600
8601         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
8602         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
8603         * config/i386/i386.c: Adjust.
8604         * config/i386/i386.md: Adjust.
8605         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
8606         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8607         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8608         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8609         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8610         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8611         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8612         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8613         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8614         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8615         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
8616
8617 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
8618
8619         * config/i386/i386-expand.c (ix86_expand_int_compare):
8620         Swap operands of GTU and LEU comparison to emit carry flag comparison.
8621         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
8622         predicate to allow more combine opportunities with memory operands.
8623         (*sub<mode>3_carry_0): Ditto.
8624
8625 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8626
8627         PR rtl-optimization/100303
8628         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
8629         boolean that indicates whether the use will only be used in
8630         debug instructions.  Treat it in the same way that existing
8631         cross-EBB debug references would be handled if so.
8632         (function_info::make_uses_available): Likewise.
8633         * rtl-ssa/functions.h (function_info::make_uses_available): Update
8634         prototype accordingly.
8635         (function_info::make_uses_available): Likewise.
8636         * fwprop.c (try_fwprop_subst): Update call accordingly.
8637
8638 2021-04-29  Jeff Law  <jlaw@tachyum.com>
8639
8640         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
8641         of RTX_CODE guard.
8642
8643 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
8644             Richard Biener  <rguenther@suse.de>
8645
8646         PR target/100312
8647         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
8648         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
8649         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
8650         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
8651         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
8652         to PURE_ARGS category.
8653         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
8654         Handle PURE_ARGS category.
8655         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
8656
8657 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
8658
8659         * configure.ac: Check for the presence of sys/locking.h header and
8660         for whether _LK_LOCK is supported by _locking.
8661         * configure: Regenerate.
8662         * config.in: Likewise.
8663         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
8664         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
8665         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
8666
8667 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
8668
8669         * config/i386/predicates.md (fcmov_comparison_operator):
8670         Do not check for trivial FP comparison operator.
8671         <case GEU, case LTU>: Allow CCGZmode.
8672         <case GTU, case LEU>: Do not allow CCCmode.
8673         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
8674         (ix86_carry_flag_operator): Match only LTU and UNLT code.
8675         Do not check for trivial FP comparison operator.  Allow CCGZmode.
8676
8677 2021-04-29  Tom de Vries  <tdevries@suse.de>
8678
8679         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
8680         fd->loop.step by either step or orig_step.
8681
8682 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
8683
8684         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
8685         (load_got_register): Do the PIC dance here.
8686         (sparc_legitimize_tls_address): Simplify.
8687         (sparc_emit_probe_stack_range): Likewise.
8688         (sparc32_initialize_trampoline): Likewise.
8689         (sparc64_initialize_trampoline): Likewise.
8690         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
8691         (probe_stack_range<P:mode>): Likewise.
8692         (flush<P:mode>): Likewise.
8693         (tgd_hi22<P:mode>): Likewise.
8694         (tgd_lo10<P:mode>): Likewise.
8695         (tgd_add<P:mode>): Likewise.
8696         (tgd_call<P:mode>): Likewise.
8697         (tldm_hi22<P:mode>): Likewise.
8698         (tldm_lo10<P:mode>): Likewise.
8699         (tldm_add<P:mode>): Likewise.
8700         (tldm_call<P:mode>): Likewise.
8701         (tldo_hix22<P:mode>): Likewise.
8702         (tldo_lox10<P:mode>): Likewise.
8703         (tldo_add<P:mode>): Likewise.
8704         (tie_hi22<P:mode>): Likewise.
8705         (tie_lo10<P:mode>): Likewise.
8706         (tie_add<P:mode>): Likewise.
8707         (tle_hix22<P:mode>): Likewise.
8708         (tle_lox10<P:mode>): Likewise.
8709         (stack_protect_setsi): Rename to...
8710         (stack_protect_set32): ...this.
8711         (stack_protect_setdi): Rename to...
8712         (stack_protect_set64): ...this.
8713         (stack_protect_set): Adjust calls to above.
8714         (stack_protect_testsi): Rename to...
8715         (stack_protect_test32): ...this.
8716         (stack_protect_testdi): Rename to...
8717         (stack_protect_test64): ...this.
8718         (stack_protect_test): Adjust calls to above.
8719
8720 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
8721
8722         PR middle-end/90773
8723         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
8724         (builtin_strncpy_read_str): Likewise.
8725         (builtin_memset_read_str): Add an argument for the previous RTL
8726         information and generate the new RTL from the previous RTL info.
8727         (builtin_memset_gen_str): Likewise.
8728         * builtins.h (builtin_strncpy_read_str): Update the prototype.
8729         (builtin_memset_read_str): Likewise.
8730         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
8731         returns true, round up size and alignment to the widest integer
8732         mode for maximum size.
8733         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
8734         and pass it to m_constfn.
8735         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
8736         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
8737         initialize m_push.  Initialize m_overlap_op_by_pieces with
8738         targetm.overlap_op_by_pieces_p ().
8739         (op_by_pieces_d::run): Pass the previous RTL information to
8740         pieces_addr::adjust and generate overlapping operations if
8741         m_overlap_op_by_pieces is true.
8742         (PUSHG_P): New.
8743         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
8744         change.
8745         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
8746         change.
8747         (can_store_by_pieces): Use by_pieces_constfn on constfun.
8748         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
8749         for op_by_pieces_d change.
8750         (clear_by_pieces_1): Add a dummy argument.
8751         (clear_by_pieces): Updated for op_by_pieces_d change.
8752         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
8753         (string_cst_read_str): Add a dummy argument.
8754         * expr.h (by_pieces_constfn): Add a dummy argument.
8755         (by_pieces_prev): New.
8756         * target.def (overlap_op_by_pieces_p): New target hook.
8757         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
8758         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
8759         * doc/tm.texi: Regenerated.
8760
8761 2021-04-29  Richard Biener  <rguenther@suse.de>
8762
8763         PR tree-optimization/100253
8764         * tree-vect-stmts.c (vectorizable_load): Do not assume
8765         element alignment when DR_MISALIGNMENT is -1.
8766         (vectorizable_store): Likewise.
8767
8768 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
8769
8770         PR target/100302
8771         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
8772         absu_hwi instead of abs_hwi.
8773
8774 2021-04-29  Richard Biener  <rguenther@suse.de>
8775
8776         PR middle-end/38474
8777         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
8778         forwarding when indirect forwarding through ESCAPED
8779         alread happens.
8780
8781 2021-04-29  Tom de Vries  <tdevries@suse.de>
8782
8783         PR target/100232
8784         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
8785         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
8786         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
8787         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
8788
8789 2021-04-29  Richard Biener  <rguenther@suse.de>
8790
8791         PR tree-optimization/99912
8792         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
8793         (dse_dom_walker::todo): Likewise.
8794         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
8795         caller.
8796         (dse_dom_walker::before_dom_children): Remove trivially
8797         dead SSA defs and schedule CFG cleanup if we removed all
8798         PHIs in a block.
8799         (pass_dse::execute): Get TODO as computed by the DOM walker
8800         and return it.  Wipe dominator info earlier.
8801
8802 2021-04-29  Richard Biener  <rguenther@suse.de>
8803
8804         PR ipa/100308
8805         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
8806         Track blocks to cleanup EH in new m_need_eh_cleanup.
8807         (ipcp_modif_dom_walker::cleanup_eh): New.
8808         (ipcp_transform_function): Release dominator info before
8809         doing EH cleanup.
8810
8811 2021-04-29  Martin Sebor  <msebor@redhat.com>
8812
8813         PR middle-end/100250
8814         * attribs.c (attr_access::array_as_string): Avoid dereferencing
8815         a pointer when it's null.
8816
8817 2021-04-29  Martin Sebor  <msebor@redhat.com>
8818
8819         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
8820         * ipa-free-lang-data.cc: New file.
8821         * tree.c: Move pass free_lang_data to file above.
8822          (build_array_type_1): Declare extern.
8823         * tree.h (build_array_type_1): Declare.
8824
8825 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8826
8827         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
8828         make consistent with updated RTL pattern.
8829         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
8830         Implement using ss_truncate and us_truncate rather than
8831         unspecs.
8832         * config/aarch64/iterators.md: Remove redundant unspecs and
8833         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
8834
8835 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8836
8837         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
8838         attributes consistent with those defined in arm_neon.h.
8839
8840 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8841
8842         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
8843         attributes consistent with those defined in arm_neon.h.
8844
8845 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8846
8847         * config/aarch64/aarch64-simd-builtins.def: Add
8848         float_trunc_rodd builtin generator macros.
8849         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
8850         Define.
8851         (aarch64_float_trunc_rodd_lo_v2sf): Define.
8852         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
8853         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
8854         (aarch64_float_trunc_rodd_hi_v4sf): Define.
8855         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
8856         instead of inline asm.
8857         (vcvtx_high_f32_f64): Likewise.
8858         (vcvtxd_f32_f64): Likewise.
8859         * config/aarch64/iterators.md: Add FCVTXN unspec.
8860
8861 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8862
8863         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
8864         generator macros.
8865         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
8866         Define.
8867         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
8868         instead of inline asm.
8869         (vqtbx1_u8): Likewise.
8870         (vqtbx1_p8): Likewise.
8871         (vqtbx1q_s8): Likewise.
8872         (vqtbx1q_u8): Likewise.
8873         (vqtbx1q_p8): Likewise.
8874         (vtbx2_s8): Likewise.
8875         (vtbx2_u8): Likewise.
8876         (vtbx2_p8): Likewise.
8877
8878 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8879
8880         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
8881         generator macros.
8882         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
8883         instead of inline asm.
8884         (vqtbl1_s8): Likewise.
8885         (vqtbl1_u8): Likewise.
8886         (vqtbl1q_p8): Likewise.
8887         (vqtbl1q_s8): Likewise.
8888         (vqtbl1q_u8): Likewise.
8889         (vtbl1_s8): Likewise.
8890         (vtbl1_u8): Likewise.
8891         (vtbl1_p8): Likewise.
8892         (vtbl2_s8): Likewise.
8893         (vtbl2_u8): Likewise.
8894         (vtbl2_p8): Likewise.
8895
8896 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8897
8898         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
8899         ssri_n buitin generator macro.
8900         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
8901         instead of inline asm.
8902         (vsri_n_p16): Likewise.
8903         (vsri_n_p64): Likewise.
8904         (vsriq_n_p8): Likewise.
8905         (vsriq_n_p16): Likewise.
8906         (vsriq_n_p64): Likewise.
8907
8908 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8909
8910         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
8911         iterator for polynomial ssli_n builtin generator macro.
8912         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
8913         instead of inline asm.
8914         (vsli_n_p16): Likewise.
8915         (vsliq_n_p8): Likewise.
8916         (vsliq_n_p16): Likewise.
8917         * config/aarch64/iterators.md: Define VALLP mode iterator.
8918
8919 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8920
8921         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
8922         iterator to generate [su]adalp RTL builtins.
8923         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
8924         [su]adalp RTL pattern.
8925         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
8926         instead of inline asm.
8927         (vpadal_u32): Likewise.
8928
8929 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8930
8931         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
8932         builtin generator macros.
8933         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
8934         Define.
8935         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
8936         instead of inline asm.
8937         (vpaddl_s16): Likewise.
8938         (vpaddl_s32): Likewise.
8939         (vpaddl_u8): Likewise.
8940         (vpaddl_u16): Likewise.
8941         (vpaddl_u32): Likewise.
8942         (vpaddlq_s8): Likewise.
8943         (vpaddlq_s16): Likewise.
8944         (vpaddlq_s32): Likewise.
8945         (vpaddlq_u8): Likewise.
8946         (vpaddlq_u16): Likewise.
8947         (vpaddlq_u32): Liwewise.
8948         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
8949         appropriate attributes.
8950
8951 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8952
8953         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
8954         for aarch64_addp<mode> builtin macro generator.
8955         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
8956         aarch64_addp<mode> RTL pattern.
8957         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
8958         instead of inline asm.
8959         (vpaddq_s16): Likewise.
8960         (vpaddq_s32): Likewise.
8961         (vpaddq_s64): Likewise.
8962         (vpaddq_u8): Likewise.
8963         (vpaddq_u16): Likewise.
8964         (vpaddq_u32): Likewise.
8965         (vpaddq_u64): Likewise.
8966
8967 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8968
8969         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
8970         builtin generator macros.
8971         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
8972         Define.
8973         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
8974         instead of inline asm.
8975         (vqdmulh_n_s32): Likewise.
8976         (vqdmulhq_n_s16): Likewise.
8977         (vqdmulhq_n_s32): Likewise.
8978         (vqrdmulh_n_s16): Likewise.
8979         (vqrdmulh_n_s32): Likewise.
8980         (vqrdmulhq_n_s16): Likewise.
8981         (vqrdmulhq_n_s32): Likewise.
8982
8983 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
8984
8985         * doc/install.texi (--enable-offload-defaulted): Document.
8986
8987 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
8988
8989         * config/avr/avr-dimode.md: Turn existing patterns into
8990         define_insn_and_split style patterns where the splitter
8991         adds a clobber of the condition code register.  Drop "cc"
8992         attribute.  Add new patterns to match output of
8993         the splitters.
8994         * config/avr/avr-fixed.md: Likewise.
8995         * config/avr/avr.c (cc_reg_rtx): New.
8996         (avr_parallel_insn_from_insns): Adjust insn count
8997         for removal of set of cc0.
8998         (avr_is_casesi_sequence): Likewise.
8999         (avr_casei_sequence_check_operands): Likewise.
9000         (avr_optimize_casesi): Likewise. Also insert
9001         new insns after jump_insn.
9002         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
9003         for removal of set of cc0.
9004         (avr_init_expanders): Initialize cc_reg_rtx.
9005         (avr_regno_reg_class): Handle REG_CC.
9006         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
9007         (avr_notice_update_cc): Remove function.
9008         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
9009         (compare_condition): Adjust for PARALLEL with
9010         REG_CC clobber.
9011         (out_shift_with_cnt): Likewise.
9012         (ashlhi3_out): Likewise.
9013         (ashrhi3_out): Likewise.
9014         (lshrhi3_out): Likewise.
9015         (avr_class_max_nregs): Return single reg for REG_CC.
9016         (avr_compare_pattern): Check for REG_CC instead
9017         of cc0_rtx.
9018         (avr_reorg_remove_redundant_compare): Likewise.
9019         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
9020         (avr_hard_regno_nregs): Return single reg for REG_CC.
9021         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
9022         (avr_md_asm_adjust): Clobber REG_CC.
9023         (TARGET_HARD_REGNO_NREGS): Define.
9024         (TARGET_CLASS_MAX_NREGS): Define.
9025         (TARGET_MD_ASM_ADJUST): Define.
9026         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
9027         for REG_CC.
9028         (enum reg_class): Add CC_REG class.
9029         (NOTICE_UPDATE_CC): Remove.
9030         (CC_OVERFLOW_UNUSABLE): Remove.
9031         (CC_NO_CARRY): Remove.
9032         * config/avr/avr.md: Turn existing patterns into
9033         define_insn_and_split style patterns where the splitter
9034         adds a clobber of the condition code register.  Drop "cc"
9035         attribute.  Add new patterns to match output of
9036         the splitters.
9037         (sez): Remove unused pattern.
9038
9039 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
9040
9041         PR target/100311
9042         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
9043         used in HImode.
9044
9045 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
9046
9047         PR target/100305
9048         * config/aarch64/constraints.md (Utq): Require the address to
9049         be valid for both the element mode and for V2DImode.
9050
9051 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
9052             Tobias Burnus  <tobias@codesourcery.com>
9053
9054         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
9055         * gcc.c (process_command): New variable.
9056         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
9057         set it if -foffload is defaulted.
9058         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
9059         (compile_offload_image): If OFFLOAD_DEFAULTED and
9060         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
9061         if corresponding mkoffload can't be found.
9062         (compile_images_for_offload_targets): Likewise.  Free and clear
9063         offload_names if no valid offload is found.
9064         * config.in: Regenerate.
9065         * configure: Regenerate.
9066
9067 2021-04-28  Richard Biener  <rguenther@suse.de>
9068
9069         PR tree-optimization/100292
9070         * tree-vect-generic.c (expand_vector_condition): Do not fold
9071         the comparisons.
9072
9073 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
9074
9075         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
9076         * config/rs6000/aix64.opt (m64): New.
9077         (m32): New.
9078
9079 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
9080
9081         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
9082         (index_term_p): Handle ASHIFT too.
9083
9084 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
9085
9086         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
9087         (sync_lock_test_and_set<mode>): Adjust accordingly.
9088         (sync_lock_release<mode>): Likewise.
9089
9090 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
9091
9092         * config/vax/vax-protos.h (adjacent_operands_p): Remove
9093         prototype.
9094         * config/vax/vax.c (adjacent_operands_p): Remove.
9095
9096 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
9097
9098         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
9099         through to the non-conditional execution case if getting the
9100         condition for conditional execution has failed.
9101
9102 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9103
9104         PR middle-end/100284
9105         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
9106         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
9107         than asserting on it.
9108
9109 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
9110
9111         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
9112         with TARGET_AIX_OS.
9113
9114 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
9115
9116         PR target/94177
9117         * calls.c (precompute_register_parameters): Additionally test
9118         targetm.precompute_tls_p to pre-compute argument.
9119         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
9120         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
9121         * target.def (precompute_tls_p): New.
9122         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
9123         * doc/tm.texi: Regenerated.
9124
9125 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9126
9127         PR target/100200
9128         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
9129         back to HOST_WIDE_INT.
9130
9131 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9132
9133         PR target/100106
9134         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
9135         memory alignment for the outer mode.
9136
9137 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
9138
9139         PR middle-end/90773
9140         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
9141         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
9142
9143 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
9144
9145         PR target/99977
9146         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
9147         with negative immediates: ensure we expand cbranchsi4_scratch
9148         correctly and ensure we satisfy its constraints.
9149         * config/arm/sync.md
9150         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
9151         attempt to tie two output operands together with constraints;
9152         collapse two alternatives.
9153         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
9154         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
9155
9156 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9157
9158         PR target/100200
9159         * config/aarch64/predicates.md (aarch64_sub_immediate,
9160         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
9161         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
9162         * config/aarch64/aarch64.c (aarch64_print_operand,
9163         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
9164
9165 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9166
9167         PR tree-optimization/100239
9168         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
9169         permutations with all indices from the first zero element as vec_shl.
9170
9171 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9172
9173         PR rtl-optimization/100254
9174         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
9175         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
9176
9177 2021-04-27  Richard Biener  <rguenther@suse.de>
9178
9179         PR tree-optimization/99912
9180         * passes.def: Add comment about new TODO_remove_unused_locals.
9181         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
9182         at start.
9183
9184 2021-04-27  Richard Biener  <rguenther@suse.de>
9185
9186         PR tree-optimization/99912
9187         * passes.def (pass_all_optimizations): Add pass_dse before
9188         the first pass_dce, move the first pass_dse before the
9189         pass_dce following pass_pre.
9190
9191 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9192
9193         PR tree-optimization/95527
9194         * generic-match-head.c: Include tm.h.
9195         * gimple-match-head.c: Include tm.h.
9196         * match.pd (CLZ == INTEGER_CST): Don't use
9197         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
9198         if clz == CFN_CLZ.  Add missing val declaration.
9199         (CTZ cmp CST): New simplifications.
9200
9201 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9202
9203         PR tree-optimization/96696
9204         * expr.c (expand_expr_divmod): New function.
9205         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
9206         divisions.  Formatting fixes.
9207         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
9208         cheaper.
9209
9210 2021-04-27  Martin Jambor  <mjambor@suse.cz>
9211
9212         PR ipa/99951
9213         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
9214         If removing a call statement LHS SSA name, release it.
9215
9216 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
9217
9218         PR target/100236
9219         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
9220         is valid before including it in the mask.
9221
9222 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9223
9224         PR target/100270
9225         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
9226         SVE attributes.
9227
9228 2021-04-27  Richard Biener  <rguenther@suse.de>
9229
9230         PR tree-optimization/100051
9231         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
9232         disambiguator based on access size vs. decl size.
9233
9234 2021-04-27  Richard Biener  <rguenther@suse.de>
9235
9236         PR tree-optimization/100278
9237         * tree-ssa-pre.c (compute_avail): Give up when we cannot
9238         adjust TBAA beacuse of mismatching bases.
9239
9240 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
9241
9242         PR target/99405
9243         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
9244         For any_rotate define_insn_split and following splitters, use
9245         SWI iterator instead of SWI48.
9246
9247 2021-04-27  Richard Biener  <rguenther@suse.de>
9248
9249         PR tree-optimization/99776
9250         * match.pd (bit_field_ref (ctor)): Relax element extract
9251         type compatibility checks.
9252
9253 2021-04-27  Cui,Lili  <lili.cui@intel.com>
9254
9255         * common/config/i386/i386-common.c (processor_names):
9256         Sync processor_names with processor_type.
9257         * config/i386/i386-options.c (processor_cost_table):
9258         Sync processor_cost_table with processor_type.
9259
9260 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
9261
9262         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
9263         (irange::set): Call irange_set_1bit_anti_range for handling all
9264         1-bit ranges.  Fall through on ~[MIN,MAX].
9265
9266 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
9267
9268         * value-range.cc (irange::legacy_num_pairs): Remove.
9269         (irange::invert): Change gcc_assert to gcc_checking_assert.
9270         * value-range.h (irange::num_pairs): Adjust for a cached
9271         num_pairs().  Also, rename all gcc_assert's to
9272         gcc_checking_assert's.
9273
9274 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
9275
9276         * value-range.cc (irange::operator=): Set m_kind.
9277         (irange::copy_to_legacy): Handle varying and undefined sources
9278         as a legacy copy since they can be easily copied.
9279         (irange::irange_set): Set m_kind.
9280         (irange::irange_set_anti_range): Same.
9281         (irange::set): Rename normalize_min_max to normalize_kind.
9282         (irange::verify_range): Adjust for multi-ranges having the
9283         m_kind field set.
9284         (irange::irange_union): Set m_kind.
9285         (irange::irange_intersect): Same.
9286         (irange::invert): Same.
9287         * value-range.h (irange::kind): Always return m_kind.
9288         (irange::varying_p): Rename to...
9289         (irange::varying_comptaible_p): ...this.
9290         (irange::undefined_p): Only look at m_kind.
9291         (irange::irange): Always set VR_UNDEFINED if applicable.
9292         (irange::set_undefined): Always set VR_UNDEFINED.
9293         (irange::set_varying): Always set m_kind to VR_VARYING.
9294         (irange::normalize_min_max): Rename to...
9295         (irange::normalize_kind): ...this.
9296
9297 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
9298
9299         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
9300         Adjust for constant_p including varying_p.
9301         * tree-vrp.c (vrp_prop::finalize): Same.
9302         (determine_value_range): Same.
9303         * vr-values.c (vr_values::range_of_expr): Same.
9304         * value-range.cc (irange::symbolic_p): Do not check varying_p.
9305         (irange::constant_p): Same.
9306
9307 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
9308
9309         * value-range.cc (irange::legacy_lower_bound): Replace
9310           !undefined_p check with num_ranges > 0.
9311         (irange::legacy_upper_bound): Same.
9312         * value-range.h (irange::type): Same.
9313         (irange::lower_bound): Same.
9314         (irange::upper_bound): Same.
9315
9316 2021-04-26  Richard Biener  <rguenther@suse.de>
9317
9318         PR tree-optimization/99956
9319         * gimple-loop-interchange.cc (compute_access_stride):
9320         Try instantiating the access in a shallower loop nest
9321         if instantiating failed.
9322         (compute_access_strides): Pass adjustable loop_nest
9323         to compute_access_stride.
9324
9325 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
9326
9327         * doc/sourcebuild.texi (arm_cmse_hw): Document.
9328
9329 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9330
9331         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
9332
9333 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
9334             Nathan Sidwell  <nathan@codesourcery.com>
9335             Tom de Vries  <vries@codesourcery.com>
9336             Julian Brown  <julian@codesourcery.com>
9337             Kwok Cheung Yeung  <kcy@codesourcery.com>
9338
9339         * omp-offload.c (oacc_validate_dims): Implement
9340         '-Wopenacc-parallelism'.
9341         * doc/invoke.texi (-Wopenacc-parallelism): Document.
9342
9343 2021-04-26  Richard Biener  <rguenther@suse.de>
9344
9345         * tree-cfg.h (gimplify_build1): Remove.
9346         (gimplify_build2): Likewise.
9347         (gimplify_build3): Likewise.
9348         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
9349         (gimplify_build2): Likewise.
9350         (gimplify_build3): Likewise.
9351         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
9352         Modernize.
9353         (gimplify_build2): Likewise.
9354         (gimplify_build3): Likewise.
9355         (tree_vec_extract): Use resimplify with following SSA edges.
9356         (expand_vector_parallel): Avoid passing NULL size/bitpos
9357         to tree_vec_extract.
9358         * expr.c (store_constructor): Deal with zero-element CTORs.
9359         * match.pd (bit_field_ref <vector CTOR>): Make sure to
9360         produce vector constants when possible.
9361
9362 2021-04-26  Richard Biener  <rguenther@suse.de>
9363
9364         * tree-complex.c: Include gimple-fold.h.
9365         (expand_complex_addition): Use gimple_build.
9366         (expand_complex_multiplication_components): Likewise.
9367         (expand_complex_multiplication): Likewise.
9368         (expand_complex_div_straight): Likewise.
9369         (expand_complex_div_wide): Likewise.
9370         (expand_complex_division): Likewise.
9371         (expand_complex_conjugate): Likewise.
9372         (expand_complex_comparison): Likewise.
9373
9374 2021-04-26  Richard Biener  <rguenther@suse.de>
9375
9376         * tree-ssa-phiopt.c (two_value_replacement): Remove use
9377         of legacy gimplify_buildN API.
9378
9379 2021-04-26  Richard Biener  <rguenther@suse.de>
9380
9381         PR tree-optimization/99473
9382         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
9383         stores.
9384
9385 2021-04-26  Richard Biener  <rguenther@suse.de>
9386
9387         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
9388         Use replace_call_with_value.
9389
9390 2021-04-26  Richard Biener  <rguenther@suse.de>
9391
9392         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
9393         (update_gimple_call): Likewise.
9394         (update_call_from_tree): Likewise.
9395         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
9396         (valid_gimple_call_p): Likewise.
9397         (move_ssa_defining_stmt_for_defs): Likewise.
9398         (finish_update_gimple_call): Likewise.
9399         (update_gimple_call): Likewise.
9400         (update_call_from_tree): Likewise.
9401         (propagate_tree_value_into_stmt): Use replace_call_with_value.
9402         * gimple-fold.h (update_gimple_call): Declare.
9403         * gimple-fold.c (valid_gimple_rhs_p): Move here from
9404         tree-ssa-propagate.c.
9405         (update_gimple_call): Likewise.
9406         (valid_gimple_call_p): Likewise.
9407         (finish_update_gimple_call): Likewise, and simplify.
9408         (gimplify_and_update_call_from_tree): Implement
9409         update_call_from_tree functionality, avoid excessive
9410         push/pop_gimplify_context.
9411         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
9412         (gimple_fold_call): Likewise.
9413         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
9414         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
9415         (pass_fold_builtins::execute): Likewise.
9416         (optimize_stack_restore): Use replace_call_with_value.
9417         * tree-cfg.c (fold_loop_internal_call): Likewise.
9418         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
9419         only gimplify_and_update_call_from_tree.
9420         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
9421         (handle_builtin_strchr): Likewise.
9422         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
9423
9424 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
9425
9426         PR debug/100255
9427         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
9428         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
9429         register keywords.
9430
9431 2021-04-25  liuhongt  <hongtao.liu@intel.com>
9432
9433         PR target/98911
9434         * config/i386/i386-builtin.def (BDESC): Change the icode of
9435         the following builtins to CODE_FOR_nothing.
9436         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
9437         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
9438         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
9439         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
9440         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
9441         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
9442         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
9443         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
9444         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
9445         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
9446         (sse2_eq<mode>3): Ditto.
9447         (sse4_1_eqv2di3): Ditto.
9448         (sse2_gt<mode>3): Rename to ..
9449         (*sse2_gt<mode>3): .. this.
9450
9451 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
9452
9453         Revert:
9454         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
9455
9456         PR target/100152
9457         * config/darwin.c (darwin_binds_local_p): Assume that any
9458         public symbol might be interposed for PIC code. Update function
9459         header comment to reflect current Darwin capability.
9460
9461 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
9462
9463         PR target/100152
9464         * config/darwin.c (darwin_binds_local_p): Assume that any
9465         public symbol might be interposed for PIC code. Update function
9466         header comment to reflect current Darwin capability.
9467
9468 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
9469
9470         * doc/sourcebuild.texi: Document no-opts and any-opts target
9471         selectors.
9472
9473 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
9474
9475         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
9476
9477 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
9478
9479         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
9480
9481 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
9482
9483         PR target/100041
9484         * config/i386/i386-options.c (ix86_option_override_internal):
9485         Error out when -m96bit-long-double is used with 64bit targets.
9486         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
9487
9488 2021-04-23  Martin Liska  <mliska@suse.cz>
9489
9490         * lto-wrapper.c: Remove FIXME about usage of
9491         hardware_concurrency. The function is not on par with
9492         what we have now.
9493
9494 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
9495
9496         PR target/100182
9497         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
9498         Copy operand 3 to operand 4.  Use sse_reg_operand
9499         as operand 3 predicate.
9500         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
9501         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
9502         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
9503         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
9504         Copy operand 1 to operand 0.
9505         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
9506         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
9507         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
9508
9509 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
9510
9511         PR rtl-optimization/100230
9512         * early-remat.c (early_remat::sort_candidates): Use delete[]
9513         instead of delete for array allocated with new[].
9514
9515 2021-04-23  Richard Biener  <rguenther@suse.de>
9516
9517         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
9518         (capture_info::capture_info): Likewise.
9519         (capture_info::walk_match): Likewise.
9520         (expr::gen_transform): Likewise.
9521         (dt_simplify::gen_1): Likewise.
9522         * gimple-match-head.c (maybe_resimplify_conditional_op):
9523         Remove VEC_COND_EXPR special-casing.
9524         (gimple_simplify): Likewise.
9525         * gimple.c (gimple_could_trap_p_1): Adjust.
9526         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
9527         to participate in PRE.
9528
9529 2021-04-23  Richard Biener  <rguenther@suse.de>
9530
9531         * cfganal.c (connect_infinite_loops_to_exit): First call
9532         add_noreturn_fake_exit_edges.
9533         * ipa-sra.c (process_scan_results): Do not call the now redundant
9534         add_noreturn_fake_exit_edges.
9535         * predict.c (tree_estimate_probability): Likewise.
9536         (rebuild_frequencies): Likewise.
9537         * store-motion.c (one_store_motion_pass): Likewise.
9538
9539 2021-04-23  Richard Biener  <rguenther@suse.de>
9540
9541         PR tree-optimization/100222
9542         * predict.c (pass_profile::execute): Remove redundant call to
9543         mark_irreducible_loops.
9544         (report_predictor_hitrates): Likewise.
9545
9546 2021-04-23  Richard Biener  <rguenther@suse.de>
9547
9548         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
9549         valid_gimple_rhs_p by instead gimplifying to one.
9550
9551 2021-04-23  Richard Biener  <rguenther@suse.de>
9552
9553         PR tree-optimization/99971
9554         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
9555         Always use TBAA for loads.
9556
9557 2021-04-23  liuhongt  <hongtao.liu@intel.com>
9558
9559         PR target/100093
9560         * config/i386/i386-options.c (ix86_option_override_internal):
9561         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
9562         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
9563         by target attribute.
9564
9565 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
9566
9567         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
9568         DWARF2_DEBUG.
9569         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
9570
9571 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
9572
9573         * config.gcc (powerpc-ibm-aix6.*): Remove.
9574         * config/rs6000/aix61.h: Delete.
9575
9576 2021-04-22  Martin Liska  <mliska@suse.cz>
9577
9578         PR testsuite/100159
9579         PR testsuite/100192
9580         * builtins.c (expand_builtin): Fix typos and missing comments.
9581         * dwarf2out.c (gen_subprogram_die): Likewise.
9582         (gen_struct_or_union_type_die): Likewise.
9583
9584 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
9585
9586         PR target/100119
9587         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
9588         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
9589
9590 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
9591
9592         * config/i386/darwin.h (TARGET_64BIT): Remove definition
9593         based on TARGET_ISA_64BIT.
9594         (TARGET_64BIT_P): Remove definition based on
9595         TARGET_ISA_64BIT_P().
9596
9597 2021-04-21  Martin Liska  <mliska@suse.cz>
9598
9599         Revert:
9600         2021-04-21  Martin Liska  <mliska@suse.cz>
9601
9602         * lto-wrapper.c (cpuset_popcount): Remove.
9603         (init_num_threads): Remove and use hardware_concurrency.
9604
9605 2021-04-21  Martin Liska  <mliska@suse.cz>
9606
9607         PR jit/98615
9608         * main.c (main): Call toplev::finalize in CHECKING_P mode.
9609         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
9610         when incremental LTO linking happens.
9611
9612 2021-04-21  Martin Liska  <mliska@suse.cz>
9613
9614         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
9615         makeserver cannot be detected, then use -flto=N fallback.
9616
9617 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
9618
9619         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
9620         default to yes for aarch64-linux-gnu.
9621         * configure: Regenerate.
9622
9623 2021-04-21  Martin Liska  <mliska@suse.cz>
9624
9625         * lto-wrapper.c (cpuset_popcount): Remove.
9626         (init_num_threads): Remove and use hardware_concurrency.
9627
9628 2021-04-21  Martin Liska  <mliska@suse.cz>
9629
9630         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
9631         which remains to be '(... || 0)' and clang complains about it.
9632         * dwarf2out.c (AT_vms_delta): Declare conditionally.
9633         (add_AT_vms_delta): Likewise.
9634         * tree.c (fld_simplified_type): Use rather more common pattern
9635         for disabling of something (#if 0).
9636         (get_tree_code_name): Likewise.
9637         (verify_type_variant): Likewise.
9638
9639 2021-04-21  Martin Liska  <mliska@suse.cz>
9640
9641         * config/i386/i386-expand.c (decide_alignment): Use newly named
9642         macro TARGET_CPU_P.
9643         * config/i386/i386.c (ix86_decompose_address): Likewise.
9644         (ix86_address_cost): Likewise.
9645         (ix86_lea_outperforms): Likewise.
9646         (ix86_avoid_lea_for_addr): Likewise.
9647         (ix86_add_stmt_cost): Likewise.
9648         * config/i386/i386.h (TARGET_*): Remove.
9649         (TARGET_CPU_P): New macro.
9650         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
9651         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
9652         (swap_top_of_ready_list): Likewise.
9653         (ix86_atom_sched_reorder): Likewise.
9654         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
9655         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
9656
9657 2021-04-21  Martin Liska  <mliska@suse.cz>
9658
9659         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
9660         Define.
9661         (SET_TARGET_NO_SAHF): Likewise.
9662         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
9663         (SET_TARGET_PREFETCH_SSE): Likewise.
9664         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
9665         (SET_TARGET_NO_TUNE): Likewise.
9666         (TARGET_EXPLICIT_NO_80387_P): Likewise.
9667         (SET_TARGET_NO_80387): Likewise.
9668         (DEF_PTA): New.
9669         * config/i386/i386.h (TARGET_*): Remove.
9670         * opth-gen.awk: Generate new used macros.
9671
9672 2021-04-21  Martin Liska  <mliska@suse.cz>
9673
9674         * config/i386/i386.h (PTA_*): Remove.
9675         (enum pta_flag): New.
9676         (DEF_PTA): Generate PTA_* values from i386-isa.def.
9677         * config/i386/i386-isa.def: New file.
9678
9679 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
9680
9681         PR target/99988
9682         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
9683         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
9684         jump table targets.
9685
9686 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
9687
9688         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
9689         x86_64-*-* targets.
9690         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
9691         New.
9692         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
9693         (ix86_handle_option): Handle -mmwait.
9694         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
9695         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
9696         __builtin_ia32_monitor and __builtin_ia32_mwait.
9697         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
9698         (ix86_valid_target_attribute_inner_p): Likewise.
9699         (ix86_option_override_internal): Enable mwait/monitor
9700         instructions for -msse3.
9701         * config/i386/i386.h (TARGET_MWAIT): New.
9702         (TARGET_MWAIT_P): Likewise.
9703         * config/i386/i386.opt: Add -mmwait.
9704         * config/i386/mwaitintrin.h: New file.
9705         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
9706         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
9707         TARGET_MWAIT.
9708         (@sse3_monitor_<mode>): Likewise.
9709         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
9710         * doc/extend.texi: Document mwait target attribute.
9711         * doc/invoke.texi: Document -mmwait.
9712
9713 2021-04-21  Martin Liska  <mliska@suse.cz>
9714
9715         * config/i386/i386-options.c (DEF_ENUM): Remove it.
9716         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
9717         * config/i386/stringop.def (DEF_ENUM): Likewise.
9718
9719 2021-04-21  Martin Liska  <mliska@suse.cz>
9720
9721         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
9722         of print_generic_expr.
9723
9724 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
9725
9726         PR rtl-optimization/100148
9727         * cprop.c (constprop_register): Use next_nondebug_insn instead of
9728         NEXT_INSN.
9729
9730 2021-04-21  Martin Liska  <mliska@suse.cz>
9731
9732         PR ipa/98815
9733         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
9734         free_dominance_info calls.
9735
9736 2021-04-21  Richard Biener  <rguenther@suse.de>
9737
9738         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
9739         parameter (and assume it to be false).
9740         (fold_gimple_assign): Adjust, remove all callers of
9741         maybe_fold_reference calling it with is_lhs true.
9742         (gimple_fold_call): Likewise.
9743         (fold_stmt_1): Likewise.
9744
9745 2021-04-21  Richard Biener  <rguenther@suse.de>
9746
9747         * fold-const.c (pedantic_non_lvalue_loc): Remove.
9748         (fold_binary_loc): Adjust.
9749         (fold_ternary_loc): Likewise.
9750
9751 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
9752
9753         PR middle-end/100130
9754         * varasm.c (get_block_for_decl): Make sure that any use of the
9755         retain attribute matches the section's retain flag.
9756         (switch_to_section): Check for retain mismatches even when
9757         changing sections, but do not warn if the given decl is the
9758         section's named.decl.
9759         (output_object_block): Pass the first decl in the block (if any)
9760         to switch_to_section.
9761
9762 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
9763
9764         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9765         __CRC32__ for -mcrc32.
9766         * config/i386/i386-options.c (ix86_option_override_internal):
9767         Enable crc32 instruction for -msse4.2.
9768         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
9769         check.
9770         (sse4_2_crc32di): Likewise.
9771         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
9772         intrinsics.
9773
9774 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
9775
9776         PR target/100108
9777         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
9778         OPTION_MASK_ISEL.
9779
9780 2021-04-20  Martin Liska  <mliska@suse.cz>
9781
9782         * doc/invoke.texi: Fix typo.
9783         * params.opt: Likewise.
9784
9785 2021-04-20  Martin Liska  <mliska@suse.cz>
9786
9787         * doc/invoke.texi: Document new param.
9788
9789 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
9790
9791         PR tree-optimization/100081
9792         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
9793         rather than gori_compute_cache.
9794         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
9795         (range_def_chain::m_logical_depth): New member.
9796         (range_def_chain::range_def_chain): Initialize m_logical_depth.
9797         (range_def_chain::get_def_chain): Don't build defchains through more
9798         than LOGICAL_LIMIT logical expressions.
9799         * params.opt (param_ranger_logical_depth): New.
9800
9801 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
9802
9803         PR target/100067
9804         * config/arm/arm.c (arm_configure_build_target): Do not strip
9805         extended FPU/SIMD feature bits from the target ISA when -mfpu
9806         is specified (partial revert of r11-8168).
9807
9808 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
9809
9810         * params.opt (-param=openacc-kernels=): Add.
9811         * omp-oacc-kernels-decompose.cc
9812         (pass_omp_oacc_kernels_decompose::gate): Use it.
9813         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
9814         (--param): ... here, 'openacc-kernels'.
9815
9816 2021-04-19  Martin Liska  <mliska@suse.cz>
9817
9818         PR c/100143
9819         * gengtype.c (finish_root_table): Align function arguments
9820         in between declaration and definition.
9821
9822 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9823
9824         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
9825         frames larger than the SEH maximum frame size.
9826
9827 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
9828
9829         PR rtl-optimization/99927
9830         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
9831         is dead, just drop it.
9832
9833 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
9834
9835         PR d/99914
9836         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
9837         * doc/tm.texi: Regenerate.
9838         * doc/tm.texi.in (D language and ABI): Add @hook for
9839         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
9840
9841 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
9842
9843         * config/darwin-d.c (darwin_d_handle_target_object_format): New
9844         function.
9845         (darwin_d_register_target_info): New function.
9846         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9847         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
9848         function.
9849         (dragonfly_d_register_target_info): New function.
9850         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9851         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
9852         function.
9853         (freebsd_d_register_target_info): New function.
9854         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9855         * config/glibc-d.c (glibc_d_handle_target_object_format): New
9856         function.
9857         (glibc_d_register_target_info): New function.
9858         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9859         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
9860         function.
9861         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
9862         as handler for objectFormat key.
9863         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
9864         function.
9865         (winnt_d_register_target_info): New function.
9866         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9867         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
9868         function.
9869         (netbsd_d_register_target_info): New function.
9870         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9871         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
9872         function.
9873         (openbsd_d_register_target_info): New function.
9874         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9875         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
9876         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
9877         handler for objectFormat key.
9878         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
9879         function.
9880         (rs6000_d_register_target_info): Add
9881         rs6000_d_handle_target_object_format as handler for objectFormat key.
9882         * config/sol2-d.c (solaris_d_handle_target_object_format): New
9883         function.
9884         (solaris_d_register_target_info): New function.
9885         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9886
9887 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
9888
9889         PR target/91710
9890         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
9891         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
9892         alignment.
9893         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
9894         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
9895         the old and new alignment after applying MIN/MAX to it is different.
9896
9897 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
9898
9899         PR target/100048
9900         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
9901         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
9902         TRN optab.
9903         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
9904
9905 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9906
9907         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
9908         this section and its subsections.
9909
9910 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
9911
9912         PR target/100075
9913         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
9914         define_insn patterns.
9915
9916 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
9917
9918         PR rtl-optimization/98689
9919         * reg-notes.def (UNTYPED_CALL): New note.
9920         * combine.c (distribute_notes): Handle it.
9921         * emit-rtl.c (try_split): Likewise.
9922         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
9923         that calls with the note implicitly set all return value registers.
9924         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
9925         to untyped_calls.
9926
9927 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
9928
9929         PR rtl-optimization/99596
9930         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
9931         register accesses for const calls.  Assume that pure functions
9932         can only read from global registers.  Ignore cases in which
9933         the stack pointer has been marked global.
9934
9935 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
9936
9937         PR target/99767
9938         * tree-vect-loop.c (vect_transform_loop): Don't remove just
9939         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
9940         them by their last argument.
9941
9942 2021-04-15  Martin Liska  <mliska@suse.cz>
9943
9944         * doc/invoke.texi: Other params don't use it, remove it.
9945
9946 2021-04-15  Richard Biener  <rguenther@suse.de>
9947
9948         * gimple-builder.h: Add deprecation note.
9949
9950 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
9951
9952         PR c++/98852
9953         * attribs.h (restrict_type_identity_attributes_to): Declare.
9954         * attribs.c (restrict_type_identity_attributes_to): New function.
9955
9956 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
9957
9958         PR c/98852
9959         * attribs.h (affects_type_identity_attributes): Declare.
9960         * attribs.c (remove_attributes_matching): New function.
9961         (affects_type_identity_attributes): Likewise.
9962
9963 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
9964
9965         PR target/100056
9966         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
9967         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
9968         ZERO_EXTEND, SIGN_EXTEND or AND.
9969
9970 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
9971
9972         PR rtl-optimization/99929
9973         * rtl.h (same_vector_encodings_p): New function.
9974         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
9975         * cselib.c (rtx_equal_for_cselib_1): Likewise.
9976         * jump.c (rtx_renumbered_equal_p): Likewise.
9977         * lra-constraints.c (operands_match_p): Likewise.
9978         * reload.c (operands_match_p): Likewise.
9979         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
9980
9981 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
9982
9983         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
9984         more information about variable-length CONST_VECTORs.
9985
9986 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
9987
9988         PR rtl-optimization/100066
9989         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
9990         ordered modes when choosing splitting mode for hard reg.
9991
9992 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
9993
9994         PR target/99246
9995         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
9996         New function.
9997         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
9998
9999 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
10000
10001         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
10002         for mask operand types.
10003         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
10004         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
10005         operand.
10006         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
10007         immediate operand.
10008         * config/s390/s390.c (s390_const_operand_ok): Check the new
10009         operand types and generate a list of valid values.
10010
10011 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
10012
10013         * doc/tm.texi: Regenerate.
10014         * doc/tm.texi.in (D language and ABI): Add @hook for
10015         TARGET_D_REGISTER_OS_TARGET_INFO.
10016
10017 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
10018
10019         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
10020         function.
10021         (aarch64_d_register_target_info): New function.
10022         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
10023         Declare.
10024         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
10025         Define.
10026         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
10027         (arm_d_register_target_info): New function.
10028         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
10029         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10030         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
10031         (ix86_d_register_target_info): New function.
10032         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
10033         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10034         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
10035         (mips_d_register_target_info): New function.
10036         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
10037         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10038         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
10039         (pa_d_register_target_info): New function.
10040         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
10041         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10042         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
10043         function.
10044         (riscv_d_register_target_info): New function.
10045         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
10046         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10047         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
10048         function.
10049         (rs6000_d_register_target_info): New function.
10050         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
10051         Declare.
10052         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10053         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
10054         (s390_d_register_target_info): New function.
10055         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
10056         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10057         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
10058         function.
10059         (sparc_d_register_target_info): New function.
10060         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
10061         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
10062         * doc/tm.texi: Regenerate.
10063         * doc/tm.texi.in (D language and ABI): Add @hook for
10064         TARGET_D_REGISTER_CPU_TARGET_INFO.
10065
10066 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
10067
10068         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
10069         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
10070         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
10071         * doc/tm.texi: Regenerate.
10072         * doc/tm.texi.in (D language and ABI): Add @hook for
10073         TARGET_D_HAS_STDCALL_CONVENTION.
10074
10075 2021-04-14  Richard Biener  <rguenther@suse.de>
10076
10077         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
10078         VEC_COND_EXPRs have a gimple_val condition.
10079         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
10080         can no longer have a GENERIC condition.
10081
10082 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
10083
10084         PR target/100067
10085         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
10086         from the isa_delta when -mfpu has been used.
10087         (arm_options_perform_arch_sanity_checks): It's the architecture that
10088         lacks an FPU not the processor.
10089
10090 2021-04-13  Richard Biener  <rguenther@suse.de>
10091
10092         PR tree-optimization/100053
10093         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
10094         not use optimistic dominance queries for backedges to validate
10095         predicated values.
10096         (dominated_by_p_w_unex): Add parameter to ignore executable
10097         state on backedges.
10098         (rpo_elim::eliminate_avail): Adjust.
10099
10100 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
10101
10102         PR target/100028
10103         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
10104         *aarch64_bfxilsi_extrdi): New define_insn patterns.
10105
10106 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
10107
10108         PR target/99648
10109         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
10110         outermode, return NULL if the result doesn't encode back to the
10111         original byte sequence.
10112         (simplify_gen_subreg): Don't create SUBREGs from constants to
10113         MODE_COMPOSITE_P outermode.
10114
10115 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
10116
10117         PR rtl-optimization/99905
10118         * combine.c (expand_compound_operation): If pos + len > modewidth,
10119         perform the right shift by pos in inner_mode and then convert to mode,
10120         instead of trying to simplify a shift of rtx with inner_mode by pos
10121         as if it was a shift in mode.
10122
10123 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
10124
10125         PR debug/99830
10126         * combine.c (simplify_and_const_int_1): Don't optimize varop
10127         away if it has side-effects.
10128
10129 2021-04-12  Martin Liska  <mliska@suse.cz>
10130
10131         * doc/extend.texi: Escape @smallexample content.
10132
10133 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
10134
10135         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
10136           alternative in order to load a DFP zero.
10137
10138 2021-04-12  Martin Liska  <mliska@suse.cz>
10139
10140         * doc/extend.texi: Be more precise in documentation
10141         of symver attribute.
10142
10143 2021-04-12  Martin Liska  <mliska@suse.cz>
10144
10145         PR sanitizer/99877
10146         * gimplify.c (gimplify_expr): Right now, we unpoison all
10147         variables before a goto <dest>. We should not do it if we are
10148         in a omp context.
10149
10150 2021-04-12  Cui,Lili  <lili.cui@intel.com>
10151
10152         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
10153         rocketlake.
10154         * common/config/i386/i386-common.c (processor_names): Add
10155         rocketlake.
10156         (processor_alias_table): Add rocketlake.
10157         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
10158         INTEL_COREI7_ROCKETLAKE.
10159         * config.gcc: Add -march=rocketlake.
10160         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10161         rocketlake.
10162         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
10163         (processor_cost_table): Add rocketlake cost.
10164         * config/i386/i386.h (ix86_size_cost) : Define
10165         TARGET_ROCKETLAKE.
10166         (processor_type) : Add PROCESSOR_ROCKETLAKE.
10167         (PTA_ROCKETLAKE): Ditto.
10168         * doc/extend.texi: Add rocketlake.
10169         * doc/invoke.texi: Add rocketlake.
10170
10171 2021-04-12  Cui,Lili  <lili.cui@intel.com>
10172
10173         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
10174         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
10175         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
10176         * doc/invoke.texi: Change alderlake ISA list.
10177
10178 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
10179
10180         PR middle-end/98088
10181         * omp-expand.c (expand_oacc_collapse_init): Update condition in
10182         a gcc_assert.
10183
10184 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
10185
10186         PR target/99744
10187         * config/i386/serializeintrin.h (_serialize): Defined as macro.
10188
10189 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
10190
10191         PR lto/99849
10192         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
10193         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
10194
10195 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
10196
10197         PR middle-end/99989
10198         * gimple-ssa-warn-alloca.c
10199         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
10200         0 with integer precision unconditionally.
10201
10202 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
10203
10204         PR rtl-optimization/98601
10205         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
10206         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
10207         unaligned_mems handle VOIDmode like BLKmode.
10208
10209 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
10210
10211         PR lto/99857
10212         * tree.c (free_lang_data_in_decl): Do not release body of
10213         declare_variant_alt.
10214
10215 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
10216
10217         * config/aarch64/aarch64.c (aarch64_option_restore): If the
10218         architecture was specified explicitly and the tuning wasn't,
10219         tune for the architecture rather than the configured default CPU.
10220
10221 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
10222
10223         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
10224         as the temporary register.
10225
10226 2021-04-09  Martin Liska  <mliska@suse.cz>
10227
10228         * doc/extend.texi: Move non-target attributes on the top level.
10229
10230 2021-04-09  Martin Liska  <mliska@suse.cz>
10231
10232         * doc/invoke.texi: Document minimum and maximum value of the
10233         argument for both supported compression algorithms.
10234
10235 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
10236
10237         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
10238         TLS BSS before TLS data.
10239         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
10240
10241 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
10242
10243         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
10244
10245 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
10246
10247         * match.pd: Extend vec_cond folds to handle shifts.
10248
10249 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
10250
10251         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
10252         peephole.
10253
10254 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
10255
10256         PR target/99647
10257         * config/arm/iterators.md (MVE_vecs): New.
10258         (V_elem): Also handle V2DF.
10259         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
10260         (*mve_vdup<mode>): ... this. Remove second alternative since
10261         vec_duplicate of const_int is not canonical RTL, and we don't
10262         want to match symbol_refs.
10263         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
10264
10265 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
10266
10267         * fold-const.c (fold_single_bit_test): Fix typo.
10268         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
10269         instead.
10270
10271 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
10272
10273         PR tree-optimization/97513
10274         * tree-vect-slp.c (vect_add_slp_permutation): New function,
10275         split out from...
10276         (vectorizable_slp_permutation): ...here.  Detect cases in which
10277         all VEC_PERM_EXPRs are guaranteed to have the same stepped
10278         permute vector and only generate one permute vector for that case.
10279         Extend that case to handle variable-length vectors.
10280
10281 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
10282
10283         PR tree-optimization/99873
10284         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
10285         (vect_build_slp_instance): Don't split store groups that could
10286         use IFN_STORE_LANES.
10287
10288 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
10289
10290         PR target/99872
10291         * varasm.c (output_constant_pool_contents): Don't strip name encoding
10292         from XSTR (desc->sym, 0) or from label before passing those to
10293         ASM_OUTPUT_DEF.
10294
10295 2021-04-07  Richard Biener  <rguenther@suse.de>
10296
10297         PR tree-optimization/99954
10298         * tree-loop-distribution.c: Include tree-affine.h.
10299         (generate_memcpy_builtin): Try using tree-affine to prove
10300         non-overlap.
10301         (loop_distribution::classify_builtin_ldst): Always classify
10302         as PKIND_MEMMOVE.
10303
10304 2021-04-07  Richard Biener  <rguenther@suse.de>
10305
10306         PR tree-optimization/99947
10307         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
10308         steps vector to avoid pushing elements from the reallocated
10309         vector.
10310
10311 2021-04-07  Richard Biener  <rguenther@suse.de>
10312
10313         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
10314         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
10315         printing...
10316         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
10317         function.
10318         (debug_vn_reference_ops): New.
10319
10320 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
10321
10322         PR tree-optimization/98736
10323         * tree-loop-distribution.c
10324         * (loop_distribution::bb_top_order_init):
10325         Compute RPO with programing order preserved by calling function
10326         rev_post_order_and_mark_dfs_back_seme.
10327
10328 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
10329
10330         PR target/99781
10331         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
10332         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
10333         functions.
10334         (process_bb_lives): Don't update biggest mode of hard reg for
10335         implicit in multi-register group.  Use the new functions for
10336         updating dead_set and unused_set by register notes.
10337
10338 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
10339
10340         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
10341         instead of *.
10342
10343 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
10344
10345         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
10346         (skylake_memset): Likewise.
10347         (skylake_cost): Change CLEAR_RATIO to 17.
10348         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
10349         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
10350         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
10351
10352 2021-04-06  Richard Biener  <rguenther@suse.de>
10353
10354         PR tree-optimization/99880
10355         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
10356         set vectorized defs of relevant PHIs.
10357
10358 2021-04-06  Richard Biener  <rguenther@suse.de>
10359
10360         PR tree-optimization/99924
10361         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
10362         nodes w/o scalar stmts as visited.
10363
10364 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
10365
10366         PR target/99748
10367         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
10368         PCS for [su]fix_optab.
10369
10370 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
10371
10372         * config/darwin.c (machopic_legitimize_pic_address): Check
10373         that the current pic register is one of the hard reg set
10374         before setting liveness.
10375
10376 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
10377
10378         * config/darwin.c (machopic_legitimize_pic_address): Fix
10379         whitespace, remove unused code.
10380
10381 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
10382
10383         PR tree-optimization/99882
10384         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
10385         pointer type.
10386
10387 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
10388
10389         PR rtl-optimization/99863
10390         * dse.c (replace_read): Drop regs_live argument.  Instead of
10391         regs_live, use store_insn->fixed_regs_live if non-NULL,
10392         otherwise punt if insns sequence clobbers or sets any hard
10393         registers.
10394
10395 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
10396
10397         PR testsuite/98125
10398         * targhooks.h (default_print_patchable_function_entry_1): Declare.
10399         * targhooks.c (default_print_patchable_function_entry_1): New function,
10400         copied from default_print_patchable_function_entry with an added flags
10401         argument.
10402         (default_print_patchable_function_entry): Rewritten into a small
10403         wrapper around default_print_patchable_function_entry_1.
10404         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
10405         Redefine.
10406         (rs6000_print_patchable_function_entry): New function.
10407
10408 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
10409
10410         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
10411
10412 2021-04-01  Jason Merrill  <jason@redhat.com>
10413
10414         PR c++/98481
10415         * common.opt: Document v15 and v16.
10416
10417 2021-04-01  Richard Biener  <rguenther@suse.de>
10418
10419         PR tree-optimization/99863
10420         * gimplify.c (gimplify_init_constructor): Recompute vector
10421         constructor flags.
10422
10423 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
10424
10425         * doc/extend.texi (symver attribute): Fix up syntax errors
10426         in the examples.
10427
10428 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
10429
10430         PR tree-optimization/96573
10431         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
10432         also pointer types.
10433
10434 2021-04-01  Richard Biener  <rguenther@suse.de>
10435
10436         PR tree-optimization/99856
10437         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
10438         precision to vector element precision.
10439
10440 2021-04-01  Martin Jambor  <mjambor@suse.cz>
10441
10442         PR tree-optimization/97009
10443         * tree-sra.c (access_or_its_child_written): New function.
10444         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
10445         test.
10446
10447 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
10448
10449         PR ipa/98265
10450         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
10451
10452 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
10453
10454         PR target/99133
10455         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
10456         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
10457         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
10458         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
10459         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
10460         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
10461         Likewise.
10462         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
10463         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
10464         (define_attr "prefixed"): Update initializer.
10465
10466 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
10467
10468         PR debug/99490
10469         * dwarf2out.c (debug_ranges_dwo_section): New variable.
10470         (DW_RANGES_IDX_SKELETON): Define.
10471         (struct dw_ranges): Add begin_entry and end_entry members.
10472         (DEBUG_DWO_RNGLISTS_SECTION): Define.
10473         (add_ranges_num): Adjust r initializer for addition of *_entry
10474         members.
10475         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
10476         set idx to DW_RANGES_IDX_SKELETON.
10477         (use_distinct_base_address_for_range): New function.
10478         (index_rnglists): Don't set r->idx if it is equal to
10479         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
10480         r->end_entry for -gsplit-dwarf if those will be needed by
10481         output_rnglists.
10482         (output_rnglists): Add DWO argument.  If true, switch to
10483         debug_ranges_dwo_section rather than debug_ranges_section.
10484         Adjust l1/l2 label indexes.  Only output the offset table when
10485         dwo is true and don't include in there the skeleton range
10486         entry if present.  For -gsplit-dwarf, skip ranges that belong
10487         to the other rnglists section.  Change return type from void
10488         to bool and return true if there are any range entries for
10489         the other section.  For dwarf_split_debug_info use
10490         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
10491         entries instead of DW_RLE_start_end, DW_RLE_start_length and
10492         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
10493         (init_sections_and_labels): Initialize debug_ranges_dwo_section
10494         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
10495         and range_base_label indexes.
10496         (dwarf2out_finish): Call index_rnglists earlier before finalizing
10497         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
10498         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
10499         with different dwo arguments.
10500         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
10501
10502 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
10503
10504         PR tree-optimization/98268
10505         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
10506         recompute_tree_invariant_for_addr_expr after successfully
10507         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
10508
10509 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
10510
10511         PR tree-optimization/99726
10512         * tree-data-ref.c (create_intersect_range_checks_index): Bail
10513         out if there is more than one access function SCEV for the loop
10514         being versioned.
10515
10516 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
10517
10518         PR rtl-optimization/97141
10519         PR rtl-optimization/98726
10520         * emit-rtl.c (valid_for_const_vector_p): Return true for
10521         CONST_POLY_INT_P.
10522         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
10523         poly_wide_int instead of a wide_int.
10524         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
10525         of a wide_int.
10526         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
10527         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
10528         false for CONST_VECTORs that cannot be forced to memory.
10529         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
10530         is too complex to force to memory, build it up from individual
10531         elements instead.
10532
10533 2021-03-31  Jan Hubicka  <jh@suse.cz>
10534
10535         PR lto/99447
10536         * cgraph.c (cgraph_node::release_body): Fix overactive check.
10537
10538 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
10539
10540         PR target/99786
10541         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
10542         for V4HI and V2SI.
10543
10544 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
10545
10546         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
10547         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
10548         to SImode.
10549         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
10550         "rep movsb/stosb" only for known sizes.
10551         * config/i386/i386-options.c (processor_cost_table): Use Ice
10552         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
10553         Rapids and Alder Lake.
10554         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
10555         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
10556         (icelake_memset): Likewise.
10557         (icelake_cost): Likewise.
10558         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
10559         New.
10560
10561 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
10562
10563         PR target/98119
10564         * config/aarch64/aarch64.c
10565         (aarch64_vectorize_preferred_vector_alignment): Query the size
10566         of the provided SVE vector; do not assume that all SVE vectors
10567         have the same size.
10568
10569 2021-03-31  Jan Hubicka  <jh@suse.cz>
10570
10571         PR lto/99447
10572         * cgraph.c (cgraph_node::release_body): Remove all callers and
10573         references.
10574         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
10575         * cgraphunit.c (cgraph_node::expand): And here.
10576
10577 2021-03-31  Martin Liska  <mliska@suse.cz>
10578
10579         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
10580         and one negated condition.
10581
10582 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
10583             Richard Sandiford  <richard.sandiford@arm.com>
10584
10585         PR target/99813
10586         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
10587         constraints on operands[2] and similarly 0 and rk constraints
10588         on operands[1] corresponding to that.
10589
10590 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
10591
10592         PR bootstrap/98860
10593         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
10594         linker doesn't support DWARF sections new in DWARF5.
10595         * config/i386/i386-options.c (ix86_option_override_internal): Default
10596         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
10597         targets.
10598         * config.in: Regenerated.
10599         * configure: Regenerated.
10600
10601 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10602
10603         PR target/99820
10604         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
10605         available issue_info before using it.
10606
10607 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10608
10609         PR target/99822
10610         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
10611         in operand 1.
10612
10613 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
10614
10615         PR target/99718
10616         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
10617         (altivec_lvsl_reg_<mode>): ... this.
10618         (altivec_lvsr_reg): Change to ...
10619         (altivec_lvsr_reg_<mode>): ... this.
10620         * config/rs6000/predicates.md (vec_set_index_operand): New.
10621         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10622         Enable 32bit variable vec_insert for all TARGET_VSX.
10623         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
10624         Enable 32bit variable vec_insert for p9 and above.
10625         (rs6000_expand_vector_set_var_p8): Rename to ...
10626         (rs6000_expand_vector_set_var_p7): ... this.
10627         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
10628         position.
10629         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
10630         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
10631         gen_altivec_lvsr_reg_di.
10632
10633 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
10634
10635         PR target/99744
10636         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
10637         (__rdtscp): Likewise.
10638
10639 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
10640
10641         PR tree-optimization/99825
10642         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
10643         Reject non-mult 2 lanes.
10644
10645 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
10646
10647         PR target/99773
10648         * config/arm/arm.c (arm_file_start): Fix emission of
10649         Tag_ABI_VFP_args attribute.
10650
10651 2021-03-30  Richard Biener  <rguenther@suse.de>
10652
10653         PR tree-optimization/99824
10654         * stor-layout.c (set_min_and_max_values_for_integral_type):
10655         Assert the precision is within the bounds of
10656         WIDE_INT_MAX_PRECISION.
10657         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
10658         the outermost component ref only to lower the access size
10659         and initialize that from the access type.
10660
10661 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
10662
10663         PR target/98136
10664         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
10665         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
10666
10667 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
10668
10669         * config/aarch64/aarch64.md
10670         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
10671         attribute to disambiguate between SIMD and FP variants of the
10672         instruction.
10673
10674 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
10675
10676         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
10677         (analyze_ssa_name_flags): Fix typo in comment.
10678
10679 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
10680
10681         PR target/99216
10682         * config/aarch64/aarch64-sve-builtins.cc
10683         (function_builder::add_function): Add placeholder_p argument, use
10684         placeholder decls if this is set.
10685         (function_builder::add_unique_function): Instead of conditionally adding
10686         direct overloads, unconditionally add either a direct overload or a
10687         placeholder.
10688         (function_builder::add_overloaded_function): Set placeholder_p if we're
10689         using C++ overloads. Use the obstack for string storage instead
10690         of relying on the tree nodes.
10691         (function_builder::add_overloaded_functions): Don't return early for
10692         m_direct_overloads: we need to add placeholders.
10693         * config/aarch64/aarch64-sve-builtins.h
10694         (function_builder::add_function): Add placeholder_p argument.
10695
10696 2021-03-29  Richard Biener  <rguenther@suse.de>
10697
10698         PR tree-optimization/99807
10699         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
10700         assert below VEC_PERM handling.
10701
10702 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10703
10704         PR target/99037
10705         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
10706         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
10707         matching const_int 0.
10708         (move_lo_quad_internal_be_<mode>): Likewise.
10709         (move_lo_quad_<mode>): Update for the above.
10710         * config/aarch64/iterators.md (VQ_2E): Delete.
10711
10712 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
10713
10714         PR tree-optimization/99777
10715         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
10716         types other than scalar integral types.
10717
10718 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
10719
10720         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
10721         XCOFF TLS reloc decorations.
10722
10723 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
10724
10725         * doc/analyzer.texi (Analyzer Internals): Update link to
10726         "A Memory Model for Static Analysis of C Programs".
10727
10728 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
10729
10730         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
10731         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
10732         Declare.
10733         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
10734         (rs6000_special_round_type_align): Recursively check innermost first
10735         field.
10736
10737 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
10738
10739         PR debug/99334
10740         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
10741         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
10742         assignment with drap_reg active, queue reg save for hfp with offset 0
10743         and flush queued reg saves.  When handling a push with rule18,
10744         defer queueing reg save for hfp and just assert the offset is 0.
10745         (scan_trace): Assert that fde->rule18 is false.
10746
10747 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
10748
10749         PR target/99766
10750         * ira-costs.c (record_reg_classes): Put case with
10751         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
10752         * ira.c (ira_setup_alts): Ditto.
10753         * lra-constraints.c (process_alt_operands): Ditto.
10754         * recog.c (asm_operand_ok): Ditto.
10755         * reload.c (find_reloads): Ditto.
10756
10757 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10758
10759         * config/aarch64/aarch64-protos.h
10760         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
10761         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
10762         * config/aarch64/aarch64.c (generic_addrcost_table): Update
10763         accordingly, using the same costs as for post_modify.
10764         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
10765         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
10766         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
10767         (a64fx_addrcost_table): Likewise.
10768         (neoversev1_addrcost_table): New.
10769         (neoversev1_tunings): Use neoversev1_addrcost_table.
10770         (aarch64_address_cost): Use the new post_modify costs for CImode
10771         and XImode.
10772
10773 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10774
10775         * config/aarch64/aarch64.opt
10776         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
10777         * doc/invoke.texi: Document it.
10778         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
10779         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
10780         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
10781         (aarch64_vec_issue_info): New structures.
10782         (cpu_vector_cost): Write comments above the variables rather
10783         than to the side.
10784         (cpu_vector_cost::issue_info): New member variable.
10785         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
10786         and tree-ssa-loop-niter.h.
10787         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
10788         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
10789         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
10790         (thunderx3t110_vector_cost): Initialize issue_info to null.
10791         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
10792         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
10793         (neoversev1_vector_cost): Use them.
10794         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
10795         (aarch64_vector_costs::saw_sve_only_op): New member variable.
10796         (aarch64_vector_costs::num_vector_iterations): Likewise.
10797         (aarch64_vector_costs::scalar_ops): Likewise.
10798         (aarch64_vector_costs::advsimd_ops): Likewise.
10799         (aarch64_vector_costs::sve_ops): Likewise.
10800         (aarch64_vector_costs::seen_loads): Likewise.
10801         (aarch64_simd_vec_costs_for_flags): New function.
10802         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
10803         Count the number of predicate operations required by SVE WHILE
10804         instructions.
10805         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
10806         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
10807         (aarch64_count_ops): Likewise.
10808         (aarch64_add_stmt_cost): Record whether see an SVE operation
10809         that cannot currently be implementing using Advanced SIMD.
10810         Record issue information about the scalar, Advanced SIMD
10811         and (where relevant) SVE versions of a loop.
10812         (aarch64_vec_op_count::dump): New function.
10813         (aarch64_sve_op_count::dump): Likewise.
10814         (aarch64_estimate_min_cycles_per_iter): Likewise.
10815         (aarch64_adjust_body_cost): If issue information is available,
10816         try to compare the issue rates of the various loop implementations
10817         and increase or decrease the vector body cost accordingly.
10818
10819 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10820
10821         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
10822         Assume a zero cost for induction phis.
10823
10824 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10825
10826         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
10827         function.
10828         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
10829         vector comparisons.
10830
10831 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10832
10833         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
10834         New function.
10835         (aarch64_add_stmt_cost): Call it.
10836
10837 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10838
10839         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
10840         New tuning parameter.
10841         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
10842         (aarch64_estimated_sve_vq): New function.
10843         (aarch64_vector_costs::analyzed_vinfo): New member variable.
10844         (aarch64_vector_costs::is_loop): Likewise.
10845         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
10846         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
10847         (aarch64_record_potential_advsimd_unrolling): New function.
10848         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
10849         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
10850         aarch64_analyze_bb_vinfo on the first use of a costs structure.
10851         Detect whether we're vectorizing a loop for SVE that might be
10852         completely unrolled if it used Advanced SIMD instead.
10853         (aarch64_adjust_body_cost_for_latency): New function.
10854         (aarch64_finish_cost): Call it.
10855
10856 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10857
10858         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
10859         (aarch64_init_cost): New function.
10860         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
10861         the default unsigned[3].
10862         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
10863         (TARGET_VECTORIZE_INIT_COST): Override.
10864         (TARGET_VECTORIZE_FINISH_COST): Likewise.
10865         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
10866
10867 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10868
10869         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
10870         (neoversev1_sve_vector_cost): New cost structures.
10871         (neoversev1_vector_cost): Likewise.
10872         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
10873
10874 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10875
10876         * config/aarch64/aarch64-protos.h
10877         (sve_vec_cost::scatter_store_elt_cost): New member variable.
10878         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
10879         accordingly, taking the cost from the cost of a scalar_store.
10880         (a64fx_sve_vector_cost): Likewise.
10881         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
10882
10883 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10884
10885         * config/aarch64/aarch64-protos.h
10886         (simd_vec_cost::store_elt_extra_cost): New member variable.
10887         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
10888         accordingly, using the vec_to_scalar cost for the new field.
10889         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
10890         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
10891         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
10892         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
10893         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
10894         (thunderx3t110_advsimd_vector_cost): Likewise.
10895         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
10896
10897 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10898
10899         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
10900         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
10901         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
10902         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
10903         accordingly, using zero for the new costs.
10904         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
10905         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
10906         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
10907         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
10908         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
10909         (thunderx3t110_advsimd_vector_cost): Likewise.
10910         (aarch64_ld234_st234_vectors): New function.
10911         (aarch64_adjust_stmt_cost): Likewise.
10912         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
10913         the new vector costs.
10914
10915 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10916
10917         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
10918         derived class of simd_vec_cost.  Add information about CLAST[AB]
10919         and FADDA instructions.
10920         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
10921         accordingly, using the vec_to_scalar costs for the new fields.
10922         (a64fx_sve_vector_cost): Likewise.
10923         (aarch64_reduc_type): New function.
10924         (aarch64_sve_in_loop_reduction_latency): Likewise.
10925         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
10926         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
10927         that occur in the loop body.
10928         (aarch64_add_stmt_cost): Update call accordingly.
10929
10930 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10931
10932         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
10933         New tuning flag.
10934         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
10935         above the fields rather than to the right.
10936         (simd_vec_cost::reduc_i8_cost): New member variable.
10937         (simd_vec_cost::reduc_i16_cost): Likewise.
10938         (simd_vec_cost::reduc_i32_cost): Likewise.
10939         (simd_vec_cost::reduc_i64_cost): Likewise.
10940         (simd_vec_cost::reduc_f16_cost): Likewise.
10941         (simd_vec_cost::reduc_f32_cost): Likewise.
10942         (simd_vec_cost::reduc_f64_cost): Likewise.
10943         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
10944         accordingly, using the vec_to_scalar_cost for the new fields.
10945         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
10946         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
10947         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
10948         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
10949         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
10950         (thunderx3t110_advsimd_vector_cost): Likewise.
10951         (aarch64_use_new_vector_costs_p): New function.
10952         (aarch64_simd_vec_costs): New function, split out from...
10953         (aarch64_builtin_vectorization_cost): ...here.
10954         (aarch64_is_reduction): New function.
10955         (aarch64_detect_vector_stmt_subtype): Likewise.
10956         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
10957         using the new vector costs.
10958
10959 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10960
10961         PR ipa/99466
10962         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
10963         TLS declarations as public.
10964
10965 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10966
10967         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
10968         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
10969         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
10970         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
10971         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
10972         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
10973         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
10974         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
10975         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
10976
10977 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10978
10979         PR d/91595
10980         * config.gcc (*-*-cygwin*): Add winnt-d.o
10981         (*-*-mingw*): Likewise.
10982         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
10983         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
10984         * config/i386/t-cygming: Add winnt-d.o.
10985         * config/i386/winnt-d.c: New file.
10986
10987 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10988
10989         * config/freebsd-d.c: Include memmodel.h.
10990
10991 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10992
10993         PR d/99691
10994         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
10995         * config/t-openbsd: Add openbsd-d.o.
10996         * config/openbsd-d.c: New file.
10997
10998 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
10999
11000         PR tree-optimization/96974
11001         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
11002         with graceful exit.
11003
11004 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
11005
11006         Revert:
11007         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
11008
11009         PR target/98209
11010         PR target/99744
11011         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
11012         always_inline in system headers.
11013
11014 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
11015
11016         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
11017
11018 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
11019
11020         PR c++/99565
11021         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
11022         * fold-const.c (operand_compare::operand_equal_p): Don't compare
11023         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
11024
11025 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
11026
11027         PR target/98209
11028         PR target/99744
11029         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
11030         always_inline in system headers.
11031
11032 2021-03-25  Richard Biener  <rguenther@suse.de>
11033
11034         PR tree-optimization/99746
11035         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
11036         the scalar stmt as patterned.  Instead set up required things
11037         manually.
11038
11039 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
11040
11041         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
11042         from 256 to 512.
11043
11044 2021-03-24  Martin Liska  <mliska@suse.cz>
11045
11046         PR target/99753
11047         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
11048         error.
11049         * config/i386/i386-options.c (ix86_option_override_internal):
11050         Add run-time assert.
11051
11052 2021-03-24  Martin Jambor  <mjambor@suse.cz>
11053
11054         PR ipa/99122
11055         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
11056         parameters with unknown type.
11057         (ipacp_value_safe_for_type): New function.
11058         (propagate_vals_across_arith_jfunc): Verify that the constant type
11059         can be used for a type of the formal parameter.
11060         (propagate_vals_across_ancestor): Likewise.
11061         (propagate_scalar_across_jump_function): Likewise.  Pass the type
11062         also to propagate_vals_across_ancestor.
11063
11064 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
11065
11066         PR target/99727
11067         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
11068         constraint.
11069         (movmisalign<mode>_mve_load): Likewise.
11070
11071 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
11072
11073         PR target/99724
11074         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
11075         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
11076
11077 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
11078
11079         * doc/sourcebuild.texi (sysconf): New effective target.
11080
11081 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
11082
11083         * config/i386/predicates.md (reg_or_const_vec_operand): New.
11084         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
11085         the now *-prefixed insn_and_split, turn the splitter const vec
11086         into an input for the insn, making it an ignored immediate for
11087         non-split cases, and loaded into the scratch register
11088         otherwise.
11089
11090 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
11091
11092         PR target/99581
11093         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
11094         Use define_relaxed_memory_constraint for them.
11095
11096 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
11097
11098         PR target/99733
11099         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
11100         colon to the diagnostic message.
11101
11102 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
11103
11104         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
11105         set_info's uses.
11106         (try_fwprop_subst_note): Use set_info instead of insn_info.
11107         (try_fwprop_subst_pattern): Likewise.
11108         (try_fwprop_subst_notes): Likewise.
11109         (try_fwprop_subst): Likewise.
11110         (forward_propagate_subreg): Likewise.
11111         (forward_propagate_and_simplify): Likewise.
11112         (forward_propagate_into): Likewise.
11113         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
11114         method.
11115         (set_info::single_nondebug_insn_use): Likewise.
11116         (set_info::single_phi_use): Likewise.
11117         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
11118         method.
11119         (set_info::single_nondebug_insn_use): Likewise.
11120         (set_info::single_phi_use): Likewise.
11121
11122 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
11123
11124         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
11125
11126 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
11127
11128         PR target/99540
11129         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
11130         expand_mult to perform an unsigned rather than a signed
11131         multiplication.
11132
11133 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
11134
11135         PR target/99704
11136         * config/i386/cpuid.h (__cpuid): Add __volatile__.
11137         (__cpuid_count): Likewise.
11138
11139 2021-03-23  Richard Biener  <rguenther@suse.de>
11140
11141         PR tree-optimization/99721
11142         * tree-vect-slp.c (vect_slp_analyze_node_operations):
11143         Make sure we can schedule the node.
11144
11145 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
11146
11147         * config/riscv/riscv.c (riscv_subword): Take endianness into
11148         account when calculating the byte offset.
11149
11150 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
11151
11152         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
11153         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
11154         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
11155         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
11156         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
11157         new predicate "subreg_lowpart_operator"
11158
11159 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
11160
11161         * config/riscv/riscv.c (riscv_swap_instruction): New function
11162         to byteswap an SImode rtx containing an instruction.
11163         (riscv_trampoline_init): Byteswap the generated instructions
11164         when needed.
11165
11166 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
11167
11168         * common/config/riscv/riscv-common.c
11169         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
11170         * config.gcc (riscv32be-*, riscv64be-*): Set
11171         TARGET_BIG_ENDIAN_DEFAULT to 1.
11172         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
11173         depending on default endianness.
11174         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11175         * config/riscv/linux.h (LINK_SPEC): Likewise.
11176         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
11177         default endianness.
11178         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
11179
11180 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
11181
11182         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
11183         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11184         * config/riscv/linux.h (LINK_SPEC): Likewise.
11185         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
11186         -mlittle-endian.
11187         (BYTES_BIG_ENDIAN): Handle big endian.
11188         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11189         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
11190         options.
11191         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
11192
11193 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
11194
11195         * regcprop.c (find_oldest_value_reg): Ask target whether
11196           different mode is fine for replacement register.
11197
11198 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
11199
11200         PR tree-optimization/99296
11201         * value-range.cc (irange::irange_set_1bit_anti_range): New.
11202         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
11203         * value-range.h (irange::irange_set_1bit_anti_range): New.
11204
11205 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
11206
11207         PR target/99581
11208         * config/aarch64/constraints.md (UtQ): Use
11209         define_relaxed_memory_constraint for it.
11210         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
11211         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
11212         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
11213         (have_relaxed_memory_constraints): New static var.
11214         (relaxed_memory_start, relaxed_memory_end): Ditto.
11215         (add_constraint): Add arg is_relaxed_memory.  Check name for
11216         relaxed memory.  Set up is_relaxed_memory in constraint_data and
11217         have_relaxed_memory_constraints.  Adjust calls.
11218         (choose_enum_order): Process relaxed memory.
11219         (write_tm_preds_h): Ditto.
11220         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
11221         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
11222         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
11223         * ira-lives.c (single_reg_class): Use
11224         insn_extra_relaxed_memory_constraint.
11225         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
11226         * lra-constraints.c (valid_address_p): Use
11227         insn_extra_relaxed_memory_constraint instead of other memory
11228         constraints.
11229         (process_alt_operands): Process CT_RELAXED_MEMORY.
11230         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
11231         * recog.c (asm_operand_ok, preprocess_constraints): Process
11232         CT_RELAXED_MEMORY.
11233         * reload.c (find_reloads): Ditto.
11234         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
11235         * stmt.c (parse_input_constraint): Use
11236         insn_extra_relaxed_memory_constraint.
11237
11238 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
11239
11240         PR target/97926
11241         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
11242         there are no NaNs.
11243
11244 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
11245
11246         PR target/97252
11247         * config/arm/arm-protos.h (neon_make_constant): Add generate
11248         argument to guard emitting insns, default to true.
11249         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
11250         CONST_VECTORs which neon_make_constant can't handle.
11251         (neon_vdup_constant): Add generate argument, avoid emitting
11252         insns if it's not set.
11253         (neon_make_constant): Plumb new generate argument through.
11254         * config/arm/constraints.md (Ui): New. Use it...
11255         * config/arm/mve.md (*mve_mov<mode>): ... here.
11256         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
11257         synthesize constants.
11258
11259 2021-03-22  Richard Biener  <rguenther@suse.de>
11260
11261         * debug.h: Add deprecation warning.
11262
11263 2021-03-22  Richard Biener  <rguenther@suse.de>
11264
11265         PR tree-optimization/99694
11266         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
11267         PHI result.
11268
11269 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
11270
11271         PR target/99702
11272         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
11273         after type checking.
11274
11275 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
11276
11277         PR debug/99562
11278         PR debug/66728
11279         * dwarf2out.c (get_full_len): Use get_precision rather than
11280         min_precision.
11281         (add_const_value_attribute): Make sure add_AT_wide argument has
11282         precision prec rather than some very wide one.
11283
11284 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
11285
11286         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
11287         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
11288         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
11289         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
11290         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
11291         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
11292         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
11293         *fix_trunc<mode>si2_internal): Fix empty split condition.
11294         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
11295         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
11296         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
11297         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
11298
11299 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
11300
11301         PR target/98914
11302         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
11303         Convert idx to DImode.
11304         (rs6000_expand_vector_set_var_p8): Likewise.
11305
11306 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
11307
11308         PR debug/99388
11309         * dwarf2out.c (insert_float): Change return type from void to
11310         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
11311         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
11312         Adjust callers.
11313
11314 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
11315
11316         PR target/99679
11317         * config/i386/i386.c (construct_container): Check cfun != NULL
11318         before accessing silent_p.
11319
11320 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
11321
11322         * asan.c: Fix typos in comments.
11323
11324 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
11325
11326         PR rtl-optimization/99680
11327         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
11328         (process_address_1): Check empty constraint before using
11329         CONSTRAINT_LEN.
11330
11331 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
11332
11333         * config/rs6000/rs6000.c (power10_cost): New.
11334         (rs6000_option_override_internal): Set Power10 costs.
11335         (rs6000_issue_rate): Set Power10 issue rate.
11336         * config/rs6000/power10.md: Rewrite for Power10.
11337
11338 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
11339
11340         PR target/99663
11341         * lra-constraints.c (process_address_1): Don't use unknown
11342         constraint for address constraint.
11343
11344 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
11345
11346         PR target/99661
11347         * config.gcc (powerpc-*-darwin8): Delete the reference to
11348         the now removed darwin8.h.
11349
11350 2021-03-19  Olivier Hainque  <hainque@adacore.com>
11351
11352         PR target/99660
11353         * config/vxworksae.h (VX_CPU_PREFIX): Define.
11354
11355 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
11356
11357         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
11358
11359 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
11360
11361         PR tree-optimization/99656
11362         * tree-vect-slp-patterns.c (linear_loads_p,
11363         complex_add_pattern::matches, is_eq_or_top,
11364         vect_validate_multiplication, complex_mul_pattern::matches,
11365         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
11366         * tree-vectorizer.h: (complex_load_perm_t): Removed.
11367         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
11368         complex_load_perm_t.
11369
11370 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
11371
11372         PR target/99652
11373         * config/i386/i386-options.c (ix86_init_machine_status): Set
11374         silent_p to true.
11375         * config/i386/i386.c (init_cumulative_args): Set silent_p to
11376         false.
11377         (construct_container): Return early for return and argument
11378         errors if silent_p is true.
11379         * config/i386/i386.h (machine_function): Add silent_p.
11380
11381 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
11382
11383         PR target/99593
11384         * config/arm/constraints.md (Ds): New constraint.
11385         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
11386         constraint instead of w,Dm.
11387
11388 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
11389
11390         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
11391         in error message.
11392
11393 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
11394
11395         PR middle-end/99641
11396         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
11397         array type, do the computation of the current position in sizetype.
11398
11399 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
11400
11401         PR target/99422
11402         * lra-constraints.c (process_address_1): Use lookup_constraint
11403         only for a single constraint.
11404
11405 2021-03-18  Martin Sebor  <msebor@redhat.com>
11406
11407         PR middle-end/99502
11408         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
11409         (inbounds_memaccess_p): ...to this.  Check the ending offset of
11410         the accessed member.
11411
11412 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
11413
11414         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
11415           %> quote markers to error messages.
11416         (gcn_goacc_validate_dims): Likewise.
11417         (gcn_conditional_register_usage): Remove exclaimation mark from error
11418         message.
11419         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
11420
11421 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
11422
11423         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
11424         integer divides1.
11425
11426 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
11427             Kito Cheng  <kito.cheng@sifive.com>
11428
11429         * config/riscv/riscv.c (riscv_block_move_straight): Change type
11430         to unsigned HOST_WIDE_INT for parameter and local variable with
11431         HOST_WIDE_INT type.
11432         (riscv_adjust_block_mem): Ditto.
11433         (riscv_block_move_loop): Ditto.
11434         (riscv_expand_block_move): Ditto.
11435
11436 2021-03-18  Nick Clifton  <nickc@redhat.com>
11437
11438         * config/v850/v850.c (construct_restore_jr): Increase static
11439          buffer size.
11440         (construct_save_jarl): Likewise.
11441         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
11442
11443 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11444
11445         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
11446         (aarch64_override_options_internal): Use it.
11447         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
11448         tune_flags.
11449
11450 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
11451
11452         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
11453         error message format issues.
11454         (nios2_option_override): Likewise.
11455         (nios2_expand_fpu_builtin): Likewise.
11456         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
11457         truncation warning.
11458         (nios2_expand_custom_builtin): More error message format fixes.
11459         (nios2_expand_rdwrctl_builtin): Likewise.
11460         (nios2_expand_rdprs_builtin): Likewise.
11461         (nios2_expand_eni_builtin): Likewise.
11462         (nios2_expand_builtin): Likewise.
11463         (nios2_register_custom_code): Likewise.
11464         (nios2_valid_target_attribute_rec): Likewise.
11465         (nios2_add_insn_asm): Fix uninitialized variable warning.
11466
11467 2021-03-17  Jan Hubicka  <jh@suse.cz>
11468
11469         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
11470         of gather to match reality.
11471         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
11472
11473 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11474
11475         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
11476         to compare against CC_REG rather than NE.
11477
11478 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
11479
11480         PR target/99504
11481         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
11482         inline assembly statements.
11483         (ix86_print_operand): Update 'P' handling for -fno-plt.
11484
11485 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
11486
11487         PR target/99542
11488         * config/aarch64/aarch64.c
11489         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
11490
11491 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
11492
11493         PR target/98092
11494         * config/rs6000/predicates.md (branch_comparison_operator): Allow
11495         ordered and unordered for CCFPmode, if flag_finite_math_only.
11496
11497 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
11498
11499         PR target/99600
11500         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
11501         rather than ASHIFT.
11502         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
11503
11504 2021-03-16  Martin Liska  <mliska@suse.cz>
11505
11506         PR target/99592
11507         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
11508         cl_optimization_compare function.
11509
11510 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
11511
11512         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
11513         as "v".
11514
11515 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
11516
11517         PR target/99563
11518         * config/i386/i386.h (struct machine_function): Add
11519         has_explicit_vzeroupper bitfield.
11520         * config/i386/i386-expand.c (ix86_expand_builtin): Set
11521         cfun->machine->has_explicit_vzeroupper when expanding
11522         IX86_BUILTIN_VZEROUPPER.
11523         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
11524         Do the mode switching only when TARGET_VZEROUPPER, expensive
11525         optimizations turned on and not optimizing for size.
11526         (pass_insert_vzeroupper::gate): Enable even when
11527         cfun->machine->has_explicit_vzeroupper is set.
11528
11529 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
11530
11531         PR target/99542
11532         * config/aarch64/aarch64.c
11533         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
11534         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
11535         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
11536
11537 2021-03-15  Richard Biener  <rguenther@suse.de>
11538
11539         PR tree-optimization/98834
11540         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
11541         subsetting by truncating the access size.
11542
11543 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
11544
11545         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
11546         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
11547         of znver2_cost.
11548
11549 2021-03-15  Martin Liska  <mliska@suse.cz>
11550
11551         * spellcheck.c: Add missing comma in initialization.
11552
11553 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
11554
11555         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
11556         alternative 2 and alternative 1 with alternative 3 using
11557         YW register constraint.
11558         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
11559         using YW register constraint.
11560         (*vec_extractv16qi_zext): Ditto.
11561         (*vec_extractv4si): Merge alternatives 4 and 5
11562         using Yw register constraint.
11563         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
11564
11565 2021-03-13  Martin Sebor  <msebor@redhat.com>
11566
11567         PR tree-optimization/99489
11568         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
11569         is not a call statement.
11570
11571 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
11572
11573         PR tree-optimization/99544
11574         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
11575         if for vector types multiplication can't be done in type's mode.
11576
11577 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
11578
11579         PR target/99422
11580         * config/sparc/constraints.md (w): Rename to...
11581         (W): ... this and ditch previous implementation.
11582         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
11583         (*movdf_insn_sp64): Likewise.
11584         (*mov<VM64:mode>_insn_sp64): Likewise.
11585         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
11586         w with W.
11587         (atomic_compare_and_swap_leon3_1): Likewise.
11588         (*atomic_compare_and_swapdi_v8plus): Likewise.
11589         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
11590         architecture and add missing address validity check during LRA.
11591
11592 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
11593
11594         PR fortran/98858
11595         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
11596         occuring for assumed-size arrays in use_device_{ptr,addr}.
11597
11598 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
11599
11600         PR target/99321
11601         * config/i386/constraints.md (YW): New internal constraint.
11602         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
11603         (*<sse2_avx2>_<insn><mode>3<mask_name>,
11604         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
11605         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
11606         constraints.
11607         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
11608         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
11609         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
11610         into one, use Yw instead of former x,v.
11611         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
11612         the last alternative.
11613         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
11614         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
11615         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
11616         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
11617         into one, use <v_Yw> instead of former x,v.
11618         (avx2_interleave_highv32qi<mask_name>,
11619         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
11620         constraints.  Add && <mask_avx512bw_condition> to condition.
11621         (avx2_interleave_lowv32qi<mask_name>,
11622         vec_interleave_lowv16qi<mask_name>,
11623         avx2_interleave_highv16hi<mask_name>,
11624         vec_interleave_highv8hi<mask_name>,
11625         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
11626         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
11627         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
11628         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
11629         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
11630         Yw instead of v in constraints.
11631         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
11632         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
11633         instead of Yv in constraints.
11634         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
11635         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
11636         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
11637         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
11638         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
11639         constraints.
11640         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
11641         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
11642         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
11643         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
11644         two, one with just x, another isa avx512vl with v.
11645
11646 2021-03-12  Martin Liska  <mliska@suse.cz>
11647
11648         * doc/invoke.texi: Add missing param documentation.
11649
11650 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
11651
11652         PR analyzer/96374
11653         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
11654         analyzer/trimmed-graph.o.
11655         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
11656         feasibility checking to reflect new implementation.
11657         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
11658         option.
11659         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
11660
11661 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
11662
11663         * digraph.cc (selftest::test_shortest_paths): Update
11664         shortest_paths init for new param.  Add test of
11665         SPS_TO_GIVEN_TARGET.
11666         * shortest-paths.h (enum shortest_path_sense): New.
11667         (shortest_paths::shortest_paths): Add "sense" param.
11668         Update for renamings.  Generalize to use "sense" param.
11669         (shortest_paths::get_shortest_path): Rename param.
11670         (shortest_paths::m_sense): New field.
11671         (shortest_paths::m_prev): Rename...
11672         (shortest_paths::m_best_edge): ...to this.
11673         (shortest_paths::get_shortest_path): Update for renamings.
11674         Conditionalize flipping of path on sense of traversal.
11675
11676 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
11677
11678         * digraph.cc (selftest::test_shortest_paths): Add test coverage
11679         for paths from B and C.
11680         * shortest-paths.h (shortest_paths::shortest_paths): Handle
11681         unreachable nodes, rather than asserting.
11682
11683 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
11684
11685         PR target/99094
11686         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
11687         xcoff_tbss_section_name.
11688         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
11689         * xcoffout.c (xcoff_tbss_section_name): Delete.
11690         * xcoffout.h (xcoff_tbss_section_name): Delete.
11691
11692 2021-03-11  Richard Biener  <rguenther@suse.de>
11693
11694         PR tree-optimization/99523
11695         * tree-cfg.c (dump_function_to_file): Dump SSA names
11696         w/o identifier to the decls section as well, not only those
11697         without a VAR_DECL.
11698
11699 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
11700
11701         PR ipa/99517
11702         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
11703         function calls with lhs fail if the lhs don't have compatible types.
11704
11705 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
11706
11707         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
11708         Change FRAME_POINTER_REGNUM to correspond to a new faked
11709         register faked_fp, part of GENNONACR_REGS like faked_ap.
11710         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
11711         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
11712         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
11713         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
11714         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
11715         register.
11716         (CRIS_REAL_FP_REGNUM): New constant.
11717         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
11718         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
11719         (cris_initial_elimination_offset): Handle elimination changes
11720         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
11721         and add one from FRAME_POINTER_REGNUM to
11722         HARD_FRAME_POINTER_REGNUM.
11723         (cris_expand_prologue, cris_expand_epilogue): Emit code for
11724         hard_frame_pointer_rtx instead of frame_pointer_rtx.
11725
11726 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
11727
11728         PR target/99492
11729         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
11730         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
11731
11732 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
11733
11734         PR target/99422
11735         * lra-constraints.c (process_address_1): Don't check unknown
11736         constraint, use X for empty constraint.
11737
11738 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
11739
11740         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
11741         Fix typo in comment describing "is_ha" argument.
11742
11743 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
11744
11745         * doc/sourcebuild.texi: Document LRA target selector.
11746
11747 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
11748
11749         * doc/ux.texi: Add subsection contrasting interactive versus
11750         batch usage of GCC.
11751
11752 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
11753
11754         PR target/99102
11755         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
11756         check condition.
11757         (vectorizable_load): Fix gather load mask check condition.
11758
11759 2021-03-10  Richard Biener  <rguenther@suse.de>
11760
11761         PR tree-optimization/99510
11762         * tree.c (check_aligned_type): Check that the candidate
11763         has TYPE_USER_ALIGN set instead of matching with the
11764         original type.
11765
11766 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
11767
11768         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
11769         float and vector integer modes only if the mode is not larger.
11770
11771 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
11772
11773         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
11774
11775 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
11776
11777         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
11778         constraints > 9.
11779         * ira-lives.c (single_reg_class): Ditto.
11780
11781 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11782
11783         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
11784         the architecture-specific rtems.h.
11785         (aarch64-*-rtems*): Likewise.
11786         (arm*-*-rtems*): Likewise.
11787         (epiphany-*-rtems*): Likewise.
11788         (riscv*-*-rtems*): Likewise.
11789
11790 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
11791
11792         PR tree-optimization/99305
11793         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
11794         before integer_all_onesp instead of vice versa.
11795
11796 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
11797
11798         * common/config/arm/arm-common.c (arm_config_default): Change type
11799         of 'i' to unsigned.
11800
11801 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
11802
11803         PR target/99454
11804         * lra-constraints.c (process_address_1): Process constraint 'g'
11805         separately and digital constraints containing more one digit.
11806
11807 2021-03-09  Nick Clifton  <nickc@redhat.com>
11808
11809         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
11810         (DWARF"_DEBUGGING_INFO): Define.
11811
11812 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
11813
11814         PR c++/90448
11815         * calls.c (initialize_argument_information): When the argument
11816         is passed by reference, do not make a copy in a thunk only if
11817         the argument is already in memory.  Remove redundant test for
11818         the case of callee copy.
11819
11820 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
11821
11822         PR target/99454
11823         * lra-constraints.c (process_address_1): Process 0..9 constraints
11824         in process_address_1.
11825
11826 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
11827
11828         * config/s390/s390.c (struct s390_processor processor_table):
11829         Binutils name string must not be empty.
11830
11831 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
11832
11833         * config/arc/arc.c (arc_attr_type): Remove function.
11834
11835 2021-03-09  Martin Liska  <mliska@suse.cz>
11836
11837         PR target/99464
11838         * config/i386/i386-options.c (ix86_option_override_internal):
11839         Set isa_flags for OPTS argument and not for the global
11840         global_options.
11841
11842 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
11843
11844         * config/rs6000/predicates.md (ds_form_mem_operand): Check
11845         in correct code.
11846
11847 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
11848
11849         PR target/99070
11850         * config/rs6000/predicates.md (ds_form_mem_operand) New
11851         predicate.
11852         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
11853         ds_form_mem_operand in ld/lwa patterns.
11854         * config/rs6000/fusion.md: Regenerate file.
11855
11856 2021-03-08  Martin Sebor  <msebor@redhat.com>
11857
11858         PR middle-end/98266
11859         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
11860         (array_bounds_checker::check_array_bounds): Call it.
11861
11862 2021-03-08  Martin Sebor  <msebor@redhat.com>
11863
11864         PR middle-end/97631
11865         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
11866         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
11867         destination size from allocation calls.  Issue a more appropriate
11868         kind of warning.
11869         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
11870         (handle_builtin_memset): Same.
11871
11872 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
11873
11874         PR target/98959
11875         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
11876         to ensure we do not have an Altivec style address.
11877         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
11878         an Altivec style address.
11879         (*vsx_le_perm_store_<mode>): Likewise.
11880         (splitters after *vsx_le_perm_store_<mode>): Likewise.
11881         (vsx_load_<mode>): Disable special expander if passed an Altivec
11882         style address.
11883         (vsx_store_<mode>): Likewise.
11884
11885 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11886
11887         PR target/99437
11888         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
11889         (aarch64_simd_shift_imm_vec_hi): Likewise.
11890         (aarch64_simd_shift_imm_vec_si): Likewise.
11891         (aarch64_simd_shift_imm_vec_di): Likewise.
11892         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
11893         predicate from above.
11894         (aarch64_shrn<mode>_insn_be): Likewise.
11895         (aarch64_rshrn<mode>_insn_le): Likewise.
11896         (aarch64_rshrn<mode>_insn_be): Likewise.
11897         (aarch64_shrn2<mode>_insn_le): Likewise.
11898         (aarch64_shrn2<mode>_insn_be): Likewise.
11899         (aarch64_rshrn2<mode>_insn_le): Likewise.
11900         (aarch64_rshrn2<mode>_insn_be): Likewise.
11901
11902 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
11903
11904         PR target/99422
11905         * lra-constraints.c (skip_contraint_modifiers): New function.
11906         (process_address_1): Use it before lookup_constraint call.
11907
11908 2021-03-08  Martin Liska  <mliska@suse.cz>
11909
11910         PR target/99463
11911         * config/i386/i386-options.c (ix86_option_override_internal):
11912         Enable UINTR and HRESET for -march that supports it.
11913
11914 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
11915
11916         * config/s390/s390.c (f_constraint_p): New function.
11917         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
11918         (TARGET_MD_ASM_ADJUST): Likewise.
11919
11920 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
11921
11922         PR fortran/97927
11923         * tree-nested.c (convert_local_reference_stmt): Avoid calling
11924         lookup_field_for_decl for Fortran module (= namespace context).
11925
11926 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
11927
11928         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
11929         comparison with arithmetic right shift.
11930         (s390_expand_vcond): No need for a force_reg anymore.
11931         s390_vec_compare will do it.
11932         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
11933         immediate operands.
11934
11935 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
11936
11937         PR target/99321
11938         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
11939         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
11940         and comment.
11941         * config/i386/sse.md (v_Yw): New define_mode_attr.
11942         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
11943         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
11944         in constraints.
11945         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
11946         xYw in constraints.
11947
11948 2021-03-06  Julian Brown  <julian@codesourcery.com>
11949
11950         * tree-pretty-print.c (dump_generic_node): Emit non-generic
11951         address space info for aggregates.
11952
11953 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
11954
11955         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
11956
11957 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
11958
11959         PR middle-end/99322
11960         * tree-cfg.c (bb_to_omp_idx): New variable.
11961         (execute_build_cfg): Release the bb_to_omp_idx vector after
11962         cleanup_tree_cfg returns.
11963         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
11964         for bb_to_omp_idx being a vec<int> instead of pointer to array
11965         of ints.
11966         (make_edges): Remove bb_to_omp_idx local variable, don't pass
11967         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
11968         vec<int> instead of pointer to array of ints and don't free/release
11969         it at the end.
11970         (remove_bb): When removing a bb and placing forced label somewhere
11971         else, ensure it is put into the same OpenMP region during cfg
11972         pass if possible or to entry successor as fallback.  Unregister
11973         bb from bb_to_omp_idx.
11974
11975 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
11976
11977         PR target/99378
11978         * lra-constraints.c (process_address_1): Skip decomposing address
11979         for asm insn operand with unknown constraint.
11980
11981 2021-03-05  Martin Jambor  <mjambor@suse.cz>
11982
11983         PR ipa/98078
11984         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
11985         corresponding speculative edges if we are about to resolve
11986         sepculation.  Make edge direct (and so resolve speculations) before
11987         removing it from call_site_hash.
11988         (cgraph_edge::make_direct): Relax the initial assert to allow calling
11989         the function on speculative direct edges.
11990
11991 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
11992
11993         PR rtl-optimization/99376
11994         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
11995         of low-order zero bits is too large, set the result to 0 directly.
11996
11997 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
11998
11999         PR middle-end/93235
12000         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
12001         SUBREG and a SUBREG to op_mode can't be created.
12002
12003 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
12004
12005         PR target/99381
12006         * config/aarch64/aarch64-sve-builtins.cc
12007         (function_resolver::require_vector_type): Handle error_mark_node.
12008
12009 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
12010
12011         * cfgexpand.c (expand_asm_loc): Pass new parameter.
12012         (expand_asm_stmt): Likewise.
12013         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
12014         parameter.
12015         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
12016         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
12017         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
12018         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
12019         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
12020         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
12021         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
12022         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
12023         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
12024         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
12025         * doc/tm.texi (md_asm_adjust): Likewise.
12026         * target.def (md_asm_adjust): Likewise.
12027
12028 2021-03-04  Richard Biener  <rguenther@suse.de>
12029
12030         PR middle-end/97855
12031         * tree-pretty-print.c: Poison pp_printf.
12032         (dump_decl_name): Avoid use of pp_printf.
12033         (dump_block_node): Likewise.
12034         (dump_generic_node): Likewise.
12035
12036 2021-03-04  Martin Sebor  <msebor@redhat.com>
12037
12038         PR middle-end/96963
12039         PR middle-end/94655
12040         * builtins.c (handle_array_ref): New helper.
12041         (handle_mem_ref): New helper.
12042         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
12043         into new helper functions.  Correct a workaround for vectorized
12044         assignments.
12045
12046 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
12047
12048         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
12049         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
12050         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
12051         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
12052         attribute for Power10.
12053         * config/rs6000/mma.md (*movoo): Likewise.
12054         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
12055         (define_mode_attr bits): Add DD/TD modes.
12056         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
12057         store_conditionalpti): Update size attribute for Power10.
12058
12059 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12060
12061         PR bootstrap/92002
12062         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
12063         -Wuninitialized, -Wmaybe-uninitialized.
12064         (wide-int.o-warn): Likewise.
12065
12066 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
12067
12068         * common/config/arm/arm-common.c: Include configargs.h.
12069         (arm_config_default): New function.
12070         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
12071         processors that do not support Thumb.  Take into account the
12072         --with-mode configuration setting for selecting the default.
12073         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
12074         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
12075
12076 2021-03-03  Martin Liska  <mliska@suse.cz>
12077
12078         PR gcov-profile/97461
12079         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
12080
12081 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12082
12083         PR target/99234
12084         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
12085         point back the hard frame pointer to its default location when the
12086         frame is larger than SEH_MAX_FRAME_SIZE.
12087
12088 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
12089
12090         PR target/99321
12091         * config/i386/predicates.md (logic_operator): New define_predicate.
12092         * config/i386/i386.md (mov + mem using comm arith peephole2):
12093         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
12094         and the inner mode is [QH]Imode.
12095
12096 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
12097
12098         PR debug/99090
12099         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
12100         (new_loc_list): Clear end_entry.
12101         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
12102         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
12103         typo.
12104         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
12105         initialize also end_entry.
12106
12107 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
12108
12109         PR target/99085
12110         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
12111         partitions, if in non-layout mode after reorder_blocks also move
12112         affected blocks to ensure a single partition transition.
12113
12114 2021-03-03  Jason Merrill  <jason@redhat.com>
12115
12116         PR c++/96078
12117         * cgraphunit.c (process_function_and_variable_attributes): Don't
12118         warn about flatten on an alias if the target also has it.
12119         * cgraph.h (symtab_node::get_alias_target_tree): New.
12120
12121 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
12122
12123         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
12124         period to symbol name.
12125         (tls_get_addr_internal<mode>): Same.
12126
12127 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
12128
12129         PR c/99323
12130         * diagnostic-show-locus.c
12131         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
12132         column 0.
12133
12134 2021-03-02  Martin Sebor  <msebor@redhat.com>
12135
12136         PR middle-end/99276
12137         * builtins.c (warn_for_access): Remove stray warning text.
12138
12139 2021-03-02  Martin Sebor  <msebor@redhat.com>
12140
12141         PR middle-end/99295
12142         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
12143         property.
12144
12145 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
12146
12147         PR debug/99319
12148         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
12149         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
12150         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
12151         DW_MACRO_define_strx and DW_MACRO_undef_strx.
12152         (save_macinfo_strings): Use DW_MACRO_*_str* even with
12153         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
12154         DW_MACRO_undef_strx.
12155
12156 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
12157
12158         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
12159         builtin signature.
12160         (BT_FN_V8HI_V8HI_UINT): Likewise.
12161         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
12162         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
12163         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
12164         New builtin definitions.
12165         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
12166         vector extension version.
12167         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
12168         available with current -march level.
12169         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
12170         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
12171         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
12172         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
12173         (vec_extend_to_fp32_lo): Likewise.
12174         (vec_round_from_fp32): Likewise.
12175         (vec_convert_to_fp16): Likewise.
12176         (vec_convert_from_fp16): Likewise.
12177         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
12178         (vclfnls_v8hi): Likewise.
12179         (vcrnfs_v8hi): Likewise.
12180         (vcfn_v8hi): Likewise.
12181         (vcnf_v8hi): Likewise.
12182
12183 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
12184
12185         * common/config/s390/s390-common.c (processor_flags_table): New entry.
12186         * config.gcc: Enable arch14 for --with-arch and --with-tune.
12187         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
12188         arch14 for unknown CPU models.
12189         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
12190         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
12191         (s390_get_sched_attrmask): Likewise.
12192         (s390_get_unit_mask): Likewise.
12193         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
12194         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
12195         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
12196         (TARGET_NNPA_P): New macro definitions.
12197         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
12198         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
12199
12200 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
12201
12202         PR middle-end/95757
12203         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
12204         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
12205         != 1 comparisons if name is lhs of a comparison.
12206
12207 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
12208
12209         PR target/44107
12210         PR target/48097
12211         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
12212         * config/darwin.c (darwin_should_restore_cfa_state): New.
12213         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
12214         * doc/tm.texi: Regenerated.
12215         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
12216         * dwarf2cfi.c (connect_traces): If the target requests, restore
12217         the CFA expression after a DW_CFA_restore.
12218         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
12219
12220 2021-03-01  Martin Liska  <mliska@suse.cz>
12221
12222         PR target/99313
12223         * optc-save-gen.awk: Add 4 more exceptions.
12224
12225 2021-03-01  Nathan Sidwell  <nathan@acm.org>
12226
12227         PR c++/99294
12228         * tree.h (TYPE_ALIGN_RAW): New accessor.
12229         (TYPE_ALIGN): Use it.
12230
12231 2021-03-01  Jan Hubicka  <jh@suse.cz>
12232
12233         PR ipa/98338
12234         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
12235
12236 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12237
12238         PR target/99234
12239         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
12240         point the hard frame pointer to the SSE register save area instead
12241         of the general register save area.  Perform only minimal adjustment
12242         for small frames if it is initially not correctly aligned.
12243         (ix86_expand_prologue): Remove early saves for a SEH target.
12244         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
12245
12246 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
12247
12248         PR c/99304
12249         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
12250         typo - referneced -> referenced.
12251         * tree.c (component_ref_size): Fix comment typo -
12252         refernce -> reference.
12253         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
12254         traling -> trailing.
12255         (aliasing_component_refs_p): Fix comment typos -
12256         refernce -> reference and refernece -> reference and
12257         traling -> trailing.
12258         (nonoverlapping_refs_since_match_p): Fix comment typo -
12259         referneces -> references.
12260         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
12261         referneces -> references.
12262
12263 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
12264
12265         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
12266         diagnostic message to avoid use of a contraction and format
12267         warning.
12268
12269 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
12270
12271         PR other/99288
12272         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
12273         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
12274         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
12275         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
12276         typos.
12277
12278 2021-02-26  Richard Biener  <rguenther@suse.de>
12279
12280         PR middle-end/99281
12281         * expr.c (store_field): For calls with return-slot optimization
12282         and addressable return type expand the store directly.
12283
12284 2021-02-26  Richard Biener  <rguenther@suse.de>
12285
12286         PR c/99275
12287         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
12288
12289 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
12290
12291         PR target/99279
12292         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
12293         with an "if" test.
12294
12295 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
12296
12297         * config.gcc: Add rs6000-pcrel-opt.o.
12298         * config/rs6000/rs6000-pcrel-opt.c: New file.
12299         * config/rs6000/pcrel-opt.md: New file.
12300         * config/rs6000/predicates.md: Add d_form_memory predicate.
12301         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
12302         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
12303         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
12304         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
12305         and make_pass_pcrel_opt().
12306         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
12307         (rs6000_option_override_internal): Add pcrel-opt.
12308         (rs6000_delegitimize_address): Support pcrel-opt.
12309         (rs6000_opt_masks): Add pcrel-opt.
12310         (pcrel_opt_valid_mem_p): New function.
12311         (reg_to_non_prefixed): Make global.
12312         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
12313         (output_pcrel_opt_reloc): New function.
12314         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
12315         (pcrel_extern_addr): Set loads_extern_addr.
12316         Add include for pcrel-opt.md.
12317         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
12318         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
12319         pcrel-opt.md.
12320
12321 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
12322
12323         PR target/98996
12324         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
12325         If TARGET_64BIT and dest is SUBREG, we check the width, if it
12326         equal to SImode, we use SImode operation, just like what we are
12327         doing for REG one.
12328
12329 2021-02-26  Marek Polacek  <polacek@redhat.com>
12330
12331         * builtins.c (warn_for_access): Fix typos.
12332
12333 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
12334
12335         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
12336         mark in front of the immediate quantity.
12337         (<optab>_rolsi3_uxtw): Likewise.
12338
12339 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
12340
12341         PR target/99271
12342         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
12343         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
12344         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
12345         address and disable when the FPCXT is not available.
12346         (nonsecure_call_value_reg_thumb2): Likewise.
12347
12348 2021-02-25  Nathan Sidwell  <nathan@acm.org>
12349
12350         PR c++/99166
12351         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
12352
12353 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
12354
12355         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
12356
12357 2021-02-25  Richard Biener  <rguenther@suse.de>
12358
12359         PR tree-optimization/99253
12360         * tree-vect-loop.c (check_reduction_path): First compute
12361         code, then verify out-of-loop uses.
12362
12363 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
12364
12365         PR target/95798
12366         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
12367
12368 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
12369
12370         PR tree-optimization/80635
12371         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
12372         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
12373         has mode precision.
12374
12375 2021-02-25  Richard Biener  <rguenther@suse.de>
12376
12377         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
12378         load_map population.
12379         (vect_match_slp_patterns_2): Revert part of last change.
12380         (vect_analyze_slp): Do not interleave optimize_load_redistribution
12381         with pattern detection but do it afterwards.  Dump the
12382         whole SLP graph after pattern recognition and load
12383         redistribution optimization finished.
12384
12385 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
12386
12387         PR fortran/99226
12388         * omp-low.c (struct omp_context): Add teams_nested_p and
12389         nonteams_nested_p members.
12390         (scan_omp_target): Diagnose teams nested inside of target with other
12391         directives strictly nested inside of the same target.
12392         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
12393         ctx->nonteams_nested_p as needed.
12394
12395 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
12396
12397         PR inline-asm/99123
12398         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
12399
12400 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
12401
12402         * config/cris/cris.c (cris_expand_prologue): Set
12403         current_function_static_stack_size, if flag_stack_usage_info.
12404
12405 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
12406
12407         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
12408         (rs6000_final_prescan_insn): Adjust.
12409         (rs6000_asm_output_opcode): Likewise.
12410
12411 2021-02-24  Martin Sebor  <msebor@redhat.com>
12412
12413         PR middle-end/97172
12414         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
12415         from function arguments.
12416
12417 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
12418
12419         PR tree-optimization/99220
12420         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
12421         node from cache when it's about to be deleted.
12422
12423 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
12424
12425         PR tree-optimization/99225
12426         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
12427         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
12428         build_int_cst (..., 1).  Formatting fixes.
12429
12430 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
12431
12432         PR tree-optimization/99149
12433         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
12434         buffer.
12435         (vect_slp_reset_pattern): Remove.
12436         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
12437         (complex_mul_pattern::build, complex_fma_pattern::build,
12438         complex_fms_pattern::build): Fix ref counts.
12439         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
12440         when node is being deleted.
12441         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
12442         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
12443         stores.
12444         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
12445
12446 2021-02-24  Matthias Klose  <doko@ubuntu.com>
12447
12448         Revert:
12449         2020-12-07  Matthias Klose  <doko@ubuntu.com>
12450
12451         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
12452         and ENABLE_RTL_FLAG_CHECKING.
12453
12454 2021-02-24  Richard Biener  <rguenther@suse.de>
12455
12456         PR c/99224
12457         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
12458
12459 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
12460
12461         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
12462         (vsx_assemble_pair): ...to this.
12463         (*mma_assemble_pair): Rename from this...
12464         (*vsx_assemble_pair): ...to this.
12465         (mma_disassemble_pair): Rename from this...
12466         (vsx_disassemble_pair): ...to this.
12467         (*mma_disassemble_pair): Rename from this...
12468         (*vsx_disassemble_pair): ...to this.
12469         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
12470         BU_COMPAT): New macros.
12471         (mma_assemble_pair): Rename from this...
12472         (vsx_assemble_pair): ...to this.
12473         (mma_disassemble_pair): Rename from this...
12474         (vsx_disassemble_pair): ...to this.
12475         (mma_assemble_pair): New compatibility built-in.
12476         (mma_disassemble_pair): Likewise.
12477         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
12478         (RS6000_BUILTIN_COMPAT): Define.
12479         (bdesc_compat): New.
12480         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
12481         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
12482         and VSX_BUILTIN_ASSEMBLE_PAIR.
12483         (rs6000_init_builtins): Register compatibility built-ins.
12484         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
12485         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
12486         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
12487         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
12488         (__builtin_vsx_assemble_pair): ...to this.
12489         (__builtin_mma_disassemble_pair): Rename from this...
12490         (__builtin_vsx_disassemble_pair): ...to this.
12491
12492 2021-02-23  Martin Liska  <mliska@suse.cz>
12493
12494         PR sanitizer/99168
12495         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
12496         with different alignment. That leads to an invalid red zone
12497         size allocated in runtime.
12498
12499 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
12500
12501         PR tree-optimization/99204
12502         * fold-const.c (fold_read_from_constant_string): Check that
12503         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
12504
12505 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
12506             Kewen Lin  <linkw@gcc.gnu.org>
12507
12508         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
12509         (rotl<mode>3_insert_3): ...this.
12510         (plus_ior_xor): New code_iterator.
12511         (define_split for GPR rl*imi): New splitter.
12512         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
12513         for integer merging.
12514
12515 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12516
12517         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
12518         Define.
12519         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
12520         into a register when the above is enabled.
12521         * config/aarch64/aarch64.c (neoversev1_tunings):
12522         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
12523         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
12524
12525 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
12526
12527         * config/cris/cris.c (cris_print_operand) <'T'>: Change
12528         valid operand from is now an addi mult-value to shift-value.
12529         * config/cris/cris.md (*addi): Change expression of scaled
12530         operand from mult to ashift.
12531         * config/cris/cris.md (*addi_reload): New insn_and_split.
12532
12533 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
12534
12535         PR target/85074
12536         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
12537         hook_bool_const_tree_hwi_hwi_const_tree_true.
12538         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
12539
12540 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12541
12542         PR rtl-optimization/98791
12543         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
12544         for unordered modes.
12545
12546 2021-02-22  Martin Liska  <mliska@suse.cz>
12547
12548         * tree-inline.c (inline_forbidden_p): Set
12549         inline_forbidden_reason.
12550
12551 2021-02-22  Richard Biener  <rguenther@suse.de>
12552
12553         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
12554         costed subgraph.
12555
12556 2021-02-22  Richard Biener  <rguenther@suse.de>
12557
12558         PR tree-optimization/99165
12559         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
12560         Accumulate changed to ret.
12561
12562 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
12563
12564         Revert:
12565         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
12566
12567         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
12568
12569 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
12570
12571         PR target/99134
12572         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
12573         pattern.
12574         (trunctf<DFP_ALL:mode>2): Likewise.
12575         (trunctdtf2_vr): Likewise.
12576         (trunctdtf2): Likewise.
12577         (extend<DFP_ALL:mode>tf2_vr): Likewise.
12578         (extend<DFP_ALL:mode>tf2): Likewise.
12579         (extendtftd2_vr): Likewise.
12580         (extendtftd2): Likewise.
12581
12582 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
12583
12584         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
12585         add memory alternative.
12586         (tf_to_fprx2): New pattern.
12587
12588 2021-02-19  Martin Sebor  <msebor@redhat.com>
12589
12590         PR c/97172
12591         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
12592         (attr_access::free_lang_data): Remove a spurious test.
12593
12594 2021-02-19  Nathan Sidwell  <nathan@acm.org>
12595
12596         * doc/invoke.texi (flang-info-module-read): Document.
12597
12598 2021-02-19  Martin Liska  <mliska@suse.cz>
12599
12600         PR translation/99167
12601         * params.opt: Fix typo.
12602
12603 2021-02-19  Richard Biener  <rguenther@suse.de>
12604
12605         PR middle-end/99122
12606         * tree-inline.c (inline_forbidden_p): Do not inline functions
12607         with VLA arguments or return value.
12608
12609 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
12610
12611         PR target/98998
12612         * config/arm/arm.md (*stack_protect_combined_set_insn,
12613         *stack_protect_combined_test_insn): If force_const_mem result
12614         is not valid general operand, force its address into the destination
12615         register first.
12616
12617 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
12618
12619         PR ipa/99034
12620         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
12621         pad or non-local label, put FORCED_LABELs from bb b after that label
12622         rather than before it.
12623
12624 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12625
12626         PR target/98657
12627         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
12628         expand_vector_broadcast' to emit the vec_duplicate operand.
12629
12630 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
12631
12632         PR rtl-optimization/96264
12633         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
12634         hard regs.
12635
12636 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
12637
12638         PR target/99113
12639         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
12640         looking up the retain attribute.
12641         (resolve_unique_section): Likewise.
12642         (get_variable_section): Likewise.
12643         (switch_to_section): Likewise.  Warn when a symbol without the
12644         retain attribute and a symbol with the retain attribute are
12645         placed in the section with the same name, instead of the used
12646         attribute.
12647         * doc/extend.texi: Document the "retain" attribute.
12648
12649 2021-02-18  Nathan Sidwell  <nathan@acm.org>
12650
12651         PR c++/99023
12652         * doc/invoke.texi (flang-info-include-translate): Document header
12653         lookup behaviour.
12654
12655 2021-02-18  Richard Biener  <rguenther@suse.de>
12656
12657         PR middle-end/99122
12658         * ipa-fnsummary.c (analyze_function_body): Set
12659         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
12660         * tree-inline.c (insert_init_debug_bind): Pass NULL for
12661         error_mark_node values.
12662         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
12663         values.
12664         (setup_one_parameter): Delay force_value_to_type until when
12665         it's needed.
12666
12667 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
12668
12669         PR tree-optimization/99142
12670         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
12671
12672 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
12673
12674         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
12675         wide_int_bitmask::wide_int_bitmask (uint64_t),
12676         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
12677         wide_int_bitmask::operator ~ () const,
12678         wide_int_bitmask::operator | (wide_int_bitmask) const,
12679         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
12680         instead of inline.
12681         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
12682         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
12683         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
12684         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
12685         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
12686         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
12687         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
12688         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
12689         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
12690         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
12691         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
12692         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
12693         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
12694         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
12695         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
12696         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
12697         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
12698         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
12699         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
12700         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
12701         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
12702         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
12703         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
12704         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
12705
12706 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
12707
12708         PR middle-end/99109
12709         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
12710         (build_printable_array_type): ... this.  Add nelts argument.  For
12711         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
12712         nelts, call build_array_type_nelts.
12713         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
12714         instead of build_zero_elt_array_type and build_array_type_nelts.
12715
12716 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
12717
12718         PR target/99104
12719         * config/i386/i386.c (distance_non_agu_define): Don't call
12720         extract_insn_cached here.
12721         (ix86_lea_outperforms): Save and restore recog_data around call
12722         to distance_non_agu_define and distance_agu_use.
12723         (ix86_ok_to_clobber_flags): Remove.
12724         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
12725         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
12726         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
12727         into define_insn.  Move the splitting to define_peephole2 and
12728         check there using peep2_regno_dead_p if FLAGS_REG is dead.
12729
12730 2021-02-17  Julian Brown  <julian@codesourcery.com>
12731
12732         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
12733         for non-decls.
12734
12735 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
12736
12737         PR target/98491
12738         * config/mips/mips.c (mips_symbol_insns): Do not use
12739         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
12740
12741 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
12742
12743         PR inline-asm/98096
12744         * stmt.c (resolve_operand_name_1): Take inout operands into account
12745         for access to labels by names.
12746         * doc/extend.texi: Describe counting operands for accessing labels.
12747
12748 2021-02-16  Richard Biener  <rguenther@suse.de>
12749
12750         PR tree-optimization/38474
12751         * tree-ssa-structalias.c (variable_info::address_taken): New.
12752         (new_var_info): Initialize address_taken.
12753         (process_constraint): Set address_taken.
12754         (solve_constraints): Use the new address_taken flag rather
12755         than is_reg_var for sorting variables.
12756         (dump_constraint): Dump the variable number if the name
12757         is just NULL.
12758
12759 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
12760
12761         PR target/99100
12762         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
12763         multiply by 4096 and for inbranch by 8192.
12764         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
12765         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
12766
12767 2021-02-15  Maya Rashish  <coypu@sdf.org>
12768
12769         * config/aarch64/aarch64.c (aarch64_init_builtins):
12770         Call SUBTARGET_INIT_BUILTINS.
12771
12772 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
12773
12774         PR rtl-optimization/98872
12775         * init-regs.c (initialize_uninitialized_regs): Skip initialization
12776         if CONST0_RTX is NULL.
12777
12778 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
12779
12780         PR rtl-optimization/98863
12781         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
12782         (function_info::build_info): Turn into a declaration, moving the
12783         definition to internals.h.
12784         (function_info::bb_walker): Declare.
12785         (function_info::create_reg_use): Likewise.
12786         (function_info::calculate_potential_phi_regs): Take a build_info
12787         parameter.
12788         (function_info::place_phis, function_info::create_ebbs): Declare.
12789         (function_info::calculate_ebb_live_in_for_debug): Likewise.
12790         (function_info::populate_backedge_phis): Delete.
12791         (function_info::start_block, function_info::end_block): Declare.
12792         (function_info::populate_phi_inputs): Delete.
12793         (function_info::m_potential_phi_regs): Move information to build_info.
12794         * rtl-ssa/internals.h: New file.
12795         (function_info::bb_phi_info): New class.
12796         (function_info::build_info): Moved from functions.h.
12797         Add a constructor and destructor.
12798         (function_info::build_info::ebb_use): Delete.
12799         (function_info::build_info::ebb_def): Likewise.
12800         (function_info::build_info::bb_live_out): Likewise.
12801         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
12802         (function_info::build_info::potential_phi_regs): Likewise.
12803         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
12804         (function_info::build_info::ebb_def_regs): Likewise.
12805         (function_info::build_info::bb_phis): Likewise.
12806         (function_info::build_info::bb_mem_live_out): Likewise.
12807         (function_info::build_info::bb_to_rpo): Likewise.
12808         (function_info::build_info::def_stack): Likewise.
12809         (function_info::build_info::old_def_stack_limit): Likewise.
12810         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
12811         Remove the regno argument.  Push the previous definition onto the
12812         definition stack where necessary.
12813         * rtl-ssa/accesses.cc: Include internals.h.
12814         * rtl-ssa/changes.cc: Likewise.
12815         * rtl-ssa/blocks.cc: Likewise.
12816         (function_info::build_info::build_info): Define.
12817         (function_info::build_info::~build_info): Likewise.
12818         (function_info::bb_walker): New class.
12819         (function_info::bb_walker::bb_walker): Define.
12820         (function_info::add_live_out_use): Convert a logarithmic-complexity
12821         test into a linear one.  Allow the same definition to be passed
12822         multiple times.
12823         (function_info::calculate_potential_phi_regs): Moved from
12824         functions.cc.  Take a build_info parameter and store the
12825         information there instead.
12826         (function_info::place_phis): New function.
12827         (function_info::add_entry_block_defs): Update call to record_reg_def.
12828         (function_info::calculate_ebb_live_in_for_debug): New function.
12829         (function_info::add_phi_nodes): Use bb_phis to decide which
12830         registers need phi nodes and initialize ebb_def_regs accordingly.
12831         Do not add degenerate phis here.
12832         (function_info::add_artificial_accesses): Use create_reg_use.
12833         Assert that all definitions are listed in the DF LR sets.
12834         Update call to record_reg_def.
12835         (function_info::record_block_live_out): Record live-out register
12836         values in the phis of successor blocks.  Use the live-out set
12837         when processing the last block in an EBB, instead of always
12838         using the live-in sets of successor blocks.  AND the live sets
12839         with the set of registers that have been defined in the EBB,
12840         rather than with all potential phi registers.  Cope correctly
12841         with branches back to the start of the current EBB.
12842         (function_info::start_block): New function.
12843         (function_info::end_block): Likewise.
12844         (function_info::populate_phi_inputs): Likewise.
12845         (function_info::create_ebbs): Likewise.
12846         (function_info::process_all_blocks): Rewrite into a multi-phase
12847         process.
12848         * rtl-ssa/functions.cc: Include internals.h.
12849         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
12850         (function_info::init_function_data): Remove caller.
12851         * rtl-ssa/insns.cc: Include internals.h
12852         (function_info::create_reg_use): New function.  Lazily any
12853         degenerate phis needed by the linear RPO view.
12854         (function_info::record_use): Use create_reg_use.  When processing
12855         debug uses, use potential_phi_regs and test it before checking
12856         whether the register is live on entry to the current EBB.  Lazily
12857         calculate ebb_live_in_for_debug.
12858         (function_info::record_call_clobbers): Update call to record_reg_def.
12859         (function_info::record_def): Likewise.
12860
12861 2021-02-15  Martin Liska  <mliska@suse.cz>
12862
12863         * toplev.c (init_asm_output): Free output of
12864         gen_command_line_string function.
12865         (process_options): Likewise.
12866
12867 2021-02-15  Martin Liska  <mliska@suse.cz>
12868
12869         * params.opt: Add 2 missing Param keywords.
12870
12871 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12872
12873         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
12874
12875 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
12876
12877         PR tree-optimization/99079
12878         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
12879         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
12880         require both type and TREE_TYPE (@1) to be integral types and either
12881         type having smaller or equal precision, or TREE_TYPE (@1) being
12882         unsigned type, or type being signed type.  If TREE_TYPE (@1)
12883         doesn't have wrapping overflow, perform the subtraction of one in
12884         unsigned type.
12885
12886 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
12887             Richard Biener  <rguether@suse.de>
12888
12889         PR ipa/97346
12890         * ipa-reference.c (ipa_init): Only conditinally initialize
12891         reference_vars_to_consider.
12892         (propagate): Conditionally deninitialize reference_vars_to_consider.
12893         (ipa_reference_write_optimization_summary): Sanity check that
12894         reference_vars_to_consider is not allocated.
12895
12896 2021-02-13  Levy Hsu  <admin@levyhsu.com>
12897
12898         PR target/97417
12899         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
12900         extend parameter to get_si_mem_base_reg declaration.
12901         (get_si_mem_base_reg): Add extend parameter.  Set it.
12902         (analyze): Pass extend arg to get_si_mem_base_reg.
12903         (transform): Likewise.  Use it when rewriting mems.
12904         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
12905         loads and emit sign/zero extending load followed by subreg move.
12906
12907 2021-02-13  Jim Wilson  <jimw@sifive.com>
12908
12909         PR target/97417
12910         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
12911         exit when !reload_completed.  Only perform check for compressed reg
12912         if reload_completed.
12913         (riscv_rtx_costs): In MEM case, when optimizing for size and
12914         shorten memrefs, if not compressible, then increase cost.
12915
12916 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
12917
12918         PR rtl-optimization/98439
12919         * recog.c (pass_split_before_regstack::gate): Enable even when
12920         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
12921         on.
12922
12923 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
12924
12925         PR target/96166
12926         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
12927         swap of V2SImode elements in memory into DImode memory rotate by 32.
12928
12929 2021-02-12  Martin Sebor  <msebor@redhat.com>
12930
12931         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
12932
12933 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
12934
12935         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
12936         m_temp_obstack rather than m_obstack to allocate the temporary use.
12937
12938 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
12939
12940         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
12941         as read-modify operations.
12942
12943 2021-02-12  Richard Biener  <rguenther@suse.de>
12944
12945         PR middle-end/38474
12946         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
12947         fbi->aa_walk_budget is bigger than zero.  Update
12948         fbi->aa_walk_budget.
12949         (param_change_prob): Likewise.
12950         * ipa-prop.c (detect_type_change_from_memory_writes):
12951         Properly account walk_aliased_vdefs.
12952         (parm_preserved_before_stmt_p): Canonicalize updates.
12953         (parm_ref_data_preserved_p): Likewise.
12954         (parm_ref_data_pass_through_p): Likewise.
12955         (determine_known_aggregate_parts): Account own alias queries.
12956
12957 2021-02-12  Martin Liska  <mliska@suse.cz>
12958
12959         * opts-common.c (decode_cmdline_option): Release werror_arg.
12960         * opts.c (gen_producer_string): Release output of
12961         gen_command_line_string.
12962
12963 2021-02-12  Richard Biener  <rguenther@suse.de>
12964
12965         PR tree-optimization/38474
12966         * params.opt (-param=max-store-chains-to-track=): New param.
12967         (-param=max-stores-to-track=): Likewise.
12968         * doc/invoke.texi (max-store-chains-to-track): Document.
12969         (max-stores-to-track): Likewise.
12970         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
12971         New.
12972         (pass_store_merging::m_n_stores): Likewise.
12973         (pass_store_merging::terminate_and_process_chain): Update
12974         m_n_stores and m_n_chains.
12975         (pass_store_merging::process_store): Likewise.   Terminate
12976         oldest chains if the number of stores or chains get too large.
12977         (imm_store_chain_info::terminate_and_process_chain): Dump
12978         chain length.
12979
12980 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12981
12982         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
12983         the cold section, emit a nop before the directive if the previous
12984         active instruction can throw.
12985
12986 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
12987
12988         PR target/99041
12989         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
12990         memory addresses that are legal for quad word accesses.
12991
12992 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
12993
12994         PR target/98931
12995         * config/arm/thumb2.md (*doloop_end_internal): Generate
12996         alternative sequence to handle long range branches.
12997
12998 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
12999
13000         PR tree-optimization/98772
13001         * optabs-tree.c (supportable_half_widening_operation): New function
13002         to check for supportable V8QI->V8HI widening patterns.
13003         * optabs-tree.h (supportable_half_widening_operation): New function.
13004         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
13005         to create promotion stmts for V8QI->V8HI widening patterns.
13006         (vectorizable_conversion): Add case for V8QI->V8HI.
13007
13008 2021-02-11  Richard Biener  <rguenther@suse.de>
13009
13010         * sparseset.h (SPARSESET_ELT_BITS): Remove.
13011         (SPARSESET_ELT_TYPE): Use unsigned int.
13012         * fwprop.c: Do not include sparseset.h.
13013
13014 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
13015
13016         PR c++/99035
13017         * varasm.c (declare_weak): For -fsyntax-only, allow even
13018         TREE_ASM_WRITTEN function decls.
13019
13020 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
13021
13022         PR target/99025
13023         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
13024         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
13025         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
13026         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
13027         calling simplify_gen_subreg on it.
13028
13029 2021-02-10  Martin Liska  <mliska@suse.cz>
13030
13031         * config/nvptx/nvptx.c (nvptx_option_override): Use
13032         flag_patchable_function_entry instead of the removed
13033         function_entry_patch_area_size.
13034
13035 2021-02-10  Martin Liska  <mliska@suse.cz>
13036
13037         PR tree-optimization/99002
13038         PR tree-optimization/99026
13039         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
13040         leak when adjacent cases are merged.
13041         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
13042         release_clusters.
13043         (make_pass_lower_switch): Remove trailing whitespace.
13044         * tree-switch-conversion.h (release_clusters): New.
13045
13046 2021-02-10  Richard Biener  <rguenther@suse.de>
13047
13048         PR rtl-optimization/99054
13049         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
13050         (fixup_partitions): Adjust.
13051         (rtl_verify_edges): Likewise.
13052
13053 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
13054
13055         PR middle-end/99007
13056         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
13057         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
13058         calls.
13059
13060 2021-02-10  Richard Biener  <rguenther@suse.de>
13061
13062         PR ipa/99029
13063         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
13064         for callees.
13065
13066 2021-02-10  Richard Biener  <rguenther@suse.de>
13067
13068         PR tree-optimization/99024
13069         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
13070         clear loop->aux if it is associated with the destroyed loop_vinfo.
13071
13072 2021-02-10  Martin Liska  <mliska@suse.cz>
13073
13074         PR tree-optimization/99002
13075         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
13076         in the function.
13077
13078 2021-02-10  Martin Liska  <mliska@suse.cz>
13079
13080         PR ipa/99003
13081         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
13082         a reference exists.
13083
13084 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
13085
13086         PR debug/98755
13087         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
13088         at class scope for DWARF5+.
13089
13090 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
13091
13092         PR rtl-optimization/96015
13093         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
13094         (relax_delay_slots): When deleting a jump to the next active
13095         instruction over a barrier, first delete the barrier if the
13096         jump is the only way to reach the target label.
13097
13098 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13099
13100         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
13101         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
13102         vector multiplies and vect.alu for SSRA.
13103         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
13104         vect.mul cost field.
13105         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
13106         * config/arm/arm.c: Likewise.
13107
13108 2021-02-09  Richard Biener  <rguenther@suse.de>
13109
13110         PR tree-optimization/98863
13111         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
13112         * tree-ssa-sccvn.c (last_pushed_avail): New global.
13113         (rpo_elim::eliminate_push_avail): Chain pushed avails.
13114         (unwind_state::avail_top): Add.
13115         (do_unwind): Rewrite unwinding of avail entries.
13116         (do_rpo_vn): Initialize last_pushed_avail and
13117         avail_top of the undo state.
13118
13119 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
13120
13121         PR middle-end/99004
13122         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
13123         const char * to char * and free those pointers after use.
13124
13125 2021-02-09  Richard Biener  <rguenther@suse.de>
13126
13127         PR tree-optimization/99017
13128         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
13129         zero vector cost entries.
13130
13131 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13132
13133         PR middle-end/98974
13134         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
13135         parameter in vectorizable_condition.
13136
13137 2021-02-08  Richard Biener  <rguenther@suse.de>
13138
13139         PR lto/96591
13140         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
13141
13142 2021-02-08  Martin Liska  <mliska@suse.cz>
13143
13144         PR lto/98971
13145         * cfgexpand.c (pass_expand::execute): Parse per-function option
13146         flag_patchable_function_entry and use it.
13147         * common.opt: Remove function_entry_patch_area_size and
13148         function_entry_patch_area_start global variables.
13149         * opts.c (parse_and_check_patch_area): New function.
13150         (common_handle_option): Use it.
13151         * opts.h (parse_and_check_patch_area): New function.
13152         * toplev.c (process_options): Parse and use
13153         function_entry_patch_area_size.
13154
13155 2021-02-08  Martin Sebor  <msebor@redhat.com>
13156
13157         * doc/extend.texi (attribute malloc): Correct typos.
13158
13159 2021-02-05  Nathan Sidwell  <nathan@acm.org>
13160
13161         PR driver/98943
13162         * gcc.c (driver::maybe_run_linker): Check for input file
13163         accessibility if not linking.
13164
13165 2021-02-05  Richard Biener  <rguenther@suse.de>
13166
13167         PR tree-optimization/98855
13168         * tree-vectorizer.h (add_stmt_cost): New overload.
13169         * tree-vect-slp.c (li_cost_vec_cmp): New.
13170         (vect_bb_slp_scalar_cost): Cost individual loop regions
13171         separately.  Account for the scalar instance root stmt.
13172
13173 2021-02-05  Tom de Vries  <tdevries@suse.de>
13174
13175         PR debug/98656
13176         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
13177         argument.
13178         (bit_test_cluster::emit): Reuse location_t for newly created
13179         gswitch statement.
13180         (switch_decision_tree::try_switch_expansion): Preserve
13181         location_t.
13182         * tree-switch-conversion.h: Change function signatures.
13183
13184 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
13185
13186         PR target/98957
13187         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
13188         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
13189         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
13190         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
13191
13192 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13193
13194         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
13195         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
13196         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
13197         (vget_high_f16): Reimplement using new builtin.
13198         (vget_high_f32): Likewise.
13199         (vget_high_f64): Likewise.
13200         (vget_high_p8): Likewise.
13201         (vget_high_p16): Likewise.
13202         (vget_high_p64): Likewise.
13203         (vget_high_s8): Likewise.
13204         (vget_high_s16): Likewise.
13205         (vget_high_s32): Likewise.
13206         (vget_high_s64): Likewise.
13207         (vget_high_u8): Likewise.
13208         (vget_high_u16): Likewise.
13209         (vget_high_u32): Likewise.
13210         (vget_high_u64): Likewise.
13211
13212 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13213
13214         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
13215         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
13216         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
13217         (vget_low_f16): Reimplement using new builtin.
13218         (vget_low_f32): Likewise.
13219         (vget_low_f64): Likewise.
13220         (vget_low_p8): Likewise.
13221         (vget_low_p16): Likewise.
13222         (vget_low_p64): Likewise.
13223         (vget_low_s8): Likewise.
13224         (vget_low_s16): Likewise.
13225         (vget_low_s32): Likewise.
13226         (vget_low_s64): Likewise.
13227         (vget_low_u8): Likewise.
13228         (vget_low_u16): Likewise.
13229         (vget_low_u32): Likewise.
13230         (vget_low_u64): Likewise.
13231
13232 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
13233
13234         * gcc.c (print_multilib_info): Check all required argument is provided
13235         by default arg.
13236
13237 2021-02-05  liuhongt  <hongtao.liu@intel.com>
13238
13239         PR target/98537
13240         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
13241         generate integer mask comparison for 128/256-bits vector when
13242         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
13243         delete redundant !maskcmp condition.
13244         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
13245         here.
13246         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
13247         condition directly to if (maskcmp), add extra check for
13248         cmpmode, it should be MODE_INT.
13249         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
13250         parameters op_true/op_false.
13251         (ix86_use_mask_cmp_p): New.
13252
13253 2021-02-05  liuhongt  <hongtao.liu@intel.com>
13254
13255         PR target/98172
13256         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
13257         Remove m_GENERIC from ~list.
13258         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
13259
13260 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
13261
13262         PR c/97932
13263         * diagnostic-show-locus.c (compatible_locations_p): Require
13264         locations in the same macro map to be either both from the
13265         macro definition, or both from the macro arguments.
13266
13267 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
13268
13269         * config/aarch64/aarch64-simd-builtins.def: Add
13270         [su]mull_hi_lane[q] builtin generator macros.
13271         * config/aarch64/aarch64-simd.md
13272         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
13273         (aarch64_<su>mull_hi_lane<mode>): Define.
13274         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
13275         (aarch64_<su>mull_hi_laneq<mode>): Define.
13276         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
13277         builtin instead of inline asm.
13278         (vmull_high_lane_s32): Likewise.
13279         (vmull_high_lane_u16): Likewise.
13280         (vmull_high_lane_u32): Likewise.
13281         (vmull_high_laneq_s16): Likewise.
13282         (vmull_high_laneq_s32): Likewise.
13283         (vmull_high_laneq_u16): Likewise.
13284         (vmull_high_laneq_u32): Liekwise.
13285
13286 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
13287
13288         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
13289         builtin generator macros.
13290         * config/aarch64/aarch64-simd.md
13291         (aarch64_<su>mull_hi_n<mode>_insn): Define.
13292         (aarch64_<su>mull_hi_n<mode>): Define.
13293         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
13294         instead of inline asm.
13295         (vmull_high_n_s32): Likewise.
13296         (vmull_high_n_u16): Likewise.
13297         (vmull_high_n_u32): Likewise.
13298
13299 2021-02-04  Richard Biener  <rguenther@suse.de>
13300
13301         PR tree-optimization/98855
13302         * tree-vect-loop.c (vectorizable_phi): Do not cost
13303         single-argument PHIs.
13304         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
13305         * tree-vect-stmts.c (vectorizable_bswap): Also perform
13306         costing for SLP operation.
13307
13308 2021-02-04  Martin Liska  <mliska@suse.cz>
13309
13310         * doc/extend.texi: Mention -mprefer-vector-width in target
13311         attributes.
13312
13313 2021-02-03  Martin Sebor  <msebor@redhat.com>
13314
13315         PR tree-optimization/98937
13316         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
13317         Flush pointer_query cache.
13318
13319 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
13320
13321         * config/rs6000/genfusion.pl (gen_2logical): Add missing
13322         fixes based on patch review.
13323         * config/rs6000/fusion.md: Regenerate file.
13324
13325 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
13326
13327         * config/rs6000/t-rs6000: Comment out auto generation of
13328         fusion.md for now.
13329
13330 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
13331
13332         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
13333         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
13334         (output_file_start): Add gfx908.
13335         * config/gcn/gcn.opt (gpu_type): Add gfx908.
13336         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
13337         (MULTILIB_DIRNAMES): Add gfx908.
13338         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
13339         (main): Recognize gfx908.
13340         * config/gcn/t-omp-device: Add gfx908.
13341
13342 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
13343
13344         * config/aarch64/aarch64-simd-builtins.def: Add
13345         [su]mlsl_hi_lane[q] builtin macro generators.
13346         * config/aarch64/aarch64-simd.md
13347         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
13348         (aarch64_<su>mlsl_hi_lane<mode>): Define.
13349         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
13350         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
13351         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
13352         builtin instead of inline asm.
13353         (vmlsl_high_lane_s32): Likewise.
13354         (vmlsl_high_lane_u16): Likewise.
13355         (vmlsl_high_lane_u32): Likewise.
13356         (vmlsl_high_laneq_s16): Likewise.
13357         (vmlsl_high_laneq_s32): Likewise.
13358         (vmlsl_high_laneq_u16): Likewise.
13359         (vmlsl_high_laneq_u32): Likewise.
13360         (vmlal_high_laneq_u32): Likewise.
13361
13362 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
13363
13364         * config/aarch64/aarch64-simd-builtins.def: Add
13365         [su]mlal_hi_lane[q] builtin generator macros.
13366         * config/aarch64/aarch64-simd.md
13367         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
13368         (aarch64_<su>mlal_hi_lane<mode>): Define.
13369         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
13370         (aarch64_<su>mlal_hi_laneq<mode>): Define.
13371         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
13372         builtin instead of inline asm.
13373         (vmlal_high_lane_s32): Likewise.
13374         (vmlal_high_lane_u16): Likewise.
13375         (vmlal_high_lane_u32): Likewise.
13376         (vmlal_high_laneq_s16): Likewise.
13377         (vmlal_high_laneq_s32): Likewise.
13378         (vmlal_high_laneq_u16): Likewise.
13379         (vmlal_high_laneq_u32): Likewise.
13380
13381 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
13382
13383         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
13384         builtin generator macros.
13385         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
13386         Define.
13387         (aarch64_<su>mlsl_hi_n<mode>): Define.
13388         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
13389         instead of inline asm.
13390         (vmlsl_high_n_s32): Likewise.
13391         (vmlsl_high_n_u16): Likewise.
13392         (vmlsl_high_n_u32): Likewise.
13393
13394 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
13395
13396         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
13397         builtin generator macros.
13398         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
13399         Define.
13400         (aarch64_<su>mlal_hi_n<mode>): Define.
13401         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
13402         instead of inline asm.
13403         (vmlal_high_n_s32): Likewise.
13404         (vmlal_high_n_u16): Likewise.
13405         (vmlal_high_n_u32): Likewise.
13406
13407 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
13408
13409         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
13410         generator macros.
13411         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
13412         Rename to...
13413         (aarch64_<su>mlal_hi<mode>_insn): This.
13414         (aarch64_<su>mlal_hi<mode>): Define.
13415         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
13416         instead of inline asm.
13417         (vmlal_high_s16): Likewise.
13418         (vmlal_high_s32): Likewise.
13419         (vmlal_high_u8): Likewise.
13420         (vmlal_high_u16): Likewise.
13421         (vmlal_high_u32): Likewise.
13422
13423 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
13424
13425         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
13426         after calling alter_subreg() on a (mem).
13427
13428 2021-02-03  Martin Liska  <mliska@suse.cz>
13429
13430         PR lto/98912
13431         * lto-streamer-out.c (produce_lto_section): Fill up missing
13432         padding.
13433         * lto-streamer.h (struct lto_section): Add _padding field.
13434
13435 2021-02-03  Richard Biener  <rguenther@suse.de>
13436
13437         * lto-streamer.c (lto_get_section_name): Free temporary
13438         buffer.
13439         * tree-loop-distribution.c
13440         (loop_distribution::merge_dep_scc_partitions): Free edge data.
13441
13442 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
13443
13444         PR middle-end/97487
13445         * ifcvt.c (noce_can_force_operand): New function.
13446         (noce_emit_move_insn): Use it.
13447         (noce_try_sign_mask): Likewise.  Formatting fix.
13448
13449 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
13450
13451         PR middle-end/97971
13452         * lra-constraints.c (process_alt_operands): For inline asm, don't call
13453         fatal_insn, but instead return false.
13454
13455 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
13456
13457         PR tree-optimization/98287
13458         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
13459         for V1DImode.
13460
13461 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
13462
13463         PR tree-optimization/98928
13464         * tree-vect-loop.c (vect_analyze_loop_2): Change
13465         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
13466         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
13467         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
13468         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
13469
13470 2021-02-02  Richard Biener  <rguenther@suse.de>
13471
13472         * gimple-loop-interchange.cc (prepare_data_references):
13473         Release vectors.
13474         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
13475         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
13476         * tree-vect-stmts.c (vectorizable_condition): Do not
13477         allocate vectors.
13478         (vectorizable_comparison): Likewise.
13479
13480 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13481
13482         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
13483         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
13484         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
13485         (vrsqrteq_u32): Likewise.
13486
13487 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13488
13489         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
13490         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
13491         (aarch64_sqxtun2<mode>_be): Likewise.
13492         (aarch64_sqxtun2<mode>): Likewise.
13493         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
13494         (vqmovun_high_s32): Likewise.
13495         (vqmovun_high_s64): Likewise.
13496         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
13497
13498 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13499
13500         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
13501         AUTO_FP flags.
13502         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
13503
13504 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13505
13506         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
13507         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
13508         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
13509         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
13510         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
13511         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
13512         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
13513         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
13514
13515 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13516
13517         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
13518         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
13519         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
13520
13521 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13522
13523         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
13524         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
13525
13526 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13527
13528         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
13529         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
13530         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
13531         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
13532         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
13533         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
13534         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
13535         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
13536         NONE builtin flags.
13537
13538 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
13539
13540         PR tree-optimization/98848
13541         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
13542         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
13543
13544 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
13545
13546         PR target/98743
13547         * expr.c: Check mode before calling store_expr.
13548
13549 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
13550
13551         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
13552         (VORNQ): Remove.
13553         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
13554         instruction using expression ior.
13555         (mve_vornq_u<mode>): New expander.
13556         (mve_vornq_f<mode>): Use ior code instead of unspec.
13557         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
13558
13559 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
13560
13561         * tree-nested.c (convert_nonlocal_reference_op): Move
13562         current_function_decl restore after re-gimplification.
13563         (convert_local_reference_op): Likewise.
13564
13565 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13566
13567         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
13568         Define builtins.
13569         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
13570         Define.
13571         (aarch64_rshrn<mode>_insn_be): Likewise.
13572         (aarch64_rshrn<mode>): Likewise.
13573         (aarch64_rshrn2<mode>_insn_le): Likewise.
13574         (aarch64_rshrn2<mode>_insn_be): Likewise.
13575         (aarch64_rshrn2<mode>): Likewise.
13576         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
13577         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
13578         using builtin.
13579         (vrshrn_high_n_s32): Likewise.
13580         (vrshrn_high_n_s64): Likewise.
13581         (vrshrn_high_n_u16): Likewise.
13582         (vrshrn_high_n_u32): Likewise.
13583         (vrshrn_high_n_u64): Likewise.
13584         (vrshrn_n_s16): Likewise.
13585         (vrshrn_n_s32): Likewise.
13586         (vrshrn_n_s64): Likewise.
13587         (vrshrn_n_u16): Likewise.
13588         (vrshrn_n_u32): Likewise.
13589         (vrshrn_n_u64): Likewise.
13590
13591 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
13592
13593         PR tree-optimization/98499
13594         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
13595         conservatively and assume all possible side-effects.
13596
13597 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13598
13599         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
13600         vec_unpacku_hi_): Define builtins.
13601         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
13602         builtin.
13603         (vmovl_high_s16): Likewise.
13604         (vmovl_high_s32): Likewise.
13605         (vmovl_high_u8): Likewise.
13606         (vmovl_high_u16): Likewise.
13607         (vmovl_high_u32): Likewise.
13608
13609 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13610
13611         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
13612         Define builtins.
13613         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
13614         pattern.
13615         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
13616         UNSPEC_UABDL.
13617         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
13618         builtin.
13619         (vabdl_s16): Likewise.
13620         (vabdl_s32): Likewise.
13621         (vabdl_u8): Likewise.
13622         (vabdl_u16): Likewise.
13623         (vabdl_u32): Likewise.
13624         * config/aarch64/iterators.md (ABDL): New int iterator.
13625         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
13626
13627 2021-02-01  Martin Sebor  <msebor@redhat.com>
13628
13629         * tree.h (BLOCK_VARS): Add comment.
13630         (BLOCK_SUBBLOCKS): Same.
13631         (BLOCK_SUPERCONTEXT): Same.
13632         (BLOCK_ABSTRACT_ORIGIN): Same.
13633         (inlined_function_outer_scope_p): Same.
13634
13635 2021-02-01  Martin Sebor  <msebor@redhat.com>
13636
13637         PR middle-end/97172
13638         * attribs.c (attr_access::free_lang_data): Define new function.
13639         * attribs.h (attr_access::free_lang_data): Declare new function.
13640
13641 2021-02-01  Richard Biener  <rguenther@suse.de>
13642
13643         * vec.h (auto_vec::auto_vec): Add memory stat parameters
13644         and pass them on.
13645         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
13646
13647 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
13648
13649         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
13650         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
13651
13652 2021-02-01  Richard Biener  <rguenther@suse.de>
13653
13654         PR rtl-optimization/98863
13655         * config/i386/i386-features.c (convert_scalars_to_vector):
13656         Set DF_RD_PRUNE_DEAD_DEFS.
13657
13658 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
13659
13660         * system.h (SIZE_MAX): Define if not already defined.
13661
13662 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
13663
13664         * config/rs6000/genfusion.pl (gen_2logical): New function to
13665         generate patterns for logical-logical fusion.
13666         * config/rs6000/fusion.md: Regenerated patterns.
13667         * config/rs6000/rs6000-cpus.def: Add
13668         OPTION_MASK_P10_FUSION_2LOGICAL.
13669         * config/rs6000/rs6000.c (rs6000_option_override_internal):
13670         Enable logical-logical fusion for p10.
13671         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
13672
13673 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
13674
13675         * config/rs6000/rs6000.opt: Add periods to new AIX options.
13676
13677 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
13678
13679         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
13680         (mabi=vec-default): New.
13681         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13682         __EXTABI__ for AIX Vector extended ABI.
13683         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
13684         extabi info.
13685         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
13686         are non-volatile.
13687         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
13688
13689 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
13690
13691         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
13692         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
13693
13694 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
13695
13696         PR target/97701
13697         * lra-constraints.c (in_class_p): Don't narrow class only for REG
13698         or MEM.
13699
13700 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
13701
13702         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
13703         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
13704         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
13705
13706 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
13707
13708         PR tree-optimization/98866
13709         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
13710         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
13711         (gori_map::m_maybe_invariant): Rename from all_outgoing.
13712         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
13713         (gori_map::is_export_p): Ditto.
13714         (gori_map::calculate_gori): Ditto.
13715         (gori_compute::set_range_invariant): New.
13716         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
13717         invariant for pointers evaluating to [1, +INF].
13718
13719 2021-01-29  Richard Biener  <rguenther@suse.de>
13720
13721         PR rtl-optimization/98863
13722         * config/i386/i386-features.c (remove_partial_avx_dependency):
13723         Do not perform DF analysis.
13724         (pass_data_remove_partial_avx_dependency): Remove
13725         TODO_df_finish.
13726
13727 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
13728
13729         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
13730         builtin generator macros.
13731         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
13732         Define.
13733         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
13734         instead of inline asm.
13735         (vmull_n_s32): Likewise.
13736         (vmull_n_u16): Likewise.
13737         (vmull_n_u32): Likewise.
13738
13739 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13740
13741         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
13742         Define builtins.
13743         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
13744         Rename to...
13745         (aarch64_<sur>abdl2<mode>): ... This.
13746         (<sur>sadv16qi): Adjust use of above.
13747         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
13748         builtin.
13749         (vabdl_high_s16): Likewise.
13750         (vabdl_high_s32): Likewise.
13751         (vabdl_high_u8): Likewise.
13752         (vabdl_high_u16): Likewise.
13753         (vabdl_high_u32): Likewise.
13754
13755 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13756
13757         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
13758         builtin.
13759         (uabal2): Likewise.
13760         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
13761         pattern.
13762         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
13763         UNSPEC_UABAL2.
13764         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
13765         builtin.
13766         (vabal_high_s16): Likewise.
13767         (vabal_high_s32): Likewise.
13768         (vabal_high_u8): Likewise.
13769         (vabal_high_u16): Likewise.
13770         (vabal_high_u32): Likewise.
13771         * config/aarch64/iterators.md (ABAL2): New mode iterator.
13772         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
13773
13774 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13775
13776         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
13777         builtin.
13778         (uabal): Likewise.
13779         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
13780         Rename to...
13781         (aarch64_<sur>abal<mode>): ... This
13782         (<sur>sadv16qi): Adust use of the above.
13783         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
13784         builtin.
13785         (vabal_s16): Likewise.
13786         (vabal_s32): Likewise.
13787         (vabal_u8): Likewise.
13788         (vabal_u16): Likewise.
13789         (vabal_u32): Likewise.
13790
13791 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13792
13793         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
13794         Define builtins.
13795         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
13796         Define.
13797         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
13798         builtin.
13799         (vaddlv_s16): Likewise.
13800         (vaddlv_u8): Likewise.
13801         (vaddlv_u16): Likewise.
13802         (vaddlvq_s8): Likewise.
13803         (vaddlvq_s16): Likewise.
13804         (vaddlvq_s32): Likewise.
13805         (vaddlvq_u8): Likewise.
13806         (vaddlvq_u16): Likewise.
13807         (vaddlvq_u32): Likewise.
13808         (vaddlv_s32): Likewise.
13809         (vaddlv_u32): Likewise.
13810         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
13811         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
13812         (Vwstype): New mode attribute.
13813         (Vwsuf): Likewise.
13814         (VWIDE_S): Likewise.
13815         (USADDLV): New int iterator.
13816         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
13817
13818 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
13819
13820         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
13821         builtin generator macros.
13822         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
13823         Define.
13824         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
13825         instead of inline asm.
13826         (vmlsl_lane_s32): Likewise.
13827         (vmlsl_lane_u16): Likewise.
13828         (vmlsl_lane_u32): Likewise.
13829         (vmlsl_laneq_s16): Likewise.
13830         (vmlsl_laneq_s32): Likewise.
13831         (vmlsl_laneq_u16): Likewise.
13832         (vmlsl_laneq_u32): Likewise.
13833
13834 2021-01-29  Richard Biener  <rguenther@suse.de>
13835
13836         * doc/invoke.texi (--param max-gcse-memory): Document unit
13837         of size.
13838         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
13839         * params.opt (--param max-gcse-memory): Adjust default and
13840         document unit of size.
13841
13842 2021-01-29  Richard Biener  <rguenther@suse.de>
13843
13844         PR rtl-optimization/98863
13845         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
13846         HOST_WIDE_INT for the memory estimate.
13847
13848 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
13849             Richard Biener  <rguenther@suse.de>
13850
13851         PR tree-optimization/97627
13852         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
13853         Do not analyze fake edges.
13854
13855 2021-01-29  Richard Biener  <rguenther@suse.de>
13856
13857         PR rtl-optimization/98144
13858         * df.h (df_mir_bb_info): Add con_visited member.
13859         * df-problems.c (df_mir_alloc): Initialize con_visited,
13860         do not fully populate IN and OUT.
13861         (df_mir_reset): Likewise.
13862         (df_mir_confluence_0): Set con_visited.
13863         (df_mir_confluence_n): Properly handle implicitely
13864         fully populated IN and OUT as designated by con_visited
13865         and update con_visited accordingly.
13866
13867 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
13868
13869         PR target/98849
13870         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
13871         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
13872         && !TARGET_REALLY_IWMMXT to conditions.
13873
13874 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
13875
13876         PR debug/98331
13877         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
13878         a BARRIER.
13879
13880 2021-01-28  Marek Polacek  <polacek@redhat.com>
13881
13882         PR c++/94775
13883         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
13884         the main variant, maybe reset it in its variants too.
13885         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
13886         (check_aligned_type): Check if TYPE_USER_ALIGN match.
13887
13888 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
13889
13890         PR target/98730
13891         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
13892         of constant zero for comparisons.
13893
13894 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
13895
13896         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
13897         support for mapping built-in function names for long double
13898         built-in functions if long double is IEEE 128-bit.
13899
13900 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
13901
13902         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
13903         builtin generator macros.
13904         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
13905         Define.
13906         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
13907         instead of inline asm.
13908         (vmlsl_n_s32): Likewise.
13909         (vmlsl_n_u16): Likewise.
13910         (vmlsl_n_u32): Likewise.
13911
13912 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
13913
13914         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
13915         builtin generator macros.
13916         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
13917         Define.
13918         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
13919         instead of inline asm.
13920         (vmlal_n_s32): Likewise.
13921         (vmlal_n_u16): Likewise.
13922         (vmlal_n_u32): Likewise.
13923
13924 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13925
13926         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
13927         builtin.
13928         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
13929         Define.
13930         (aarch64_shrn2<mode>_insn_be): Likewise.
13931         (aarch64_shrn2<mode>): Likewise.
13932         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
13933         using builtins.
13934         (vshrn_high_n_s32): Likewise.
13935         (vshrn_high_n_s64): Likewise.
13936         (vshrn_high_n_u16): Likewise.
13937         (vshrn_high_n_u32): Likewise.
13938         (vshrn_high_n_u64): Likewise.
13939
13940 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13941
13942         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
13943         builtin.
13944         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
13945         Define.
13946         (aarch64_shrn<mode>_insn_be): Likewise.
13947         (aarch64_shrn<mode>): Likewise.
13948         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
13949         builtins.
13950         (vshrn_n_s32): Likewise.
13951         (vshrn_n_s64): Likewise.
13952         (vshrn_n_u16): Likewise.
13953         (vshrn_n_u32): Likewise.
13954         (vshrn_n_u64): Likewise.
13955         * config/aarch64/iterators.md (vn_mode): New mode attribute.
13956
13957 2021-01-28  Richard Biener  <rguenther@suse.de>
13958
13959         PR rtl-optimization/80960
13960         * dse.c (check_mem_read_rtx): Call get_addr on the
13961         offsetted address.
13962
13963 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
13964             David Edelsohn  <dje.gcc@gmail.com>
13965
13966         PR target/98799
13967         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13968         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
13969         when -m32.
13970         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
13971         Delete.
13972         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
13973         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
13974         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
13975         directly.
13976         (rs6000_expand_vector_set_var): Delete.
13977         (rs6000_expand_vector_set_var_p9): Make static.
13978         (rs6000_expand_vector_set_var_p8): Make static.
13979
13980 2021-01-28  Xing GUO  <higuoxing@gmail.com>
13981
13982         * common/config/riscv/riscv-common.c
13983         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
13984         when `p` extension exists.
13985
13986 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
13987
13988         PR rtl-optimization/97684
13989         * ira.c (ira): Call ira_set_pseudo_classes before
13990         update_equiv_regs when it is necessary.
13991
13992 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
13993
13994         PR target/98853
13995         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
13996         %w0, %w1 and %2 instead of %0, %1 and %2.
13997
13998 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
13999
14000         * config/rs6000/genfusion.pl: New script to generate
14001         define_insn_and_split patterns so combine can arrange fused
14002         instructions next to each other.
14003         * config/rs6000/fusion.md: New file, generated fused instruction
14004         patterns for combine.
14005         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
14006         (non_update_memory_operand): New predicate.
14007         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
14008         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
14009         POWERPC_MASKS.
14010         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
14011         prototype.
14012         * config/rs6000/rs6000.c (rs6000_option_override_internal):
14013         Automatically set OPTION_MASK_P10_FUSION and
14014         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
14015         (rs600_opt_masks): Allow -mpower10-fusion
14016         in function attributes.
14017         (address_is_non_pfx_d_or_x): New function.
14018         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
14019         * config/rs6000/rs6000.md: Include fusion.md.
14020         * config/rs6000/rs6000.opt: Add -mpower10-fusion
14021         and -mpower10-fusion-ld-cmpi.
14022         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
14023
14024 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
14025
14026         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
14027         builtin generator macros.
14028         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
14029         Rename to...
14030         (aarch64_<su>mlal<mode>): This.
14031         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
14032         instead of inline asm.
14033         (vmlal_s16): Likewise.
14034         (vmlal_s32): Likewise.
14035         (vmlal_u8): Likewise.
14036         (vmlal_u16): Likewise.
14037         (vmlal_u32): Likewise.
14038
14039 2021-01-27  Richard Biener  <rguenther@suse.de>
14040
14041         PR tree-optimization/98854
14042         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
14043         PHIs from scalars when the number of CTORs matches the
14044         number of children.
14045
14046 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
14047
14048         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
14049         generator macro.
14050         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
14051         Rename to...
14052         (aarch64_mls_n<mode>): This.
14053         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
14054         instead of asm.
14055         (vmls_n_s32): Likewise.
14056         (vmls_n_u16): Likewise.
14057         (vmls_n_u32): Likewise.
14058         (vmlsq_n_s16): Likewise.
14059         (vmlsq_n_s32): Likewise.
14060         (vmlsq_n_u16): Likewise.
14061         (vmlsq_n_u32): Likewise.
14062
14063 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
14064
14065         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
14066         generator macro.
14067         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
14068         than asm.
14069         (vmls_s16): Likewise.
14070         (vmls_s32): Likewise.
14071         (vmls_u8): Likewise.
14072         (vmls_u16): Likewise.
14073         (vmls_u32): Likewise.
14074         (vmlsq_s8): Likewise.
14075         (vmlsq_s16): Likewise.
14076         (vmlsq_s32): Likewise.
14077         (vmlsq_u8): Likewise.
14078         (vmlsq_u16): Likewise.
14079         (vmlsq_u32): Likewise.
14080
14081 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
14082
14083         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
14084         generator macro.
14085         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
14086         Rename to...
14087         (aarch64_mla_n<mode>): This.
14088         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
14089         instead of asm.
14090         (vmla_n_s32): Likewise.
14091         (vmla_n_u16): Likewise.
14092         (vmla_n_u32): Likewise.
14093         (vmlaq_n_s16): Likewise.
14094         (vmlaq_n_s32): Likewise.
14095         (vmlaq_n_u16): Likewise.
14096         (vmlaq_n_u32): Likewise.
14097
14098 2021-01-27  liuhongt  <hongtao.liu@intel.com>
14099
14100         PR target/98833
14101         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
14102         (*sse2_eq<mode>3): Ditto.
14103
14104 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
14105
14106         * tree-pass.h (PROP_trees): Rename to ...
14107         (PROP_gimple): ... this.
14108         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
14109         * passes.c (execute_function_dump, execute_function_todo,
14110         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
14111         * varpool.c (ctor_for_folding): Likewise.
14112
14113 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
14114
14115         PR tree-optimization/97260
14116         * varpool.c: Include tree-pass.h.
14117         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
14118         non-TREE_SIDE_EFFECTS automatic variables.
14119
14120 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
14121
14122         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
14123         or -std=gnu++23.
14124         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
14125         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
14126         (gen_compile_unit_die): Recognise C++23.
14127
14128 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
14129
14130         PR bootstrap/98839
14131         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
14132         in comparison.
14133
14134 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
14135
14136         PR target/98681
14137         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
14138         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
14139         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
14140
14141 2021-01-26  Richard Biener  <rguenther@suse.de>
14142
14143         * gimple-pretty-print.c (dump_binary_rhs): Handle
14144         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
14145
14146 2021-01-26  Richard Biener  <rguenther@suse.de>
14147
14148         PR middle-end/98726
14149         * tree.h (vector_cst_int_elt): Remove.
14150         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
14151         make static.
14152
14153 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
14154
14155         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
14156         for V64DFmode min/max reductions.
14157
14158 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
14159
14160         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
14161         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
14162         two halves, one with x and the other with const0_rtx, ordered
14163         depending on endianity.
14164
14165 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
14166
14167         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
14168         temporaries not seen in binding block, and not about to be
14169         added as gimple variables.
14170
14171 2021-01-25  Martin Sebor  <msebor@redhat.com>
14172
14173         PR c++/98646
14174         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
14175
14176 2021-01-25  Martin Liska  <mliska@suse.cz>
14177
14178         * value-prof.c (get_nth_most_common_value): Use %s instead
14179         of %qs string.
14180
14181 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
14182
14183         PR debug/98811
14184         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
14185         readelf -wi is able to read the emitted .debug_info back.
14186         * configure: Regenerated.
14187
14188 2021-01-25  Martin Liska  <mliska@suse.cz>
14189
14190         PR gcov-profile/98739
14191         * common.opt: Add missing sign symbol.
14192         * value-prof.c (get_nth_most_common_value): Restore handling
14193         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
14194         PROFILE_REPRODUCIBILITY_MULTITHREADED.
14195
14196 2021-01-25  Richard Biener  <rguenther@suse.de>
14197
14198         PR middle-end/98807
14199         * tree.c (vector_element_bits): Always use precision of
14200         the element type for boolean vectors.
14201
14202 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14203
14204         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
14205         (ENDFILE_SPEC): Evaluate qnolinkcmds.
14206
14207 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14208
14209         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
14210         nostartfiles handling since this is already done by
14211         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
14212         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
14213         is already done by LINK_COMMAND_SPEC.
14214         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
14215         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
14216         evaluation.
14217
14218 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
14219
14220         PR testsuite/98771
14221         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
14222         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
14223         value rather than host size_t.
14224         (fold_const_call): Change type of s2 from size_t to
14225         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
14226         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
14227         instead of s2 as last argument.
14228
14229 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
14230
14231         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
14232         VCMLA_OP, VCMUL_OP): New.
14233         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
14234         * config/arm/neon.md (cmul<conj_op><mode>3): New.
14235         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
14236         UNSPEC_VCMUL_CONJ): New.
14237         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
14238         cml<fcmac1><conj_op><mode>4): New.
14239
14240 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
14241
14242         PR testsuite/97301
14243         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
14244
14245 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
14246
14247         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
14248         generator macro.
14249         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
14250         than asm.
14251         (vmla_s16): Likewise.
14252         (vmla_s32): Likewise.
14253         (vmla_u8): Likewise.
14254         (vmla_u16): Likewise.
14255         (vmla_u32): Likewise.
14256         (vmlaq_s8): Likewise.
14257         (vmlaq_s16): Likewise.
14258         (vmlaq_s32): Likewise.
14259         (vmlaq_u8): Likewise.
14260         (vmlaq_u16): Likewise.
14261         (vmlaq_u32): Likewise.
14262
14263 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
14264
14265         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
14266         directive.
14267
14268 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
14269
14270         PR debug/98796
14271         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
14272         filenames to emit, still emit the required 0 index directory and
14273         filename entries that match DW_AT_comp_dir and DW_AT_name of the
14274         compilation unit.
14275
14276 2021-01-22  Marek Polacek  <polacek@redhat.com>
14277
14278         PR c++/98545
14279         * doc/invoke.texi: Update C++ ABI Version 15 description.
14280
14281 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14282
14283         PR tree-optimization/98766
14284         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
14285         comparing against type size with param_avoid_fma_max_bits.
14286
14287 2021-01-22  Richard Biener  <rguenther@suse.de>
14288
14289         PR middle-end/98793
14290         * tree.c (vector_element_bits): Key single-bit bool vector on
14291         integer mode rather than not vector mode.
14292
14293 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
14294
14295         PR target/98093
14296         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14297         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
14298         platforms.
14299         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
14300         to call different path for P8 and P9.
14301         (rs6000_expand_vector_set_var_p9): New function.
14302         (rs6000_expand_vector_set_var_p8): New function.
14303
14304 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
14305
14306         PR target/79251
14307         PR target/98065
14308         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14309         Ajdust variable index vec_insert from address dereference to
14310         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
14311         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
14312         New declaration.
14313         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
14314
14315 2021-01-22  Martin Liska  <mliska@suse.cz>
14316
14317         PR gcov-profile/98739
14318         * profile.c (compute_value_histograms): Drop time profile for
14319         -fprofile-reproducible=multithreaded.
14320
14321 2021-01-22  Nathan Sidwell  <nathan@acm.org>
14322
14323         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
14324         existence here.
14325
14326 2021-01-22  Richard Biener  <rguenther@suse.de>
14327
14328         PR middle-end/98773
14329         * tree-data-ref.c (initalize_matrix_A): Revert previous
14330         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
14331
14332 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
14333
14334         PR tree-optimization/90248
14335         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
14336         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
14337         simplifications.
14338         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
14339         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
14340
14341 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
14342
14343         PR tree-optimization/98255
14344         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
14345         extend index - low_bound from sizetype's precision rather than index
14346         precision.
14347         (get_addr_base_and_unit_offset_1): Likewise.
14348         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
14349         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
14350
14351 2021-01-22  Richard Biener  <rguenther@suse.de>
14352
14353         PR tree-optimization/98786
14354         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
14355         adding new uses of abnormals.  Verify we deal with a conditional
14356         conversion.
14357
14358 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14359
14360         PR target/98636
14361         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
14362
14363 2021-01-22  liuhongt  <hongtao.liu@intel.com>
14364
14365         PR target/96891
14366         PR target/98348
14367         * config/i386/sse.md (VI_128_256): New mode iterator.
14368         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
14369          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
14370          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
14371         define_insn_and_split to lower avx512 vector comparison to avx
14372         version when dest is vector.
14373         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
14374         define_insn_and_split for negating the comparison result.
14375         * config/i386/predicates.md (float_vector_all_ones_operand):
14376         New predicate.
14377         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
14378         general NOT operator without UNSPEC_MASKOP.
14379
14380 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
14381
14382         PR rtl-optimization/98777
14383         * lra-int.h (lra_pmode_pseudo): New extern.
14384         * lra.c (lra_pmode_pseudo): New global.
14385         (lra): Set it up.
14386         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
14387
14388 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
14389
14390         * fwprop.c (fwprop_propagation::classify_result): Allow
14391         (subreg (mem)) simplifications.
14392
14393 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14394
14395         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
14396         Split into...
14397         (aarch64_sqdmlal<mode>): ... This...
14398         (aarch64_sqdmlsl<mode>): ... And this.
14399         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
14400         (aarch64_sqdmlal_lane<mode>): ... This...
14401         (aarch64_sqdmlsl_lane<mode>): ... And this.
14402         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
14403         (aarch64_sqdmlsl_laneq<mode>): ... This...
14404         (aarch64_sqdmlal_laneq<mode>):  ... And this.
14405         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
14406         (aarch64_sqdmlsl_n<mode>): ... This...
14407         (aarch64_sqdmlal_n<mode>): ... And this.
14408         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
14409         (aarch64_sqdmlal2<mode>_internal): ... This...
14410         (aarch64_sqdmlsl2<mode>_internal): ... And this.
14411
14412 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
14413
14414         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
14415
14416 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
14417
14418         PR target/96372
14419         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
14420
14421 2021-01-21  liuhongt  <hongtao.liu@intel.com>
14422
14423         PR rtl-optimization/98694
14424         * regcprop.c (copy_value): If SRC had been assigned a mode
14425         narrower than the copy, we can't link DEST into the chain even
14426         they have same hard_regno_nregs(i.e. HImode/SImode in i386
14427         backend).
14428
14429 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14430
14431         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
14432         Convert to define_insn_and_split.  Split into simple move when moving
14433         bottom element.
14434
14435 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
14436
14437         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
14438         Adjust comment.  Simplify code.
14439
14440 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
14441
14442         PR debug/98765
14443         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
14444         with DW_FORM_line_strp form.
14445         (prune_unused_types_update_strings): Don't add into debug_str_hash
14446         indirect strings with DW_FORM_line_strp form.
14447         (adjust_name_comp_dir): New function.
14448         (dwarf2out_finish): Call it on CU DIEs after resetting
14449         debug_line_str_hash.
14450
14451 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
14452
14453         PR rtl-optimization/98722
14454         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
14455         has no 3-op add insn to transform insns containing two pluses.
14456
14457 2021-01-20  Richard Biener  <rguenther@suse.de>
14458
14459         * hwint.h (add_hwi): New function.
14460         (mul_hwi): Likewise.
14461         * tree-data-ref.c (initialize_matrix_A): Properly translate
14462         tree constants and avoid HOST_WIDE_INT_MIN.
14463         (lambda_matrix_row_add): Avoid undefined integer overflow
14464         and return true on such overflow.
14465         (lambda_matrix_right_hermite): Handle overflow from
14466         lambda_matrix_row_add gracefully.  Simplify previous fix.
14467         (analyze_subscript_affine_affine): Likewise.
14468
14469 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
14470
14471         PR tree-optimization/96674
14472         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
14473         x >= y && y != XXX_MIN --> x > y - 1
14474
14475 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
14476
14477         PR tree-optimization/98535
14478         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
14479         If the high and low permutes are the same, remove the high permutes
14480         from the working set and only continue with the low ones.
14481
14482 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
14483
14484         PR tree-optimization/98721
14485         * builtins.c (access_ref::inform_access): Don't assume
14486         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
14487         object whenever allocfn is NULL, rather than only when DECL_P
14488         is true.  Use %qE instead of %qD for that.  Formatting fixes.
14489
14490 2021-01-20  Richard Biener  <rguenther@suse.de>
14491
14492         PR tree-optimization/98758
14493         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
14494         (lambda_matrix_right_hermite): Avoid undefinedness with
14495         signed integer abs and multiplication.
14496         (analyze_subscript_affine_affine): Use lambda_int.
14497
14498 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
14499
14500         PR debug/98751
14501         * dwarf2out.c (output_line_info): Rename static variable
14502         "generation", moving it out of the function to...
14503         (output_line_info_generation): New.
14504         (init_sections_and_labels): Likewise, renaming the variable to...
14505         (init_sections_and_labels_generation): New.
14506         (dwarf2out_c_finalize): Reset the new variables.
14507
14508 2021-01-19  Martin Sebor  <msebor@redhat.com>
14509
14510         PR middle-end/98664
14511         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
14512         all functions, even if they're not declared artificial or inline.
14513         * tree.c (tree_inlined_location): Use macro expansion location
14514         only if scope traversal fails to expose one.
14515
14516 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
14517
14518         PR rtl-optimization/92294
14519         * alias.c (compare_base_symbol_refs): Take an extra parameter
14520         and add the distance between two symbols to it.  Enshrine in
14521         comments that -1 means "either 0 or 1, but we can't tell
14522         which at compile time".
14523         (memrefs_conflict_p): Update call accordingly.
14524         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
14525         into account.
14526
14527 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14528
14529         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
14530         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
14531         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
14532         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
14533         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
14534         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
14535         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
14536         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
14537         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
14538         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
14539         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
14540         sqmovun): Use NONE flags.
14541
14542 2021-01-19  Richard Biener  <rguenther@suse.de>
14543
14544         PR ipa/98330
14545         * ipa-modref.c (analyze_stmt): Only record a summary for a
14546         direct call.
14547
14548 2021-01-19  Richard Biener  <rguenther@suse.de>
14549
14550         PR middle-end/98638
14551         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
14552
14553 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
14554
14555         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
14556         built-in define __FIX_LEON3FT_TN0018.
14557
14558 2021-01-19  Richard Biener  <rguenther@suse.de>
14559
14560         PR ipa/97673
14561         * tree-inline.c (tree_function_versioning): Set input_location
14562         to UNKNOWN_LOCATION throughout the function.
14563
14564 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
14565
14566         PR fortran/98476
14567         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
14568
14569 2021-01-19  Martin Jambor  <mjambor@suse.cz>
14570
14571         PR ipa/98690
14572         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
14573         whether non-call exceptions allow removal of a statement.
14574         (isra_analyze_call): Pass the appropriate function to
14575         ssa_name_only_returned_p.
14576
14577 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
14578
14579         * config/riscv/arch-canonicalize (longext_sort): New function for
14580          sorting 'multi-letter'.
14581         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
14582         'alts'. The 'arch' may not be the first of 'alts'.
14583         (_expand_combination): Add underline for the 'ext' without '*'.
14584         This is because, a single-letter extension can always be treated well
14585         with a '_' prefix, but it cannot be separated out if it is appended
14586         to a multi-letter.
14587
14588 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
14589
14590         PR target/97847
14591         * ira.c (ira): Skip abnormal critical edge splitting.
14592
14593 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
14594
14595         PR tree-optimization/98727
14596         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
14597         second .MUL_OVERFLOW operand for signed multiplication with overflow
14598         checking if the second operand of multiplication is not constant.
14599
14600 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
14601
14602         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
14603         defaults to version 4.
14604
14605 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
14606
14607         * attribs.h (fndecl_dealloc_argno): New decl.
14608         * builtins.c (call_dealloc_argno): Split out second half of
14609         function into...
14610         (fndecl_dealloc_argno): New.
14611         * doc/extend.texi (Common Function Attributes): Document the
14612         interaction between the analyzer and the malloc attribute.
14613         * doc/invoke.texi (Static Analyzer Options): Likewise.
14614
14615 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
14616
14617         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
14618         dwarf_version to 4.
14619         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
14620
14621 2021-01-17  Martin Jambor  <mjambor@suse.cz>
14622
14623         PR ipa/98222
14624         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
14625         the clone tree.
14626
14627 2021-01-17  Mark Wielaard  <mark@klomp.org>
14628
14629         * common.opt (gdwarf-): Init(5).
14630         * doc/invoke.texi (-gdwarf): Document default to 5.
14631
14632 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
14633
14634         * builtin-types.def
14635         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
14636         to...
14637         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
14638         ...this.  Add extra argument.
14639         * gimplify.c (omp_default_clause): Ensure that event handle is
14640         firstprivate in a task region.
14641         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
14642         (gimplify_adjust_omp_clauses): Likewise.
14643         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
14644         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
14645         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
14646         if detach clause specified.  Add detach argument when generating
14647         call to GOMP_task.
14648         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
14649         clause.
14650         (finish_taskreg_scan): Move field for variable containing the event
14651         handle to the front of the struct.
14652         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
14653         ordering.
14654         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
14655         OMP_CLAUSE_DETACH clause.
14656         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
14657         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
14658         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
14659         Fix ordering.
14660         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
14661         ordering.
14662         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
14663
14664 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14665
14666         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
14667         multilib directory names.  Use MULTILIB_REQUIRED instead of
14668         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
14669         -mcustom-fpu-cfg=fph2 multilib.
14670
14671 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14672
14673         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
14674         (nios2_init_fpu_configs): Provide register values for new
14675         -mcustom-fpu-cfg=fph2 option variant.
14676         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
14677         variant.
14678
14679 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14680
14681         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
14682         custom instruction warnings.
14683
14684 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
14685
14686         PR tree-optimization/96669
14687         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
14688
14689 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
14690
14691         PR tree-optimization/96271
14692         * passes.def: Pass false argument to first two pass_cd_dce
14693         instances and true to last instance.  Add comment that
14694         last instance rewrites no longer addressed locals.
14695         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
14696         initialize it.
14697         (pass_cd_dce::set_pass_param): New method.
14698         (pass_cd_dce::execute): Return TODO_update_address_taken from
14699         last cd_dce instance.
14700
14701 2021-01-15  Carl Love  <cel@us.ibm.com>
14702
14703         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
14704         New defines.
14705         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
14706         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
14707         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
14708         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
14709         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
14710         Add builtin define.
14711         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
14712         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
14713         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
14714         New overloaded definitions.
14715         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
14716         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
14717         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
14718         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
14719         P10V_BUILTIN_MULHU_V4SI]: Add case
14720         statement for builtins.
14721         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
14722         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
14723         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
14724         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
14725         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
14726         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
14727         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
14728         Add define_insn, mode is VIlong.
14729         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
14730         Add builtin descriptions.
14731
14732 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14733
14734         * final.c (final_start_function_1): Reset force_source_line.
14735
14736 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
14737
14738         PR tree-optimization/96669
14739         * match.pd (((1 << A) & 1) != 0 -> A == 0,
14740         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
14741         possibly different power of two constants and to right shift too.
14742
14743 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
14744
14745         PR tree-optimization/96681
14746         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
14747         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
14748         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
14749         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
14750
14751 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
14752
14753         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
14754
14755 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
14756
14757         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
14758         cmul<conj_op><mode>3): New.
14759         * config/aarch64/iterators.md (UNSPEC_FCMUL,
14760         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
14761         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
14762         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
14763         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
14764         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
14765         (rot_op): Renamed to conj_op.
14766         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
14767         cmul<conj_op><mode>3): New.
14768         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
14769         cmul<conj_op><mode>3): New.
14770
14771 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
14772
14773         PR bootstrap/98696
14774         * diagnostic.c
14775         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
14776         Escape the tempfile name when constructing the expected output.
14777
14778 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14779
14780         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
14781         Rename to...
14782         (aarch64_<su>mlsl_hi<mode>): ... This.
14783         (aarch64_<su>mlsl_hi<mode>): Define.
14784         (*aarch64_<su>mlsl<mode): Rename to...
14785         (aarch64_<su>mlsl<mode): ... This.
14786         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
14787         smlsl_hi, umlsl_hi): Define builtins.
14788         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
14789         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
14790         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
14791         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
14792
14793 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
14794
14795         * config/i386/i386-c.c (ix86_target_macros):
14796         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
14797
14798 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14799
14800         PR target/88836
14801         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
14802         * Makefile.in (RTL_SSA_H): New variable.
14803         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
14804         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
14805         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
14806         pass_combine.
14807         * config/aarch64/aarch64-cc-fusion.cc: New file.
14808
14809 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14810
14811         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
14812         calling cancel_changes for changes that no longer exist.
14813
14814 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14815
14816         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
14817         (function_info::reg_defs): ...this.
14818         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
14819         (function_info::reg_defs): ...this.
14820
14821 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14822
14823         PR target/71233
14824         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
14825
14826 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14827
14828         Revert:
14829         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14830
14831         PR target/71233
14832         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
14833
14834 2021-01-15  Richard Biener  <rguenther@suse.de>
14835
14836         PR tree-optimization/96376
14837         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
14838         for VMAT_INVARIANT.
14839
14840 2021-01-15  Martin Liska  <mliska@suse.cz>
14841
14842         * doc/install.texi: Document that some tests need pytest module.
14843         * doc/sourcebuild.texi: Likewise.
14844
14845 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14846
14847         PR target/71233
14848         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
14849
14850 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14851
14852         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
14853         (mve_vshrq_n_u<mode>_imm): Likewise.
14854         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
14855         * config/arm/vec-common.md: ... here.
14856
14857 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14858
14859         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
14860         vec-commond.md.
14861         * config/arm/neon.md (vashl<mode>3): Delete.
14862         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
14863         (vasl<mode>3): New expander.
14864
14865 2021-01-15  Richard Biener  <rguenther@suse.de>
14866
14867         PR tree-optimization/98685
14868         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
14869         of vector extern defs.
14870
14871 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
14872
14873         PR jit/98586
14874         * diagnostic.c (diagnostic_kind_text): Break out this array
14875         from...
14876         (diagnostic_build_prefix): ...here.
14877         (fancy_abort): Detect when diagnostic_initialize has not yet been
14878         called and fall back to a minimal implementation of printing the
14879         ICE, rather than segfaulting in internal_error.
14880
14881 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
14882
14883         * diagnostic.c (diagnostic_initialize): Eliminate
14884         parseable_fixits_p in favor of initializing extra_output_kind from
14885         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
14886         (convert_column_unit): New function, split out from...
14887         (diagnostic_converted_column): ...this.
14888         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
14889         Use them to call convert_column_unit on the column values.
14890         (diagnostic_report_diagnostic): Eliminate conditional on
14891         parseable_fixits_p in favor of a switch statement on
14892         extra_output_kind, passing the appropriate values to the new
14893         params of print_parseable_fixits.
14894         (selftest::test_print_parseable_fixits_none): Update for new
14895         params of print_parseable_fixits.
14896         (selftest::test_print_parseable_fixits_insert): Likewise.
14897         (selftest::test_print_parseable_fixits_remove): Likewise.
14898         (selftest::test_print_parseable_fixits_replace): Likewise.
14899         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
14900         New.
14901         (selftest::diagnostic_c_tests): Call it.
14902         * diagnostic.h (enum diagnostics_extra_output_kind): New.
14903         (diagnostic_context::parseable_fixits_p): Delete field in favor
14904         of...
14905         (diagnostic_context::extra_output_kind): ...this new field.
14906         * doc/invoke.texi (Environment Variables): Add
14907         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
14908         * opts.c (common_handle_option): Update handling of
14909         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
14910         fields.
14911
14912 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14913
14914         * tree-vect-slp-patterns.c (class complex_operations_pattern,
14915         complex_operations_pattern::matches,
14916         complex_operations_pattern::recognize,
14917         complex_operations_pattern::build): New.
14918         (slp_patterns): Use it.
14919
14920 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14921
14922         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
14923         * optabs.def (cmls_optab, cmls_conj_optab): New.
14924         * doc/md.texi: Document them.
14925         * tree-vect-slp-patterns.c (class complex_fms_pattern,
14926         complex_fms_pattern::matches, complex_fms_pattern::recognize,
14927         complex_fms_pattern::build): New.
14928
14929 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14930
14931         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
14932         * optabs.def (cmla_optab, cmla_conj_optab): New.
14933         * doc/md.texi: Document them.
14934         * tree-vect-slp-patterns.c (vect_match_call_p,
14935         class complex_fma_pattern, vect_slp_reset_pattern,
14936         complex_fma_pattern::matches, complex_fma_pattern::recognize,
14937         complex_fma_pattern::build): New.
14938
14939 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14940
14941         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
14942         * optabs.def (cmul_optab, cmul_conj_optab): New.
14943         * doc/md.texi: Document them.
14944         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
14945         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
14946         vect_build_combine_node, class complex_mul_pattern,
14947         complex_mul_pattern::matches, complex_mul_pattern::recognize,
14948         complex_mul_pattern::build): New.
14949
14950 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14951
14952         * tree-vect-slp.c (optimize_load_redistribution_1): New.
14953         (optimize_load_redistribution, vect_is_slp_load_node): New.
14954         (vect_match_slp_patterns): Use it.
14955
14956 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14957
14958         * tree-vect-slp-patterns.c (complex_add_pattern::build):
14959         Elide nodes.
14960
14961 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
14962
14963         * config/gcn/mkoffload.c (main): Create an offload image only in
14964         64-bit configurations.
14965
14966 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
14967
14968         PR target/98667
14969         * config/i386/i386-options.c (ix86_option_override_internal):
14970         Issue an error for -fcf-protection with CF_BRANCH when compiling
14971         for 32-bit non-TARGET_CMOV targets.
14972
14973 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
14974
14975         PR target/98671
14976         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
14977         Remove declaration and initialization of shadow variable "ret".
14978         (ix86_option_override_internal): Remove delcaration of
14979         shadow variable "i".  Redeclare shadowed variable to unsigned.
14980         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
14981         * config/i386/i386-builtins.c (get_builtin_code_for_version):
14982         Update for redeclaration.
14983         * config/i386/i386.h (pta_size): Ditto.
14984
14985 2021-01-14  Richard Biener  <rguenther@suse.de>
14986
14987         PR tree-optimization/98674
14988         * tree-data-ref.c (base_supports_access_fn_components_p): New.
14989         (initialize_data_dependence_relation): For two bases without
14990         possible access fns resort to type size equality when determining
14991         shape compatibility.
14992
14993 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14994
14995         PR target/66791
14996         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
14997         <=, >= operators in vcle and vcge intrinsics respectively.
14998         * config/arm/arm_neon_builtins.def: Remove entry for
14999         vcge and vcgeu.
15000
15001 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
15002
15003         PR target/98671
15004         * config/i386/i386-options.c (ix86_function_specific_save):
15005         Remove redundant assignment to opts->x_ix86_branch_cost.
15006         * config/i386/i386.c (ix86_prefetch_sse):
15007         Rename from x86_prefetch_sse.  Update all uses.
15008         * config/i386/i386.h: Update for rename.
15009         * config/i386/i386-options.h: Ditto.
15010
15011 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
15012
15013         PR target/98670
15014         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
15015         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
15016         Use Bm instead of m for non-avx.  Add isa attribute.
15017
15018 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
15019
15020         PR tree-optimization/96688
15021         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
15022         ~X can be simplified.
15023
15024 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
15025
15026         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
15027         IFN_LOAD_LANES results.
15028
15029 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15030
15031         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
15032         Define.
15033         (aarch64_xtn<mode>): Likewise.
15034         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
15035         Define
15036         builtins.
15037         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
15038         builtin.
15039         (vmovl_s16): Likewise.
15040         (vmovl_s32): Likewise.
15041         (vmovl_u8): Likewise.
15042         (vmovl_u16): Likewise.
15043         (vmovl_u32): Likewise.
15044         (vmovn_s16): Likewise.
15045         (vmovn_s32): Likewise.
15046         (vmovn_s64): Likewise.
15047         (vmovn_u16): Likewise.
15048         (vmovn_u32): Likewise.
15049         (vmovn_u64): Likewise.
15050
15051 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15052
15053         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
15054         Define.
15055         (aarch64_<su>qxtn2<mode>_be): Likewise.
15056         (aarch64_<su>qxtn2<mode>): Likewise.
15057         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
15058         Define builtins.
15059         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
15060         (su): Handle ss_truncate and us_truncate.
15061         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
15062         builtin.
15063         (vqmovn_high_s32): Likewise.
15064         (vqmovn_high_s64): Likewise.
15065         (vqmovn_high_u16): Likewise.
15066         (vqmovn_high_u32): Likewise.
15067         (vqmovn_high_u64): Likewise.
15068
15069 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15070
15071         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
15072         Define.
15073         (aarch64_xtn2<mode>_be): Likewise.
15074         (aarch64_xtn2<mode>): Likewise.
15075         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
15076         builtins.
15077         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
15078         builtins.
15079         (vmovn_high_s32): Likewise.
15080         (vmovn_high_s64): Likewise.
15081         (vmovn_high_u16): Likewise.
15082         (vmovn_high_u32): Likewise.
15083         (vmovn_high_u64): Likewise.
15084
15085 2021-01-13  Stafford Horne  <shorne@gmail.com>
15086
15087         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
15088
15089 2021-01-13  Stafford Horne  <shorne@gmail.com>
15090
15091         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
15092
15093 2021-01-13  Stafford Horne  <shorne@gmail.com>
15094
15095         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
15096           define for __or1k_hard_float__.
15097
15098 2021-01-13  Stafford Horne  <shorne@gmail.com>
15099
15100         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
15101         (PROFILE_HOOK): Define to call _mcount.
15102         (FUNCTION_PROFILER): Change from abort to no-op.
15103
15104 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
15105
15106         PR tree-optimization/96691
15107         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
15108         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
15109         (~D ^ C) or (D ^ C) can be simplified.
15110
15111 2021-01-13  Richard Biener  <rguenther@suse.de>
15112
15113         PR tree-optimization/92645
15114         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
15115         until after vector lowering.
15116
15117 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15118
15119         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
15120         to SVE_I.
15121         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
15122         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
15123
15124 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15125
15126         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
15127         to SVE_I.
15128         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
15129         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
15130
15131 2021-01-13  Richard Biener  <rguenther@suse.de>
15132
15133         PR tree-optimization/92645
15134         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
15135         BIT_FIELD_REF argument.
15136         (vect_build_slp_tree_2): Record the desired vector type
15137         on the external vector def.
15138         (vectorizable_slp_permutation): Handle required punning
15139         of existing vector defs.
15140
15141 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15142
15143         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
15144
15145 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15146
15147         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
15148
15149 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15150
15151         * config.gcc [$target == *-*-gnu*]: Enable
15152         'default_gnu_indirect_function'.
15153
15154 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
15155
15156         PR target/95905
15157         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
15158         registers before calling targetm.vectorize.vec_perm_const, only after
15159         that.
15160         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
15161         two argument permutation when one operand is zero vector and only
15162         after that force operands into registers.
15163         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
15164         define_insn_and_split pattern.
15165         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
15166         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
15167         (*avx2_zero_extendv8hiv8si2_1): Likewise.
15168         (*avx512f_zero_extendv8siv8di2_1): Likewise.
15169         (*avx2_zero_extendv4siv4di2_1): Likewise.
15170         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
15171         into registers.
15172         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
15173         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
15174         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
15175         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
15176         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
15177         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
15178
15179 2021-01-13  Martin Liska  <mliska@suse.cz>
15180
15181         PR tree-optimization/98455
15182         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
15183         Record also virtual PHIs.
15184         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
15185         conditionally.
15186
15187 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
15188
15189         * doc/invoke.texi (C++ Modules): Fix typos.
15190
15191 2021-01-13  Richard Biener  <rguenther@suse.de>
15192
15193         PR tree-optimization/98640
15194         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
15195         handle plus or minus from a truncated operand to be
15196         sign-extended.
15197
15198 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
15199
15200         PR target/96938
15201         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
15202         define_insn_and_split patterns.
15203         (splitter after *btr<mode>_2): New splitter.
15204
15205 2021-01-13  Martin Liska  <mliska@suse.cz>
15206
15207         PR ipa/98652
15208         * cgraphunit.c (analyze_functions): Remove dead code.
15209
15210 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
15211
15212         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
15213         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
15214         (a64fx_regmove_cost, a64fx_vector_cost): New.
15215         (a64fx_tunings): Use the new added cost tables.
15216
15217 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
15218
15219         PR target/95905
15220         * config/i386/predicates.md (pmovzx_parallel): New predicate.
15221         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
15222         define_insn_and_split pattern.
15223         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
15224         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
15225
15226 2021-01-13  Julian Brown  <julian@codesourcery.com>
15227
15228         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
15229         to fix v0 register.
15230
15231 2021-01-13  Julian Brown  <julian@codesourcery.com>
15232
15233         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
15234         on entry to a BB.
15235
15236 2021-01-13  Julian Brown  <julian@codesourcery.com>
15237
15238         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
15239         for reciprocal-approximation instructions.
15240         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
15241         refinement and division result.
15242         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
15243
15244 2021-01-13  Julian Brown  <julian@codesourcery.com>
15245
15246         * config/gcn/gcn-valu.md (subdf): Rename to...
15247         (subdf3): This.
15248
15249 2021-01-12  Martin Liska  <mliska@suse.cz>
15250
15251         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
15252
15253 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
15254
15255         * function-abi.h: Fix typo.
15256
15257 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
15258
15259         PR target/97875
15260         PR target/97875
15261         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
15262         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
15263         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
15264         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
15265         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
15266         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
15267         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
15268         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
15269         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
15270         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
15271         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
15272         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
15273         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
15274         (ARM_HAVE_V2DI_LDST): Likewise.
15275         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
15276         (*movmisalign<mode>_mve_load): New pattern.
15277         * config/arm/neon.md (movmisalign<mode>): Move to ...
15278         * config/arm/vec-common.md: ... here.
15279
15280 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
15281
15282         PR target/97969
15283         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
15284         of pattern 'plus (plus (hard reg, const), pseudo)'.
15285
15286 2021-01-12  Richard Biener  <rguenther@suse.de>
15287
15288         PR tree-optimization/98550
15289         * tree-vect-slp.c (vect_record_max_nunits): Check whether
15290         the group size is a multiple of the vector element count.
15291         (vect_build_slp_tree_1): When we need to fail because
15292         the vector type choosen causes unrolling do so lazily
15293         without affecting matches only at the end to guide group splitting.
15294
15295 2021-01-12  Martin Liska  <mliska@suse.cz>
15296
15297         PR c++/97284
15298         * optc-save-gen.awk: Compare also n_target_save vars with
15299         strcmp.
15300
15301 2021-01-12  Martin Liska  <mliska@suse.cz>
15302
15303         * gcov.c (source_info::debug): New.
15304         (print_usage): Add --debug (-D) option.
15305         (process_args): Likewise.
15306         (generate_results): Call src->debug after
15307         accumulate_line_counts.
15308         (read_graph_file): Properly assign id for EXIT_BLOCK.
15309         * profile.c (branch_prob): Dump function body before it is
15310         instrumented.
15311
15312 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
15313
15314         PR tree-optimization/98629
15315         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
15316         unless returning non-zero.
15317
15318 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
15319
15320         PR tree-optimization/95731
15321         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
15322         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
15323         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
15324         only after optimize_range_tests_var_bound.
15325
15326 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
15327
15328         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
15329         * configure: Regenerated.
15330
15331 2021-01-12  liuhongt  <hongtao.liu@intel.com>
15332
15333         PR target/98612
15334         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
15335         Deleted.
15336         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
15337         dead code.
15338
15339 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
15340
15341         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
15342         declare.
15343         (auto_end_imm_use_stmt_traverse): New struct.
15344         (FOR_EACH_IMM_USE_STMT): Use it.
15345         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
15346         along with uses...
15347         * gimple-ssa-strength-reduction.c: ... here, ...
15348         * graphite-scop-detection.c: ... here, ...
15349         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
15350         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
15351         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
15352         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
15353         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
15354         * tree-vect-slp.c: ... and here, ...
15355         * doc/tree-ssa.texi: ... and the example here.
15356
15357 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15358
15359         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
15360         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
15361         (*sdiv_pow2<mode>3): New pattern.
15362         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
15363         Wrap the ASRD in an UNSPEC_PRED_X.
15364         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
15365         predicate with a constant PTRUE, if it isn't already.
15366         (*cond_<sve_int_op><mode>_z): Replace with...
15367         (*cond_<sve_int_op><mode>_any): ...this new pattern.
15368
15369 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15370
15371         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
15372         SVE_FULL_I to SVE_I.
15373         (*cond_bic<mode>_any): Likewise.
15374
15375 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15376
15377         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
15378         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
15379         to SVE_I.
15380
15381 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15382
15383         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
15384         SVE_FULL_I to SVE_I.
15385         (*aarch64_cond_<su>abd<mode>_2): Likewise.
15386         (*aarch64_cond_<su>abd<mode>_any): Likewise.
15387         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
15388         for the max and min but not for the minus.
15389         (*aarch64_cond_<su>abd<mode>_3): New pattern.
15390
15391 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15392
15393         * config/aarch64/iterators.md (SVE_24I): New iterator.
15394         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
15395         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
15396
15397 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15398
15399         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
15400         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
15401         to SVE_I.
15402         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
15403         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
15404         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
15405         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
15406
15407 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15408
15409         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
15410         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
15411         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
15412         to SVE_I.
15413
15414 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
15415
15416         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
15417         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
15418         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
15419
15420 2021-01-11  Martin Liska  <mliska@suse.cz>
15421
15422         PR jit/98615
15423         * symtab-clones.h (clone_info::release): Release
15424         symtab::m_clones with ggc_delete as it's a GGC memory.
15425
15426 2021-01-11  Matthias Klose  <doko@ubuntu.com>
15427
15428         * Makefile.in (LINK_PROGRESS): Show the link target.
15429
15430 2021-01-11  Richard Biener  <rguenther@suse.de>
15431
15432         PR tree-optimization/91403
15433         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
15434         single-element interleaving group size at 4096 elements.
15435
15436 2021-01-11  Richard Biener  <rguenther@suse.de>
15437
15438         PR tree-optimization/98526
15439         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
15440         of the actual reduction op for the regular case.
15441         (vectorizable_reduction): Cost the stmts
15442         vect_transform_reduction produces here.
15443
15444 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
15445
15446         * tree-ssa-forwprop.c (simplify_vector_constructor): For
15447         big-endian, use UNPACK[_FLOAT]_HI.
15448
15449 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
15450
15451         * tree-vect-slp-patterns.c (class complex_pattern,
15452         class complex_add_pattern): Add parameters to matches.
15453         (complex_add_pattern::build): Free memory.
15454         (complex_add_pattern::matches): Move validation end of match.
15455         (complex_add_pattern::recognize): Likewise.
15456
15457 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
15458
15459         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
15460
15461 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
15462
15463         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
15464
15465 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
15466
15467         PR tree-optimization/95867
15468         * tree-ssa-math-opts.h: New header.
15469         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
15470         (powi_as_mults): No longer static.  Use build_one_cst instead of
15471         build_real.  Formatting fix.
15472         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
15473         (attempt_builtin_powi): Handle multiplication reassociation without
15474         powi_fndecl using powi_as_mults.
15475         (reassociate_bb): For integral types don't require
15476         -funsafe-math-optimizations to call attempt_builtin_powi.
15477
15478 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
15479
15480         PR tree-optimization/95852
15481         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
15482         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
15483         allow in the bb any of the stmts in that vector, div_stmt and
15484         up to 3 cast stmts.
15485         (arith_cast_equal_p): New function.
15486         (arith_overflow_check_p): Add cast_stmt argument, handle signed
15487         multiply overflow checks.
15488         (match_arith_overflow): Adjust caller.  Handle signed multiply
15489         overflow checks.
15490
15491 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
15492
15493         PR tree-optimization/95852
15494         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
15495         (uaddsub_overflow_check_p): Renamed to ...
15496         (arith_overflow_check_p): ... this.  Handle also multiplication
15497         with overflow check.
15498         (match_uaddsub_overflow): Renamed to ...
15499         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
15500         also multiplication with overflow check.  Adjust function comment.
15501         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
15502         match_arith_overflow also for MULT_EXPR.
15503
15504 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15505
15506         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
15507         __builtin_convertvector.
15508         (vmovl_s16): Likewise.
15509         (vmovl_s32): Likewise.
15510         (vmovl_u8): Likewise.
15511         (vmovl_u16): Likewise.
15512         (vmovl_u32): Likewise.
15513         (vmovn_s16): Likewise.
15514         (vmovn_s32): Likewise.
15515         (vmovn_s64): Likewise.
15516         (vmovn_u16): Likewise.
15517         (vmovn_u32): Likewise.
15518         (vmovn_u64): Likewise.
15519
15520 2021-01-11  Martin Liska  <mliska@suse.cz>
15521
15522         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
15523         (if_chain::is_beneficial): Delete clusters
15524         (find_conditions): Make second argument of conditions_in_bbs a
15525         pointer so that we control over it's lifetime.
15526         (pass_if_to_switch::execute): Delete them.
15527
15528 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
15529
15530         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
15531         it isn't set.
15532
15533 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
15534
15535         * config/vax/vax.md (cc): Remove mode attribute.
15536         (subst_<cc>, subst_f<cc>): Rename to...
15537         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
15538         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
15539         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
15540         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
15541
15542 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
15543
15544         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
15545         `const_double_zero'.
15546
15547 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
15548
15549         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
15550         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
15551         operands.
15552
15553 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
15554
15555         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
15556         rtx.
15557         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
15558         with `const_double_zero'.
15559         * doc/rtl.texi (Constant Expression Types): Document it.
15560
15561 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
15562
15563         PR c++/98556
15564         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
15565         POINTER_DIFF_EXPR to be any integral type.
15566
15567 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
15568
15569         PR rtl-optimization/98603
15570         * function.c (instantiate_virtual_regs_in_insn): For asm goto
15571         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
15572         if any, set ASM_OPERANDS mode to VOIDmode and change
15573         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
15574
15575 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
15576
15577         PR debug/97714
15578         * final.c (notice_source_line): Narrow down the condition to
15579         skip a line-0 marker.
15580
15581 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
15582
15583         * ipa-modref.c (merge_call_side_effects): Fix
15584         linebreak split by reordering two print calls.
15585
15586 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
15587
15588         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
15589         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
15590         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
15591         consistency, fix constraint.
15592
15593 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
15594
15595         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
15596         callables instead of mask values.
15597         (struct target_flag_set_p): New predicate.
15598         (s390_cpu_cpp_builtins_internal): Define or undefine
15599         __LONG_DOUBLE_VX__ macro.
15600
15601 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
15602
15603         PR target/98482
15604         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
15605         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
15606         targets.
15607
15608 2021-01-08  Richard Biener  <rguenther@suse.de>
15609
15610         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
15611
15612 2021-01-08  Richard Biener  <rguenther@suse.de>
15613
15614         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
15615         (vect_build_slp_tree): On cache hit release the matched
15616         scalar stmts vector.
15617         * tree-vect-stmts.c (vectorizable_store): Properly free
15618         vec_oprnds before possibly gathering them again.
15619
15620 2021-01-08  Richard Biener  <rguenther@suse.de>
15621
15622         PR tree-optimization/98544
15623         * tree-vect-slp.c (vect_optimize_slp): Always materialize
15624         permutes at a permute node.
15625
15626 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
15627
15628         PR target/98482
15629         * config/i386/i386.c (x86_function_profiler): Use R10 to call
15630         mcount in large model.  Sorry for large model with PIC.
15631
15632 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
15633
15634         PR target/98585
15635         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
15636         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
15637         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
15638         TargetSave and initialize for variables with enum types.
15639         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
15640         mstack-protector-guard-symbol=): Add Save.
15641         * config/i386/i386-options.c (ix86_function_specific_save,
15642         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
15643         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
15644         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
15645         x_ix86_veclibabi_type.
15646
15647 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
15648
15649         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
15650         SVE_FULL_I to SVE_I.
15651         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15652
15653 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
15654
15655         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
15656         SVE_FULL_I to SVE_I.
15657         (*cond_uxt<mode>_any): Likewise.
15658
15659 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15660
15661         * config/aarch64/iterators.md (Vwhalf): New iterator.
15662         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
15663         Rename to...
15664         (aarch64_<sur>adalp<mode>): ... This.  Make more
15665         builtin-friendly.
15666         (<sur>sadv16qi): Adjust callsite of the above.
15667         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
15668         builtins.
15669         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
15670         builtins.
15671         (vpadal_s16): Likewise.
15672         (vpadal_u8): Likewise.
15673         (vpadal_u16): Likewise.
15674         (vpadalq_s8): Likewise.
15675         (vpadalq_s16): Likewise.
15676         (vpadalq_s32): Likewise.
15677         (vpadalq_u8): Likewise.
15678         (vpadalq_u16): Likewise.
15679         (vpadalq_u32): Likewise.
15680
15681 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15682
15683         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
15684         Rename to...
15685         (aarch64_<su>abd<mode>): ... This.
15686         (<sur>sadv16qi): Adjust callsite of the above.
15687         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
15688         builtins.
15689         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
15690         builtin.
15691         (vabd_s16): Likewise.
15692         (vabd_s32): Likewise.
15693         (vabd_u8): Likewise.
15694         (vabd_u16): Likewise.
15695         (vabd_u32): Likewise.
15696         (vabdq_s8): Likewise.
15697         (vabdq_s16): Likewise.
15698         (vabdq_s32): Likewise.
15699         (vabdq_u8): Likewise.
15700         (vabdq_u16): Likewise.
15701         (vabdq_u32): Likewise.
15702
15703 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15704
15705         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
15706         builtins.
15707         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
15708         (vaba_s16): Likewise.
15709         (vaba_s32): Likewise.
15710         (vaba_u8): Likewise.
15711         (vaba_u16): Likewise.
15712         (vaba_u32): Likewise.
15713         (vabaq_s8): Likewise.
15714         (vabaq_s16): Likewise.
15715         (vabaq_s32): Likewise.
15716         (vabaq_u8): Likewise.
15717         (vabaq_u16): Likewise.
15718         (vabaq_u32): Likewise.
15719
15720 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15721
15722         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
15723         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
15724         Change RTL pattern to match.
15725
15726 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
15727
15728         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
15729         * config/riscv/riscv-c.c (riscv-subset.h): New.
15730         (INCLUDE_STRING): Define.
15731         (riscv_cpu_cpp_builtins): Add new style architecture extension
15732         test macros.
15733         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
15734         (riscv_subset_list::end): New.
15735         (riscv_current_subset_list): New.
15736
15737 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
15738
15739         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
15740         Move to riscv-subset.h.
15741         (struct riscv_subset_t): Ditto.
15742         (class riscv_subset_list): Ditto.
15743         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
15744         from riscv-common.c.
15745         (struct riscv_subset_t): Ditto.
15746         (class riscv_subset_list): Ditto.
15747         * config/riscv/t-riscv ($(common_out_file)): Add file
15748         dependency.
15749
15750 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
15751
15752         PR target/98567
15753         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
15754         New define_insn patterns.
15755
15756 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15757
15758         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
15759         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
15760         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
15761
15762 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15763
15764         PR tree-optimization/98560
15765         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
15766         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
15767         argument 1.
15768         (vec_cond_direct): Likewise argument 2.
15769         (vec_condu_direct, vec_condeq_direct): Delete.
15770         (expand_vect_cond_optab_fn): Rename to...
15771         (expand_vec_cond_optab_fn): ...this, replacing old macro.
15772         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
15773         (expand_vect_cond_mask_optab_fn): Rename to...
15774         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
15775         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
15776         convert optab.
15777         (direct_vec_cond_optab_supported_p): Likewise.
15778         (direct_vec_condu_optab_supported_p): Delete.
15779         (direct_vec_condeq_optab_supported_p): Delete.
15780         * gimple-isel.cc: Include internal-fn.h.
15781         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
15782         before using it.
15783
15784 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
15785
15786         PR tree-optimization/98560
15787         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
15788         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
15789
15790 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
15791
15792         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
15793         rotate_insn and optab code attributes.
15794         Update all uses to merged code attribute.
15795         * config/i386/sse.md: Update all uses to merged code attribute.
15796         * config/i386/mmx.md: Update all uses to merged code attribute.
15797
15798 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
15799
15800         PR tree-optimization/98568
15801         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
15802         (bswap_replace): Use it.
15803
15804 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
15805
15806         PR rtl-optimization/97978
15807         * lra-int.h (lra_hard_reg_split_p): New external.
15808         * lra.c (lra_hard_reg_split_p): New global.
15809         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
15810         * lra-assigns.c (lra_assign): Don't check allocation correctness
15811         after hard reg splitting.
15812
15813 2021-01-06  Martin Sebor  <msebor@redhat.com>
15814
15815         PR c++/98305
15816         * builtins.c (new_delete_mismatch_p): New overload.
15817         (new_delete_mismatch_p (tree, tree)): Call it.
15818
15819 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
15820
15821         * Makefile.in (T_GLIMITS_H): New.
15822         (stmp-int-hdrs): Depend on it, use it.
15823         * config/t-vxworks (T_GLIMITS_H): Override it.
15824         (vxw-glimits.h): New.
15825
15826 2021-01-06  Richard Biener  <rguenther@suse.de>
15827
15828         PR tree-optimization/98513
15829         * value-range.cc (intersect_ranges): Compare the upper bounds
15830         for the expected relation.
15831
15832 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15833
15834         Revert:
15835         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
15836
15837         * doc/standards.texi (HSAIL): Remove section.
15838
15839 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15840
15841         * configure: Re-generate.
15842
15843 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15844
15845         * doc/invoke.texi (-std=c++20): Adjust for the publication of
15846         ISO 14882:2020 standard.
15847         * doc/standards.texi: Likewise.
15848
15849 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15850
15851         PR tree-optimization/94802
15852         * expr.h (maybe_optimize_sub_cmp_0): Declare.
15853         * expr.c: Include tree-pretty-print.h and flags.h.
15854         (maybe_optimize_sub_cmp_0): New function.
15855         (do_store_flag): Use it.
15856         * cfgexpand.c (expand_gimple_cond): Likewise.
15857
15858 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15859
15860         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
15861         * rtlanal.c (simple_regno_set): Tweak description to clarify the
15862         RMW condition.
15863
15864 2021-01-05  Richard Biener  <rguenther@suse.de>
15865
15866         PR tree-optimization/98516
15867         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
15868         lanes when materializing on a VEC_PERM node.
15869         (vectorizable_slp_permutation): Dump the permute properly.
15870
15871 2021-01-05  Richard Biener  <rguenther@suse.de>
15872
15873         * tree-vect-slp.c (vect_slp_region): Move debug counter
15874         to cover individual subgraphs.
15875
15876 2021-01-05  Richard Biener  <rguenther@suse.de>
15877
15878         PR tree-optimization/98428
15879         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
15880         vector lane extracts for loop vectorization.
15881
15882 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15883
15884         PR tree-optimization/98514
15885         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
15886         int64_t *.
15887         (operand_rank): Change type from hash_map<tree, long> to
15888         hash_map<tree, int64_t>.
15889         (phi_rank): Change return type from long to int64_t.
15890         (loop_carried_phi): Change block_rank variable type from long to
15891         int64_t.
15892         (propagate_rank): Change return type, rank parameter type and
15893         op_rank variable type from long to int64_t.
15894         (find_operand_rank): Change return type from long to int64_t
15895         and change slot variable type from long * to int64_t *.
15896         (insert_operand_rank): Change rank parameter type from long to
15897         int64_t.
15898         (get_rank): Change return type and rank variable type from long to
15899         int64_t.  Use PRId64 instead of ld to print the rank.
15900         (init_reassoc): Change rank variable type from long to int64_t
15901         and adjust correspondingly bb_rank and operand_rank initialization.
15902
15903 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15904
15905         PR tree-optimization/96928
15906         * tree-ssa-phiopt.c (xor_replacement): New function.
15907         (tree_ssa_phiopt_worker): Call it.
15908
15909 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15910
15911         PR tree-optimization/96930
15912         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
15913         from narrower value which has the same type as 1 << B, perform
15914         the right shift on the narrower value followed by extension.
15915
15916 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15917
15918         PR tree-optimization/96239
15919         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
15920         function.
15921         (get_status_for_store_merging): Don't return BB_INVALID for blocks
15922         with potential bswap optimizable CONSTRUCTORs.
15923         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
15924         if possible.
15925
15926 2021-01-05  Richard Biener  <rguenther@suse.de>
15927
15928         PR tree-optimization/98381
15929         * tree.c (vector_element_bits): Properly compute bool vector
15930         element size.
15931         * tree-vect-loop.c (vectorizable_live_operation): Properly
15932         compute the last lane bit offset.
15933
15934 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
15935
15936         PR target/98522
15937         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
15938         Clear the top 64 bytes of the input XMM register.
15939         (sse_cvttps2pi): Ditto.
15940
15941 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
15942
15943         PR target/98521
15944         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
15945
15946 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
15947
15948         PR target/98495
15949         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
15950         short first.
15951
15952 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
15953
15954         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
15955         (umaddsidi4_split): Likewise.
15956
15957 2021-01-05  liuhongt  <hongtao.liu@intel.com>
15958
15959         PR target/98461
15960         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
15961         define_insn_and_split for zero_extend of subreg HI of pmovskb
15962         result.
15963         (*sse2_pmovskb_zexthisi): Add new combine splitters for
15964         zero_extend of not of subreg HI of pmovskb result.
15965
15966 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15967
15968         PR target/97269
15969         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
15970         nested in CONSTs.
15971         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
15972         convert_memory_address to convert symbolic immediates to ptr_mode
15973         before forcing them to memory.
15974
15975 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15976
15977         PR rtl-optimization/97144
15978         * recog.c (constrain_operands): Initialize matching_operand
15979         for each alternative, rather than only doing it once.
15980
15981 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15982
15983         PR rtl-optimization/98403
15984         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
15985         why we don't remove call clobbers.
15986         (function_info::apply_changes_to_insn): Don't attempt to add
15987         call clobbers here.
15988
15989 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15990
15991         PR tree-optimization/98371
15992         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
15993         (vect_analyze_loop): If an epilogue loop appears to be cheaper
15994         than the main loop, re-analyze it as a main loop before adopting
15995         it as a main loop.
15996
15997 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15998
15999         PR c++/98316
16000         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
16001         * aclocal.m4, configure: Regenerate.
16002         * Makefile.in (NETLIBS): Define.
16003         (BACKEND): Remove $(CODYLIB).
16004
16005 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
16006
16007         PR rtl-optimization/98334
16008         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
16009         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
16010
16011 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16012
16013         * tree-inline.c (expand_call_inline): Restore input_location.
16014         Return result from recursive call.
16015
16016 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
16017
16018         PR tree-optimization/95401
16019         * config/aarch64/aarch64-sve-builtins.cc
16020         (gimple_folder::load_store_cookie): Use bits rather than bytes
16021         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
16022         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
16023         * tree-vect-stmts.c (vectorizable_store): Likewise.
16024         (vectorizable_load): Likewise.
16025
16026 2021-01-04  Richard Biener  <rguenther@suse.de>
16027
16028         PR tree-optimization/98308
16029         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
16030         SLP vectype.
16031
16032 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
16033
16034         PR tree-optimization/95771
16035         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
16036         with precision smaller than int's precision and types with precision
16037         twice as large as long long.  Formatting fixes.
16038
16039 2021-01-04  Richard Biener  <rguenther@suse.de>
16040
16041         PR tree-optimization/98464
16042         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
16043         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
16044         (process_bb): Adjust.
16045
16046 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
16047
16048         PR other/98437
16049         * doc/invoke.texi (-fsanitize=address): Fix wording describing
16050         clash with -fsanitize=hwaddress.
16051
16052 2021-01-04  Richard Biener  <rguenther@suse.de>
16053
16054         PR tree-optimization/98282
16055         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
16056         invariants as VN_NARY.
16057
16058 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
16059
16060         PR target/89057
16061         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
16062         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
16063         to handle zero operands.
16064
16065 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
16066
16067         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
16068         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
16069         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
16070         [-32, 31].
16071
16072 2021-01-04  Richard Biener  <rguenther@suse.de>
16073
16074         PR tree-optimization/98393
16075         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
16076         when hitting the limit.
16077
16078 2021-01-04  Richard Biener  <rguenther@suse.de>
16079
16080         PR tree-optimization/98291
16081         * tree-vect-loop.c (vectorizable_reduction): Bypass
16082         associativity check for SLP reductions with VF 1.
16083
16084 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
16085
16086         PR tree-optimization/96782
16087         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
16088
16089 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16090
16091         * collect-utils.c (collect_execute): Check dumppfx.
16092         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
16093         to collect_execute.
16094         (do_link): Add new parameter atsuffix.
16095         (main): Handle -dumpdir option.  Skip one argument for
16096         -o, -isystem and -B options.
16097         * gcc.c (make_at_file): New helper function.
16098         (close_at_file): Use it.
16099
16100 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16101
16102         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
16103         Amend handling for LD64_VERSION fallback defaults.
16104
16105 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16106
16107         * config.gcc: Compute default version information
16108         from the configured target.  Likewise defaults for
16109         ld64.
16110         * config/darwin10.h: Removed.
16111         * config/darwin12.h: Removed.
16112         * config/darwin9.h: Removed.
16113         * config/rs6000/darwin8.h: Removed.
16114
16115 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16116
16117         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
16118
16119 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16120
16121         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
16122         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
16123
16124 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16125
16126         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
16127         here...
16128         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
16129
16130 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16131
16132         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
16133         for the Darwin10 unwinder stub from here ...
16134         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
16135
16136 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
16137
16138         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
16139         (ASM_DEBUG_SPEC):Only define if the assembler supports
16140         stabs.
16141         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
16142         (DARWIN_PREFER_DWARF): Define.
16143         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
16144         (DARWIN_PREFER_DWARF): Likewise
16145         (DSYMUTIL_SPEC): Likewise.
16146         (COLLECT_RUN_DSYMUTIL): Likewise.
16147         (ASM_DEBUG_SPEC): Likewise.
16148         (ASM_DEBUG_OPTION_SPEC): Likewise.
16149
16150 2021-01-02  Jan Hubicka  <jh@suse.cz>
16151
16152         * cfg.c (free_block): ggc_free bb.
16153
16154 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
16155
16156         * gcc.c (process_command): Update copyright notice dates.
16157         * gcov-dump.c (print_version): Ditto.
16158         * gcov.c (print_version): Ditto.
16159         * gcov-tool.c (print_version): Ditto.
16160         * gengtype.c (create_file): Ditto.
16161         * doc/cpp.texi: Bump @copying's copyright year.
16162         * doc/cppinternals.texi: Ditto.
16163         * doc/gcc.texi: Ditto.
16164         * doc/gccint.texi: Ditto.
16165         * doc/gcov.texi: Ditto.
16166         * doc/install.texi: Ditto.
16167         * doc/invoke.texi: Ditto.
16168
16169 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
16170
16171         * ChangeLog-2020: Rotate ChangeLog.  New file.
16172
16173 \f
16174 Copyright (C) 2021 Free Software Foundation, Inc.
16175
16176 Copying and distribution of this file, with or without modification,
16177 are permitted in any medium without royalty provided the copyright
16178 notice and this notice are preserved.