c++: 'this' adjustment for devirtualized call
[official-gcc.git] / gcc / ChangeLog
blob290e374e4e45e8229976bc083e825069a5f5566e
1 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
3         * config/i386/mmx.md (addv2sf3): Do not call
4         ix86_fixup_binary_operands_no_copy.
5         (subv2sf3): Ditto.
6         (mulv2sf3): Ditto.
7         (<smaxmin:code>v2sf3): Ditto.
8         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
9         (<plusminus:insn><VI_32:mode>3): Remove expander.
10         (<plusminus:insn><VI_32:mode>3): Rename from
11         "*<plusminus:insn><VI_32:mode>3".
12         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
13         (mulv2hi3): Remove expander.
14         (mulv2hi3): Rename from *mulv2hi3.
15         (<s>mulv2hi3_highpart): Remove expander.
16         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
17         (<smaxmin:code><MMXMODE14:mode>3): Rename from
18         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
19         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
20         (SMAXMIN_MMXMODEI): Remove mode iterator.
21         (<smaxmin:code>v4hi3): New expander.
22         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
23         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
24         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
25         (SMAXMIN_VI_32): Remove mode iterator.
26         (<umaxmin:code><MMXMODE24:mode>3): Rename from
27         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
28         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
29         (UMAXMIN_MMXMODEI): Remove mode iterator.
30         (<umaxmin:code>v8qi3): New expander.
31         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
32         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
33         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
34         (UMAXMIN_VI_32): Remove mode iterator.
35         (<any_shift:insn>v2hi3): Remove expander.
36         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
37         (<any_logic:code><MMXMODEI:mode>3): Do not call
38         ix86_fixup_binary_operands_no_copy.
39         (<any_logic:code><VI_32:mode>3): Remove expander.
40         (<any_logic:code><VI_32:mode>3): Rename from
41         "*<any_logic:code><VI_32:mode>3".
42         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
43         * config/i386/sse.md (div<VF2:mode>3): Do not call
44         ix86_fixup_binary_operands_no_copy.
45         (div<VF1:mode>3): Ditto.
46         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
47         (smulhrsv4hi3): Ditto.
48         (smulhrsv2hi3): Ditto.
50 2021-05-27  Martin Sebor  <msebor@redhat.com>
52         * ggc.h (gt_ggc_mx): Add overloads for all integers.
53         (gt_pch_nx):  Same.
54         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
55         integers.
56         (hash_map::operator==): New function.
58 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
60         PR target/100637
61         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
62         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
63         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
64         (*xop_maskcmp<VI_32:mode>3): Ditto.
65         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
66         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
68 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
70         PR target/100767
71         * config/arm/arm.c (arm_configure_build_target): Remove parameter
72         opts_set, directly check opts parameters for being non-null.
73         (arm_option_restore): Update call to arm_configure_build_target.
74         (arm_option_override): Likewise.
75         (arm_can_inline_p): Likewise.
76         (arm_valid_target_attribute_tree): Likewise.
77         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
78         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
79         prototype.
81 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
83         * vr-values.c (simplify_conversion_using_ranges): Use
84         get_range_query instead of get_global_range_query.
86 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
88         * gimple-range.cc (get_range_global): Move to value-query.cc.
89         (gimple_range_global): Same.
90         (get_global_range_query): Same.
91         (global_range_query::range_of_expr): Same.
92         * gimple-range.h (class global_range_query): Move to
93         value-query.h.
94         (gimple_range_global): Same.
95         * tree-ssanames.c (get_range_info): Move to value-query.cc.
96         (get_ptr_nonnull): Same.
97         * tree-ssanames.h (get_range_info): Remove.
98         (get_ptr_nonnull): Remove.
99         * value-query.cc (get_ssa_name_range_info): Move from
100         tree-ssanames.c.
101         (get_ssa_name_ptr_info_nonnull): Same.
102         (get_range_global): Move from gimple-range.cc.
103         (gimple_range_global): Same.
104         (get_global_range_query): Same.
105         (global_range_query::range_of_expr): Same.
106         * value-query.h (class global_range_query): Move from
107         gimple-range.h.
108         (gimple_range_global): Same.
110 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
112         PR target/100637
113         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
114         (uavgv2hi3_ceil): Ditto.
116 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
118         PR c/100653
119         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
121 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
123         * tree-ssanames.c (get_range_info): Merge both copies of
124         get_range_info into one that works with irange.
125         * tree-ssanames.h (get_range_info): Remove version that works on
126         wide_ints.
128 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
130         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
131         (expand_builtin_strnlen): Same.
132         (determine_block_size): Same.
133         * fold-const.c (expr_not_equal_to): Same.
134         * gimple-fold.c (size_must_be_zero_p): Same.
135         * gimple-match-head.c: Include gimple-range.h.
136         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
137         * gimple-ssa-warn-restrict.c
138         (builtin_memref::extend_offset_range): Same.
139         * graphite-sese-to-poly.c (add_param_constraints): Same.
140         * internal-fn.c (get_min_precision): Same.
141         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
142         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
143         * match.pd: Same.
144         * tree-data-ref.c (split_constant_offset): Same.
145         (dr_step_indicator): Same.
146         * tree-dfa.c (get_ref_base_and_extent): Same.
147         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
148         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
149         (determine_value_range): Same.
150         (record_nonwrapping_iv): Same.
151         (infer_loop_bounds_from_signedness): Same.
152         (scev_var_range_cant_overflow): Same.
153         * tree-ssa-phiopt.c (two_value_replacement): Same.
154         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
155         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
156         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
157         (get_range): Same.
158         (dump_strlen_info): Same.
159         (set_strlen_range): Same.
160         (maybe_diag_stxncpy_trunc): Same.
161         (get_len_or_size): Same.
162         (handle_integral_assign): Same.
163         * tree-ssa-structalias.c (find_what_p_points_to): Same.
164         * tree-ssa-uninit.c (find_var_cmp_const): Same.
165         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
166         * tree-vect-patterns.c (vect_get_range_info): Same.
167         (vect_recog_divmod_pattern): Same.
168         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
169         (register_edge_assert_for_2): Same.
170         (determine_value_range_1): Same.
171         * tree.c (get_range_pos_neg): Same.
172         * vr-values.c (vr_values::get_lattice_entry): Same.
173         (vr_values::update_value_range): Same.
174         (simplify_conversion_using_ranges): Same.
176 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
178         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
179           get_range_query instead of query argument.
180         (pass_walloca::execute): Enable and disable global ranger.
182 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
184         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
185         enable_ranger.
186         (rvrp_folder::~rvrp_folder): Call disable_ranger.
187         (hybrid_folder::hybrid_folder): Call enable_ranger.
188         (hybrid_folder::~hybrid_folder): Call disable_ranger.
190 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
192         * function.c (allocate_struct_function): Set cfun->x_range_query.
193         * function.h (struct function): Declare x_range_query.
194         (get_range_query): New.
195         (get_global_range_query): New.
196         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
197         Remove call to safe_grow_cleared.
198         * gimple-range.cc (get_range_global): New.
199         (gimple_range_global): Move from gimple-range.h.
200         (get_global_range_query): New.
201         (global_range_query::range_of_expr): New.
202         (enable_ranger): New.
203         (disable_ranger): New.
204         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
205         (class global_range_query): New.
206         (enable_ranger): New.
207         (disable_ranger): New.
208         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
209         dump_all_value_ranges to dump.
210         * tree-vrp.c (vrp_prop::finalize): Same.
211         * value-query.cc (range_query::dump): New.
212         * value-query.h (range_query::dump): New.
213         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
214         (vr_values::dump): ...this.
215         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
216         dump and make virtual.
218 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
220         * config/i386/i386.c (ix86_autovectorize_vector_modes):
221         Add V4QImode and V16QImode for TARGET_SSE2.
222         * doc/sourcebuild.texi (Vector-specific attributes):
223         Add vect64 and vect32 description.
225 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
227         * gimple-range-gori.cc (range_def_chain::register_dependency):
228         Resize m_def_chain when needed.
230 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
232         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
233         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
234         * config/arm/vec-common.md: .. here. Add support for MVE.
236 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
238         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
239         register keywords.
240         * config/microblaze/microblaze.c (microblaze_legitimize_address,
241         call_internal1,
242         microblaze_option_override, print_operand): Likewise.
243         * config/microblaze/microblaze.md (call_internal_plt,
244         call_value_intern_plt, call_value_intern): Likewise.
245         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
246         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
247         call_value_multiple_internal1): Likewise.
248         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
250 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
252         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
253         arc_ccfsm_advance, symbolic_reference_mentioned_p,
254         arc_raw_symbolic_reference_mentioned_p): Remove register
255         keyword.
257 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
259         PR libgomp/100573
260         * omp-low.c: Include omp-offload.h.
261         (create_omp_child_function): If current_function_decl has
262         "omp declare target" attribute and is_gimple_omp_offloaded,
263         remove that attribute from the copy of attribute list and
264         add "omp target entrypoint" attribute instead.
265         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
266         variables for offloading if in omp_maybe_offloaded_ctx.
267         * omp-offload.c (pass_omp_target_link::execute): Nullify second
268         argument to GOMP_target_data_ext in offloaded code.
270 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
272         * config/csky/csky.c (csky_can_change_mode_class): Delete.
273         For csky, HF/SF mode use the low bits of VREGS.
275 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
277         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
278         DECL which is a reference for OMP.
280 2021-05-26  Martin Liska  <mliska@suse.cz>
282         PR gcov-profile/100751
283         * doc/gcov.texi: Document that __gcov_dump can be called just
284         once and that __gcov_reset resets run-time counters.
286 2021-05-26  Martin Liska  <mliska@suse.cz>
288         * doc/install.texi: Port relevant part from install-old.texi
289         and re-generate list of CPUs and systems.
291 2021-05-26  Martin Liska  <mliska@suse.cz>
293         * Makefile.in: Remove it.
294         * doc/include/fdl.texi: Update next/previous chapters.
295         * doc/install.texi: Likewise.
296         * doc/install-old.texi: Removed.
298 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
300         * config/csky/csky.c (ck810_legitimate_index_p): Support
301         "base + index" with DF mode.
302         * config/csky/constraints.md ("Y"): New constraint for memory operands
303         without index register.
304         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
305         when mov between memory and general registers, and lower their priority.
306         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
308 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
310         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
312 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
314         * config/csky/csky.md (untyped_call): Emit clobber for return
315         registers to mark them used.
317 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
319         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
321 2021-05-26  Andrew Pinski  <apinski@marvell.com>
323         * match.pd (x < 0 ? ~y : y): New patterns.
325 2021-05-26  Andrew Pinski  <apinski@marvell.com>
327         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
328         A?POW2:0 and A?0:POW2.
330 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
332         * gimple-range-gori.cc (class logical_stmt_cache): Delete
333         (logical_stmt_cache::logical_stmt_cache ): Delete.
334         (logical_stmt_cache::~logical_stmt_cache): Delete.
335         (logical_stmt_cache::cache_entry::dump): Delete.
336         (logical_stmt_cache::get_range): Delete.
337         (logical_stmt_cache::cached_name ): Delete.
338         (logical_stmt_cache::same_cached_name): Delete.
339         (logical_stmt_cache::cacheable_p): Delete.
340         (logical_stmt_cache::slot_diagnostics ): Delete.
341         (logical_stmt_cache::dump): Delete.
342         (gori_compute_cache::gori_compute_cache): Delete.
343         (gori_compute_cache::~gori_compute_cache): Delete.
344         (gori_compute_cache::compute_operand_range): Delete.
345         (gori_compute_cache::cache_stmt): Delete.
346         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
347         virtual.
348         (class gori_compute_cache): Delete.
350 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
352         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
353         intead of m_cache.
354         (fold_using_range::range_of_address): Adjust.
355         (fold_using_range::range_of_phi): Adjust.
356         * gimple-range.h (class fur_source): Adjust.
357         (fur_source::fur_source): Adjust.
359 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
361         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
362         from expr_range_in_bb and adjust.
363         (gori_compute::compute_name_range_op): Adjust.
364         (gori_compute::optimize_logical_operands): Adjust.
365         (gori_compute::compute_logical_operands_in_chain): Adjust.
366         (gori_compute::compute_operand1_range): Adjust.
367         (gori_compute::compute_operand2_range): Adjust.
368         (ori_compute_cache::cache_stmt): Adjust.
369         * gimple-range-gori.h (gori_compute): Rename prototype.
371 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
373         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
374         checked only after range_of_stmt, not range_on_entry.
375         (gimple_ranger::range_on_entry): Check for non-null in any
376         predecessor block, if it is not already non-null.
377         (gimple_ranger::range_on_exit): DOnt check for non-null after
378         range on entry call.
379         (gimple_ranger::dump_bb): New.  Split from dump.
380         (gimple_ranger::dump): Adjust.
381         * gimple-range.h (class gimple_ranger): Adjust.
383 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
385         * gimple-range-cache.cc (struct range_timestamp): Delete.
386         (class temporal_cache): Adjust.
387         (temporal_cache::get_timestamp): Delete.
388         (temporal_cache::set_dependency): Delete.
389         (temporal_cache::temporal_value): Adjust.
390         (temporal_cache::current_p): Take dependencies as params.
391         (temporal_cache::set_timestamp): Adjust.
392         (temporal_cache::set_always_current): Adjust.
393         (ranger_cache::get_non_stale_global_range): Adjust.
394         (ranger_cache::register_dependency): Delete.
395         * gimple-range-cache.h (class range_cache): Adjust.
397 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
399         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
400         bitmap obstack.
401         (range_def_chain::~range_def_chain): Dispose of obstack rather than
402         each individual bitmap.
403         (range_def_chain::set_import): New.
404         (range_def_chain::get_imports): New.
405         (range_def_chain::chain_import_p): New.
406         (range_def_chain::register_dependency): Rename from build_def_chain
407         and set imports.
408         (range_def_chain::def_chain_in_bitmap_p): New.
409         (range_def_chain::add_def_chain_to_bitmap): New.
410         (range_def_chain::has_def_chain): Just check first depenedence.
411         (range_def_chain::get_def_chain): Process imports, use generic
412         register_dependency routine.
413         (range_def_chain::dump): New.
414         (gori_map::gori_map): Allocate import list.
415         (gori_map::~gori_map): Release imports.
416         (gori_map::exports): Check for past allocated block size.
417         (gori_map::imports): New.
418         (gori_map::def_chain_in_export_p): Delete.
419         (gori_map::is_import_p): New.
420         (gori_map::maybe_add_gori): Handle imports.
421         (gori_map::dump): Adjust output, add imports.
422         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
423         (gori_export_iterator::gori_export_iterator): New.
424         (gori_export_iterator::next): New.
425         (gori_export_iterator::get_name): New.
426         * gimple-range-gori.h (range_def_chain): Add imports and direct
427         dependecies via struct rdc.
428         (range_def_chain::depend1): New.
429         (range_def_chain::depend2): New.
430         (class gori_map): Adjust.
431         (FOR_EACH_GORI_IMPORT_NAME): New.
432         (FOR_EACH_GORI_EXPORT_NAME): New.
433         (class gori_export_iterator): New.
435 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
437         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
438         export cache filling to here.
439         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
441 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
443         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
444         (gori_map): Move to gimple-range-gori.h.
445         (gori_compute::gori_compute): Adjust.
446         (gori_compute::~gori_compute): Delete.
447         (gori_compute::compute_operand_range_switch): Adjust.
448         (gori_compute::compute_operand_range): Adjust.
449         (gori_compute::compute_logical_operands): Adjust.
450         (gori_compute::has_edge_range_p ): Adjust.
451         (gori_compute::set_range_invariant): Delete.
452         (gori_compute::dump): Adjust.
453         (gori_compute::outgoing_edge_range_p): Adjust.
454         * gimple-range-gori.h (class range_def_chain): Relocate here.
455         (class gori_map): Relocate here.
456         (class gori_compute): Inherit from gori_map, and adjust.
458 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
460         * value-range.cc (range_tests_legacy): Use
461         build_nonstandard_integer_type instead of int and short.
463 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
465         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
466         when really creating an initialization statement for it.
468 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
470         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
472 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
474         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
476 2021-05-25  Martin Liska  <mliska@suse.cz>
478         PR tree-optimization/92860
479         PR target/99592
480         * optc-save-gen.awk: Remove exceptions.
482 2021-05-25  Martin Liska  <mliska@suse.cz>
484         * asan.h (sanitize_coverage_p): New function.
485         * doc/extend.texi: Document it.
486         * fold-const.c (fold_range_test): Use sanitize_flags_p
487         instead of flag_sanitize_coverage.
488         (fold_truth_andor): Likewise.
489         * sancov.c: Likewise.
490         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
491         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
492         -fsanitize-coverage when inlining.
494 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
496         * config/csky/csky-modes.def : Fix copyright.
498 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
500         * config/csky/csky-modes.def : Amend copyright.
501         * config/csky/csky_insn_fpuv2.md : Likewise.
502         * config/csky/csky_insn_fpuv3.md : Likewise.
504 2021-05-25  Richard Biener  <rguenther@suse.de>
506         PR middle-end/100727
507         * calls.c (initialize_argument_information): Explicitely test
508         for WITH_SIZE_EXPR.
509         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
511 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
513         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
514         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
515         the signle definition. The signle definition may not work well
516         at simplify_subreg_regno().
517         (HARD_FRAME_POINTER_REGNUM): New.
518         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
519         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
520         csky_initial_elimination_offset, csky_expand_prologue,
521         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
523 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
525         * config/csky/csky.c (csky_option_override):
526         Init csky_arch_isa_features[] in advance, so TARGET_DSP
527         and TARGET_DIV can be set well.
529 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
531         * config/csky/constraints.md ("l", "h"): Delete.
532         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
533         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
534         * config/csky/csky.c (regno_reg_classm,
535         csky_secondary_reload, csky_register_move_cost):
536         Use HILO_REGS instead of LO_REGS and HI_REGS.
538 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
540         * config/csky/constraints.md ("W"): New constriant for mem operand
541         with base reg, index register.
542         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
543         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
544         constraint.
545         ("Dv"): New constraint for const double value that can be used at
546         fmovi instruction.
547         * config/csky/csky-modes.def (HFmode): New mode.
548         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
549         to "csky_valid_mem_constraint_operand" and support new constraint
550         "W".
551         (csky_get_movedouble_length): New.
552         (fpuv3_output_move): New.
553         (fpuv3_const_double): New.
554         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
555         (decompose_csky_address): Refine.
556         (csky_print_operand): New "CONST_DOUBLE" operand.
557         (csky_output_move): Support fpv3 instructions.
558         (csky_get_movedouble_length): New.
559         (fpuv3_output_move): New.
560         (fpuv3_const_double): New.
561         (csky_emit_compare): Cover float comparsion.
562         (csky_emit_compare_float): Refine.
563         (csky_vaild_fpuv2_mem_operand): Rename to
564         "csky_valid_mem_constraint_operand" and support new constraint "W".
565         (ck860_rtx_costs): New.
566         (csky_rtx_costs): Add the cost calculation of CK860.
567         (regno_reg_class): New vregs for fpuv3.
568         (csky_dbx_regno): Likewise.
569         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
570         (csky_conditional_register_usage): Suporrot fpuv3.
571         (csky_dwarf_register_span): Suporrot fpuv3.
572         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
573         (ck810_legitimate_index_p): Support fp16.
574         * config/csky/csky.h (TARGET_TLS): ADD CK860.
575         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
576         (TARGET_SINGLE_FPU): Support fpuv3.
577         (TARGET_SUPPORT_FPV3): New.
578         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
579         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
580          REG_CLASS_CONTENTS): Support fpuv3.
581         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
582         (csky_movsf_fpv2): Likewise.
583         (ck801_movsf): Likewise.
584         (csky_movsf): Likewise.
585         (movdf): Likewise.
586         (csky_movdf_fpv2): Likewise.
587         (ck801_movdf): Likewise.
588         (csky_movdf): Likewise.
589         (movsicc): Refine. Use "comparison_operatior" instead of
590         "ordered_comparison_operatior".
591         (addsicc): Likewise.
592         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
593         (call_value_internal_vh): New.
594         * config/csky/csky_cores.def (CK860): New arch and cpu.
595         (fpv3_hf): New.
596         (fpv3_hsf): New.
597         (fpv3_sdf): New.
598         (fpv3): New.
599         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
600         into emit-patterns and match-patterns, remain the emit-patterns here,
601         and move the match-patterns to csky_insn_fpuv2.md or
602         csky_insn_fpuv3.md.
603         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
604         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
605         isntructions.
606         * config/csky/csky_isa.def (fcr): New.
607         (fpv3_hi): New.
608         (fpv3_hf): New.
609         (fpv3_sf): New.
610         (fpv3_df): New.
611         (CK860): New definition for ck860.
612         * config/csky/csky_tables.opt (ck860): New processors ck860,
613         ck860f. And new arch ck860.
614         (fpv3_hf): New.
615         (fpv3_hsf): New.
616         (fpv3_hdf): New.
617         (fpv3): New.
618         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
619         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
620         * config/csky/t-csky-elf: Support 860.
621         * config/csky/t-csky-linux: Likewise.
622         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
624 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
626         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
627         add generation of logical-add and add-logical fusion pairs.
628         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
629         and powerpc mask.
630         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
631         logical-add and add-logical fusion by default.
632         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
633         -mpower10-fusion-add-logical options.
634         * config/rs6000/fusion.md: Regenerate file.
636 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
638         * value-range.cc (irange::legacy_equal_p): Check type when
639         comparing VR_VARYING types.
640         (range_tests_legacy): Test comparing VARYING ranges of different
641         sizes.
643 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
645         * config/aarch64/aarch64.c (neoversen1_tunings):
646         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
648 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
650         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
651         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
652         PIC/PIE.
654 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
656         * config/arm/neon.md (vec_load_lanesxi<mode>)
657         (vec_store_lanexoi<mode>): Move ...
658         * config/arm/vec-common.md: here.
660 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
662         * config/arm/neon.md (vec_load_lanesoi<mode>)
663         (vec_store_lanesoi<mode>): Move ...
664         * config/arm/vec-common.md: here.
666 2021-05-24  liuhongt  <hongtao.liu@intel.com>
668         PR target/100660
669         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
670         stmt with GIMPLE_NOP when lhs doesn't exist.
672 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
674         PR target/100722
675         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
676         New instruction pattern.
677         (*push<VI_32:mode>2): Ditto.
678         (push splitter for SSE registers): New splitter.
680 2021-05-23  Andrew Pinski  <apinski@marvell.com>
682         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
684 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
686         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
687         * config/rs6000/fusion.md: Regenerate file.
689 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
691         * config/rs6000/genfusion.pl (gen_addadd): New function.
692         * config/rs6000/fusion.md: Regenerate file.
693         * config/rs6000/rs6000-cpus.def: Add
694         OPTION_MASK_P10_FUSION_2ADD to masks.
695         * config/rs6000/rs6000.c (rs6000_option_override_internal):
696         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
697         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
699 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
701         PR middle-end/99928
702         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
703         * gimplify.c (enum gimplify_omp_var_data): Fix up
704         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
705         (omp_lastprivate_for_combined_outer_constructs): If combined target
706         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
707         GOVD_MAP | GOVD_SEEN.
708         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
709         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
710         (gimplify_adjust_omp_clauses): For firstprivate clauses with
711         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
712         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
713         let it be replaced by implicit map clause.
715 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
717         PR middle-end/99928
718         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
719         function.
720         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
721         (gimplify_omp_for): Likewise.
723 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
725         PR middle-end/90115
726         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
727         'external' in blocks.
729 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
731         PR middle-end/90115
732         * flag-types.h (enum openacc_privatization): New.
733         * params.opt (-param=openacc-privatization): New.
734         * doc/invoke.texi (openacc-privatization): Document it.
735         * omp-general.h (get_openacc_privatization_dump_flags): New
736         function.
737         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
738         * omp-offload.c (execute_oacc_device_lower)
739         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
740         * target.def (goacc.adjust_private_decl): Add 'location_t'
741         parameter.
742         * doc/tm.texi: Regenerate.
743         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
744         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
745         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
746         Likewise.  Preserve it for...
747         (nvptx_goacc_expand_var_decl): ... use here.
749 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
751         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
752         DejaGnu selector.
754 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
756         PR middle-end/90115
757         * omp-low.c (oacc_privatization_candidate_p): New function.
758         (oacc_privatization_scan_clause_chain)
759         (oacc_privatization_scan_decl_chain): Use it.  Also
760         'gcc_checking_assert' that we're not seeing duplicates.
762 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
764         PR middle-end/90115
765         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
766         work to be done.
768 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
770         PR middle-end/90115
771         * omp-offload.c (execute_oacc_device_lower): Explain.
773 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
775         PR middle-end/90115
776         * omp-offload.c (execute_oacc_device_lower)
777         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
778         case, too.
779         * internal-fn.c (expand_UNIQUE): Don't expect
780         'IFN_UNIQUE_OACC_PRIVATE'.
782 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
784         PR middle-end/90115
785         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
787 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
789         PR middle-end/90115
790         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
791         (nvptx_goacc_expand_var_decl): Tighten.
793 2021-05-21  Julian Brown  <julian@codesourcery.com>
794             Chung-Lin Tang  <cltang@codesourcery.com>
795             Thomas Schwinge  <thomas@codesourcery.com>
797         PR middle-end/90115
798         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
799         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
800         * doc/tm.texi: Regenerate.
801         * expr.c (expand_expr_real_1): Expand decls using the
802         expand_var_decl OpenACC hook if defined.
803         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
804         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
805         * omp-low.c (omp_context): Add oacc_privatization_candidates
806         field.
807         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
808         before fork.
809         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
810         private marker's gimple call arguments, and pass it to
811         lower_oacc_reductions.
812         (oacc_privatization_scan_clause_chain)
813         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
814         New functions.
815         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
816         * omp-offload.c (convert.h): Include.
817         (oacc_loop_xform_head_tail): Treat private-variable markers like
818         fork/join when transforming head/tail sequences.
819         (struct var_decl_rewrite_info): Add struct.
820         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
821         (execute_oacc_device_lower): Support rewriting gang-private
822         variables using target hook, and fix up addr_expr and var_decl
823         nodes afterwards.
824         * target.def (adjust_private_decl, expand_var_decl): New hooks.
825         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
826         Rename to...
827         (gcn_goacc_adjust_private_decl): ...this.
828         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
829         Rename to...
830         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
831         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
832         definition using gcn_goacc_adjust_gangprivate_decl...
833         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
834         gcn_goacc_adjust_private_decl.
835         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
836         (gang_private_shared_size): New global variable.
837         (gang_private_shared_align): Likewise.
838         (gang_private_shared_sym): Likewise.
839         (gang_private_shared_hmap): Likewise.
840         (nvptx_option_override): Initialize these.
841         (nvptx_file_end): Output gang_private_shared_sym.
842         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
843         New functions.
844         (nvptx_set_current_function): Clear gang_private_shared_hmap.
845         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
846         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
848 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
850         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
852 2021-05-21  Richard Biener  <rguenther@suse.de>
853             H.J. Lu  <hjl.tools@gmail.com>
855         PR middle-end/90773
856         * expr.c (expand_constructor): Elide expand_constructor if
857         move by pieces is preferred.
859 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
861         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
862         Take a flag and mode value as arguments.
863         (aarch64_modifies_global_state_p): Likewise.
864         (aarch64_reads_global_state_p): Likewise.
865         (aarch64_could_trap_p): Likewise.
866         (aarch64_get_attributes): Likewise.
867         (aarch64_init_simd_builtins): Adjust callsite of above.
868         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
869         function attributes to apply to builtins.
870         (aarch64_init_crc32_builtins): Likewise.
871         (aarch64_init_builtin_rsqrt): Likewise.
873 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
875         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
876         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
877         (gen_2logical): Use new fusion types.
878         * config/rs6000/fusion.md: Regenerate.
880 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
882         PR target/100637
883         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
884         Handle V4QI and V2HI modes.
885         (ix86_expand_sse_movcc): Ditto.
886         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
887         New instruction pattern.
888         (*eq<VI_32:mode>3): Ditto.
889         (*gt<VI_32:mode>3): Ditto.
890         (*xop_pcmov_<VI_32:mode>): Ditto.
891         (mmx_pblendvb32): Ditto.
892         (mmx_pblendvb64): Rename from mmx_pblendvb.
893         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
894         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
895         (vcond<VI_32:mode><VI_32:mode>): Ditto.
896         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
897         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
899 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
901         PR tree-optimization/94589
902         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
903         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
904         not the same as cmp3) treat <= the same as < and >= the same as >.
905         Don't require that cond2_phi_edge is true edge, instead take
906         false/true edges into account based on cmp1/cmp2 comparison kinds.
908 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
910         PR target/100637
911         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
912         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
913         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
914         using SMAXMIN_MMXMODEI mode iterator.
915         (*<smaxmin:code>v4qi3): New insn pattern.
916         (*<smaxmin:code>v2hi3): Ditto.
917         (SMAXMIN_VI_32): New mode iterator.
918         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
919         (UMAXMIN_MMXMODEI): New mode iterator.
920         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
921         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
922         using UMAXMIN_MMXMODEI mode iterator.
923         (*<umaxmin:code>v4qi3): New insn pattern.
924         (*<umaxmin:code>v2hi3): Ditto.
925         (UMAXMIN_VI_32): New mode iterator.
926         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
927         (abs<VI_32:mode>2): New insn pattern.
928         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
929         * config/i386/sse.md: ... here.
931 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
932             David Edelsohn  <dje.gcc@gmail.com>
934         * collect2.c (scan_prog_file): Issue non-fatal warning for
935         non-COFF files.
937 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
939         * doc/invoke.texi (-Wno-c++11-extensions)
940         (-Wno-c++14-extensions, -Wno-c++17-extensions)
941         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
942         new options.
944 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
946         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
947         * config/darwin.c (darwin_override_options): Likewise.
948         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
949         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
950         (DWARF2_FRAME_REG_OUT): Likewise.
951         * config/mips/mips.c (mips_output_filename): Likewise.
952         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
953         Likewise.
954         (rs6000_dbx_register_number): Likewise.
955         * dbxout.c: Include flags.h.
956         * dwarf2cfi.c (cfi_label_required_p): Likewise.
957         (dwarf2out_do_frame): Likewise.
958         * except.c: Include flags.h.
959         * final.c (dwarf2_debug_info_emitted_p): Likewise.
960         (final_scan_insn_1): Likewise.
961         * flags.h (dwarf_debuginfo_p): New function declaration.
962         * opts.c (dwarf_debuginfo_p): New function definition.
963         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
964         * toplev.c (process_options): Likewise.
966 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
968         * common.opt: Change type to support bitmasks.
969         * flag-types.h (enum debug_info_type): Rename enumerator constants.
970         (NO_DEBUG): New bitmask.
971         (DBX_DEBUG): Likewise.
972         (DWARF2_DEBUG): Likewise.
973         (XCOFF_DEBUG): Likewise.
974         (VMS_DEBUG): Likewise.
975         (VMS_AND_DWARF2_DEBUG): Likewise.
976         * flags.h (debug_set_to_format): New function declaration.
977         (debug_set_count): Likewise.
978         (debug_set_names): Likewise.
979         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
980         (debug_set_to_format): New function definition.
981         (debug_set_count): Likewise.
982         (debug_set_names): Likewise.
983         (set_debug_level): Update access to debug_type_names.
984         * toplev.c: Likewise.
986 2021-05-20  Martin Sebor  <msebor@redhat.com>
988         PR middle-end/100684
989         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
991 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
993         PR target/100701
994         * config/i386/i386.md (isa): Remove x64_bmi.
995         (enabled): Remove x64_bmi.
996         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
997         Remove general register alternative.
998         (*andnot<VI_32:mode>3): Ditto.
999         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
1000         (*<any_logic:code><VI_32:mode>3): Ditto.
1002 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
1004         * config/arm/arm.c: Include head files tree-vectorizer.h and
1005         cfgloop.h.
1007 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
1009         PR target/100637
1010         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
1011         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
1012         (<s>mulv4hi3_highpart): New expander.
1013         (*<s>mulv2hi3_highpart): New insn pattern.
1014         (<s>mulv2hi3_higpart): New expander.
1015         (*<any_shift:insn>v2hi3): New insn pattern.
1016         (<any_shift:insn>v2hi3): New expander.
1017         * config/i386/sse.md (smulhrsv2hi3): New expander.
1018         (*smulhrsv2hi3): New insn pattern.
1020 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
1022         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
1023         parameter.
1024         * params.opt (vect-inner-loop-cost-factor): New.
1025         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
1026         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
1027         tree-vectorizer.h and its required ones.
1028         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
1029         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
1030         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
1031         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
1032         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
1033         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1034         Likewise.
1035         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
1036         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
1037         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
1039 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
1040             Torbjörn Svensson  <torbjorn.svensson@st.com>
1042         PR c/42579
1043         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
1045 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
1047         PR middle-end/99928
1048         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
1049         explicit linear clause when combined with target, make it map(tofrom:)
1050         instead of no clause or firstprivate.
1052 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
1054         PR tree-optimization/94589
1055         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
1056         of integral conversions.
1058 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
1060         * gimple-range.cc (fur_source::get_operand): New.
1061         (gimple_range_fold): Delete.
1062         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
1063         (fold_using_range::range_of_range_op): Move from gimple_ranger.
1064         (fold_using_range::range_of_address): Ditto.
1065         (fold_using_range::range_of_phi): Ditto.
1066         (fold_using_range::range_of_call): Ditto.
1067         (fold_using_range::range_of_builtin_ubsan_call): Move from
1068         range_of_builtin_ubsan_call.
1069         (fold_using_range::range_of_builtin_call): Move from
1070         range_of_builtin_call.
1071         (gimple_ranger::range_of_builtin_call): Delete.
1072         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
1073         (gimple_ranger::fold_range_internal): New.
1074         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
1075         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
1076         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
1077         * gimple-range.h (gimple_ranger): Remove various range_of routines.
1078         (class fur_source): New.
1079         (class fold_using_range): New.
1080         (fur_source::fur_source): New.
1081         (fold_range): New.
1082         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
1083         instead of range_of_builtin_call.
1085 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
1087         * doc/cpp.texi (Common Predefined Macros): Update documentation
1088         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
1090 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
1092         PR target/100333
1093         * config/arm/arm.md (nonsecure_call_internal): Always ensure
1094         callee's address is in a register.
1096 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
1098         * common/config/riscv/riscv-common.c
1099         (riscv_subset_list::parsing_subset_version): Properly parse the letter
1100         'p' in '-march'.
1101         (riscv_subset_list::parse_std_ext,
1102          riscv_subset_list::parse_multiletter_ext): To handle errors generated
1103         in riscv_subset_list::parsing_subset_version.
1105 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
1107         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
1108         type attribute in patterns generating XTN(2).
1110 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
1112         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
1113         Remove as duplicate of...
1114         (aarch64_xtn<mode>): This.
1115         (aarch64_xtn2<mode>_le): Move position in file.
1116         (aarch64_xtn2<mode>_be): Move position in file.
1117         (aarch64_xtn2<mode>): Move position in file.
1118         (vec_pack_trunc_<mode>): Define as an expander.
1120 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
1122         * config/aarch64/aarch64-simd-builtins.def: Split builtin
1123         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
1124         separate scalar and vector generators.
1125         * config/aarch64/aarch64-simd.md
1126         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
1127         split into...
1128         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
1129         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
1130         * config/aarch64/iterators.md: Define SD_HSDI iterator.
1132 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
1134         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
1135         of UNSPEC_SQXTUN2.
1136         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
1138 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
1140         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
1141         Implement as an expand emitting a big/little endian
1142         instruction pattern.
1143         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
1144         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
1146 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
1148         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
1149         Implement as an expand emitting a big/little endian
1150         instruction pattern.
1151         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
1152         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
1153         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
1154         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
1156 2021-05-19  Richard Biener  <rguenther@suse.de>
1158         PR middle-end/100672
1159         * fold-const.c (fold_negate_expr_1): Use element_precision.
1160         (negate_expr_p): Likewise.
1162 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1164         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
1165         (pred_load): New int attribute.
1166         * config/aarch64/aarch64-sve.md
1167         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
1168         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
1169         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
1170         code_for_aarch64_load.
1172 2021-05-19  Richard Biener  <rguenther@suse.de>
1174         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
1175         sure TARGET_MEM_REF bases are expanded as memory.
1176         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
1177         Do not mark TARGET_MEM_REF bases addressable.
1178         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
1179         TARGET_MEM_REF bases as never rewritable.
1180         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
1181         walk TARGET_MEM_REF bases as address-takens.
1182         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
1184 2021-05-19  Richard Biener  <rguenther@suse.de>
1186         * builtins.c (get_object_alignment_1): Strip outer
1187         WITH_SIZE_EXPR.
1188         * tree-dfa.c (get_ref_base_and_extent): Handle outer
1189         WITH_SIZE_EXPR for size processing and process the
1190         containing ref.
1191         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
1192         outer WITH_SIZE_EXPR.
1193         (ao_ref_base_alias_ptr_type): Likewise.
1194         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
1195         and handle that accordingly, stripping it for the
1196         core alias workers.
1197         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
1198         looking through it instead of returning NULL.
1200 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
1202         PR middle-end/100576
1203         * builtins.c (check_read_access): Convert bound to size_type_node if
1204         non-NULL.
1206 2021-05-19  Richard Biener  <rguenther@suse.de>
1208         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
1209         (verify_types_in_gimple_reference): ... here.  Sanitize.
1210         (verify_gimple_call): Verify references in LHS and arguments.
1211         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
1213 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
1215         * config/i386/i386.h (VALID_INT_MODE_P):
1216         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
1217         * config/i386/i386.md (isa): Add x64_bmi.
1218         (enabled): Handle x64_bmi.
1219         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
1220         Add alternative using 64bit general registers.
1221         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
1223 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
1225         PR middle-end/99928
1226         * tree.h (OMP_MASTER_COMBINED): Define.
1227         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
1228         handling for outer combined/composite constructs to a loop.
1229         Handle lastprivate on combined target.
1230         (gimplify_expr): Formatting fix.
1232 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
1234         * passes.def: Add sink_code pass before store_merging.
1235         * tree-ssa-sink.c (pass_sink_code:clone): New.
1237 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
1239         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
1240         rs6000_special_adjust_field_align_p.
1241         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1242         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
1243         Remove ABI warning.
1244         (rs6000_function_arg): Likewise.
1245         * config/rs6000/rs6000-protos.h
1246         (rs6000_special_adjust_field_align_p): Remove prototype.
1247         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1248         Remove.
1249         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
1250         rs6000_special_adjust_field_align_p.
1252 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
1254         PR target/100637
1255         * config/i386/i386.h (VALID_SSE2_REG_MODE):
1256         Add V4QI and V2HI modes.
1257         (VALID_INT_MODE_P): Ditto.
1258         * config/i386/mmx.md (VI_32): New mode iterator.
1259         (mmxvecsize): Handle V4QI and V2HI.
1260         (Yv_Yw): Ditto.
1261         (mov<VI_32:mode>): New expander.
1262         (*mov<mode>_internal): New insn pattern.
1263         (movmisalign<VI_32:mode>): New expander.
1264         (neg<VI_32:mode>): New expander.
1265         (<plusminus:insn><VI_32:mode>3): New expander.
1266         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
1267         (mulv2hi3): New expander.
1268         (*mulv2hi3): New insn pattern.
1269         (one_cmpl<VI_32:mode>2): New expander.
1270         (*andnot<VI_32:mode>3): New insn pattern.
1271         (<any_logic:code><VI_32:mode>3): New expander.
1272         (*<any_logic:code><VI_32:mode>3): New insn pattern.
1274 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
1276         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
1277         Fix a mode mismatch with operand 1.
1279 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
1281         PR target/100626
1282         * config/i386/i386-expand.c (split_double_mode): Return
1283         temporary register when simplify_gen_subreg fails with
1284         the high half od the paradoxical subreg.
1286 2021-05-18  Richard Biener  <rguenther@suse.de>
1288         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
1289         and honor it when expanding.
1290         (expand_used_vars_for_block): Pass through forced_stack_var.
1291         (expand_used_vars): Likewise.
1292         (discover_nonconstant_array_refs_r): Set bits in
1293         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
1294         (avoid_type_punning_on_regs): Likewise.
1295         (discover_nonconstant_array_refs): Likewise.
1296         (pass_expand::execute): Create and pass down forced_stack_var
1297         bitmap.  For parameters and returns temporarily set
1298         TREE_ADDRESSABLE when expand_function_start.
1300 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1302         * doc/sourcebuild.texi: Document 'dg-note'.
1304 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
1306         PR other/100598
1307         * configure: Regenerate.
1308         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
1310 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1312         * gimple.h (is_gimple_omp_oacc): Tighten.
1313         * omp-low.c (check_omp_nesting_restrictions): Adjust.
1315 2021-05-18  Richard Biener  <rguenther@suse.de>
1317         * tree-ssa-operands.c (mark_address_taken): Simplify.
1319 2021-05-18  Martin Liska  <mliska@suse.cz>
1321         * config/gcn/mkoffload.c (STR): Redefine.
1322         * config/i386/intelmic-mkoffload.c (STR): Likewise.
1323         * config/nvptx/mkoffload.c (STR): Likewise.
1325 2021-05-18  Martin Liska  <mliska@suse.cz>
1327         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
1328         Use startswith function instead of strncmp.
1329         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1330         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
1331         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
1332         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
1333         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
1334         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
1335         * config/arm/arm.c (arm_file_start): Likewise.
1336         (arm_valid_target_attribute_rec): Likewise.
1337         (thumb1_md_asm_adjust): Likewise.
1338         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
1339         * config/avr/avr.c (STR_PREFIX_P): Likewise.
1340         (avr_set_current_function): Likewise.
1341         (avr_handle_addr_attribute): Likewise.
1342         (avr_asm_output_aligned_decl_common): Likewise.
1343         (avr_asm_named_section): Likewise.
1344         (avr_section_type_flags): Likewise.
1345         (avr_asm_select_section): Likewise.
1346         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
1347         (c6x_section_type_flags): Likewise.
1348         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
1349         (darwin_objc_declare_unresolved_class_reference): Likewise.
1350         (darwin_objc_declare_class_definition): Likewise.
1351         * config/darwin.c (indirect_data): Likewise.
1352         (darwin_encode_section_info): Likewise.
1353         (darwin_objc2_section): Likewise.
1354         (darwin_objc1_section): Likewise.
1355         (machopic_select_section): Likewise.
1356         (darwin_globalize_label): Likewise.
1357         (darwin_label_is_anonymous_local_objc_name): Likewise.
1358         (darwin_asm_named_section): Likewise.
1359         (darwin_asm_output_dwarf_offset): Likewise.
1360         * config/frv/frv.c (frv_string_begins_with): Likewise.
1361         (frv_in_small_data_p): Likewise.
1362         * config/gcn/mkoffload.c (STR): Likewise.
1363         (main): Likewise.
1364         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
1365         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
1366         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
1367         (ix86_md_asm_adjust): Likewise.
1368         * config/i386/intelmic-mkoffload.c (STR): Likewise.
1369         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
1370         (i386_pe_file_end): Likewise.
1371         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
1372         (ia64_section_type_flags): Likewise.
1373         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
1374         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
1375         (mips16_stub_function_p): Likewise.
1376         (mips_function_rodata_section): Likewise.
1377         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
1378         (msp430_function_section): Likewise.
1379         (msp430_section_type_flags): Likewise.
1380         (msp430_expand_helper): Likewise.
1381         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
1382         (nios2_valid_target_attribute_rec): Likewise.
1383         * config/nvptx/mkoffload.c (process): Likewise.
1384         (STR): Likewise.
1385         * config/pa/som.h: Likewise.
1386         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
1387         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
1388         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
1389         (rs6000_inner_target_options): Likewise.
1390         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
1391         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
1392         * config/vax/vax.c (vax_output_int_move): Likewise.
1393         * config/vms/vms-ld.c (startswith): Likewise.
1394         (process_args): Likewise.
1395         (main): Likewise.
1396         * config/vms/vms.c: Likewise.
1398 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
1400         PR rtl-optimization/100590
1401         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
1402         they are NONJUMP_INSN_P.
1404 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
1406         PR c++/100580
1407         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
1408         DECL_ASSEMBLER_NAME on the fn_decl.
1410 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
1412         PR tree-optimization/94589
1413         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
1414         phi result used in (res & ~1) == 0 comparison as res >= 0 as
1415         res == 2 would be UB with -ffinite-math-only.
1417 2021-05-18  Martin Liska  <mliska@suse.cz>
1419         * Makefile.in: genversion.o should depend on DATESTAMP.
1421 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
1423         * config/arc/simdext.md (negv2si2): Remove round bracket.
1425 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
1427         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
1428         _Bool as macro expanding to _Bool.
1430 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
1432         PR c++/100281
1433         * tree.c (build_reference_type_for_mode)
1434         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
1435         is VOIDmode.
1436         (build_reference_type, build_pointer_type): Invoke
1437         build_*_type_for_mode with VOIDmode.
1439 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
1441         PR tree-optimization/100512
1442         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
1443         and non-zero pointer ranges as invariant.
1444         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
1445         processing from here.
1447 2021-05-17  Tom de Vries  <tdevries@suse.de>
1449         PR target/100497
1450         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
1451         * config/nvptx/nvptx.c (nvptx_output_barrier)
1452         (nvptx_output_atomic_insn): New function.
1453         (nvptx_print_operand): Add support for 'B'.
1454         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
1455         insns.
1457 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
1459         PR tree-optimization/100349
1460         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
1461           NULL.
1463 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
1465         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
1466         (host_detect_local_cpu): Use it.
1468 2021-05-17  Martin Liska  <mliska@suse.cz>
1470         * doc/invoke.texi: Add 2 missing dots.
1472 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
1474         PR bootstrap/100552
1475         * configure.ac: Replace pattern substitution with call to sed.
1476         * configure: Regenerate.
1478 2021-05-17  Richard Biener  <rguenther@suse.de>
1480         PR middle-end/100582
1481         * tree.c (array_at_struct_end_p): Get to the base of the
1482         reference before looking for the underlying decl.
1484 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
1486         * genoutput.c (validate_insn_alternatives) Make "wrong number of
1487         alternatives" message more specific, and remove assumption on where
1488         the problem is.
1490 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
1492         * config/arm/iterators.md (V16): New iterator.
1493         (VH_cvtto): New iterator.
1494         (v_cmp_result): Added V4HF and V8HF support.
1495         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
1496         (vcond<mode><mode>): Likewise.
1497         (vcond_mask_<mode><v_cmp_result>): Likewise.
1498         (vcond<VH_cvtto><mode>): New expander.
1500 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
1502         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
1503         prototype.
1504         * config/arm/arm.c (arm_expand_vector_compare): Add support for
1505         MVE.
1506         (arm_expand_vcond): Likewise.
1507         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
1508         VCMPEQQ_N_S, VCMPNEQ_N_S.
1509         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
1510         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
1511         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
1512         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
1513         (@mve_vpselq_<supf><mode>): Likewise.
1514         (@mve_vpselq_f<mode>"): Likewise.
1515         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
1516         and move to vec-common.md.
1517         (vec_cmpu<mode><mode>): Likewise.
1518         (vcond<mode><mode>): Likewise.
1519         (vcond<V_cvtto><mode>): Likewise.
1520         (vcondu<mode><v_cmp_result>): Likewise.
1521         (vcond_mask_<mode><v_cmp_result>): Likewise.
1522         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
1523         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
1524         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
1525         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
1526         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
1527         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
1528         from neon.md.
1529         (vec_cmpu<mode><mode>): Likewise.
1530         (vcond<mode><mode>): Likewise.
1531         (vcond<V_cvtto><mode>): Likewise.
1532         (vcondu<mode><v_cmp_result>): Likewise.
1533         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
1534         condition.
1536 2021-05-17  liuhongt  <hongtao.liu@intel.com>
1538         PR target/100549
1539         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
1540         gsi_insert_seq_before instead.
1542 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
1544         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
1545         (arm_sat_ok): ...this.
1547 2021-05-17  Martin Liska  <mliska@suse.cz>
1549         * lto-wrapper.c (merge_flto_options): Factor out a new function.
1550         (merge_and_complain): Use it.
1551         (run_gcc): Merge also linker command line -flto=foo argument
1552         with IL files.
1554 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
1556         * config/arm/arm.h (CPP_SPEC): Remove error message about
1557         -mlittle-endian/-mbig-endian conflict.
1559 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
1561         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1562         __ROP_PROTECT__ if -mrop-protect is selected.
1564 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
1566         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
1567         rop_hash_save_offset and rop_hash_size.
1568         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
1569         rop_hash_size and rop_hash_save_offset.
1570         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
1571         (rs6000_emit_prologue): Emit hashst[p] in prologue.
1572         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
1573         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
1574         UNSPEC_HASHCHK.
1575         (hashst): New define_insn.
1576         (hashchk): Likewise.
1578 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
1580         * config/rs6000/rs6000.c (rs6000_option_override_internal):
1581         Disable shrink wrap when inserting ROP-protect instructions.
1582         * config/rs6000/rs6000.opt (mrop-protect): New option.
1583         (mprivileged): Likewise.
1584         * doc/invoke.texi: Document mrop-protect and mprivileged.
1586 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
1588         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
1589         "Remove CC0".
1591 2021-05-15  Martin Jambor  <mjambor@suse.cz>
1593         Revert:
1594         2021-05-13  Martin Jambor  <mjambor@suse.cz>
1596         PR tree-optimization/100453
1597         * tree-sra.c (sra_modify_assign): All const base accesses do not
1598         need refreshing, not just those from decl_pool.
1599         (sra_modify_assign): Do not refresh into a const base decl.
1601 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
1603         PR rtl-optimization/100342
1604         * regcprop.c (copy_value): When copying a source reg in a wider
1605         mode than it has recorded for the value, adjust recorded destination
1606         mode too or punt if !REG_CAN_CHANGE_MODE_P.
1608 2021-05-14  Jason Merrill  <jason@redhat.com>
1610         * intl.h: Add comments.
1612 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1614         * config/aarch64/aarch64-simd.md
1615         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
1616         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
1617         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
1618         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
1619         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
1620         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
1621         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
1622         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
1623         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
1625 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1627         PR target/66791
1628         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
1629         boolean logic equivalent.
1630         (vtst_s16): Likewise.
1631         (vtst_s32): Likewise.
1632         (vtst_u8): Likewise.
1633         (vtst_u16): Likewise.
1634         (vtst_u32): Likewise.
1635         (vtst_p8): Likewise.
1636         (vtst_p16): Likewise.
1637         (vtstq_s8): Likewise.
1638         (vtstq_s16): Likewise.
1639         (vtstq_s32): Likewise.
1640         (vtstq_u8): Likewise.
1641         (vtstq_u16): Likewise.
1642         (vtstq_u32): Likewise.
1643         (vtstq_p8): Likewise.
1644         (vtstq_p16): Likewise.
1645         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
1646         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
1648 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1650         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
1651         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
1652         (aarch64_sqdmlsl2<mode>): Delete.
1653         (aarch64_sqdmlal2_lane<mode>): Merge this...
1654         (aarch64_sqdmlsl2_lane<mode>): ... And this...
1655         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
1656         (aarch64_sqdmlal2_laneq<mode>): Merge this...
1657         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
1658         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
1659         (aarch64_sqdmlal2_n<mode>): Merge this...
1660         (aarch64_sqdmlsl2_n<mode>): ... And this...
1661         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
1663 2021-05-13  Martin Sebor  <msebor@redhat.com>
1665         PR middle-end/100574
1666         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
1667         all null arguments.
1669 2021-05-13  Martin Sebor  <msebor@redhat.com>
1671         PR tree-optimization/93100
1672         PR middle-end/98583
1673         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
1674         don't modify referenced objects.
1676 2021-05-13  Martin Jambor  <mjambor@suse.cz>
1678         PR tree-optimization/100453
1679         * tree-sra.c (sra_modify_assign): All const base accesses do not
1680         need refreshing, not just those from decl_pool.
1681         (sra_modify_assign): Do not refresh into a const base decl.
1683 2021-05-13  Martin Liska  <mliska@suse.cz>
1685         * tree-ssa-dom.c: Remove m_simplifier.
1687 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
1689         PR target/100563
1690         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
1691         canonicalize DImode inequality comparisons against the
1692         maximum integral value.
1694 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
1696         PR tree-optimization/98856
1697         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
1698         Expect V2DI and V4DI arithmetic right shifts to be emulated.
1699         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
1700         caller.
1701         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
1702         expand_vec_perm_2perm_pblendv): New functions.
1703         (ix86_expand_vec_perm_const_1): Use them.
1704         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
1705         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
1706         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
1707         (ashrv4di3): New define_expand.
1708         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
1709         and !TARGET_AVX512VL expansion.
1711 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
1713         PR target/100581
1714         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
1715         sizes < 16 to a register when constructing vpcmov pattern.
1716         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
1718 2021-05-13  Martin Liska  <mliska@suse.cz>
1720         * gcov-io.c (gcov_write_block): Remove.
1721         (gcov_write_words): Likewise.
1722         (gcov_read_words): Re-implement using gcov_read_bytes.
1723         (gcov_allocate): Remove.
1724         (GCOV_BLOCK_SIZE): Likewise.
1725         (struct gcov_var): Remove most of the fields.
1726         (gcov_position): Implement with ftell.
1727         (gcov_rewrite): Remove setting of start and offset fields.
1728         (from_file): Re-format.
1729         (gcov_open): Remove setbuf call. It should not be needed.
1730         (gcov_close): Remove internal buffer handling.
1731         (gcov_magic): Use __builtin_bswap32.
1732         (gcov_write_counter): Use directly gcov_write_unsigned.
1733         (gcov_write_string): Use direct fwrite and do not round
1734         to 4 bytes.
1735         (gcov_seek): Use directly fseek.
1736         (gcov_write_tag): Use gcov_write_unsigned directly.
1737         (gcov_write_length): Likewise.
1738         (gcov_write_tag_length): Likewise.
1739         (gcov_read_bytes): Use directly fread.
1740         (gcov_read_unsigned): Use gcov_read_words.
1741         (gcov_read_counter): Likewise.
1742         (gcov_read_string): Use gcov_read_bytes.
1743         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
1744         that size is not in bytes, but words (4B).
1745         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
1746         (GCOV_TAG_ARCS_LENGTH): Likewise.
1747         (GCOV_TAG_ARCS_NUM): Likewise.
1748         (GCOV_TAG_COUNTER_LENGTH): Likewise.
1749         (GCOV_TAG_COUNTER_NUM): Likewise.
1750         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
1752 2021-05-13  liuhongt  <hongtao.liu@intel.com>
1754         PR target/94680
1755         * config/i386/sse.md (ssedoublevecmode): Add attribute for
1756         V64QI/V32HI/V16SI/V4DI.
1757         (ssehalfvecmode): Add attribute for V2DI/V2DF.
1758         (*vec_concatv4si_0): Extend to VI124_128.
1759         (*vec_concat<mode>_0): New pre-reload splitter.
1760         * config/i386/predicates.md (movq_parallel): New predicate.
1762 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
1764         * targhooks.c (default_zero_call_used_regs): Retry using
1765         successfully-zeroed registers as sources.
1767 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1769         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
1771 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
1773         PR c/100521
1774         * gimple-range.cc (range_of_builtin_call): Skip out on
1775           processing __builtin_clz when varying.
1777 2021-05-12  Tom de Vries  <tdevries@suse.de>
1779         PR target/96005
1780         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
1781         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
1782         to ptx_version_option.
1783         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
1784         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
1785         (define_insn "nvptx_vote_ballot"): Use sync variant for
1786         TARGET_PTX_6_3.
1787         * config/nvptx/nvptx.opt (ptx_version): Add enum.
1788         (mptx): Add option.
1789         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
1791 2021-05-12  Richard Biener  <rguenther@suse.de>
1793         PR tree-optimization/100566
1794         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
1795         allow_back for all edge queries.
1797 2021-05-12  liuhongt  <hongtao.liu@intel.com>
1799         PR target/99908
1800         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
1801         splitters for pblendvb of NOT mask register.
1803 2021-05-12  Richard Biener  <rguenther@suse.de>
1805         PR tree-optimization/100519
1806         * tree-ssa-reassoc.c (can_associate_p): Split into...
1807         (can_associate_op_p): ... this
1808         (can_associate_type_p): ... and this.
1809         (is_reassociable_op): Call can_associate_op_p.
1810         (break_up_subtract_bb): Call the appropriate predicates.
1811         (reassociate_bb): Likewise.
1813 2021-05-12  Martin Liska  <mliska@suse.cz>
1815         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
1816         (run_gcc): Use -flto argument detection for merged
1817         fdecoded_options.
1819 2021-05-12  Martin Liska  <mliska@suse.cz>
1821         * lto-wrapper.c (print_lto_docs_link): New function.
1822         (run_gcc): Print warning about missing job server detection
1823         after we know NR of partitions. Do the same for -flto{,=1}.
1824         * opts.c (get_option_html_page): Support -flto option.
1826 2021-05-12  Martin Liska  <mliska@suse.cz>
1828         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
1829         return type.
1830         (append_option): Remove.
1831         (find_option): Rework to use the vector type.
1832         (remove_option): Remove.
1833         (merge_and_complain): Use vectors for cl_decoded_option data
1834         type arguments.
1835         (append_compiler_options): Likewise.
1836         (append_diag_options): Likewise.
1837         (append_linker_options): Likewise.
1838         (append_offload_options): Likewise.
1839         (compile_offload_image): Likewise.
1840         (compile_images_for_offload_targets): Likewise.
1841         (find_and_merge_options): Likewise.
1842         (run_gcc): Likewise.
1844 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1846         PR debug/100515
1847         * dwarf2out.c (dwarf2out_finish): Set
1848         have_multiple_function_sections with multi-range text_section.
1850 2021-05-12  Martin Liska  <mliska@suse.cz>
1852         PR bootstrap/100560
1853         * Makefile.in: Remove version.h from linker command line.
1855 2021-05-12  Richard Biener  <rguenther@suse.de>
1857         PR middle-end/100547
1858         * rtl.h (rtvec_alloc): Make argument size_t.
1859         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
1861 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
1863         PR middle-end/100508
1864         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
1865         type, don't reuse DECL_RTL if it has different mode, instead force
1866         creation of a new DEBUG_EXPR.
1868 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
1869             Marc Glisse  <marc.glisse@inria.fr>
1871         PR tree-optimization/94589
1872         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
1873         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
1875 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
1877         PR target/98218
1878         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
1879         * config/i386/mmx.md (MMXMODE124): New mode iterator.
1880         (V2FI): Ditto.
1881         (mmxintvecmode): New mode attribute.
1882         (mmxintvecmodelower): Ditto.
1883         (*mmx_maskcmpv2sf3_comm): New insn pattern.
1884         (*mmx_maskcmpv2sf3): Ditto.
1885         (vec_cmpv2sfv2si): New expander.
1886         (vcond<V2FI:mode>v2si): Ditto.
1887         (mmx_vlendvps): New insn pattern.
1888         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
1889         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
1890         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
1892 2021-05-11  Martin Sebor  <msebor@redhat.com>
1894         PR middle-end/21433
1895         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
1897 2021-05-11  Richard Biener  <rguenther@suse.de>
1899         * gimple-fold.c (gimple_fold_call): Do not call
1900         maybe_fold_reference on call arguments or the static chain.
1901         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
1902         inputs.
1904 2021-05-11  Martin Liska  <mliska@suse.cz>
1906         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
1907         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
1908         (DEF_HSAIL_SAT_BUILTIN): Likewise.
1909         (DEF_HSAIL_INTR_BUILTIN): Likewise.
1910         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
1911         * doc/frontends.texi: Remove BRIG.
1912         * doc/install.texi: Likewise.
1913         * doc/invoke.texi: Likewise.
1914         * doc/standards.texi: Likewise.
1915         * brig-builtins.def: Removed.
1916         * brig/ChangeLog: Removed.
1917         * brig/Make-lang.in: Removed.
1918         * brig/brig-builtins.h: Removed.
1919         * brig/brig-c.h: Removed.
1920         * brig/brig-lang.c: Removed.
1921         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
1922         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
1923         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
1924         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
1925         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
1926         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
1927         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
1928         * brig/brigfrontend/brig-comment-handler.cc: Removed.
1929         * brig/brigfrontend/brig-control-handler.cc: Removed.
1930         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
1931         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
1932         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
1933         * brig/brigfrontend/brig-function-handler.cc: Removed.
1934         * brig/brigfrontend/brig-function.cc: Removed.
1935         * brig/brigfrontend/brig-function.h: Removed.
1936         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
1937         * brig/brigfrontend/brig-label-handler.cc: Removed.
1938         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
1939         * brig/brigfrontend/brig-machine.c: Removed.
1940         * brig/brigfrontend/brig-machine.h: Removed.
1941         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
1942         * brig/brigfrontend/brig-module-handler.cc: Removed.
1943         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
1944         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
1945         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
1946         * brig/brigfrontend/brig-to-generic.cc: Removed.
1947         * brig/brigfrontend/brig-to-generic.h: Removed.
1948         * brig/brigfrontend/brig-util.cc: Removed.
1949         * brig/brigfrontend/brig-util.h: Removed.
1950         * brig/brigfrontend/brig-variable-handler.cc: Removed.
1951         * brig/brigfrontend/hsa-brig-format.h: Removed.
1952         * brig/brigfrontend/phsa.h: Removed.
1953         * brig/brigspec.c: Removed.
1954         * brig/config-lang.in: Removed.
1955         * brig/gccbrig.texi: Removed.
1956         * brig/lang-specs.h: Removed.
1957         * brig/lang.opt: Removed.
1959 2021-05-11  Richard Biener  <rguenther@suse.de>
1961         PR ipa/100513
1962         * ipa-param-manipulation.c
1963         (ipa_param_body_adjustments::modify_call_stmt): Avoid
1964         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
1965         via gimple_call_lhs_ptr.
1967 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
1969         PR target/99725
1970         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
1971         Avoid emitting CFA adjusts on the sp if we have the fp.
1973 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
1975         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
1976         (VMULD): New iterator.
1977         (VCOND): Handle V4HF and V8HF.
1978         (VCONQ): Fix entry for V2SF.
1979         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
1980         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
1981         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
1982         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
1983         Use a 128-bit vector mode for the indexed operand.  Use stype for
1984         the scheduling type.
1986 2021-05-11  Richard Biener  <rguenther@suse.de>
1988         * gimple-fold.c (maybe_fold_reference): Only return
1989         is_gimple_min_invariant values.
1991 2021-05-11  Richard Biener  <rguenther@suse.de>
1993         PR middle-end/100509
1994         * gimple-fold.c (fold_gimple_assign): Only call
1995         get_symbol_constant_value on register type symbols.
1997 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
1998             Joe Ramsay   <joe.ramsay@arm.com>
2000         PR target/100419
2001         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
2002         (__arm_vcmpneq): Remove duplicate definition.
2003         (__arm_vstrwq_scatter_offset_p): Likewise.
2004         (__arm_vmaxq_x): Likewise.
2005         (__arm_vmlsdavaq): Likewise.
2006         (__arm_vmlsdavaxq): Likewise.
2007         (__arm_vmlsdavq_p): Likewise.
2008         (__arm_vmlsdavxq_p): Likewise.
2009         (__arm_vrmlaldavhaq): Likewise.
2010         (__arm_vstrbq_p): Likewise.
2011         (__arm_vstrbq_scatter_offset): Likewise.
2012         (__arm_vstrbq_scatter_offset_p): Likewise.
2013         (__arm_vstrdq_scatter_offset): Likewise.
2014         (__arm_vstrdq_scatter_offset_p): Likewise.
2015         (__arm_vstrdq_scatter_shifted_offset): Likewise.
2016         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
2018 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
2020         PR middle-end/100471
2021         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
2022         is 0, bypass the reduction loop including
2023         GOMP_taskgroup_reduction_unregister call.
2025 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
2027         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
2028         costing_for_scalar.
2029         (rs6000_density_test): Early return if costing_for_scalar is true.
2030         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
2032 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
2034         * doc/tm.texi: Regenerated.
2035         * target.def (init_cost): Add new parameter costing_for_scalar.
2036         * targhooks.c (default_init_cost): Adjust for new parameter.
2037         * targhooks.h (default_init_cost): Likewise.
2038         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
2039         (vect_compute_single_scalar_iteration_cost): Likewise.
2040         (vect_analyze_loop_2): Likewise.
2041         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
2042         (vect_bb_vectorization_profitable_p): Likewise.
2043         * tree-vectorizer.h (init_cost): Likewise.
2044         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
2045         * config/i386/i386.c (ix86_init_cost): Likewise.
2046         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
2048 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
2050         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
2051         vect_nonmem and moved into...
2052         (struct rs6000_cost_data): ...here.
2053         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
2054         (rs6000_add_stmt_cost): Likewise.
2055         (rs6000_finish_cost): Likewise.
2057 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
2059         * range-op.cc (get_bool_state): Adjust head comment.
2060         (operator_not_equal::op1_range): Fix comment.
2061         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
2063 2021-05-10  Martin Sebor  <msebor@redhat.com>
2065         PR middle-end/100425
2066         PR middle-end/100510
2067         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
2068         (pass_walloca::xlimit_certain_p): ...to this.
2069         (pass_walloca::gate): Execute for any kind of handled warning.
2070         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
2071         warnings when xlimit_certain_p is set.
2073 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
2075         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
2076         Return ALTIVEC_REGS if that is best_class.
2077         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
2079 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2081         * config/arm/arm.h (CPP_SPEC): Remove error message about
2082         -mfloat-abi.
2084 2021-05-10  Martin Jambor  <mjambor@suse.cz>
2086         * ipa-prop.h (IPA_NODE_REF): Removed.
2087         (IPA_NODE_REF_GET_CREATE): Likewise.
2088         (IPA_EDGE_REF): Likewise.
2089         (IPA_EDGE_REF_GET_CREATE): Likewise.
2090         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
2091         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
2092         use of ipa_node_params_sum.
2093         (ipcp_versionable_function_p): Likewise.
2094         (push_node_to_stack): Likewise.
2095         (pop_node_from_stack): Likewise.
2096         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
2097         direct use of ipa_node_params_sum.
2098         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
2099         ipa_node_params_sum.
2100         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
2101         ipa_edge_args_sum.
2102         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
2103         use of ipa_node_params_sum.
2104         (self_recursively_generated_p): Likewise.
2105         (propagate_scalar_across_jump_function): Likewise.
2106         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
2107         direct use of ipa_edge_args_sum, moved the lookup after the early
2108         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
2109         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
2110         direct uses of ipa_node_params_sum.
2111         (propagate_vr_across_jump_function): Likewise.
2112         (propagate_aggregate_lattice): Likewise.
2113         (propagate_aggs_across_jump_function): Likewise.
2114         (propagate_constants_across_call): Likewise, also replaced
2115         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
2116         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
2117         of ipa_node_params_sum.
2118         (estimate_local_effects): Likewise.
2119         (add_all_node_vals_to_toposort): Likewise.
2120         (propagate_constants_topo): Likewise.
2121         (ipcp_propagate_stage): Likewise.
2122         (ipcp_discover_new_direct_edges): Likewise.
2123         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
2124         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
2125         (get_info_about_necessary_edges): Likewise.
2126         (want_remove_some_param_p): Likewise.
2127         (create_specialized_node): Likewise.
2128         (self_recursive_pass_through_p): Likewise.
2129         (self_recursive_agg_pass_through_p): Likewise.
2130         (find_more_scalar_values_for_callers_subset): Likewise and also
2131         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
2132         case replacing two of those with a single query.
2133         (find_more_contexts_for_caller_subset): Likewise for the
2134         ipa_polymorphic_call_context overload.
2135         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
2136         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
2137         ipa_node_params_sum.
2138         (find_aggregate_values_for_callers_subset): Likewise, also reusing
2139         results of ipa_edge_args_sum->get.
2140         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
2141         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
2142         direct use of ipa_edge_args_sum.
2143         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
2144         summary query after the early exit and reused the result later.
2145         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
2146         ipa_node_params_sum.
2147         (decide_whether_version_node): Likewise.  Removed re-querying for
2148         summaries after cloning.
2149         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
2150         ipa_node_params_sum.
2151         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
2152         some queries.
2153         (identify_dead_nodes): Likewise.
2154         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
2155         ipa_node_params_sum.
2156         (ipcp_store_vr_results): Likewise.
2157         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
2158         (ipa_fn_summary_t::duplicate): Likewise.
2159         (analyze_function_body): Likewise.
2160         (estimate_calls_size_and_time): Likewise.
2161         (ipa_cached_call_context::duplicate_from): Likewise.
2162         (ipa_call_context::equal_to): Likewise.
2163         (remap_edge_params): Likewise.
2164         (ipa_merge_fn_summary_after_inlining): Likewise.
2165         (inline_read_section): Likewise.
2166         * ipa-icf.c (sem_function::param_used_p): Likewise.
2167         * ipa-modref.c (compute_parm_map): Likewise.
2168         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
2169         ipa_edge_args_sum.
2170         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
2171         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
2172         ipa_edge_args_sum.
2173         * ipa-profile.c (check_argument_count): Likewise.
2174         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
2175         with a direct use of ipa_node_params_sum.
2176         (ipa_initialize_node_params): Likewise.
2177         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
2178         direct use of ipa_edge_args_sum and reused the query result.
2179         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
2180         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
2181         direct use of ipa_edge_args_sum.
2182         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
2183         ipa_node_params_sum and reused the result of the query.
2184         (ipa_analyze_node): Likewise.
2185         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
2186         of ipa_node_params_sum.
2187         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
2188         direct uses of ipa_edge_args_sum.
2189         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
2190         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
2191         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
2192         top edge summary.
2193         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
2194         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
2195         ipa_edge_args_sum.
2196         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
2197         direct use of ipa_edge_args_sum.
2198         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
2199         use of ipa_node_params_sum.
2200         (ipa_print_node_params): Likewise.
2201         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
2202         direct uses of ipa_edge_args_sum.
2203         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
2204         ipa_edge_args_sum.
2205         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
2206         ipa_node_params_sum.
2207         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
2208         scopes where it is used.
2210 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
2212         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
2213         <case E_V2SImode>: Force op_true to register.
2215 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2217         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
2218         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
2219         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
2220         patterns.
2221         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
2222         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
2223         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
2224         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
2225         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
2226         (mve_vcmpneq_n_f<mode>): Remove.
2227         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
2228         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
2229         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
2231 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2233         * config/arm/iterators.md (MVE_COMPARISONS): New.
2234         (mve_cmp_op): New.
2235         (mve_cmp_type): New.
2236         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
2237         mve_vcmp patterns.
2238         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
2239         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
2240         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
2241         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
2242         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
2243         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
2244         (mve_vcmpneq_n_<mode>): Remove.
2246 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2248         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
2249         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
2250         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
2251         names.
2253 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2255         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
2256         (vcmpneq_n_u): Likewise.
2257         (vcmpeqq_u,): Likewise.
2258         (vcmpeqq_n_u): Likewise.
2259         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
2260         VCMPEQQ_N_U and VCMPNEQ_N_U.
2261         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
2262         (mve_vcmpeqq_n): Likewise.
2263         (mve_vcmpeqq): Likewise.
2264         (mve_vcmpneq_n): Likewise.
2266 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2268         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
2269         the 's' version of the builtin.
2271 2021-05-10  Richard Biener  <rguenther@suse.de>
2273         PR tree-optimization/100492
2274         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2275         Find nothing when the loop contains an irreducible region.
2277 2021-05-10  Richard Biener  <rguenther@suse.de>
2279         PR middle-end/100464
2280         PR c++/100468
2281         * gimple-fold.c (canonicalize_constructor_val): Do not set
2282         TREE_ADDRESSABLE.
2284 2021-05-10  Richard Biener  <rguenther@suse.de>
2286         PR tree-optimization/100434
2287         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2288         call LHS.
2289         (dse_optimize_stmt): Handle call LHS by dropping the
2290         LHS or the whole call if it doesn't have other
2291         side-effects.
2292         (pass_dse::execute): Adjust.
2294 2021-05-10  Martin Liska  <mliska@suse.cz>
2296         * Makefile.in: Add missing genversion rule.
2298 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
2300         PR target/99960
2301         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
2302         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
2304 2021-05-10  Martin Liska  <mliska@suse.cz>
2306         * builtins.c (is_builtin_name): Use startswith
2307         function instead of strncmp.
2308         * collect2.c (main): Likewise.
2309         (has_lto_section): Likewise.
2310         (scan_libraries): Likewise.
2311         * coverage.c (coverage_checksum_string): Likewise.
2312         (coverage_init): Likewise.
2313         * dwarf2out.c (is_cxx): Likewise.
2314         (gen_compile_unit_die): Likewise.
2315         * gcc-ar.c (main): Likewise.
2316         * gcc.c (init_spec): Likewise.
2317         (read_specs): Likewise.
2318         (execute): Likewise.
2319         (check_live_switch): Likewise.
2320         * genattrtab.c (write_attr_case): Likewise.
2321         (IS_ATTR_GROUP): Likewise.
2322         * gencfn-macros.c (main): Likewise.
2323         * gengtype.c (type_for_name): Likewise.
2324         (gen_rtx_next): Likewise.
2325         (get_file_langdir): Likewise.
2326         (write_local): Likewise.
2327         * genmatch.c (get_operator): Likewise.
2328         (get_operand_type): Likewise.
2329         (expr::gen_transform): Likewise.
2330         * genoutput.c (validate_optab_operands): Likewise.
2331         * incpath.c (add_sysroot_to_chain): Likewise.
2332         * langhooks.c (lang_GNU_C): Likewise.
2333         (lang_GNU_CXX): Likewise.
2334         (lang_GNU_Fortran): Likewise.
2335         (lang_GNU_OBJC): Likewise.
2336         * lto-wrapper.c (run_gcc): Likewise.
2337         * omp-general.c (omp_max_simt_vf): Likewise.
2338         * omp-low.c (omp_runtime_api_call): Likewise.
2339         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
2340         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
2341         * real.c (real_from_string): Likewise.
2342         * selftest.c (assert_str_startswith): Likewise.
2343         * timevar.c (timer::validate_phases): Likewise.
2344         * tree.c (get_file_function_name): Likewise.
2345         * ubsan.c (ubsan_use_new_style_p): Likewise.
2346         * varasm.c (default_function_rodata_section): Likewise.
2347         (incorporeal_function_p): Likewise.
2348         (default_section_type_flags): Likewise.
2349         * system.h (startswith): Define startswith.
2351 2021-05-10  Martin Liska  <mliska@suse.cz>
2353         * bitmap.h (class auto_bitmap): Remove
2354         __cplusplus >= 201103.
2355         * config/aarch64/aarch64.c: Likewise.
2356         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
2357         Likewise.
2358         * sbitmap.h: Likewise.
2360 2021-05-10  Martin Liska  <mliska@suse.cz>
2362         * Makefile.in: Rename gcov-iov to genversion and depend
2363         on version.h (instead of gcov-iov.h).
2364         * gcov-io.h: Include version.h instread of gcov-iov.h.
2365         * gengtype-state.c (read_state_version): Likewise.
2366         * gcov-iov.c: Moved to...
2367         * genversion.c: ...here.
2368         * lto-streamer.h (LTO_major_version): Define it with
2369         GCC_major_version.
2370         * version.c: Removed.
2371         * version.h: Removed.
2373 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2375         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
2376         * config/arc/simdext.md (VCT): Add predicates for iterator
2377         elements.
2378         (EMUVEC): Define.
2379         (voptab): Likewise.
2380         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
2381         (<voptab>v2si3): New patterns.
2382         (neg): Likewise.
2383         (reduc_plus_scal_v4hi): Likewise.
2384         (reduc_plus_scal_v2si): Likewise.
2385         (vec_duplicatev2si): Likewise.
2386         (vec_duplicatev4hi): Likewise.
2388 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2390         * config/arc/simdext.md: Format and cleanup file.
2392 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2394         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
2395         only when munaligned-access option is on.
2396         (movmisalign<mode>): Likewise.
2398 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2400         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
2401         from string.
2402         * config/arc/arc.c (arc_reorg): Remove underscore from string.
2404 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2406         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2407         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
2408         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
2409         (norm_f): Likewise.
2410         (ffs): Likewise.
2411         (ffs_f): Likewise.
2412         (clzsi2): Use fls instruction when available.
2413         (arc_clzsi2): Likewise.
2415 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2417         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
2419 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
2421         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
2423 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2425         PR middle-end/100467
2426         * toplev.c (compile_file): Call insn_locations_init before
2427         targetm.asm_out.code_end.
2429 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
2431         Revert:
2432         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
2434         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
2436 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
2437             Andrew Stubbs  <amd@codesourcery.com>
2439         PR target/100418
2440         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
2441         emit_move_insn operands.
2443 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2445         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
2446         location for the outgoing edges of an empty block.
2447         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
2448         type by means of the get_array_descr_info langhook, if it is set and
2449         returns true.  Remove obsolete code dealing with unnamed subtypes.
2451 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2453         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
2454         (sbr_vector): Renamed from ssa_block_cache.
2455         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
2456         (ssa_block_ranges::~ssa_block_ranges): Remove.
2457         (sbr_vector::set_bb_range): Use varying and undefined cached values.
2458         (ssa_block_ranges::set_bb_varying): Remove.
2459         (sbr_vector::get_bb_range): Adjust assert.
2460         (sbr_vector::bb_range_p): Adjust assert.
2461         (~block_range_cache): No freeing loop required.
2462         (block_range_cache::get_block_ranges): Remove.
2463         (block_range_cache::set_bb_range): Inline get_block_ranges.
2464         (block_range_cache::set_bb_varying): Remove.
2465         * gimple-range-cache.h (set_bb_varying): Remove prototype.
2466         * value-range.h (irange_allocator::get_memory): New.
2468 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2470         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
2471         dominator tree is available and requested.
2472         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
2473         (ranger_cache::fill_block_cache): Don't search dom tree here either.
2474         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
2476 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2478         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
2479         only PHI nodes better.
2481 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2483         * gimple-range-edge.h (gimple_outgoing_range): Rename from
2484         outgoing_range.
2485         (gcond_edge_range): Export prototype.
2486         * gimple-range-edge.cc (gcond_edge_range): New.
2487         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
2488         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
2490 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2492         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
2493         default range into a temp and allocate only what is needed.
2495 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2497         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
2499 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
2501         * gimple-range.h (gimple_range_global): Pick up parameter initial
2502         values, and use-before defined locals are UNDEFINED.
2504 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2506         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
2507         and vector fields.
2508         * tree.h (reverse_storage_order_for_component_p): Return false if
2509         the type is a pointer.
2511 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
2513         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
2515 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
2517         PR target/98218
2518         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
2519         Handle V8QI, V4HI and V2SI modes.
2520         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
2521         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
2522         * config/i386/i386.md (unspec): ... here.
2524 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
2525             Tom de Vries  <tdevries@suse.de>
2527         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
2528         a truth_value_p reduction variable is nonintegral.
2530 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
2532         PR target/100445
2533         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
2534         Return false for mode sizes < 16.
2536 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
2538         PR target/100445
2539         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
2541 2021-05-06  Martin Jambor  <mjambor@suse.cz>
2543         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
2544         when there is no function summary.
2545         (ipa_sra_summarize_function): produce edge summaries even when
2546         bailing out early.
2548 2021-05-06  Tom Tromey  <tom@tromey.com>
2550         * godump.c (string_hash_eq): Remove.
2551         (go_finish): Use htab_eq_string.
2553 2021-05-06  Tom Tromey  <tom@tromey.com>
2555         * gengtype-state.c (read_state): Use htab_eq_string.
2556         (string_eq): Remove.
2558 2021-05-06  Tom Tromey  <tom@tromey.com>
2560         * gensupport.c (htab_eq_string): Remove.
2562 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2564         PR ipa/97937
2565         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
2566         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
2567         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
2568         set_ignored_loc callbacks.
2569         * debug.c (do_nothing_debug_hooks): Likewise.
2570         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2571         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
2572         (in_text_section_p, last_text_label, last_cold_label,
2573         switch_text_ranges, switch_cold_ranges): New data items.
2574         (dwarf2out_note_section_used): Remove.
2575         (dwarf2out_begin_prologue): Set fde->ignored_debug and
2576         in_text_section_p.
2577         (mark_ignored_debug_section): New helper function.
2578         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
2579         mark_ignored_debug_section.
2580         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
2581         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
2582         (size_of_aranges): Adjust formula for multi-part text ranges size.
2583         (output_aranges): Output multi-part text ranges.
2584         (dwarf2out_set_ignored_loc): New callback function.
2585         (dwarf2out_finish): Output multi-part text ranges.
2586         (dwarf2out_c_finalize): Clear new data items.
2587         * final.c (final_start_function_1): Call set_ignored_loc callback.
2588         (final_scan_insn_1): Likewise.
2589         * ggc-page.c (gt_ggc_mx): New helper function.
2590         * stringpool.c (gt_pch_nx): Likewise.
2592 2021-05-06  Richard Biener  <rguenther@suse.de>
2594         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
2595         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
2596         (TV_TREE_INTO_SSA): New.
2597         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
2598         (rewrite_blocks): Likewise.
2599         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
2601 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
2603         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
2604         abs_replacement, xor_replacement,
2605         cond_removal_in_popcount_clz_ctz_pattern,
2606         replace_phi_edge_with_variable): Change type of phi argument from
2607         gimple * to gphi *.
2609 2021-05-06  Richard Biener  <rguenther@suse.de>
2611         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
2612         Output an opt-info message.
2613         (do_split_loop_on_cond): Likewise.
2614         (tree_ssa_split_loops): Update SSA form here.
2616 2021-05-06  Richard Biener  <rguenther@suse.de>
2618         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
2619         return variable removal.
2621 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
2623         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
2624         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
2625         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
2626         operand.
2627         * config/s390/s390.c (s390_const_operand_ok): Remove unused
2628         values.
2630 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
2632         PR tree-optimization/94589
2633         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
2634         spaceship_replacement.
2635         (cond_only_block_p, spaceship_replacement): New functions.
2637 2021-05-06  Richard Biener  <rguenther@suse.de>
2639         PR ipa/100373
2640         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
2641         dealing with a debug use and only query existing addresses
2642         if so.
2643         (lower_emutls_1): Avoid splitting out addresses for debug
2644         stmts, reset the debug stmt when we fail to find existing
2645         lowered addresses.
2646         (lower_emutls_phi_arg): Set wi.stmt.
2648 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
2650         PR target/100266
2651         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
2652         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
2653         (stack_protect_test): Use cbranch helper.
2655 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2657         PR target/100402
2658         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
2659         always return the establisher frame for __builtin_frame_address (0).
2661 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
2663         PR target/91400
2664         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
2665         (ix86_cpu_model_var): Likewise.
2666         (ix86_cpu_features2_type_node): Likewise.
2667         (ix86_cpu_features2_var): Likewise.
2668         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
2669         their types.
2671 2021-05-05  Martin Sebor  <msebor@redhat.com>
2673         * passes.def (pass_warn_printf): Run after SSA.
2675 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2677         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
2678         * config/arm/predicates.md (minus_one_operand): New predicate.
2680 2021-05-05  Jeff Law  <jlaw@tachyum.com>
2682         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
2684 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
2686         PR rtl-optimization/100263
2687         * postreload.c (move2add_valid_value_p): Ensure register can
2688         change mode.
2690 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2692         PR rtl-optimization/100411
2693         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
2694         and beginning of function markers.
2696 2021-05-05  Jeff Law  <jlaw@tachyum.com>
2698         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
2699         * config/cr16/cr16.c (notice_update_cc): Remove.
2700         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
2702 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
2704         PR target/98218
2705         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
2706         Handle V8QI, V4HI and V2SI modes.
2707         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
2708         (ix86_build_signbit_mask): Ditto.
2709         * config/i386/mmx.md (MMXMODE14): New mode iterator.
2710         (<smaxmin:code><MMXMODE14:mode>3): New expander.
2711         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
2712         (<umaxmin:code><MMXMODE24:mode>3): New expander.
2713         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
2714         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
2715         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
2716         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
2717         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
2718         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
2720 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2722         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
2723         not expand the VALUE_EXPR of variables put in the non-local frame.
2724         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
2725         to be ignored for debug info, ensure its variable offsets are not.
2727 2021-05-05  Richard Biener  <rguenther@suse.de>
2729         PR tree-optimization/79333
2730         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
2731         Fold stmt following SSA edges.
2733 2021-05-05  Richard Biener  <rguenther@suse.de>
2735         PR middle-end/100394
2736         * calls.c (expand_call): Preserve possibly throwing calls.
2737         * cfgexpand.c (expand_call_stmt): When a call can throw signal
2738         RTL expansion there are side-effects.
2739         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
2740         mark all possibly throwing stmts necessary unless we can elide
2741         dead EH.
2742         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
2743         -fdelete-dead-exceptions.
2744         * tree.h (DECL_PURE_P): Add note about exceptions.
2746 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
2748         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
2749         unconditional.
2751 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
2753         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
2754         get_fnname_from_decl for name of thunk.
2755         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
2756         and ASM_OUTPUT_LABEL.
2757         (rs6000_xcoff_declare_function_name): Use assemble_name and
2758         ASM_OUTPUT_LABEL.
2759         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
2760         (rs6000_xcoff_encode_section_info): Don't add mapping class
2761         for aliases.  Always add [DS] mapping class to primary
2762         FUNCTION_DECL.
2763         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
2765 2021-05-04  Martin Sebor  <msebor@redhat.com>
2767         PR middle-end/100307
2768         * builtins.c (compute_objsize_r): Clear base0 for pointers.
2770 2021-05-04  Jeff Law  <jlaw@tachyum.com>
2772         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
2774 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
2776         * caller-save.c: Remove CC0.
2777         * cfgcleanup.c: Remove CC0.
2778         * cfgrtl.c: Remove CC0.
2779         * combine.c: Remove CC0.
2780         * compare-elim.c: Remove CC0.
2781         * conditions.h: Remove CC0.
2782         * config/h8300/h8300.h: Remove CC0.
2783         * config/h8300/h8300-protos.h: Remove CC0.
2784         * config/h8300/peepholes.md: Remove CC0.
2785         * config/i386/x86-tune-sched.c: Remove CC0.
2786         * config/m68k/m68k.c: Remove CC0.
2787         * config/rl78/rl78.c: Remove CC0.
2788         * config/sparc/sparc.c: Remove CC0.
2789         * config/xtensa/xtensa.c: Remove CC0.
2790         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
2791         RTL where that is used as a placeholder only.
2792         * cprop.c: Remove CC0.
2793         * cse.c: Remove CC0.
2794         * cselib.c: Remove CC0.
2795         * df-problems.c: Remove CC0.
2796         * df-scan.c: Remove CC0.
2797         * doc/md.texi: Remove CC0.  Adjust an example.
2798         * doc/rtl.texi: Remove CC0.  Adjust an example.
2799         * doc/tm.texi: Regenerate.
2800         * doc/tm.texi.in: Remove CC0.
2801         * emit-rtl.c: Remove CC0.
2802         * final.c: Remove CC0.
2803         * fwprop.c: Remove CC0.
2804         * gcse-common.c: Remove CC0.
2805         * gcse.c: Remove CC0.
2806         * genattrtab.c: Remove CC0.
2807         * genconfig.c: Remove CC0.
2808         * genemit.c: Remove CC0.
2809         * genextract.c: Remove CC0.
2810         * gengenrtl.c: Remove CC0.
2811         * genrecog.c: Remove CC0.
2812         * haifa-sched.c: Remove CC0.
2813         * ifcvt.c: Remove CC0.
2814         * ira-costs.c: Remove CC0.
2815         * ira.c: Remove CC0.
2816         * jump.c: Remove CC0.
2817         * loop-invariant.c: Remove CC0.
2818         * lra-constraints.c: Remove CC0.
2819         * lra-eliminations.c: Remove CC0.
2820         * optabs.c: Remove CC0.
2821         * postreload-gcse.c: Remove CC0.
2822         * postreload.c: Remove CC0.
2823         * print-rtl.c: Remove CC0.
2824         * read-rtl-function.c: Remove CC0.
2825         * reg-notes.def: Remove CC0.
2826         * reg-stack.c: Remove CC0.
2827         * reginfo.c: Remove CC0.
2828         * regrename.c: Remove CC0.
2829         * reload.c: Remove CC0.
2830         * reload1.c: Remove CC0.
2831         * reorg.c: Remove CC0.
2832         * resource.c: Remove CC0.
2833         * rtl.c: Remove CC0.
2834         * rtl.def: Remove CC0.
2835         * rtl.h: Remove CC0.
2836         * rtlanal.c: Remove CC0.
2837         * sched-deps.c: Remove CC0.
2838         * sched-rgn.c: Remove CC0.
2839         * shrink-wrap.c: Remove CC0.
2840         * simplify-rtx.c: Remove CC0.
2841         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
2842         CC_STATUS_MDEP, and CC_STATUS.
2843         * target.def: Remove CC0.
2844         * valtrack.c: Remove CC0.
2845         * var-tracking.c: Remove CC0.
2847 2021-05-04  Richard Biener  <rguenther@suse.de>
2849         PR tree-optimization/100414
2850         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
2851         info here.
2852         (tree_ssa_phiopt_worker): But unconditionally here.
2854 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
2856         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
2857         && and || with floating-point and complex arguments.
2859 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2861         * tree-inline.c (insert_debug_decl_map): Delete.
2862         (copy_debug_stmt): Minor tweak.
2863         (setup_one_parameter): Do not use a variable if the value is either
2864         a read-only DECL or a non-addressable local variable in the caller.
2865         In this case, insert the debug-only variable in the map manually.
2866         (expand_call_inline): Do not generate a CLOBBER for these values.
2867         * tree-inline.h (debug_map): Minor tweak.
2869 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2871         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
2872         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
2874 2021-05-04  Richard Biener  <rguenther@suse.de>
2876         PR tree-optimization/100329
2877         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
2878         asm goto defs.
2879         (insert_stmt_after): Assert we're not running into asm goto.
2881 2021-05-04  Richard Biener  <rguenther@suse.de>
2883         PR tree-optimization/100398
2884         * tree-ssa-dse.c (pass_dse::execute): Preserve control
2885         altering stmts.
2887 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2889         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
2891 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
2893         * builtins.c (try_store_by_multiple_pieces): New.
2894         (expand_builtin_memset_args): Use it.  If target_char_cast
2895         fails, proceed as for non-constant val.  Pass len's ctz to...
2896         * expr.c (clear_storage_hints): ... this.  Try store by
2897         multiple pieces after setmem.
2898         (clear_storage): Adjust.
2899         * expr.h (clear_storage_hints): Likewise.
2900         (try_store_by_multiple_pieces): Declare.
2901         * passes.def: Replace the last copy_prop with ccp.
2903 2021-05-03  Tom de Vries  <tdevries@suse.de>
2905         PR target/100321
2906         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
2907         reduction.
2909 2021-05-03  Richard Biener  <rguenther@suse.de>
2911         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
2913 2021-05-03  Richard Biener  <rguenther@suse.de>
2915         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
2916         (dse_dom_walker): Remove.
2917         (dse_dom_walker::dse_optimize_stmt): Rename...
2918         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
2919         (dse_dom_walker::before_dom_children): Inline ...
2920         (pass_dse::execute): ... here.  Perform a reverse program
2921         order walk.
2923 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
2925         PR bootstrap/99703
2926         * configure: Regenerated.
2928 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
2930         PR target/100217
2931         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
2932         (s390_md_asm_adjust): Handle hard registers.
2934 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
2936         PR tree-optimization/100382
2937         * tree-ssa-dse.c: Include tree-eh.h.
2938         (dse_dom_walker::before_dom_children): Don't remove stmts if
2939         stmt_unremovable_because_of_non_call_eh_p is true.
2941 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
2943         * varasm.c (compute_reloc_for_var): Split out from...
2944         (get_variable_section): Use it.
2945         * output.h (compute_reloc_for_var): Declare.
2946         * config/rs6000/rs6000-protos.h
2947         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
2948         unsigned int.
2949         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
2950         Don't append storage mapping class to symbol.
2951         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
2952         Don't convert TLS BSS to common.
2953         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
2954         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
2955         bss_initializer.
2956         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
2957         mapping class.
2958         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
2959         If align is 0 from TLS class, use the same rules as varasm.c
2960         If not common, switch to BSS section manually.
2961         If common, emit appropriate comm or lcomm directive.
2962         (rs6000_xcoff_encode_section_info): Add logic to append all
2963         storage mapping classes.
2964         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
2965         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2966         rs6000_xcoff_asm_output_aligned_decl_common.
2967         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2968         rs6000_xcoff_asm_output_aligned_decl_common.
2969         (ASM_OUTPUT_TLS_COMMON): Use
2970         rs6000_xcoff_asm_output_aligned_decl_common.
2972 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
2974         PR target/100375
2975         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
2976         as first argument of pseudo_node_t constructors.
2978 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
2980         PR target/100336
2981         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
2983 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
2985         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
2986         (gt_pch_nx (int_range<1> *&)): New.
2987         (gt_ggc_mx (int_range<1> *&)): New.
2988         * value-range.h (class irange): Add GTY support for
2989         the base class.
2991 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
2993         * doc/options.texi (Negative): Change either or to both and.
2995 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
2997         * config/aarch64/aarch64-simd-builtins.def: Add
2998         float_ml[as][q]_laneq builtin generator macros.
2999         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
3000         (aarch64_float_mla_laneq<mode>): Define.
3001         (aarch64_float_mls_laneq<mode>): Define.
3002         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
3003         instead of GCC vector extensions.
3004         (vmlaq_laneq_f32): Likewise.
3005         (vmls_laneq_f32): Likewise.
3006         (vmlsq_laneq_f32): Likewise.
3008 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
3010         * config/aarch64/aarch64-simd-builtins.def: Add
3011         float_ml[as]_lane builtin generator macros.
3012         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
3013         Rename to...
3014         (mul_lane<mode>3): This, and re-order arguments.
3015         (aarch64_float_mla_lane<mode>): Define.
3016         (aarch64_float_mls_lane<mode>): Define.
3017         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
3018         instead of GCC vector extensions.
3019         (vmlaq_lane_f32): Likewise.
3020         (vmls_lane_f32): Likewise.
3021         (vmlsq_lane_f32): Likewise.
3023 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
3025         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
3026         builtin generator macros.
3027         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
3028         Define.
3029         (aarch64_float_mls<mode>): Define.
3030         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
3031         instead of relying on GCC vector extensions.
3032         (vmla_f64): Likewise.
3033         (vmlaq_f32): Likewise.
3034         (vmlaq_f64): Likewise.
3035         (vmls_f32): Likewise.
3036         (vmls_f64): Likewise.
3037         (vmlsq_f32): Likewise.
3038         (vmlsq_f64): Likewise.
3039         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
3041 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
3043         * config/aarch64/aarch64-simd-builtins.def: Add
3044         float_ml[as]_n_builtin generator macros.
3045         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
3046         Rename to...
3047         (mul_n<mode>3): This, and re-order arguments.
3048         (aarch64_float_mla_n<mode>): Define.
3049         (aarch64_float_mls_n<mode>): Define.
3050         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
3051         instead of inline asm.
3052         (vmlaq_n_f32): Likewise.
3053         (vmls_n_f32): Likewise.
3054         (vmlsq_n_f32): Likewise.
3056 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
3058         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
3059         builtin generator macros.
3060         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
3061         (aarch64_pmull_hiv16qi_insn): Define.
3062         (aarch64_pmull_hiv16qi): Define.
3063         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
3064         instead of inline asm.
3065         (vmull_p8): Likewise.
3067 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
3069         * config/avr/avr.md: Adjust peepholes to match and
3070         generate parallels with clobber of REG_CC.
3071         (mov<mode>_insn): Rename to mov<mode>_insn_split.
3072         (*mov<mode>_insn): Rename to mov<mode>_insn.
3074 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
3076         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
3077         for VAR_DECLs if -fdata-sections enabled.
3079 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
3081         PR bootstrap/100327
3082         * config/rs6000/rs6000.c
3083         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3084         (rs6000_libgcc_floating_mode_supported_p): New target hook.
3086 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
3088         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
3089         from here...
3090         (class back_threader_registry): ...to here...
3091         (class back_threader_profitability): ...and here...
3092         (thread_jumps::thread_through_all_blocks): Remove argument.
3093         (back_threader_registry::back_threader_registry): New.
3094         (back_threader_registry::~back_threader_registry): New.
3095         (back_threader_registry::thread_through_all_blocks): New.
3096         (thread_jumps::profitable_jump_thread_path): Move from here...
3097         (back_threader_profitability::profitable_path_p): ...to here.
3098         (thread_jumps::find_taken_edge): New.
3099         (thread_jumps::convert_and_register_current_path): Move...
3100         (back_threader_registry::register_path): ...to here.
3101         (thread_jumps::register_jump_thread_path_if_profitable): Move...
3102         (thread_jumps::maybe_register_path): ...to here.
3103         (thread_jumps::handle_phi): Call find_taken_edge and
3104         maybe_register_path.
3105         (thread_jumps::handle_assignment): Same.
3106         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
3107         tree argument to handle_phi and handle_assignment.
3108         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
3109         set of m_speed_p and m_max_threaded_paths.
3110         (pass_thread_jumps::execute): Remove second argument from
3111         find_jump_threads_backwards.
3112         (pass_early_thread_jumps::execute): Same.
3114 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
3116         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
3117         (class dom_opt_dom_walker): Initialize some class variables.
3118         (pass_dominator::execute): Pass evrp_range_analyzer and
3119         dom_jump_threader_simplifier to dom_opt_dom_walker.
3120         Adjust for some functions moving into classes.
3121         (simplify_stmt_for_jump_threading): Adjust and move to...
3122         (jump_threader_simplifier::simplify): ...here.
3123         (dom_opt_dom_walker::before_dom_children): Adjust for
3124         m_evrp_range_analyzer.
3125         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
3126         (test_for_singularity): Place in dom_opt_dom_walker class.
3127         (dom_opt_dom_walker::optimize_stmt): The argument
3128         evrp_range_analyzer is now a class field.
3129         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
3130         (thread_jumps::thread_through_all_blocks): New.
3131         (thread_jumps::convert_and_register_current_path): Use m_registry.
3132         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
3133         being in the threader class.
3134         (pass_early_thread_jumps::execute): Same.
3135         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
3136         (jump_threader::jump_threader): ...here.
3137         (threadedge_finalize_values): Move...
3138         (jump_threader::~jump_threader): ...here.
3139         (jump_threader::remove_jump_threads_including): New.
3140         (jump_threader::thread_through_all_blocks): New.
3141         (record_temporary_equivalences_from_phis): Move...
3142         (jump_threader::record_temporary_equivalences_from_phis): ...here.
3143         (record_temporary_equivalences_from_stmts_at_dest): Move...
3144         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3145         Here...
3146         (simplify_control_stmt_condition_1): Move to jump_threader class.
3147         (simplify_control_stmt_condition): Move...
3148         (jump_threader::simplify_control_stmt_condition): ...here.
3149         (thread_around_empty_blocks): Move...
3150         (jump_threader::thread_around_empty_blocks): ...here.
3151         (thread_through_normal_block): Move...
3152         (jump_threader::thread_through_normal_block): ...here.
3153         (thread_across_edge): Move...
3154         (jump_threader::thread_across_edge): ...here.
3155         (thread_outgoing_edges): Move...
3156         (jump_threader::thread_outgoing_edges): ...here.
3157         * tree-ssa-threadedge.h: Move externally facing functings...
3158         (class jump_threader): ...here...
3159         (class jump_threader_simplifier): ...and here.
3160         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
3161         (jump_thread_path_allocator::jump_thread_path_allocator): New.
3162         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
3163         (jump_thread_path_allocator::allocate_thread_edge): New.
3164         (jump_thread_path_allocator::allocate_thread_path): New.
3165         (jump_thread_path_registry::jump_thread_path_registry): New.
3166         (jump_thread_path_registry::~jump_thread_path_registry): New.
3167         (jump_thread_path_registry::allocate_thread_edge): New.
3168         (jump_thread_path_registry::allocate_thread_path): New.
3169         (dump_jump_thread_path): Make extern.
3170         (debug (const vec<jump_thread_edge *> &path)): New.
3171         (struct removed_edges): Move to tree-ssa-threadupdate.h.
3172         (struct thread_stats_d): Remove.
3173         (remove_ctrl_stmt_and_useless_edges): Make static.
3174         (lookup_redirection_data): Move...
3175         (jump_thread_path_registry::lookup_redirection_data): ...here.
3176         (ssa_redirect_edges): Make static.
3177         (thread_block_1): Move...
3178         (jump_thread_path_registry::thread_block_1): ...here.
3179         (thread_block): Move...
3180         (jump_thread_path_registry::thread_block): ...here.
3181         (thread_through_loop_header):  Move...
3182         (jump_thread_path_registry::thread_through_loop_header): ...here.
3183         (mark_threaded_blocks): Move...
3184         (jump_thread_path_registry::mark_threaded_blocks): ...here.
3185         (debug_path): Move...
3186         (jump_thread_path_registry::debug_path): ...here.
3187         (debug_all_paths): Move...
3188         (jump_thread_path_registry::dump): ..here.
3189         (rewire_first_differing_edge): Move...
3190         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
3191         (adjust_paths_after_duplication): Move...
3192         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
3193         (duplicate_thread_path): Move...
3194         (jump_thread_path_registry::duplicate_thread_path): ..here.
3195         (remove_jump_threads_including): Move...
3196         (jump_thread_path_registry::remove_jump_threads_including): ...here.
3197         (thread_through_all_blocks): Move to...
3198         (jump_thread_path_registry::thread_through_all_blocks): ...here.
3199         (delete_jump_thread_path): Remove.
3200         (register_jump_thread): Move...
3201         (jump_thread_path_registry::register_jump_thread): ...here.
3202         * tree-ssa-threadupdate.h: Move externally facing functions...
3203         (class jump_thread_path_allocator): ...here...
3204         (class jump_thread_path_registry): ...and here.
3205         (thread_through_all_blocks): Remove.
3206         (struct removed_edges): New.
3207         (register_jump_thread): Remove.
3208         (remove_jump_threads_including): Remove.
3209         (delete_jump_thread_path): Remove.
3210         (remove_ctrl_stmt_and_useless_edges): Remove.
3211         (free_dom_edge_info): New prototype.
3212         * tree-vrp.c: Remove x_vr_values hack.
3213         (class vrp_jump_threader_simplifier): New.
3214         (vrp_jump_threader_simplifier::simplify): New.
3215         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
3216         Remove m_dummy_cond.
3217         Instantiate m_simplifier and m_threader.
3218         (vrp_jump_threader::thread_through_all_blocks): New.
3219         (vrp_jump_threader::simplify_stmt): Remove.
3220         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
3221         Remove x_vr_values hack.
3222         (execute_vrp): Adjust for thread_through_all_blocks being in a
3223         class.
3225 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
3227         * genflags.c (gen_insn): Print failed expansion string.
3229 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
3231         * expr.c (alignment_for_piecewise_move): Call mode_for_size
3232         without limit to MAX_FIXED_MODE_SIZE.
3234 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
3236         PR middle-end/90773
3237         * builtins.c (builtin_memset_gen_str): Don't use return from
3238         simplify_gen_subreg.
3240 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
3242         PR target/98060
3243         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
3244         (*addsi3_carry_zext_0r): Ditto.
3245         (*sub<mode>3_carry_0): Ditto.
3246         (*subsi3_carry_zext_0r): Ditto.
3247         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
3248         New predicate.
3249         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
3250         Also consider ix86_carry_flag_unset_operator to calculate
3251         the cost of adc/sbb insn.
3253 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
3255         PR rtl-optimization/100225
3256         PR rtl-optimization/84878
3257         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
3258         where we have an instruction which touches (writes) any hard
3259         register from df->regular_block_artificial_uses set.
3260         Allow not-single-set instruction only right before basic block
3261         tail.
3263 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
3265         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
3267 2021-04-30  LevyHsu  <admin@levyhsu.com>
3269         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
3270         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
3271         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
3272         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
3274 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
3276         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
3278 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
3280         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
3281         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
3282         * config/i386/i386.c: Adjust.
3283         * config/i386/i386.md: Adjust.
3284         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
3285         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3286         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3287         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3288         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3289         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3290         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3291         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3292         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3293         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3294         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
3296 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
3298         * config/i386/i386-expand.c (ix86_expand_int_compare):
3299         Swap operands of GTU and LEU comparison to emit carry flag comparison.
3300         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
3301         predicate to allow more combine opportunities with memory operands.
3302         (*sub<mode>3_carry_0): Ditto.
3304 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3306         PR rtl-optimization/100303
3307         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
3308         boolean that indicates whether the use will only be used in
3309         debug instructions.  Treat it in the same way that existing
3310         cross-EBB debug references would be handled if so.
3311         (function_info::make_uses_available): Likewise.
3312         * rtl-ssa/functions.h (function_info::make_uses_available): Update
3313         prototype accordingly.
3314         (function_info::make_uses_available): Likewise.
3315         * fwprop.c (try_fwprop_subst): Update call accordingly.
3317 2021-04-29  Jeff Law  <jlaw@tachyum.com>
3319         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
3320         of RTX_CODE guard.
3322 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
3323             Richard Biener  <rguenther@suse.de>
3325         PR target/100312
3326         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
3327         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
3328         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
3329         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
3330         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
3331         to PURE_ARGS category.
3332         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
3333         Handle PURE_ARGS category.
3334         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
3336 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
3338         * configure.ac: Check for the presence of sys/locking.h header and
3339         for whether _LK_LOCK is supported by _locking.
3340         * configure: Regenerate.
3341         * config.in: Likewise.
3342         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
3343         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
3344         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
3346 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
3348         * config/i386/predicates.md (fcmov_comparison_operator):
3349         Do not check for trivial FP comparison operator.
3350         <case GEU, case LTU>: Allow CCGZmode.
3351         <case GTU, case LEU>: Do not allow CCCmode.
3352         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
3353         (ix86_carry_flag_operator): Match only LTU and UNLT code.
3354         Do not check for trivial FP comparison operator.  Allow CCGZmode.
3356 2021-04-29  Tom de Vries  <tdevries@suse.de>
3358         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
3359         fd->loop.step by either step or orig_step.
3361 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
3363         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
3364         (load_got_register): Do the PIC dance here.
3365         (sparc_legitimize_tls_address): Simplify.
3366         (sparc_emit_probe_stack_range): Likewise.
3367         (sparc32_initialize_trampoline): Likewise.
3368         (sparc64_initialize_trampoline): Likewise.
3369         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
3370         (probe_stack_range<P:mode>): Likewise.
3371         (flush<P:mode>): Likewise.
3372         (tgd_hi22<P:mode>): Likewise.
3373         (tgd_lo10<P:mode>): Likewise.
3374         (tgd_add<P:mode>): Likewise.
3375         (tgd_call<P:mode>): Likewise.
3376         (tldm_hi22<P:mode>): Likewise.
3377         (tldm_lo10<P:mode>): Likewise.
3378         (tldm_add<P:mode>): Likewise.
3379         (tldm_call<P:mode>): Likewise.
3380         (tldo_hix22<P:mode>): Likewise.
3381         (tldo_lox10<P:mode>): Likewise.
3382         (tldo_add<P:mode>): Likewise.
3383         (tie_hi22<P:mode>): Likewise.
3384         (tie_lo10<P:mode>): Likewise.
3385         (tie_add<P:mode>): Likewise.
3386         (tle_hix22<P:mode>): Likewise.
3387         (tle_lox10<P:mode>): Likewise.
3388         (stack_protect_setsi): Rename to...
3389         (stack_protect_set32): ...this.
3390         (stack_protect_setdi): Rename to...
3391         (stack_protect_set64): ...this.
3392         (stack_protect_set): Adjust calls to above.
3393         (stack_protect_testsi): Rename to...
3394         (stack_protect_test32): ...this.
3395         (stack_protect_testdi): Rename to...
3396         (stack_protect_test64): ...this.
3397         (stack_protect_test): Adjust calls to above.
3399 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
3401         PR middle-end/90773
3402         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
3403         (builtin_strncpy_read_str): Likewise.
3404         (builtin_memset_read_str): Add an argument for the previous RTL
3405         information and generate the new RTL from the previous RTL info.
3406         (builtin_memset_gen_str): Likewise.
3407         * builtins.h (builtin_strncpy_read_str): Update the prototype.
3408         (builtin_memset_read_str): Likewise.
3409         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
3410         returns true, round up size and alignment to the widest integer
3411         mode for maximum size.
3412         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
3413         and pass it to m_constfn.
3414         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
3415         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
3416         initialize m_push.  Initialize m_overlap_op_by_pieces with
3417         targetm.overlap_op_by_pieces_p ().
3418         (op_by_pieces_d::run): Pass the previous RTL information to
3419         pieces_addr::adjust and generate overlapping operations if
3420         m_overlap_op_by_pieces is true.
3421         (PUSHG_P): New.
3422         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
3423         change.
3424         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
3425         change.
3426         (can_store_by_pieces): Use by_pieces_constfn on constfun.
3427         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
3428         for op_by_pieces_d change.
3429         (clear_by_pieces_1): Add a dummy argument.
3430         (clear_by_pieces): Updated for op_by_pieces_d change.
3431         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
3432         (string_cst_read_str): Add a dummy argument.
3433         * expr.h (by_pieces_constfn): Add a dummy argument.
3434         (by_pieces_prev): New.
3435         * target.def (overlap_op_by_pieces_p): New target hook.
3436         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
3437         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
3438         * doc/tm.texi: Regenerated.
3440 2021-04-29  Richard Biener  <rguenther@suse.de>
3442         PR tree-optimization/100253
3443         * tree-vect-stmts.c (vectorizable_load): Do not assume
3444         element alignment when DR_MISALIGNMENT is -1.
3445         (vectorizable_store): Likewise.
3447 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
3449         PR target/100302
3450         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
3451         absu_hwi instead of abs_hwi.
3453 2021-04-29  Richard Biener  <rguenther@suse.de>
3455         PR middle-end/38474
3456         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
3457         forwarding when indirect forwarding through ESCAPED
3458         alread happens.
3460 2021-04-29  Tom de Vries  <tdevries@suse.de>
3462         PR target/100232
3463         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
3464         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
3465         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
3466         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
3468 2021-04-29  Richard Biener  <rguenther@suse.de>
3470         PR tree-optimization/99912
3471         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
3472         (dse_dom_walker::todo): Likewise.
3473         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
3474         caller.
3475         (dse_dom_walker::before_dom_children): Remove trivially
3476         dead SSA defs and schedule CFG cleanup if we removed all
3477         PHIs in a block.
3478         (pass_dse::execute): Get TODO as computed by the DOM walker
3479         and return it.  Wipe dominator info earlier.
3481 2021-04-29  Richard Biener  <rguenther@suse.de>
3483         PR ipa/100308
3484         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
3485         Track blocks to cleanup EH in new m_need_eh_cleanup.
3486         (ipcp_modif_dom_walker::cleanup_eh): New.
3487         (ipcp_transform_function): Release dominator info before
3488         doing EH cleanup.
3490 2021-04-29  Martin Sebor  <msebor@redhat.com>
3492         PR middle-end/100250
3493         * attribs.c (attr_access::array_as_string): Avoid dereferencing
3494         a pointer when it's null.
3496 2021-04-29  Martin Sebor  <msebor@redhat.com>
3498         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
3499         * ipa-free-lang-data.cc: New file.
3500         * tree.c: Move pass free_lang_data to file above.
3501          (build_array_type_1): Declare extern.
3502         * tree.h (build_array_type_1): Declare.
3504 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3506         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
3507         make consistent with updated RTL pattern.
3508         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
3509         Implement using ss_truncate and us_truncate rather than
3510         unspecs.
3511         * config/aarch64/iterators.md: Remove redundant unspecs and
3512         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
3514 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3516         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
3517         attributes consistent with those defined in arm_neon.h.
3519 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3521         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
3522         attributes consistent with those defined in arm_neon.h.
3524 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3526         * config/aarch64/aarch64-simd-builtins.def: Add
3527         float_trunc_rodd builtin generator macros.
3528         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
3529         Define.
3530         (aarch64_float_trunc_rodd_lo_v2sf): Define.
3531         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
3532         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
3533         (aarch64_float_trunc_rodd_hi_v4sf): Define.
3534         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
3535         instead of inline asm.
3536         (vcvtx_high_f32_f64): Likewise.
3537         (vcvtxd_f32_f64): Likewise.
3538         * config/aarch64/iterators.md: Add FCVTXN unspec.
3540 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3542         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
3543         generator macros.
3544         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
3545         Define.
3546         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
3547         instead of inline asm.
3548         (vqtbx1_u8): Likewise.
3549         (vqtbx1_p8): Likewise.
3550         (vqtbx1q_s8): Likewise.
3551         (vqtbx1q_u8): Likewise.
3552         (vqtbx1q_p8): Likewise.
3553         (vtbx2_s8): Likewise.
3554         (vtbx2_u8): Likewise.
3555         (vtbx2_p8): Likewise.
3557 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3559         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
3560         generator macros.
3561         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
3562         instead of inline asm.
3563         (vqtbl1_s8): Likewise.
3564         (vqtbl1_u8): Likewise.
3565         (vqtbl1q_p8): Likewise.
3566         (vqtbl1q_s8): Likewise.
3567         (vqtbl1q_u8): Likewise.
3568         (vtbl1_s8): Likewise.
3569         (vtbl1_u8): Likewise.
3570         (vtbl1_p8): Likewise.
3571         (vtbl2_s8): Likewise.
3572         (vtbl2_u8): Likewise.
3573         (vtbl2_p8): Likewise.
3575 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3577         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
3578         ssri_n buitin generator macro.
3579         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
3580         instead of inline asm.
3581         (vsri_n_p16): Likewise.
3582         (vsri_n_p64): Likewise.
3583         (vsriq_n_p8): Likewise.
3584         (vsriq_n_p16): Likewise.
3585         (vsriq_n_p64): Likewise.
3587 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3589         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
3590         iterator for polynomial ssli_n builtin generator macro.
3591         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
3592         instead of inline asm.
3593         (vsli_n_p16): Likewise.
3594         (vsliq_n_p8): Likewise.
3595         (vsliq_n_p16): Likewise.
3596         * config/aarch64/iterators.md: Define VALLP mode iterator.
3598 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3600         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
3601         iterator to generate [su]adalp RTL builtins.
3602         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
3603         [su]adalp RTL pattern.
3604         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
3605         instead of inline asm.
3606         (vpadal_u32): Likewise.
3608 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3610         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
3611         builtin generator macros.
3612         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
3613         Define.
3614         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
3615         instead of inline asm.
3616         (vpaddl_s16): Likewise.
3617         (vpaddl_s32): Likewise.
3618         (vpaddl_u8): Likewise.
3619         (vpaddl_u16): Likewise.
3620         (vpaddl_u32): Likewise.
3621         (vpaddlq_s8): Likewise.
3622         (vpaddlq_s16): Likewise.
3623         (vpaddlq_s32): Likewise.
3624         (vpaddlq_u8): Likewise.
3625         (vpaddlq_u16): Likewise.
3626         (vpaddlq_u32): Liwewise.
3627         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
3628         appropriate attributes.
3630 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3632         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
3633         for aarch64_addp<mode> builtin macro generator.
3634         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
3635         aarch64_addp<mode> RTL pattern.
3636         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
3637         instead of inline asm.
3638         (vpaddq_s16): Likewise.
3639         (vpaddq_s32): Likewise.
3640         (vpaddq_s64): Likewise.
3641         (vpaddq_u8): Likewise.
3642         (vpaddq_u16): Likewise.
3643         (vpaddq_u32): Likewise.
3644         (vpaddq_u64): Likewise.
3646 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
3648         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
3649         builtin generator macros.
3650         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
3651         Define.
3652         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
3653         instead of inline asm.
3654         (vqdmulh_n_s32): Likewise.
3655         (vqdmulhq_n_s16): Likewise.
3656         (vqdmulhq_n_s32): Likewise.
3657         (vqrdmulh_n_s16): Likewise.
3658         (vqrdmulh_n_s32): Likewise.
3659         (vqrdmulhq_n_s16): Likewise.
3660         (vqrdmulhq_n_s32): Likewise.
3662 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
3664         * doc/install.texi (--enable-offload-defaulted): Document.
3666 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
3668         * config/avr/avr-dimode.md: Turn existing patterns into
3669         define_insn_and_split style patterns where the splitter
3670         adds a clobber of the condition code register.  Drop "cc"
3671         attribute.  Add new patterns to match output of
3672         the splitters.
3673         * config/avr/avr-fixed.md: Likewise.
3674         * config/avr/avr.c (cc_reg_rtx): New.
3675         (avr_parallel_insn_from_insns): Adjust insn count
3676         for removal of set of cc0.
3677         (avr_is_casesi_sequence): Likewise.
3678         (avr_casei_sequence_check_operands): Likewise.
3679         (avr_optimize_casesi): Likewise. Also insert
3680         new insns after jump_insn.
3681         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
3682         for removal of set of cc0.
3683         (avr_init_expanders): Initialize cc_reg_rtx.
3684         (avr_regno_reg_class): Handle REG_CC.
3685         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
3686         (avr_notice_update_cc): Remove function.
3687         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
3688         (compare_condition): Adjust for PARALLEL with
3689         REG_CC clobber.
3690         (out_shift_with_cnt): Likewise.
3691         (ashlhi3_out): Likewise.
3692         (ashrhi3_out): Likewise.
3693         (lshrhi3_out): Likewise.
3694         (avr_class_max_nregs): Return single reg for REG_CC.
3695         (avr_compare_pattern): Check for REG_CC instead
3696         of cc0_rtx.
3697         (avr_reorg_remove_redundant_compare): Likewise.
3698         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
3699         (avr_hard_regno_nregs): Return single reg for REG_CC.
3700         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
3701         (avr_md_asm_adjust): Clobber REG_CC.
3702         (TARGET_HARD_REGNO_NREGS): Define.
3703         (TARGET_CLASS_MAX_NREGS): Define.
3704         (TARGET_MD_ASM_ADJUST): Define.
3705         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
3706         for REG_CC.
3707         (enum reg_class): Add CC_REG class.
3708         (NOTICE_UPDATE_CC): Remove.
3709         (CC_OVERFLOW_UNUSABLE): Remove.
3710         (CC_NO_CARRY): Remove.
3711         * config/avr/avr.md: Turn existing patterns into
3712         define_insn_and_split style patterns where the splitter
3713         adds a clobber of the condition code register.  Drop "cc"
3714         attribute.  Add new patterns to match output of
3715         the splitters.
3716         (sez): Remove unused pattern.
3718 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
3720         PR target/100311
3721         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
3722         used in HImode.
3724 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
3726         PR target/100305
3727         * config/aarch64/constraints.md (Utq): Require the address to
3728         be valid for both the element mode and for V2DImode.
3730 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
3731             Tobias Burnus  <tobias@codesourcery.com>
3733         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3734         * gcc.c (process_command): New variable.
3735         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
3736         set it if -foffload is defaulted.
3737         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
3738         (compile_offload_image): If OFFLOAD_DEFAULTED and
3739         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
3740         if corresponding mkoffload can't be found.
3741         (compile_images_for_offload_targets): Likewise.  Free and clear
3742         offload_names if no valid offload is found.
3743         * config.in: Regenerate.
3744         * configure: Regenerate.
3746 2021-04-28  Richard Biener  <rguenther@suse.de>
3748         PR tree-optimization/100292
3749         * tree-vect-generic.c (expand_vector_condition): Do not fold
3750         the comparisons.
3752 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
3754         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
3755         * config/rs6000/aix64.opt (m64): New.
3756         (m32): New.
3758 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
3760         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
3761         (index_term_p): Handle ASHIFT too.
3763 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
3765         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
3766         (sync_lock_test_and_set<mode>): Adjust accordingly.
3767         (sync_lock_release<mode>): Likewise.
3769 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
3771         * config/vax/vax-protos.h (adjacent_operands_p): Remove
3772         prototype.
3773         * config/vax/vax.c (adjacent_operands_p): Remove.
3775 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
3777         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
3778         through to the non-conditional execution case if getting the
3779         condition for conditional execution has failed.
3781 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
3783         PR middle-end/100284
3784         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
3785         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
3786         than asserting on it.
3788 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
3790         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
3791         with TARGET_AIX_OS.
3793 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
3795         PR target/94177
3796         * calls.c (precompute_register_parameters): Additionally test
3797         targetm.precompute_tls_p to pre-compute argument.
3798         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
3799         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
3800         * target.def (precompute_tls_p): New.
3801         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
3802         * doc/tm.texi: Regenerated.
3804 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3806         PR target/100200
3807         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
3808         back to HOST_WIDE_INT.
3810 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3812         PR target/100106
3813         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
3814         memory alignment for the outer mode.
3816 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
3818         PR middle-end/90773
3819         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
3820         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
3822 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
3824         PR target/99977
3825         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
3826         with negative immediates: ensure we expand cbranchsi4_scratch
3827         correctly and ensure we satisfy its constraints.
3828         * config/arm/sync.md
3829         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
3830         attempt to tie two output operands together with constraints;
3831         collapse two alternatives.
3832         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
3833         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
3835 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3837         PR target/100200
3838         * config/aarch64/predicates.md (aarch64_sub_immediate,
3839         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
3840         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
3841         * config/aarch64/aarch64.c (aarch64_print_operand,
3842         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
3844 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3846         PR tree-optimization/100239
3847         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
3848         permutations with all indices from the first zero element as vec_shl.
3850 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3852         PR rtl-optimization/100254
3853         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
3854         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
3856 2021-04-27  Richard Biener  <rguenther@suse.de>
3858         PR tree-optimization/99912
3859         * passes.def: Add comment about new TODO_remove_unused_locals.
3860         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
3861         at start.
3863 2021-04-27  Richard Biener  <rguenther@suse.de>
3865         PR tree-optimization/99912
3866         * passes.def (pass_all_optimizations): Add pass_dse before
3867         the first pass_dce, move the first pass_dse before the
3868         pass_dce following pass_pre.
3870 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3872         PR tree-optimization/95527
3873         * generic-match-head.c: Include tm.h.
3874         * gimple-match-head.c: Include tm.h.
3875         * match.pd (CLZ == INTEGER_CST): Don't use
3876         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
3877         if clz == CFN_CLZ.  Add missing val declaration.
3878         (CTZ cmp CST): New simplifications.
3880 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3882         PR tree-optimization/96696
3883         * expr.c (expand_expr_divmod): New function.
3884         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
3885         divisions.  Formatting fixes.
3886         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
3887         cheaper.
3889 2021-04-27  Martin Jambor  <mjambor@suse.cz>
3891         PR ipa/99951
3892         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
3893         If removing a call statement LHS SSA name, release it.
3895 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
3897         PR target/100236
3898         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
3899         is valid before including it in the mask.
3901 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
3903         PR target/100270
3904         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
3905         SVE attributes.
3907 2021-04-27  Richard Biener  <rguenther@suse.de>
3909         PR tree-optimization/100051
3910         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
3911         disambiguator based on access size vs. decl size.
3913 2021-04-27  Richard Biener  <rguenther@suse.de>
3915         PR tree-optimization/100278
3916         * tree-ssa-pre.c (compute_avail): Give up when we cannot
3917         adjust TBAA beacuse of mismatching bases.
3919 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
3921         PR target/99405
3922         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
3923         For any_rotate define_insn_split and following splitters, use
3924         SWI iterator instead of SWI48.
3926 2021-04-27  Richard Biener  <rguenther@suse.de>
3928         PR tree-optimization/99776
3929         * match.pd (bit_field_ref (ctor)): Relax element extract
3930         type compatibility checks.
3932 2021-04-27  Cui,Lili  <lili.cui@intel.com>
3934         * common/config/i386/i386-common.c (processor_names):
3935         Sync processor_names with processor_type.
3936         * config/i386/i386-options.c (processor_cost_table):
3937         Sync processor_cost_table with processor_type.
3939 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
3941         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
3942         (irange::set): Call irange_set_1bit_anti_range for handling all
3943         1-bit ranges.  Fall through on ~[MIN,MAX].
3945 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
3947         * value-range.cc (irange::legacy_num_pairs): Remove.
3948         (irange::invert): Change gcc_assert to gcc_checking_assert.
3949         * value-range.h (irange::num_pairs): Adjust for a cached
3950         num_pairs().  Also, rename all gcc_assert's to
3951         gcc_checking_assert's.
3953 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
3955         * value-range.cc (irange::operator=): Set m_kind.
3956         (irange::copy_to_legacy): Handle varying and undefined sources
3957         as a legacy copy since they can be easily copied.
3958         (irange::irange_set): Set m_kind.
3959         (irange::irange_set_anti_range): Same.
3960         (irange::set): Rename normalize_min_max to normalize_kind.
3961         (irange::verify_range): Adjust for multi-ranges having the
3962         m_kind field set.
3963         (irange::irange_union): Set m_kind.
3964         (irange::irange_intersect): Same.
3965         (irange::invert): Same.
3966         * value-range.h (irange::kind): Always return m_kind.
3967         (irange::varying_p): Rename to...
3968         (irange::varying_comptaible_p): ...this.
3969         (irange::undefined_p): Only look at m_kind.
3970         (irange::irange): Always set VR_UNDEFINED if applicable.
3971         (irange::set_undefined): Always set VR_UNDEFINED.
3972         (irange::set_varying): Always set m_kind to VR_VARYING.
3973         (irange::normalize_min_max): Rename to...
3974         (irange::normalize_kind): ...this.
3976 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
3978         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
3979         Adjust for constant_p including varying_p.
3980         * tree-vrp.c (vrp_prop::finalize): Same.
3981         (determine_value_range): Same.
3982         * vr-values.c (vr_values::range_of_expr): Same.
3983         * value-range.cc (irange::symbolic_p): Do not check varying_p.
3984         (irange::constant_p): Same.
3986 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
3988         * value-range.cc (irange::legacy_lower_bound): Replace
3989           !undefined_p check with num_ranges > 0.
3990         (irange::legacy_upper_bound): Same.
3991         * value-range.h (irange::type): Same.
3992         (irange::lower_bound): Same.
3993         (irange::upper_bound): Same.
3995 2021-04-26  Richard Biener  <rguenther@suse.de>
3997         PR tree-optimization/99956
3998         * gimple-loop-interchange.cc (compute_access_stride):
3999         Try instantiating the access in a shallower loop nest
4000         if instantiating failed.
4001         (compute_access_strides): Pass adjustable loop_nest
4002         to compute_access_stride.
4004 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
4006         * doc/sourcebuild.texi (arm_cmse_hw): Document.
4008 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4010         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
4012 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
4013             Nathan Sidwell  <nathan@codesourcery.com>
4014             Tom de Vries  <vries@codesourcery.com>
4015             Julian Brown  <julian@codesourcery.com>
4016             Kwok Cheung Yeung  <kcy@codesourcery.com>
4018         * omp-offload.c (oacc_validate_dims): Implement
4019         '-Wopenacc-parallelism'.
4020         * doc/invoke.texi (-Wopenacc-parallelism): Document.
4022 2021-04-26  Richard Biener  <rguenther@suse.de>
4024         * tree-cfg.h (gimplify_build1): Remove.
4025         (gimplify_build2): Likewise.
4026         (gimplify_build3): Likewise.
4027         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
4028         (gimplify_build2): Likewise.
4029         (gimplify_build3): Likewise.
4030         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
4031         Modernize.
4032         (gimplify_build2): Likewise.
4033         (gimplify_build3): Likewise.
4034         (tree_vec_extract): Use resimplify with following SSA edges.
4035         (expand_vector_parallel): Avoid passing NULL size/bitpos
4036         to tree_vec_extract.
4037         * expr.c (store_constructor): Deal with zero-element CTORs.
4038         * match.pd (bit_field_ref <vector CTOR>): Make sure to
4039         produce vector constants when possible.
4041 2021-04-26  Richard Biener  <rguenther@suse.de>
4043         * tree-complex.c: Include gimple-fold.h.
4044         (expand_complex_addition): Use gimple_build.
4045         (expand_complex_multiplication_components): Likewise.
4046         (expand_complex_multiplication): Likewise.
4047         (expand_complex_div_straight): Likewise.
4048         (expand_complex_div_wide): Likewise.
4049         (expand_complex_division): Likewise.
4050         (expand_complex_conjugate): Likewise.
4051         (expand_complex_comparison): Likewise.
4053 2021-04-26  Richard Biener  <rguenther@suse.de>
4055         * tree-ssa-phiopt.c (two_value_replacement): Remove use
4056         of legacy gimplify_buildN API.
4058 2021-04-26  Richard Biener  <rguenther@suse.de>
4060         PR tree-optimization/99473
4061         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
4062         stores.
4064 2021-04-26  Richard Biener  <rguenther@suse.de>
4066         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
4067         Use replace_call_with_value.
4069 2021-04-26  Richard Biener  <rguenther@suse.de>
4071         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
4072         (update_gimple_call): Likewise.
4073         (update_call_from_tree): Likewise.
4074         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
4075         (valid_gimple_call_p): Likewise.
4076         (move_ssa_defining_stmt_for_defs): Likewise.
4077         (finish_update_gimple_call): Likewise.
4078         (update_gimple_call): Likewise.
4079         (update_call_from_tree): Likewise.
4080         (propagate_tree_value_into_stmt): Use replace_call_with_value.
4081         * gimple-fold.h (update_gimple_call): Declare.
4082         * gimple-fold.c (valid_gimple_rhs_p): Move here from
4083         tree-ssa-propagate.c.
4084         (update_gimple_call): Likewise.
4085         (valid_gimple_call_p): Likewise.
4086         (finish_update_gimple_call): Likewise, and simplify.
4087         (gimplify_and_update_call_from_tree): Implement
4088         update_call_from_tree functionality, avoid excessive
4089         push/pop_gimplify_context.
4090         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
4091         (gimple_fold_call): Likewise.
4092         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
4093         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
4094         (pass_fold_builtins::execute): Likewise.
4095         (optimize_stack_restore): Use replace_call_with_value.
4096         * tree-cfg.c (fold_loop_internal_call): Likewise.
4097         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
4098         only gimplify_and_update_call_from_tree.
4099         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
4100         (handle_builtin_strchr): Likewise.
4101         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
4103 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
4105         PR debug/100255
4106         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
4107         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
4108         register keywords.
4110 2021-04-25  liuhongt  <hongtao.liu@intel.com>
4112         PR target/98911
4113         * config/i386/i386-builtin.def (BDESC): Change the icode of
4114         the following builtins to CODE_FOR_nothing.
4115         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
4116         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
4117         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
4118         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4119         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4120         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
4121         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
4122         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4123         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
4124         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
4125         (sse2_eq<mode>3): Ditto.
4126         (sse4_1_eqv2di3): Ditto.
4127         (sse2_gt<mode>3): Rename to ..
4128         (*sse2_gt<mode>3): .. this.
4130 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
4132         Revert:
4133         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
4135         PR target/100152
4136         * config/darwin.c (darwin_binds_local_p): Assume that any
4137         public symbol might be interposed for PIC code. Update function
4138         header comment to reflect current Darwin capability.
4140 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
4142         PR target/100152
4143         * config/darwin.c (darwin_binds_local_p): Assume that any
4144         public symbol might be interposed for PIC code. Update function
4145         header comment to reflect current Darwin capability.
4147 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
4149         * doc/sourcebuild.texi: Document no-opts and any-opts target
4150         selectors.
4152 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
4154         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
4156 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
4158         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
4160 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
4162         PR target/100041
4163         * config/i386/i386-options.c (ix86_option_override_internal):
4164         Error out when -m96bit-long-double is used with 64bit targets.
4165         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
4167 2021-04-23  Martin Liska  <mliska@suse.cz>
4169         * lto-wrapper.c: Remove FIXME about usage of
4170         hardware_concurrency. The function is not on par with
4171         what we have now.
4173 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
4175         PR target/100182
4176         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
4177         Copy operand 3 to operand 4.  Use sse_reg_operand
4178         as operand 3 predicate.
4179         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
4180         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
4181         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
4182         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
4183         Copy operand 1 to operand 0.
4184         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
4185         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
4186         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
4188 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
4190         PR rtl-optimization/100230
4191         * early-remat.c (early_remat::sort_candidates): Use delete[]
4192         instead of delete for array allocated with new[].
4194 2021-04-23  Richard Biener  <rguenther@suse.de>
4196         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
4197         (capture_info::capture_info): Likewise.
4198         (capture_info::walk_match): Likewise.
4199         (expr::gen_transform): Likewise.
4200         (dt_simplify::gen_1): Likewise.
4201         * gimple-match-head.c (maybe_resimplify_conditional_op):
4202         Remove VEC_COND_EXPR special-casing.
4203         (gimple_simplify): Likewise.
4204         * gimple.c (gimple_could_trap_p_1): Adjust.
4205         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
4206         to participate in PRE.
4208 2021-04-23  Richard Biener  <rguenther@suse.de>
4210         * cfganal.c (connect_infinite_loops_to_exit): First call
4211         add_noreturn_fake_exit_edges.
4212         * ipa-sra.c (process_scan_results): Do not call the now redundant
4213         add_noreturn_fake_exit_edges.
4214         * predict.c (tree_estimate_probability): Likewise.
4215         (rebuild_frequencies): Likewise.
4216         * store-motion.c (one_store_motion_pass): Likewise.
4218 2021-04-23  Richard Biener  <rguenther@suse.de>
4220         PR tree-optimization/100222
4221         * predict.c (pass_profile::execute): Remove redundant call to
4222         mark_irreducible_loops.
4223         (report_predictor_hitrates): Likewise.
4225 2021-04-23  Richard Biener  <rguenther@suse.de>
4227         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4228         valid_gimple_rhs_p by instead gimplifying to one.
4230 2021-04-23  Richard Biener  <rguenther@suse.de>
4232         PR tree-optimization/99971
4233         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4234         Always use TBAA for loads.
4236 2021-04-23  liuhongt  <hongtao.liu@intel.com>
4238         PR target/100093
4239         * config/i386/i386-options.c (ix86_option_override_internal):
4240         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
4241         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
4242         by target attribute.
4244 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
4246         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
4247         DWARF2_DEBUG.
4248         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
4250 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
4252         * config.gcc (powerpc-ibm-aix6.*): Remove.
4253         * config/rs6000/aix61.h: Delete.
4255 2021-04-22  Martin Liska  <mliska@suse.cz>
4257         PR testsuite/100159
4258         PR testsuite/100192
4259         * builtins.c (expand_builtin): Fix typos and missing comments.
4260         * dwarf2out.c (gen_subprogram_die): Likewise.
4261         (gen_struct_or_union_type_die): Likewise.
4263 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
4265         PR target/100119
4266         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
4267         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
4269 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
4271         * config/i386/darwin.h (TARGET_64BIT): Remove definition
4272         based on TARGET_ISA_64BIT.
4273         (TARGET_64BIT_P): Remove definition based on
4274         TARGET_ISA_64BIT_P().
4276 2021-04-21  Martin Liska  <mliska@suse.cz>
4278         Revert:
4279         2021-04-21  Martin Liska  <mliska@suse.cz>
4281         * lto-wrapper.c (cpuset_popcount): Remove.
4282         (init_num_threads): Remove and use hardware_concurrency.
4284 2021-04-21  Martin Liska  <mliska@suse.cz>
4286         PR jit/98615
4287         * main.c (main): Call toplev::finalize in CHECKING_P mode.
4288         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
4289         when incremental LTO linking happens.
4291 2021-04-21  Martin Liska  <mliska@suse.cz>
4293         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
4294         makeserver cannot be detected, then use -flto=N fallback.
4296 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
4298         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
4299         default to yes for aarch64-linux-gnu.
4300         * configure: Regenerate.
4302 2021-04-21  Martin Liska  <mliska@suse.cz>
4304         * lto-wrapper.c (cpuset_popcount): Remove.
4305         (init_num_threads): Remove and use hardware_concurrency.
4307 2021-04-21  Martin Liska  <mliska@suse.cz>
4309         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
4310         which remains to be '(... || 0)' and clang complains about it.
4311         * dwarf2out.c (AT_vms_delta): Declare conditionally.
4312         (add_AT_vms_delta): Likewise.
4313         * tree.c (fld_simplified_type): Use rather more common pattern
4314         for disabling of something (#if 0).
4315         (get_tree_code_name): Likewise.
4316         (verify_type_variant): Likewise.
4318 2021-04-21  Martin Liska  <mliska@suse.cz>
4320         * config/i386/i386-expand.c (decide_alignment): Use newly named
4321         macro TARGET_CPU_P.
4322         * config/i386/i386.c (ix86_decompose_address): Likewise.
4323         (ix86_address_cost): Likewise.
4324         (ix86_lea_outperforms): Likewise.
4325         (ix86_avoid_lea_for_addr): Likewise.
4326         (ix86_add_stmt_cost): Likewise.
4327         * config/i386/i386.h (TARGET_*): Remove.
4328         (TARGET_CPU_P): New macro.
4329         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
4330         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
4331         (swap_top_of_ready_list): Likewise.
4332         (ix86_atom_sched_reorder): Likewise.
4333         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
4334         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
4336 2021-04-21  Martin Liska  <mliska@suse.cz>
4338         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
4339         Define.
4340         (SET_TARGET_NO_SAHF): Likewise.
4341         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
4342         (SET_TARGET_PREFETCH_SSE): Likewise.
4343         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
4344         (SET_TARGET_NO_TUNE): Likewise.
4345         (TARGET_EXPLICIT_NO_80387_P): Likewise.
4346         (SET_TARGET_NO_80387): Likewise.
4347         (DEF_PTA): New.
4348         * config/i386/i386.h (TARGET_*): Remove.
4349         * opth-gen.awk: Generate new used macros.
4351 2021-04-21  Martin Liska  <mliska@suse.cz>
4353         * config/i386/i386.h (PTA_*): Remove.
4354         (enum pta_flag): New.
4355         (DEF_PTA): Generate PTA_* values from i386-isa.def.
4356         * config/i386/i386-isa.def: New file.
4358 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
4360         PR target/99988
4361         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
4362         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
4363         jump table targets.
4365 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
4367         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
4368         x86_64-*-* targets.
4369         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
4370         New.
4371         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
4372         (ix86_handle_option): Handle -mmwait.
4373         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
4374         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
4375         __builtin_ia32_monitor and __builtin_ia32_mwait.
4376         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
4377         (ix86_valid_target_attribute_inner_p): Likewise.
4378         (ix86_option_override_internal): Enable mwait/monitor
4379         instructions for -msse3.
4380         * config/i386/i386.h (TARGET_MWAIT): New.
4381         (TARGET_MWAIT_P): Likewise.
4382         * config/i386/i386.opt: Add -mmwait.
4383         * config/i386/mwaitintrin.h: New file.
4384         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
4385         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
4386         TARGET_MWAIT.
4387         (@sse3_monitor_<mode>): Likewise.
4388         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
4389         * doc/extend.texi: Document mwait target attribute.
4390         * doc/invoke.texi: Document -mmwait.
4392 2021-04-21  Martin Liska  <mliska@suse.cz>
4394         * config/i386/i386-options.c (DEF_ENUM): Remove it.
4395         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
4396         * config/i386/stringop.def (DEF_ENUM): Likewise.
4398 2021-04-21  Martin Liska  <mliska@suse.cz>
4400         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
4401         of print_generic_expr.
4403 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
4405         PR rtl-optimization/100148
4406         * cprop.c (constprop_register): Use next_nondebug_insn instead of
4407         NEXT_INSN.
4409 2021-04-21  Martin Liska  <mliska@suse.cz>
4411         PR ipa/98815
4412         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
4413         free_dominance_info calls.
4415 2021-04-21  Richard Biener  <rguenther@suse.de>
4417         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
4418         parameter (and assume it to be false).
4419         (fold_gimple_assign): Adjust, remove all callers of
4420         maybe_fold_reference calling it with is_lhs true.
4421         (gimple_fold_call): Likewise.
4422         (fold_stmt_1): Likewise.
4424 2021-04-21  Richard Biener  <rguenther@suse.de>
4426         * fold-const.c (pedantic_non_lvalue_loc): Remove.
4427         (fold_binary_loc): Adjust.
4428         (fold_ternary_loc): Likewise.
4430 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
4432         PR middle-end/100130
4433         * varasm.c (get_block_for_decl): Make sure that any use of the
4434         retain attribute matches the section's retain flag.
4435         (switch_to_section): Check for retain mismatches even when
4436         changing sections, but do not warn if the given decl is the
4437         section's named.decl.
4438         (output_object_block): Pass the first decl in the block (if any)
4439         to switch_to_section.
4441 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
4443         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4444         __CRC32__ for -mcrc32.
4445         * config/i386/i386-options.c (ix86_option_override_internal):
4446         Enable crc32 instruction for -msse4.2.
4447         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
4448         check.
4449         (sse4_2_crc32di): Likewise.
4450         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
4451         intrinsics.
4453 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
4455         PR target/100108
4456         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
4457         OPTION_MASK_ISEL.
4459 2021-04-20  Martin Liska  <mliska@suse.cz>
4461         * doc/invoke.texi: Fix typo.
4462         * params.opt: Likewise.
4464 2021-04-20  Martin Liska  <mliska@suse.cz>
4466         * doc/invoke.texi: Document new param.
4468 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
4470         PR tree-optimization/100081
4471         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
4472         rather than gori_compute_cache.
4473         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
4474         (range_def_chain::m_logical_depth): New member.
4475         (range_def_chain::range_def_chain): Initialize m_logical_depth.
4476         (range_def_chain::get_def_chain): Don't build defchains through more
4477         than LOGICAL_LIMIT logical expressions.
4478         * params.opt (param_ranger_logical_depth): New.
4480 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
4482         PR target/100067
4483         * config/arm/arm.c (arm_configure_build_target): Do not strip
4484         extended FPU/SIMD feature bits from the target ISA when -mfpu
4485         is specified (partial revert of r11-8168).
4487 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
4489         * params.opt (-param=openacc-kernels=): Add.
4490         * omp-oacc-kernels-decompose.cc
4491         (pass_omp_oacc_kernels_decompose::gate): Use it.
4492         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
4493         (--param): ... here, 'openacc-kernels'.
4495 2021-04-19  Martin Liska  <mliska@suse.cz>
4497         PR c/100143
4498         * gengtype.c (finish_root_table): Align function arguments
4499         in between declaration and definition.
4501 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4503         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
4504         frames larger than the SEH maximum frame size.
4506 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
4508         PR rtl-optimization/99927
4509         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
4510         is dead, just drop it.
4512 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4514         PR d/99914
4515         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
4516         * doc/tm.texi: Regenerate.
4517         * doc/tm.texi.in (D language and ABI): Add @hook for
4518         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
4520 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4522         * config/darwin-d.c (darwin_d_handle_target_object_format): New
4523         function.
4524         (darwin_d_register_target_info): New function.
4525         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4526         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
4527         function.
4528         (dragonfly_d_register_target_info): New function.
4529         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4530         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
4531         function.
4532         (freebsd_d_register_target_info): New function.
4533         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4534         * config/glibc-d.c (glibc_d_handle_target_object_format): New
4535         function.
4536         (glibc_d_register_target_info): New function.
4537         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4538         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
4539         function.
4540         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
4541         as handler for objectFormat key.
4542         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
4543         function.
4544         (winnt_d_register_target_info): New function.
4545         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4546         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
4547         function.
4548         (netbsd_d_register_target_info): New function.
4549         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4550         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
4551         function.
4552         (openbsd_d_register_target_info): New function.
4553         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4554         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
4555         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
4556         handler for objectFormat key.
4557         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
4558         function.
4559         (rs6000_d_register_target_info): Add
4560         rs6000_d_handle_target_object_format as handler for objectFormat key.
4561         * config/sol2-d.c (solaris_d_handle_target_object_format): New
4562         function.
4563         (solaris_d_register_target_info): New function.
4564         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
4566 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
4568         PR target/91710
4569         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
4570         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
4571         alignment.
4572         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
4573         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
4574         the old and new alignment after applying MIN/MAX to it is different.
4576 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
4578         PR target/100048
4579         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
4580         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
4581         TRN optab.
4582         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
4584 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
4586         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
4587         this section and its subsections.
4589 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
4591         PR target/100075
4592         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
4593         define_insn patterns.
4595 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
4597         PR rtl-optimization/98689
4598         * reg-notes.def (UNTYPED_CALL): New note.
4599         * combine.c (distribute_notes): Handle it.
4600         * emit-rtl.c (try_split): Likewise.
4601         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
4602         that calls with the note implicitly set all return value registers.
4603         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
4604         to untyped_calls.
4606 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
4608         PR rtl-optimization/99596
4609         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
4610         register accesses for const calls.  Assume that pure functions
4611         can only read from global registers.  Ignore cases in which
4612         the stack pointer has been marked global.
4614 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
4616         PR target/99767
4617         * tree-vect-loop.c (vect_transform_loop): Don't remove just
4618         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
4619         them by their last argument.
4621 2021-04-15  Martin Liska  <mliska@suse.cz>
4623         * doc/invoke.texi: Other params don't use it, remove it.
4625 2021-04-15  Richard Biener  <rguenther@suse.de>
4627         * gimple-builder.h: Add deprecation note.
4629 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
4631         PR c++/98852
4632         * attribs.h (restrict_type_identity_attributes_to): Declare.
4633         * attribs.c (restrict_type_identity_attributes_to): New function.
4635 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
4637         PR c/98852
4638         * attribs.h (affects_type_identity_attributes): Declare.
4639         * attribs.c (remove_attributes_matching): New function.
4640         (affects_type_identity_attributes): Likewise.
4642 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
4644         PR target/100056
4645         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
4646         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
4647         ZERO_EXTEND, SIGN_EXTEND or AND.
4649 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
4651         PR rtl-optimization/99929
4652         * rtl.h (same_vector_encodings_p): New function.
4653         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
4654         * cselib.c (rtx_equal_for_cselib_1): Likewise.
4655         * jump.c (rtx_renumbered_equal_p): Likewise.
4656         * lra-constraints.c (operands_match_p): Likewise.
4657         * reload.c (operands_match_p): Likewise.
4658         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
4660 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
4662         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
4663         more information about variable-length CONST_VECTORs.
4665 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
4667         PR rtl-optimization/100066
4668         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
4669         ordered modes when choosing splitting mode for hard reg.
4671 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
4673         PR target/99246
4674         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
4675         New function.
4676         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
4678 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
4680         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
4681         for mask operand types.
4682         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
4683         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
4684         operand.
4685         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
4686         immediate operand.
4687         * config/s390/s390.c (s390_const_operand_ok): Check the new
4688         operand types and generate a list of valid values.
4690 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4692         * doc/tm.texi: Regenerate.
4693         * doc/tm.texi.in (D language and ABI): Add @hook for
4694         TARGET_D_REGISTER_OS_TARGET_INFO.
4696 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4698         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
4699         function.
4700         (aarch64_d_register_target_info): New function.
4701         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
4702         Declare.
4703         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
4704         Define.
4705         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
4706         (arm_d_register_target_info): New function.
4707         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
4708         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4709         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
4710         (ix86_d_register_target_info): New function.
4711         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
4712         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4713         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
4714         (mips_d_register_target_info): New function.
4715         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
4716         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4717         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
4718         (pa_d_register_target_info): New function.
4719         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
4720         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4721         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
4722         function.
4723         (riscv_d_register_target_info): New function.
4724         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
4725         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4726         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
4727         function.
4728         (rs6000_d_register_target_info): New function.
4729         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
4730         Declare.
4731         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4732         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
4733         (s390_d_register_target_info): New function.
4734         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
4735         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4736         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
4737         function.
4738         (sparc_d_register_target_info): New function.
4739         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
4740         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
4741         * doc/tm.texi: Regenerate.
4742         * doc/tm.texi.in (D language and ABI): Add @hook for
4743         TARGET_D_REGISTER_CPU_TARGET_INFO.
4745 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4747         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
4748         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
4749         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
4750         * doc/tm.texi: Regenerate.
4751         * doc/tm.texi.in (D language and ABI): Add @hook for
4752         TARGET_D_HAS_STDCALL_CONVENTION.
4754 2021-04-14  Richard Biener  <rguenther@suse.de>
4756         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
4757         VEC_COND_EXPRs have a gimple_val condition.
4758         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
4759         can no longer have a GENERIC condition.
4761 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
4763         PR target/100067
4764         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
4765         from the isa_delta when -mfpu has been used.
4766         (arm_options_perform_arch_sanity_checks): It's the architecture that
4767         lacks an FPU not the processor.
4769 2021-04-13  Richard Biener  <rguenther@suse.de>
4771         PR tree-optimization/100053
4772         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
4773         not use optimistic dominance queries for backedges to validate
4774         predicated values.
4775         (dominated_by_p_w_unex): Add parameter to ignore executable
4776         state on backedges.
4777         (rpo_elim::eliminate_avail): Adjust.
4779 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
4781         PR target/100028
4782         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
4783         *aarch64_bfxilsi_extrdi): New define_insn patterns.
4785 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
4787         PR target/99648
4788         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
4789         outermode, return NULL if the result doesn't encode back to the
4790         original byte sequence.
4791         (simplify_gen_subreg): Don't create SUBREGs from constants to
4792         MODE_COMPOSITE_P outermode.
4794 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
4796         PR rtl-optimization/99905
4797         * combine.c (expand_compound_operation): If pos + len > modewidth,
4798         perform the right shift by pos in inner_mode and then convert to mode,
4799         instead of trying to simplify a shift of rtx with inner_mode by pos
4800         as if it was a shift in mode.
4802 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
4804         PR debug/99830
4805         * combine.c (simplify_and_const_int_1): Don't optimize varop
4806         away if it has side-effects.
4808 2021-04-12  Martin Liska  <mliska@suse.cz>
4810         * doc/extend.texi: Escape @smallexample content.
4812 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
4814         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
4815           alternative in order to load a DFP zero.
4817 2021-04-12  Martin Liska  <mliska@suse.cz>
4819         * doc/extend.texi: Be more precise in documentation
4820         of symver attribute.
4822 2021-04-12  Martin Liska  <mliska@suse.cz>
4824         PR sanitizer/99877
4825         * gimplify.c (gimplify_expr): Right now, we unpoison all
4826         variables before a goto <dest>. We should not do it if we are
4827         in a omp context.
4829 2021-04-12  Cui,Lili  <lili.cui@intel.com>
4831         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
4832         rocketlake.
4833         * common/config/i386/i386-common.c (processor_names): Add
4834         rocketlake.
4835         (processor_alias_table): Add rocketlake.
4836         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
4837         INTEL_COREI7_ROCKETLAKE.
4838         * config.gcc: Add -march=rocketlake.
4839         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4840         rocketlake.
4841         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
4842         (processor_cost_table): Add rocketlake cost.
4843         * config/i386/i386.h (ix86_size_cost) : Define
4844         TARGET_ROCKETLAKE.
4845         (processor_type) : Add PROCESSOR_ROCKETLAKE.
4846         (PTA_ROCKETLAKE): Ditto.
4847         * doc/extend.texi: Add rocketlake.
4848         * doc/invoke.texi: Add rocketlake.
4850 2021-04-12  Cui,Lili  <lili.cui@intel.com>
4852         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
4853         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
4854         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
4855         * doc/invoke.texi: Change alderlake ISA list.
4857 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4859         PR middle-end/98088
4860         * omp-expand.c (expand_oacc_collapse_init): Update condition in
4861         a gcc_assert.
4863 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
4865         PR target/99744
4866         * config/i386/serializeintrin.h (_serialize): Defined as macro.
4868 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
4870         PR lto/99849
4871         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
4872         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
4874 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
4876         PR middle-end/99989
4877         * gimple-ssa-warn-alloca.c
4878         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
4879         0 with integer precision unconditionally.
4881 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
4883         PR rtl-optimization/98601
4884         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
4885         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
4886         unaligned_mems handle VOIDmode like BLKmode.
4888 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
4890         PR lto/99857
4891         * tree.c (free_lang_data_in_decl): Do not release body of
4892         declare_variant_alt.
4894 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
4896         * config/aarch64/aarch64.c (aarch64_option_restore): If the
4897         architecture was specified explicitly and the tuning wasn't,
4898         tune for the architecture rather than the configured default CPU.
4900 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
4902         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
4903         as the temporary register.
4905 2021-04-09  Martin Liska  <mliska@suse.cz>
4907         * doc/extend.texi: Move non-target attributes on the top level.
4909 2021-04-09  Martin Liska  <mliska@suse.cz>
4911         * doc/invoke.texi: Document minimum and maximum value of the
4912         argument for both supported compression algorithms.
4914 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
4916         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
4917         TLS BSS before TLS data.
4918         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
4920 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
4922         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
4924 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
4926         * match.pd: Extend vec_cond folds to handle shifts.
4928 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
4930         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
4931         peephole.
4933 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
4935         PR target/99647
4936         * config/arm/iterators.md (MVE_vecs): New.
4937         (V_elem): Also handle V2DF.
4938         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
4939         (*mve_vdup<mode>): ... this. Remove second alternative since
4940         vec_duplicate of const_int is not canonical RTL, and we don't
4941         want to match symbol_refs.
4942         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
4944 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
4946         * fold-const.c (fold_single_bit_test): Fix typo.
4947         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
4948         instead.
4950 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
4952         PR tree-optimization/97513
4953         * tree-vect-slp.c (vect_add_slp_permutation): New function,
4954         split out from...
4955         (vectorizable_slp_permutation): ...here.  Detect cases in which
4956         all VEC_PERM_EXPRs are guaranteed to have the same stepped
4957         permute vector and only generate one permute vector for that case.
4958         Extend that case to handle variable-length vectors.
4960 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
4962         PR tree-optimization/99873
4963         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
4964         (vect_build_slp_instance): Don't split store groups that could
4965         use IFN_STORE_LANES.
4967 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
4969         PR target/99872
4970         * varasm.c (output_constant_pool_contents): Don't strip name encoding
4971         from XSTR (desc->sym, 0) or from label before passing those to
4972         ASM_OUTPUT_DEF.
4974 2021-04-07  Richard Biener  <rguenther@suse.de>
4976         PR tree-optimization/99954
4977         * tree-loop-distribution.c: Include tree-affine.h.
4978         (generate_memcpy_builtin): Try using tree-affine to prove
4979         non-overlap.
4980         (loop_distribution::classify_builtin_ldst): Always classify
4981         as PKIND_MEMMOVE.
4983 2021-04-07  Richard Biener  <rguenther@suse.de>
4985         PR tree-optimization/99947
4986         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
4987         steps vector to avoid pushing elements from the reallocated
4988         vector.
4990 2021-04-07  Richard Biener  <rguenther@suse.de>
4992         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
4993         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
4994         printing...
4995         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
4996         function.
4997         (debug_vn_reference_ops): New.
4999 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
5001         PR tree-optimization/98736
5002         * tree-loop-distribution.c
5003         * (loop_distribution::bb_top_order_init):
5004         Compute RPO with programing order preserved by calling function
5005         rev_post_order_and_mark_dfs_back_seme.
5007 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
5009         PR target/99781
5010         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
5011         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
5012         functions.
5013         (process_bb_lives): Don't update biggest mode of hard reg for
5014         implicit in multi-register group.  Use the new functions for
5015         updating dead_set and unused_set by register notes.
5017 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
5019         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
5020         instead of *.
5022 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
5024         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
5025         (skylake_memset): Likewise.
5026         (skylake_cost): Change CLEAR_RATIO to 17.
5027         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
5028         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
5029         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
5031 2021-04-06  Richard Biener  <rguenther@suse.de>
5033         PR tree-optimization/99880
5034         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
5035         set vectorized defs of relevant PHIs.
5037 2021-04-06  Richard Biener  <rguenther@suse.de>
5039         PR tree-optimization/99924
5040         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
5041         nodes w/o scalar stmts as visited.
5043 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
5045         PR target/99748
5046         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
5047         PCS for [su]fix_optab.
5049 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
5051         * config/darwin.c (machopic_legitimize_pic_address): Check
5052         that the current pic register is one of the hard reg set
5053         before setting liveness.
5055 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
5057         * config/darwin.c (machopic_legitimize_pic_address): Fix
5058         whitespace, remove unused code.
5060 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
5062         PR tree-optimization/99882
5063         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
5064         pointer type.
5066 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
5068         PR rtl-optimization/99863
5069         * dse.c (replace_read): Drop regs_live argument.  Instead of
5070         regs_live, use store_insn->fixed_regs_live if non-NULL,
5071         otherwise punt if insns sequence clobbers or sets any hard
5072         registers.
5074 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
5076         PR testsuite/98125
5077         * targhooks.h (default_print_patchable_function_entry_1): Declare.
5078         * targhooks.c (default_print_patchable_function_entry_1): New function,
5079         copied from default_print_patchable_function_entry with an added flags
5080         argument.
5081         (default_print_patchable_function_entry): Rewritten into a small
5082         wrapper around default_print_patchable_function_entry_1.
5083         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
5084         Redefine.
5085         (rs6000_print_patchable_function_entry): New function.
5087 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
5089         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
5091 2021-04-01  Jason Merrill  <jason@redhat.com>
5093         PR c++/98481
5094         * common.opt: Document v15 and v16.
5096 2021-04-01  Richard Biener  <rguenther@suse.de>
5098         PR tree-optimization/99863
5099         * gimplify.c (gimplify_init_constructor): Recompute vector
5100         constructor flags.
5102 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
5104         * doc/extend.texi (symver attribute): Fix up syntax errors
5105         in the examples.
5107 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
5109         PR tree-optimization/96573
5110         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
5111         also pointer types.
5113 2021-04-01  Richard Biener  <rguenther@suse.de>
5115         PR tree-optimization/99856
5116         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
5117         precision to vector element precision.
5119 2021-04-01  Martin Jambor  <mjambor@suse.cz>
5121         PR tree-optimization/97009
5122         * tree-sra.c (access_or_its_child_written): New function.
5123         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
5124         test.
5126 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
5128         PR ipa/98265
5129         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
5131 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
5133         PR target/99133
5134         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
5135         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
5136         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
5137         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
5138         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
5139         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
5140         Likewise.
5141         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
5142         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
5143         (define_attr "prefixed"): Update initializer.
5145 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
5147         PR debug/99490
5148         * dwarf2out.c (debug_ranges_dwo_section): New variable.
5149         (DW_RANGES_IDX_SKELETON): Define.
5150         (struct dw_ranges): Add begin_entry and end_entry members.
5151         (DEBUG_DWO_RNGLISTS_SECTION): Define.
5152         (add_ranges_num): Adjust r initializer for addition of *_entry
5153         members.
5154         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
5155         set idx to DW_RANGES_IDX_SKELETON.
5156         (use_distinct_base_address_for_range): New function.
5157         (index_rnglists): Don't set r->idx if it is equal to
5158         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
5159         r->end_entry for -gsplit-dwarf if those will be needed by
5160         output_rnglists.
5161         (output_rnglists): Add DWO argument.  If true, switch to
5162         debug_ranges_dwo_section rather than debug_ranges_section.
5163         Adjust l1/l2 label indexes.  Only output the offset table when
5164         dwo is true and don't include in there the skeleton range
5165         entry if present.  For -gsplit-dwarf, skip ranges that belong
5166         to the other rnglists section.  Change return type from void
5167         to bool and return true if there are any range entries for
5168         the other section.  For dwarf_split_debug_info use
5169         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
5170         entries instead of DW_RLE_start_end, DW_RLE_start_length and
5171         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
5172         (init_sections_and_labels): Initialize debug_ranges_dwo_section
5173         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
5174         and range_base_label indexes.
5175         (dwarf2out_finish): Call index_rnglists earlier before finalizing
5176         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
5177         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
5178         with different dwo arguments.
5179         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
5181 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
5183         PR tree-optimization/98268
5184         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
5185         recompute_tree_invariant_for_addr_expr after successfully
5186         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
5188 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
5190         PR tree-optimization/99726
5191         * tree-data-ref.c (create_intersect_range_checks_index): Bail
5192         out if there is more than one access function SCEV for the loop
5193         being versioned.
5195 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
5197         PR rtl-optimization/97141
5198         PR rtl-optimization/98726
5199         * emit-rtl.c (valid_for_const_vector_p): Return true for
5200         CONST_POLY_INT_P.
5201         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
5202         poly_wide_int instead of a wide_int.
5203         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
5204         of a wide_int.
5205         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
5206         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
5207         false for CONST_VECTORs that cannot be forced to memory.
5208         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
5209         is too complex to force to memory, build it up from individual
5210         elements instead.
5212 2021-03-31  Jan Hubicka  <jh@suse.cz>
5214         PR lto/99447
5215         * cgraph.c (cgraph_node::release_body): Fix overactive check.
5217 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
5219         PR target/99786
5220         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
5221         for V4HI and V2SI.
5223 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
5225         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
5226         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
5227         to SImode.
5228         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
5229         "rep movsb/stosb" only for known sizes.
5230         * config/i386/i386-options.c (processor_cost_table): Use Ice
5231         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
5232         Rapids and Alder Lake.
5233         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
5234         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
5235         (icelake_memset): Likewise.
5236         (icelake_cost): Likewise.
5237         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
5238         New.
5240 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
5242         PR target/98119
5243         * config/aarch64/aarch64.c
5244         (aarch64_vectorize_preferred_vector_alignment): Query the size
5245         of the provided SVE vector; do not assume that all SVE vectors
5246         have the same size.
5248 2021-03-31  Jan Hubicka  <jh@suse.cz>
5250         PR lto/99447
5251         * cgraph.c (cgraph_node::release_body): Remove all callers and
5252         references.
5253         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
5254         * cgraphunit.c (cgraph_node::expand): And here.
5256 2021-03-31  Martin Liska  <mliska@suse.cz>
5258         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
5259         and one negated condition.
5261 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
5262             Richard Sandiford  <richard.sandiford@arm.com>
5264         PR target/99813
5265         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
5266         constraints on operands[2] and similarly 0 and rk constraints
5267         on operands[1] corresponding to that.
5269 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
5271         PR bootstrap/98860
5272         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
5273         linker doesn't support DWARF sections new in DWARF5.
5274         * config/i386/i386-options.c (ix86_option_override_internal): Default
5275         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
5276         targets.
5277         * config.in: Regenerated.
5278         * configure: Regenerated.
5280 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5282         PR target/99820
5283         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
5284         available issue_info before using it.
5286 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5288         PR target/99822
5289         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
5290         in operand 1.
5292 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
5294         PR target/99718
5295         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
5296         (altivec_lvsl_reg_<mode>): ... this.
5297         (altivec_lvsr_reg): Change to ...
5298         (altivec_lvsr_reg_<mode>): ... this.
5299         * config/rs6000/predicates.md (vec_set_index_operand): New.
5300         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5301         Enable 32bit variable vec_insert for all TARGET_VSX.
5302         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
5303         Enable 32bit variable vec_insert for p9 and above.
5304         (rs6000_expand_vector_set_var_p8): Rename to ...
5305         (rs6000_expand_vector_set_var_p7): ... this.
5306         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
5307         position.
5308         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
5309         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
5310         gen_altivec_lvsr_reg_di.
5312 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
5314         PR target/99744
5315         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
5316         (__rdtscp): Likewise.
5318 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
5320         PR tree-optimization/99825
5321         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
5322         Reject non-mult 2 lanes.
5324 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
5326         PR target/99773
5327         * config/arm/arm.c (arm_file_start): Fix emission of
5328         Tag_ABI_VFP_args attribute.
5330 2021-03-30  Richard Biener  <rguenther@suse.de>
5332         PR tree-optimization/99824
5333         * stor-layout.c (set_min_and_max_values_for_integral_type):
5334         Assert the precision is within the bounds of
5335         WIDE_INT_MAX_PRECISION.
5336         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
5337         the outermost component ref only to lower the access size
5338         and initialize that from the access type.
5340 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
5342         PR target/98136
5343         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
5344         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
5346 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
5348         * config/aarch64/aarch64.md
5349         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
5350         attribute to disambiguate between SIMD and FP variants of the
5351         instruction.
5353 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
5355         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
5356         (analyze_ssa_name_flags): Fix typo in comment.
5358 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
5360         PR target/99216
5361         * config/aarch64/aarch64-sve-builtins.cc
5362         (function_builder::add_function): Add placeholder_p argument, use
5363         placeholder decls if this is set.
5364         (function_builder::add_unique_function): Instead of conditionally adding
5365         direct overloads, unconditionally add either a direct overload or a
5366         placeholder.
5367         (function_builder::add_overloaded_function): Set placeholder_p if we're
5368         using C++ overloads. Use the obstack for string storage instead
5369         of relying on the tree nodes.
5370         (function_builder::add_overloaded_functions): Don't return early for
5371         m_direct_overloads: we need to add placeholders.
5372         * config/aarch64/aarch64-sve-builtins.h
5373         (function_builder::add_function): Add placeholder_p argument.
5375 2021-03-29  Richard Biener  <rguenther@suse.de>
5377         PR tree-optimization/99807
5378         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
5379         assert below VEC_PERM handling.
5381 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5383         PR target/99037
5384         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
5385         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
5386         matching const_int 0.
5387         (move_lo_quad_internal_be_<mode>): Likewise.
5388         (move_lo_quad_<mode>): Update for the above.
5389         * config/aarch64/iterators.md (VQ_2E): Delete.
5391 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
5393         PR tree-optimization/99777
5394         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
5395         types other than scalar integral types.
5397 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
5399         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
5400         XCOFF TLS reloc decorations.
5402 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
5404         * doc/analyzer.texi (Analyzer Internals): Update link to
5405         "A Memory Model for Static Analysis of C Programs".
5407 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
5409         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
5410         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
5411         Declare.
5412         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
5413         (rs6000_special_round_type_align): Recursively check innermost first
5414         field.
5416 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
5418         PR debug/99334
5419         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
5420         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
5421         assignment with drap_reg active, queue reg save for hfp with offset 0
5422         and flush queued reg saves.  When handling a push with rule18,
5423         defer queueing reg save for hfp and just assert the offset is 0.
5424         (scan_trace): Assert that fde->rule18 is false.
5426 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
5428         PR target/99766
5429         * ira-costs.c (record_reg_classes): Put case with
5430         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
5431         * ira.c (ira_setup_alts): Ditto.
5432         * lra-constraints.c (process_alt_operands): Ditto.
5433         * recog.c (asm_operand_ok): Ditto.
5434         * reload.c (find_reloads): Ditto.
5436 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5438         * config/aarch64/aarch64-protos.h
5439         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
5440         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
5441         * config/aarch64/aarch64.c (generic_addrcost_table): Update
5442         accordingly, using the same costs as for post_modify.
5443         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
5444         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
5445         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
5446         (a64fx_addrcost_table): Likewise.
5447         (neoversev1_addrcost_table): New.
5448         (neoversev1_tunings): Use neoversev1_addrcost_table.
5449         (aarch64_address_cost): Use the new post_modify costs for CImode
5450         and XImode.
5452 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5454         * config/aarch64/aarch64.opt
5455         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
5456         * doc/invoke.texi: Document it.
5457         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
5458         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
5459         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
5460         (aarch64_vec_issue_info): New structures.
5461         (cpu_vector_cost): Write comments above the variables rather
5462         than to the side.
5463         (cpu_vector_cost::issue_info): New member variable.
5464         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
5465         and tree-ssa-loop-niter.h.
5466         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
5467         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
5468         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
5469         (thunderx3t110_vector_cost): Initialize issue_info to null.
5470         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
5471         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
5472         (neoversev1_vector_cost): Use them.
5473         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
5474         (aarch64_vector_costs::saw_sve_only_op): New member variable.
5475         (aarch64_vector_costs::num_vector_iterations): Likewise.
5476         (aarch64_vector_costs::scalar_ops): Likewise.
5477         (aarch64_vector_costs::advsimd_ops): Likewise.
5478         (aarch64_vector_costs::sve_ops): Likewise.
5479         (aarch64_vector_costs::seen_loads): Likewise.
5480         (aarch64_simd_vec_costs_for_flags): New function.
5481         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
5482         Count the number of predicate operations required by SVE WHILE
5483         instructions.
5484         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
5485         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
5486         (aarch64_count_ops): Likewise.
5487         (aarch64_add_stmt_cost): Record whether see an SVE operation
5488         that cannot currently be implementing using Advanced SIMD.
5489         Record issue information about the scalar, Advanced SIMD
5490         and (where relevant) SVE versions of a loop.
5491         (aarch64_vec_op_count::dump): New function.
5492         (aarch64_sve_op_count::dump): Likewise.
5493         (aarch64_estimate_min_cycles_per_iter): Likewise.
5494         (aarch64_adjust_body_cost): If issue information is available,
5495         try to compare the issue rates of the various loop implementations
5496         and increase or decrease the vector body cost accordingly.
5498 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5500         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
5501         Assume a zero cost for induction phis.
5503 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5505         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
5506         function.
5507         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
5508         vector comparisons.
5510 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5512         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
5513         New function.
5514         (aarch64_add_stmt_cost): Call it.
5516 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5518         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
5519         New tuning parameter.
5520         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
5521         (aarch64_estimated_sve_vq): New function.
5522         (aarch64_vector_costs::analyzed_vinfo): New member variable.
5523         (aarch64_vector_costs::is_loop): Likewise.
5524         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
5525         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
5526         (aarch64_record_potential_advsimd_unrolling): New function.
5527         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
5528         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
5529         aarch64_analyze_bb_vinfo on the first use of a costs structure.
5530         Detect whether we're vectorizing a loop for SVE that might be
5531         completely unrolled if it used Advanced SIMD instead.
5532         (aarch64_adjust_body_cost_for_latency): New function.
5533         (aarch64_finish_cost): Call it.
5535 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5537         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
5538         (aarch64_init_cost): New function.
5539         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
5540         the default unsigned[3].
5541         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
5542         (TARGET_VECTORIZE_INIT_COST): Override.
5543         (TARGET_VECTORIZE_FINISH_COST): Likewise.
5544         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
5546 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5548         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
5549         (neoversev1_sve_vector_cost): New cost structures.
5550         (neoversev1_vector_cost): Likewise.
5551         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
5553 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5555         * config/aarch64/aarch64-protos.h
5556         (sve_vec_cost::scatter_store_elt_cost): New member variable.
5557         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
5558         accordingly, taking the cost from the cost of a scalar_store.
5559         (a64fx_sve_vector_cost): Likewise.
5560         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
5562 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5564         * config/aarch64/aarch64-protos.h
5565         (simd_vec_cost::store_elt_extra_cost): New member variable.
5566         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
5567         accordingly, using the vec_to_scalar cost for the new field.
5568         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
5569         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
5570         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
5571         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
5572         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
5573         (thunderx3t110_advsimd_vector_cost): Likewise.
5574         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
5576 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5578         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
5579         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
5580         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
5581         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
5582         accordingly, using zero for the new costs.
5583         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
5584         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
5585         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
5586         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
5587         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
5588         (thunderx3t110_advsimd_vector_cost): Likewise.
5589         (aarch64_ld234_st234_vectors): New function.
5590         (aarch64_adjust_stmt_cost): Likewise.
5591         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
5592         the new vector costs.
5594 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5596         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
5597         derived class of simd_vec_cost.  Add information about CLAST[AB]
5598         and FADDA instructions.
5599         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
5600         accordingly, using the vec_to_scalar costs for the new fields.
5601         (a64fx_sve_vector_cost): Likewise.
5602         (aarch64_reduc_type): New function.
5603         (aarch64_sve_in_loop_reduction_latency): Likewise.
5604         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
5605         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
5606         that occur in the loop body.
5607         (aarch64_add_stmt_cost): Update call accordingly.
5609 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
5611         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
5612         New tuning flag.
5613         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
5614         above the fields rather than to the right.
5615         (simd_vec_cost::reduc_i8_cost): New member variable.
5616         (simd_vec_cost::reduc_i16_cost): Likewise.
5617         (simd_vec_cost::reduc_i32_cost): Likewise.
5618         (simd_vec_cost::reduc_i64_cost): Likewise.
5619         (simd_vec_cost::reduc_f16_cost): Likewise.
5620         (simd_vec_cost::reduc_f32_cost): Likewise.
5621         (simd_vec_cost::reduc_f64_cost): Likewise.
5622         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
5623         accordingly, using the vec_to_scalar_cost for the new fields.
5624         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
5625         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
5626         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
5627         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
5628         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
5629         (thunderx3t110_advsimd_vector_cost): Likewise.
5630         (aarch64_use_new_vector_costs_p): New function.
5631         (aarch64_simd_vec_costs): New function, split out from...
5632         (aarch64_builtin_vectorization_cost): ...here.
5633         (aarch64_is_reduction): New function.
5634         (aarch64_detect_vector_stmt_subtype): Likewise.
5635         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
5636         using the new vector costs.
5638 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
5640         PR ipa/99466
5641         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
5642         TLS declarations as public.
5644 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
5646         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
5647         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
5648         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
5649         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
5650         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
5651         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
5652         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
5653         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
5654         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
5656 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
5658         PR d/91595
5659         * config.gcc (*-*-cygwin*): Add winnt-d.o
5660         (*-*-mingw*): Likewise.
5661         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
5662         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
5663         * config/i386/t-cygming: Add winnt-d.o.
5664         * config/i386/winnt-d.c: New file.
5666 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
5668         * config/freebsd-d.c: Include memmodel.h.
5670 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
5672         PR d/99691
5673         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
5674         * config/t-openbsd: Add openbsd-d.o.
5675         * config/openbsd-d.c: New file.
5677 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
5679         PR tree-optimization/96974
5680         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
5681         with graceful exit.
5683 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
5685         Revert:
5686         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
5688         PR target/98209
5689         PR target/99744
5690         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
5691         always_inline in system headers.
5693 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
5695         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
5697 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
5699         PR c++/99565
5700         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
5701         * fold-const.c (operand_compare::operand_equal_p): Don't compare
5702         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
5704 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
5706         PR target/98209
5707         PR target/99744
5708         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
5709         always_inline in system headers.
5711 2021-03-25  Richard Biener  <rguenther@suse.de>
5713         PR tree-optimization/99746
5714         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
5715         the scalar stmt as patterned.  Instead set up required things
5716         manually.
5718 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
5720         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
5721         from 256 to 512.
5723 2021-03-24  Martin Liska  <mliska@suse.cz>
5725         PR target/99753
5726         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
5727         error.
5728         * config/i386/i386-options.c (ix86_option_override_internal):
5729         Add run-time assert.
5731 2021-03-24  Martin Jambor  <mjambor@suse.cz>
5733         PR ipa/99122
5734         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
5735         parameters with unknown type.
5736         (ipacp_value_safe_for_type): New function.
5737         (propagate_vals_across_arith_jfunc): Verify that the constant type
5738         can be used for a type of the formal parameter.
5739         (propagate_vals_across_ancestor): Likewise.
5740         (propagate_scalar_across_jump_function): Likewise.  Pass the type
5741         also to propagate_vals_across_ancestor.
5743 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
5745         PR target/99727
5746         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
5747         constraint.
5748         (movmisalign<mode>_mve_load): Likewise.
5750 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
5752         PR target/99724
5753         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
5754         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
5756 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
5758         * doc/sourcebuild.texi (sysconf): New effective target.
5760 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
5762         * config/i386/predicates.md (reg_or_const_vec_operand): New.
5763         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
5764         the now *-prefixed insn_and_split, turn the splitter const vec
5765         into an input for the insn, making it an ignored immediate for
5766         non-split cases, and loaded into the scratch register
5767         otherwise.
5769 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
5771         PR target/99581
5772         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
5773         Use define_relaxed_memory_constraint for them.
5775 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
5777         PR target/99733
5778         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
5779         colon to the diagnostic message.
5781 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
5783         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
5784         set_info's uses.
5785         (try_fwprop_subst_note): Use set_info instead of insn_info.
5786         (try_fwprop_subst_pattern): Likewise.
5787         (try_fwprop_subst_notes): Likewise.
5788         (try_fwprop_subst): Likewise.
5789         (forward_propagate_subreg): Likewise.
5790         (forward_propagate_and_simplify): Likewise.
5791         (forward_propagate_into): Likewise.
5792         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
5793         method.
5794         (set_info::single_nondebug_insn_use): Likewise.
5795         (set_info::single_phi_use): Likewise.
5796         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
5797         method.
5798         (set_info::single_nondebug_insn_use): Likewise.
5799         (set_info::single_phi_use): Likewise.
5801 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
5803         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
5805 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
5807         PR target/99540
5808         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
5809         expand_mult to perform an unsigned rather than a signed
5810         multiplication.
5812 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
5814         PR target/99704
5815         * config/i386/cpuid.h (__cpuid): Add __volatile__.
5816         (__cpuid_count): Likewise.
5818 2021-03-23  Richard Biener  <rguenther@suse.de>
5820         PR tree-optimization/99721
5821         * tree-vect-slp.c (vect_slp_analyze_node_operations):
5822         Make sure we can schedule the node.
5824 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
5826         * config/riscv/riscv.c (riscv_subword): Take endianness into
5827         account when calculating the byte offset.
5829 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
5831         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
5832         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
5833         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
5834         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
5835         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
5836         new predicate "subreg_lowpart_operator"
5838 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
5840         * config/riscv/riscv.c (riscv_swap_instruction): New function
5841         to byteswap an SImode rtx containing an instruction.
5842         (riscv_trampoline_init): Byteswap the generated instructions
5843         when needed.
5845 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
5847         * common/config/riscv/riscv-common.c
5848         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
5849         * config.gcc (riscv32be-*, riscv64be-*): Set
5850         TARGET_BIG_ENDIAN_DEFAULT to 1.
5851         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
5852         depending on default endianness.
5853         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
5854         * config/riscv/linux.h (LINK_SPEC): Likewise.
5855         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
5856         default endianness.
5857         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
5859 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
5861         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
5862         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
5863         * config/riscv/linux.h (LINK_SPEC): Likewise.
5864         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
5865         -mlittle-endian.
5866         (BYTES_BIG_ENDIAN): Handle big endian.
5867         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5868         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
5869         options.
5870         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
5872 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
5874         * regcprop.c (find_oldest_value_reg): Ask target whether
5875           different mode is fine for replacement register.
5877 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
5879         PR tree-optimization/99296
5880         * value-range.cc (irange::irange_set_1bit_anti_range): New.
5881         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
5882         * value-range.h (irange::irange_set_1bit_anti_range): New.
5884 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
5886         PR target/99581
5887         * config/aarch64/constraints.md (UtQ): Use
5888         define_relaxed_memory_constraint for it.
5889         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
5890         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
5891         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
5892         (have_relaxed_memory_constraints): New static var.
5893         (relaxed_memory_start, relaxed_memory_end): Ditto.
5894         (add_constraint): Add arg is_relaxed_memory.  Check name for
5895         relaxed memory.  Set up is_relaxed_memory in constraint_data and
5896         have_relaxed_memory_constraints.  Adjust calls.
5897         (choose_enum_order): Process relaxed memory.
5898         (write_tm_preds_h): Ditto.
5899         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
5900         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
5901         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
5902         * ira-lives.c (single_reg_class): Use
5903         insn_extra_relaxed_memory_constraint.
5904         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
5905         * lra-constraints.c (valid_address_p): Use
5906         insn_extra_relaxed_memory_constraint instead of other memory
5907         constraints.
5908         (process_alt_operands): Process CT_RELAXED_MEMORY.
5909         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
5910         * recog.c (asm_operand_ok, preprocess_constraints): Process
5911         CT_RELAXED_MEMORY.
5912         * reload.c (find_reloads): Ditto.
5913         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
5914         * stmt.c (parse_input_constraint): Use
5915         insn_extra_relaxed_memory_constraint.
5917 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
5919         PR target/97926
5920         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
5921         there are no NaNs.
5923 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
5925         PR target/97252
5926         * config/arm/arm-protos.h (neon_make_constant): Add generate
5927         argument to guard emitting insns, default to true.
5928         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
5929         CONST_VECTORs which neon_make_constant can't handle.
5930         (neon_vdup_constant): Add generate argument, avoid emitting
5931         insns if it's not set.
5932         (neon_make_constant): Plumb new generate argument through.
5933         * config/arm/constraints.md (Ui): New. Use it...
5934         * config/arm/mve.md (*mve_mov<mode>): ... here.
5935         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
5936         synthesize constants.
5938 2021-03-22  Richard Biener  <rguenther@suse.de>
5940         * debug.h: Add deprecation warning.
5942 2021-03-22  Richard Biener  <rguenther@suse.de>
5944         PR tree-optimization/99694
5945         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
5946         PHI result.
5948 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
5950         PR target/99702
5951         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
5952         after type checking.
5954 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
5956         PR debug/99562
5957         PR debug/66728
5958         * dwarf2out.c (get_full_len): Use get_precision rather than
5959         min_precision.
5960         (add_const_value_attribute): Make sure add_AT_wide argument has
5961         precision prec rather than some very wide one.
5963 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
5965         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
5966         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
5967         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
5968         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
5969         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
5970         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
5971         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
5972         *fix_trunc<mode>si2_internal): Fix empty split condition.
5973         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
5974         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
5975         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
5976         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
5978 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
5980         PR target/98914
5981         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
5982         Convert idx to DImode.
5983         (rs6000_expand_vector_set_var_p8): Likewise.
5985 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
5987         PR debug/99388
5988         * dwarf2out.c (insert_float): Change return type from void to
5989         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
5990         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
5991         Adjust callers.
5993 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
5995         PR target/99679
5996         * config/i386/i386.c (construct_container): Check cfun != NULL
5997         before accessing silent_p.
5999 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
6001         * asan.c: Fix typos in comments.
6003 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
6005         PR rtl-optimization/99680
6006         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
6007         (process_address_1): Check empty constraint before using
6008         CONSTRAINT_LEN.
6010 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
6012         * config/rs6000/rs6000.c (power10_cost): New.
6013         (rs6000_option_override_internal): Set Power10 costs.
6014         (rs6000_issue_rate): Set Power10 issue rate.
6015         * config/rs6000/power10.md: Rewrite for Power10.
6017 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
6019         PR target/99663
6020         * lra-constraints.c (process_address_1): Don't use unknown
6021         constraint for address constraint.
6023 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
6025         PR target/99661
6026         * config.gcc (powerpc-*-darwin8): Delete the reference to
6027         the now removed darwin8.h.
6029 2021-03-19  Olivier Hainque  <hainque@adacore.com>
6031         PR target/99660
6032         * config/vxworksae.h (VX_CPU_PREFIX): Define.
6034 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
6036         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
6038 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
6040         PR tree-optimization/99656
6041         * tree-vect-slp-patterns.c (linear_loads_p,
6042         complex_add_pattern::matches, is_eq_or_top,
6043         vect_validate_multiplication, complex_mul_pattern::matches,
6044         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
6045         * tree-vectorizer.h: (complex_load_perm_t): Removed.
6046         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
6047         complex_load_perm_t.
6049 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
6051         PR target/99652
6052         * config/i386/i386-options.c (ix86_init_machine_status): Set
6053         silent_p to true.
6054         * config/i386/i386.c (init_cumulative_args): Set silent_p to
6055         false.
6056         (construct_container): Return early for return and argument
6057         errors if silent_p is true.
6058         * config/i386/i386.h (machine_function): Add silent_p.
6060 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
6062         PR target/99593
6063         * config/arm/constraints.md (Ds): New constraint.
6064         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
6065         constraint instead of w,Dm.
6067 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
6069         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
6070         in error message.
6072 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
6074         PR middle-end/99641
6075         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
6076         array type, do the computation of the current position in sizetype.
6078 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
6080         PR target/99422
6081         * lra-constraints.c (process_address_1): Use lookup_constraint
6082         only for a single constraint.
6084 2021-03-18  Martin Sebor  <msebor@redhat.com>
6086         PR middle-end/99502
6087         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
6088         (inbounds_memaccess_p): ...to this.  Check the ending offset of
6089         the accessed member.
6091 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
6093         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
6094           %> quote markers to error messages.
6095         (gcn_goacc_validate_dims): Likewise.
6096         (gcn_conditional_register_usage): Remove exclaimation mark from error
6097         message.
6098         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
6100 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
6102         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
6103         integer divides1.
6105 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
6106             Kito Cheng  <kito.cheng@sifive.com>
6108         * config/riscv/riscv.c (riscv_block_move_straight): Change type
6109         to unsigned HOST_WIDE_INT for parameter and local variable with
6110         HOST_WIDE_INT type.
6111         (riscv_adjust_block_mem): Ditto.
6112         (riscv_block_move_loop): Ditto.
6113         (riscv_expand_block_move): Ditto.
6115 2021-03-18  Nick Clifton  <nickc@redhat.com>
6117         * config/v850/v850.c (construct_restore_jr): Increase static
6118          buffer size.
6119         (construct_save_jarl): Likewise.
6120         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
6122 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6124         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
6125         (aarch64_override_options_internal): Use it.
6126         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
6127         tune_flags.
6129 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
6131         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
6132         error message format issues.
6133         (nios2_option_override): Likewise.
6134         (nios2_expand_fpu_builtin): Likewise.
6135         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
6136         truncation warning.
6137         (nios2_expand_custom_builtin): More error message format fixes.
6138         (nios2_expand_rdwrctl_builtin): Likewise.
6139         (nios2_expand_rdprs_builtin): Likewise.
6140         (nios2_expand_eni_builtin): Likewise.
6141         (nios2_expand_builtin): Likewise.
6142         (nios2_register_custom_code): Likewise.
6143         (nios2_valid_target_attribute_rec): Likewise.
6144         (nios2_add_insn_asm): Fix uninitialized variable warning.
6146 2021-03-17  Jan Hubicka  <jh@suse.cz>
6148         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
6149         of gather to match reality.
6150         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
6152 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6154         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
6155         to compare against CC_REG rather than NE.
6157 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
6159         PR target/99504
6160         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
6161         inline assembly statements.
6162         (ix86_print_operand): Update 'P' handling for -fno-plt.
6164 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
6166         PR target/99542
6167         * config/aarch64/aarch64.c
6168         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
6170 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
6172         PR target/98092
6173         * config/rs6000/predicates.md (branch_comparison_operator): Allow
6174         ordered and unordered for CCFPmode, if flag_finite_math_only.
6176 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
6178         PR target/99600
6179         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
6180         rather than ASHIFT.
6181         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
6183 2021-03-16  Martin Liska  <mliska@suse.cz>
6185         PR target/99592
6186         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
6187         cl_optimization_compare function.
6189 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
6191         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
6192         as "v".
6194 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
6196         PR target/99563
6197         * config/i386/i386.h (struct machine_function): Add
6198         has_explicit_vzeroupper bitfield.
6199         * config/i386/i386-expand.c (ix86_expand_builtin): Set
6200         cfun->machine->has_explicit_vzeroupper when expanding
6201         IX86_BUILTIN_VZEROUPPER.
6202         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
6203         Do the mode switching only when TARGET_VZEROUPPER, expensive
6204         optimizations turned on and not optimizing for size.
6205         (pass_insert_vzeroupper::gate): Enable even when
6206         cfun->machine->has_explicit_vzeroupper is set.
6208 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
6210         PR target/99542
6211         * config/aarch64/aarch64.c
6212         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
6213         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
6214         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
6216 2021-03-15  Richard Biener  <rguenther@suse.de>
6218         PR tree-optimization/98834
6219         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
6220         subsetting by truncating the access size.
6222 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
6224         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
6225         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
6226         of znver2_cost.
6228 2021-03-15  Martin Liska  <mliska@suse.cz>
6230         * spellcheck.c: Add missing comma in initialization.
6232 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
6234         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
6235         alternative 2 and alternative 1 with alternative 3 using
6236         YW register constraint.
6237         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
6238         using YW register constraint.
6239         (*vec_extractv16qi_zext): Ditto.
6240         (*vec_extractv4si): Merge alternatives 4 and 5
6241         using Yw register constraint.
6242         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
6244 2021-03-13  Martin Sebor  <msebor@redhat.com>
6246         PR tree-optimization/99489
6247         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
6248         is not a call statement.
6250 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
6252         PR tree-optimization/99544
6253         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
6254         if for vector types multiplication can't be done in type's mode.
6256 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
6258         PR target/99422
6259         * config/sparc/constraints.md (w): Rename to...
6260         (W): ... this and ditch previous implementation.
6261         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
6262         (*movdf_insn_sp64): Likewise.
6263         (*mov<VM64:mode>_insn_sp64): Likewise.
6264         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
6265         w with W.
6266         (atomic_compare_and_swap_leon3_1): Likewise.
6267         (*atomic_compare_and_swapdi_v8plus): Likewise.
6268         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
6269         architecture and add missing address validity check during LRA.
6271 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
6273         PR fortran/98858
6274         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
6275         occuring for assumed-size arrays in use_device_{ptr,addr}.
6277 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
6279         PR target/99321
6280         * config/i386/constraints.md (YW): New internal constraint.
6281         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
6282         (*<sse2_avx2>_<insn><mode>3<mask_name>,
6283         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
6284         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
6285         constraints.
6286         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
6287         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
6288         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
6289         into one, use Yw instead of former x,v.
6290         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
6291         the last alternative.
6292         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
6293         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
6294         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
6295         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
6296         into one, use <v_Yw> instead of former x,v.
6297         (avx2_interleave_highv32qi<mask_name>,
6298         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
6299         constraints.  Add && <mask_avx512bw_condition> to condition.
6300         (avx2_interleave_lowv32qi<mask_name>,
6301         vec_interleave_lowv16qi<mask_name>,
6302         avx2_interleave_highv16hi<mask_name>,
6303         vec_interleave_highv8hi<mask_name>,
6304         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
6305         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
6306         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
6307         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
6308         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
6309         Yw instead of v in constraints.
6310         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
6311         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
6312         instead of Yv in constraints.
6313         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
6314         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
6315         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
6316         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
6317         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
6318         constraints.
6319         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
6320         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
6321         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
6322         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
6323         two, one with just x, another isa avx512vl with v.
6325 2021-03-12  Martin Liska  <mliska@suse.cz>
6327         * doc/invoke.texi: Add missing param documentation.
6329 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
6331         PR analyzer/96374
6332         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
6333         analyzer/trimmed-graph.o.
6334         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
6335         feasibility checking to reflect new implementation.
6336         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
6337         option.
6338         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
6340 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
6342         * digraph.cc (selftest::test_shortest_paths): Update
6343         shortest_paths init for new param.  Add test of
6344         SPS_TO_GIVEN_TARGET.
6345         * shortest-paths.h (enum shortest_path_sense): New.
6346         (shortest_paths::shortest_paths): Add "sense" param.
6347         Update for renamings.  Generalize to use "sense" param.
6348         (shortest_paths::get_shortest_path): Rename param.
6349         (shortest_paths::m_sense): New field.
6350         (shortest_paths::m_prev): Rename...
6351         (shortest_paths::m_best_edge): ...to this.
6352         (shortest_paths::get_shortest_path): Update for renamings.
6353         Conditionalize flipping of path on sense of traversal.
6355 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
6357         * digraph.cc (selftest::test_shortest_paths): Add test coverage
6358         for paths from B and C.
6359         * shortest-paths.h (shortest_paths::shortest_paths): Handle
6360         unreachable nodes, rather than asserting.
6362 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
6364         PR target/99094
6365         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
6366         xcoff_tbss_section_name.
6367         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
6368         * xcoffout.c (xcoff_tbss_section_name): Delete.
6369         * xcoffout.h (xcoff_tbss_section_name): Delete.
6371 2021-03-11  Richard Biener  <rguenther@suse.de>
6373         PR tree-optimization/99523
6374         * tree-cfg.c (dump_function_to_file): Dump SSA names
6375         w/o identifier to the decls section as well, not only those
6376         without a VAR_DECL.
6378 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
6380         PR ipa/99517
6381         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
6382         function calls with lhs fail if the lhs don't have compatible types.
6384 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
6386         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
6387         Change FRAME_POINTER_REGNUM to correspond to a new faked
6388         register faked_fp, part of GENNONACR_REGS like faked_ap.
6389         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
6390         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
6391         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
6392         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
6393         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
6394         register.
6395         (CRIS_REAL_FP_REGNUM): New constant.
6396         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
6397         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
6398         (cris_initial_elimination_offset): Handle elimination changes
6399         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
6400         and add one from FRAME_POINTER_REGNUM to
6401         HARD_FRAME_POINTER_REGNUM.
6402         (cris_expand_prologue, cris_expand_epilogue): Emit code for
6403         hard_frame_pointer_rtx instead of frame_pointer_rtx.
6405 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
6407         PR target/99492
6408         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
6409         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
6411 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
6413         PR target/99422
6414         * lra-constraints.c (process_address_1): Don't check unknown
6415         constraint, use X for empty constraint.
6417 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
6419         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
6420         Fix typo in comment describing "is_ha" argument.
6422 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
6424         * doc/sourcebuild.texi: Document LRA target selector.
6426 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
6428         * doc/ux.texi: Add subsection contrasting interactive versus
6429         batch usage of GCC.
6431 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
6433         PR target/99102
6434         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
6435         check condition.
6436         (vectorizable_load): Fix gather load mask check condition.
6438 2021-03-10  Richard Biener  <rguenther@suse.de>
6440         PR tree-optimization/99510
6441         * tree.c (check_aligned_type): Check that the candidate
6442         has TYPE_USER_ALIGN set instead of matching with the
6443         original type.
6445 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6447         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
6448         float and vector integer modes only if the mode is not larger.
6450 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
6452         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
6454 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
6456         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
6457         constraints > 9.
6458         * ira-lives.c (single_reg_class): Ditto.
6460 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6462         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
6463         the architecture-specific rtems.h.
6464         (aarch64-*-rtems*): Likewise.
6465         (arm*-*-rtems*): Likewise.
6466         (epiphany-*-rtems*): Likewise.
6467         (riscv*-*-rtems*): Likewise.
6469 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
6471         PR tree-optimization/99305
6472         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
6473         before integer_all_onesp instead of vice versa.
6475 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
6477         * common/config/arm/arm-common.c (arm_config_default): Change type
6478         of 'i' to unsigned.
6480 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
6482         PR target/99454
6483         * lra-constraints.c (process_address_1): Process constraint 'g'
6484         separately and digital constraints containing more one digit.
6486 2021-03-09  Nick Clifton  <nickc@redhat.com>
6488         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
6489         (DWARF"_DEBUGGING_INFO): Define.
6491 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
6493         PR c++/90448
6494         * calls.c (initialize_argument_information): When the argument
6495         is passed by reference, do not make a copy in a thunk only if
6496         the argument is already in memory.  Remove redundant test for
6497         the case of callee copy.
6499 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
6501         PR target/99454
6502         * lra-constraints.c (process_address_1): Process 0..9 constraints
6503         in process_address_1.
6505 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
6507         * config/s390/s390.c (struct s390_processor processor_table):
6508         Binutils name string must not be empty.
6510 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
6512         * config/arc/arc.c (arc_attr_type): Remove function.
6514 2021-03-09  Martin Liska  <mliska@suse.cz>
6516         PR target/99464
6517         * config/i386/i386-options.c (ix86_option_override_internal):
6518         Set isa_flags for OPTS argument and not for the global
6519         global_options.
6521 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
6523         * config/rs6000/predicates.md (ds_form_mem_operand): Check
6524         in correct code.
6526 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
6528         PR target/99070
6529         * config/rs6000/predicates.md (ds_form_mem_operand) New
6530         predicate.
6531         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
6532         ds_form_mem_operand in ld/lwa patterns.
6533         * config/rs6000/fusion.md: Regenerate file.
6535 2021-03-08  Martin Sebor  <msebor@redhat.com>
6537         PR middle-end/98266
6538         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
6539         (array_bounds_checker::check_array_bounds): Call it.
6541 2021-03-08  Martin Sebor  <msebor@redhat.com>
6543         PR middle-end/97631
6544         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
6545         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
6546         destination size from allocation calls.  Issue a more appropriate
6547         kind of warning.
6548         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
6549         (handle_builtin_memset): Same.
6551 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
6553         PR target/98959
6554         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
6555         to ensure we do not have an Altivec style address.
6556         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
6557         an Altivec style address.
6558         (*vsx_le_perm_store_<mode>): Likewise.
6559         (splitters after *vsx_le_perm_store_<mode>): Likewise.
6560         (vsx_load_<mode>): Disable special expander if passed an Altivec
6561         style address.
6562         (vsx_store_<mode>): Likewise.
6564 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6566         PR target/99437
6567         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
6568         (aarch64_simd_shift_imm_vec_hi): Likewise.
6569         (aarch64_simd_shift_imm_vec_si): Likewise.
6570         (aarch64_simd_shift_imm_vec_di): Likewise.
6571         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
6572         predicate from above.
6573         (aarch64_shrn<mode>_insn_be): Likewise.
6574         (aarch64_rshrn<mode>_insn_le): Likewise.
6575         (aarch64_rshrn<mode>_insn_be): Likewise.
6576         (aarch64_shrn2<mode>_insn_le): Likewise.
6577         (aarch64_shrn2<mode>_insn_be): Likewise.
6578         (aarch64_rshrn2<mode>_insn_le): Likewise.
6579         (aarch64_rshrn2<mode>_insn_be): Likewise.
6581 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
6583         PR target/99422
6584         * lra-constraints.c (skip_contraint_modifiers): New function.
6585         (process_address_1): Use it before lookup_constraint call.
6587 2021-03-08  Martin Liska  <mliska@suse.cz>
6589         PR target/99463
6590         * config/i386/i386-options.c (ix86_option_override_internal):
6591         Enable UINTR and HRESET for -march that supports it.
6593 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
6595         * config/s390/s390.c (f_constraint_p): New function.
6596         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
6597         (TARGET_MD_ASM_ADJUST): Likewise.
6599 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
6601         PR fortran/97927
6602         * tree-nested.c (convert_local_reference_stmt): Avoid calling
6603         lookup_field_for_decl for Fortran module (= namespace context).
6605 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
6607         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
6608         comparison with arithmetic right shift.
6609         (s390_expand_vcond): No need for a force_reg anymore.
6610         s390_vec_compare will do it.
6611         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
6612         immediate operands.
6614 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
6616         PR target/99321
6617         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
6618         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
6619         and comment.
6620         * config/i386/sse.md (v_Yw): New define_mode_attr.
6621         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
6622         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
6623         in constraints.
6624         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
6625         xYw in constraints.
6627 2021-03-06  Julian Brown  <julian@codesourcery.com>
6629         * tree-pretty-print.c (dump_generic_node): Emit non-generic
6630         address space info for aggregates.
6632 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
6634         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
6636 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
6638         PR middle-end/99322
6639         * tree-cfg.c (bb_to_omp_idx): New variable.
6640         (execute_build_cfg): Release the bb_to_omp_idx vector after
6641         cleanup_tree_cfg returns.
6642         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
6643         for bb_to_omp_idx being a vec<int> instead of pointer to array
6644         of ints.
6645         (make_edges): Remove bb_to_omp_idx local variable, don't pass
6646         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
6647         vec<int> instead of pointer to array of ints and don't free/release
6648         it at the end.
6649         (remove_bb): When removing a bb and placing forced label somewhere
6650         else, ensure it is put into the same OpenMP region during cfg
6651         pass if possible or to entry successor as fallback.  Unregister
6652         bb from bb_to_omp_idx.
6654 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
6656         PR target/99378
6657         * lra-constraints.c (process_address_1): Skip decomposing address
6658         for asm insn operand with unknown constraint.
6660 2021-03-05  Martin Jambor  <mjambor@suse.cz>
6662         PR ipa/98078
6663         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
6664         corresponding speculative edges if we are about to resolve
6665         sepculation.  Make edge direct (and so resolve speculations) before
6666         removing it from call_site_hash.
6667         (cgraph_edge::make_direct): Relax the initial assert to allow calling
6668         the function on speculative direct edges.
6670 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6672         PR rtl-optimization/99376
6673         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
6674         of low-order zero bits is too large, set the result to 0 directly.
6676 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
6678         PR middle-end/93235
6679         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
6680         SUBREG and a SUBREG to op_mode can't be created.
6682 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
6684         PR target/99381
6685         * config/aarch64/aarch64-sve-builtins.cc
6686         (function_resolver::require_vector_type): Handle error_mark_node.
6688 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
6690         * cfgexpand.c (expand_asm_loc): Pass new parameter.
6691         (expand_asm_stmt): Likewise.
6692         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
6693         parameter.
6694         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
6695         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
6696         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
6697         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
6698         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
6699         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
6700         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
6701         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
6702         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
6703         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
6704         * doc/tm.texi (md_asm_adjust): Likewise.
6705         * target.def (md_asm_adjust): Likewise.
6707 2021-03-04  Richard Biener  <rguenther@suse.de>
6709         PR middle-end/97855
6710         * tree-pretty-print.c: Poison pp_printf.
6711         (dump_decl_name): Avoid use of pp_printf.
6712         (dump_block_node): Likewise.
6713         (dump_generic_node): Likewise.
6715 2021-03-04  Martin Sebor  <msebor@redhat.com>
6717         PR middle-end/96963
6718         PR middle-end/94655
6719         * builtins.c (handle_array_ref): New helper.
6720         (handle_mem_ref): New helper.
6721         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
6722         into new helper functions.  Correct a workaround for vectorized
6723         assignments.
6725 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
6727         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
6728         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
6729         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
6730         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
6731         attribute for Power10.
6732         * config/rs6000/mma.md (*movoo): Likewise.
6733         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
6734         (define_mode_attr bits): Add DD/TD modes.
6735         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
6736         store_conditionalpti): Update size attribute for Power10.
6738 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6740         PR bootstrap/92002
6741         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
6742         -Wuninitialized, -Wmaybe-uninitialized.
6743         (wide-int.o-warn): Likewise.
6745 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
6747         * common/config/arm/arm-common.c: Include configargs.h.
6748         (arm_config_default): New function.
6749         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
6750         processors that do not support Thumb.  Take into account the
6751         --with-mode configuration setting for selecting the default.
6752         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
6753         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
6755 2021-03-03  Martin Liska  <mliska@suse.cz>
6757         PR gcov-profile/97461
6758         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
6760 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
6762         PR target/99234
6763         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
6764         point back the hard frame pointer to its default location when the
6765         frame is larger than SEH_MAX_FRAME_SIZE.
6767 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
6769         PR target/99321
6770         * config/i386/predicates.md (logic_operator): New define_predicate.
6771         * config/i386/i386.md (mov + mem using comm arith peephole2):
6772         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
6773         and the inner mode is [QH]Imode.
6775 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
6777         PR debug/99090
6778         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
6779         (new_loc_list): Clear end_entry.
6780         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
6781         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
6782         typo.
6783         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
6784         initialize also end_entry.
6786 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
6788         PR target/99085
6789         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
6790         partitions, if in non-layout mode after reorder_blocks also move
6791         affected blocks to ensure a single partition transition.
6793 2021-03-03  Jason Merrill  <jason@redhat.com>
6795         PR c++/96078
6796         * cgraphunit.c (process_function_and_variable_attributes): Don't
6797         warn about flatten on an alias if the target also has it.
6798         * cgraph.h (symtab_node::get_alias_target_tree): New.
6800 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
6802         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
6803         period to symbol name.
6804         (tls_get_addr_internal<mode>): Same.
6806 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
6808         PR c/99323
6809         * diagnostic-show-locus.c
6810         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
6811         column 0.
6813 2021-03-02  Martin Sebor  <msebor@redhat.com>
6815         PR middle-end/99276
6816         * builtins.c (warn_for_access): Remove stray warning text.
6818 2021-03-02  Martin Sebor  <msebor@redhat.com>
6820         PR middle-end/99295
6821         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
6822         property.
6824 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
6826         PR debug/99319
6827         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
6828         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
6829         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
6830         DW_MACRO_define_strx and DW_MACRO_undef_strx.
6831         (save_macinfo_strings): Use DW_MACRO_*_str* even with
6832         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
6833         DW_MACRO_undef_strx.
6835 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6837         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
6838         builtin signature.
6839         (BT_FN_V8HI_V8HI_UINT): Likewise.
6840         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
6841         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
6842         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
6843         New builtin definitions.
6844         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
6845         vector extension version.
6846         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
6847         available with current -march level.
6848         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
6849         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
6850         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
6851         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
6852         (vec_extend_to_fp32_lo): Likewise.
6853         (vec_round_from_fp32): Likewise.
6854         (vec_convert_to_fp16): Likewise.
6855         (vec_convert_from_fp16): Likewise.
6856         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
6857         (vclfnls_v8hi): Likewise.
6858         (vcrnfs_v8hi): Likewise.
6859         (vcfn_v8hi): Likewise.
6860         (vcnf_v8hi): Likewise.
6862 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
6864         * common/config/s390/s390-common.c (processor_flags_table): New entry.
6865         * config.gcc: Enable arch14 for --with-arch and --with-tune.
6866         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
6867         arch14 for unknown CPU models.
6868         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
6869         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
6870         (s390_get_sched_attrmask): Likewise.
6871         (s390_get_unit_mask): Likewise.
6872         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
6873         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
6874         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
6875         (TARGET_NNPA_P): New macro definitions.
6876         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
6877         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
6879 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
6881         PR middle-end/95757
6882         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
6883         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
6884         != 1 comparisons if name is lhs of a comparison.
6886 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
6888         PR target/44107
6889         PR target/48097
6890         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
6891         * config/darwin.c (darwin_should_restore_cfa_state): New.
6892         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
6893         * doc/tm.texi: Regenerated.
6894         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
6895         * dwarf2cfi.c (connect_traces): If the target requests, restore
6896         the CFA expression after a DW_CFA_restore.
6897         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
6899 2021-03-01  Martin Liska  <mliska@suse.cz>
6901         PR target/99313
6902         * optc-save-gen.awk: Add 4 more exceptions.
6904 2021-03-01  Nathan Sidwell  <nathan@acm.org>
6906         PR c++/99294
6907         * tree.h (TYPE_ALIGN_RAW): New accessor.
6908         (TYPE_ALIGN): Use it.
6910 2021-03-01  Jan Hubicka  <jh@suse.cz>
6912         PR ipa/98338
6913         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
6915 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6917         PR target/99234
6918         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
6919         point the hard frame pointer to the SSE register save area instead
6920         of the general register save area.  Perform only minimal adjustment
6921         for small frames if it is initially not correctly aligned.
6922         (ix86_expand_prologue): Remove early saves for a SEH target.
6923         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
6925 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
6927         PR c/99304
6928         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
6929         typo - referneced -> referenced.
6930         * tree.c (component_ref_size): Fix comment typo -
6931         refernce -> reference.
6932         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
6933         traling -> trailing.
6934         (aliasing_component_refs_p): Fix comment typos -
6935         refernce -> reference and refernece -> reference and
6936         traling -> trailing.
6937         (nonoverlapping_refs_since_match_p): Fix comment typo -
6938         referneces -> references.
6939         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
6940         referneces -> references.
6942 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
6944         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
6945         diagnostic message to avoid use of a contraction and format
6946         warning.
6948 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
6950         PR other/99288
6951         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
6952         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
6953         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
6954         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
6955         typos.
6957 2021-02-26  Richard Biener  <rguenther@suse.de>
6959         PR middle-end/99281
6960         * expr.c (store_field): For calls with return-slot optimization
6961         and addressable return type expand the store directly.
6963 2021-02-26  Richard Biener  <rguenther@suse.de>
6965         PR c/99275
6966         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
6968 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
6970         PR target/99279
6971         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
6972         with an "if" test.
6974 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
6976         * config.gcc: Add rs6000-pcrel-opt.o.
6977         * config/rs6000/rs6000-pcrel-opt.c: New file.
6978         * config/rs6000/pcrel-opt.md: New file.
6979         * config/rs6000/predicates.md: Add d_form_memory predicate.
6980         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
6981         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
6982         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
6983         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
6984         and make_pass_pcrel_opt().
6985         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
6986         (rs6000_option_override_internal): Add pcrel-opt.
6987         (rs6000_delegitimize_address): Support pcrel-opt.
6988         (rs6000_opt_masks): Add pcrel-opt.
6989         (pcrel_opt_valid_mem_p): New function.
6990         (reg_to_non_prefixed): Make global.
6991         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
6992         (output_pcrel_opt_reloc): New function.
6993         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
6994         (pcrel_extern_addr): Set loads_extern_addr.
6995         Add include for pcrel-opt.md.
6996         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
6997         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
6998         pcrel-opt.md.
7000 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
7002         PR target/98996
7003         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
7004         If TARGET_64BIT and dest is SUBREG, we check the width, if it
7005         equal to SImode, we use SImode operation, just like what we are
7006         doing for REG one.
7008 2021-02-26  Marek Polacek  <polacek@redhat.com>
7010         * builtins.c (warn_for_access): Fix typos.
7012 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
7014         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
7015         mark in front of the immediate quantity.
7016         (<optab>_rolsi3_uxtw): Likewise.
7018 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
7020         PR target/99271
7021         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
7022         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
7023         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
7024         address and disable when the FPCXT is not available.
7025         (nonsecure_call_value_reg_thumb2): Likewise.
7027 2021-02-25  Nathan Sidwell  <nathan@acm.org>
7029         PR c++/99166
7030         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
7032 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
7034         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
7036 2021-02-25  Richard Biener  <rguenther@suse.de>
7038         PR tree-optimization/99253
7039         * tree-vect-loop.c (check_reduction_path): First compute
7040         code, then verify out-of-loop uses.
7042 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
7044         PR target/95798
7045         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
7047 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
7049         PR tree-optimization/80635
7050         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
7051         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
7052         has mode precision.
7054 2021-02-25  Richard Biener  <rguenther@suse.de>
7056         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
7057         load_map population.
7058         (vect_match_slp_patterns_2): Revert part of last change.
7059         (vect_analyze_slp): Do not interleave optimize_load_redistribution
7060         with pattern detection but do it afterwards.  Dump the
7061         whole SLP graph after pattern recognition and load
7062         redistribution optimization finished.
7064 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
7066         PR fortran/99226
7067         * omp-low.c (struct omp_context): Add teams_nested_p and
7068         nonteams_nested_p members.
7069         (scan_omp_target): Diagnose teams nested inside of target with other
7070         directives strictly nested inside of the same target.
7071         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
7072         ctx->nonteams_nested_p as needed.
7074 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
7076         PR inline-asm/99123
7077         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
7079 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
7081         * config/cris/cris.c (cris_expand_prologue): Set
7082         current_function_static_stack_size, if flag_stack_usage_info.
7084 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
7086         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
7087         (rs6000_final_prescan_insn): Adjust.
7088         (rs6000_asm_output_opcode): Likewise.
7090 2021-02-24  Martin Sebor  <msebor@redhat.com>
7092         PR middle-end/97172
7093         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
7094         from function arguments.
7096 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
7098         PR tree-optimization/99220
7099         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
7100         node from cache when it's about to be deleted.
7102 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
7104         PR tree-optimization/99225
7105         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
7106         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
7107         build_int_cst (..., 1).  Formatting fixes.
7109 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
7111         PR tree-optimization/99149
7112         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
7113         buffer.
7114         (vect_slp_reset_pattern): Remove.
7115         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
7116         (complex_mul_pattern::build, complex_fma_pattern::build,
7117         complex_fms_pattern::build): Fix ref counts.
7118         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
7119         when node is being deleted.
7120         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
7121         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
7122         stores.
7123         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
7125 2021-02-24  Matthias Klose  <doko@ubuntu.com>
7127         Revert:
7128         2020-12-07  Matthias Klose  <doko@ubuntu.com>
7130         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
7131         and ENABLE_RTL_FLAG_CHECKING.
7133 2021-02-24  Richard Biener  <rguenther@suse.de>
7135         PR c/99224
7136         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
7138 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
7140         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
7141         (vsx_assemble_pair): ...to this.
7142         (*mma_assemble_pair): Rename from this...
7143         (*vsx_assemble_pair): ...to this.
7144         (mma_disassemble_pair): Rename from this...
7145         (vsx_disassemble_pair): ...to this.
7146         (*mma_disassemble_pair): Rename from this...
7147         (*vsx_disassemble_pair): ...to this.
7148         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
7149         BU_COMPAT): New macros.
7150         (mma_assemble_pair): Rename from this...
7151         (vsx_assemble_pair): ...to this.
7152         (mma_disassemble_pair): Rename from this...
7153         (vsx_disassemble_pair): ...to this.
7154         (mma_assemble_pair): New compatibility built-in.
7155         (mma_disassemble_pair): Likewise.
7156         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
7157         (RS6000_BUILTIN_COMPAT): Define.
7158         (bdesc_compat): New.
7159         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
7160         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
7161         and VSX_BUILTIN_ASSEMBLE_PAIR.
7162         (rs6000_init_builtins): Register compatibility built-ins.
7163         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
7164         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
7165         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
7166         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
7167         (__builtin_vsx_assemble_pair): ...to this.
7168         (__builtin_mma_disassemble_pair): Rename from this...
7169         (__builtin_vsx_disassemble_pair): ...to this.
7171 2021-02-23  Martin Liska  <mliska@suse.cz>
7173         PR sanitizer/99168
7174         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
7175         with different alignment. That leads to an invalid red zone
7176         size allocated in runtime.
7178 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
7180         PR tree-optimization/99204
7181         * fold-const.c (fold_read_from_constant_string): Check that
7182         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
7184 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
7185             Kewen Lin  <linkw@gcc.gnu.org>
7187         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
7188         (rotl<mode>3_insert_3): ...this.
7189         (plus_ior_xor): New code_iterator.
7190         (define_split for GPR rl*imi): New splitter.
7191         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
7192         for integer merging.
7194 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7196         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
7197         Define.
7198         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
7199         into a register when the above is enabled.
7200         * config/aarch64/aarch64.c (neoversev1_tunings):
7201         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
7202         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
7204 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
7206         * config/cris/cris.c (cris_print_operand) <'T'>: Change
7207         valid operand from is now an addi mult-value to shift-value.
7208         * config/cris/cris.md (*addi): Change expression of scaled
7209         operand from mult to ashift.
7210         * config/cris/cris.md (*addi_reload): New insn_and_split.
7212 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
7214         PR target/85074
7215         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
7216         hook_bool_const_tree_hwi_hwi_const_tree_true.
7217         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
7219 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7221         PR rtl-optimization/98791
7222         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
7223         for unordered modes.
7225 2021-02-22  Martin Liska  <mliska@suse.cz>
7227         * tree-inline.c (inline_forbidden_p): Set
7228         inline_forbidden_reason.
7230 2021-02-22  Richard Biener  <rguenther@suse.de>
7232         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
7233         costed subgraph.
7235 2021-02-22  Richard Biener  <rguenther@suse.de>
7237         PR tree-optimization/99165
7238         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
7239         Accumulate changed to ret.
7241 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
7243         Revert:
7244         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
7246         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
7248 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
7250         PR target/99134
7251         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
7252         pattern.
7253         (trunctf<DFP_ALL:mode>2): Likewise.
7254         (trunctdtf2_vr): Likewise.
7255         (trunctdtf2): Likewise.
7256         (extend<DFP_ALL:mode>tf2_vr): Likewise.
7257         (extend<DFP_ALL:mode>tf2): Likewise.
7258         (extendtftd2_vr): Likewise.
7259         (extendtftd2): Likewise.
7261 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
7263         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
7264         add memory alternative.
7265         (tf_to_fprx2): New pattern.
7267 2021-02-19  Martin Sebor  <msebor@redhat.com>
7269         PR c/97172
7270         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
7271         (attr_access::free_lang_data): Remove a spurious test.
7273 2021-02-19  Nathan Sidwell  <nathan@acm.org>
7275         * doc/invoke.texi (flang-info-module-read): Document.
7277 2021-02-19  Martin Liska  <mliska@suse.cz>
7279         PR translation/99167
7280         * params.opt: Fix typo.
7282 2021-02-19  Richard Biener  <rguenther@suse.de>
7284         PR middle-end/99122
7285         * tree-inline.c (inline_forbidden_p): Do not inline functions
7286         with VLA arguments or return value.
7288 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
7290         PR target/98998
7291         * config/arm/arm.md (*stack_protect_combined_set_insn,
7292         *stack_protect_combined_test_insn): If force_const_mem result
7293         is not valid general operand, force its address into the destination
7294         register first.
7296 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
7298         PR ipa/99034
7299         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
7300         pad or non-local label, put FORCED_LABELs from bb b after that label
7301         rather than before it.
7303 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7305         PR target/98657
7306         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
7307         expand_vector_broadcast' to emit the vec_duplicate operand.
7309 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
7311         PR rtl-optimization/96264
7312         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
7313         hard regs.
7315 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
7317         PR target/99113
7318         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
7319         looking up the retain attribute.
7320         (resolve_unique_section): Likewise.
7321         (get_variable_section): Likewise.
7322         (switch_to_section): Likewise.  Warn when a symbol without the
7323         retain attribute and a symbol with the retain attribute are
7324         placed in the section with the same name, instead of the used
7325         attribute.
7326         * doc/extend.texi: Document the "retain" attribute.
7328 2021-02-18  Nathan Sidwell  <nathan@acm.org>
7330         PR c++/99023
7331         * doc/invoke.texi (flang-info-include-translate): Document header
7332         lookup behaviour.
7334 2021-02-18  Richard Biener  <rguenther@suse.de>
7336         PR middle-end/99122
7337         * ipa-fnsummary.c (analyze_function_body): Set
7338         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
7339         * tree-inline.c (insert_init_debug_bind): Pass NULL for
7340         error_mark_node values.
7341         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
7342         values.
7343         (setup_one_parameter): Delay force_value_to_type until when
7344         it's needed.
7346 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
7348         PR tree-optimization/99142
7349         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
7351 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
7353         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
7354         wide_int_bitmask::wide_int_bitmask (uint64_t),
7355         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
7356         wide_int_bitmask::operator ~ () const,
7357         wide_int_bitmask::operator | (wide_int_bitmask) const,
7358         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
7359         instead of inline.
7360         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
7361         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
7362         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
7363         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
7364         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
7365         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
7366         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
7367         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
7368         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
7369         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
7370         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
7371         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
7372         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
7373         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
7374         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
7375         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
7376         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
7377         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
7378         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
7379         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
7380         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
7381         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
7382         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
7383         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
7385 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
7387         PR middle-end/99109
7388         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
7389         (build_printable_array_type): ... this.  Add nelts argument.  For
7390         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
7391         nelts, call build_array_type_nelts.
7392         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
7393         instead of build_zero_elt_array_type and build_array_type_nelts.
7395 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
7397         PR target/99104
7398         * config/i386/i386.c (distance_non_agu_define): Don't call
7399         extract_insn_cached here.
7400         (ix86_lea_outperforms): Save and restore recog_data around call
7401         to distance_non_agu_define and distance_agu_use.
7402         (ix86_ok_to_clobber_flags): Remove.
7403         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
7404         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
7405         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
7406         into define_insn.  Move the splitting to define_peephole2 and
7407         check there using peep2_regno_dead_p if FLAGS_REG is dead.
7409 2021-02-17  Julian Brown  <julian@codesourcery.com>
7411         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
7412         for non-decls.
7414 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
7416         PR target/98491
7417         * config/mips/mips.c (mips_symbol_insns): Do not use
7418         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
7420 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
7422         PR inline-asm/98096
7423         * stmt.c (resolve_operand_name_1): Take inout operands into account
7424         for access to labels by names.
7425         * doc/extend.texi: Describe counting operands for accessing labels.
7427 2021-02-16  Richard Biener  <rguenther@suse.de>
7429         PR tree-optimization/38474
7430         * tree-ssa-structalias.c (variable_info::address_taken): New.
7431         (new_var_info): Initialize address_taken.
7432         (process_constraint): Set address_taken.
7433         (solve_constraints): Use the new address_taken flag rather
7434         than is_reg_var for sorting variables.
7435         (dump_constraint): Dump the variable number if the name
7436         is just NULL.
7438 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
7440         PR target/99100
7441         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
7442         multiply by 4096 and for inbranch by 8192.
7443         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
7444         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
7446 2021-02-15  Maya Rashish  <coypu@sdf.org>
7448         * config/aarch64/aarch64.c (aarch64_init_builtins):
7449         Call SUBTARGET_INIT_BUILTINS.
7451 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
7453         PR rtl-optimization/98872
7454         * init-regs.c (initialize_uninitialized_regs): Skip initialization
7455         if CONST0_RTX is NULL.
7457 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
7459         PR rtl-optimization/98863
7460         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
7461         (function_info::build_info): Turn into a declaration, moving the
7462         definition to internals.h.
7463         (function_info::bb_walker): Declare.
7464         (function_info::create_reg_use): Likewise.
7465         (function_info::calculate_potential_phi_regs): Take a build_info
7466         parameter.
7467         (function_info::place_phis, function_info::create_ebbs): Declare.
7468         (function_info::calculate_ebb_live_in_for_debug): Likewise.
7469         (function_info::populate_backedge_phis): Delete.
7470         (function_info::start_block, function_info::end_block): Declare.
7471         (function_info::populate_phi_inputs): Delete.
7472         (function_info::m_potential_phi_regs): Move information to build_info.
7473         * rtl-ssa/internals.h: New file.
7474         (function_info::bb_phi_info): New class.
7475         (function_info::build_info): Moved from functions.h.
7476         Add a constructor and destructor.
7477         (function_info::build_info::ebb_use): Delete.
7478         (function_info::build_info::ebb_def): Likewise.
7479         (function_info::build_info::bb_live_out): Likewise.
7480         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
7481         (function_info::build_info::potential_phi_regs): Likewise.
7482         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
7483         (function_info::build_info::ebb_def_regs): Likewise.
7484         (function_info::build_info::bb_phis): Likewise.
7485         (function_info::build_info::bb_mem_live_out): Likewise.
7486         (function_info::build_info::bb_to_rpo): Likewise.
7487         (function_info::build_info::def_stack): Likewise.
7488         (function_info::build_info::old_def_stack_limit): Likewise.
7489         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
7490         Remove the regno argument.  Push the previous definition onto the
7491         definition stack where necessary.
7492         * rtl-ssa/accesses.cc: Include internals.h.
7493         * rtl-ssa/changes.cc: Likewise.
7494         * rtl-ssa/blocks.cc: Likewise.
7495         (function_info::build_info::build_info): Define.
7496         (function_info::build_info::~build_info): Likewise.
7497         (function_info::bb_walker): New class.
7498         (function_info::bb_walker::bb_walker): Define.
7499         (function_info::add_live_out_use): Convert a logarithmic-complexity
7500         test into a linear one.  Allow the same definition to be passed
7501         multiple times.
7502         (function_info::calculate_potential_phi_regs): Moved from
7503         functions.cc.  Take a build_info parameter and store the
7504         information there instead.
7505         (function_info::place_phis): New function.
7506         (function_info::add_entry_block_defs): Update call to record_reg_def.
7507         (function_info::calculate_ebb_live_in_for_debug): New function.
7508         (function_info::add_phi_nodes): Use bb_phis to decide which
7509         registers need phi nodes and initialize ebb_def_regs accordingly.
7510         Do not add degenerate phis here.
7511         (function_info::add_artificial_accesses): Use create_reg_use.
7512         Assert that all definitions are listed in the DF LR sets.
7513         Update call to record_reg_def.
7514         (function_info::record_block_live_out): Record live-out register
7515         values in the phis of successor blocks.  Use the live-out set
7516         when processing the last block in an EBB, instead of always
7517         using the live-in sets of successor blocks.  AND the live sets
7518         with the set of registers that have been defined in the EBB,
7519         rather than with all potential phi registers.  Cope correctly
7520         with branches back to the start of the current EBB.
7521         (function_info::start_block): New function.
7522         (function_info::end_block): Likewise.
7523         (function_info::populate_phi_inputs): Likewise.
7524         (function_info::create_ebbs): Likewise.
7525         (function_info::process_all_blocks): Rewrite into a multi-phase
7526         process.
7527         * rtl-ssa/functions.cc: Include internals.h.
7528         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
7529         (function_info::init_function_data): Remove caller.
7530         * rtl-ssa/insns.cc: Include internals.h
7531         (function_info::create_reg_use): New function.  Lazily any
7532         degenerate phis needed by the linear RPO view.
7533         (function_info::record_use): Use create_reg_use.  When processing
7534         debug uses, use potential_phi_regs and test it before checking
7535         whether the register is live on entry to the current EBB.  Lazily
7536         calculate ebb_live_in_for_debug.
7537         (function_info::record_call_clobbers): Update call to record_reg_def.
7538         (function_info::record_def): Likewise.
7540 2021-02-15  Martin Liska  <mliska@suse.cz>
7542         * toplev.c (init_asm_output): Free output of
7543         gen_command_line_string function.
7544         (process_options): Likewise.
7546 2021-02-15  Martin Liska  <mliska@suse.cz>
7548         * params.opt: Add 2 missing Param keywords.
7550 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
7552         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
7554 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
7556         PR tree-optimization/99079
7557         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
7558         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
7559         require both type and TREE_TYPE (@1) to be integral types and either
7560         type having smaller or equal precision, or TREE_TYPE (@1) being
7561         unsigned type, or type being signed type.  If TREE_TYPE (@1)
7562         doesn't have wrapping overflow, perform the subtraction of one in
7563         unsigned type.
7565 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
7566             Richard Biener  <rguether@suse.de>
7568         PR ipa/97346
7569         * ipa-reference.c (ipa_init): Only conditinally initialize
7570         reference_vars_to_consider.
7571         (propagate): Conditionally deninitialize reference_vars_to_consider.
7572         (ipa_reference_write_optimization_summary): Sanity check that
7573         reference_vars_to_consider is not allocated.
7575 2021-02-13  Levy Hsu  <admin@levyhsu.com>
7577         PR target/97417
7578         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
7579         extend parameter to get_si_mem_base_reg declaration.
7580         (get_si_mem_base_reg): Add extend parameter.  Set it.
7581         (analyze): Pass extend arg to get_si_mem_base_reg.
7582         (transform): Likewise.  Use it when rewriting mems.
7583         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
7584         loads and emit sign/zero extending load followed by subreg move.
7586 2021-02-13  Jim Wilson  <jimw@sifive.com>
7588         PR target/97417
7589         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
7590         exit when !reload_completed.  Only perform check for compressed reg
7591         if reload_completed.
7592         (riscv_rtx_costs): In MEM case, when optimizing for size and
7593         shorten memrefs, if not compressible, then increase cost.
7595 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
7597         PR rtl-optimization/98439
7598         * recog.c (pass_split_before_regstack::gate): Enable even when
7599         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
7600         on.
7602 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
7604         PR target/96166
7605         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
7606         swap of V2SImode elements in memory into DImode memory rotate by 32.
7608 2021-02-12  Martin Sebor  <msebor@redhat.com>
7610         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
7612 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
7614         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
7615         m_temp_obstack rather than m_obstack to allocate the temporary use.
7617 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
7619         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
7620         as read-modify operations.
7622 2021-02-12  Richard Biener  <rguenther@suse.de>
7624         PR middle-end/38474
7625         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
7626         fbi->aa_walk_budget is bigger than zero.  Update
7627         fbi->aa_walk_budget.
7628         (param_change_prob): Likewise.
7629         * ipa-prop.c (detect_type_change_from_memory_writes):
7630         Properly account walk_aliased_vdefs.
7631         (parm_preserved_before_stmt_p): Canonicalize updates.
7632         (parm_ref_data_preserved_p): Likewise.
7633         (parm_ref_data_pass_through_p): Likewise.
7634         (determine_known_aggregate_parts): Account own alias queries.
7636 2021-02-12  Martin Liska  <mliska@suse.cz>
7638         * opts-common.c (decode_cmdline_option): Release werror_arg.
7639         * opts.c (gen_producer_string): Release output of
7640         gen_command_line_string.
7642 2021-02-12  Richard Biener  <rguenther@suse.de>
7644         PR tree-optimization/38474
7645         * params.opt (-param=max-store-chains-to-track=): New param.
7646         (-param=max-stores-to-track=): Likewise.
7647         * doc/invoke.texi (max-store-chains-to-track): Document.
7648         (max-stores-to-track): Likewise.
7649         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
7650         New.
7651         (pass_store_merging::m_n_stores): Likewise.
7652         (pass_store_merging::terminate_and_process_chain): Update
7653         m_n_stores and m_n_chains.
7654         (pass_store_merging::process_store): Likewise.   Terminate
7655         oldest chains if the number of stores or chains get too large.
7656         (imm_store_chain_info::terminate_and_process_chain): Dump
7657         chain length.
7659 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7661         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
7662         the cold section, emit a nop before the directive if the previous
7663         active instruction can throw.
7665 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
7667         PR target/99041
7668         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
7669         memory addresses that are legal for quad word accesses.
7671 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
7673         PR target/98931
7674         * config/arm/thumb2.md (*doloop_end_internal): Generate
7675         alternative sequence to handle long range branches.
7677 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
7679         PR tree-optimization/98772
7680         * optabs-tree.c (supportable_half_widening_operation): New function
7681         to check for supportable V8QI->V8HI widening patterns.
7682         * optabs-tree.h (supportable_half_widening_operation): New function.
7683         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
7684         to create promotion stmts for V8QI->V8HI widening patterns.
7685         (vectorizable_conversion): Add case for V8QI->V8HI.
7687 2021-02-11  Richard Biener  <rguenther@suse.de>
7689         * sparseset.h (SPARSESET_ELT_BITS): Remove.
7690         (SPARSESET_ELT_TYPE): Use unsigned int.
7691         * fwprop.c: Do not include sparseset.h.
7693 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
7695         PR c++/99035
7696         * varasm.c (declare_weak): For -fsyntax-only, allow even
7697         TREE_ASM_WRITTEN function decls.
7699 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
7701         PR target/99025
7702         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
7703         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
7704         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
7705         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
7706         calling simplify_gen_subreg on it.
7708 2021-02-10  Martin Liska  <mliska@suse.cz>
7710         * config/nvptx/nvptx.c (nvptx_option_override): Use
7711         flag_patchable_function_entry instead of the removed
7712         function_entry_patch_area_size.
7714 2021-02-10  Martin Liska  <mliska@suse.cz>
7716         PR tree-optimization/99002
7717         PR tree-optimization/99026
7718         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
7719         leak when adjacent cases are merged.
7720         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
7721         release_clusters.
7722         (make_pass_lower_switch): Remove trailing whitespace.
7723         * tree-switch-conversion.h (release_clusters): New.
7725 2021-02-10  Richard Biener  <rguenther@suse.de>
7727         PR rtl-optimization/99054
7728         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
7729         (fixup_partitions): Adjust.
7730         (rtl_verify_edges): Likewise.
7732 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
7734         PR middle-end/99007
7735         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
7736         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
7737         calls.
7739 2021-02-10  Richard Biener  <rguenther@suse.de>
7741         PR ipa/99029
7742         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
7743         for callees.
7745 2021-02-10  Richard Biener  <rguenther@suse.de>
7747         PR tree-optimization/99024
7748         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
7749         clear loop->aux if it is associated with the destroyed loop_vinfo.
7751 2021-02-10  Martin Liska  <mliska@suse.cz>
7753         PR tree-optimization/99002
7754         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
7755         in the function.
7757 2021-02-10  Martin Liska  <mliska@suse.cz>
7759         PR ipa/99003
7760         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
7761         a reference exists.
7763 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
7765         PR debug/98755
7766         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
7767         at class scope for DWARF5+.
7769 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
7771         PR rtl-optimization/96015
7772         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
7773         (relax_delay_slots): When deleting a jump to the next active
7774         instruction over a barrier, first delete the barrier if the
7775         jump is the only way to reach the target label.
7777 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7779         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
7780         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
7781         vector multiplies and vect.alu for SSRA.
7782         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
7783         vect.mul cost field.
7784         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
7785         * config/arm/arm.c: Likewise.
7787 2021-02-09  Richard Biener  <rguenther@suse.de>
7789         PR tree-optimization/98863
7790         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
7791         * tree-ssa-sccvn.c (last_pushed_avail): New global.
7792         (rpo_elim::eliminate_push_avail): Chain pushed avails.
7793         (unwind_state::avail_top): Add.
7794         (do_unwind): Rewrite unwinding of avail entries.
7795         (do_rpo_vn): Initialize last_pushed_avail and
7796         avail_top of the undo state.
7798 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
7800         PR middle-end/99004
7801         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
7802         const char * to char * and free those pointers after use.
7804 2021-02-09  Richard Biener  <rguenther@suse.de>
7806         PR tree-optimization/99017
7807         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
7808         zero vector cost entries.
7810 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7812         PR middle-end/98974
7813         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
7814         parameter in vectorizable_condition.
7816 2021-02-08  Richard Biener  <rguenther@suse.de>
7818         PR lto/96591
7819         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
7821 2021-02-08  Martin Liska  <mliska@suse.cz>
7823         PR lto/98971
7824         * cfgexpand.c (pass_expand::execute): Parse per-function option
7825         flag_patchable_function_entry and use it.
7826         * common.opt: Remove function_entry_patch_area_size and
7827         function_entry_patch_area_start global variables.
7828         * opts.c (parse_and_check_patch_area): New function.
7829         (common_handle_option): Use it.
7830         * opts.h (parse_and_check_patch_area): New function.
7831         * toplev.c (process_options): Parse and use
7832         function_entry_patch_area_size.
7834 2021-02-08  Martin Sebor  <msebor@redhat.com>
7836         * doc/extend.texi (attribute malloc): Correct typos.
7838 2021-02-05  Nathan Sidwell  <nathan@acm.org>
7840         PR driver/98943
7841         * gcc.c (driver::maybe_run_linker): Check for input file
7842         accessibility if not linking.
7844 2021-02-05  Richard Biener  <rguenther@suse.de>
7846         PR tree-optimization/98855
7847         * tree-vectorizer.h (add_stmt_cost): New overload.
7848         * tree-vect-slp.c (li_cost_vec_cmp): New.
7849         (vect_bb_slp_scalar_cost): Cost individual loop regions
7850         separately.  Account for the scalar instance root stmt.
7852 2021-02-05  Tom de Vries  <tdevries@suse.de>
7854         PR debug/98656
7855         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
7856         argument.
7857         (bit_test_cluster::emit): Reuse location_t for newly created
7858         gswitch statement.
7859         (switch_decision_tree::try_switch_expansion): Preserve
7860         location_t.
7861         * tree-switch-conversion.h: Change function signatures.
7863 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
7865         PR target/98957
7866         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
7867         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
7868         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
7869         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
7871 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7873         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
7874         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
7875         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
7876         (vget_high_f16): Reimplement using new builtin.
7877         (vget_high_f32): Likewise.
7878         (vget_high_f64): Likewise.
7879         (vget_high_p8): Likewise.
7880         (vget_high_p16): Likewise.
7881         (vget_high_p64): Likewise.
7882         (vget_high_s8): Likewise.
7883         (vget_high_s16): Likewise.
7884         (vget_high_s32): Likewise.
7885         (vget_high_s64): Likewise.
7886         (vget_high_u8): Likewise.
7887         (vget_high_u16): Likewise.
7888         (vget_high_u32): Likewise.
7889         (vget_high_u64): Likewise.
7891 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7893         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
7894         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
7895         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
7896         (vget_low_f16): Reimplement using new builtin.
7897         (vget_low_f32): Likewise.
7898         (vget_low_f64): Likewise.
7899         (vget_low_p8): Likewise.
7900         (vget_low_p16): Likewise.
7901         (vget_low_p64): Likewise.
7902         (vget_low_s8): Likewise.
7903         (vget_low_s16): Likewise.
7904         (vget_low_s32): Likewise.
7905         (vget_low_s64): Likewise.
7906         (vget_low_u8): Likewise.
7907         (vget_low_u16): Likewise.
7908         (vget_low_u32): Likewise.
7909         (vget_low_u64): Likewise.
7911 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
7913         * gcc.c (print_multilib_info): Check all required argument is provided
7914         by default arg.
7916 2021-02-05  liuhongt  <hongtao.liu@intel.com>
7918         PR target/98537
7919         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
7920         generate integer mask comparison for 128/256-bits vector when
7921         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
7922         delete redundant !maskcmp condition.
7923         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
7924         here.
7925         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
7926         condition directly to if (maskcmp), add extra check for
7927         cmpmode, it should be MODE_INT.
7928         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
7929         parameters op_true/op_false.
7930         (ix86_use_mask_cmp_p): New.
7932 2021-02-05  liuhongt  <hongtao.liu@intel.com>
7934         PR target/98172
7935         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
7936         Remove m_GENERIC from ~list.
7937         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
7939 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
7941         PR c/97932
7942         * diagnostic-show-locus.c (compatible_locations_p): Require
7943         locations in the same macro map to be either both from the
7944         macro definition, or both from the macro arguments.
7946 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
7948         * config/aarch64/aarch64-simd-builtins.def: Add
7949         [su]mull_hi_lane[q] builtin generator macros.
7950         * config/aarch64/aarch64-simd.md
7951         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
7952         (aarch64_<su>mull_hi_lane<mode>): Define.
7953         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
7954         (aarch64_<su>mull_hi_laneq<mode>): Define.
7955         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
7956         builtin instead of inline asm.
7957         (vmull_high_lane_s32): Likewise.
7958         (vmull_high_lane_u16): Likewise.
7959         (vmull_high_lane_u32): Likewise.
7960         (vmull_high_laneq_s16): Likewise.
7961         (vmull_high_laneq_s32): Likewise.
7962         (vmull_high_laneq_u16): Likewise.
7963         (vmull_high_laneq_u32): Liekwise.
7965 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
7967         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
7968         builtin generator macros.
7969         * config/aarch64/aarch64-simd.md
7970         (aarch64_<su>mull_hi_n<mode>_insn): Define.
7971         (aarch64_<su>mull_hi_n<mode>): Define.
7972         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
7973         instead of inline asm.
7974         (vmull_high_n_s32): Likewise.
7975         (vmull_high_n_u16): Likewise.
7976         (vmull_high_n_u32): Likewise.
7978 2021-02-04  Richard Biener  <rguenther@suse.de>
7980         PR tree-optimization/98855
7981         * tree-vect-loop.c (vectorizable_phi): Do not cost
7982         single-argument PHIs.
7983         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
7984         * tree-vect-stmts.c (vectorizable_bswap): Also perform
7985         costing for SLP operation.
7987 2021-02-04  Martin Liska  <mliska@suse.cz>
7989         * doc/extend.texi: Mention -mprefer-vector-width in target
7990         attributes.
7992 2021-02-03  Martin Sebor  <msebor@redhat.com>
7994         PR tree-optimization/98937
7995         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
7996         Flush pointer_query cache.
7998 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
8000         * config/rs6000/genfusion.pl (gen_2logical): Add missing
8001         fixes based on patch review.
8002         * config/rs6000/fusion.md: Regenerate file.
8004 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
8006         * config/rs6000/t-rs6000: Comment out auto generation of
8007         fusion.md for now.
8009 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
8011         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
8012         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
8013         (output_file_start): Add gfx908.
8014         * config/gcn/gcn.opt (gpu_type): Add gfx908.
8015         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
8016         (MULTILIB_DIRNAMES): Add gfx908.
8017         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
8018         (main): Recognize gfx908.
8019         * config/gcn/t-omp-device: Add gfx908.
8021 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
8023         * config/aarch64/aarch64-simd-builtins.def: Add
8024         [su]mlsl_hi_lane[q] builtin macro generators.
8025         * config/aarch64/aarch64-simd.md
8026         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
8027         (aarch64_<su>mlsl_hi_lane<mode>): Define.
8028         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
8029         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
8030         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
8031         builtin instead of inline asm.
8032         (vmlsl_high_lane_s32): Likewise.
8033         (vmlsl_high_lane_u16): Likewise.
8034         (vmlsl_high_lane_u32): Likewise.
8035         (vmlsl_high_laneq_s16): Likewise.
8036         (vmlsl_high_laneq_s32): Likewise.
8037         (vmlsl_high_laneq_u16): Likewise.
8038         (vmlsl_high_laneq_u32): Likewise.
8039         (vmlal_high_laneq_u32): Likewise.
8041 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
8043         * config/aarch64/aarch64-simd-builtins.def: Add
8044         [su]mlal_hi_lane[q] builtin generator macros.
8045         * config/aarch64/aarch64-simd.md
8046         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
8047         (aarch64_<su>mlal_hi_lane<mode>): Define.
8048         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
8049         (aarch64_<su>mlal_hi_laneq<mode>): Define.
8050         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
8051         builtin instead of inline asm.
8052         (vmlal_high_lane_s32): Likewise.
8053         (vmlal_high_lane_u16): Likewise.
8054         (vmlal_high_lane_u32): Likewise.
8055         (vmlal_high_laneq_s16): Likewise.
8056         (vmlal_high_laneq_s32): Likewise.
8057         (vmlal_high_laneq_u16): Likewise.
8058         (vmlal_high_laneq_u32): Likewise.
8060 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
8062         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
8063         builtin generator macros.
8064         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
8065         Define.
8066         (aarch64_<su>mlsl_hi_n<mode>): Define.
8067         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
8068         instead of inline asm.
8069         (vmlsl_high_n_s32): Likewise.
8070         (vmlsl_high_n_u16): Likewise.
8071         (vmlsl_high_n_u32): Likewise.
8073 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
8075         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
8076         builtin generator macros.
8077         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
8078         Define.
8079         (aarch64_<su>mlal_hi_n<mode>): Define.
8080         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
8081         instead of inline asm.
8082         (vmlal_high_n_s32): Likewise.
8083         (vmlal_high_n_u16): Likewise.
8084         (vmlal_high_n_u32): Likewise.
8086 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
8088         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
8089         generator macros.
8090         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
8091         Rename to...
8092         (aarch64_<su>mlal_hi<mode>_insn): This.
8093         (aarch64_<su>mlal_hi<mode>): Define.
8094         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
8095         instead of inline asm.
8096         (vmlal_high_s16): Likewise.
8097         (vmlal_high_s32): Likewise.
8098         (vmlal_high_u8): Likewise.
8099         (vmlal_high_u16): Likewise.
8100         (vmlal_high_u32): Likewise.
8102 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
8104         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
8105         after calling alter_subreg() on a (mem).
8107 2021-02-03  Martin Liska  <mliska@suse.cz>
8109         PR lto/98912
8110         * lto-streamer-out.c (produce_lto_section): Fill up missing
8111         padding.
8112         * lto-streamer.h (struct lto_section): Add _padding field.
8114 2021-02-03  Richard Biener  <rguenther@suse.de>
8116         * lto-streamer.c (lto_get_section_name): Free temporary
8117         buffer.
8118         * tree-loop-distribution.c
8119         (loop_distribution::merge_dep_scc_partitions): Free edge data.
8121 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
8123         PR middle-end/97487
8124         * ifcvt.c (noce_can_force_operand): New function.
8125         (noce_emit_move_insn): Use it.
8126         (noce_try_sign_mask): Likewise.  Formatting fix.
8128 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
8130         PR middle-end/97971
8131         * lra-constraints.c (process_alt_operands): For inline asm, don't call
8132         fatal_insn, but instead return false.
8134 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
8136         PR tree-optimization/98287
8137         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
8138         for V1DImode.
8140 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
8142         PR tree-optimization/98928
8143         * tree-vect-loop.c (vect_analyze_loop_2): Change
8144         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
8145         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
8146         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
8147         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
8149 2021-02-02  Richard Biener  <rguenther@suse.de>
8151         * gimple-loop-interchange.cc (prepare_data_references):
8152         Release vectors.
8153         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
8154         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
8155         * tree-vect-stmts.c (vectorizable_condition): Do not
8156         allocate vectors.
8157         (vectorizable_comparison): Likewise.
8159 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8161         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
8162         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
8163         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
8164         (vrsqrteq_u32): Likewise.
8166 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8168         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
8169         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
8170         (aarch64_sqxtun2<mode>_be): Likewise.
8171         (aarch64_sqxtun2<mode>): Likewise.
8172         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
8173         (vqmovun_high_s32): Likewise.
8174         (vqmovun_high_s64): Likewise.
8175         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
8177 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8179         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
8180         AUTO_FP flags.
8181         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
8183 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8185         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
8186         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8187         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
8188         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
8189         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
8190         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
8191         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
8192         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
8194 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8196         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
8197         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
8198         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
8200 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8202         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
8203         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
8205 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8207         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
8208         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
8209         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
8210         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
8211         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
8212         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
8213         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
8214         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
8215         NONE builtin flags.
8217 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
8219         PR tree-optimization/98848
8220         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
8221         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
8223 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
8225         PR target/98743
8226         * expr.c: Check mode before calling store_expr.
8228 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
8230         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
8231         (VORNQ): Remove.
8232         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
8233         instruction using expression ior.
8234         (mve_vornq_u<mode>): New expander.
8235         (mve_vornq_f<mode>): Use ior code instead of unspec.
8236         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
8238 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
8240         * tree-nested.c (convert_nonlocal_reference_op): Move
8241         current_function_decl restore after re-gimplification.
8242         (convert_local_reference_op): Likewise.
8244 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8246         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
8247         Define builtins.
8248         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
8249         Define.
8250         (aarch64_rshrn<mode>_insn_be): Likewise.
8251         (aarch64_rshrn<mode>): Likewise.
8252         (aarch64_rshrn2<mode>_insn_le): Likewise.
8253         (aarch64_rshrn2<mode>_insn_be): Likewise.
8254         (aarch64_rshrn2<mode>): Likewise.
8255         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
8256         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
8257         using builtin.
8258         (vrshrn_high_n_s32): Likewise.
8259         (vrshrn_high_n_s64): Likewise.
8260         (vrshrn_high_n_u16): Likewise.
8261         (vrshrn_high_n_u32): Likewise.
8262         (vrshrn_high_n_u64): Likewise.
8263         (vrshrn_n_s16): Likewise.
8264         (vrshrn_n_s32): Likewise.
8265         (vrshrn_n_s64): Likewise.
8266         (vrshrn_n_u16): Likewise.
8267         (vrshrn_n_u32): Likewise.
8268         (vrshrn_n_u64): Likewise.
8270 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
8272         PR tree-optimization/98499
8273         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
8274         conservatively and assume all possible side-effects.
8276 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8278         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
8279         vec_unpacku_hi_): Define builtins.
8280         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
8281         builtin.
8282         (vmovl_high_s16): Likewise.
8283         (vmovl_high_s32): Likewise.
8284         (vmovl_high_u8): Likewise.
8285         (vmovl_high_u16): Likewise.
8286         (vmovl_high_u32): Likewise.
8288 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8290         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
8291         Define builtins.
8292         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
8293         pattern.
8294         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
8295         UNSPEC_UABDL.
8296         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
8297         builtin.
8298         (vabdl_s16): Likewise.
8299         (vabdl_s32): Likewise.
8300         (vabdl_u8): Likewise.
8301         (vabdl_u16): Likewise.
8302         (vabdl_u32): Likewise.
8303         * config/aarch64/iterators.md (ABDL): New int iterator.
8304         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
8306 2021-02-01  Martin Sebor  <msebor@redhat.com>
8308         * tree.h (BLOCK_VARS): Add comment.
8309         (BLOCK_SUBBLOCKS): Same.
8310         (BLOCK_SUPERCONTEXT): Same.
8311         (BLOCK_ABSTRACT_ORIGIN): Same.
8312         (inlined_function_outer_scope_p): Same.
8314 2021-02-01  Martin Sebor  <msebor@redhat.com>
8316         PR middle-end/97172
8317         * attribs.c (attr_access::free_lang_data): Define new function.
8318         * attribs.h (attr_access::free_lang_data): Declare new function.
8320 2021-02-01  Richard Biener  <rguenther@suse.de>
8322         * vec.h (auto_vec::auto_vec): Add memory stat parameters
8323         and pass them on.
8324         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
8326 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
8328         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
8329         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
8331 2021-02-01  Richard Biener  <rguenther@suse.de>
8333         PR rtl-optimization/98863
8334         * config/i386/i386-features.c (convert_scalars_to_vector):
8335         Set DF_RD_PRUNE_DEAD_DEFS.
8337 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
8339         * system.h (SIZE_MAX): Define if not already defined.
8341 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
8343         * config/rs6000/genfusion.pl (gen_2logical): New function to
8344         generate patterns for logical-logical fusion.
8345         * config/rs6000/fusion.md: Regenerated patterns.
8346         * config/rs6000/rs6000-cpus.def: Add
8347         OPTION_MASK_P10_FUSION_2LOGICAL.
8348         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8349         Enable logical-logical fusion for p10.
8350         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
8352 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
8354         * config/rs6000/rs6000.opt: Add periods to new AIX options.
8356 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
8358         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
8359         (mabi=vec-default): New.
8360         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8361         __EXTABI__ for AIX Vector extended ABI.
8362         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
8363         extabi info.
8364         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
8365         are non-volatile.
8366         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
8368 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
8370         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
8371         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
8373 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
8375         PR target/97701
8376         * lra-constraints.c (in_class_p): Don't narrow class only for REG
8377         or MEM.
8379 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
8381         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
8382         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
8383         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
8385 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
8387         PR tree-optimization/98866
8388         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
8389         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
8390         (gori_map::m_maybe_invariant): Rename from all_outgoing.
8391         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
8392         (gori_map::is_export_p): Ditto.
8393         (gori_map::calculate_gori): Ditto.
8394         (gori_compute::set_range_invariant): New.
8395         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
8396         invariant for pointers evaluating to [1, +INF].
8398 2021-01-29  Richard Biener  <rguenther@suse.de>
8400         PR rtl-optimization/98863
8401         * config/i386/i386-features.c (remove_partial_avx_dependency):
8402         Do not perform DF analysis.
8403         (pass_data_remove_partial_avx_dependency): Remove
8404         TODO_df_finish.
8406 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
8408         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
8409         builtin generator macros.
8410         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
8411         Define.
8412         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
8413         instead of inline asm.
8414         (vmull_n_s32): Likewise.
8415         (vmull_n_u16): Likewise.
8416         (vmull_n_u32): Likewise.
8418 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8420         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
8421         Define builtins.
8422         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
8423         Rename to...
8424         (aarch64_<sur>abdl2<mode>): ... This.
8425         (<sur>sadv16qi): Adjust use of above.
8426         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
8427         builtin.
8428         (vabdl_high_s16): Likewise.
8429         (vabdl_high_s32): Likewise.
8430         (vabdl_high_u8): Likewise.
8431         (vabdl_high_u16): Likewise.
8432         (vabdl_high_u32): Likewise.
8434 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8436         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
8437         builtin.
8438         (uabal2): Likewise.
8439         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
8440         pattern.
8441         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
8442         UNSPEC_UABAL2.
8443         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
8444         builtin.
8445         (vabal_high_s16): Likewise.
8446         (vabal_high_s32): Likewise.
8447         (vabal_high_u8): Likewise.
8448         (vabal_high_u16): Likewise.
8449         (vabal_high_u32): Likewise.
8450         * config/aarch64/iterators.md (ABAL2): New mode iterator.
8451         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
8453 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8455         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
8456         builtin.
8457         (uabal): Likewise.
8458         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
8459         Rename to...
8460         (aarch64_<sur>abal<mode>): ... This
8461         (<sur>sadv16qi): Adust use of the above.
8462         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
8463         builtin.
8464         (vabal_s16): Likewise.
8465         (vabal_s32): Likewise.
8466         (vabal_u8): Likewise.
8467         (vabal_u16): Likewise.
8468         (vabal_u32): Likewise.
8470 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8472         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
8473         Define builtins.
8474         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
8475         Define.
8476         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
8477         builtin.
8478         (vaddlv_s16): Likewise.
8479         (vaddlv_u8): Likewise.
8480         (vaddlv_u16): Likewise.
8481         (vaddlvq_s8): Likewise.
8482         (vaddlvq_s16): Likewise.
8483         (vaddlvq_s32): Likewise.
8484         (vaddlvq_u8): Likewise.
8485         (vaddlvq_u16): Likewise.
8486         (vaddlvq_u32): Likewise.
8487         (vaddlv_s32): Likewise.
8488         (vaddlv_u32): Likewise.
8489         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
8490         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
8491         (Vwstype): New mode attribute.
8492         (Vwsuf): Likewise.
8493         (VWIDE_S): Likewise.
8494         (USADDLV): New int iterator.
8495         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
8497 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
8499         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
8500         builtin generator macros.
8501         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
8502         Define.
8503         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
8504         instead of inline asm.
8505         (vmlsl_lane_s32): Likewise.
8506         (vmlsl_lane_u16): Likewise.
8507         (vmlsl_lane_u32): Likewise.
8508         (vmlsl_laneq_s16): Likewise.
8509         (vmlsl_laneq_s32): Likewise.
8510         (vmlsl_laneq_u16): Likewise.
8511         (vmlsl_laneq_u32): Likewise.
8513 2021-01-29  Richard Biener  <rguenther@suse.de>
8515         * doc/invoke.texi (--param max-gcse-memory): Document unit
8516         of size.
8517         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
8518         * params.opt (--param max-gcse-memory): Adjust default and
8519         document unit of size.
8521 2021-01-29  Richard Biener  <rguenther@suse.de>
8523         PR rtl-optimization/98863
8524         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
8525         HOST_WIDE_INT for the memory estimate.
8527 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
8528             Richard Biener  <rguenther@suse.de>
8530         PR tree-optimization/97627
8531         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
8532         Do not analyze fake edges.
8534 2021-01-29  Richard Biener  <rguenther@suse.de>
8536         PR rtl-optimization/98144
8537         * df.h (df_mir_bb_info): Add con_visited member.
8538         * df-problems.c (df_mir_alloc): Initialize con_visited,
8539         do not fully populate IN and OUT.
8540         (df_mir_reset): Likewise.
8541         (df_mir_confluence_0): Set con_visited.
8542         (df_mir_confluence_n): Properly handle implicitely
8543         fully populated IN and OUT as designated by con_visited
8544         and update con_visited accordingly.
8546 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
8548         PR target/98849
8549         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
8550         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
8551         && !TARGET_REALLY_IWMMXT to conditions.
8553 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
8555         PR debug/98331
8556         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
8557         a BARRIER.
8559 2021-01-28  Marek Polacek  <polacek@redhat.com>
8561         PR c++/94775
8562         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
8563         the main variant, maybe reset it in its variants too.
8564         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
8565         (check_aligned_type): Check if TYPE_USER_ALIGN match.
8567 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
8569         PR target/98730
8570         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
8571         of constant zero for comparisons.
8573 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
8575         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
8576         support for mapping built-in function names for long double
8577         built-in functions if long double is IEEE 128-bit.
8579 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
8581         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
8582         builtin generator macros.
8583         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
8584         Define.
8585         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
8586         instead of inline asm.
8587         (vmlsl_n_s32): Likewise.
8588         (vmlsl_n_u16): Likewise.
8589         (vmlsl_n_u32): Likewise.
8591 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
8593         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
8594         builtin generator macros.
8595         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
8596         Define.
8597         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
8598         instead of inline asm.
8599         (vmlal_n_s32): Likewise.
8600         (vmlal_n_u16): Likewise.
8601         (vmlal_n_u32): Likewise.
8603 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8605         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
8606         builtin.
8607         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
8608         Define.
8609         (aarch64_shrn2<mode>_insn_be): Likewise.
8610         (aarch64_shrn2<mode>): Likewise.
8611         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
8612         using builtins.
8613         (vshrn_high_n_s32): Likewise.
8614         (vshrn_high_n_s64): Likewise.
8615         (vshrn_high_n_u16): Likewise.
8616         (vshrn_high_n_u32): Likewise.
8617         (vshrn_high_n_u64): Likewise.
8619 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8621         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
8622         builtin.
8623         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
8624         Define.
8625         (aarch64_shrn<mode>_insn_be): Likewise.
8626         (aarch64_shrn<mode>): Likewise.
8627         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
8628         builtins.
8629         (vshrn_n_s32): Likewise.
8630         (vshrn_n_s64): Likewise.
8631         (vshrn_n_u16): Likewise.
8632         (vshrn_n_u32): Likewise.
8633         (vshrn_n_u64): Likewise.
8634         * config/aarch64/iterators.md (vn_mode): New mode attribute.
8636 2021-01-28  Richard Biener  <rguenther@suse.de>
8638         PR rtl-optimization/80960
8639         * dse.c (check_mem_read_rtx): Call get_addr on the
8640         offsetted address.
8642 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
8643             David Edelsohn  <dje.gcc@gmail.com>
8645         PR target/98799
8646         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8647         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
8648         when -m32.
8649         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
8650         Delete.
8651         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
8652         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
8653         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
8654         directly.
8655         (rs6000_expand_vector_set_var): Delete.
8656         (rs6000_expand_vector_set_var_p9): Make static.
8657         (rs6000_expand_vector_set_var_p8): Make static.
8659 2021-01-28  Xing GUO  <higuoxing@gmail.com>
8661         * common/config/riscv/riscv-common.c
8662         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
8663         when `p` extension exists.
8665 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
8667         PR rtl-optimization/97684
8668         * ira.c (ira): Call ira_set_pseudo_classes before
8669         update_equiv_regs when it is necessary.
8671 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
8673         PR target/98853
8674         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
8675         %w0, %w1 and %2 instead of %0, %1 and %2.
8677 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
8679         * config/rs6000/genfusion.pl: New script to generate
8680         define_insn_and_split patterns so combine can arrange fused
8681         instructions next to each other.
8682         * config/rs6000/fusion.md: New file, generated fused instruction
8683         patterns for combine.
8684         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
8685         (non_update_memory_operand): New predicate.
8686         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
8687         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
8688         POWERPC_MASKS.
8689         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
8690         prototype.
8691         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8692         Automatically set OPTION_MASK_P10_FUSION and
8693         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
8694         (rs600_opt_masks): Allow -mpower10-fusion
8695         in function attributes.
8696         (address_is_non_pfx_d_or_x): New function.
8697         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
8698         * config/rs6000/rs6000.md: Include fusion.md.
8699         * config/rs6000/rs6000.opt: Add -mpower10-fusion
8700         and -mpower10-fusion-ld-cmpi.
8701         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
8703 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
8705         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
8706         builtin generator macros.
8707         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
8708         Rename to...
8709         (aarch64_<su>mlal<mode>): This.
8710         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
8711         instead of inline asm.
8712         (vmlal_s16): Likewise.
8713         (vmlal_s32): Likewise.
8714         (vmlal_u8): Likewise.
8715         (vmlal_u16): Likewise.
8716         (vmlal_u32): Likewise.
8718 2021-01-27  Richard Biener  <rguenther@suse.de>
8720         PR tree-optimization/98854
8721         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
8722         PHIs from scalars when the number of CTORs matches the
8723         number of children.
8725 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
8727         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
8728         generator macro.
8729         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
8730         Rename to...
8731         (aarch64_mls_n<mode>): This.
8732         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
8733         instead of asm.
8734         (vmls_n_s32): Likewise.
8735         (vmls_n_u16): Likewise.
8736         (vmls_n_u32): Likewise.
8737         (vmlsq_n_s16): Likewise.
8738         (vmlsq_n_s32): Likewise.
8739         (vmlsq_n_u16): Likewise.
8740         (vmlsq_n_u32): Likewise.
8742 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
8744         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
8745         generator macro.
8746         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
8747         than asm.
8748         (vmls_s16): Likewise.
8749         (vmls_s32): Likewise.
8750         (vmls_u8): Likewise.
8751         (vmls_u16): Likewise.
8752         (vmls_u32): Likewise.
8753         (vmlsq_s8): Likewise.
8754         (vmlsq_s16): Likewise.
8755         (vmlsq_s32): Likewise.
8756         (vmlsq_u8): Likewise.
8757         (vmlsq_u16): Likewise.
8758         (vmlsq_u32): Likewise.
8760 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
8762         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
8763         generator macro.
8764         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
8765         Rename to...
8766         (aarch64_mla_n<mode>): This.
8767         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
8768         instead of asm.
8769         (vmla_n_s32): Likewise.
8770         (vmla_n_u16): Likewise.
8771         (vmla_n_u32): Likewise.
8772         (vmlaq_n_s16): Likewise.
8773         (vmlaq_n_s32): Likewise.
8774         (vmlaq_n_u16): Likewise.
8775         (vmlaq_n_u32): Likewise.
8777 2021-01-27  liuhongt  <hongtao.liu@intel.com>
8779         PR target/98833
8780         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
8781         (*sse2_eq<mode>3): Ditto.
8783 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
8785         * tree-pass.h (PROP_trees): Rename to ...
8786         (PROP_gimple): ... this.
8787         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
8788         * passes.c (execute_function_dump, execute_function_todo,
8789         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
8790         * varpool.c (ctor_for_folding): Likewise.
8792 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
8794         PR tree-optimization/97260
8795         * varpool.c: Include tree-pass.h.
8796         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
8797         non-TREE_SIDE_EFFECTS automatic variables.
8799 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
8801         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
8802         or -std=gnu++23.
8803         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
8804         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
8805         (gen_compile_unit_die): Recognise C++23.
8807 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
8809         PR bootstrap/98839
8810         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
8811         in comparison.
8813 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
8815         PR target/98681
8816         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
8817         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
8818         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
8820 2021-01-26  Richard Biener  <rguenther@suse.de>
8822         * gimple-pretty-print.c (dump_binary_rhs): Handle
8823         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
8825 2021-01-26  Richard Biener  <rguenther@suse.de>
8827         PR middle-end/98726
8828         * tree.h (vector_cst_int_elt): Remove.
8829         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
8830         make static.
8832 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
8834         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
8835         for V64DFmode min/max reductions.
8837 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
8839         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
8840         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
8841         two halves, one with x and the other with const0_rtx, ordered
8842         depending on endianity.
8844 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
8846         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
8847         temporaries not seen in binding block, and not about to be
8848         added as gimple variables.
8850 2021-01-25  Martin Sebor  <msebor@redhat.com>
8852         PR c++/98646
8853         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
8855 2021-01-25  Martin Liska  <mliska@suse.cz>
8857         * value-prof.c (get_nth_most_common_value): Use %s instead
8858         of %qs string.
8860 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
8862         PR debug/98811
8863         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
8864         readelf -wi is able to read the emitted .debug_info back.
8865         * configure: Regenerated.
8867 2021-01-25  Martin Liska  <mliska@suse.cz>
8869         PR gcov-profile/98739
8870         * common.opt: Add missing sign symbol.
8871         * value-prof.c (get_nth_most_common_value): Restore handling
8872         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
8873         PROFILE_REPRODUCIBILITY_MULTITHREADED.
8875 2021-01-25  Richard Biener  <rguenther@suse.de>
8877         PR middle-end/98807
8878         * tree.c (vector_element_bits): Always use precision of
8879         the element type for boolean vectors.
8881 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8883         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
8884         (ENDFILE_SPEC): Evaluate qnolinkcmds.
8886 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8888         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
8889         nostartfiles handling since this is already done by
8890         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
8891         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
8892         is already done by LINK_COMMAND_SPEC.
8893         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
8894         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
8895         evaluation.
8897 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
8899         PR testsuite/98771
8900         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
8901         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
8902         value rather than host size_t.
8903         (fold_const_call): Change type of s2 from size_t to
8904         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
8905         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
8906         instead of s2 as last argument.
8908 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
8910         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
8911         VCMLA_OP, VCMUL_OP): New.
8912         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
8913         * config/arm/neon.md (cmul<conj_op><mode>3): New.
8914         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
8915         UNSPEC_VCMUL_CONJ): New.
8916         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
8917         cml<fcmac1><conj_op><mode>4): New.
8919 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
8921         PR testsuite/97301
8922         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
8924 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
8926         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
8927         generator macro.
8928         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
8929         than asm.
8930         (vmla_s16): Likewise.
8931         (vmla_s32): Likewise.
8932         (vmla_u8): Likewise.
8933         (vmla_u16): Likewise.
8934         (vmla_u32): Likewise.
8935         (vmlaq_s8): Likewise.
8936         (vmlaq_s16): Likewise.
8937         (vmlaq_s32): Likewise.
8938         (vmlaq_u8): Likewise.
8939         (vmlaq_u16): Likewise.
8940         (vmlaq_u32): Likewise.
8942 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
8944         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
8945         directive.
8947 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
8949         PR debug/98796
8950         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
8951         filenames to emit, still emit the required 0 index directory and
8952         filename entries that match DW_AT_comp_dir and DW_AT_name of the
8953         compilation unit.
8955 2021-01-22  Marek Polacek  <polacek@redhat.com>
8957         PR c++/98545
8958         * doc/invoke.texi: Update C++ ABI Version 15 description.
8960 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8962         PR tree-optimization/98766
8963         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
8964         comparing against type size with param_avoid_fma_max_bits.
8966 2021-01-22  Richard Biener  <rguenther@suse.de>
8968         PR middle-end/98793
8969         * tree.c (vector_element_bits): Key single-bit bool vector on
8970         integer mode rather than not vector mode.
8972 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
8974         PR target/98093
8975         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8976         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
8977         platforms.
8978         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
8979         to call different path for P8 and P9.
8980         (rs6000_expand_vector_set_var_p9): New function.
8981         (rs6000_expand_vector_set_var_p8): New function.
8983 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
8985         PR target/79251
8986         PR target/98065
8987         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8988         Ajdust variable index vec_insert from address dereference to
8989         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
8990         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
8991         New declaration.
8992         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
8994 2021-01-22  Martin Liska  <mliska@suse.cz>
8996         PR gcov-profile/98739
8997         * profile.c (compute_value_histograms): Drop time profile for
8998         -fprofile-reproducible=multithreaded.
9000 2021-01-22  Nathan Sidwell  <nathan@acm.org>
9002         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
9003         existence here.
9005 2021-01-22  Richard Biener  <rguenther@suse.de>
9007         PR middle-end/98773
9008         * tree-data-ref.c (initalize_matrix_A): Revert previous
9009         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
9011 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
9013         PR tree-optimization/90248
9014         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
9015         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
9016         simplifications.
9017         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
9018         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
9020 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
9022         PR tree-optimization/98255
9023         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
9024         extend index - low_bound from sizetype's precision rather than index
9025         precision.
9026         (get_addr_base_and_unit_offset_1): Likewise.
9027         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
9028         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
9030 2021-01-22  Richard Biener  <rguenther@suse.de>
9032         PR tree-optimization/98786
9033         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
9034         adding new uses of abnormals.  Verify we deal with a conditional
9035         conversion.
9037 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9039         PR target/98636
9040         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
9042 2021-01-22  liuhongt  <hongtao.liu@intel.com>
9044         PR target/96891
9045         PR target/98348
9046         * config/i386/sse.md (VI_128_256): New mode iterator.
9047         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
9048          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
9049          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
9050         define_insn_and_split to lower avx512 vector comparison to avx
9051         version when dest is vector.
9052         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
9053         define_insn_and_split for negating the comparison result.
9054         * config/i386/predicates.md (float_vector_all_ones_operand):
9055         New predicate.
9056         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
9057         general NOT operator without UNSPEC_MASKOP.
9059 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
9061         PR rtl-optimization/98777
9062         * lra-int.h (lra_pmode_pseudo): New extern.
9063         * lra.c (lra_pmode_pseudo): New global.
9064         (lra): Set it up.
9065         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
9067 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
9069         * fwprop.c (fwprop_propagation::classify_result): Allow
9070         (subreg (mem)) simplifications.
9072 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9074         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
9075         Split into...
9076         (aarch64_sqdmlal<mode>): ... This...
9077         (aarch64_sqdmlsl<mode>): ... And this.
9078         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
9079         (aarch64_sqdmlal_lane<mode>): ... This...
9080         (aarch64_sqdmlsl_lane<mode>): ... And this.
9081         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
9082         (aarch64_sqdmlsl_laneq<mode>): ... This...
9083         (aarch64_sqdmlal_laneq<mode>):  ... And this.
9084         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
9085         (aarch64_sqdmlsl_n<mode>): ... This...
9086         (aarch64_sqdmlal_n<mode>): ... And this.
9087         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
9088         (aarch64_sqdmlal2<mode>_internal): ... This...
9089         (aarch64_sqdmlsl2<mode>_internal): ... And this.
9091 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
9093         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
9095 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
9097         PR target/96372
9098         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
9100 2021-01-21  liuhongt  <hongtao.liu@intel.com>
9102         PR rtl-optimization/98694
9103         * regcprop.c (copy_value): If SRC had been assigned a mode
9104         narrower than the copy, we can't link DEST into the chain even
9105         they have same hard_regno_nregs(i.e. HImode/SImode in i386
9106         backend).
9108 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9110         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
9111         Convert to define_insn_and_split.  Split into simple move when moving
9112         bottom element.
9114 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
9116         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
9117         Adjust comment.  Simplify code.
9119 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
9121         PR debug/98765
9122         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
9123         with DW_FORM_line_strp form.
9124         (prune_unused_types_update_strings): Don't add into debug_str_hash
9125         indirect strings with DW_FORM_line_strp form.
9126         (adjust_name_comp_dir): New function.
9127         (dwarf2out_finish): Call it on CU DIEs after resetting
9128         debug_line_str_hash.
9130 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
9132         PR rtl-optimization/98722
9133         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
9134         has no 3-op add insn to transform insns containing two pluses.
9136 2021-01-20  Richard Biener  <rguenther@suse.de>
9138         * hwint.h (add_hwi): New function.
9139         (mul_hwi): Likewise.
9140         * tree-data-ref.c (initialize_matrix_A): Properly translate
9141         tree constants and avoid HOST_WIDE_INT_MIN.
9142         (lambda_matrix_row_add): Avoid undefined integer overflow
9143         and return true on such overflow.
9144         (lambda_matrix_right_hermite): Handle overflow from
9145         lambda_matrix_row_add gracefully.  Simplify previous fix.
9146         (analyze_subscript_affine_affine): Likewise.
9148 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
9150         PR tree-optimization/96674
9151         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
9152         x >= y && y != XXX_MIN --> x > y - 1
9154 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
9156         PR tree-optimization/98535
9157         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
9158         If the high and low permutes are the same, remove the high permutes
9159         from the working set and only continue with the low ones.
9161 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
9163         PR tree-optimization/98721
9164         * builtins.c (access_ref::inform_access): Don't assume
9165         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
9166         object whenever allocfn is NULL, rather than only when DECL_P
9167         is true.  Use %qE instead of %qD for that.  Formatting fixes.
9169 2021-01-20  Richard Biener  <rguenther@suse.de>
9171         PR tree-optimization/98758
9172         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
9173         (lambda_matrix_right_hermite): Avoid undefinedness with
9174         signed integer abs and multiplication.
9175         (analyze_subscript_affine_affine): Use lambda_int.
9177 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
9179         PR debug/98751
9180         * dwarf2out.c (output_line_info): Rename static variable
9181         "generation", moving it out of the function to...
9182         (output_line_info_generation): New.
9183         (init_sections_and_labels): Likewise, renaming the variable to...
9184         (init_sections_and_labels_generation): New.
9185         (dwarf2out_c_finalize): Reset the new variables.
9187 2021-01-19  Martin Sebor  <msebor@redhat.com>
9189         PR middle-end/98664
9190         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
9191         all functions, even if they're not declared artificial or inline.
9192         * tree.c (tree_inlined_location): Use macro expansion location
9193         only if scope traversal fails to expose one.
9195 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
9197         PR rtl-optimization/92294
9198         * alias.c (compare_base_symbol_refs): Take an extra parameter
9199         and add the distance between two symbols to it.  Enshrine in
9200         comments that -1 means "either 0 or 1, but we can't tell
9201         which at compile time".
9202         (memrefs_conflict_p): Update call accordingly.
9203         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
9204         into account.
9206 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9208         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
9209         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
9210         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
9211         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
9212         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
9213         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
9214         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
9215         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
9216         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
9217         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
9218         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
9219         sqmovun): Use NONE flags.
9221 2021-01-19  Richard Biener  <rguenther@suse.de>
9223         PR ipa/98330
9224         * ipa-modref.c (analyze_stmt): Only record a summary for a
9225         direct call.
9227 2021-01-19  Richard Biener  <rguenther@suse.de>
9229         PR middle-end/98638
9230         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
9232 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
9234         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
9235         built-in define __FIX_LEON3FT_TN0018.
9237 2021-01-19  Richard Biener  <rguenther@suse.de>
9239         PR ipa/97673
9240         * tree-inline.c (tree_function_versioning): Set input_location
9241         to UNKNOWN_LOCATION throughout the function.
9243 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
9245         PR fortran/98476
9246         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
9248 2021-01-19  Martin Jambor  <mjambor@suse.cz>
9250         PR ipa/98690
9251         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
9252         whether non-call exceptions allow removal of a statement.
9253         (isra_analyze_call): Pass the appropriate function to
9254         ssa_name_only_returned_p.
9256 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
9258         * config/riscv/arch-canonicalize (longext_sort): New function for
9259          sorting 'multi-letter'.
9260         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
9261         'alts'. The 'arch' may not be the first of 'alts'.
9262         (_expand_combination): Add underline for the 'ext' without '*'.
9263         This is because, a single-letter extension can always be treated well
9264         with a '_' prefix, but it cannot be separated out if it is appended
9265         to a multi-letter.
9267 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
9269         PR target/97847
9270         * ira.c (ira): Skip abnormal critical edge splitting.
9272 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
9274         PR tree-optimization/98727
9275         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
9276         second .MUL_OVERFLOW operand for signed multiplication with overflow
9277         checking if the second operand of multiplication is not constant.
9279 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
9281         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
9282         defaults to version 4.
9284 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
9286         * attribs.h (fndecl_dealloc_argno): New decl.
9287         * builtins.c (call_dealloc_argno): Split out second half of
9288         function into...
9289         (fndecl_dealloc_argno): New.
9290         * doc/extend.texi (Common Function Attributes): Document the
9291         interaction between the analyzer and the malloc attribute.
9292         * doc/invoke.texi (Static Analyzer Options): Likewise.
9294 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
9296         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
9297         dwarf_version to 4.
9298         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
9300 2021-01-17  Martin Jambor  <mjambor@suse.cz>
9302         PR ipa/98222
9303         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
9304         the clone tree.
9306 2021-01-17  Mark Wielaard  <mark@klomp.org>
9308         * common.opt (gdwarf-): Init(5).
9309         * doc/invoke.texi (-gdwarf): Document default to 5.
9311 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
9313         * builtin-types.def
9314         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
9315         to...
9316         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
9317         ...this.  Add extra argument.
9318         * gimplify.c (omp_default_clause): Ensure that event handle is
9319         firstprivate in a task region.
9320         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
9321         (gimplify_adjust_omp_clauses): Likewise.
9322         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
9323         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
9324         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
9325         if detach clause specified.  Add detach argument when generating
9326         call to GOMP_task.
9327         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
9328         clause.
9329         (finish_taskreg_scan): Move field for variable containing the event
9330         handle to the front of the struct.
9331         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
9332         ordering.
9333         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9334         OMP_CLAUSE_DETACH clause.
9335         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
9336         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
9337         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
9338         Fix ordering.
9339         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
9340         ordering.
9341         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
9343 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9345         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
9346         multilib directory names.  Use MULTILIB_REQUIRED instead of
9347         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
9348         -mcustom-fpu-cfg=fph2 multilib.
9350 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9352         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
9353         (nios2_init_fpu_configs): Provide register values for new
9354         -mcustom-fpu-cfg=fph2 option variant.
9355         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
9356         variant.
9358 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9360         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
9361         custom instruction warnings.
9363 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
9365         PR tree-optimization/96669
9366         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
9368 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
9370         PR tree-optimization/96271
9371         * passes.def: Pass false argument to first two pass_cd_dce
9372         instances and true to last instance.  Add comment that
9373         last instance rewrites no longer addressed locals.
9374         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
9375         initialize it.
9376         (pass_cd_dce::set_pass_param): New method.
9377         (pass_cd_dce::execute): Return TODO_update_address_taken from
9378         last cd_dce instance.
9380 2021-01-15  Carl Love  <cel@us.ibm.com>
9382         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
9383         New defines.
9384         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
9385         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
9386         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
9387         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
9388         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
9389         Add builtin define.
9390         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
9391         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
9392         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
9393         New overloaded definitions.
9394         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
9395         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
9396         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
9397         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
9398         P10V_BUILTIN_MULHU_V4SI]: Add case
9399         statement for builtins.
9400         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
9401         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
9402         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
9403         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
9404         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
9405         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
9406         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
9407         Add define_insn, mode is VIlong.
9408         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
9409         Add builtin descriptions.
9411 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9413         * final.c (final_start_function_1): Reset force_source_line.
9415 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
9417         PR tree-optimization/96669
9418         * match.pd (((1 << A) & 1) != 0 -> A == 0,
9419         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
9420         possibly different power of two constants and to right shift too.
9422 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
9424         PR tree-optimization/96681
9425         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
9426         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
9427         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
9428         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
9430 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
9432         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
9434 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
9436         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
9437         cmul<conj_op><mode>3): New.
9438         * config/aarch64/iterators.md (UNSPEC_FCMUL,
9439         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
9440         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
9441         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
9442         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
9443         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
9444         (rot_op): Renamed to conj_op.
9445         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
9446         cmul<conj_op><mode>3): New.
9447         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
9448         cmul<conj_op><mode>3): New.
9450 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
9452         PR bootstrap/98696
9453         * diagnostic.c
9454         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
9455         Escape the tempfile name when constructing the expected output.
9457 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9459         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
9460         Rename to...
9461         (aarch64_<su>mlsl_hi<mode>): ... This.
9462         (aarch64_<su>mlsl_hi<mode>): Define.
9463         (*aarch64_<su>mlsl<mode): Rename to...
9464         (aarch64_<su>mlsl<mode): ... This.
9465         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
9466         smlsl_hi, umlsl_hi): Define builtins.
9467         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
9468         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
9469         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
9470         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
9472 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
9474         * config/i386/i386-c.c (ix86_target_macros):
9475         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
9477 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
9479         PR target/88836
9480         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
9481         * Makefile.in (RTL_SSA_H): New variable.
9482         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
9483         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
9484         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
9485         pass_combine.
9486         * config/aarch64/aarch64-cc-fusion.cc: New file.
9488 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
9490         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
9491         calling cancel_changes for changes that no longer exist.
9493 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
9495         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
9496         (function_info::reg_defs): ...this.
9497         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
9498         (function_info::reg_defs): ...this.
9500 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
9502         PR target/71233
9503         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
9505 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
9507         Revert:
9508         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
9510         PR target/71233
9511         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
9513 2021-01-15  Richard Biener  <rguenther@suse.de>
9515         PR tree-optimization/96376
9516         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
9517         for VMAT_INVARIANT.
9519 2021-01-15  Martin Liska  <mliska@suse.cz>
9521         * doc/install.texi: Document that some tests need pytest module.
9522         * doc/sourcebuild.texi: Likewise.
9524 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
9526         PR target/71233
9527         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
9529 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
9531         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
9532         (mve_vshrq_n_u<mode>_imm): Likewise.
9533         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
9534         * config/arm/vec-common.md: ... here.
9536 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
9538         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
9539         vec-commond.md.
9540         * config/arm/neon.md (vashl<mode>3): Delete.
9541         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
9542         (vasl<mode>3): New expander.
9544 2021-01-15  Richard Biener  <rguenther@suse.de>
9546         PR tree-optimization/98685
9547         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
9548         of vector extern defs.
9550 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
9552         PR jit/98586
9553         * diagnostic.c (diagnostic_kind_text): Break out this array
9554         from...
9555         (diagnostic_build_prefix): ...here.
9556         (fancy_abort): Detect when diagnostic_initialize has not yet been
9557         called and fall back to a minimal implementation of printing the
9558         ICE, rather than segfaulting in internal_error.
9560 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
9562         * diagnostic.c (diagnostic_initialize): Eliminate
9563         parseable_fixits_p in favor of initializing extra_output_kind from
9564         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
9565         (convert_column_unit): New function, split out from...
9566         (diagnostic_converted_column): ...this.
9567         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
9568         Use them to call convert_column_unit on the column values.
9569         (diagnostic_report_diagnostic): Eliminate conditional on
9570         parseable_fixits_p in favor of a switch statement on
9571         extra_output_kind, passing the appropriate values to the new
9572         params of print_parseable_fixits.
9573         (selftest::test_print_parseable_fixits_none): Update for new
9574         params of print_parseable_fixits.
9575         (selftest::test_print_parseable_fixits_insert): Likewise.
9576         (selftest::test_print_parseable_fixits_remove): Likewise.
9577         (selftest::test_print_parseable_fixits_replace): Likewise.
9578         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
9579         New.
9580         (selftest::diagnostic_c_tests): Call it.
9581         * diagnostic.h (enum diagnostics_extra_output_kind): New.
9582         (diagnostic_context::parseable_fixits_p): Delete field in favor
9583         of...
9584         (diagnostic_context::extra_output_kind): ...this new field.
9585         * doc/invoke.texi (Environment Variables): Add
9586         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
9587         * opts.c (common_handle_option): Update handling of
9588         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
9589         fields.
9591 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
9593         * tree-vect-slp-patterns.c (class complex_operations_pattern,
9594         complex_operations_pattern::matches,
9595         complex_operations_pattern::recognize,
9596         complex_operations_pattern::build): New.
9597         (slp_patterns): Use it.
9599 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
9601         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
9602         * optabs.def (cmls_optab, cmls_conj_optab): New.
9603         * doc/md.texi: Document them.
9604         * tree-vect-slp-patterns.c (class complex_fms_pattern,
9605         complex_fms_pattern::matches, complex_fms_pattern::recognize,
9606         complex_fms_pattern::build): New.
9608 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
9610         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
9611         * optabs.def (cmla_optab, cmla_conj_optab): New.
9612         * doc/md.texi: Document them.
9613         * tree-vect-slp-patterns.c (vect_match_call_p,
9614         class complex_fma_pattern, vect_slp_reset_pattern,
9615         complex_fma_pattern::matches, complex_fma_pattern::recognize,
9616         complex_fma_pattern::build): New.
9618 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
9620         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
9621         * optabs.def (cmul_optab, cmul_conj_optab): New.
9622         * doc/md.texi: Document them.
9623         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
9624         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
9625         vect_build_combine_node, class complex_mul_pattern,
9626         complex_mul_pattern::matches, complex_mul_pattern::recognize,
9627         complex_mul_pattern::build): New.
9629 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
9631         * tree-vect-slp.c (optimize_load_redistribution_1): New.
9632         (optimize_load_redistribution, vect_is_slp_load_node): New.
9633         (vect_match_slp_patterns): Use it.
9635 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
9637         * tree-vect-slp-patterns.c (complex_add_pattern::build):
9638         Elide nodes.
9640 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
9642         * config/gcn/mkoffload.c (main): Create an offload image only in
9643         64-bit configurations.
9645 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
9647         PR target/98667
9648         * config/i386/i386-options.c (ix86_option_override_internal):
9649         Issue an error for -fcf-protection with CF_BRANCH when compiling
9650         for 32-bit non-TARGET_CMOV targets.
9652 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
9654         PR target/98671
9655         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
9656         Remove declaration and initialization of shadow variable "ret".
9657         (ix86_option_override_internal): Remove delcaration of
9658         shadow variable "i".  Redeclare shadowed variable to unsigned.
9659         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
9660         * config/i386/i386-builtins.c (get_builtin_code_for_version):
9661         Update for redeclaration.
9662         * config/i386/i386.h (pta_size): Ditto.
9664 2021-01-14  Richard Biener  <rguenther@suse.de>
9666         PR tree-optimization/98674
9667         * tree-data-ref.c (base_supports_access_fn_components_p): New.
9668         (initialize_data_dependence_relation): For two bases without
9669         possible access fns resort to type size equality when determining
9670         shape compatibility.
9672 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9674         PR target/66791
9675         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
9676         <=, >= operators in vcle and vcge intrinsics respectively.
9677         * config/arm/arm_neon_builtins.def: Remove entry for
9678         vcge and vcgeu.
9680 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
9682         PR target/98671
9683         * config/i386/i386-options.c (ix86_function_specific_save):
9684         Remove redundant assignment to opts->x_ix86_branch_cost.
9685         * config/i386/i386.c (ix86_prefetch_sse):
9686         Rename from x86_prefetch_sse.  Update all uses.
9687         * config/i386/i386.h: Update for rename.
9688         * config/i386/i386-options.h: Ditto.
9690 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
9692         PR target/98670
9693         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
9694         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
9695         Use Bm instead of m for non-avx.  Add isa attribute.
9697 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
9699         PR tree-optimization/96688
9700         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
9701         ~X can be simplified.
9703 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
9705         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
9706         IFN_LOAD_LANES results.
9708 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9710         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
9711         Define.
9712         (aarch64_xtn<mode>): Likewise.
9713         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
9714         Define
9715         builtins.
9716         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
9717         builtin.
9718         (vmovl_s16): Likewise.
9719         (vmovl_s32): Likewise.
9720         (vmovl_u8): Likewise.
9721         (vmovl_u16): Likewise.
9722         (vmovl_u32): Likewise.
9723         (vmovn_s16): Likewise.
9724         (vmovn_s32): Likewise.
9725         (vmovn_s64): Likewise.
9726         (vmovn_u16): Likewise.
9727         (vmovn_u32): Likewise.
9728         (vmovn_u64): Likewise.
9730 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9732         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
9733         Define.
9734         (aarch64_<su>qxtn2<mode>_be): Likewise.
9735         (aarch64_<su>qxtn2<mode>): Likewise.
9736         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
9737         Define builtins.
9738         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
9739         (su): Handle ss_truncate and us_truncate.
9740         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
9741         builtin.
9742         (vqmovn_high_s32): Likewise.
9743         (vqmovn_high_s64): Likewise.
9744         (vqmovn_high_u16): Likewise.
9745         (vqmovn_high_u32): Likewise.
9746         (vqmovn_high_u64): Likewise.
9748 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9750         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
9751         Define.
9752         (aarch64_xtn2<mode>_be): Likewise.
9753         (aarch64_xtn2<mode>): Likewise.
9754         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
9755         builtins.
9756         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
9757         builtins.
9758         (vmovn_high_s32): Likewise.
9759         (vmovn_high_s64): Likewise.
9760         (vmovn_high_u16): Likewise.
9761         (vmovn_high_u32): Likewise.
9762         (vmovn_high_u64): Likewise.
9764 2021-01-13  Stafford Horne  <shorne@gmail.com>
9766         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
9768 2021-01-13  Stafford Horne  <shorne@gmail.com>
9770         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
9772 2021-01-13  Stafford Horne  <shorne@gmail.com>
9774         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
9775           define for __or1k_hard_float__.
9777 2021-01-13  Stafford Horne  <shorne@gmail.com>
9779         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
9780         (PROFILE_HOOK): Define to call _mcount.
9781         (FUNCTION_PROFILER): Change from abort to no-op.
9783 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
9785         PR tree-optimization/96691
9786         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
9787         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
9788         (~D ^ C) or (D ^ C) can be simplified.
9790 2021-01-13  Richard Biener  <rguenther@suse.de>
9792         PR tree-optimization/92645
9793         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
9794         until after vector lowering.
9796 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9798         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
9799         to SVE_I.
9800         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
9801         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
9803 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9805         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
9806         to SVE_I.
9807         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
9808         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
9810 2021-01-13  Richard Biener  <rguenther@suse.de>
9812         PR tree-optimization/92645
9813         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
9814         BIT_FIELD_REF argument.
9815         (vect_build_slp_tree_2): Record the desired vector type
9816         on the external vector def.
9817         (vectorizable_slp_permutation): Handle required punning
9818         of existing vector defs.
9820 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9822         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
9824 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9826         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
9828 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9830         * config.gcc [$target == *-*-gnu*]: Enable
9831         'default_gnu_indirect_function'.
9833 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
9835         PR target/95905
9836         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
9837         registers before calling targetm.vectorize.vec_perm_const, only after
9838         that.
9839         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
9840         two argument permutation when one operand is zero vector and only
9841         after that force operands into registers.
9842         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
9843         define_insn_and_split pattern.
9844         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
9845         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
9846         (*avx2_zero_extendv8hiv8si2_1): Likewise.
9847         (*avx512f_zero_extendv8siv8di2_1): Likewise.
9848         (*avx2_zero_extendv4siv4di2_1): Likewise.
9849         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
9850         into registers.
9851         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
9852         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
9853         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
9854         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
9855         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
9856         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
9858 2021-01-13  Martin Liska  <mliska@suse.cz>
9860         PR tree-optimization/98455
9861         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
9862         Record also virtual PHIs.
9863         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
9864         conditionally.
9866 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
9868         * doc/invoke.texi (C++ Modules): Fix typos.
9870 2021-01-13  Richard Biener  <rguenther@suse.de>
9872         PR tree-optimization/98640
9873         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
9874         handle plus or minus from a truncated operand to be
9875         sign-extended.
9877 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
9879         PR target/96938
9880         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
9881         define_insn_and_split patterns.
9882         (splitter after *btr<mode>_2): New splitter.
9884 2021-01-13  Martin Liska  <mliska@suse.cz>
9886         PR ipa/98652
9887         * cgraphunit.c (analyze_functions): Remove dead code.
9889 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
9891         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
9892         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
9893         (a64fx_regmove_cost, a64fx_vector_cost): New.
9894         (a64fx_tunings): Use the new added cost tables.
9896 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
9898         PR target/95905
9899         * config/i386/predicates.md (pmovzx_parallel): New predicate.
9900         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
9901         define_insn_and_split pattern.
9902         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
9903         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
9905 2021-01-13  Julian Brown  <julian@codesourcery.com>
9907         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
9908         to fix v0 register.
9910 2021-01-13  Julian Brown  <julian@codesourcery.com>
9912         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
9913         on entry to a BB.
9915 2021-01-13  Julian Brown  <julian@codesourcery.com>
9917         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
9918         for reciprocal-approximation instructions.
9919         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
9920         refinement and division result.
9921         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
9923 2021-01-13  Julian Brown  <julian@codesourcery.com>
9925         * config/gcn/gcn-valu.md (subdf): Rename to...
9926         (subdf3): This.
9928 2021-01-12  Martin Liska  <mliska@suse.cz>
9930         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
9932 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
9934         * function-abi.h: Fix typo.
9936 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
9938         PR target/97875
9939         PR target/97875
9940         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
9941         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
9942         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
9943         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
9944         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
9945         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
9946         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
9947         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
9948         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
9949         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
9950         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
9951         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
9952         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
9953         (ARM_HAVE_V2DI_LDST): Likewise.
9954         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
9955         (*movmisalign<mode>_mve_load): New pattern.
9956         * config/arm/neon.md (movmisalign<mode>): Move to ...
9957         * config/arm/vec-common.md: ... here.
9959 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
9961         PR target/97969
9962         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
9963         of pattern 'plus (plus (hard reg, const), pseudo)'.
9965 2021-01-12  Richard Biener  <rguenther@suse.de>
9967         PR tree-optimization/98550
9968         * tree-vect-slp.c (vect_record_max_nunits): Check whether
9969         the group size is a multiple of the vector element count.
9970         (vect_build_slp_tree_1): When we need to fail because
9971         the vector type choosen causes unrolling do so lazily
9972         without affecting matches only at the end to guide group splitting.
9974 2021-01-12  Martin Liska  <mliska@suse.cz>
9976         PR c++/97284
9977         * optc-save-gen.awk: Compare also n_target_save vars with
9978         strcmp.
9980 2021-01-12  Martin Liska  <mliska@suse.cz>
9982         * gcov.c (source_info::debug): New.
9983         (print_usage): Add --debug (-D) option.
9984         (process_args): Likewise.
9985         (generate_results): Call src->debug after
9986         accumulate_line_counts.
9987         (read_graph_file): Properly assign id for EXIT_BLOCK.
9988         * profile.c (branch_prob): Dump function body before it is
9989         instrumented.
9991 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
9993         PR tree-optimization/98629
9994         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
9995         unless returning non-zero.
9997 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
9999         PR tree-optimization/95731
10000         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
10001         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
10002         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
10003         only after optimize_range_tests_var_bound.
10005 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
10007         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
10008         * configure: Regenerated.
10010 2021-01-12  liuhongt  <hongtao.liu@intel.com>
10012         PR target/98612
10013         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
10014         Deleted.
10015         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
10016         dead code.
10018 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
10020         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
10021         declare.
10022         (auto_end_imm_use_stmt_traverse): New struct.
10023         (FOR_EACH_IMM_USE_STMT): Use it.
10024         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
10025         along with uses...
10026         * gimple-ssa-strength-reduction.c: ... here, ...
10027         * graphite-scop-detection.c: ... here, ...
10028         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
10029         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
10030         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
10031         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
10032         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
10033         * tree-vect-slp.c: ... and here, ...
10034         * doc/tree-ssa.texi: ... and the example here.
10036 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10038         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
10039         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
10040         (*sdiv_pow2<mode>3): New pattern.
10041         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
10042         Wrap the ASRD in an UNSPEC_PRED_X.
10043         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
10044         predicate with a constant PTRUE, if it isn't already.
10045         (*cond_<sve_int_op><mode>_z): Replace with...
10046         (*cond_<sve_int_op><mode>_any): ...this new pattern.
10048 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10050         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
10051         SVE_FULL_I to SVE_I.
10052         (*cond_bic<mode>_any): Likewise.
10054 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10056         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
10057         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
10058         to SVE_I.
10060 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10062         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
10063         SVE_FULL_I to SVE_I.
10064         (*aarch64_cond_<su>abd<mode>_2): Likewise.
10065         (*aarch64_cond_<su>abd<mode>_any): Likewise.
10066         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
10067         for the max and min but not for the minus.
10068         (*aarch64_cond_<su>abd<mode>_3): New pattern.
10070 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10072         * config/aarch64/iterators.md (SVE_24I): New iterator.
10073         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
10074         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
10076 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10078         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
10079         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
10080         to SVE_I.
10081         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
10082         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
10083         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
10084         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
10086 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10088         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
10089         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
10090         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
10091         to SVE_I.
10093 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
10095         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
10096         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
10097         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
10099 2021-01-11  Martin Liska  <mliska@suse.cz>
10101         PR jit/98615
10102         * symtab-clones.h (clone_info::release): Release
10103         symtab::m_clones with ggc_delete as it's a GGC memory.
10105 2021-01-11  Matthias Klose  <doko@ubuntu.com>
10107         * Makefile.in (LINK_PROGRESS): Show the link target.
10109 2021-01-11  Richard Biener  <rguenther@suse.de>
10111         PR tree-optimization/91403
10112         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
10113         single-element interleaving group size at 4096 elements.
10115 2021-01-11  Richard Biener  <rguenther@suse.de>
10117         PR tree-optimization/98526
10118         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
10119         of the actual reduction op for the regular case.
10120         (vectorizable_reduction): Cost the stmts
10121         vect_transform_reduction produces here.
10123 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
10125         * tree-ssa-forwprop.c (simplify_vector_constructor): For
10126         big-endian, use UNPACK[_FLOAT]_HI.
10128 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
10130         * tree-vect-slp-patterns.c (class complex_pattern,
10131         class complex_add_pattern): Add parameters to matches.
10132         (complex_add_pattern::build): Free memory.
10133         (complex_add_pattern::matches): Move validation end of match.
10134         (complex_add_pattern::recognize): Likewise.
10136 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
10138         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
10140 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
10142         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
10144 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
10146         PR tree-optimization/95867
10147         * tree-ssa-math-opts.h: New header.
10148         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
10149         (powi_as_mults): No longer static.  Use build_one_cst instead of
10150         build_real.  Formatting fix.
10151         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
10152         (attempt_builtin_powi): Handle multiplication reassociation without
10153         powi_fndecl using powi_as_mults.
10154         (reassociate_bb): For integral types don't require
10155         -funsafe-math-optimizations to call attempt_builtin_powi.
10157 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
10159         PR tree-optimization/95852
10160         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
10161         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
10162         allow in the bb any of the stmts in that vector, div_stmt and
10163         up to 3 cast stmts.
10164         (arith_cast_equal_p): New function.
10165         (arith_overflow_check_p): Add cast_stmt argument, handle signed
10166         multiply overflow checks.
10167         (match_arith_overflow): Adjust caller.  Handle signed multiply
10168         overflow checks.
10170 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
10172         PR tree-optimization/95852
10173         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
10174         (uaddsub_overflow_check_p): Renamed to ...
10175         (arith_overflow_check_p): ... this.  Handle also multiplication
10176         with overflow check.
10177         (match_uaddsub_overflow): Renamed to ...
10178         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
10179         also multiplication with overflow check.  Adjust function comment.
10180         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
10181         match_arith_overflow also for MULT_EXPR.
10183 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10185         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
10186         __builtin_convertvector.
10187         (vmovl_s16): Likewise.
10188         (vmovl_s32): Likewise.
10189         (vmovl_u8): Likewise.
10190         (vmovl_u16): Likewise.
10191         (vmovl_u32): Likewise.
10192         (vmovn_s16): Likewise.
10193         (vmovn_s32): Likewise.
10194         (vmovn_s64): Likewise.
10195         (vmovn_u16): Likewise.
10196         (vmovn_u32): Likewise.
10197         (vmovn_u64): Likewise.
10199 2021-01-11  Martin Liska  <mliska@suse.cz>
10201         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
10202         (if_chain::is_beneficial): Delete clusters
10203         (find_conditions): Make second argument of conditions_in_bbs a
10204         pointer so that we control over it's lifetime.
10205         (pass_if_to_switch::execute): Delete them.
10207 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
10209         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
10210         it isn't set.
10212 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
10214         * config/vax/vax.md (cc): Remove mode attribute.
10215         (subst_<cc>, subst_f<cc>): Rename to...
10216         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
10217         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
10218         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
10219         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
10221 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
10223         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
10224         `const_double_zero'.
10226 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
10228         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
10229         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
10230         operands.
10232 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
10234         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
10235         rtx.
10236         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
10237         with `const_double_zero'.
10238         * doc/rtl.texi (Constant Expression Types): Document it.
10240 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
10242         PR c++/98556
10243         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
10244         POINTER_DIFF_EXPR to be any integral type.
10246 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
10248         PR rtl-optimization/98603
10249         * function.c (instantiate_virtual_regs_in_insn): For asm goto
10250         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
10251         if any, set ASM_OPERANDS mode to VOIDmode and change
10252         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
10254 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
10256         PR debug/97714
10257         * final.c (notice_source_line): Narrow down the condition to
10258         skip a line-0 marker.
10260 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
10262         * ipa-modref.c (merge_call_side_effects): Fix
10263         linebreak split by reordering two print calls.
10265 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
10267         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
10268         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
10269         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
10270         consistency, fix constraint.
10272 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
10274         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
10275         callables instead of mask values.
10276         (struct target_flag_set_p): New predicate.
10277         (s390_cpu_cpp_builtins_internal): Define or undefine
10278         __LONG_DOUBLE_VX__ macro.
10280 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
10282         PR target/98482
10283         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
10284         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
10285         targets.
10287 2021-01-08  Richard Biener  <rguenther@suse.de>
10289         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
10291 2021-01-08  Richard Biener  <rguenther@suse.de>
10293         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
10294         (vect_build_slp_tree): On cache hit release the matched
10295         scalar stmts vector.
10296         * tree-vect-stmts.c (vectorizable_store): Properly free
10297         vec_oprnds before possibly gathering them again.
10299 2021-01-08  Richard Biener  <rguenther@suse.de>
10301         PR tree-optimization/98544
10302         * tree-vect-slp.c (vect_optimize_slp): Always materialize
10303         permutes at a permute node.
10305 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
10307         PR target/98482
10308         * config/i386/i386.c (x86_function_profiler): Use R10 to call
10309         mcount in large model.  Sorry for large model with PIC.
10311 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
10313         PR target/98585
10314         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
10315         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
10316         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
10317         TargetSave and initialize for variables with enum types.
10318         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
10319         mstack-protector-guard-symbol=): Add Save.
10320         * config/i386/i386-options.c (ix86_function_specific_save,
10321         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
10322         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
10323         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
10324         x_ix86_veclibabi_type.
10326 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
10328         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
10329         SVE_FULL_I to SVE_I.
10330         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
10332 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
10334         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
10335         SVE_FULL_I to SVE_I.
10336         (*cond_uxt<mode>_any): Likewise.
10338 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10340         * config/aarch64/iterators.md (Vwhalf): New iterator.
10341         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
10342         Rename to...
10343         (aarch64_<sur>adalp<mode>): ... This.  Make more
10344         builtin-friendly.
10345         (<sur>sadv16qi): Adjust callsite of the above.
10346         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
10347         builtins.
10348         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
10349         builtins.
10350         (vpadal_s16): Likewise.
10351         (vpadal_u8): Likewise.
10352         (vpadal_u16): Likewise.
10353         (vpadalq_s8): Likewise.
10354         (vpadalq_s16): Likewise.
10355         (vpadalq_s32): Likewise.
10356         (vpadalq_u8): Likewise.
10357         (vpadalq_u16): Likewise.
10358         (vpadalq_u32): Likewise.
10360 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10362         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
10363         Rename to...
10364         (aarch64_<su>abd<mode>): ... This.
10365         (<sur>sadv16qi): Adjust callsite of the above.
10366         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
10367         builtins.
10368         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
10369         builtin.
10370         (vabd_s16): Likewise.
10371         (vabd_s32): Likewise.
10372         (vabd_u8): Likewise.
10373         (vabd_u16): Likewise.
10374         (vabd_u32): Likewise.
10375         (vabdq_s8): Likewise.
10376         (vabdq_s16): Likewise.
10377         (vabdq_s32): Likewise.
10378         (vabdq_u8): Likewise.
10379         (vabdq_u16): Likewise.
10380         (vabdq_u32): Likewise.
10382 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10384         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
10385         builtins.
10386         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
10387         (vaba_s16): Likewise.
10388         (vaba_s32): Likewise.
10389         (vaba_u8): Likewise.
10390         (vaba_u16): Likewise.
10391         (vaba_u32): Likewise.
10392         (vabaq_s8): Likewise.
10393         (vabaq_s16): Likewise.
10394         (vabaq_s32): Likewise.
10395         (vabaq_u8): Likewise.
10396         (vabaq_u16): Likewise.
10397         (vabaq_u32): Likewise.
10399 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10401         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
10402         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
10403         Change RTL pattern to match.
10405 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
10407         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
10408         * config/riscv/riscv-c.c (riscv-subset.h): New.
10409         (INCLUDE_STRING): Define.
10410         (riscv_cpu_cpp_builtins): Add new style architecture extension
10411         test macros.
10412         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
10413         (riscv_subset_list::end): New.
10414         (riscv_current_subset_list): New.
10416 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
10418         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
10419         Move to riscv-subset.h.
10420         (struct riscv_subset_t): Ditto.
10421         (class riscv_subset_list): Ditto.
10422         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
10423         from riscv-common.c.
10424         (struct riscv_subset_t): Ditto.
10425         (class riscv_subset_list): Ditto.
10426         * config/riscv/t-riscv ($(common_out_file)): Add file
10427         dependency.
10429 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
10431         PR target/98567
10432         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
10433         New define_insn patterns.
10435 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10437         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
10438         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
10439         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
10441 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10443         PR tree-optimization/98560
10444         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
10445         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
10446         argument 1.
10447         (vec_cond_direct): Likewise argument 2.
10448         (vec_condu_direct, vec_condeq_direct): Delete.
10449         (expand_vect_cond_optab_fn): Rename to...
10450         (expand_vec_cond_optab_fn): ...this, replacing old macro.
10451         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
10452         (expand_vect_cond_mask_optab_fn): Rename to...
10453         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
10454         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
10455         convert optab.
10456         (direct_vec_cond_optab_supported_p): Likewise.
10457         (direct_vec_condu_optab_supported_p): Delete.
10458         (direct_vec_condeq_optab_supported_p): Delete.
10459         * gimple-isel.cc: Include internal-fn.h.
10460         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
10461         before using it.
10463 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
10465         PR tree-optimization/98560
10466         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
10467         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
10469 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
10471         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
10472         rotate_insn and optab code attributes.
10473         Update all uses to merged code attribute.
10474         * config/i386/sse.md: Update all uses to merged code attribute.
10475         * config/i386/mmx.md: Update all uses to merged code attribute.
10477 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
10479         PR tree-optimization/98568
10480         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
10481         (bswap_replace): Use it.
10483 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
10485         PR rtl-optimization/97978
10486         * lra-int.h (lra_hard_reg_split_p): New external.
10487         * lra.c (lra_hard_reg_split_p): New global.
10488         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
10489         * lra-assigns.c (lra_assign): Don't check allocation correctness
10490         after hard reg splitting.
10492 2021-01-06  Martin Sebor  <msebor@redhat.com>
10494         PR c++/98305
10495         * builtins.c (new_delete_mismatch_p): New overload.
10496         (new_delete_mismatch_p (tree, tree)): Call it.
10498 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
10500         * Makefile.in (T_GLIMITS_H): New.
10501         (stmp-int-hdrs): Depend on it, use it.
10502         * config/t-vxworks (T_GLIMITS_H): Override it.
10503         (vxw-glimits.h): New.
10505 2021-01-06  Richard Biener  <rguenther@suse.de>
10507         PR tree-optimization/98513
10508         * value-range.cc (intersect_ranges): Compare the upper bounds
10509         for the expected relation.
10511 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10513         Revert:
10514         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
10516         * doc/standards.texi (HSAIL): Remove section.
10518 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10520         * configure: Re-generate.
10522 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10524         * doc/invoke.texi (-std=c++20): Adjust for the publication of
10525         ISO 14882:2020 standard.
10526         * doc/standards.texi: Likewise.
10528 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10530         PR tree-optimization/94802
10531         * expr.h (maybe_optimize_sub_cmp_0): Declare.
10532         * expr.c: Include tree-pretty-print.h and flags.h.
10533         (maybe_optimize_sub_cmp_0): New function.
10534         (do_store_flag): Use it.
10535         * cfgexpand.c (expand_gimple_cond): Likewise.
10537 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
10539         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
10540         * rtlanal.c (simple_regno_set): Tweak description to clarify the
10541         RMW condition.
10543 2021-01-05  Richard Biener  <rguenther@suse.de>
10545         PR tree-optimization/98516
10546         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
10547         lanes when materializing on a VEC_PERM node.
10548         (vectorizable_slp_permutation): Dump the permute properly.
10550 2021-01-05  Richard Biener  <rguenther@suse.de>
10552         * tree-vect-slp.c (vect_slp_region): Move debug counter
10553         to cover individual subgraphs.
10555 2021-01-05  Richard Biener  <rguenther@suse.de>
10557         PR tree-optimization/98428
10558         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
10559         vector lane extracts for loop vectorization.
10561 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10563         PR tree-optimization/98514
10564         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
10565         int64_t *.
10566         (operand_rank): Change type from hash_map<tree, long> to
10567         hash_map<tree, int64_t>.
10568         (phi_rank): Change return type from long to int64_t.
10569         (loop_carried_phi): Change block_rank variable type from long to
10570         int64_t.
10571         (propagate_rank): Change return type, rank parameter type and
10572         op_rank variable type from long to int64_t.
10573         (find_operand_rank): Change return type from long to int64_t
10574         and change slot variable type from long * to int64_t *.
10575         (insert_operand_rank): Change rank parameter type from long to
10576         int64_t.
10577         (get_rank): Change return type and rank variable type from long to
10578         int64_t.  Use PRId64 instead of ld to print the rank.
10579         (init_reassoc): Change rank variable type from long to int64_t
10580         and adjust correspondingly bb_rank and operand_rank initialization.
10582 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10584         PR tree-optimization/96928
10585         * tree-ssa-phiopt.c (xor_replacement): New function.
10586         (tree_ssa_phiopt_worker): Call it.
10588 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10590         PR tree-optimization/96930
10591         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
10592         from narrower value which has the same type as 1 << B, perform
10593         the right shift on the narrower value followed by extension.
10595 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10597         PR tree-optimization/96239
10598         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
10599         function.
10600         (get_status_for_store_merging): Don't return BB_INVALID for blocks
10601         with potential bswap optimizable CONSTRUCTORs.
10602         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
10603         if possible.
10605 2021-01-05  Richard Biener  <rguenther@suse.de>
10607         PR tree-optimization/98381
10608         * tree.c (vector_element_bits): Properly compute bool vector
10609         element size.
10610         * tree-vect-loop.c (vectorizable_live_operation): Properly
10611         compute the last lane bit offset.
10613 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
10615         PR target/98522
10616         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
10617         Clear the top 64 bytes of the input XMM register.
10618         (sse_cvttps2pi): Ditto.
10620 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
10622         PR target/98521
10623         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
10625 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
10627         PR target/98495
10628         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
10629         short first.
10631 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
10633         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
10634         (umaddsidi4_split): Likewise.
10636 2021-01-05  liuhongt  <hongtao.liu@intel.com>
10638         PR target/98461
10639         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
10640         define_insn_and_split for zero_extend of subreg HI of pmovskb
10641         result.
10642         (*sse2_pmovskb_zexthisi): Add new combine splitters for
10643         zero_extend of not of subreg HI of pmovskb result.
10645 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
10647         PR target/97269
10648         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
10649         nested in CONSTs.
10650         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
10651         convert_memory_address to convert symbolic immediates to ptr_mode
10652         before forcing them to memory.
10654 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
10656         PR rtl-optimization/97144
10657         * recog.c (constrain_operands): Initialize matching_operand
10658         for each alternative, rather than only doing it once.
10660 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
10662         PR rtl-optimization/98403
10663         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
10664         why we don't remove call clobbers.
10665         (function_info::apply_changes_to_insn): Don't attempt to add
10666         call clobbers here.
10668 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
10670         PR tree-optimization/98371
10671         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
10672         (vect_analyze_loop): If an epilogue loop appears to be cheaper
10673         than the main loop, re-analyze it as a main loop before adopting
10674         it as a main loop.
10676 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10678         PR c++/98316
10679         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
10680         * aclocal.m4, configure: Regenerate.
10681         * Makefile.in (NETLIBS): Define.
10682         (BACKEND): Remove $(CODYLIB).
10684 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
10686         PR rtl-optimization/98334
10687         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
10688         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
10690 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10692         * tree-inline.c (expand_call_inline): Restore input_location.
10693         Return result from recursive call.
10695 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
10697         PR tree-optimization/95401
10698         * config/aarch64/aarch64-sve-builtins.cc
10699         (gimple_folder::load_store_cookie): Use bits rather than bytes
10700         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
10701         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
10702         * tree-vect-stmts.c (vectorizable_store): Likewise.
10703         (vectorizable_load): Likewise.
10705 2021-01-04  Richard Biener  <rguenther@suse.de>
10707         PR tree-optimization/98308
10708         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
10709         SLP vectype.
10711 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
10713         PR tree-optimization/95771
10714         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
10715         with precision smaller than int's precision and types with precision
10716         twice as large as long long.  Formatting fixes.
10718 2021-01-04  Richard Biener  <rguenther@suse.de>
10720         PR tree-optimization/98464
10721         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
10722         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
10723         (process_bb): Adjust.
10725 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
10727         PR other/98437
10728         * doc/invoke.texi (-fsanitize=address): Fix wording describing
10729         clash with -fsanitize=hwaddress.
10731 2021-01-04  Richard Biener  <rguenther@suse.de>
10733         PR tree-optimization/98282
10734         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
10735         invariants as VN_NARY.
10737 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
10739         PR target/89057
10740         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
10741         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
10742         to handle zero operands.
10744 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
10746         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
10747         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
10748         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
10749         [-32, 31].
10751 2021-01-04  Richard Biener  <rguenther@suse.de>
10753         PR tree-optimization/98393
10754         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
10755         when hitting the limit.
10757 2021-01-04  Richard Biener  <rguenther@suse.de>
10759         PR tree-optimization/98291
10760         * tree-vect-loop.c (vectorizable_reduction): Bypass
10761         associativity check for SLP reductions with VF 1.
10763 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
10765         PR tree-optimization/96782
10766         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
10768 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10770         * collect-utils.c (collect_execute): Check dumppfx.
10771         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
10772         to collect_execute.
10773         (do_link): Add new parameter atsuffix.
10774         (main): Handle -dumpdir option.  Skip one argument for
10775         -o, -isystem and -B options.
10776         * gcc.c (make_at_file): New helper function.
10777         (close_at_file): Use it.
10779 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10781         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
10782         Amend handling for LD64_VERSION fallback defaults.
10784 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10786         * config.gcc: Compute default version information
10787         from the configured target.  Likewise defaults for
10788         ld64.
10789         * config/darwin10.h: Removed.
10790         * config/darwin12.h: Removed.
10791         * config/darwin9.h: Removed.
10792         * config/rs6000/darwin8.h: Removed.
10794 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10796         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
10798 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10800         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
10801         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
10803 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10805         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
10806         here...
10807         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
10809 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10811         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
10812         for the Darwin10 unwinder stub from here ...
10813         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
10815 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
10817         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
10818         (ASM_DEBUG_SPEC):Only define if the assembler supports
10819         stabs.
10820         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
10821         (DARWIN_PREFER_DWARF): Define.
10822         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
10823         (DARWIN_PREFER_DWARF): Likewise
10824         (DSYMUTIL_SPEC): Likewise.
10825         (COLLECT_RUN_DSYMUTIL): Likewise.
10826         (ASM_DEBUG_SPEC): Likewise.
10827         (ASM_DEBUG_OPTION_SPEC): Likewise.
10829 2021-01-02  Jan Hubicka  <jh@suse.cz>
10831         * cfg.c (free_block): ggc_free bb.
10833 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
10835         * gcc.c (process_command): Update copyright notice dates.
10836         * gcov-dump.c (print_version): Ditto.
10837         * gcov.c (print_version): Ditto.
10838         * gcov-tool.c (print_version): Ditto.
10839         * gengtype.c (create_file): Ditto.
10840         * doc/cpp.texi: Bump @copying's copyright year.
10841         * doc/cppinternals.texi: Ditto.
10842         * doc/gcc.texi: Ditto.
10843         * doc/gccint.texi: Ditto.
10844         * doc/gcov.texi: Ditto.
10845         * doc/install.texi: Ditto.
10846         * doc/invoke.texi: Ditto.
10848 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
10850         * ChangeLog-2020: Rotate ChangeLog.  New file.
10853 Copyright (C) 2021 Free Software Foundation, Inc.
10855 Copying and distribution of this file, with or without modification,
10856 are permitted in any medium without royalty provided the copyright
10857 notice and this notice are preserved.