Daily bump.
[official-gcc.git] / gcc / ChangeLog
blobd0a35a94c12556f68bd4a0c3594b2954680df0f4
1 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
3         PR tree-optimization/102906
4         * tree-ssa-loop-ch.c (entry_loop_condition_is_static): New.
5         (should_duplicate_loop_header_p): Call entry_loop_condition_is_static.
6         (class ch_base): Add m_ranger and m_query.
7         (ch_base::copy_headers): Pass m_query to
8         entry_loop_condition_is_static.
9         (pass_ch::execute): Allocate and deallocate m_ranger and
10         m_query.
11         (pass_ch_vect::execute): Same.
13 2021-11-10  Andrew Pinski  <apinski@marvell.com>
15         PR target/103170
16         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>):
17         Use vwcore iterator for the r constraint output string.
19 2021-11-10  qing zhao  <qing.zhao@oracle.com>
21         * internal-fn.c (expand_DEFERRED_INIT): Apply pattern initialization
22         only when have_insn_for return true for the mode. Fix a memory leak.
24 2021-11-10  Christophe Lyon  <christophe.lyon@foss.st.com>
26         * config/arm/arm.c (cortexa9_extra_costs, cortexa8_extra_costs,
27         cortexa5_extra_costs, cortexa7_extra_costs,
28         cortexa12_extra_costs, cortexa15_extra_costs, v7m_extra_costs):
29         Initialize movi, dup and extract costing fields.
31 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
33         * gimple-range-path.cc (path_range_query::path_range_query): Do
34         not init m_path.
35         (path_range_query::dump): Change m_path uses to non-pointer.
36         (path_range_query::defined_outside_path):  Same.
37         (path_range_query::set_path): Same.
38         (path_range_query::add_copies_to_imports): Same.
39         (path_range_query::range_of_stmt): Same.
40         (path_range_query::compute_outgoing_relations): Same.
41         (path_range_query::compute_ranges): Imports are now optional.
42         Implement overload that takes an edge.
43         * gimple-range-path.h (class path_range_query): Make imports
44         optional for compute_ranges.  Add compute_ranges(edge) overload.
45         Make m_path an auto_vec instead of a pointer and adjust
46         accordingly.
48 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
50         * tree-vectorizer.h (struct scalar_cond_masked_key): Add inverted_p.
51         (default_hash_traits<scalar_conf_masked_key>): Likewise.
52         * tree-vect-stmts.c (vectorizable_condition): Check if inverse of mask
53         is live.
54         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
55         Register mask inverses.
57 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
59         * tree-vectorizer.c (vectorize_loops): Do local CSE through RPVN upon
60         successful vectorization.
62 2021-11-10  Andrew MacLeod  <amacleod@redhat.com>
64         * gimple-range-cache.cc (sbr_vector::grow): New.
65         (sbr_vector::set_bb_range): Call grow.
66         (sbr_vector::get_bb_range): Same.
67         (sbr_vector::bb_range_p): Remove assert.
69 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
71         * config/aarch64/aarch64-simd.md (*aarch64_topbits_shuffle<mode>_le
72         ,*aarch64_topbits_shuffle<mode>_be): Remove.
74 2021-11-10  Jan Hubicka  <jh@suse.cz>
76         * ipa-modref.c: Include tree-eh.h
77         (modref_summary::modref_summary): Initialize side_effects.
78         (struct modref_summary_lto): New bool field side_effects.
79         (modref_summary_lto::modref_summary_lto): Initialize side_effects.
80         (modref_summary::dump): Dump side_effects.
81         (modref_summary_lto::dump): Dump side_effects.
82         (merge_call_side_effects): Merge side effects.
83         (process_fnspec): Calls to non-const/pure or looping
84         function is a side effect.
85         (analyze_call): Self-recursion is a side-effect; handle
86         special builtins.
87         (analyze_load): Watch for volatile and throwing memory.
88         (analyze_store): Likewise.
89         (analyze_stmt): Watch for volatitle asm.
90         (analyze_function): Handle side_effects.
91         (modref_summaries::duplicate): Duplicate side_effects.
92         (modref_summaries_lto::duplicate): Likewise.
93         (modref_write): Stream side_effects.
94         (read_section): Likewise.
95         (update_signature): Update.
96         (propagate_unknown_call): Handle side_effects.
97         (modref_propagate_in_scc): Likewise.
98         * ipa-modref.h (struct modref_summary): Add side_effects.
99         * ipa-pure-const.c (special_builtin_state): Rename to ...
100         (builtin_safe_for_const_function_p): ... this one.
101         (check_call): Update.
102         (finite_function_p): Break out from ...
103         (propagate_pure_const): ... here
104         * ipa-utils.h (finite_function): Declare.
106 2021-11-10  Lucas A. M. Magalhães  <lamm@linux.ibm.com>
108         * config.gcc (powerpc*-*-*): Remove -rpath from
109         --with-advance-toolchain.
111 2021-11-10  Marek Polacek  <polacek@redhat.com>
113         PR c++/101940
114         * attribs.c (struct scoped_attributes): Add a bool member.
115         (lookup_scoped_attribute_spec): Forward declare.
116         (register_scoped_attributes): New bool parameter, defaulted to
117         false.  Use it.
118         (handle_ignored_attributes_option): New function.
119         (free_attr_data): New function.
120         (init_attributes): Call handle_ignored_attributes_option.
121         (attr_namespace_ignored_p): New function.
122         (decl_attributes): Check attr_namespace_ignored_p before
123         warning.
124         * attribs.h (free_attr_data): Declare.
125         (register_scoped_attributes): Adjust declaration.
126         (handle_ignored_attributes_option): Declare.
127         (canonicalize_attr_name): New function template.
128         (canonicalize_attr_name): Use it.
129         * common.opt (Wattributes=): New option with a variable.
130         * doc/extend.texi: Document #pragma GCC diagnostic ignored_attributes.
131         * doc/invoke.texi: Document -Wno-attributes=.
132         * opts.c (common_handle_option) <case OPT_Wattributes_>: Handle.
133         * plugin.h (register_scoped_attributes): Adjust declaration.
134         * toplev.c (compile_file): Call free_attr_data.
136 2021-11-10  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
138         * config/arm/arm-cpus.in (cortex-a710): New CPU.
139         * config/arm/arm-tables.opt: Regenerate.
140         * config/arm/arm-tune.md: Regenerate.
141         * doc/invoke.texi: Update docs.
143 2021-11-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
145         * config/aarch64/aarch64-builtins.c
146         (aarch64_general_gimple_fold_builtin): Mark argument as unused.
148 2021-11-10  Martin Liska  <mliska@suse.cz>
150         * lto-wrapper.c (merge_and_complain): Make the first argument
151         a reference type.
153 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
155         * config/aarch64/iterators.md (optab): Use fmax_nan instead of
156         smax_nan and fmin_nan instead of smin_nan.
157         (maxmin_uns): Rename to...
158         (fmaxmin): ...this and make the same changes.  Remove entries
159         unrelated to fmax* and fmin*.
160         * config/aarch64/aarch64.md (<maxmin_uns><mode>3): Rename to...
161         (<fmaxmin><mode>3): ...this.
162         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>):
163         Rename to...
164         (aarch64_<optab>p<mode>): ...this.
165         (<maxmin_uns><mode>3): Rename to...
166         (<fmaxmin><mode>3): ...this.
167         (reduc_<maxmin_uns>_scal_<mode>): Rename to...
168         (reduc_<optab>_scal_<mode>): ...this and update gen* call.
169         (aarch64_reduc_<maxmin_uns>_internal<mode>): Rename to...
170         (aarch64_reduc_<optab>_internal<mode>): ...this.
171         (aarch64_reduc_<maxmin_uns>_internalv2si): Rename to...
172         (aarch64_reduc_<optab>_internalv2si): ...this.
173         * config/aarch64/aarch64-sve.md (<maxmin_uns><mode>3): Rename to...
174         (<fmaxmin><mode>3): ...this.
175         * config/aarch64/aarch64-simd-builtins.def (smax_nan, smin_nan)
176         Rename to...
177         (fmax_nan, fmin_nan): ...this.
178         * config/aarch64/arm_neon.h (vmax_f32, vmax_f64, vmaxq_f32, vmaxq_f64)
179         (vmin_f32, vmin_f64, vminq_f32, vminq_f64, vmax_f16, vmaxq_f16)
180         (vmin_f16, vminq_f16): Update accordingly.
182 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
184         * tree-vectorizer.h (vector_costs::finish_cost): Take the
185         corresponding scalar costs as a parameter.
186         (finish_cost): Likewise.
187         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost)
188         (vect_estimate_min_profitable_iters): Update accordingly.
189         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Likewise.
190         * tree-vectorizer.c (vector_costs::finish_cost): Likewise.
191         * config/aarch64/aarch64.c (aarch64_vector_costs::finish_cost):
192         Likewise.
193         * config/rs6000/rs6000.c (rs6000_cost_data::finish_cost): Likewise.
195 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
197         * tree-vectorizer.h (_loop_vec_info::scalar_costs): New member
198         variable.
199         (_loop_vec_info::single_scalar_iteration_cost): Delete.
200         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Delete.
201         (vector_costs::total_cost): New function.
202         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
203         after above changes.
204         (_loop_vec_info::~_loop_vec_info): Delete scalar_costs.
205         (vect_compute_single_scalar_iteration_cost): Store the costs
206         in loop_vinfo->scalar_costs.
207         (vect_estimate_min_profitable_iters): Get the scalar cost from
208         loop_vinfo->scalar_costs.
210 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
212         * tree-vectorizer.h (vector_costs::better_main_loop_than_p)
213         (vector_costs::better_epilogue_loop_than_p)
214         (vector_costs::compare_inside_loop_cost)
215         (vector_costs::compare_outside_loop_cost): Likewise.
216         * tree-vectorizer.c (vector_costs::better_main_loop_than_p)
217         (vector_costs::better_epilogue_loop_than_p)
218         (vector_costs::compare_inside_loop_cost)
219         (vector_costs::compare_outside_loop_cost): New functions,
220         containing code moved from...
221         * tree-vect-loop.c (vect_better_loop_vinfo_p): ...here.
223 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
225         * tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
226         and vec_inside_cost.
227         (vector_costs::outside_cost): New function.
228         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
229         after above.
230         (vect_estimate_min_profitable_iters): Likewise.
231         (vect_better_loop_vinfo_p): Get the inside and outside costs
232         from the loop_vec_infos' vector_costs.
234 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
236         * tree-vectorizer.h (vec_info::target_cost_data): Replace with...
237         (_loop_vec_info::vector_costs): ...this.
238         (LOOP_VINFO_TARGET_COST_DATA): Delete.
239         * tree-vectorizer.c (vec_info::vec_info): Remove target_cost_data
240         initialization.
241         (vec_info::~vec_info): Remove corresponding delete.
242         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
243         vector_costs to null.
244         (_loop_vec_info::~_loop_vec_info): Delete vector_costs.
245         (vect_analyze_loop_operations): Update after above changes.
246         (vect_analyze_loop_2): Likewise.
247         (vect_estimate_min_profitable_iters): Likewise.
248         * tree-vect-slp.c (vect_slp_analyze_operations): Likewise.
250 2021-11-10  Jan Hubicka  <hubicka@ucw.cz>
252         * tree-core.h (EAF_DIRECT): Remove.
253         (EAF_NOCLOBBER): Remove.
254         (EAF_UNUSED): Remove.
255         (EAF_NOESCAPE): Remove.
256         (EAF_NO_DIRECT_CLOBBER): New.
257         (EAF_NO_INDIRECT_CLOBBER): New.
258         (EAF_NODIRECTESCAPE): Remove.
259         (EAF_NO_DIRECT_ESCAPE): New.
260         (EAF_NO_INDIRECT_ESCAPE): New.
261         (EAF_NOT_RETURNED): Remove.
262         (EAF_NOT_RETURNED_INDIRECTLY): New.
263         (EAF_NOREAD): Remove.
264         (EAF_NO_DIRECT_READ): New.
265         (EAF_NO_INDIRECT_READ): New.
266         * gimple.c (gimple_call_arg_flags): Update for new flags.
267         (gimple_call_retslot_flags): Update for new flags.
268         * ipa-modref.c (dump_eaf_flags): Likewise.
269         (remove_useless_eaf_flags): Likewise.
270         (deref_flags): Likewise.
271         (modref_lattice::init): Likewise.
272         (modref_lattice::merge): Likewise.
273         (modref_lattice::merge_direct_load): Likewise.
274         (modref_lattice::merge_direct_store): Likewise.
275         (modref_eaf_analysis::merge_call_lhs_flags): Likewise.
276         (callee_to_caller_flags): Likewise.
277         (modref_eaf_analysis::analyze_ssa_name): Likewise.
278         (modref_eaf_analysis::propagate): Likewise.
279         (modref_merge_call_site_flags): Likewise.
280         * ipa-modref.h (interposable_eaf_flags): Likewise.
281         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1) Likewise.
282         * tree-ssa-structalias.c (handle_call_arg): Likewise.
283         (handle_rhs_call): Likewise.
284         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Likewise.
286 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
288         * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.
290 2021-11-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
292         * config/aarch64/aarch64-builtins.c
293         (aarch64_general_gimple_fold_builtin): Change pointer alignment and
294         alias.
296 2021-11-10  Jan Hubicka  <jh@suse.cz>
298         * ipa-modref-tree.h (modref_tree::remap_params): Fix off-by-one error.
300 2021-11-10  H.J. Lu  <hongjiu.lu@intel.com>
301             Hongtao Liu  <hongtao.liu@intel.com>
303         PR middle-end/102566
304         * match.pd (nop_atomic_bit_test_and_p): New match.
305         * tree-ssa-ccp.c (convert_atomic_bit_not): New function.
306         (gimple_nop_atomic_bit_test_and_p): New prototype.
307         (optimize_atomic_bit_test_and): Transform equivalent, but slighly
308         different cases to their canonical forms.
310 2021-11-10  liuhongt  <hongtao.liu@intel.com>
312         PR tree-optimization/103126
313         * tree-vect-loop.c (neutral_op_for_reduction): Remove static.
314         * tree-vectorizer.h (neutral_op_for_reduction): Declare.
315         * tree-if-conv.c : Include tree-vectorizer.h.
316         (is_cond_scalar_reduction): Handle
317         BIT_XOR_EXPR/BIT_IOR_EXPR/BIT_AND_EXPR.
318         (convert_scalar_cond_reduction): Ditto.
320 2021-11-10  konglin1  <lingling.kong@intel.com>
322         * config/i386/sse.md (cmul<conj_op><mode>3): add new define_expand.
323         (cmla<conj_op><mode>4): Likewise
325 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
327         * tree-ssa-threadedge.c: Do not include
328         gimple-ssa-evrp-analyze.h.
329         * value-pointer-equiv.cc: Same.
331 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
333         * tree-ssa-threadbackward.c
334         (back_threader::maybe_register_path_dump): Abstract path dumping...
335         (dump_path): ...here.
336         (back_threader::resolve_phi): Call dump_path.
337         (debug): Same.
339 2021-11-10  konglin1  <lingling.kong@intel.com>
341         * config/i386/sse.md (fma_<complexpairopname>_<mode>_pair):
342         Add new define_insn.
343         (fma_<mode>_fmaddc_bcst): Add new define_insn_and_split.
344         (fma_<mode>_fcmaddc_bcst): Likewise
346 2021-11-10  liuhongt  <hongtao.liu@intel.com>
348         PR target/102464
349         * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
350         MAX/MIN(a,b)
352 2021-11-10  Andrew Pinski  <apinski@marvell.com>
354         PR target/101529
355         * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target
356         as an input, use original one.
358 2021-11-10  Sandra Loosemore  <sandra@codesourcery.com>
360         * config/nios2/nios2.c (nios2_can_inline_p): New.
361         (TARGET_CAN_INLINE_P): Define.
363 2021-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
365         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin):
366         Disable gimple fold for RS6000_BIF_{XVMINDP,XVMINSP,VMINFP} and
367         RS6000_BIF_{XVMAXDP,XVMAXSP,VMAXFP} when fast-math is not set.
368         (lxvrse_expand_builtin): Modify the expansion for sign extension.
369         All extensions are done within VSX registers.
371 2021-11-09  Andrew Pinski  <apinski@marvell.com>
373         PR tree-optimization/10352
374         * match.pd: Remove check of TYPE_PRECISION for
375         the a?0:pow2 case.
377 2021-11-09  Andrew MacLeod  <amacleod@redhat.com>
379         * function.c (allocate_struct_function): Don't set x_range_query.
380         * function.h (get_range_query): Move to value-query.h.
381         * gimple-range.cc (enable_ranger): Check that query is currently NULL.
382         (disable_ranger): Clear function current query field.
383         * value-query.cc (get_global_range_query): Relocate to:
384         * value-query.h (get_global_range_query): Here and inline.
385         (get_range_query): Relocate here from function.h.
387 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
389         * tree-ssa-threadbackward.c
390         (back_threader::maybe_register_path_dump): New.
391         (back_threader::maybe_register_path): Call maybe_register_path_dump.
393 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
395         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
396         Return NULL when unprofitable.
398 2021-11-09  Martin Jambor  <mjambor@suse.cz>
400         * tree.h (build_debug_expr_decl): Declare.
401         * tree.c (build_debug_expr_decl): New function.
402         * cfgexpand.c (avoid_deep_ter_for_debug): Use build_debug_expr_decl
403         instead of building a DEBUG_EXPR_DECL.
404         * ipa-param-manipulation.c
405         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
406         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
407         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
408         * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
409         * tree-ssa-reassoc.c (make_new_ssa_for_def): Likewise.
411 2021-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
413         * config/rs6000/rs6000-call.c (rs6000_type_string): New function.
414         (def_builtin): Change debug formatting for easier parsing and
415         include more information.
416         (rs6000_init_builtins): Add dump of autogenerated builtins.
417         (altivec_init_builtins): Dump __builtin_altivec_mask_for_load for
418         completeness.
420 2021-11-09  Marek Polacek  <polacek@redhat.com>
422         * ipa-modref.c (analyze_parms): Fix a typo.
424 2021-11-09  Kito Cheng  <kito.cheng@sifive.com>
426         PR target/102957
427         * common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
428         assertion for Z*-ext.
430 2021-11-09  Jan Hubicka  <hubicka@ucw.cz>
432         * ipa-modref.c (analyze_parms): Add past_flags, past_retslot_flags
433         and past_static_chain; merge past summary with current one.
434         (analyze_function): Update.
436 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
438         * doc/invoke.texi (Invoking GCC): Document --param=threader-debug.
440 2021-11-09  Martin Liska  <mliska@suse.cz>
442         * print-rtl.c (rtx_writer::rtx_writer): Make the compilation
443         conditional based on
444         * print-rtl.h (class rtx_writer): Likewise.
446 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
448         * input.h (location_hash): Use 'BUILTINS_LOCATION' as spare value
449         for 'Deleted'.  Turn into a '#define'.
451 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
453         * gimple-range-path.cc (path_range_query::dump): Clean up.
454         (path_range_query::compute_ranges): Same.
455         * value-relation.cc (path_oracle::dump): Same.
457 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
459         * dumpfile.c (dump_options): Remove TDF_THREADING entry.
460         * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
461         remaining entries.
462         * flag-types.h (enum threader_debug): New.
463         * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
464         * params.opt: Add entry for --param=threader-debug=.
466 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
468         PR middle-end/101204
469         PR other/103157
470         * diagnostic-spec.h (typedef xint_hash_t): Turn into...
471         (struct xint_hash_t): ... this.
472         * doc/gty.texi: Update.
474 2021-11-09  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
476         * config/arm/arm-cpus.in (armv9): New define.
477         (ARMv9a): New group.
478         (armv9-a): New arch definition.
479         * config/arm/arm-tables.opt: Regenerate.
480         * config/arm/arm.h (BASE_ARCH_9A): New arch enum value.
481         * config/arm/t-aprofile: Added armv9-a and armv9+simd.
482         * config/arm/t-arm-elf: Added arm9-a, v9_fps and all_v9_archs
483         to MULTILIB_MATCHES.
484         * config/arm/t-multilib: Added v9_a_nosimd_variants and
485         v9_a_simd_variants to MULTILIB_MATCHES.
486         * doc/invoke.texi: Update docs.
488 2021-11-09  Martin Jambor  <mjambor@suse.cz>
490         PR ipa/103132
491         * ipa-param-manipulation.c (replace_with_mapped_expr): Early
492         return with error_mark_mode when part of expression is mapped to
493         NULL.
494         (ipa_param_body_adjustments::remap_with_debug_expressions): Set
495         mapped value to NULL if walk_tree returns error_mark_mode.
497 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
499         * tree-ssa-strlen.c (compare_nonzero_chars): Pass statement
500         context to ranger.
501         (get_addr_stridx): Same.
502         (get_stridx): Same.
503         (get_range_strlen_dynamic): Same.
504         (handle_builtin_strlen): Same.
505         (handle_builtin_strchr): Same.
506         (handle_builtin_strcpy): Same.
507         (maybe_diag_stxncpy_trunc): Same.
508         (handle_builtin_stxncpy_strncat): Same.
509         (handle_builtin_memcpy): Same.
510         (handle_builtin_strcat): Same.
511         (handle_alloc_call): Same.
512         (handle_builtin_memset): Same.
513         (handle_builtin_string_cmp): Same.
514         (handle_pointer_plus): Same.
515         (count_nonzero_bytes_addr): Same.
516         (count_nonzero_bytes): Same.
517         (handle_store): Same.
518         (fold_strstr_to_strncmp): Same.
519         (handle_integral_assign): Same.
520         (check_and_optimize_stmt): Same.
521         (class strlen_dom_walker): Replace evrp with ranger.
522         (strlen_dom_walker::before_dom_children): Remove evrp.
523         (strlen_dom_walker::after_dom_children): Remove evrp.
524         * gimple-ssa-warn-access.cc (maybe_check_access_sizes):
525         Restrict sprintf output.
527 2021-11-09  Martin Liska  <mliska@suse.cz>
529         * genconditions.c (write_one_condition): Add const qualifier
530         to pointer casting.
532 2021-11-09  Jeff Law  <jeffreyalaw@gmail.com>
534         * match.pd: New pattern to simplify (1 << n) & M ==/!= 0 for M
535         being a power of 2.
537 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
539         * config/rs6000/rs6000-builtin-new.def (VEC_INIT_V16QI): Use
540         escape-newline support.
541         (VEC_INIT_V4SI): Likewise.
542         (VEC_INIT_V8HI): Likewise.
543         (PACK_V1TI): Likewise.
544         (DIVDEU): Likewise.
545         (VFIRSTMISMATCHOREOSINDEX_V16QI): Likewise.
546         (VFIRSTMISMATCHOREOSINDEX_V8HI): Likewise.
547         (VFIRSTMISMATCHOREOSINDEX_V4SI): Likewise.
548         (CMPRB2): Likewise.
549         (VSTDCP): Likewise.
550         (VSIEDP): Likewise.
551         (FMAF128_ODD): Likewise.
552         (VSCEQPUO): Likewise.
553         (VSIEQP): Likewise.
554         (VSIEQPF): Likewise.
555         (VSTDCQP): Likewise.
556         (PACK_TD): Likewise.
557         (TABORTDC): Likewise.
558         (TABORTDCI): Likewise.
559         (SE_LXVRBX): Likewise.
560         (SE_LXVRHX): Likewise.
561         (SE_LXVRWX): Likewise.
562         (SE_LXVRDX): Likewise.
563         (VREPLACE_UN_UV2DI): Likewise.
564         (VREPLACE_UN_UV4SI): Likewise.
565         (VREPLACE_UN_V2DI): Likewise.
566         (VREPLACE_ELT_UV2DI): Likewise.
567         (VREPLACE_ELT_V2DI): Likewise.
568         (ZE_LXVRBX): Likewise.
569         (ZE_LXVRHX): Likewise.
570         (ZE_LXVRWX): Likewise.
571         (ZE_LXVRDX): Likewise.
572         (CFUGED): Likewise.
573         (CNTLZDM): Likewise.
574         (CNTTZDM): Likewise.
575         (PDEPD): Likewise.
576         (PEXTD): Likewise.
577         (PMXVBF16GER2): Likewise.
578         (PMXVBF16GER2_INTERNAL): Likewise.
579         (PMXVBF16GER2NN): Likewise.
580         (PMXVBF16GER2NN_INTERNAL): Likewise.
581         (PMXVBF16GER2NP): Likewise.
582         (PMXVBF16GER2NP_INTERNAL): Likewise.
583         (PMXVBF16GER2PN): Likewise.
584         (PMXVBF16GER2PN_INTERNAL): Likewise.
585         (PMXVBF16GER2PP): Likewise.
586         (PMXVBF16GER2PP_INTERNAL): Likewise.
587         (PMXVF16GER2): Likewise.
588         (PMXVF16GER2_INTERNAL): Likewise.
589         (PMXVF16GER2NN): Likewise.
590         (PMXVF16GER2NN_INTERNAL): Likewise.
591         (PMXVF16GER2NP): Likewise.
592         (PMXVF16GER2NP_INTERNAL): Likewise.
593         (PMXVF16GER2PN): Likewise.
594         (PMXVF16GER2PN_INTERNAL): Likewise.
595         (PMXVF16GER2PP): Likewise.
596         (PMXVF16GER2PP_INTERNAL): Likewise.
597         (PMXVF32GER_INTERNAL): Likewise.
598         (PMXVF32GERNN): Likewise.
599         (PMXVF32GERNN_INTERNAL): Likewise.
600         (PMXVF32GERNP): Likewise.
601         (PMXVF32GERNP_INTERNAL): Likewise.
602         (PMXVF32GERPN): Likewise.
603         (PMXVF32GERPN_INTERNAL): Likewise.
604         (PMXVF32GERPP): Likewise.
605         (PMXVF32GERPP_INTERNAL): Likewise.
606         (PMXVF64GER): Likewise.
607         (PMXVF64GER_INTERNAL): Likewise.
608         (PMXVF64GERNN): Likewise.
609         (PMXVF64GERNN_INTERNAL): Likewise.
610         (PMXVF64GERNP): Likewise.
611         (PMXVF64GERNP_INTERNAL): Likewise.
612         (PMXVF64GERPN): Likewise.
613         (PMXVF64GERPN_INTERNAL): Likewise.
614         (PMXVF64GERPP): Likewise.
615         (PMXVF64GERPP_INTERNAL): Likewise.
616         (PMXVI16GER2): Likewise.
617         (PMXVI16GER2_INTERNAL): Likewise.
618         (PMXVI16GER2PP): Likewise.
619         (PMXVI16GER2PP_INTERNAL): Likewise.
620         (PMXVI16GER2S): Likewise.
621         (PMXVI16GER2S_INTERNAL): Likewise.
622         (PMXVI16GER2SPP): Likewise.
623         (PMXVI16GER2SPP_INTERNAL): Likewise.
624         (PMXVI4GER8): Likewise.
625         (PMXVI4GER8_INTERNAL): Likewise.
626         (PMXVI4GER8PP): Likewise.
627         (PMXVI4GER8PP_INTERNAL): Likewise.
628         (PMXVI8GER4): Likewise.
629         (PMXVI8GER4_INTERNAL): Likewise.
630         (PMXVI8GER4PP): Likewise.
631         (PMXVI8GER4PP_INTERNAL): Likewise.
632         (PMXVI8GER4SPP): Likewise.
633         (PMXVI8GER4SPP_INTERNAL): Likewise.
634         * config/rs6000/rs6000-gen-builtins.c (MAXLINES): New macro.
635         (linebuf): Increase size.
636         (lines): New variable.
637         (lastline): Likewise.
638         (real_line_pos): New function.
639         (diag): Change signature.
640         (bif_diag): Change signature; support escape-newline handling.
641         (ovld_diag): Likewise.
642         (fatal): Move earlier.
643         (consume_whitespace): Adjust diag call.
644         (advance_line): Add escape-newline handling; call fatal.
645         (safe_inc_pos): Adjust diag call.
646         (match_identifier): Likewise.
647         (match_integer): Likewise.
648         (match_to_right_bracket): Call fatal instead of diag; adjust diag
649         call.
650         (match_basetype): Adjust diag calls.
651         (match_bracketed_pair): Likewise.
652         (match_const_restriction): Likewise.
653         (match_type): Likewise.
654         (parse_args): Likewise.
655         (parse_bif_attrs): Likewise.
656         (complete_vector_type): Likewise.
657         (complete_base_type): Likewise.
658         (parse_prototype): Likewise.
659         (parse_bif_entry): Likewise.
660         (parse_bif_stanza): Likewise.
661         (parse_ovld_entry): Likewise.
662         (parse_ovld_stanza): Likewise.
663         (main): Allocate buffers for lines[].
665 2021-11-08  Eric Botcazou  <ebotcazou@adacore.com>
667         * config/i386/i386.c (legitimize_pic_address): Adjust comment and
668         use the REG argument on the CM_LARGE_PIC code path as well.
669         * config/i386/predicates.md (gotoff_operand): Do not treat VxWorks
670         specially with the large code models.
672 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
674         * gimple.c (gimple_call_static_chain_flags): Revert the workaround
675         allowing interposition since issues with binds_to_local_def were
676         hopefully solved.
678 2021-11-08  Andrew MacLeod  <amacleod@redhat.com>
680         PR tree-optimization/103122
681         * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache
682         entry with "calulate new values" set to false.
684 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
686         * builtins.c (is_simple_builtin): Add builitin_dwarf_cfa
687         and builtin_return_address.
688         (builtin_fnspec): Annotate builtin_return,
689         bulitin_eh_pointer, builtin_eh_filter, builtin_unwind_resume,
690         builtin_cxa_end_cleanup, builtin_eh_copy_values,
691         builtin_frame_address, builtin_apply_args,
692         builtin_asan_before_dynamic_init, builtin_asan_after_dynamic_init,
693         builtin_prefetch, builtin_dwarf_cfa, builtin_return_addrss
694         as ".c"
695         * ipa-pure-const.c (special_builtin_state): Add builtin_dwarf_cfa
696         and builtin_return_address.
698 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
700         PR tree-optimization/103177
701         * passes.def: Move uncprop after pure/const and modref.
703 2021-11-08  Martin Jambor  <mjambor@suse.cz>
705         PR ipa/103099
706         PR ipa/103107
707         * tree-inline.c (remap_gimple_stmt): Unshare the expression without
708         location before invoking remap_with_debug_expressions on it.
709         * ipa-param-manipulation.c
710         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
712 2021-11-08  David Edelsohn  <dje.gcc@gmail.com>
714         * config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
715         constraint to "we".
717 2021-11-08  Richard Biener  <rguenther@suse.de>
719         * cfgloop.c (verify_loop_structure): Use a temporary BB flag
720         instead of an sbitmap to cache irreducible state.
722 2021-11-08  Aldy Hernandez  <aldyh@redhat.com>
724         PR tree-optimization/103120
725         * gimple-range-path.cc (path_range_query::range_defined_in_block):
726         Bail if there's a cache entry.
728 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
730         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Use
731         rs6000_builtin_decls_x when appropriate.
732         (add_condition_to_bb): Likewise.
733         (rs6000_atomic_assign_expand_fenv): Likewise.
735 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
737         * config/rs6000/rs6000-call.c (rs6000_new_builtin_decl): New function.
738         (rs6000_builtin_decl): Call it.
740 2021-11-08  Martin Liska  <mliska@suse.cz>
742         * cgraph.c (cgraph_node::dump): Dump it from decl.
744 2021-11-08  Martin Liska  <mliska@suse.cz>
746         PR gcov-profile/100520
747         * coverage.c (coverage_compute_profile_id): Strip .gk when
748         compare debug is used.
749         * system.h (endswith): New function.
751 2021-11-08  Martin Liska  <mliska@suse.cz>
753         * cgraph.c (cgraph_node::dump): Dump static_chain_decl.
755 2021-11-08  Thomas Schwinge  <thomas@codesourcery.com>
757         * config/rs6000/rbtree.c: Fix 'Copyright (C) 2020-21' into '2020-2021'
758         * config/rs6000/rbtree.h: Likewise.
759         * config/rs6000/rs6000-builtin-new.def: Likewise.
760         * config/rs6000/rs6000-gen-builtins.c: Likewise.
761         * config/rs6000/rs6000-overload.def: Likewise.
763 2021-11-08  Richard Sandiford  <richard.sandiford@arm.com>
765         * config/aarch64/aarch64.c (aarch64_ldn_stn_vectors): New function.
766         (aarch64_address_cost): Use it instead of testing for CImode and
767         XImode directly.
769 2021-11-08  Richard Sandiford  <richard.sandiford@arm.com>
771         * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros.
772         * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions.
773         (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise.
774         * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and
775         NUM_MODE_DECIMAL_FLOAT.
776         (REAL_MODE_FORMAT): Likewise.
778 2021-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
780         * tree-vect-loop.c (vect_better_loop_vinfo_p): Change how epilogue loop
781         costs are compared.
783 2021-11-08  Richard Biener  <rguenther@suse.de>
785         * tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
786         parameter.
787         * tree-vect-loop.c (vect_create_loop_vinfo): Likewise.  Set
788         LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
789         LOOP_VINFO_NITERS_ASSUMPTIONS.
790         (vect_analyze_loop_1): Adjust.
791         (vect_analyze_loop): Move loop constraint setting and
792         SCEV/niter reset here from vect_create_loop_vinfo to perform
793         it only once.
794         (vect_analyze_loop_form): Move dumping of symbolic niters
795         here from vect_create_loop_vinfo.
797 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
799         * ipa-modref-tree.h (enum modref_special_parms): New enum.
800         (struct modref_access_node): update for special parms.
801         (struct modref_ref_node): Likewise.
802         (struct modref_parm_map): Likewise.
803         (struct modref_tree): Likewise.
804         * ipa-modref.c (dump_access): Likewise.
805         (get_access): Detect static chain.
806         (parm_map_for_arg): Take tree as arg instead of
807         stmt and index.
808         (merge_call_side_effects): Compute map for static chain.
809         (process_fnspec): Update.
810         (struct escape_point): Remove retslot_arg and static_chain_arg.
811         (analyze_parms): Update.
812         (compute_parm_map): Update.
813         (propagate_unknown_call): Update.
814         (modref_propagate_in_scc): Update.
815         (modref_merge_call_site_flags): Update.
816         (ipa_merge_modref_summary_after_inlining): Update.
817         * tree-ssa-alias.c (modref_may_conflict): Handle static chain.
818         * ipa-modref-tree.c (test_merge): Update.
820 2021-11-08  Haochen Gui  <guihaoc@gcc.gnu.org>
822         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
823         gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
824         VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
825         set.
827 2021-11-08  liuhongt  <hongtao.liu@intel.com>
829         PR tree-optimization/103077
830         * doc/invoke.texi (Options That Control Optimization):
831         Update documentation for -ftree-loop-vectorize and
832         -ftree-slp-vectorize which are enabled by default at -02.
834 2021-11-08  liuhongt  <hongtao.liu@intel.com>
836         PR target/102464
837         * match.pd (Simplifcation (trunc)copysign((extend)a, (extend)b)
838         to .COPYSIGN (a, b)): Add !HONOR_SNANS.
840 2021-11-08  liuhongt  <hongtao.liu@intel.com>
842         PR target/102464
843         * match.pd: Simplify
844         (trunc)fma ((extend)a, (extend)b, (extend)c) to IFN_FMA (a, b,
845         c) under flag_unsafe_math_optimizations.
847 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
849         PR ipa/103055
850         * params.opt (modref-max-depth): Add range.
851         (modref-max-adjustments): Fix range.
853 2021-11-07  Aldy Hernandez  <aldyh@redhat.com>
855         * tree-pass.h (make_pass_vrp_threader): Remove.
856         * tree-ssa-threadbackward.c
857         (back_threader_profitability::profitable_path_p): Remove
858         ASSERT_EXPR references.
859         * tree-ssa-threadedge.c (jt_state::register_equivs_stmt): Same.
860         * tree-vrp.c (vrp_folder::simplify_casted_conds): Same.
861         (execute_vrp): Same.
862         (class hybrid_threader): Remove.
863         (hybrid_threader::hybrid_threader): Remove.
864         (hybrid_threader::~hybrid_threader): Remove.
865         (hybrid_threader::before_dom_children): Remove.
866         (hybrid_threader::after_dom_children): Remove.
867         (execute_vrp_threader): Remove.
868         (class pass_vrp_threader): Remove.
869         (make_pass_vrp_threader): Remove.
871 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
873         * gimple.c (gimple_call_arg_flags): Use interposable_eaf_flags.
874         (gimple_call_retslot_flags): Likewise.
875         (gimple_call_static_chain_flags): Likewise.
876         * ipa-modref.c (remove_useless_eaf_flags): Do not remove everything for
877         NOVOPS.
878         (modref_summary::useful_p): Likewise.
879         (modref_summary_lto::useful_p): Likewise.
880         (analyze_parms): Do not give up on NOVOPS.
881         (analyze_function): When dumping report chnages in EAF flags
882         between IPA and local pass.
883         (modref_merge_call_site_flags): Compute implicit eaf flags
884         based on callee ecf_flags and fnspec; if the function does not
885         bind to current defs use interposable_eaf_flags.
886         (modref_propagate_flags_in_scc): Update.
887         * ipa-modref.h (interposable_eaf_flags): New function.
889 2021-11-07  Bill Schmidt  <wschmidt@linux.ibm.com>
891         * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): New
892         forward decl.
893         (rs6000_invalid_new_builtin): New function.
894         (rs6000_expand_builtin): Call rs6000_expand_new_builtin.
895         (rs6000_expand_ldst_mask): New function.
896         (new_cpu_expand_builtin): Likewise.
897         (elemrev_icode): Likewise.
898         (ldv_expand_builtin): Likewise.
899         (lxvrse_expand_builtin): Likewise.
900         (lxvrze_expand_builtin): Likewise.
901         (stv_expand_builtin): Likewise.
902         (new_mma_expand_builtin): Likewise.
903         (new_htm_spr_num): Likewise.
904         (new_htm_expand_builtin): Likewise.
905         (rs6000_expand_new_builtin): Likewise.
906         (rs6000_init_builtins): Initialize altivec_builtin_mask_for_load.
908 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
910         * ipa-modref.c (modref_lattice): Add do_dataflow,
911         changed and propagate_to fields.
912         (modref_lattice::release): Free propagate_to
913         (modref_lattice::merge): Do not give up early on unknown
914         lattice values.
915         (modref_lattice::merge_deref): Likewise.
916         (modref_eaf_analysis): Update toplevel comment.
917         (modref_eaf_analysis::analyze_ssa_name): Record postponned ssa names;
918         do optimistic dataflow initialization.
919         (modref_eaf_analysis::merge_with_ssa_name): Build dataflow graph.
920         (modref_eaf_analysis::propagate): New member function.
921         (analyze_parms): Update to new API of modref_eaf_analysis.
923 2021-11-06  Jan Hubicka  <hubicka@ucw.cz>
925         * cgraph.h (cgraph_node::can_be_discarded_p): Do not
926         return true on functions from other partition.
928 2021-11-06  David Edelsohn  <dje.gcc@gmail.com>
930         * config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
931         (vsx_splat_v4si_di): Change constraint to "wa".
933 2021-11-06  Aldy Hernandez  <aldyh@redhat.com>
935         PR tree-optimization/103061
936         * value-relation.cc (path_oracle::path_oracle): Initialize
937         m_killed_defs.
938         (path_oracle::killing_def): Set m_killed_defs.
939         (path_oracle::query_relation): Do not look at the root oracle for
940         killed defs.
941         * value-relation.h (class path_oracle): Add m_killed_defs.
943 2021-11-06  Aldy Hernandez  <aldyh@redhat.com>
945         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
946         Remove gotos and other cleanups.
948 2021-11-05  Jan Hubicka  <hubicka@ucw.cz>
950         PR ipa/103073
951         * ipa-modref-tree.h (modref_tree::insert): Do nothing for
952         paradoxical and zero sized accesses.
954 2021-11-05  Jan Hubicka  <hubicka@ucw.cz>
956         PR ipa/103082
957         * ipa-modref-tree.h (struct modref_access_node): Avoid left shift
958         of negative value
960 2021-11-05  Iain Sandoe  <iain@sandoe.co.uk>
962         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Add LTRAMP
963         to the list of symbol prefixes that must be made linker-
964         visible.
966 2021-11-05  Iain Sandoe  <iain@sandoe.co.uk>
968         * config.host: Add support for aarch64-*-darwin.
969         * config/aarch64/host-aarch64-darwin.c: New file.
970         * config/aarch64/x-darwin: New file.
972 2021-11-05  Andrew MacLeod  <amacleod@redhat.com>
974         PR tree-optimization/103093
975         * gimple-range-gori.cc (range_def_chain::get_imports): Remove assert.
977 2021-11-05  Andrew MacLeod  <amacleod@redhat.com>
979         PR tree-optimization/102943
980         * gimple-range-cache.cc (class update_list): New.
981         (update_list::add): Replace add_to_update.
982         (update_list::pop): New.
983         (ranger_cache::ranger_cache): Adjust.
984         (ranger_cache::~ranger_cache): Adjust.
985         (ranger_cache::add_to_update): Delete.
986         (ranger_cache::propagate_cache): Adjust to new class.
987         (ranger_cache::propagate_updated_value): Ditto.
988         (ranger_cache::fill_block_cache): Ditto.
989         * gimple-range-cache.h (class ranger_cache): Adjust to update class.
991 2021-11-05  Richard Biener  <rguenther@suse.de>
993         * tree-vect-loop.c (vect_analyze_loop): Remove obsolete
994         comment and expand on another one.  Combine nested if.
996 2021-11-05  John David Anglin  <danglin@gcc.gnu.org>
998         PR libgomp/96661
999         * config/pa/pa-modes.def: Add OImode integer type.
1000         * config/pa/pa.c (pa_scalar_mode_supported_p): Allow TImode
1001         for TARGET_64BIT.
1002         * config/pa/pa.h (MIN_UNITS_PER_WORD) Define to MIN_UNITS_PER_WORD
1003         to UNITS_PER_WORD if IN_LIBGCC2.
1004         * config/pa/pa.md (addti3, addvti3, subti3, subvti3, negti2,
1005         negvti2, ashlti3, shrpd_internal): New patterns.
1006         Change some multi instruction types to multi.
1008 2021-11-05  Jakub Jelinek  <jakub@redhat.com>
1010         PR bootstrap/100246
1011         * config/i386/i386.h
1012         (stringop_algs::stringop_strategy::stringop_strategy): Make the ctor
1013         constexpr.
1015 2021-11-05  Wilco Dijkstra  <wdijkstr@arm.com>
1017         PR target/103085
1018         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Strip the salt
1019         first.
1020         * config/aarch64/constraints.md: Support const in Usw.
1022 2021-11-05  John David Anglin  <danglin@gcc.gnu.org>
1024         * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
1025         * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.
1027 2021-11-05  Richard Biener  <rguenther@suse.de>
1029         * tree-vectorizer.h (vec_info_shared::n_stmts): Add.
1030         (LOOP_VINFO_N_STMTS): Likewise.
1031         (vec_info_for_bb): Remove unused function.
1032         * tree-vectorizer.c (vec_info_shared::vec_info_shared):
1033         Initialize n_stmts member.
1034         * tree-vect-loop.c: Remove INCLUDE_FUNCTIONAL.
1035         (vect_create_loop_vinfo): Do not set loop->aux.
1036         (vect_analyze_loop_2): Do not get n_stmts as argument,
1037         instead use LOOP_VINFO_N_STMTS.  Set LOOP_VINFO_VECTORIZABLE_P
1038         here.
1039         (vect_analyze_loop_1): Remove callback, get the mode iterator
1040         and autodetected_vector_mode as argument, advancing the
1041         iterator and initializing autodetected_vector_mode here.
1042         (vect_analyze_loop): Split analysis loop into two, first
1043         processing main loops only and then epilogues.
1045 2021-11-05  Martin Jambor  <mjambor@suse.cz>
1047         * ipa-prop.c (compute_complex_assign_jump_func): Remove
1048         unnecessary check for RECORD_TYPE.
1050 2021-11-05  Gerald Pfeifer  <gerald@pfeifer.com>
1052         * doc/install.texi2html: Do not generate old.html any longer.
1054 2021-11-05  Martin Liska  <mliska@suse.cz>
1056         PR debug/102955
1057         * opts.c (finish_options): Reset flag_gtoggle when it is used.
1059 2021-11-05  Jakub Jelinek  <jakub@redhat.com>
1061         PR debug/103046
1062         * dwarf2out.c (add_const_value_attribute): Add MODE argument, use it
1063         in CONST_WIDE_INT handling.  Adjust recursive calls.
1064         (add_location_or_const_value_attribute): Pass DECL_MODE (decl) to
1065         new add_const_value_attribute argument.
1066         (tree_add_const_value_attribute): Pass TYPE_MODE (type) to new
1067         add_const_value_attribute argument.
1069 2021-11-05  Rasmus Villemoes  <rasmus.villemoes@prevas.dk>
1071         * config/vx-common.h: Test value of TARGET_VXWORKS7 rather
1072         than definedness.
1074 2021-11-05  Richard Biener  <rguenther@suse.de>
1076         * tree-vectorizer.h (struct vect_loop_form_info): New.
1077         (vect_analyze_loop_form): Adjust.
1078         (vect_create_loop_vinfo): New.
1079         * tree-parloops.c (gather_scalar_reductions): Adjust for
1080         vect_analyze_loop_form API change.
1081         * tree-vect-loop.c: Include <functional>.
1082         (vect_analyze_loop_form_1): Rename to vect_analyze_loop_form,
1083         take struct vect_loop_form_info as output parameter and adjust.
1084         (vect_analyze_loop_form): Rename to vect_create_loop_vinfo and
1085         split out call to the original vect_analyze_loop_form_1.
1086         (vect_reanalyze_as_main_loop): Rename to...
1087         (vect_analyze_loop_1): ... this, factor out the call to
1088         vect_analyze_loop_form and generalize to be able to use it twice ...
1089         (vect_analyze_loop): ... here.  Perform vect_analyze_loop_form
1090         once only and here.
1092 2021-11-05  Xionghu Luo  <luoxhu@linux.ibm.com>
1094         PR target/102991
1095         * config/rs6000/fusion.md: Regenerate.
1096         * config/rs6000/genfusion.pl: Fix incorrect clobber constraint.
1098 2021-11-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1100         * config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
1101         definition.
1103 2021-11-04  Tamar Christina  <tamar.christina@arm.com>
1105         * config/aarch64/aarch64-builtins.c
1106         (aarch64_general_gimple_fold_builtin): Add ashl, sshl, ushl, ashr,
1107         ashr_simd, lshr, lshr_simd.
1108         * config/aarch64/aarch64-simd-builtins.def (lshr): Use USHIFTIMM.
1109         * config/aarch64/arm_neon.h (vshr_n_u8, vshr_n_u16, vshr_n_u32,
1110         vshrq_n_u8, vshrq_n_u16, vshrq_n_u32, vshrq_n_u64): Fix type hack.
1112 2021-11-04  Tamar Christina  <tamar.christina@arm.com>
1114         * match.pd: New negate+shift pattern.
1116 2021-11-04  Andrew MacLeod  <amacleod@redhat.com>
1118         PR tree-optimization/103079
1119         * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as
1120         varying.
1121         (gimple_range_calc_op2): Ditto.
1123 2021-11-04  Martin Jambor  <mjambor@suse.cz>
1125         PR ipa/93385
1126         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
1127         members remap_with_debug_expressions, m_dead_ssa_debug_equiv,
1128         m_dead_stmt_debug_equiv and prepare_debug_expressions.  Added
1129         parameter to mark_dead_statements.
1130         * ipa-param-manipulation.c: Include tree-phinodes.h and cfgexpand.h.
1131         (ipa_param_body_adjustments::mark_dead_statements): New parameter
1132         debugstack, push into it all SSA names used in debug statements,
1133         produce m_dead_ssa_debug_equiv mapping for the removed param.
1134         (replace_with_mapped_expr): New function.
1135         (ipa_param_body_adjustments::remap_with_debug_expressions): Likewise.
1136         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
1137         (ipa_param_body_adjustments::common_initialization): Gather and
1138         procecc SSA which will be removed but are in debug statements. Simplify.
1139         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
1140         new members.
1141         * tree-inline.c (remap_gimple_stmt): Create a debug bind when possible
1142         when avoiding a copy of an unnecessary statement.  Remap removed SSA
1143         names in existing debug statements.
1144         (tree_function_versioning): Do not create DEBUG_EXPR_DECL for removed
1145         parameters if we have already done so.
1147 2021-11-04  Jan Hubicka  <hubicka@ucw.cz>
1149         PR ipa/103058
1150         * gimple.c (gimple_call_static_chain_flags): Handle case when
1151         nested function does not bind locally.
1153 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
1155         * config/aarch64/aarch64.c (aarch64_function_value): Generate
1156         a register rtx for Neon vector-tuple modes.
1157         (aarch64_layout_arg): Likewise.
1159 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
1161         * lower-subreg.c (simple_move): Prevent decomposition if
1162         modes are not tieable.
1164 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
1165             Richard Sandiford  <richard.sandiford@arm.com>
1167         * config/aarch64/aarch64-builtins.c (v2x8qi_UP): Define.
1168         (v2x4hi_UP): Likewise.
1169         (v2x4hf_UP): Likewise.
1170         (v2x4bf_UP): Likewise.
1171         (v2x2si_UP): Likewise.
1172         (v2x2sf_UP): Likewise.
1173         (v2x1di_UP): Likewise.
1174         (v2x1df_UP): Likewise.
1175         (v2x16qi_UP): Likewise.
1176         (v2x8hi_UP): Likewise.
1177         (v2x8hf_UP): Likewise.
1178         (v2x8bf_UP): Likewise.
1179         (v2x4si_UP): Likewise.
1180         (v2x4sf_UP): Likewise.
1181         (v2x2di_UP): Likewise.
1182         (v2x2df_UP): Likewise.
1183         (v3x8qi_UP): Likewise.
1184         (v3x4hi_UP): Likewise.
1185         (v3x4hf_UP): Likewise.
1186         (v3x4bf_UP): Likewise.
1187         (v3x2si_UP): Likewise.
1188         (v3x2sf_UP): Likewise.
1189         (v3x1di_UP): Likewise.
1190         (v3x1df_UP): Likewise.
1191         (v3x16qi_UP): Likewise.
1192         (v3x8hi_UP): Likewise.
1193         (v3x8hf_UP): Likewise.
1194         (v3x8bf_UP): Likewise.
1195         (v3x4si_UP): Likewise.
1196         (v3x4sf_UP): Likewise.
1197         (v3x2di_UP): Likewise.
1198         (v3x2df_UP): Likewise.
1199         (v4x8qi_UP): Likewise.
1200         (v4x4hi_UP): Likewise.
1201         (v4x4hf_UP): Likewise.
1202         (v4x4bf_UP): Likewise.
1203         (v4x2si_UP): Likewise.
1204         (v4x2sf_UP): Likewise.
1205         (v4x1di_UP): Likewise.
1206         (v4x1df_UP): Likewise.
1207         (v4x16qi_UP): Likewise.
1208         (v4x8hi_UP): Likewise.
1209         (v4x8hf_UP): Likewise.
1210         (v4x8bf_UP): Likewise.
1211         (v4x4si_UP): Likewise.
1212         (v4x4sf_UP): Likewise.
1213         (v4x2di_UP): Likewise.
1214         (v4x2df_UP): Likewise.
1215         (TYPES_GETREGP): Delete.
1216         (TYPES_SETREGP): Likewise.
1217         (TYPES_LOADSTRUCT_U): Define.
1218         (TYPES_LOADSTRUCT_P): Likewise.
1219         (TYPES_LOADSTRUCT_LANE_U): Likewise.
1220         (TYPES_LOADSTRUCT_LANE_P): Likewise.
1221         (TYPES_STORE1P): Move for consistency.
1222         (TYPES_STORESTRUCT_U): Define.
1223         (TYPES_STORESTRUCT_P): Likewise.
1224         (TYPES_STORESTRUCT_LANE_U): Likewise.
1225         (TYPES_STORESTRUCT_LANE_P): Likewise.
1226         (aarch64_simd_tuple_types): Define.
1227         (aarch64_lookup_simd_builtin_type): Handle tuple type lookup.
1228         (aarch64_init_simd_builtin_functions): Update frontend lookup
1229         for builtin functions after handling arm_neon.h pragma.
1230         (register_tuple_type): Manually set modes of single-integer
1231         tuple types. Record tuple types.
1232         * config/aarch64/aarch64-modes.def
1233         (ADV_SIMD_D_REG_STRUCT_MODES): Define D-register tuple modes.
1234         (ADV_SIMD_Q_REG_STRUCT_MODES): Define Q-register tuple modes.
1235         (SVE_MODES): Give single-vector modes priority over vector-
1236         tuple modes.
1237         (VECTOR_MODES_WITH_PREFIX): Set partial-vector mode order to
1238         be after all single-vector modes.
1239         * config/aarch64/aarch64-simd-builtins.def: Update builtin
1240         generator macros to reflect modifications to the backend
1241         patterns.
1242         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2<mode>):
1243         Use vector-tuple mode iterator and rename to...
1244         (aarch64_simd_ld2<vstruct_elt>): This.
1245         (aarch64_simd_ld2r<mode>): Use vector-tuple mode iterator and
1246         rename to...
1247         (aarch64_simd_ld2r<vstruct_elt>): This.
1248         (aarch64_vec_load_lanesoi_lane<mode>): Use vector-tuple mode
1249         iterator and rename to...
1250         (aarch64_vec_load_lanes<mode>_lane<vstruct_elt>): This.
1251         (vec_load_lanesoi<mode>): Use vector-tuple mode iterator and
1252         rename to...
1253         (vec_load_lanes<mode><vstruct_elt>): This.
1254         (aarch64_simd_st2<mode>): Use vector-tuple mode iterator and
1255         rename to...
1256         (aarch64_simd_st2<vstruct_elt>): This.
1257         (aarch64_vec_store_lanesoi_lane<mode>): Use vector-tuple mode
1258         iterator and rename to...
1259         (aarch64_vec_store_lanes<mode>_lane<vstruct_elt>): This.
1260         (vec_store_lanesoi<mode>): Use vector-tuple mode iterator and
1261         rename to...
1262         (vec_store_lanes<mode><vstruct_elt>): This.
1263         (aarch64_simd_ld3<mode>): Use vector-tuple mode iterator and
1264         rename to...
1265         (aarch64_simd_ld3<vstruct_elt>): This.
1266         (aarch64_simd_ld3r<mode>): Use vector-tuple mode iterator and
1267         rename to...
1268         (aarch64_simd_ld3r<vstruct_elt>): This.
1269         (aarch64_vec_load_lanesci_lane<mode>): Use vector-tuple mode
1270         iterator and rename to...
1271         (vec_load_lanesci<mode>): This.
1272         (aarch64_simd_st3<mode>): Use vector-tuple mode iterator and
1273         rename to...
1274         (aarch64_simd_st3<vstruct_elt>): This.
1275         (aarch64_vec_store_lanesci_lane<mode>): Use vector-tuple mode
1276         iterator and rename to...
1277         (vec_store_lanesci<mode>): This.
1278         (aarch64_simd_ld4<mode>): Use vector-tuple mode iterator and
1279         rename to...
1280         (aarch64_simd_ld4<vstruct_elt>): This.
1281         (aarch64_simd_ld4r<mode>): Use vector-tuple mode iterator and
1282         rename to...
1283         (aarch64_simd_ld4r<vstruct_elt>): This.
1284         (aarch64_vec_load_lanesxi_lane<mode>): Use vector-tuple mode
1285         iterator and rename to...
1286         (vec_load_lanesxi<mode>): This.
1287         (aarch64_simd_st4<mode>): Use vector-tuple mode iterator and
1288         rename to...
1289         (aarch64_simd_st4<vstruct_elt>): This.
1290         (aarch64_vec_store_lanesxi_lane<mode>): Use vector-tuple mode
1291         iterator and rename to...
1292         (vec_store_lanesxi<mode>): This.
1293         (mov<mode>): Define for Neon vector-tuple modes.
1294         (aarch64_ld1x3<VALLDIF:mode>): Use vector-tuple mode iterator
1295         and rename to...
1296         (aarch64_ld1x3<vstruct_elt>): This.
1297         (aarch64_ld1_x3_<mode>): Use vector-tuple mode iterator and
1298         rename to...
1299         (aarch64_ld1_x3_<vstruct_elt>): This.
1300         (aarch64_ld1x4<VALLDIF:mode>): Use vector-tuple mode iterator
1301         and rename to...
1302         (aarch64_ld1x4<vstruct_elt>): This.
1303         (aarch64_ld1_x4_<mode>): Use vector-tuple mode iterator and
1304         rename to...
1305         (aarch64_ld1_x4_<vstruct_elt>): This.
1306         (aarch64_st1x2<VALLDIF:mode>): Use vector-tuple mode iterator
1307         and rename to...
1308         (aarch64_st1x2<vstruct_elt>): This.
1309         (aarch64_st1_x2_<mode>): Use vector-tuple mode iterator and
1310         rename to...
1311         (aarch64_st1_x2_<vstruct_elt>): This.
1312         (aarch64_st1x3<VALLDIF:mode>): Use vector-tuple mode iterator
1313         and rename to...
1314         (aarch64_st1x3<vstruct_elt>): This.
1315         (aarch64_st1_x3_<mode>): Use vector-tuple mode iterator and
1316         rename to...
1317         (aarch64_st1_x3_<vstruct_elt>): This.
1318         (aarch64_st1x4<VALLDIF:mode>): Use vector-tuple mode iterator
1319         and rename to...
1320         (aarch64_st1x4<vstruct_elt>): This.
1321         (aarch64_st1_x4_<mode>): Use vector-tuple mode iterator and
1322         rename to...
1323         (aarch64_st1_x4_<vstruct_elt>): This.
1324         (*aarch64_mov<mode>): Define for vector-tuple modes.
1325         (*aarch64_be_mov<mode>): Likewise.
1326         (aarch64_ld<VSTRUCT:nregs>r<VALLDIF:mode>): Use vector-tuple
1327         mode iterator and rename to...
1328         (aarch64_ld<nregs>r<vstruct_elt>): This.
1329         (aarch64_ld2<mode>_dreg): Use vector-tuple mode iterator and
1330         rename to...
1331         (aarch64_ld2<vstruct_elt>_dreg): This.
1332         (aarch64_ld3<mode>_dreg): Use vector-tuple mode iterator and
1333         rename to...
1334         (aarch64_ld3<vstruct_elt>_dreg): This.
1335         (aarch64_ld4<mode>_dreg): Use vector-tuple mode iterator and
1336         rename to...
1337         (aarch64_ld4<vstruct_elt>_dreg): This.
1338         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
1339         iterator and rename to...
1340         (aarch64_ld<nregs><vstruct_elt>): Use vector-tuple mode
1341         iterator and rename to...
1342         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
1343         (aarch64_ld1x2<VQ:mode>): Delete.
1344         (aarch64_ld1x2<VDC:mode>): Use vector-tuple mode iterator and
1345         rename to...
1346         (aarch64_ld1x2<vstruct_elt>): This.
1347         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
1348         tuple mode iterator and rename to...
1349         (aarch64_ld<nregs>_lane<vstruct_elt>): This.
1350         (aarch64_get_dreg<VSTRUCT:mode><VDC:mode>): Delete.
1351         (aarch64_get_qreg<VSTRUCT:mode><VQ:mode>): Likewise.
1352         (aarch64_st2<mode>_dreg): Use vector-tuple mode iterator and
1353         rename to...
1354         (aarch64_st2<vstruct_elt>_dreg): This.
1355         (aarch64_st3<mode>_dreg): Use vector-tuple mode iterator and
1356         rename to...
1357         (aarch64_st3<vstruct_elt>_dreg): This.
1358         (aarch64_st4<mode>_dreg): Use vector-tuple mode iterator and
1359         rename to...
1360         (aarch64_st4<vstruct_elt>_dreg): This.
1361         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
1362         iterator and rename to...
1363         (aarch64_st<nregs><vstruct_elt>): This.
1364         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
1365         iterator and rename to aarch64_st<nregs><vstruct_elt>.
1366         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
1367         tuple mode iterator and rename to...
1368         (aarch64_st<nregs>_lane<vstruct_elt>): This.
1369         (aarch64_set_qreg<VSTRUCT:mode><VQ:mode>): Delete.
1370         (aarch64_simd_ld1<mode>_x2): Use vector-tuple mode iterator
1371         and rename to...
1372         (aarch64_simd_ld1<vstruct_elt>_x2): This.
1373         * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
1374         Refactor to include new vector-tuple modes.
1375         (aarch64_classify_vector_mode): Add cases for new vector-
1376         tuple modes.
1377         (aarch64_advsimd_partial_struct_mode_p): Define.
1378         (aarch64_advsimd_full_struct_mode_p): Likewise.
1379         (aarch64_advsimd_vector_array_mode): Likewise.
1380         (aarch64_sve_data_mode): Change location in file.
1381         (aarch64_array_mode): Handle case of Neon vector-tuple modes.
1382         (aarch64_hard_regno_nregs): Handle case of partial Neon
1383         vector structures.
1384         (aarch64_classify_address): Refactor to include handling of
1385         Neon vector-tuple modes.
1386         (aarch64_print_operand): Print "d" for "%R" for a partial
1387         Neon vector structure.
1388         (aarch64_expand_vec_perm_1): Use new vector-tuple mode.
1389         (aarch64_modes_tieable_p): Prevent tieing Neon partial struct
1390         modes with scalar machines modes larger than 8 bytes.
1391         (aarch64_can_change_mode_class): Don't allow changes between
1392         partial and full Neon vector-structure modes.
1393         * config/aarch64/arm_neon.h (vst2_lane_f16): Use updated
1394         builtin and remove boiler-plate code for opaque mode.
1395         (vst2_lane_f32): Likewise.
1396         (vst2_lane_f64): Likewise.
1397         (vst2_lane_p8): Likewise.
1398         (vst2_lane_p16): Likewise.
1399         (vst2_lane_p64): Likewise.
1400         (vst2_lane_s8): Likewise.
1401         (vst2_lane_s16): Likewise.
1402         (vst2_lane_s32): Likewise.
1403         (vst2_lane_s64): Likewise.
1404         (vst2_lane_u8): Likewise.
1405         (vst2_lane_u16): Likewise.
1406         (vst2_lane_u32): Likewise.
1407         (vst2_lane_u64): Likewise.
1408         (vst2q_lane_f16): Likewise.
1409         (vst2q_lane_f32): Likewise.
1410         (vst2q_lane_f64): Likewise.
1411         (vst2q_lane_p8): Likewise.
1412         (vst2q_lane_p16): Likewise.
1413         (vst2q_lane_p64): Likewise.
1414         (vst2q_lane_s8): Likewise.
1415         (vst2q_lane_s16): Likewise.
1416         (vst2q_lane_s32): Likewise.
1417         (vst2q_lane_s64): Likewise.
1418         (vst2q_lane_u8): Likewise.
1419         (vst2q_lane_u16): Likewise.
1420         (vst2q_lane_u32): Likewise.
1421         (vst2q_lane_u64): Likewise.
1422         (vst3_lane_f16): Likewise.
1423         (vst3_lane_f32): Likewise.
1424         (vst3_lane_f64): Likewise.
1425         (vst3_lane_p8): Likewise.
1426         (vst3_lane_p16): Likewise.
1427         (vst3_lane_p64): Likewise.
1428         (vst3_lane_s8): Likewise.
1429         (vst3_lane_s16): Likewise.
1430         (vst3_lane_s32): Likewise.
1431         (vst3_lane_s64): Likewise.
1432         (vst3_lane_u8): Likewise.
1433         (vst3_lane_u16): Likewise.
1434         (vst3_lane_u32): Likewise.
1435         (vst3_lane_u64): Likewise.
1436         (vst3q_lane_f16): Likewise.
1437         (vst3q_lane_f32): Likewise.
1438         (vst3q_lane_f64): Likewise.
1439         (vst3q_lane_p8): Likewise.
1440         (vst3q_lane_p16): Likewise.
1441         (vst3q_lane_p64): Likewise.
1442         (vst3q_lane_s8): Likewise.
1443         (vst3q_lane_s16): Likewise.
1444         (vst3q_lane_s32): Likewise.
1445         (vst3q_lane_s64): Likewise.
1446         (vst3q_lane_u8): Likewise.
1447         (vst3q_lane_u16): Likewise.
1448         (vst3q_lane_u32): Likewise.
1449         (vst3q_lane_u64): Likewise.
1450         (vst4_lane_f16): Likewise.
1451         (vst4_lane_f32): Likewise.
1452         (vst4_lane_f64): Likewise.
1453         (vst4_lane_p8): Likewise.
1454         (vst4_lane_p16): Likewise.
1455         (vst4_lane_p64): Likewise.
1456         (vst4_lane_s8): Likewise.
1457         (vst4_lane_s16): Likewise.
1458         (vst4_lane_s32): Likewise.
1459         (vst4_lane_s64): Likewise.
1460         (vst4_lane_u8): Likewise.
1461         (vst4_lane_u16): Likewise.
1462         (vst4_lane_u32): Likewise.
1463         (vst4_lane_u64): Likewise.
1464         (vst4q_lane_f16): Likewise.
1465         (vst4q_lane_f32): Likewise.
1466         (vst4q_lane_f64): Likewise.
1467         (vst4q_lane_p8): Likewise.
1468         (vst4q_lane_p16): Likewise.
1469         (vst4q_lane_p64): Likewise.
1470         (vst4q_lane_s8): Likewise.
1471         (vst4q_lane_s16): Likewise.
1472         (vst4q_lane_s32): Likewise.
1473         (vst4q_lane_s64): Likewise.
1474         (vst4q_lane_u8): Likewise.
1475         (vst4q_lane_u16): Likewise.
1476         (vst4q_lane_u32): Likewise.
1477         (vst4q_lane_u64): Likewise.
1478         (vtbl3_s8): Likewise.
1479         (vtbl3_u8): Likewise.
1480         (vtbl3_p8): Likewise.
1481         (vtbl4_s8): Likewise.
1482         (vtbl4_u8): Likewise.
1483         (vtbl4_p8): Likewise.
1484         (vld1_u8_x3): Likewise.
1485         (vld1_s8_x3): Likewise.
1486         (vld1_u16_x3): Likewise.
1487         (vld1_s16_x3): Likewise.
1488         (vld1_u32_x3): Likewise.
1489         (vld1_s32_x3): Likewise.
1490         (vld1_u64_x3): Likewise.
1491         (vld1_s64_x3): Likewise.
1492         (vld1_f16_x3): Likewise.
1493         (vld1_f32_x3): Likewise.
1494         (vld1_f64_x3): Likewise.
1495         (vld1_p8_x3): Likewise.
1496         (vld1_p16_x3): Likewise.
1497         (vld1_p64_x3): Likewise.
1498         (vld1q_u8_x3): Likewise.
1499         (vld1q_s8_x3): Likewise.
1500         (vld1q_u16_x3): Likewise.
1501         (vld1q_s16_x3): Likewise.
1502         (vld1q_u32_x3): Likewise.
1503         (vld1q_s32_x3): Likewise.
1504         (vld1q_u64_x3): Likewise.
1505         (vld1q_s64_x3): Likewise.
1506         (vld1q_f16_x3): Likewise.
1507         (vld1q_f32_x3): Likewise.
1508         (vld1q_f64_x3): Likewise.
1509         (vld1q_p8_x3): Likewise.
1510         (vld1q_p16_x3): Likewise.
1511         (vld1q_p64_x3): Likewise.
1512         (vld1_u8_x2): Likewise.
1513         (vld1_s8_x2): Likewise.
1514         (vld1_u16_x2): Likewise.
1515         (vld1_s16_x2): Likewise.
1516         (vld1_u32_x2): Likewise.
1517         (vld1_s32_x2): Likewise.
1518         (vld1_u64_x2): Likewise.
1519         (vld1_s64_x2): Likewise.
1520         (vld1_f16_x2): Likewise.
1521         (vld1_f32_x2): Likewise.
1522         (vld1_f64_x2): Likewise.
1523         (vld1_p8_x2): Likewise.
1524         (vld1_p16_x2): Likewise.
1525         (vld1_p64_x2): Likewise.
1526         (vld1q_u8_x2): Likewise.
1527         (vld1q_s8_x2): Likewise.
1528         (vld1q_u16_x2): Likewise.
1529         (vld1q_s16_x2): Likewise.
1530         (vld1q_u32_x2): Likewise.
1531         (vld1q_s32_x2): Likewise.
1532         (vld1q_u64_x2): Likewise.
1533         (vld1q_s64_x2): Likewise.
1534         (vld1q_f16_x2): Likewise.
1535         (vld1q_f32_x2): Likewise.
1536         (vld1q_f64_x2): Likewise.
1537         (vld1q_p8_x2): Likewise.
1538         (vld1q_p16_x2): Likewise.
1539         (vld1q_p64_x2): Likewise.
1540         (vld1_s8_x4): Likewise.
1541         (vld1q_s8_x4): Likewise.
1542         (vld1_s16_x4): Likewise.
1543         (vld1q_s16_x4): Likewise.
1544         (vld1_s32_x4): Likewise.
1545         (vld1q_s32_x4): Likewise.
1546         (vld1_u8_x4): Likewise.
1547         (vld1q_u8_x4): Likewise.
1548         (vld1_u16_x4): Likewise.
1549         (vld1q_u16_x4): Likewise.
1550         (vld1_u32_x4): Likewise.
1551         (vld1q_u32_x4): Likewise.
1552         (vld1_f16_x4): Likewise.
1553         (vld1q_f16_x4): Likewise.
1554         (vld1_f32_x4): Likewise.
1555         (vld1q_f32_x4): Likewise.
1556         (vld1_p8_x4): Likewise.
1557         (vld1q_p8_x4): Likewise.
1558         (vld1_p16_x4): Likewise.
1559         (vld1q_p16_x4): Likewise.
1560         (vld1_s64_x4): Likewise.
1561         (vld1_u64_x4): Likewise.
1562         (vld1_p64_x4): Likewise.
1563         (vld1q_s64_x4): Likewise.
1564         (vld1q_u64_x4): Likewise.
1565         (vld1q_p64_x4): Likewise.
1566         (vld1_f64_x4): Likewise.
1567         (vld1q_f64_x4): Likewise.
1568         (vld2_s64): Likewise.
1569         (vld2_u64): Likewise.
1570         (vld2_f64): Likewise.
1571         (vld2_s8): Likewise.
1572         (vld2_p8): Likewise.
1573         (vld2_p64): Likewise.
1574         (vld2_s16): Likewise.
1575         (vld2_p16): Likewise.
1576         (vld2_s32): Likewise.
1577         (vld2_u8): Likewise.
1578         (vld2_u16): Likewise.
1579         (vld2_u32): Likewise.
1580         (vld2_f16): Likewise.
1581         (vld2_f32): Likewise.
1582         (vld2q_s8): Likewise.
1583         (vld2q_p8): Likewise.
1584         (vld2q_s16): Likewise.
1585         (vld2q_p16): Likewise.
1586         (vld2q_p64): Likewise.
1587         (vld2q_s32): Likewise.
1588         (vld2q_s64): Likewise.
1589         (vld2q_u8): Likewise.
1590         (vld2q_u16): Likewise.
1591         (vld2q_u32): Likewise.
1592         (vld2q_u64): Likewise.
1593         (vld2q_f16): Likewise.
1594         (vld2q_f32): Likewise.
1595         (vld2q_f64): Likewise.
1596         (vld3_s64): Likewise.
1597         (vld3_u64): Likewise.
1598         (vld3_f64): Likewise.
1599         (vld3_s8): Likewise.
1600         (vld3_p8): Likewise.
1601         (vld3_s16): Likewise.
1602         (vld3_p16): Likewise.
1603         (vld3_s32): Likewise.
1604         (vld3_u8): Likewise.
1605         (vld3_u16): Likewise.
1606         (vld3_u32): Likewise.
1607         (vld3_f16): Likewise.
1608         (vld3_f32): Likewise.
1609         (vld3_p64): Likewise.
1610         (vld3q_s8): Likewise.
1611         (vld3q_p8): Likewise.
1612         (vld3q_s16): Likewise.
1613         (vld3q_p16): Likewise.
1614         (vld3q_s32): Likewise.
1615         (vld3q_s64): Likewise.
1616         (vld3q_u8): Likewise.
1617         (vld3q_u16): Likewise.
1618         (vld3q_u32): Likewise.
1619         (vld3q_u64): Likewise.
1620         (vld3q_f16): Likewise.
1621         (vld3q_f32): Likewise.
1622         (vld3q_f64): Likewise.
1623         (vld3q_p64): Likewise.
1624         (vld4_s64): Likewise.
1625         (vld4_u64): Likewise.
1626         (vld4_f64): Likewise.
1627         (vld4_s8): Likewise.
1628         (vld4_p8): Likewise.
1629         (vld4_s16): Likewise.
1630         (vld4_p16): Likewise.
1631         (vld4_s32): Likewise.
1632         (vld4_u8): Likewise.
1633         (vld4_u16): Likewise.
1634         (vld4_u32): Likewise.
1635         (vld4_f16): Likewise.
1636         (vld4_f32): Likewise.
1637         (vld4_p64): Likewise.
1638         (vld4q_s8): Likewise.
1639         (vld4q_p8): Likewise.
1640         (vld4q_s16): Likewise.
1641         (vld4q_p16): Likewise.
1642         (vld4q_s32): Likewise.
1643         (vld4q_s64): Likewise.
1644         (vld4q_u8): Likewise.
1645         (vld4q_u16): Likewise.
1646         (vld4q_u32): Likewise.
1647         (vld4q_u64): Likewise.
1648         (vld4q_f16): Likewise.
1649         (vld4q_f32): Likewise.
1650         (vld4q_f64): Likewise.
1651         (vld4q_p64): Likewise.
1652         (vld2_dup_s8): Likewise.
1653         (vld2_dup_s16): Likewise.
1654         (vld2_dup_s32): Likewise.
1655         (vld2_dup_f16): Likewise.
1656         (vld2_dup_f32): Likewise.
1657         (vld2_dup_f64): Likewise.
1658         (vld2_dup_u8): Likewise.
1659         (vld2_dup_u16): Likewise.
1660         (vld2_dup_u32): Likewise.
1661         (vld2_dup_p8): Likewise.
1662         (vld2_dup_p16): Likewise.
1663         (vld2_dup_p64): Likewise.
1664         (vld2_dup_s64): Likewise.
1665         (vld2_dup_u64): Likewise.
1666         (vld2q_dup_s8): Likewise.
1667         (vld2q_dup_p8): Likewise.
1668         (vld2q_dup_s16): Likewise.
1669         (vld2q_dup_p16): Likewise.
1670         (vld2q_dup_s32): Likewise.
1671         (vld2q_dup_s64): Likewise.
1672         (vld2q_dup_u8): Likewise.
1673         (vld2q_dup_u16): Likewise.
1674         (vld2q_dup_u32): Likewise.
1675         (vld2q_dup_u64): Likewise.
1676         (vld2q_dup_f16): Likewise.
1677         (vld2q_dup_f32): Likewise.
1678         (vld2q_dup_f64): Likewise.
1679         (vld2q_dup_p64): Likewise.
1680         (vld3_dup_s64): Likewise.
1681         (vld3_dup_u64): Likewise.
1682         (vld3_dup_f64): Likewise.
1683         (vld3_dup_s8): Likewise.
1684         (vld3_dup_p8): Likewise.
1685         (vld3_dup_s16): Likewise.
1686         (vld3_dup_p16): Likewise.
1687         (vld3_dup_s32): Likewise.
1688         (vld3_dup_u8): Likewise.
1689         (vld3_dup_u16): Likewise.
1690         (vld3_dup_u32): Likewise.
1691         (vld3_dup_f16): Likewise.
1692         (vld3_dup_f32): Likewise.
1693         (vld3_dup_p64): Likewise.
1694         (vld3q_dup_s8): Likewise.
1695         (vld3q_dup_p8): Likewise.
1696         (vld3q_dup_s16): Likewise.
1697         (vld3q_dup_p16): Likewise.
1698         (vld3q_dup_s32): Likewise.
1699         (vld3q_dup_s64): Likewise.
1700         (vld3q_dup_u8): Likewise.
1701         (vld3q_dup_u16): Likewise.
1702         (vld3q_dup_u32): Likewise.
1703         (vld3q_dup_u64): Likewise.
1704         (vld3q_dup_f16): Likewise.
1705         (vld3q_dup_f32): Likewise.
1706         (vld3q_dup_f64): Likewise.
1707         (vld3q_dup_p64): Likewise.
1708         (vld4_dup_s64): Likewise.
1709         (vld4_dup_u64): Likewise.
1710         (vld4_dup_f64): Likewise.
1711         (vld4_dup_s8): Likewise.
1712         (vld4_dup_p8): Likewise.
1713         (vld4_dup_s16): Likewise.
1714         (vld4_dup_p16): Likewise.
1715         (vld4_dup_s32): Likewise.
1716         (vld4_dup_u8): Likewise.
1717         (vld4_dup_u16): Likewise.
1718         (vld4_dup_u32): Likewise.
1719         (vld4_dup_f16): Likewise.
1720         (vld4_dup_f32): Likewise.
1721         (vld4_dup_p64): Likewise.
1722         (vld4q_dup_s8): Likewise.
1723         (vld4q_dup_p8): Likewise.
1724         (vld4q_dup_s16): Likewise.
1725         (vld4q_dup_p16): Likewise.
1726         (vld4q_dup_s32): Likewise.
1727         (vld4q_dup_s64): Likewise.
1728         (vld4q_dup_u8): Likewise.
1729         (vld4q_dup_u16): Likewise.
1730         (vld4q_dup_u32): Likewise.
1731         (vld4q_dup_u64): Likewise.
1732         (vld4q_dup_f16): Likewise.
1733         (vld4q_dup_f32): Likewise.
1734         (vld4q_dup_f64): Likewise.
1735         (vld4q_dup_p64): Likewise.
1736         (vld2_lane_u8): Likewise.
1737         (vld2_lane_u16): Likewise.
1738         (vld2_lane_u32): Likewise.
1739         (vld2_lane_u64): Likewise.
1740         (vld2_lane_s8): Likewise.
1741         (vld2_lane_s16): Likewise.
1742         (vld2_lane_s32): Likewise.
1743         (vld2_lane_s64): Likewise.
1744         (vld2_lane_f16): Likewise.
1745         (vld2_lane_f32): Likewise.
1746         (vld2_lane_f64): Likewise.
1747         (vld2_lane_p8): Likewise.
1748         (vld2_lane_p16): Likewise.
1749         (vld2_lane_p64): Likewise.
1750         (vld2q_lane_u8): Likewise.
1751         (vld2q_lane_u16): Likewise.
1752         (vld2q_lane_u32): Likewise.
1753         (vld2q_lane_u64): Likewise.
1754         (vld2q_lane_s8): Likewise.
1755         (vld2q_lane_s16): Likewise.
1756         (vld2q_lane_s32): Likewise.
1757         (vld2q_lane_s64): Likewise.
1758         (vld2q_lane_f16): Likewise.
1759         (vld2q_lane_f32): Likewise.
1760         (vld2q_lane_f64): Likewise.
1761         (vld2q_lane_p8): Likewise.
1762         (vld2q_lane_p16): Likewise.
1763         (vld2q_lane_p64): Likewise.
1764         (vld3_lane_u8): Likewise.
1765         (vld3_lane_u16): Likewise.
1766         (vld3_lane_u32): Likewise.
1767         (vld3_lane_u64): Likewise.
1768         (vld3_lane_s8): Likewise.
1769         (vld3_lane_s16): Likewise.
1770         (vld3_lane_s32): Likewise.
1771         (vld3_lane_s64): Likewise.
1772         (vld3_lane_f16): Likewise.
1773         (vld3_lane_f32): Likewise.
1774         (vld3_lane_f64): Likewise.
1775         (vld3_lane_p8): Likewise.
1776         (vld3_lane_p16): Likewise.
1777         (vld3_lane_p64): Likewise.
1778         (vld3q_lane_u8): Likewise.
1779         (vld3q_lane_u16): Likewise.
1780         (vld3q_lane_u32): Likewise.
1781         (vld3q_lane_u64): Likewise.
1782         (vld3q_lane_s8): Likewise.
1783         (vld3q_lane_s16): Likewise.
1784         (vld3q_lane_s32): Likewise.
1785         (vld3q_lane_s64): Likewise.
1786         (vld3q_lane_f16): Likewise.
1787         (vld3q_lane_f32): Likewise.
1788         (vld3q_lane_f64): Likewise.
1789         (vld3q_lane_p8): Likewise.
1790         (vld3q_lane_p16): Likewise.
1791         (vld3q_lane_p64): Likewise.
1792         (vld4_lane_u8): Likewise.
1793         (vld4_lane_u16): Likewise.
1794         (vld4_lane_u32): Likewise.
1795         (vld4_lane_u64): Likewise.
1796         (vld4_lane_s8): Likewise.
1797         (vld4_lane_s16): Likewise.
1798         (vld4_lane_s32): Likewise.
1799         (vld4_lane_s64): Likewise.
1800         (vld4_lane_f16): Likewise.
1801         (vld4_lane_f32): Likewise.
1802         (vld4_lane_f64): Likewise.
1803         (vld4_lane_p8): Likewise.
1804         (vld4_lane_p16): Likewise.
1805         (vld4_lane_p64): Likewise.
1806         (vld4q_lane_u8): Likewise.
1807         (vld4q_lane_u16): Likewise.
1808         (vld4q_lane_u32): Likewise.
1809         (vld4q_lane_u64): Likewise.
1810         (vld4q_lane_s8): Likewise.
1811         (vld4q_lane_s16): Likewise.
1812         (vld4q_lane_s32): Likewise.
1813         (vld4q_lane_s64): Likewise.
1814         (vld4q_lane_f16): Likewise.
1815         (vld4q_lane_f32): Likewise.
1816         (vld4q_lane_f64): Likewise.
1817         (vld4q_lane_p8): Likewise.
1818         (vld4q_lane_p16): Likewise.
1819         (vld4q_lane_p64): Likewise.
1820         (vqtbl2_s8): Likewise.
1821         (vqtbl2_u8): Likewise.
1822         (vqtbl2_p8): Likewise.
1823         (vqtbl2q_s8): Likewise.
1824         (vqtbl2q_u8): Likewise.
1825         (vqtbl2q_p8): Likewise.
1826         (vqtbl3_s8): Likewise.
1827         (vqtbl3_u8): Likewise.
1828         (vqtbl3_p8): Likewise.
1829         (vqtbl3q_s8): Likewise.
1830         (vqtbl3q_u8): Likewise.
1831         (vqtbl3q_p8): Likewise.
1832         (vqtbl4_s8): Likewise.
1833         (vqtbl4_u8): Likewise.
1834         (vqtbl4_p8): Likewise.
1835         (vqtbl4q_s8): Likewise.
1836         (vqtbl4q_u8): Likewise.
1837         (vqtbl4q_p8): Likewise.
1838         (vqtbx2_s8): Likewise.
1839         (vqtbx2_u8): Likewise.
1840         (vqtbx2_p8): Likewise.
1841         (vqtbx2q_s8): Likewise.
1842         (vqtbx2q_u8): Likewise.
1843         (vqtbx2q_p8): Likewise.
1844         (vqtbx3_s8): Likewise.
1845         (vqtbx3_u8): Likewise.
1846         (vqtbx3_p8): Likewise.
1847         (vqtbx3q_s8): Likewise.
1848         (vqtbx3q_u8): Likewise.
1849         (vqtbx3q_p8): Likewise.
1850         (vqtbx4_s8): Likewise.
1851         (vqtbx4_u8): Likewise.
1852         (vqtbx4_p8): Likewise.
1853         (vqtbx4q_s8): Likewise.
1854         (vqtbx4q_u8): Likewise.
1855         (vqtbx4q_p8): Likewise.
1856         (vst1_s64_x2): Likewise.
1857         (vst1_u64_x2): Likewise.
1858         (vst1_f64_x2): Likewise.
1859         (vst1_s8_x2): Likewise.
1860         (vst1_p8_x2): Likewise.
1861         (vst1_s16_x2): Likewise.
1862         (vst1_p16_x2): Likewise.
1863         (vst1_s32_x2): Likewise.
1864         (vst1_u8_x2): Likewise.
1865         (vst1_u16_x2): Likewise.
1866         (vst1_u32_x2): Likewise.
1867         (vst1_f16_x2): Likewise.
1868         (vst1_f32_x2): Likewise.
1869         (vst1_p64_x2): Likewise.
1870         (vst1q_s8_x2): Likewise.
1871         (vst1q_p8_x2): Likewise.
1872         (vst1q_s16_x2): Likewise.
1873         (vst1q_p16_x2): Likewise.
1874         (vst1q_s32_x2): Likewise.
1875         (vst1q_s64_x2): Likewise.
1876         (vst1q_u8_x2): Likewise.
1877         (vst1q_u16_x2): Likewise.
1878         (vst1q_u32_x2): Likewise.
1879         (vst1q_u64_x2): Likewise.
1880         (vst1q_f16_x2): Likewise.
1881         (vst1q_f32_x2): Likewise.
1882         (vst1q_f64_x2): Likewise.
1883         (vst1q_p64_x2): Likewise.
1884         (vst1_s64_x3): Likewise.
1885         (vst1_u64_x3): Likewise.
1886         (vst1_f64_x3): Likewise.
1887         (vst1_s8_x3): Likewise.
1888         (vst1_p8_x3): Likewise.
1889         (vst1_s16_x3): Likewise.
1890         (vst1_p16_x3): Likewise.
1891         (vst1_s32_x3): Likewise.
1892         (vst1_u8_x3): Likewise.
1893         (vst1_u16_x3): Likewise.
1894         (vst1_u32_x3): Likewise.
1895         (vst1_f16_x3): Likewise.
1896         (vst1_f32_x3): Likewise.
1897         (vst1_p64_x3): Likewise.
1898         (vst1q_s8_x3): Likewise.
1899         (vst1q_p8_x3): Likewise.
1900         (vst1q_s16_x3): Likewise.
1901         (vst1q_p16_x3): Likewise.
1902         (vst1q_s32_x3): Likewise.
1903         (vst1q_s64_x3): Likewise.
1904         (vst1q_u8_x3): Likewise.
1905         (vst1q_u16_x3): Likewise.
1906         (vst1q_u32_x3): Likewise.
1907         (vst1q_u64_x3): Likewise.
1908         (vst1q_f16_x3): Likewise.
1909         (vst1q_f32_x3): Likewise.
1910         (vst1q_f64_x3): Likewise.
1911         (vst1q_p64_x3): Likewise.
1912         (vst1_s8_x4): Likewise.
1913         (vst1q_s8_x4): Likewise.
1914         (vst1_s16_x4): Likewise.
1915         (vst1q_s16_x4): Likewise.
1916         (vst1_s32_x4): Likewise.
1917         (vst1q_s32_x4): Likewise.
1918         (vst1_u8_x4): Likewise.
1919         (vst1q_u8_x4): Likewise.
1920         (vst1_u16_x4): Likewise.
1921         (vst1q_u16_x4): Likewise.
1922         (vst1_u32_x4): Likewise.
1923         (vst1q_u32_x4): Likewise.
1924         (vst1_f16_x4): Likewise.
1925         (vst1q_f16_x4): Likewise.
1926         (vst1_f32_x4): Likewise.
1927         (vst1q_f32_x4): Likewise.
1928         (vst1_p8_x4): Likewise.
1929         (vst1q_p8_x4): Likewise.
1930         (vst1_p16_x4): Likewise.
1931         (vst1q_p16_x4): Likewise.
1932         (vst1_s64_x4): Likewise.
1933         (vst1_u64_x4): Likewise.
1934         (vst1_p64_x4): Likewise.
1935         (vst1q_s64_x4): Likewise.
1936         (vst1q_u64_x4): Likewise.
1937         (vst1q_p64_x4): Likewise.
1938         (vst1_f64_x4): Likewise.
1939         (vst1q_f64_x4): Likewise.
1940         (vst2_s64): Likewise.
1941         (vst2_u64): Likewise.
1942         (vst2_f64): Likewise.
1943         (vst2_s8): Likewise.
1944         (vst2_p8): Likewise.
1945         (vst2_s16): Likewise.
1946         (vst2_p16): Likewise.
1947         (vst2_s32): Likewise.
1948         (vst2_u8): Likewise.
1949         (vst2_u16): Likewise.
1950         (vst2_u32): Likewise.
1951         (vst2_f16): Likewise.
1952         (vst2_f32): Likewise.
1953         (vst2_p64): Likewise.
1954         (vst2q_s8): Likewise.
1955         (vst2q_p8): Likewise.
1956         (vst2q_s16): Likewise.
1957         (vst2q_p16): Likewise.
1958         (vst2q_s32): Likewise.
1959         (vst2q_s64): Likewise.
1960         (vst2q_u8): Likewise.
1961         (vst2q_u16): Likewise.
1962         (vst2q_u32): Likewise.
1963         (vst2q_u64): Likewise.
1964         (vst2q_f16): Likewise.
1965         (vst2q_f32): Likewise.
1966         (vst2q_f64): Likewise.
1967         (vst2q_p64): Likewise.
1968         (vst3_s64): Likewise.
1969         (vst3_u64): Likewise.
1970         (vst3_f64): Likewise.
1971         (vst3_s8): Likewise.
1972         (vst3_p8): Likewise.
1973         (vst3_s16): Likewise.
1974         (vst3_p16): Likewise.
1975         (vst3_s32): Likewise.
1976         (vst3_u8): Likewise.
1977         (vst3_u16): Likewise.
1978         (vst3_u32): Likewise.
1979         (vst3_f16): Likewise.
1980         (vst3_f32): Likewise.
1981         (vst3_p64): Likewise.
1982         (vst3q_s8): Likewise.
1983         (vst3q_p8): Likewise.
1984         (vst3q_s16): Likewise.
1985         (vst3q_p16): Likewise.
1986         (vst3q_s32): Likewise.
1987         (vst3q_s64): Likewise.
1988         (vst3q_u8): Likewise.
1989         (vst3q_u16): Likewise.
1990         (vst3q_u32): Likewise.
1991         (vst3q_u64): Likewise.
1992         (vst3q_f16): Likewise.
1993         (vst3q_f32): Likewise.
1994         (vst3q_f64): Likewise.
1995         (vst3q_p64): Likewise.
1996         (vst4_s64): Likewise.
1997         (vst4_u64): Likewise.
1998         (vst4_f64): Likewise.
1999         (vst4_s8): Likewise.
2000         (vst4_p8): Likewise.
2001         (vst4_s16): Likewise.
2002         (vst4_p16): Likewise.
2003         (vst4_s32): Likewise.
2004         (vst4_u8): Likewise.
2005         (vst4_u16): Likewise.
2006         (vst4_u32): Likewise.
2007         (vst4_f16): Likewise.
2008         (vst4_f32): Likewise.
2009         (vst4_p64): Likewise.
2010         (vst4q_s8): Likewise.
2011         (vst4q_p8): Likewise.
2012         (vst4q_s16): Likewise.
2013         (vst4q_p16): Likewise.
2014         (vst4q_s32): Likewise.
2015         (vst4q_s64): Likewise.
2016         (vst4q_u8): Likewise.
2017         (vst4q_u16): Likewise.
2018         (vst4q_u32): Likewise.
2019         (vst4q_u64): Likewise.
2020         (vst4q_f16): Likewise.
2021         (vst4q_f32): Likewise.
2022         (vst4q_f64): Likewise.
2023         (vst4q_p64): Likewise.
2024         (vtbx4_s8): Likewise.
2025         (vtbx4_u8): Likewise.
2026         (vtbx4_p8): Likewise.
2027         (vld1_bf16_x2): Likewise.
2028         (vld1q_bf16_x2): Likewise.
2029         (vld1_bf16_x3): Likewise.
2030         (vld1q_bf16_x3): Likewise.
2031         (vld1_bf16_x4): Likewise.
2032         (vld1q_bf16_x4): Likewise.
2033         (vld2_bf16): Likewise.
2034         (vld2q_bf16): Likewise.
2035         (vld2_dup_bf16): Likewise.
2036         (vld2q_dup_bf16): Likewise.
2037         (vld3_bf16): Likewise.
2038         (vld3q_bf16): Likewise.
2039         (vld3_dup_bf16): Likewise.
2040         (vld3q_dup_bf16): Likewise.
2041         (vld4_bf16): Likewise.
2042         (vld4q_bf16): Likewise.
2043         (vld4_dup_bf16): Likewise.
2044         (vld4q_dup_bf16): Likewise.
2045         (vst1_bf16_x2): Likewise.
2046         (vst1q_bf16_x2): Likewise.
2047         (vst1_bf16_x3): Likewise.
2048         (vst1q_bf16_x3): Likewise.
2049         (vst1_bf16_x4): Likewise.
2050         (vst1q_bf16_x4): Likewise.
2051         (vst2_bf16): Likewise.
2052         (vst2q_bf16): Likewise.
2053         (vst3_bf16): Likewise.
2054         (vst3q_bf16): Likewise.
2055         (vst4_bf16): Likewise.
2056         (vst4q_bf16): Likewise.
2057         (vld2_lane_bf16): Likewise.
2058         (vld2q_lane_bf16): Likewise.
2059         (vld3_lane_bf16): Likewise.
2060         (vld3q_lane_bf16): Likewise.
2061         (vld4_lane_bf16): Likewise.
2062         (vld4q_lane_bf16): Likewise.
2063         (vst2_lane_bf16): Likewise.
2064         (vst2q_lane_bf16): Likewise.
2065         (vst3_lane_bf16): Likewise.
2066         (vst3q_lane_bf16): Likewise.
2067         (vst4_lane_bf16): Likewise.
2068         (vst4q_lane_bf16): Likewise.
2069         * config/aarch64/geniterators.sh: Modify iterator regex to
2070         match new vector-tuple modes.
2071         * config/aarch64/iterators.md (insn_count): Extend mode
2072         attribute with vector-tuple type information.
2073         (nregs): Likewise.
2074         (Vendreg): Likewise.
2075         (Vetype): Likewise.
2076         (Vtype): Likewise.
2077         (VSTRUCT_2D): New mode iterator.
2078         (VSTRUCT_2DNX): Likewise.
2079         (VSTRUCT_2DX): Likewise.
2080         (VSTRUCT_2Q): Likewise.
2081         (VSTRUCT_2QD): Likewise.
2082         (VSTRUCT_3D): Likewise.
2083         (VSTRUCT_3DNX): Likewise.
2084         (VSTRUCT_3DX): Likewise.
2085         (VSTRUCT_3Q): Likewise.
2086         (VSTRUCT_3QD): Likewise.
2087         (VSTRUCT_4D): Likewise.
2088         (VSTRUCT_4DNX): Likewise.
2089         (VSTRUCT_4DX): Likewise.
2090         (VSTRUCT_4Q): Likewise.
2091         (VSTRUCT_4QD): Likewise.
2092         (VSTRUCT_D): Likewise.
2093         (VSTRUCT_Q): Likewise.
2094         (VSTRUCT_QD): Likewise.
2095         (VSTRUCT_ELT): New mode attribute.
2096         (vstruct_elt): Likewise.
2097         * genmodes.c (VECTOR_MODE): Add default prefix and order
2098         parameters.
2099         (VECTOR_MODE_WITH_PREFIX): Define.
2100         (make_vector_mode): Add mode prefix and order parameters.
2102 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
2104         * expmed.c (extract_bit_field_1): Ensure modes are tieable.
2106 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
2108         * expr.c (emit_group_load_1): Remove historic workaround.
2110 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
2112         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2113         Factor out main loop to...
2114         (aarch64_init_simd_builtin_functions): This new function.
2115         (register_tuple_type): Define.
2116         (aarch64_scalar_builtin_type_p): Define.
2117         (handle_arm_neon_h): Define.
2118         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): Handle
2119         pragma for arm_neon.h.
2120         * config/aarch64/aarch64-protos.h (aarch64_advsimd_struct_mode_p):
2121         Declare.
2122         (handle_arm_neon_h): Likewise.
2123         * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
2124         Remove static modifier.
2125         * config/aarch64/arm_neon.h (target): Remove Neon vector
2126         structure type definitions.
2128 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2130         PR tree-optimization/102943
2131         * gimple-range-path.cc (path_range_query::range_on_path_entry):
2132         Prefer range_of_expr unless there are no statements in the BB.
2134 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2136         PR tree-optimization/102943
2137         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
2138         Avoid duplicate calculation of paths.
2140 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2142         PR tree-optimization/102943
2143         * gimple-range-path.cc (path_range_query::compute_phi_relations):
2144         Only compute relations for SSA names in the import list.
2145         (path_range_query::compute_outgoing_relations): Same.
2146         * gimple-range-path.h (path_range_query::import_p): New.
2148 2021-11-04  Richard Biener  <rguenther@suse.de>
2150         PR rtl-optimization/103075
2151         * simplify-rtx.c (exact_int_to_float_conversion_p): Return
2152         false for a VOIDmode operand.
2154 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2156         * config/aarch64/aarch64.c (aarch64_vector_costs): Make member
2157         variables private and add "m_" to their names.  Remove is_loop.
2158         (aarch64_record_potential_advsimd_unrolling): Replace with...
2159         (aarch64_vector_costs::record_potential_advsimd_unrolling): ...this.
2160         (aarch64_analyze_loop_vinfo): Replace with...
2161         (aarch64_vector_costs::analyze_loop_vinfo): ...this.
2162         Move initialization of (m_)vec_flags to add_stmt_cost.
2163         (aarch64_analyze_bb_vinfo): Delete.
2164         (aarch64_count_ops): Replace with...
2165         (aarch64_vector_costs::count_ops): ...this.
2166         (aarch64_vector_costs::add_stmt_cost): Set m_vec_flags,
2167         using m_costing_for_scalar to test whether we're costing
2168         scalar or vector code.
2169         (aarch64_adjust_body_cost_sve): Replace with...
2170         (aarch64_vector_costs::adjust_body_cost_sve): ...this.
2171         (aarch64_adjust_body_cost): Replace with...
2172         (aarch64_vector_costs::adjust_body_cost): ...this.
2173         (aarch64_vector_costs::finish_cost): Use m_vinfo instead of is_loop.
2175 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2177         * target.def (targetm.vectorize.init_cost): Replace with...
2178         (targetm.vectorize.create_costs): ...this.
2179         (targetm.vectorize.add_stmt_cost): Delete.
2180         (targetm.vectorize.finish_cost): Likewise.
2181         (targetm.vectorize.destroy_cost_data): Likewise.
2182         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): Replace with...
2183         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2184         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2185         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2186         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2187         * doc/tm.texi: Regenerate.
2188         * tree-vectorizer.h (vec_info::vec_info): Remove target_cost_data
2189         parameter.
2190         (vec_info::target_cost_data): Change from a void * to a vector_costs *.
2191         (vector_costs): New class.
2192         (init_cost): Take a vec_info and return a vector_costs.
2193         (dump_stmt_cost): Remove data parameter.
2194         (add_stmt_cost): Replace vinfo and data parameters with a vector_costs.
2195         (add_stmt_costs): Likewise.
2196         (finish_cost): Replace data parameter with a vector_costs.
2197         (destroy_cost_data): Delete.
2198         * tree-vectorizer.c (dump_stmt_cost): Remove data argument and
2199         don't print it.
2200         (vec_info::vec_info): Remove the target_cost_data parameter and
2201         initialize the member variable to null instead.
2202         (vec_info::~vec_info): Delete target_cost_data instead of calling
2203         destroy_cost_data.
2204         (vector_costs::add_stmt_cost): New function.
2205         (vector_costs::finish_cost): Likewise.
2206         (vector_costs::record_stmt_cost): Likewise.
2207         (vector_costs::adjust_cost_for_freq): Likewise.
2208         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
2209         call to vec_info::vec_info.
2210         (vect_compute_single_scalar_iteration_cost): Update after above
2211         changes to costing interface.
2212         (vect_analyze_loop_operations): Likewise.
2213         (vect_estimate_min_profitable_iters): Likewise.
2214         (vect_analyze_loop_2): Initialize LOOP_VINFO_TARGET_COST_DATA
2215         at the start_over point, where it needs to be recreated after
2216         trying without slp.  Update retry code accordingly.
2217         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Update call
2218         to vec_info::vec_info.
2219         (vect_slp_analyze_operation): Update after above changes to costing
2220         interface.
2221         (vect_bb_vectorization_profitable_p): Likewise.
2222         * targhooks.h (default_init_cost): Replace with...
2223         (default_vectorize_create_costs): ...this.
2224         (default_add_stmt_cost): Delete.
2225         (default_finish_cost, default_destroy_cost_data): Likewise.
2226         * targhooks.c (default_init_cost): Replace with...
2227         (default_vectorize_create_costs): ...this.
2228         (default_add_stmt_cost): Delete, moving logic to vector_costs instead.
2229         (default_finish_cost, default_destroy_cost_data): Delete.
2230         * config/aarch64/aarch64.c (aarch64_vector_costs): Inherit from
2231         vector_costs.  Add a constructor.
2232         (aarch64_init_cost): Replace with...
2233         (aarch64_vectorize_create_costs): ...this.
2234         (aarch64_add_stmt_cost): Replace with...
2235         (aarch64_vector_costs::add_stmt_cost): ...this.  Use record_stmt_cost
2236         to adjust the cost for inner loops.
2237         (aarch64_finish_cost): Replace with...
2238         (aarch64_vector_costs::finish_cost): ...this.
2239         (aarch64_destroy_cost_data): Delete.
2240         (TARGET_VECTORIZE_INIT_COST): Replace with...
2241         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2242         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2243         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2244         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2245         * config/i386/i386.c (ix86_vector_costs): New structure.
2246         (ix86_init_cost): Replace with...
2247         (ix86_vectorize_create_costs): ...this.
2248         (ix86_add_stmt_cost): Replace with...
2249         (ix86_vector_costs::add_stmt_cost): ...this.  Use adjust_cost_for_freq
2250         to adjust the cost for inner loops.
2251         (ix86_finish_cost, ix86_destroy_cost_data): Delete.
2252         (TARGET_VECTORIZE_INIT_COST): Replace with...
2253         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2254         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2255         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2256         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2257         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): Replace with...
2258         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2259         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2260         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2261         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2262         (rs6000_cost_data): Inherit from vector_costs.
2263         Add a constructor.  Drop loop_info, cost and costing_for_scalar
2264         in favor of the corresponding vector_costs member variables.
2265         Add "m_" to the names of the remaining member variables and
2266         initialize them.
2267         (rs6000_density_test): Replace with...
2268         (rs6000_cost_data::density_test): ...this.
2269         (rs6000_init_cost): Replace with...
2270         (rs6000_vectorize_create_costs): ...this.
2271         (rs6000_update_target_cost_per_stmt): Replace with...
2272         (rs6000_cost_data::update_target_cost_per_stmt): ...this.
2273         (rs6000_add_stmt_cost): Replace with...
2274         (rs6000_cost_data::add_stmt_cost): ...this.  Use adjust_cost_for_freq
2275         to adjust the cost for inner loops.
2276         (rs6000_adjust_vect_cost_per_loop): Replace with...
2277         (rs6000_cost_data::adjust_vect_cost_per_loop): ...this.
2278         (rs6000_finish_cost): Replace with...
2279         (rs6000_cost_data::finish_cost): ...this.  Group loop code
2280         into a single if statement and pass the loop_vinfo down to
2281         subroutines.
2282         (rs6000_destroy_cost_data): Delete.
2284 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2286         PR tree-optimization/103062
2287         PR tree-optimization/103062
2288         * value-pointer-equiv.cc (ssa_equiv_stack::ssa_equiv_stack):
2289         Increase size of allocation by 1.
2290         (ssa_equiv_stack::push_replacement): Grow as needed.
2291         (ssa_equiv_stack::get_replacement): Same.
2292         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
2293         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Remove delete.
2294         (pointer_equiv_analyzer::set_global_equiv): Grow as needed.
2295         (pointer_equiv_analyzer::get_equiv): Same.
2296         (pointer_equiv_analyzer::get_equiv_expr): Remove const.
2297         * value-pointer-equiv.h (class pointer_equiv_analyzer): Remove
2298         const markers.  Use auto_vec instead of tree *.
2300 2021-11-04  Richard Biener  <rguenther@suse.de>
2302         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
2303         true parameter and inline valueization.
2304         (vn_nary_op_lookup_1): Inline valueization from ...
2305         (vn_nary_op_compute_hash): ... here and remove it here.
2306         * tree-ssa-pre.c (phi_translate_1): Do not valueize
2307         before vn_nary_lookup_pieces.
2308         (get_representative_for): Mark created SSA representatives
2309         as visited.
2311 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2313         * simplify-rtx.c (simplify_context::simplify_gen_vec_select): Assert
2314         that the operand has a vector mode.  Use subreg_lowpart_offset
2315         to test whether an index corresponds to the low part.
2317 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2319         * read-rtl.c: Remove dead !GENERATOR_FILE block.
2320         * read-rtl-function.c (function_reader::consolidate_singletons):
2321         Generate canonical CONST_VECTORs.
2323 2021-11-04  liuhongt  <hongtao.liu@intel.com>
2325         PR target/101989
2326         * config/i386/predicates.md (reg_or_notreg_operand): Rename to ..
2327         (regmem_or_bitnot_regmem_operand): .. and extend to handle
2328         memory_operand.
2329         * config/i386/sse.md (*<avx512>_vpternlog<mode>_1): Force_reg
2330         the operands which are required to be register_operand.
2331         (*<avx512>_vpternlog<mode>_2): Ditto.
2332         (*<avx512>_vpternlog<mode>_3): Ditto.
2333         (*<avx512>_vternlog<mode>_all): Disallow embeded broadcast for
2334         vector HFmodes since it's not a real AVX512FP16 instruction.
2336 2021-11-04  liuhongt  <hongtao.liu@intel.com>
2338         PR target/102464
2339         * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to
2340         .COPYSIGN (a,b) when a and b are same type as the truncation
2341         type and has less precision than extend type.
2343 2021-11-04  Richard Biener  <rguenther@suse.de>
2345         * doc/generic.texi: Update TARGET_MEM_REF and MEM_REF
2346         documentation.
2348 2021-11-04  Hongyu Wang  <hongyu.wang@intel.com>
2350         * config/i386/sse.md (VI2_AVX512VNNIBW): New mode iterator.
2351         (VI1_AVX512VNNI): Likewise.
2352         (SDOT_VPDP_SUF): New mode_attr.
2353         (VI1SI): Likewise.
2354         (vi1si): Likewise.
2355         (sdot_prod<mode>): Use VI2_AVX512F iterator, expand to
2356         vpdpwssd when VNNI targets available.
2357         (usdot_prod<mode>): New expander for vector QImode.
2359 2021-11-04  Hongyu Wang  <hongyu.wang@intel.com>
2361         * config/i386/amxtileintrin.h (_tile_loadd_internal): Add
2362         parentheses to base and stride.
2363         (_tile_stream_loadd_internal): Likewise.
2364         (_tile_stored_internal): Likewise.
2366 2021-11-03  Maciej W. Rozycki  <macro@embecosm.com>
2368         * config/riscv/riscv.c (riscv_class_max_nregs): Swap the
2369         arguments to `reg_class_subset_p'.
2371 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
2373         PR c/103031
2374         * fold-const.c (fold_init): New function.
2375         * fold-const.h (fold_init): New prototype.
2377 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2379         * params.opt (param_vrp2_mode): Make ranger the default for VRP2.
2381 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2383         * gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
2384         a range from edge if arg == phidef.
2386 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2388         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Test
2389         for constant before any other processing.
2391 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2393         * flag-types.h (RANGER_DEBUG_ALL): Fix values.
2395 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2397         * gimple-range.cc (gimple_ranger::gimple_ranger): Initialize current_bb.
2398         (gimple_ranger::range_of_expr): Pick up range_on_entry when there is
2399         no explcit context and current_bb is set.
2400         (gimple_ranger::fold_stmt): New.
2401         * gimple-range.h (current_bb, fold_stmt): New.
2402         * tree-vrp.c (rvrp_folder::fold_stmt): Call ranger's fold_stmt.
2404 2021-11-03  Richard Biener  <rguenther@suse.de>
2406         PR tree-optimization/102970
2407         * tree-ssa-pre.c (phi_translate_1): Drop clique and base
2408         when translating a MEM_REF over a backedge.
2410 2021-11-03  Philipp Tomsich  <philipp.tomsich@vrull.eu>
2412         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New Ampere-1 core.
2413         * config/aarch64/aarch64-tune.md: Regenerate.
2414         * config/aarch64/aarch64-cost-tables.h: Add extra costs for Ampere-1.
2415         * config/aarch64/aarch64.c: Add tuning structures for Ampere-1.
2416         * doc/invoke.texi: Add documentation for Ampere-1 core.
2418 2021-11-03  Wilco Dijkstra  <wdijkstr@arm.com>
2420         * config/aarch64/aarch64.md (movsi): Add alternative for GOT accesses.
2421         (movdi): Likewise.
2422         (ldr_got_small_<mode>): Remove pattern.
2423         (ldr_got_small_sidi): Likewise.
2424         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Keep
2425         GOT accesses as moves.
2426         (aarch64_print_operand): Correctly print got_lo12 in L specifier.
2427         (aarch64_mov_operand_p): Make GOT accesses valid move operands.
2428         * config/aarch64/constraints.md: Add new constraint Usw for GOT access.
2430 2021-11-03  Martin Liska  <mliska@suse.cz>
2432         * gcov.c (read_line): Remove dead variable.
2434 2021-11-03  Martin Liska  <mliska@suse.cz>
2436         PR bootstrap/102828
2437         * ipa-fnsummary.c (edge_predicate_pool): Rename predicate class to ipa_predicate.
2438         (ipa_fn_summary::account_size_time): Likewise.
2439         (edge_set_predicate): Likewise.
2440         (set_hint_predicate): Likewise.
2441         (add_freqcounting_predicate): Likewise.
2442         (evaluate_conditions_for_known_args): Likewise.
2443         (evaluate_properties_for_edge): Likewise.
2444         (remap_freqcounting_preds_after_dup): Likewise.
2445         (ipa_fn_summary_t::duplicate): Likewise.
2446         (set_cond_stmt_execution_predicate): Likewise.
2447         (set_switch_stmt_execution_predicate): Likewise.
2448         (compute_bb_predicates): Likewise.
2449         (will_be_nonconstant_expr_predicate): Likewise.
2450         (will_be_nonconstant_predicate): Likewise.
2451         (phi_result_unknown_predicate): Likewise.
2452         (predicate_for_phi_result): Likewise.
2453         (analyze_function_body): Likewise.
2454         (compute_fn_summary): Likewise.
2455         (summarize_calls_size_and_time): Likewise.
2456         (estimate_calls_size_and_time): Likewise.
2457         (ipa_call_context::estimate_size_and_time): Likewise.
2458         (remap_edge_summaries): Likewise.
2459         (remap_freqcounting_predicate): Likewise.
2460         (ipa_merge_fn_summary_after_inlining): Likewise.
2461         (ipa_update_overall_fn_summary): Likewise.
2462         (read_ipa_call_summary): Likewise.
2463         (inline_read_section): Likewise.
2464         * ipa-fnsummary.h (struct ipa_freqcounting_predicate): Likewise.
2465         * ipa-predicate.c (predicate::add_clause): Likewise.
2466         (ipa_predicate::add_clause): Likewise.
2467         (predicate::or_with): Likewise.
2468         (ipa_predicate::or_with): Likewise.
2469         (predicate::evaluate): Likewise.
2470         (ipa_predicate::evaluate): Likewise.
2471         (predicate::probability): Likewise.
2472         (ipa_predicate::probability): Likewise.
2473         (dump_condition): Likewise.
2474         (dump_clause): Likewise.
2475         (predicate::dump): Likewise.
2476         (ipa_predicate::dump): Likewise.
2477         (predicate::debug): Likewise.
2478         (ipa_predicate::debug): Likewise.
2479         (predicate::remap_after_duplication): Likewise.
2480         (ipa_predicate::remap_after_duplication): Likewise.
2481         (predicate::remap_after_inlining): Likewise.
2482         (ipa_predicate::remap_after_inlining): Likewise.
2483         (predicate::stream_in): Likewise.
2484         (ipa_predicate::stream_in): Likewise.
2485         (predicate::stream_out): Likewise.
2486         (ipa_predicate::stream_out): Likewise.
2487         (add_condition): Likewise.
2488         * ipa-predicate.h (class predicate): Likewise.
2489         (class ipa_predicate): Likewise.
2490         (add_condition): Likewise.
2492 2021-11-03  Richard Biener  <rguenther@suse.de>
2494         * bitmap.h (bitmap_bit_p): Change the return type to bool.
2495         * bitmap.c (bitmap_bit_p): Likewise.
2496         * sbitmap.h (bitmap_bit_p): Likewise.
2497         (bitmap_set_bit): Return whether the bit changed.
2498         (bitmap_clear_bit): Likewise.
2499         * tree-ssa.c (verify_vssa): Make use of the changed state
2500         from bitmap_set_bit.
2502 2021-11-03  Richard Biener  <rguenther@suse.de>
2504         PR middle-end/103033
2505         * internal-fn.c (expand_DEFERRED_INIT): Elide the
2506         native_interpret_expr path in favor of folding the
2507         VIEW_CONVERT_EXPR generated when punning the RHS.
2509 2021-11-03  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
2511         * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
2512         exit free bbs.
2514 2021-11-03  Jan Hubicka  <hubicka@ucw.cz>
2516         PR ipa/103040
2517         * ipa-modref.c (callee_to_caller_flags): New function.
2518         (modref_eaf_analysis::analyze_ssa_name): Use it.
2519         (ipa_merge_modref_summary_after_inlining): Fix whitespace.
2521 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
2523         * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Revert
2524         accidental commit.
2526 2021-11-02  Roger Sayle  <roger@nextmovesoftware.com>
2527             Uroš Bizjak  <ubizjak@gmail.com>
2529         * config/i386/i386.md (<any_rotate>ti3): Provide expansion for
2530         rotations by non-constant amounts.
2532 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
2534         * ipa-modref.c: Fix anonymous namespace placement.
2535         (class modref_eaf_analysis): New class.
2536         (analyze_ssa_name_flags): Turn to ...
2537         (modref_eaf_analysis::analyze_ssa_name): ... this one.
2538         (merge_call_lhs_flags): Turn to ...
2539         (modref_eaf_analysis::merge_call_lhs_flags): .. this one
2540         (modref_eaf_analysis::merge_with_ssa_name): New member function.
2541         (record_escape_points): Turn to ...
2542         (modref_eaf_analysis::record_escape_points): ... this one.
2543         (analyze_parms): Updat
2544         (ipa_merge_modref_summary_after_inlining): Move to the end of file.
2546 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
2548         * gimple.c (gimple_call_static_chain_flags): New function.
2549         * gimple.h (gimple_call_static_chain_flags): Declare
2550         * ipa-modref.c (modref_summary::modref_summary): Initialize
2551         static_chain_flags.
2552         (modref_summary_lto::modref_summary_lto): Likewise.
2553         (modref_summary::useful_p): Test static_chain_flags.
2554         (modref_summary_lto::useful_p): Likewise.
2555         (struct modref_summary_lto): Add static_chain_flags.
2556         (modref_summary::dump): Dump static_chain_flags.
2557         (modref_summary_lto::dump): Likewise.
2558         (struct escape_point): Add static_cahin_arg.
2559         (analyze_ssa_name_flags): Use gimple_call_static_chain_flags.
2560         (analyze_parms): Handle static chains.
2561         (modref_summaries::duplicate): Duplicate static_chain_flags.
2562         (modref_summaries_lto::duplicate): Likewise.
2563         (modref_write): Stream static_chain_flags.
2564         (read_section): Likewise.
2565         (modref_merge_call_site_flags): Handle static_chain_flags.
2566         * ipa-modref.h (struct modref_summary): Add static_chain_flags.
2567         * tree-ssa-structalias.c (handle_rhs_call): Use
2568         gimple_static_chain_flags.
2570 2021-11-02  Richard Biener  <rguenther@suse.de>
2572         PR tree-optimization/103029
2573         * tree-vect-loop-manip.c (vect_loop_versioning): Ensure
2574         the PHI nodes in the loop maintain their original operand
2575         order.
2577 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
2579         * tree-core.h (EAF_NOT_RETURNED_DIRECTLY): New flag.
2580         (EAF_NOREAD): Renumber.
2581         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOT_RETURNED_DIRECTLY.
2582         (remove_useless_eaf_flags): Handle EAF_NOT_RETURNED_DIRECTLY
2583         (deref_flags): Likewise.
2584         (modref_lattice::init): Likewise.
2585         (modref_lattice::merge): Likewise.
2586         (merge_call_lhs_flags): Likewise.
2587         (analyze_ssa_name_flags): Likewise.
2588         (modref_merge_call_site_flags): Likewise.
2589         * tree-ssa-structalias.c (handle_call_arg): Likewise.
2591 2021-11-02  Maciej W. Rozycki  <macro@embecosm.com>
2593         * config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
2594         check and remove an unused local variable with shNadd/shNadd.uw
2595         pattern handling.
2597 2021-11-02  Tamar Christina  <tamar.christina@arm.com>
2599         PR tree-optimization/103007
2600         * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
2601         check.
2603 2021-11-02  Richard Biener  <rguenther@suse.de>
2605         PR middle-end/103038
2606         * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
2607         (can_native_interpret_type_p): Likewise.
2608         * internal-fn.c (expand_DEFERRED_INIT): View-convert the
2609         RHS if the LHS is an SSA name.
2611 2021-11-02  Richard Sandiford  <richard.sandiford@arm.com>
2613         * langhooks.h (lang_hooks_for_types::simulate_record_decl): New hook.
2614         * langhooks-def.h (lhd_simulate_record_decl): Declare.
2615         (LANG_HOOKS_SIMULATE_RECORD_DECL): Define.
2616         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
2617         * langhooks.c (lhd_simulate_record_decl): New function.
2619 2021-11-02  Jakub Jelinek  <jakub@redhat.com>
2621         PR target/103020
2622         * config/i386/i386.c (ix86_vector_mode_supported_p): Reject vector
2623         modes with TImode inner mode if 32-bit.
2625 2021-11-02  liuhongt  <hongtao.liu@intel.com>
2627         * doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
2628         vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
2629         vect_slp_v4si_store_unalign): Document efficient target.
2630         (vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
2631         vect_slp_v16qi_store_unalign_1): Ditto.
2632         (vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
2633         vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
2634         (struct_4char_block_move, struct_8char_block_move,
2635         struct_16char_block_move): Ditto.
2637 2021-11-02  Roger Sayle  <roger@nextmovesoftware.com>
2638             Jakub Jelinek  <jakub@redhat.com>
2640         PR target/102986
2641         * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti,
2642         ix86_expand_ti_to_v1ti): New helper functions.
2643         (ix86_expand_v1ti_shift): Check if the amount operand is an
2644         integer constant, and expand as a TImode shift if it isn't.
2645         (ix86_expand_v1ti_rotate): Check if the amount operand is an
2646         integer constant, and expand as a TImode rotate if it isn't.
2647         (ix86_expand_v1ti_ashiftrt): New function to expand arithmetic
2648         right shifts of V1TImode quantities.
2649         * config/i386/i386-protos.h (ix86_expand_v1ti_ashift): Prototype.
2650         * config/i386/sse.md (ashlv1ti3, lshrv1ti3): Change constraints
2651         to QImode general_operand, and let the helper functions lower
2652         shifts by non-constant operands, as TImode shifts.  Make
2653         conditional on TARGET_64BIT.
2654         (ashrv1ti3): New expander calling ix86_expand_v1ti_ashiftrt.
2655         (rotlv1ti3, rotrv1ti3): Change shift operand to QImode.
2656         Make conditional on TARGET_64BIT.
2658 2021-11-02  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
2660         * config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
2661         "*tabort_1_plus"): Remove operands non-null check.
2663 2021-11-01  Martin Liska  <mliska@suse.cz>
2665         * opt-functions.awk: Add new sanity checking.
2666         * optc-gen.awk: Add new argument to integer_range_info.
2667         * params.opt: Update 2 params which have negative IntegerRange.
2669 2021-11-01  qing zhao  <qing.zhao@oracle.com>
2671         * gimplify.c (gimplify_decl_expr): Do not add call to
2672         __builtin_clear_padding when a variable is a gimple register
2673         or it might not have padding.
2674         (gimplify_init_constructor): Likewise.
2676 2021-11-01  Tamar Christina  <tamar.christina@arm.com>
2678         * config/arm/aarch-common-protos.h (struct vector_cost_table): Add
2679         movi, dup and extract costing fields.
2680         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs,
2681         thunderx_extra_costs, thunderx2t99_extra_costs,
2682         thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use
2683         them.
2684         * config/arm/aarch-cost-tables.h (generic_extra_costs,
2685         cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs,
2686         exynosm1_extra_costs, xgene1_extra_costs): Likewise
2687         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>): Add r->w dup.
2688         * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
2690 2021-11-01  Tamar Christina  <tamar.christina@arm.com>
2692         * cse.c (add_to_set): New.
2693         (find_sets_in_insn): Register constants in sets.
2694         (canonicalize_insn): Use auto_vec instead.
2695         (cse_insn): Try materializing using vec_dup.
2696         * rtl.h (simplify_context::simplify_gen_vec_select,
2697         simplify_gen_vec_select): New.
2698         * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New.
2700 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
2702         * common.opt (fdiagnostics-escape-format=): New.
2703         (diagnostics_escape_format): New enum.
2704         (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value.
2705         (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise.
2706         * diagnostic-format-json.cc (json_end_diagnostic): Add
2707         "escape-source" attribute.
2708         * diagnostic-show-locus.c
2709         (exploc_with_display_col::exploc_with_display_col): Replace
2710         "tabstop" param with a cpp_char_column_policy and add an "aspect"
2711         param.  Use these to compute m_display_col accordingly.
2712         (struct char_display_policy): New struct.
2713         (layout::m_policy): New field.
2714         (layout::m_escape_on_output): New field.
2715         (def_policy): New function.
2716         (make_range): Update for changes to exploc_with_display_col ctor.
2717         (default_print_decoded_ch): New.
2718         (width_per_escaped_byte): New.
2719         (escape_as_bytes_width): New.
2720         (escape_as_bytes_print): New.
2721         (escape_as_unicode_width): New.
2722         (escape_as_unicode_print): New.
2723         (make_policy): New.
2724         (layout::layout): Initialize new fields.  Update m_exploc ctor
2725         call for above change to ctor.
2726         (layout::maybe_add_location_range): Update for changes to
2727         exploc_with_display_col ctor.
2728         (layout::calculate_x_offset_display): Update for change to
2729         cpp_display_width.
2730         (layout::print_source_line): Pass policy
2731         to cpp_display_width_computation. Capture cpp_decoded_char when
2732         calling process_next_codepoint.  Move printing of source code to
2733         m_policy.m_print_cb.
2734         (line_label::line_label): Pass in policy rather than context.
2735         (layout::print_any_labels): Update for change to line_label ctor.
2736         (get_affected_range): Pass in policy rather than context, updating
2737         calls to location_compute_display_column accordingly.
2738         (get_printed_columns): Likewise, also for cpp_display_width.
2739         (correction::correction): Pass in policy rather than tabstop.
2740         (correction::compute_display_cols): Pass m_policy rather than
2741         m_tabstop to cpp_display_width.
2742         (correction::m_tabstop): Replace with...
2743         (correction::m_policy): ...this.
2744         (line_corrections::line_corrections): Pass in policy rather than
2745         context.
2746         (line_corrections::m_context): Replace with...
2747         (line_corrections::m_policy): ...this.
2748         (line_corrections::add_hint): Update to use m_policy rather than
2749         m_context.
2750         (line_corrections::add_hint): Likewise.
2751         (layout::print_trailing_fixits): Likewise.
2752         (selftest::test_display_widths): New.
2753         (selftest::test_layout_x_offset_display_utf8): Update to use
2754         policy rather than tabstop.
2755         (selftest::test_one_liner_labels_utf8): Add test of escaping
2756         source lines.
2757         (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to
2758         use policy rather than tabstop.
2759         (selftest::test_overlapped_fixit_printing): Likewise.
2760         (selftest::test_overlapped_fixit_printing_utf8): Likewise.
2761         (selftest::test_overlapped_fixit_printing_2): Likewise.
2762         (selftest::test_tab_expansion): Likewise.
2763         (selftest::test_escaping_bytes_1): New.
2764         (selftest::test_escaping_bytes_2): New.
2765         (selftest::diagnostic_show_locus_c_tests): Call the new tests.
2766         * diagnostic.c (diagnostic_initialize): Initialize
2767         context->escape_format.
2768         (convert_column_unit): Update to use default character width policy.
2769         (selftest::test_diagnostic_get_location_text): Likewise.
2770         * diagnostic.h (enum diagnostics_escape_format): New enum.
2771         (diagnostic_context::escape_format): New field.
2772         * doc/invoke.texi (-fdiagnostics-escape-format=): New option.
2773         (-fdiagnostics-format=): Add "escape-source" attribute to examples
2774         of JSON output, and document it.
2775         * input.c (location_compute_display_column): Pass in "policy"
2776         rather than "tabstop", passing to
2777         cpp_byte_column_to_display_column.
2778         (selftest::test_cpp_utf8): Update to use cpp_char_column_policy.
2779         * input.h (class cpp_char_column_policy): New forward decl.
2780         (location_compute_display_column): Pass in "policy" rather than
2781         "tabstop".
2782         * opts.c (common_handle_option): Handle
2783         OPT_fdiagnostics_escape_format_.
2784         * selftest.c (temp_source_file::temp_source_file): New ctor
2785         overload taking a size_t.
2786         * selftest.h (temp_source_file::temp_source_file): Likewise.
2788 2021-11-01  Aldy Hernandez  <aldyh@redhat.com>
2790         * dbgcnt.def: Add debug counter for back_thread[12] and
2791         back_threadfull[12].
2792         * passes.def: Pass "first" argument to each back threading pass.
2793         * tree-ssa-threadbackward.c (back_threader::back_threader): Add
2794         first argument.
2795         (back_threader::debug_counter): New.
2796         (back_threader::maybe_register_path): Call debug_counter.
2798 2021-11-01  Aldy Hernandez  <aldyh@redhat.com>
2800         * tree-ssa-threadbackward.c (BT_NONE): New.
2801         (BT_SPEED): New.
2802         (BT_RESOLVE): New.
2803         (back_threader::back_threader): Add flags.
2804         Move loop initialization here.
2805         (back_threader::~back_threader): New.
2806         (back_threader::find_taken_edge_switch): Change solver and ranger
2807         to pointers.
2808         (back_threader::find_taken_edge_cond): Same.
2809         (back_threader::find_paths_to_names): Same.
2810         (back_threader::find_paths): Same.
2811         (back_threader::dump): Same.
2812         (try_thread_blocks): Merge into thread_blocks.
2813         (back_threader::thread_blocks): New.
2814         (do_early_thread_jumps): Merge into thread_blocks.
2815         (do_thread_jumps): Merge into thread_blocks.
2816         (back_threader::thread_through_all_blocks): Remove.
2818 2021-11-01  Andrew MacLeod  <amacleod@redhat.com>
2820         PR tree-optimization/103003
2821         * value-relation.cc (dom_oracle::register_relation): If the 2
2822         ssa names are the same, don't register any relation.
2824 2021-11-01  Dan Li  <ashimida@linux.alibaba.com>
2826         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove
2827         redundant check for calls_eh_return.
2828         * config/aarch64/aarch64.md (*do_return): Likewise.
2830 2021-11-01  Xionghu Luo  <luoxhu@linux.ibm.com>
2832         * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename
2833         duplicate_loop_to_header_edge to
2834         duplicate_loop_body_to_header_edge.
2835         (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
2836         * cfghooks.h (struct cfg_hooks): Likewise.
2837         (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
2838         * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise.
2839         (clone_loop_to_header_edge): Likewise.
2840         * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise.
2841         * cfgrtl.c (struct cfg_hooks): Likewise.
2842         * doc/loop.texi: Likewise.
2843         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
2844         (unroll_loop_runtime_iterations): Likewise.
2845         (unroll_loop_stupid): Likewise.
2846         (apply_opt_in_copies): Likewise.
2847         * tree-cfg.c (struct cfg_hooks): Likewise.
2848         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2849         (try_peel_loop): Likewise.
2850         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
2851         (gimple_duplicate_loop_body_to_header_edge): Likewise.
2852         (tree_transform_and_unroll_loop): Likewise.
2853         * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge):
2854         Likewise.
2856 2021-11-01  Xionghu Luo  <luoxhu@linux.ibm.com>
2858         * cfgloopmanip.c (loop_version): Refactor loopify to
2859         loop_version.  Move condition generation after loopify.
2860         (loopify): Delete.
2861         * cfgloopmanip.h (loopify): Delete.
2863 2021-10-31  Jan Hubicka  <hubicka@ucw.cz>
2865         * ipa-fnsummary.c: Include tree-dfa.h.
2866         (points_to_local_or_readonly_memory_p): Return true on return
2867         slot writes.
2868         * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
2869         statement.
2871 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
2873         PR middle-end/102972
2874         * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
2875         internal Fortran name; new permit_num_teams arg to permit
2876         omp_get_num_teams and omp_get_team_num.
2877         (scan_omp_1_stmt): Update call to it, add missing call for
2878         reverse offload, and check for strictly nested API calls in teams.
2880 2021-10-30  Jakub Jelinek  <jakub@redhat.com>
2882         * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
2884 2021-10-29  David Malcolm  <dmalcolm@redhat.com>
2886         * selftest.c (assert_streq): Add newlines when emitting non-equal
2887         non-NULL strings.
2889 2021-10-29  David Malcolm  <dmalcolm@redhat.com>
2891         * Makefile.in: Fix syntax for reference to LIBDEPS in
2892         gengtype link rule.
2894 2021-10-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2896         * doc/install.texi: Bump required minimum DejaGnu version.
2898 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
2899             Andrew MacLeod  <amacleod@redhat.com>
2901         * value-relation.cc (path_oracle::killing_def): Add a
2902         self-equivalence so we don't look to the root oracle.
2904 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
2906         * passes.def: Replace the pass_thread_jumps before VRP* with
2907         pass_thread_jumps_full.  Remove all pass_vrp_threader instances.
2908         * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
2909         Remove hyphen from "thread-full" name.
2911 2021-10-29  Andrew MacLeod  <amacleod@redhat.com>
2913         PR tree-optimization/102983
2914         * gimple-range-cache.h (propagate_updated_value): Make public.
2915         * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
2916         when processing gcond stmts.
2918 2021-10-29  Jan Hubicka  <hubicka@ucw.cz>
2920         * gimple.c (gimple_call_retslot_flags): New function.
2921         * gimple.h (gimple_call_retslot_flags): Declare.
2922         * ipa-modref.c: Include tree-cfg.h.
2923         (struct escape_entry): Turn parm_index to signed.
2924         (modref_summary_lto::modref_summary_lto): Add retslot_flags.
2925         (modref_summary::modref_summary): Initialize retslot_flags.
2926         (struct modref_summary_lto): Likewise.
2927         (modref_summary::useful_p): Check retslot_flags.
2928         (modref_summary_lto::useful_p): Likewise.
2929         (modref_summary::dump): Dump retslot_flags.
2930         (modref_summary_lto::dump): Likewise.
2931         (struct escape_point): Add hidden_args enum.
2932         (analyze_ssa_name_flags): Ignore return slot return;
2933         use gimple_call_retslot_flags.
2934         (record_escape_points): Break out from ...
2935         (analyze_parms): ... here; handle retslot_flags.
2936         (modref_summaries::duplicate): Duplicate retslot_flags.
2937         (modref_summaries_lto::duplicate): Likewise.
2938         (modref_write_escape_summary): Stream parm_index as signed.
2939         (modref_read_escape_summary): Likewise.
2940         (modref_write): Stream retslot_flags.
2941         (read_section): Likewise.
2942         (struct escape_map): Fix typo in comment.
2943         (update_escape_summary_1): Fix whitespace.
2944         (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
2945         (modref_merge_call_site_flags): Merge retslot_flags.
2946         * ipa-modref.h (struct modref_summary): Add retslot_flags.
2947         * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
2949 2021-10-29  Tamar Christina  <tamar.christina@arm.com>
2951         PR tree-optimization/102977
2952         * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
2953         (vect_detect_pair_op): Add crosslane check.
2954         (vect_match_call_complex_mla): Remove.
2955         (class complex_mul_pattern): Update comment.
2956         (complex_mul_pattern::matches): Update detection.
2957         (class complex_fma_pattern): Remove.
2958         (complex_fma_pattern::matches): Remove.
2959         (complex_fma_pattern::recognize): Remove.
2960         (complex_fma_pattern::build): Remove.
2961         (class complex_fms_pattern):  Update comment.
2962         (complex_fms_pattern::matches): Remove.
2963         (complex_operations_pattern::recognize): Remove complex_fma_pattern
2965 2021-10-29  Jakub Jelinek  <jakub@redhat.com>
2967         * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
2968         call to store.
2970 2021-10-29  Xionghu Luo  <luoxhu@linux.ibm.com>
2972         PR target/102868
2973         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
2974         patterns match and emit for VSX xxpermdi.
2976 2021-10-29  liuhongt  <hongtao.liu@intel.com>
2978         PR target/102464
2979         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
2980         function type.
2981         (V16HF_FTYPE_V16HF): Ditto.
2982         (V32HF_FTYPE_V32HF): Ditto.
2983         (V8HF_FTYPE_V8HF_ROUND): Ditto.
2984         (V16HF_FTYPE_V16HF_ROUND): Ditto.
2985         (V32HF_FTYPE_V32HF_ROUND): Ditto.
2986         * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
2987         IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
2988         IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
2989         IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
2990         IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
2991         * config/i386/i386-builtins.c
2992         (ix86_builtin_vectorized_function): Enable vectorization for
2993         HFmode FLOOR/CEIL/TRUNC operation.
2994         * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
2995         new builtins.
2996         * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
2997         to vector HFmodes.
2999 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
3000             Andrew MacLeod  <amacleod@redhat.com>
3002         * value-relation.cc (path_oracle::killing_def): Walk the
3003         equivalency list and remove SSA from any equivalencies.
3005 2021-10-28  Stafford Horne  <shorne@gmail.com>
3007         * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
3008         to _mcount.
3010 2021-10-28  Jakub Jelinek  <jakub@redhat.com>
3012         PR tree-optimization/102951
3013         * fold-const.h (address_compare): Declare.
3014         * fold-const.c (address_compare): New function.
3015         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
3016         address_compare helper.
3017         (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
3018         simplification.
3020 2021-10-28  Andrew MacLeod  <amacleod@redhat.com>
3022         * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
3024 2021-10-28  Andrew MacLeod  <amacleod@redhat.com>
3026         PR tree-optimization/102940
3027         * tree-vrp.c (execute_ranger_vrp): Reset scev.
3029 2021-10-28  Richard Purdie  <richard.purdie@linuxfoundation.org>
3031         * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
3033 2021-10-28  Richard Purdie  <richard.purdie@linuxfoundation.org>
3035         * configure: Regenerate.
3036         * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
3038 2021-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3040         * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
3042 2021-10-28  Richard Biener  <rguenther@suse.de>
3044         PR middle-end/84407
3045         * fold-const.c (fold_convert_const): Avoid int to float
3046         constant folding with -frounding-math and inexact result.
3047         * simplify-rtx.c (simplify_const_unary_operation): Likewise
3048         for both float and unsigned_float.
3050 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
3052         * tree-ssa-threadbackward.c
3053         (back_threader::find_taken_edge_switch): Use find_case_label_range
3054         instead of find_taken_edge.
3056 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
3058         * tree-ssa-threadbackward.c (class back_threader_registry):
3059         Inherit from back_jt_path_registry.
3060         (back_threader_registry::thread_through_all_blocks): Remove.
3061         (back_threader_registry::register_path): Remove
3062         m_lowlevel_registry prefix.
3064 2021-10-28  Richard Biener  <rguenther@suse.de>
3066         PR middle-end/57245
3067         * fold-const.c (fold_convert_const_real_from_real): Honor
3068         -frounding-math if the conversion is not exact.
3069         * simplify-rtx.c (simplify_const_unary_operation): Do not
3070         simplify FLOAT_TRUNCATE with sign dependent rounding.
3072 2021-10-28  Richard Biener  <rguenther@suse.de>
3074         PR tree-optimization/102949
3075         * tree-vect-stmts.c (ensure_base_align): Look at the
3076         dr_info of a group leader and assert we are looking at
3077         one with analyzed alignment.
3079 2021-10-28  Kewen Lin  <linkw@linux.ibm.com>
3081         PR target/102767
3082         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
3083         V1T1 mode for unaligned load and store.
3085 2021-10-28  Kito Cheng  <kito.cheng@sifive.com>
3087         * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
3088         use this pattern.
3090 2021-10-28  Kito Cheng  <kito.cheng@sifive.com>
3092         * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
3093         CANONICAL_ORDER.
3095 2021-10-28  Alexandre Oliva  <oliva@adacore.com>
3097         * common.opt (fharden-compares): New.
3098         (fharden-conditional-branches): New.
3099         * doc/invoke.texi: Document new options.
3100         * gimple-harden-conditionals.cc: New.
3101         * Makefile.in (OBJS): Build it.
3102         * passes.def: Add new passes.
3103         * tree-pass.h (make_pass_harden_compares): Declare.
3104         (make_pass_harden_conditional_branches): Declare.
3106 2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>
3108         PR target/94613
3109         * config/rs6000/altivec.md: Add vsx register constraints.
3110         * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
3111         (vsx_xxsel<mode>2): Likewise.
3112         (vsx_xxsel<mode>3): Likewise.
3113         (vsx_xxsel<mode>4): Likewise.
3115 2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>
3117         PR target/94613
3118         * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
3119         (altivec_vsel<mode>): ... this and update define.
3120         (*altivec_vsel<mode>_uns): Delete.
3121         (altivec_vsel<mode>2): New define_insn.
3122         (altivec_vsel<mode>3): Likewise.
3123         (altivec_vsel<mode>4): Likewise.
3124         * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
3125         (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
3126         vel_sel.
3127         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
3128         selection instead of per element.
3129         * config/rs6000/vector.md:
3130         * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
3131         (vsx_xxsel<mode>): ... this and update define.
3132         (*vsx_xxsel<mode>_uns): Delete.
3133         (vsx_xxsel<mode>2): New define_insn.
3134         (vsx_xxsel<mode>3): Likewise.
3135         (vsx_xxsel<mode>4): Likewise.
3137 2021-10-28  Hongyu Wang  <hongyu.wang@intel.com>
3139         * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
3140           HFmode rsqrt without TARGET_SSE_MATH.
3141         (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
3142         btrunc condition to be restricted by -ftrapping-math, adjust
3143         use_rsqrt_p function call.
3144         * config/i386/i386.md (rcphf2): New define_insn.
3145         (rsqrthf2): Likewise.
3146         * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
3147         (div<mode>3): New expander for HF mode.
3148         (rsqrt<mode>2): Likewise.
3149         (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
3150         (*avx512fp16_vmrsqrtv8hf2): Likewise.
3152 2021-10-27  Saagar Jha  <saagar@saagarjha.com>
3154         * config.gcc: Adjust for Darwin21.
3155         * config/darwin-c.c (macosx_version_as_macro): Likewise.
3156         * config/darwin-driver.c (validate_macosx_version_min):
3157         Likewise.
3158         (darwin_find_version_from_kernel): Likewise.
3160 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
3162         * gimple-range-path.cc
3163         (path_range_query::range_defined_in_block): Call killing_def.
3165 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
3167         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
3168         operands as well as relation.
3169         * gimple-range-path.cc
3170         (path_range_query::compute_ranges_in_block): Compute PHI relations
3171         first.  Compute outgoing relations at the end.
3172         (path_range_query::compute_ranges): Remove call to compute_relations.
3173         (path_range_query::compute_relations): Remove.
3174         (path_range_query::maybe_register_phi_relation): New.
3175         (path_range_query::compute_phi_relations): Abstract out
3176         registering one PHI relation to...
3177         (path_range_query::compute_outgoing_relations): ...here.
3178         * gimple-range-path.h (class path_range_query): Remove
3179         compute_relations.
3180         Add maybe_register_phi_relation.
3182 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
3183             Andrew MacLeod  <amacleod@redhat.com>
3185         * value-relation.cc (path_oracle::killing_def): Kill second
3186         order relations.
3188 2021-10-27  Martin Jambor  <mjambor@suse.cz>
3190         * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
3191         profile feedback depending on their local availability.
3193 2021-10-27  Martin Jambor  <mjambor@suse.cz>
3195         * params.opt (param_ipa_cp_profile_count_base): New parameter.
3196         * doc/invoke.texi (Optimize Options): Add entry for
3197         ipa-cp-profile-count-base.
3198         * ipa-cp.c (max_count): Replace with base_count, replace all
3199         occurrences too, unless otherwise stated.
3200         (ipcp_cloning_candidate_p): identify mostly-directly called
3201         functions based on their counts, not max_count.
3202         (compare_edge_profile_counts): New function.
3203         (ipcp_propagate_stage): Instead of setting max_count, find the
3204         appropriate edge count in a sorted vector of counts of eligible
3205         edges and make it the base_count.
3207 2021-10-27  Martin Jambor  <mjambor@suse.cz>
3209         * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
3210         n_nonrec_calls and itself, document all fields.
3211         (init_caller_stats): Initialize the above new fields.
3212         (gather_caller_stats): Gather self-recursive counts and calls number.
3213         (get_info_about_necessary_edges): Gather counts of self-recursive and
3214         other edges bringing in the requested value separately.
3215         (dump_profile_updates): Rework to dump info about a single node only.
3216         (lenient_count_portion_handling): New function.
3217         (struct gather_other_count_struct): New type.
3218         (gather_count_of_non_rec_edges): New function.
3219         (struct desc_incoming_count_struct): New type.
3220         (analyze_clone_icoming_counts): New function.
3221         (adjust_clone_incoming_counts): Likewise.
3222         (update_counts_for_self_gen_clones): Likewise.
3223         (update_profiling_info): Rewritten.
3224         (update_specialized_profile): Adjust call to dump_profile_updates.
3225         (create_specialized_node): Do not update profiling info.
3226         (decide_about_value): New parameter self_gen_clones, either push new
3227         clones into it or updat their profile counts.  For self-recursively
3228         generated values, use a portion of the node count instead of count
3229         from self-recursive edges to estimate goodness.
3230         (decide_whether_version_node): Gather clones for self-generated values
3231         in a new vector, update their profiles at once at the end.
3233 2021-10-27  Richard Biener  <rguenther@suse.de>
3235         * tree-vectorizer.c (vect_transform_loops): New function,
3236         split out from ...
3237         (try_vectorize_loop_1): ... here.  Simplify as epilogues
3238         are now fully handled in the split part.
3240 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3242         * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
3243         iterators with pointer types.
3244         (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
3246 2021-10-26  Martin Sebor  <msebor@redhat.com>
3248         PR tree-optimization/102238
3249         PR tree-optimization/102919
3250         * gimple-ssa-sprintf.c (get_string_length): Add an argument.
3251         (array_elt_at_offset): Move to pointer-query.
3252         (set_aggregate_size_and_offset): New function.
3253         (field_at_offset):  Move to pointer-query.
3254         (get_origin_and_offset): Rename...
3255         (get_origin_and_offset_r): this.  Add an argument.  Make aggregate
3256         handling more robust.
3257         (get_origin_and_offset): New.
3258         (alias_offset): Add an argument.
3259         (format_string): Use subobject size determined by get_origin_and_offset.
3260         * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
3261         Improve/correct handling of aggregates.
3262         (array_elt_at_offset): Same.
3263         * pointer-query.h (field_at_offset): Declare.
3264         (array_elt_at_offset): Declare.
3266 2021-10-26  Martin Sebor  <msebor@redhat.com>
3268         * builtins.c (check_strncat_sizes): Pass access_data ctor additional
3269         arguments.
3270         (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
3271         (expand_builtin_fork_or_exec): Same.
3272         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
3273         compute_objsize additional arguments.
3274         (inbounds_memaccess_p): Same.
3275         (array_bounds_checker::check_array_bounds): Add an assert.  Stash
3276         statement in a member.
3277         (check_array_bounds_dom_walker::before_dom_children): Same.
3278         * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
3279         * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
3280         (handle_printf_call): Pass a new argument.
3281         * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
3282         (check_access): Add an argument and pass it along to callees.
3283         (check_read_access): Make a member function.
3284         (pass_waccess::check_strcat): Pass access_data ctor additional
3285         arguments.
3286         (pass_waccess::check_strncat): Same.
3287         (pass_waccess::check_stxcpy): Same.
3288         (pass_waccess::check_stxncpy): Same.
3289         (pass_waccess::check_strncmp): Same.
3290         (pass_waccess::check_read_access): Same.
3291         (pass_waccess::check_builtin): Same.
3292         (pass_waccess::maybe_check_access_sizes): Same.
3293         (pass_waccess::maybe_check_dealloc_call): Same.
3294         * gimple-ssa-warn-access.h (check_read_access): Declare a new
3295         member function.
3296         * pointer-query.cc (compute_objsize_r): Add an argument.
3297         (gimple_call_return_array): Same.
3298         (gimple_call_alloc_size): Same.
3299         (access_ref::access_ref): Same.
3300         (access_ref::get_ref): Same.
3301         (pointer_query::get_ref): Same.
3302         (handle_min_max_size): Pass an arguments to callees.
3303         (handle_array_ref): Add an argument.
3304         (handle_mem_ref): Same.
3305         (compute_objsize): Same.
3306         * pointer-query.h (struct access_ref): Adjust signatures.
3307         (struct access_data): Same.
3308         (gimple_call_alloc_size): Add an argument.
3309         (gimple_parm_array_size): Same.
3310         (compute_objsize): Same.
3311         * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
3312         argument to compute_objsize.
3313         (strlen_pass::maybe_warn_overflow): Same.
3314         (maybe_diag_stxncpy_trunc): Same.
3316 2021-10-26  Martin Sebor  <msebor@redhat.com>
3318         PR middle-end/102453
3319         * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
3320         (pass_waccess::check_atomic_builtin): Call it.
3322 2021-10-26  Vladimir N. Makarov  <vmakarov@redhat.com>
3324         PR rtl-optimization/102842
3325         * lra-constraints.c (match_reload): Ignore out in checking values
3326         of outs.
3327         (curr_insn_transform): Collect outputs before doing reloads of operands.
3329 2021-10-26  Paul A. Clarke  <pc@us.ibm.com>
3331         PR target/102719
3332         * config/rs6000/x86intrin.h: Move some included headers to new
3333         headers.  Include new immintrin.h instead of those headers.
3334         * config/rs6000/immintrin.h: New.
3335         * config/rs6000/x86gprintrin.h: New.
3336         * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
3338 2021-10-26  Richard Biener  <rguenther@suse.de>
3340         * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
3341         Remove byte_offset parameter.
3342         (vect_create_data_ref_ptr): Likewise.
3343         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3344         Likewise.
3345         (vect_create_data_ref_ptr): Likewise.
3346         * tree-vect-stmts.c (vectorizable_store): Adjust.
3347         (vectorizable_load): Likewise.
3349 2021-10-26  Richard Biener  <rguenther@suse.de>
3351         PR tree-optimization/96109
3352         * tree-vectorizer.h (dr_misalignment): Add optional offset
3353         parameter.
3354         * tree-vect-data-refs.c (dr_misalignment): Likewise.  Remove
3355         offset applied for negative stride accesses.
3356         (vect_enhance_data_refs_alignment): Compute negative stride
3357         access offset and pass it to dr_misalignment.
3358         * tree-vect-stmts.c (get_negative_load_store_type): Pass
3359         negative offset to dr_misalignment.
3360         (get_group_load_store_type): Likewise.
3361         (get_load_store_type): Likewise.
3362         (vectorizable_store): Remove asserts about alignment.
3363         (vectorizable_load): Likewise.
3365 2021-10-26  Kewen Lin  <linkw@linux.ibm.com>
3367         PR tree-optimization/102897
3368         * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
3370 2021-10-26  Richard Biener  <rguenther@suse.de>
3372         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3373         Take offset in bytes.
3374         (vect_create_data_ref_ptr): Likewise.
3375         * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
3376         offset by element size.
3377         (vect_create_cond_for_align_checks): Likewise.
3378         * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
3379         (vectorizable_load): Remove duplicate leftover from merge
3380         conflict.
3382 2021-10-26  Roger Sayle  <roger@nextmovesoftware.com>
3384         * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
3385         function to expand V1TI mode logical shifts by integer constants.
3386         (ix86_expand_v1ti_rotate): New helper function to expand V1TI
3387         mode rotations by integer constants.
3388         * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
3389         ix86_expand_v1ti_rotate): Prototype new functions here.
3390         * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
3391         New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
3393 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
3395         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
3396         Avoid threading circular paths.
3398 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
3400         * tree-ssa-threadbackward.c (back_threader::resolve_phi):
3401         Attempt to resolve all incoming paths to a PHI.
3402         (back_threader::resolve_def): Always return true for PHIs.
3404 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
3406         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
3407         Always try to resolve path without looking back.
3408         * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
3409         edge is a back edge.
3411 2021-10-26  Kewen Lin  <linkw@linux.ibm.com>
3413         PR tree-optimization/102789
3414         * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
3415         update inits of simd_lane_access.
3417 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
3419         * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
3420         move to vr-values.c.
3421         (simplify_casted_conds): Move to vrp_folder class.
3422         (execute_vrp): Call via vrp_folder now.
3423         * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
3424         (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
3425         * vr-values.h (simplify_casted_cond): Add prototype.
3427 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
3429         * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
3430         to fold anyway.
3432 2021-10-25  Paul A. Clarke  <pc@us.ibm.com>
3434         * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
3435         function signature.
3436         (_mm_testc_si128): Likewise.
3437         (_mm_testnzc_si128): Likewise.
3438         (_mm_blend_ps): Likewise.
3439         (_mm_blendv_ps): Likewise.
3440         (_mm_blend_pd): Likewise.
3441         (_mm_blendv_pd): Likewise.
3442         (_mm_ceil_pd): Likewise.
3443         (_mm_ceil_sd): Likewise.
3444         (_mm_ceil_ps): Likewise.
3445         (_mm_ceil_ss): Likewise.
3446         (_mm_floor_pd): Likewise.
3447         (_mm_floor_sd): Likewise.
3448         (_mm_floor_ps): Likewise.
3449         (_mm_floor_ss): Likewise.
3450         (_mm_minpos_epu16): Likewise.
3451         (_mm_mul_epi32): Likewise.
3452         (_mm_cvtepi8_epi16): Likewise.
3453         (_mm_packus_epi32): Likewise.
3454         (_mm_cmpgt_epi64): Likewise.
3456 2021-10-25  Roger Sayle  <roger@nextmovesoftware.com>
3458         * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
3459         shifts of the mode's smin_value and smax_value when the bit count
3460         operand doesn't have side-effects.
3461         [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
3462         when the bit count operand doesn't have side-effects.
3463         (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
3464         compile-time evaluation of saturating left shifts with constant
3465         arguments.
3467 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
3469         * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
3470         for TDF_DETAILS.
3472 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
3474         * flag-types.h (enum ranger_debug): Adjust values.
3475         * params.opt (ranger_debug): Ditto.
3477 2021-10-25  Martin Jambor  <mjambor@suse.cz>
3479         PR tree-optimization/102886
3480         * tree-sra.c (totally_scalarize_subtree): Fix the out of
3481         access-condition.
3483 2021-10-25  Andrew Pinski  <apinski@marvell.com>
3485         * tree-ssa-dce.c (simple_dce_from_worklist):
3486         Check stmt_unremovable_because_of_non_call_eh_p also
3487         before removing the statement.
3489 2021-10-25  Richard Biener  <rguenther@suse.de>
3491         PR tree-optimization/102905
3492         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3493         Use vect_supportable_dr_alignment again to determine whether
3494         an access is supported when not aligned.
3496 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
3498         * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
3499         for zbs extension.
3501 2021-10-25  Jim Wilson  <jimw@sifive.com>
3502             Kito Cheng  <kito.cheng@sifive.com>
3503             Jia-Wei Chen  <jiawei@iscas.ac.cn>
3504             Shi-Hua Liao  <shihua@iscas.ac.cn>
3506         * config/riscv/bitmanip.md (shiftm1): New.
3507         (*bset<mode>): Ditto.
3508         (*bset<mode>_mask): Ditto.
3509         (*bset<mode>_1): Ditto.
3510         (*bset<mode>_1_mask): Ditto.
3511         (*bseti<mode>): Ditto.
3512         (*bclr<mode>): Ditto.
3513         (*bclri<mode>): Ditto.
3514         (*binv<mode>): Ditto.
3515         (*binvi<mode>): Ditto.
3516         (*bext<mode>): Ditto.
3517         (*bexti): Ditto.
3518         * config/riscv/predicates.md (splittable_const_int_operand):
3519         Handle bseti.
3520         (single_bit_mask_operand): New.
3521         (not_single_bit_mask_operand): Ditto.
3522         (const31_operand): Ditto.
3523         (const63_operand): Ditto.
3524         * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
3525         (riscv_output_move): Ditto.
3526         (riscv_print_operand): Handle new operand type: T and S.
3527         * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
3529 2021-10-25  Jim Wilson  <jimw@sifive.com>
3531         * config/riscv/riscv.c (riscv_build_integer_1): Build integer
3532         with rotate.
3534 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
3536         * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
3537         for zbb extension.
3538         (riscv_rtx_costs): Ditto.
3540 2021-10-25  Jim Wilson  <jimw@sifive.com>
3541             Kito Cheng  <kito.cheng@sifive.com>
3542             Jia-Wei Chen  <jiawei@iscas.ac.cn>
3544         * config/riscv/bitmanip.md (bitmanip_bitwise): New.
3545         (bitmanip_minmax): New.
3546         (clz_ctz_pcnt): New.
3547         (bitmanip_optab): New.
3548         (bitmanip_insn): New.
3549         (*<optab>_not<mode>): New.
3550         (*xor_not<mode>): New.
3551         (<bitmanip_optab>si2): New.
3552         (*<bitmanip_optab>disi2): New.
3553         (<bitmanip_optab>di2): New.
3554         (*zero_extendhi<GPR:mode>2_bitmanip): New.
3555         (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
3556         (*zero_extendhi<GPR:mode>2_zbb): New.
3557         (rotrsi3): New.
3558         (rotrdi3): New.
3559         (rotrsi3_sext): New.
3560         (rotlsi3): New.
3561         (rotldi3): New.
3562         (rotlsi3_sext): New.
3563         (bswap<mode>2): New.
3564         (<bitmanip_optab><mode>3): New.
3565         * config/riscv/riscv.md (type): Add rotate.
3566         (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
3567         (*zero_extendhi<GPR:mode>2): New.
3568         (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
3569         (*extend<SHORT:mode><SUPERQI:mode>2): New.
3571 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
3573         * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
3574         for zba extension.
3575         (riscv_rtx_costs): Ditto.
3577 2021-10-25  Jim Wilson  <jimw@sifive.com>
3578             Kito Cheng  <kito.cheng@sifive.com>
3579             Jia-Wei Chen  <jiawei@iscas.ac.cn>
3581         * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
3582         (*shNadd): Ditto.
3583         (*shNadduw): Ditto.
3584         (*add.uw): Ditto.
3585         (*slliuw): Ditto.
3586         (riscv_rtx_costs): Ditto.
3587         * config/riscv/riscv.md: Include bitmanip.md
3588         (type): Add bitmanip bype.
3589         (zero_extendsidi2): Change to define_expand pattern.
3590         (*zero_extendsidi2_internal): New.
3591         (zero_extendsidi2_shifted): Disable for ZBA.
3593 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
3595         * common/config/riscv/riscv-common.c (riscv_ext_version_table):
3596         Add zba, zbb, zbc and zbs.
3597         (riscv_ext_flag_table): Ditto.
3598         * config/riscv/riscv-opts.h (MASK_ZBA): New.
3599         (MASK_ZBB): Ditto.
3600         (MASK_ZBC): Ditto.
3601         (MASK_ZBS): Ditto.
3602         (TARGET_ZBA): Ditto.
3603         (TARGET_ZBB): Ditto.
3604         (TARGET_ZBC): Ditto.
3605         (TARGET_ZBS): Ditto.
3606         * config/riscv/riscv.opt (riscv_zb_subext): New.
3608 2021-10-25  liuhongt  <hongtao.liu@intel.com>
3610         PR target/102464
3611         * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
3612         when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
3614 2021-10-25  Richard Biener  <rguenther@suse.de>
3616         PR tree-optimization/102920
3617         * tree-ssa-sccvn.h (expressions_equal_p): Add argument
3618         controlling VN_TOP matching behavior.
3619         * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
3620         (vn_phi_eq): Do not optimistically match VN_TOP.
3622 2021-10-25  konglin1  <lingling.kong@intel.com>
3624         * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
3625         define_insn_and_split.
3626         (fma_<mode>_fadd_fcmul):Likewise
3627         (fma_<complexopname>_<mode>_fma_zero):Likewise
3629 2021-10-24  John David Anglin  <danglin@gcc.gnu.org>
3631         * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
3632         TARGET_DISABLE_FPREGS.
3633         * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
3634         MASK_DISABLE_FPREGS.
3635         (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS.  Adjust
3636         cost of hardware integer multiplication.
3637         (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
3638         * config/pa/pa.h (INT14_OK_STRICT): Likewise.
3639         * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
3640         TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
3641         * config/pa/pa.opt (mdisable-fpregs): Change target mask to
3642         SOFT_FLOAT.  Revise comment.
3643         (msoft-float): New option.
3645 2021-10-24  John David Anglin  <danglin@gcc.gnu.org>
3647         * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
3649 2021-10-24  Gerald Pfeifer  <gerald@pfeifer.com>
3651         * doc/install.texi (Specific): Remove obsolete details
3652         around GNU/Linux on Itanium.
3653         (Specific): Remove reference to Windows for Itanium.
3655 2021-10-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3657         * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
3658         typo fix.
3660 2021-10-23  Jan Hubicka  <hubicka@ucw.cz>
3662         * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
3664 2021-10-23  Roger Sayle  <roger@nextmovesoftware.com>
3666         * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
3667         implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
3668         (one_cmplv1ti2): New define expand.
3670 2021-10-22  Eric Gallager  <egallager@gcc.gnu.org>
3672         PR other/102663
3673         * Makefile.in: Handle dvidir and install-dvi target.
3674         * configure: Regenerate.
3675         * configure.ac: Add install-dvi to target_list.
3677 2021-10-22  Gerald Pfeifer  <gerald@pfeifer.com>
3679         * doc/install.texi (Binaries): Convert mingw-w64.org to https.
3680         (Specific): Ditto.
3682 2021-10-22  Richard Biener  <rguenther@suse.de>
3684         PR tree-optimization/102893
3685         * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
3686         test for an exit edge.
3688 2021-10-22  Aldy Hernandez  <aldyh@redhat.com>
3689             Andrew MacLeod  <amacleod@redhat.com>
3691         * gimple-range-path.cc (path_range_query::compute_phi_relations):
3692         Kill any global relations we may know before registering a new
3693         one.
3694         * value-relation.cc (path_oracle::killing_def): New.
3695         * value-relation.h (path_oracle::killing_def): New.
3697 2021-10-22  Richard Biener  <rguenther@suse.de>
3699         PR bootstrap/102681
3700         * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
3701         record VN_TOP.
3702         (vn_phi_lookup): Likewise.
3704 2021-10-21  H.J. Lu  <hjl.tools@gmail.com>
3706         PR target/98667
3707         * doc/invoke.texi: Document -fcf-protection requires i686 or
3708         new.
3710 2021-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3712         PR middle-end/102764
3713         * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
3715 2021-10-21  Jonathan Wright  <jonathan.wright@arm.com>
3717         * config/aarch64/arm_neon.h (__STRUCTN): Delete function
3718         macro and all invocations.
3720 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
3722         * doc/invoke.texi (ranger-debug): Document.
3723         * flag-types.h (enum ranger_debug): New.
3724         (enum evrp_mode): Remove debug values.
3725         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
3726         * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
3727         * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
3728         * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
3729         (execute_early_vrp): Use evrp-mode directly.
3730         * params.opt (enum evrp_mode): Remove debug values.
3731         (ranger-debug): New.
3732         (ranger-logical-depth): Relocate to be in alphabetical order.
3734 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
3736         * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
3737         * flag-types.h: (enum vrp_mode): New.
3738         * params.opt: (vrp1-mode, vrp2-mode): New.
3739         * tree-vrp.c (vrp_pass_num): New.
3740         (pass_vrp::pass_vrp): Set pass number.
3741         (pass_vrp::execute): Choose which VRP mode to execute.
3743 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
3745         * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
3746         (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
3747         * tree-vrp.c (class rvrp_folder): Relocate here.
3748         (execute_ranger_vrp): New.
3749         * tree-vrp.h (execute_ranger_vrp): Export.
3751 2021-10-21  Martin Liska  <mliska@suse.cz>
3753         PR debug/102585
3754         PR bootstrap/102766
3755         * opts.c (finish_options): Process flag_var_tracking* options
3756         here as they can be adjusted by optimize attribute.
3757         Process also flag_syntax_only and flag_gtoggle.
3758         * toplev.c (process_options): Remove it here.
3759         * common.opt: Make debug_nonbind_markers_p as PerFunction
3760         attribute as it depends on optimization level.
3762 2021-10-21  Martin Jambor  <mjambor@suse.cz>
3764         PR tree-optimization/102505
3765         * tree-sra.c (totally_scalarize_subtree): Check that the
3766         encountered field fits within the acces we would like to put it
3767         in.
3769 2021-10-21  Aldy Hernandez  <aldyh@redhat.com>
3771         * tree-ssa-threadbackward.c
3772         (back_threader::maybe_register_path): Remove circular paths check.
3774 2021-10-21  Richard Biener  <rguenther@suse.de>
3776         * toplev.c (process_options): Move the initial debug_hooks
3777         setting ...
3778         (toplev::main): ... before the call of the post_options
3779         langhook.
3781 2021-10-21  Richard Biener  <rguenther@suse.de>
3783         PR tree-optimization/102847
3784         * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
3785         load cost in the prologue for VMAT_INVARIANT.
3787 2021-10-21  Richard Biener  <rguenther@suse.de>
3789         PR tree-optimization/102847
3790         * tree-vect-stmts.c (vect_model_load_cost): Explicitely
3791         handle VMAT_INVARIANT as a splat in the prologue.
3793 2021-10-21  Hongyu Wang  <hongyu.wang@intel.com>
3795         PR target/102812
3796         * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
3797         move to use the same logic as HImode.
3799 2021-10-21  Richard Biener  <rguenther@suse.de>
3801         * tree-vect-slp.c (vect_build_slp_tree_1): Remove
3802         superfluous gimple_call_nothrow_p check.
3804 2021-10-21  Andrew Pinski  <apinski@marvell.com>
3806         * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
3807         Mark the ssa-name of the rhs as one to be removed.
3808         (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
3809         Call simple_dce_from_worklist at the end to a simple dce.
3811 2021-10-21  Andrew Pinski  <apinski@marvell.com>
3813         * tree-cfg.c (maybe_remove_writeonly_store): New function
3814         factored out from ...
3815         (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
3817 2021-10-21  Andrew Pinski  <apinski@marvell.com>
3819         * tree-cfg.c (execute_fixup_cfg): Remove comment
3820         about standalone pass.
3822 2021-10-21  Andrew Pinski  <apinski@marvell.com>
3824         * tree-cfg.c (execute_fixup_cfg): Output when the statement
3825         is removed when it is a write only var.
3827 2021-10-21  Aldy Hernandez  <aldyh@redhat.com>
3829         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
3830         Avoid threading circular paths.
3832 2021-10-20  Alex Coplan  <alex.coplan@arm.com>
3834         * calls.c (initialize_argument_information): Remove some dead
3835         code, remove handling for function_arg returning const_int.
3836         * doc/tm.texi: Delete documentation for unused target hooks.
3837         * doc/tm.texi.in: Likewise.
3838         * target.def (load_bounds_for_arg): Delete.
3839         (store_bounds_for_arg): Delete.
3840         (load_returned_bounds): Delete.
3841         (store_returned_bounds): Delete.
3842         * targhooks.c (default_load_bounds_for_arg): Delete.
3843         (default_store_bounds_for_arg): Delete.
3844         (default_load_returned_bounds): Delete.
3845         (default_store_returned_bounds): Delete.
3846         * targhooks.h (default_load_bounds_for_arg): Delete.
3847         (default_store_bounds_for_arg): Delete.
3848         (default_load_returned_bounds): Delete.
3849         (default_store_returned_bounds): Delete.
3851 2021-10-20  Jonathan Wakely  <jwakely@redhat.com>
3853         * doc/extend.texi (Basic Asm): Clarify that asm is not an
3854         extension in C++.
3855         * doc/invoke.texi (-fno-asm): Fix description for C++.
3857 2021-10-20  Jonathan Wakely  <jwakely@redhat.com>
3859         * doc/install.texi: Remove link to old.html
3861 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
3863         * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
3865 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
3867         * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
3869 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
3871         * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
3872         case.
3873         * config/aarch64/constraints.md (D1): New.
3875 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
3877         * config/aarch64/aarch64-simd.md
3878         (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
3879         (*aarch64_topbits_shuffle<mode>_le): New.
3880         (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
3881         (*aarch64_topbits_shuffle<mode>_be): New.
3882         * config/aarch64/predicates.md
3883         (aarch64_simd_shift_imm_vec_exact_top): New.
3885 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
3887         * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
3888         *aarch64_<srn_op>shrn<mode>2_vect_le,
3889         *aarch64_<srn_op>shrn<mode>2_vect_be): New.
3890         * config/aarch64/iterators.md (srn_op): New.
3892 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
3894         * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
3895         as local variable.
3896         (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
3897         ctx->outer instead of ctx.
3899 2021-10-20  Martin Liska  <mliska@suse.cz>
3901         Revert:
3902         2021-10-19  Martin Liska  <mliska@suse.cz>
3904         PR target/102374
3905         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
3906         * system.h (strip_whilespaces): New function.
3908 2021-10-20  Martin Liska  <mliska@suse.cz>
3910         Revert:
3911         2021-10-19  Martin Liska  <mliska@suse.cz>
3913         PR target/102375
3914         * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
3915         Strip whitespaces.
3917 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3919         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
3920         Change to 8 with -Os, 11 otherwise.
3922 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3924         * config/aarch64/aarch64.c (neoversev1_tunings):
3925         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
3926         (neoversen2_tunings): Likewise.
3928 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3930         PR target/100966
3931         * config/aarch64/aarch64.md (frint_pattern): Update comment.
3932         * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
3933         * config/aarch64/arm_fp16.h: Change frintn to roundeven.
3934         * config/aarch64/arm_neon.h: Likewise.
3935         * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
3937 2021-10-20  Martin Liska  <mliska@suse.cz>
3939         * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
3940         already declared global variable.
3941         (arm_unwind_emit_set): Use out_file as function argument.
3942         (arm_unwind_emit): Likewise.
3943         * config/darwin.c (machopic_output_data_section_indirection): Likewise.
3944         (machopic_output_stub_indirection): Likewise.
3945         (machopic_output_indirection): Likewise.
3946         (machopic_finish): Likewise.
3947         * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
3948         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3949         * config/ia64/ia64.c (process_epilogue): Likewise.
3950         (process_cfa_adjust_cfa): Likewise.
3951         (process_cfa_register): Likewise.
3952         (process_cfa_offset): Likewise.
3953         (ia64_asm_unwind_emit): Likewise.
3954         * config/s390/s390.c (s390_asm_output_function_label): Likewise.
3956 2021-10-20  Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
3958         * config/aarch64/aarch64-builtins.c
3959         (aarch64_general_gimple_fold_builtin):
3960         lower vld1 and vst1 variants of the neon builtins
3961         * config/aarch64/aarch64-protos.h:
3962         (aarch64_general_gimple_fold_builtin): Add gsi parameter.
3963         * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
3964         Likwise.
3966 2021-10-20  Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
3968         * match.pd: Generate IFN_TRUNC.
3970 2021-10-20  Richard Biener  <rguenther@suse.de>
3972         PR tree-optimization/102853
3973         * tree-data-ref.c (split_constant_offset_1): Bail out
3974         immediately if the expression traps on overflow.
3976 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3978         * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
3980 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3982         * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
3983         Remove superflous debugging message.
3984         (back_jt_path_registry::duplicate_thread_path): Same.
3986 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3988         * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
3989         Remove.
3990         (back_threader_registry::register_path): Remove m_threaded_paths.
3992 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3994         PR tree-optimization/102814
3995         * doc/invoke.texi: Document --param=max-fsm-thread-length.
3996         * params.opt: Add --param=max-fsm-thread-length.
3997         * tree-ssa-threadbackward.c
3998         (back_threader_profitability::profitable_path_p): Fail on paths
3999         longer than max-fsm-thread-length.
4001 2021-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4003         PR middle-end/102764
4004         * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
4005         statement to reset the current location for the outgoing edges.
4007 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4008             Richard Biener  <rguenther@suse.de>
4010         * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
4011         on the same line as the threading cancellation.
4012         (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
4013         Avoid threading through loop headers where the path remains in the
4014         loop.
4016 2021-10-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4018         * tree-object-size.c (unknown): Make into a function.  Adjust
4019         all uses.
4020         (unknown_object_size): Simplify implementation.
4022 2021-10-20  Hongtao Liu  <hongtao.liu@intel.com>
4023             Kewen Lin  <linkw@linux.ibm.com>
4025         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4026         vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
4027         vect_slp_v16qi_store, vect_slp_v2hi_store,
4028         vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
4030 2021-10-19  Jonathan Wakely  <jwakely@redhat.com>
4032         * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
4034 2021-10-19  Paul A. Clarke  <pc@us.ibm.com>
4036         PR target/101893
4037         PR target/102719
4038         * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
4039         * config/rs6000/pmmintrin.h: Same.
4040         * config/rs6000/smmintrin.h: Same.
4041         * config/rs6000/tmmintrin.h: Same.
4043 2021-10-19  Paul A. Clarke  <pc@us.ibm.com>
4045         * config.gcc (extra_headers): Add nmmintrin.h.
4047 2021-10-19  Richard Biener  <rguenther@suse.de>
4049         * tree-vectorizer.h (vect_supportable_dr_alignment): Add
4050         misalignment parameter.
4051         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
4052         Do not change DR_MISALIGNMENT in place, instead pass the
4053         adjusted misalignment to vect_supportable_dr_alignment.
4054         (vect_peeling_supportable): Likewise.
4055         (vect_peeling_hash_get_lowest_cost): Adjust.
4056         (vect_enhance_data_refs_alignment): Likewise.
4057         (vect_vfa_access_size): Likewise.
4058         (vect_supportable_dr_alignment): Add misalignment
4059         parameter and simplify.
4060         * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
4061         (get_group_load_store_type): Likewise.
4062         (get_load_store_type): Likewise.
4064 2021-10-19  Clément Chigot  <clement.chigot@atos.net>
4066         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
4067         __tls_get_addr reference to .text csect.
4069 2021-10-19  Martin Liska  <mliska@suse.cz>
4071         PR target/102375
4072         * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
4073         Strip whitespaces.
4075 2021-10-19  Richard Biener  <rguenther@suse.de>
4077         * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
4078         (vect_get_load_cost): Likewise.
4079         * tree-vect-data-refs.c (vect_get_data_access_cost): Get
4080         alignment support scheme and misalignment as arguments
4081         and pass them down.
4082         (vect_get_peeling_costs_all_drs): Compute that info here
4083         and note that we shouldn't need to.
4084         * tree-vect-stmts.c (vect_model_store_cost): Get
4085         alignment support scheme and misalignment as arguments.
4086         (vect_get_store_cost): Likewise.
4087         (vect_model_load_cost): Likewise.
4088         (vect_get_load_cost): Likewise.
4089         (vectorizable_store): Pass down alignment support scheme
4090         and misalignment to costing.
4091         (vectorizable_load): Likewise.
4093 2021-10-19  Richard Biener  <rguenther@suse.de>
4095         * tree-vect-stmts.c (get_negative_load_store_type): Add
4096         offset output parameter and initialize it.
4097         (get_group_load_store_type): Likewise.
4098         (get_load_store_type): Likewise.
4099         (vectorizable_store): Use offset as computed by
4100         get_load_store_type.
4101         (vectorizable_load): Likewise.
4103 2021-10-19  Richard Biener  <rguenther@suse.de>
4105         PR tree-optimization/102827
4106         * tree-if-conv.c (predicate_statements): Add pe parameter
4107         and use that edge to insert invariant stmts on.
4108         (combine_blocks): Pass through pe.
4109         (tree_if_conversion): Compute the edge to insert invariant
4110         stmts on and pass it along.
4112 2021-10-19  Roger Sayle  <roger@nextmovesoftware.com>
4114         PR target/102785
4115         * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
4116         sssubaddv2hi3):  Swap the order of operators in vec_concat.
4118 2021-10-19  Xionghu Luo  <luoxhu@linux.ibm.com>
4120         * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
4121         (altivec_vmrghb_direct): New.
4122         (*altivec_vmrghh_internal): Delete.
4123         (altivec_vmrghh_direct): New.
4124         (*altivec_vmrghw_internal): Delete.
4125         (altivec_vmrghw_direct_<mode>): New.
4126         (altivec_vmrghw_direct): Delete.
4127         (*altivec_vmrglb_internal): Delete.
4128         (altivec_vmrglb_direct): New.
4129         (*altivec_vmrglh_internal): Delete.
4130         (altivec_vmrglh_direct): New.
4131         (*altivec_vmrglw_internal): Delete.
4132         (altivec_vmrglw_direct_<mode>): New.
4133         (altivec_vmrglw_direct): Delete.
4134         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
4135         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
4136         Adjust.
4137         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
4138         (vsx_xxmrglw_<mode>): Adjust.
4140 2021-10-19  Aldy Hernandez  <aldyh@redhat.com>
4142         * passes.def: Change threading comment before pass_ccp pass.
4144 2021-10-19  Haochen Gui  <guihaoc@gcc.gnu.org>
4146         * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
4147         Modify the expansion for sign extension. All extensions are done
4148         within VSX registers.
4150 2021-10-19  Richard Biener  <rguenther@suse.de>
4152         * tree-vect-stmts.c (get_group_load_store_type): Add
4153         misalignment output parameter and initialize it.
4154         (get_group_load_store_type): Likewise.
4155         (vectorizable_store): Remove now redundant queries.
4156         (vectorizable_load): Likewise.
4158 2021-10-19  Richard Biener  <rguenther@suse.de>
4160         * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
4161         check_aligned argument.
4162         * tree-vect-data-refs.c (vect_supportable_dr_alignment):
4163         Likewise.
4164         (vect_peeling_hash_insert): Add supportable_if_not_aligned
4165         argument and do not call vect_supportable_dr_alignment here.
4166         (vect_peeling_supportable): Adjust.
4167         (vect_enhance_data_refs_alignment): Compute whether the
4168         access is supported with different alignment here and
4169         pass that down to vect_peeling_hash_insert.
4170         (vect_vfa_access_size): Adjust.
4171         * tree-vect-stmts.c (vect_get_store_cost): Likewise.
4172         (vect_get_load_cost): Likewise.
4173         (get_negative_load_store_type): Likewise.
4174         (get_group_load_store_type): Likewise.
4175         (get_load_store_type): Likewise.
4177 2021-10-19  Martin Liska  <mliska@suse.cz>
4179         PR target/102374
4180         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
4181         * system.h (strip_whilespaces): New function.
4183 2021-10-19  dianhong xu  <dianhong.xu@intel.com>
4185         * config/i386/avx512fp16intrin.h:
4186         (_mm512_set1_pch): New intrinsic.
4187         * config/i386/avx512fp16vlintrin.h:
4188         (_mm256_set1_pch): New intrinsic.
4189         (_mm_set1_pch): Ditto.
4191 2021-10-18  Andrew MacLeod  <amacleod@redhat.com>
4193         PR tree-optimization/102796
4194         * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
4195         normally.  Return get_tree_range for non gimple_range_ssa_p names.
4196         (gimple_ranger::range_of_stmt): Use get_tree_range for non
4197         gimple_range_ssa_p names.
4199 2021-10-18  Uroš Bizjak  <ubizjak@gmail.com>
4201         PR target/102761
4202         * config/i386/i386.c (ix86_print_operand_address):
4203         Error out for non-address_operand asm operands.
4205 2021-10-18  Richard Biener  <rguenther@suse.de>
4207         * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
4208         not auto-convert dr_alignment_support to bool.
4209         (vect_peeling_supportable): Likewise.
4210         (vect_enhance_data_refs_alignment): Likewise.
4211         (vect_supportable_dr_alignment): Commonize read/write case.
4212         * tree-vect-stmts.c (vect_get_store_cost): Use
4213         dr_alignment_support, not int, for the vect_supportable_dr_alignment
4214         result.
4215         (vect_get_load_cost): Likewise.
4217 2021-10-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4219         * tree-object-size.c (object_sizes_execute): Consolidate LHS
4220         null check and do it early.
4222 2021-10-18  Richard Biener  <rguenther@suse.de>
4224         * tree-vect-stmts.c (vectorizable_store): Use the
4225         computed alignment scheme instead of querying
4226         aligned_access_p.
4228 2021-10-18  Richard Biener  <rguenther@suse.de>
4230         * tree-vect-stmts.c (vectorizable_store): Do not recompute
4231         alignment scheme already determined by get_load_store_type.
4233 2021-10-18  Aldy Hernandez  <aldyh@redhat.com>
4235         * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
4236         Clone corresponding pass.
4238 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
4240         * combine.c (recog_for_combine): For an unrecognized move/set of
4241         a constant, try force_const_mem to place it in the constant pool.
4242         * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
4243         Delete global variables (that are no longer assigned a cost value).
4244         (cse_insn): Simplify logic for deciding whether to place a folded
4245         constant in the constant pool using force_const_mem.
4246         (cse_main): Remove zero initialization of constant_pool_entries_cost
4247         and constant_pool_entries_regcost.
4248         * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
4249         fractionally more expensive, when optimizing for speed.
4251 2021-10-18  Martin Liska  <mliska@suse.cz>
4253         PR gcov-profile/102746
4254         PR gcov-profile/102747
4255         * gcov.c (main): Return return_code.
4256         (output_gcov_file): Mark return_code when error happens.
4257         (generate_results): Likewise.
4258         (read_graph_file): Likewise.
4259         (read_count_file): Likewise.
4261 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
4263         * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
4264         (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
4265         a popcount, allowing compile-time evaluation/simplification.
4266         (popcountsi2, popcounthi2): New expanders using a "ones" insn.
4268 2021-10-18  Richard Biener  <rguenther@suse.de>
4270         PR tree-optimization/102788
4271         * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
4272         a NULL vectype.
4273         (vect_pattern_recog_1): Likewise.
4274         (vect_recog_bool_pattern): Continue matching the pattern
4275         even if we do not have a vector type for a conversion
4276         result.
4278 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
4280         * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
4281         Evalute SS_NEG and SS_ABS of a constant argument.
4283 2021-10-18  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
4285         PR target/93183
4286         * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
4287         * internal-fn.def: Add entry for COND_NEG internal function.
4288         * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
4289         NEGATE_EXPR, COND_NEG mapping.
4290         * optabs.def: Add entry for cond_neg_optab.
4291         * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
4292         (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
4293         (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
4295 2021-10-18  Aldy Hernandez  <aldyh@redhat.com>
4297         * tree-ssa-strlen.c (class strlen_pass): Rename from
4298         strlen_dom_walker.
4299         (handle_builtin_stxncpy_strncat): Move to strlen_pass.
4300         (handle_assign): Same.
4301         (adjust_last_stmt): Same.
4302         (maybe_warn_overflow): Same.
4303         (handle_builtin_strlen): Same.
4304         (handle_builtin_strchr): Same.
4305         (handle_builtin_strcpy): Same.
4306         (handle_builtin_strncat): Same.
4307         (handle_builtin_stxncpy_strncat): Same.
4308         (handle_builtin_memcpy): Same.
4309         (handle_builtin_strcat): Same.
4310         (handle_alloc_call): Same.
4311         (handle_builtin_memset): Same.
4312         (handle_builtin_memcmp): Same.
4313         (get_len_or_size): Same.
4314         (strxcmp_eqz_result): Same.
4315         (handle_builtin_string_cmp): Same.
4316         (handle_pointer_plus): Same.
4317         (count_nonzero_bytes_addr): Same.
4318         (count_nonzero_bytes): Same.
4319         (handle_store): Same.
4320         (strlen_check_and_optimize_call): Same.
4321         (handle_integral_assign): Same.
4322         (check_and_optimize_stmt): Same.
4323         (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
4325 2021-10-18  Richard Biener  <rguenther@suse.de>
4327         PR tree-optimization/102798
4328         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4329         Only copy points-to info to newly generated SSA names.
4331 2021-10-18  Martin Liska  <mliska@suse.cz>
4333         * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
4334         * gcov.c (get_cycles_count): Likewise.
4335         * lto-compress.c (lto_compression_zlib): Likewise.
4336         (lto_uncompression_zlib): Likewise.
4337         * targhooks.c (default_pch_valid_p): Likewise.
4339 2021-10-17  Aldy Hernandez  <aldyh@redhat.com>
4341         * tree-pass.h (make_pass_thread_jumps_full): New.
4342         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
4343         (try_thread_blocks): Add resolve and speed arguments.
4344         (pass_thread_jumps::execute): Inline.
4345         (do_early_thread_jumps): New.
4346         (do_thread_jumps): New.
4347         (make_pass_thread_jumps): Move.
4348         (pass_early_thread_jumps::gate): Inline.
4349         (pass_early_thread_jumps::execute): Inline.
4350         (class pass_thread_jumps_full): New.
4352 2021-10-16  Piotr Kubaj  <pkubaj@FreeBSD.org>
4354         * configure.ac: Treat powerpc64*-*-freebsd* the same as
4355         powerpc64-*-freebsd*.
4356         * configure: Regenerate.
4358 2021-10-16  H.J. Lu  <hjl.tools@gmail.com>
4360         * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
4361         set_ptr_nonull to set_ptr_nonnull in comments.
4363 2021-10-16  Jan Hubicka  <hubicka@ucw.cz>
4365         PR tree-optimization/102720
4366         * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
4367         of call used and clobbered sets.
4369 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4371         * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
4372         skip gomp and itm when r or nodefaultlibs is given.
4373         (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
4374         Update ordering of exclusions, remove duplicate 'v' addition
4375         (collect2 will add this from the main command line).
4377 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4379         * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
4380         filelist and framework options in specs instead of code.
4381         * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
4382         specs that are really driver ones.
4383         (DARWIN_CC1_SPEC): Likewise.
4384         (CPP_SPEC): Likewise.
4385         (SYSROOT_SPEC): Append space.
4386         (LINK_SYSROOT_SPEC): Remove most driver link specs.
4387         (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
4388         (STARTFILE_SPEC): Likewise.
4389         (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
4390         (ASM_SPEC): Update driver-related specs.
4391         (ASM_FINAL_SPEC): Likewise.
4392         * config/darwin.opt: Remove now unused option aliases.
4393         * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
4394         (ASM_SPEC): Update driver-related specs.
4396 2021-10-15  Roger Sayle  <roger@nextmovesoftware.com>
4398         * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
4399         allow standard_sse_constant_p immediate constants.
4401 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4403         * config.gcc: Add tm-dwarf2.h to tm_d-file.
4405 2021-10-15  Andrew MacLeod  <amacleod@redhat.com>
4407         * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
4408         that occur in abnormal phis.
4409         * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
4410         abnormal and EH edges.
4411         * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
4412         (rvrp_folder::value_on_edge): Ditto.
4413         (rvrp_folder::value_of_stmt): Ditto.
4414         (hybrid_folder::value_of_expr): Ditto for ranger queries.
4415         (hybrid_folder::value_on_edge): Ditto.
4416         (hybrid_folder::value_of_stmt): Ditto.
4417         * value-query.cc (gimple_range_global): Always return a range if
4418         the type is supported.
4420 2021-10-15  John David Anglin  <danglin@gcc.gnu.org>
4422         * config/pa/pa.md: Consistently use "rG" constraint for copy
4423         instruction in move patterns.
4425 2021-10-15  Andrew Stubbs  <ams@codesourcery.com>
4427         * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
4428         (S_900): Likewise.
4429         (S_906): Likewise.
4430         * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
4431         * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
4432         (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
4433         (ELFABIVERSION_AMDGPU_HSA_V4): New.
4434         (SET_SRAM_ECC_UNSUPPORTED): New.
4435         (copy_early_debug_info): Create elf flags to match the other objects.
4436         (main): Just let the attribute flags pass through.
4438 2021-10-15  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
4440         * tree-loop-distribution.c (reduction_var_overflows_first):
4441         Pass the type of reduction_var as first argument as it is also
4442         done for the load type.
4443         (loop_distribution::transform_reduction_loop): Add missing
4444         TREE_TYPE while determining precission of reduction_var.
4446 2021-10-15  Richard Biener  <rguenther@suse.de>
4448         * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
4449         when not set.
4450         * toplev.c (process_options): Warn when STABS debugging is
4451         enabled but not the preferred format.
4452         * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
4453         DBX_DEBUG.
4454         * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4456 2021-10-15  Richard Biener  <rguenther@suse.de>
4458         PR ipa/102762
4459         * tree-inline.c (copy_bb): Avoid underflowing nargs.
4461 2021-10-15  Hongyu Wang  <hongyu.wang@intel.com>
4463         * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
4464         HFmode input operand to HImode.
4465         (ix86_vectorize_vec_perm_const): Likewise.
4466         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
4467         New define_insn.
4468         (*avx512f_permvar_truncv8siv8hi_1_hf):
4469         Likewise.
4471 2021-10-15  Richard Biener  <rguenther@suse.de>
4473         PR middle-end/102682
4474         * expmed.c (store_bit_field_1): Ensure a LHS subreg would
4475         not create a paradoxical subreg.
4477 2021-10-15  Hongyu Wang  <hongyu.wang@intel.com>
4479         * config/i386/i386-expand.c (ix86_expand_vector_init):
4480         For half_vector concat for HFmode, handle them like HImode.
4482 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
4484         * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
4485         (back_threader::back_threader): Same.
4486         (back_threader::resolve_phi): Try to solve without looking back if
4487         possible.
4488         (back_threader::find_paths_to_names): Same.
4489         (try_thread_blocks): Pass resolve argument to back threader.
4490         (pass_early_thread_jumps::execute): Same.
4492 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
4494         * doc/invoke.texi: Remove max-fsm-thread-length,
4495         max-fsm-thread-paths, and fsm-maximum-phi-arguments.
4496         * params.opt: Same.
4497         * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
4498         argument.
4499         (back_threader_registry::back_threader_registry): Same.
4500         (back_threader_profitability::profitable_path_p): Remove
4501         param_max_fsm_thread-length.
4502         (back_threader_registry::register_path): Remove
4503         m_max_allowable_paths.
4505 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
4507         * tree-ssa-threadbackward.c (class back_threader): Make m_imports
4508         an auto_bitmap.
4509         (back_threader::~back_threader): Do not release m_path.
4511 2021-10-14  Andrew MacLeod  <amacleod@redhat.com>
4513         PR tree-optimization/102738
4514         * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
4516 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4518         * omp-general.c (omp_check_context_selector):  Move from c-omp.c.
4519         (omp_mark_declare_variant): Move from c-omp.c.
4520         (omp_context_name_list_prop): Update for Fortran strings.
4521         * omp-general.h (omp_check_context_selector): New prototype.
4522         (omp_mark_declare_variant): New prototype.
4524 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
4526         * config/rs6000/rs6000.c (rs6000_density_test): Move early
4527         exit test further up the function.
4529 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
4531         * config/arm/arm.c (arm_add_stmt_cost): Delete.
4532         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
4534 2021-10-14  Martin Jambor  <mjambor@suse.cz>
4536         * doc/invoke.texi (Optimize Options): Add entry for
4537         ipa-cp-recursive-freq-factor.
4539 2021-10-14  Tamar Christina  <tamar.christina@arm.com>
4541         * match.pd: New rule.
4543 2021-10-14  Jan Hubicka  <hubicka@ucw.cz>
4545         PR ipa/102557
4546         * ipa-modref-tree.h (modref_access_node::update2):
4547         Also check that parm_offset is unchanged.
4548         (modref_ref_node::insert_access): Fix updating of
4549         parameter.
4551 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
4553         * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
4554         FIXME note.
4556 2021-10-14  Richard Biener  <rguenther@suse.de>
4558         PR tree-optimization/102659
4559         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
4560         rewrite pointer typed undefined overflow operations.
4561         (predicate_statements): Likewise.  Make sure to emit invariant
4562         conversions in the preheader.
4563         * tree-vectorizer.c (vect_loop_vectorized_call): Look through
4564         non-empty preheaders.
4565         * tree-data-ref.c (dr_analyze_indices): Strip useless
4566         conversions to the MEM_REF base type.
4568 2021-10-14  Martin Liska  <mliska@suse.cz>
4570         * common.opt: Stop using AUTODETECT_VALUE
4571         and use EnabledBy where possible.
4572         * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
4573         * toplev.c (AUTODETECT_VALUE): Remove macro.
4574         (process_options): Simplify by using EnabledBy and
4575         OPT_fvar_tracking.  Use OPTION_SET_P macro instead of
4576         AUTODETECT_VALUE.
4578 2021-10-14  Jonathan Wright  <jonathan.wright@arm.com>
4580         * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
4581         pointer parameter.
4582         (vld1_s32_x3): Likewise.
4584 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
4586         PR tree-optimization/102736
4587         PR tree-optimization/102736
4588         * gimple-range-path.cc (path_range_query::range_on_path_entry):
4589         Assert that the requested range is defined outside the path.
4590         (path_range_query::ssa_range_in_phi): Do not call
4591         range_on_path_entry for SSA names that are defined within the
4592         path.
4594 2021-10-14  Iain Sandoe  <iain@sandoe.co.uk>
4596         * config/darwin-driver.c (darwin_find_version_from_kernel):
4597         Quote internal identifiers and avoid contractions in
4598         warnings.
4599         (darwin_default_min_version): Likewise.
4600         (darwin_driver_init): Likewise.
4602 2021-10-14  Martin Jambor  <mjambor@suse.cz>
4604         * params.opt (ipa-cp-recursive-freq-factor): New.
4605         * ipa-cp.c (ipcp_value): Switch to inline initialization.  New members
4606         scc_no, self_recursion_generated_level, same_scc and
4607         self_recursion_generated_p.
4608         (ipcp_lattice::add_value): Replaced parameter unlimited with
4609         same_lat_gen_level, usit it determine limit of values and store it to
4610         the value.
4611         (ipcp_lattice<valtype>::print): Dump the new fileds.
4612         (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
4613         parameter and store it to the new value.
4614         (self_recursively_generated_p): Removed.
4615         (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
4616         instead of self_recursively_generated_p, store self generation level
4617         to such values.
4618         (value_topo_info<valtype>::add_val): Set scc_no.
4619         (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
4620         recursively feeding values and self generated values by appropriate
4621         new factors.
4623 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
4625         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
4626         redundant test for flag_vect_cost_model.
4628 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
4630         * bitmap.c (debug): New overloaded function for auto_bitmaps.
4631         * bitmap.h (debug): Same.
4633 2021-10-14  Hongyu Wang  <hongyu.wang@intel.com>
4635         * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
4636         Adjust builtin call.
4637         (_mm512_mask3_fcmadd_pch): Likewise.
4638         (_mm512_mask_fmadd_pch): Likewise
4639         (_mm512_mask3_fmadd_pch): Likewise
4640         (_mm512_mask_fcmadd_round_pch): Likewise
4641         (_mm512_mask3_fcmadd_round_pch): Likewise
4642         (_mm512_mask_fmadd_round_pch): Likewise
4643         (_mm512_mask3_fmadd_round_pch): Likewise
4644         (_mm_mask_fcmadd_sch): Likewise
4645         (_mm_mask3_fcmadd_sch): Likewise
4646         (_mm_mask_fmadd_sch): Likewise
4647         (_mm_mask3_fmadd_sch): Likewise
4648         (_mm_mask_fcmadd_round_sch): Likewise
4649         (_mm_mask3_fcmadd_round_sch): Likewise
4650         (_mm_mask_fmadd_round_sch): Likewise
4651         (_mm_mask3_fmadd_round_sch): Likewise
4652         (_mm_fcmadd_round_sch): Likewise
4653         * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
4654         Adjust builtin call.
4655         (_mm_mask3_fmadd_pch): Likewise
4656         (_mm256_mask_fmadd_pch): Likewise
4657         (_mm256_mask3_fmadd_pch): Likewise
4658         (_mm_mask_fcmadd_pch): Likewise
4659         (_mm_mask3_fcmadd_pch): Likewise
4660         (_mm256_mask_fcmadd_pch): Likewise
4661         (_mm256_mask3_fcmadd_pch): Likewise
4662         * config/i386/i386-builtin.def: Add mask3 builtin for complex
4663         fma, and adjust mask_builtin to corresponding expander.
4664         * config/i386/i386-expand.c (ix86_expand_round_builtin):
4665         Skip eraseing embedded rounding for expanders that emits
4666         multiple insns.
4667         * config/i386/sse.md (complexmove): New mode_attr.
4668         (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
4669         (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
4670         (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
4671         (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
4672         (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
4673         (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
4674         * config/i386/subst.md (round_embedded_complex): New subst.
4676 2021-10-14  John David Anglin  <danglin@gcc.gnu.org>
4678         * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
4679         (cbranchdf4): Likewise.
4680         Add missing move patterns for TARGET_SOFT_FLOAT.
4682 2021-10-13  Roger Sayle  <roger@nextmovesoftware.com>
4684         * config/i386/i386-expand.c (ix86_expand_vector_move):  Use a
4685         pseudo intermediate when moving a SUBREG into a hard register,
4686         by checking ix86_hardreg_mov_ok.
4687         (ix86_expand_vector_extract): Store zero-extended SImode
4688         intermediate in a pseudo, then set target using a SUBREG_PROMOTED
4689         annotated subreg.
4690         * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
4691         complex (SUBREG) sets of (vector) hard registers before reload, by
4692         checking ix86_hardreg_mov_ok.
4694 2021-10-13  Indu Bhagat  <indu.bhagat@oracle.com>
4696         * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
4698 2021-10-13  Indu Bhagat  <indu.bhagat@oracle.com>
4700         * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
4702 2021-10-13  Martin Sebor  <msebor@redhat.com>
4704         PR middle-end/102630
4705         * pointer-query.cc (compute_objsize_r): Handle named address spaces.
4707 2021-10-13  Iain Sandoe  <iain@sandoe.co.uk>
4709         * collect2.c (is_lto_object_file): Release simple-object
4710         resources, close files.
4712 2021-10-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4714         * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
4715         when checking mve addressing modes.
4716         (mve_vector_mem_operand): Fix the way we handle pre, post and offset
4717         addressing modes.
4718         (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
4719         * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
4720         there is a single Ux constraint.
4722 2021-10-13  John David Anglin  <danglin@gcc.gnu.org>
4724         * config/pa/pa.md (muldi3): Add support for inlining 64-bit
4725         multiplication on 32-bit PA 1.1 and 2.0 targets.
4727 2021-10-13  Martin Liska  <mliska@suse.cz>
4729         PR gcov-profile/90364
4730         * coverage.c (build_info): Emit checksum to the global variable.
4731         (build_info_type): Add new field for checksum.
4732         (coverage_obj_finish): Pass object_checksum.
4733         (coverage_init): Use 0 as checksum for .gcno files.
4734         * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
4735         * gcov.c (read_graph_file): Read also checksum.
4736         * doc/invoke.texi: Document the behaviour change.
4738 2021-10-13  Richard Biener  <rguenther@suse.de>
4740         * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
4741         start at integer value 2.
4742         * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
4743         the iterator for GSI_LAST_NEW_STMT.
4744         (gsi_insert_seq_nodes_after): Likewise.
4745         * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
4746         * tree-ssa.c (execute_update_addresses_taken): Correct bogus
4747         arguments to gsi_replace.
4749 2021-10-13  Martin Liska  <mliska@suse.cz>
4751         PR target/102688
4752         * common.opt: Use EnabledBy instead of detection in
4753         finish_options and process_options.
4754         * opts.c (finish_options): Remove handling of
4755         x_flag_unroll_all_loops.
4756         * toplev.c (process_options): Likewise for flag_web and
4757         flag_rename_registers.
4759 2021-10-13  Richard Biener  <rguenther@suse.de>
4761         PR tree-optimization/102659
4762         * tree-if-conv.c (need_to_rewrite_undefined): New flag.
4763         (if_convertible_gimple_assign_stmt_p): Mark the loop for
4764         rewrite when stmts with undefined behavior on integer
4765         overflow appear.
4766         (combine_blocks): Predicate also when we need to rewrite stmts.
4767         (predicate_statements): Rewrite affected stmts to something
4768         with well-defined behavior on overflow.
4769         (tree_if_conversion): Initialize need_to_rewrite_undefined.
4771 2021-10-13  Richard Biener  <rguenther@suse.de>
4773         PR ipa/102714
4774         * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
4775         check.
4777 2021-10-13  Jose E. Marchesi  <jose.marchesi@oracle.com>
4779         * dwarf2ctf.c: Fix typo in comment.
4781 2021-10-12  Bill Schmidt  <wschmidt@linux.ibm.com>
4783         PR target/101985
4784         * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
4785         * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
4786         avoid generating an automatic #define of vec_cpsgn.  Use the
4787         correct built-in for V4SFmode that doesn't depend on VSX.
4789 2021-10-12  Uroš Bizjak  <ubizjak@gmail.com>
4791         PR target/85730
4792         PR target/82524
4793         * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
4794         define_insn_and_split pattern.  Add alternative 1 and split it
4795         post reload to insert operand 1 into the low part of operand 0.
4796         (*sub<mode>_1_slp): Ditto.
4797         (*and<mode>_1_slp): Ditto.
4798         (*<any_or:code><mode>_1_slp): Ditto.
4799         (*ashl<mode>3_1_slp): Ditto.
4800         (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
4801         (*<any_rotate:insn><mode>3_1_slp): Ditto.
4802         (*neg<mode>_1_slp): New insn_and_split pattern.
4803         (*one_cmpl<mode>_1_slp): Ditto.
4805 2021-10-12  David Edelsohn  <dje.gcc@gmail.com>
4807         * doc/install.texi: Update MinGW and mingw-64 Binaries
4808         download links.
4810 2021-10-12  Daniel Le Duc Khoi Nguyen  <greenrecyclebin@gmail.com>
4812         * doc/extend.texi (Common Variable Attributes): Fix typos in
4813         alloc_size documentation.
4815 2021-10-12  Richard Biener  <rguenther@suse.de>
4817         PR tree-optimization/102696
4818         * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
4819         the tree fatally failed when we reject a BIT_FIELD_REF.
4821 2021-10-12  Richard Biener  <rguenther@suse.de>
4823         PR tree-optimization/102572
4824         * tree-vect-stmts.c (vect_build_gather_load_calls): When
4825         gathering the vectorized defs for the mask pass in the
4826         desired mask vector type so invariants will be handled
4827         correctly.
4829 2021-10-12  Tamar Christina  <tamar.christina@arm.com>
4831         * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
4832         *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
4833         *fcmuo<mode>_nor_combine): New.
4835 2021-10-12  Eric Botcazou  <ebotcazou@adacore.com>
4837         PR target/102588
4838         * config/sparc/sparc-modes.def (OI): New integer mode.
4840 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4842         * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
4843         * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
4844         static.
4846 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4848         * tree-vectorizer.h (loop_cost_model): New function.
4849         (unlimited_cost_model): Use it.
4850         * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
4851         call instead of flag_vect_cost_model.
4852         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4853         (vect_prune_runtime_alias_test_list): Likewise.  Also use it instead
4854         of flag_simd_cost_model.
4856 2021-10-12  liuhongt  <hongtao.liu@intel.com>
4858         PR target/102483
4859         * config/i386/i386-expand.c (emit_reduc_half): Handle
4860         V4QImode.
4861         * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
4862         (reduc_plus_scal_v4qi): Ditto.
4864 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
4866         * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
4867         _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
4868         * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
4870 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
4872         * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
4873         _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
4874         _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
4875         _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
4876         _mm_cvtepu32_epi64): New.
4878 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
4880         * config/rs6000/smmintrin.h (_mm_test_all_zeros,
4881         _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
4883 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
4885         * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
4886         _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
4887         _mm_max_epi32, _mm_max_epu32): New.
4889 2021-10-11  Jan Hubicka  <hubicka@ucw.cz>
4891         * ipa-modref-tree.h (struct modref_access_node): Revert
4892         accidental change.
4893         (struct modref_ref_node): Likewise.
4895 2021-10-11  Jan Hubicka  <hubicka@ucw.cz>
4897         * ipa-modref-tree.h (modref_tree::global_access_p): New member
4898         function.
4899         * ipa-modref.c:
4900         (implicint_const_eaf_flags,implicit_pure_eaf_flags,
4901         ignore_stores_eaf_flags): Move to ipa-modref.h
4902         (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
4903         (modref_summary::global_memory_read_p): New member function.
4904         (modref_summary::global_memory_written_p): New member function.
4905         * ipa-modref.h (modref_summary::global_memory_read_p,
4906         modref_summary::global_memory_written_p): Declare.
4907         (implicint_const_eaf_flags,implicit_pure_eaf_flags,
4908         ignore_stores_eaf_flags): move here.
4909         * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
4910         and attr-fnspec.h.
4911         (handle_rhs_call): Rewrite.
4912         (handle_call_arg): New function.
4913         (determine_global_memory_access): New function.
4914         (handle_const_call): Remove
4915         (handle_pure_call): Remove
4916         (find_func_aliases_for_call): Update use of handle_rhs_call.
4917         (compute_points_to_sets): Handle global memory acccesses
4918         selectively
4920 2021-10-11  Diane Meirowitz  <diane.meirowitz@oracle.com>
4922         * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
4923         documentation, mention UBSAN_OPTIONS, similar to what is done
4924         for AddressSanitizer.
4926 2021-10-11  Richard Biener  <rguenther@suse.de>
4928         PR middle-end/102683
4929         * internal-fn.c (expand_DEFERRED_INIT): Check for mode
4930         availability before building an integer type for storage
4931         purposes.
4933 2021-10-11  Richard Biener  <rguenther@suse.de>
4935         PR middle-end/101480
4936         * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
4937         as const.
4939 2021-10-11  Martin Liska  <mliska@suse.cz>
4941         * common.opt: Remove Init(2) for some options.
4942         * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
4943         use rather OPTION_SET_P.
4945 2021-10-11  Martin Liska  <mliska@suse.cz>
4947         * common.opt: Remove usage of IRA_REGION_AUTODETECT.
4948         * flag-types.h (enum ira_region): Likewise.
4949         * toplev.c (process_options): Use OPTION_SET_P instead of
4950         IRA_REGION_AUTODETECT.
4952 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4954         * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
4955         omp_[sg]et_teams_thread_limit and omp_set_num_teams.
4957 2021-10-11  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
4959         * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
4960         * config/s390/s390.c (s390_rawmemchr): New function.
4961         * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
4962         * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
4963         the pattern vfees<mode> from vx-builtins.md.
4964         * config/s390/vx-builtins.md (*vfees<mode>): Remove.
4966 2021-10-11  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
4968         * builtins.c (get_memory_rtx): Change to external linkage.
4969         * builtins.h (get_memory_rtx): Add function prototype.
4970         * doc/md.texi (rawmemchr<mode>): Document.
4971         * internal-fn.c (expand_RAWMEMCHR): Define.
4972         * internal-fn.def (RAWMEMCHR): Add.
4973         * optabs.def (rawmemchr_optab): Add.
4974         * tree-loop-distribution.c (find_single_drs): Change return code
4975         behaviour by also returning true if no single store was found
4976         but a single load.
4977         (loop_distribution::classify_partition): Respect the new return
4978         code behaviour of function find_single_drs.
4979         (loop_distribution::execute): Call new function
4980         transform_reduction_loop in order to replace rawmemchr or strlen
4981         like loops by calls into builtins.
4982         (generate_reduction_builtin_1): New function.
4983         (generate_rawmemchr_builtin): New function.
4984         (generate_strlen_builtin_1): New function.
4985         (generate_strlen_builtin): New function.
4986         (generate_strlen_builtin_using_rawmemchr): New function.
4987         (reduction_var_overflows_first): New function.
4988         (determine_reduction_stmt_1): New function.
4989         (determine_reduction_stmt): New function.
4990         (loop_distribution::transform_reduction_loop): New function.
4992 2021-10-11  Martin Liska  <mliska@suse.cz>
4994         * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
4995         and remove legacy hashing code.
4997 2021-10-11  Kito Cheng  <kito.cheng@sifive.com>
4999         PR target/100316
5000         * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
5001         CONST_INT for BEGIN and END, and use gcc_assert rather than
5002         error.
5004 2021-10-10  Jakub Jelinek  <jakub@redhat.com>
5006         PR debug/102441
5007         * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
5008         use MO_VAL_SET if loc is not sp.
5010 2021-10-10  Andrew Pinski  <apinski@marvell.com>
5012         PR tree-optimization/102622
5013         * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
5014         Swap the order of a?0:pow2cst and a?0:-1 transformations.
5016 2021-10-09  liuhongt  <hongtao.liu@intel.com>
5018         PR target/102639
5019         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
5020         HFmode.
5021         (ix86_use_mask_cmp_p): Ditto.
5022         (ix86_expand_sse_movcc): Ditto.
5023         * config/i386/i386.md (setcc_hf_mask): New define_insn.
5024         (movhf_mask): Ditto.
5025         (UNSPEC_MOVCC_MASK): New unspec.
5026         * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
5028 2021-10-08  Vladimir N. Makarov  <vmakarov@redhat.com>
5030         PR rtl-optimization/102627
5031         * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
5033 2021-10-08  Aldy Hernandez  <aldyh@redhat.com>
5035         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
5036         bitmap if needed.
5038 2021-10-08  Aldy Hernandez  <aldyh@redhat.com>
5040         * value-range.cc (irange::debug): New.
5041         * value-range.h (irange::debug): New.
5043 2021-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5045         PR tree-optimization/102385
5046         * predict.h (change_edge_frequency): Declare.
5047         * predict.c (change_edge_frequency): New function.
5048         * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
5049         edge argument.
5050         (tree_unroll_loop): Likewise.
5051         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
5052         * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
5053         Likewise.
5054         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
5055         * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
5056         (tree_transform_and_unroll_loop): Likewise.  Use single_dom_exit
5057         to retrieve the exit edges.  Make all the old profile update code
5058         conditional on !single_loop_p -- the case it was written for --
5059         and use a different approach for the single-loop case.
5061 2021-10-08  Martin Liska  <mliska@suse.cz>
5063         * config/alpha/alpha.c (alpha_option_override): Use new macro
5064         OPTION_SET_P.
5065         * config/arc/arc.c (arc_override_options): Likewise.
5066         * config/arm/arm.c (arm_option_override): Likewise.
5067         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5068         * config/c6x/c6x.c (c6x_option_override): Likewise.
5069         * config/csky/csky.c: Likewise.
5070         * config/darwin.c (darwin_override_options): Likewise.
5071         * config/frv/frv.c (frv_option_override): Likewise.
5072         * config/i386/djgpp.h: Likewise.
5073         * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
5074         (ix86_max_noce_ifcvt_seq_cost): Likewise.
5075         * config/ia64/ia64.c (ia64_option_override): Likewise.
5076         (ia64_override_options_after_change): Likewise.
5077         * config/m32c/m32c.c (m32c_option_override): Likewise.
5078         * config/m32r/m32r.c (m32r_init): Likewise.
5079         * config/m68k/m68k.c (m68k_option_override): Likewise.
5080         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5081         * config/mips/mips.c (mips_option_override): Likewise.
5082         * config/nios2/nios2.c (nios2_option_override): Likewise.
5083         * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
5084         * config/pa/pa.c (pa_option_override): Likewise.
5085         * config/riscv/riscv.c (riscv_option_override): Likewise.
5086         * config/rs6000/aix71.h: Likewise.
5087         * config/rs6000/aix72.h: Likewise.
5088         * config/rs6000/aix73.h: Likewise.
5089         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
5090         (rs6000_override_options_after_change): Likewise.
5091         (rs6000_linux64_override_options): Likewise.
5092         (glibc_supports_ieee_128bit): Likewise.
5093         (rs6000_option_override_internal): Likewise.
5094         (rs6000_file_start): Likewise.
5095         (rs6000_darwin_file_start): Likewise.
5096         * config/rs6000/rtems.h: Likewise.
5097         * config/rs6000/sysv4.h: Likewise.
5098         * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
5099         * config/s390/s390.c (s390_option_override): Likewise.
5100         * config/sh/linux.h: Likewise.
5101         * config/sh/netbsd-elf.h (while): Likewise.
5102         * config/sh/sh.c (sh_option_override): Likewise.
5103         * config/sol2.c (solaris_override_options): Likewise.
5104         * config/sparc/sparc.c (sparc_option_override): Likewise.
5105         * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
5106         * config/visium/visium.c (visium_option_override): Likewise.
5107         * config/vxworks.c (vxworks_override_options): Likewise.
5108         * lto-opts.c (lto_write_options): Likewise.
5109         * omp-expand.c (expand_omp_simd): Likewise.
5110         * omp-general.c (omp_max_vf): Likewise.
5111         * omp-offload.c (oacc_xform_loop): Likewise.
5112         * opts.h (OPTION_SET_P): Likewise.
5113         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
5114         * toplev.c (process_options): Likewise.
5115         * tree-predcom.c: Likewise.
5116         * tree-sra.c (analyze_all_variable_accesses): Likewise.
5118 2021-10-08  liuhongt  <hongtao.liu@intel.com>
5120         PR target/102464
5121         * config/i386/i386.c (ix86_optab_supported_p):
5122         Return true for HFmode.
5123         * match.pd: Simplify (_Float16) ceil ((double) x) to
5124         __builtin_ceilf16 (a) when a is _Float16 type and
5125         direct_internal_fn_supported_p.
5127 2021-10-08  liuhongt  <hongtao.liu@intel.com>
5129         PR target/102494
5130         * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
5131         * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
5132         (reduc_<code>_scal_v4hi): New.
5134 2021-10-08  liuhongt  <hongtao.liu@intel.com>
5136         * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
5137         * doc/invoke.texi (Options That Control Optimization): Update
5138         documents.
5139         * opts.c (default_options_table): Enable auto-vectorization at
5140         O2 with very-cheap cost model.
5141         (finish_options): Use cheap cost model for
5142         explicit -ftree{,-loop}-vectorize.
5144 2021-10-07  Indu Bhagat  <indu.bhagat@oracle.com>
5146         * ctfc.c (ctfc_delete_container): Free hash table contents.
5148 2021-10-07  Indu Bhagat  <indu.bhagat@oracle.com>
5150         * toplev.c (process_options): Do not warn for GNU GIMPLE.
5152 2021-10-07  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5154         * tree-object-size.c (addr_object_size,
5155         compute_builtin_object_size): Drop PDECL and POFF arguments.
5156         (addr_object_size): Adjust calls.
5157         * tree-object-size.h (compute_builtin_object_size): Drop PDECL
5158         and POFF arguments.
5160 2021-10-07  Roger Sayle  <roger@nextmovesoftware.com>
5162         * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
5163         representing signed and unsigned high-part multiplication resp.
5164         * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
5165         UMUL_HIGHPART]: Simplify high-part multiplications by zero.
5166         [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
5167         SS_DIV, US_DIV]: Similar simplifications for saturating
5168         arithmetic.
5169         (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
5170         US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
5171         Implement compile-time evaluation for constant operands.
5172         * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
5173         UMUL_HIGHPART.
5174         * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
5175         * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
5176         Mention the new smul_highpart and umul_highpart RTX codes.
5177         * doc/invoke.texi: Silence @xref "compilation" warnings.
5179 2021-10-07  Martin Jambor  <mjambor@suse.cz>
5181         PR ipa/102388
5182         * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
5183         case when the source reference description corresponds to a
5184         referance taken in a function src->caller is inlined to.
5186 2021-10-07  Jan Hubicka  <hubicka@ucw.cz>
5188         PR ipa/102581
5189         * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
5190         better.
5191         (modref_access_node::try_merge_with): Add sanity check that there
5192         are no redundant entries in the list.
5194 2021-10-07  Richard Biener  <rguenther@suse.de>
5196         PR tree-optimization/102608
5197         * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
5198         varying.
5200 2021-10-07  Martin Liska  <mliska@suse.cz>
5202         * toplev.c (toplev::main): Make
5203         save_opt_decoded_options a pointer type
5204         * toplev.h: Likewise.
5206 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
5208         * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
5209         HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
5210         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
5212 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
5214         * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
5215         Adjust for new -msram-ecc=any behaviour.
5216         (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
5217         * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
5218         * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
5219         (EF_AMDGPU_XNACK_V3): ... this.
5220         (EF_AMDGPU_SRAM_ECC): Rename to ...
5221         (EF_AMDGPU_SRAM_ECC_V3): ... this.
5222         (EF_AMDGPU_FEATURE_XNACK_V4): New.
5223         (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
5224         (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
5225         (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
5226         (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
5227         (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
5228         (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
5229         (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
5230         (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
5231         (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
5232         (SET_XNACK_ON): New.
5233         (SET_XNACK_OFF): New.
5234         (TEST_XNACK): New.
5235         (SET_SRAM_ECC_ON): New.
5236         (SET_SRAM_ECC_ANY): New.
5237         (SET_SRAM_ECC_OFF): New.
5238         (TEST_SRAM_ECC_ANY): New.
5239         (TEST_SRAM_ECC_ON): New.
5240         (main): Implement HSACOv4 and -msram-ecc=any.
5242 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
5244         * config.in: Regenerate.
5245         * config/gcn/gcn-hsa.h (X_FIJI): New macro.
5246         (X_900): New macro.
5247         (X_906): New macro.
5248         (X_908): New macro.
5249         (A_FIJI): Rename to ...
5250         (S_FIJI): ... this.
5251         (A_900): Rename to ...
5252         (S_900): ... this.
5253         (A_906): Rename to ...
5254         (S_906): ... this.
5255         (A_908): Rename to ...
5256         (S_908): ... this.
5257         (SRAMOPT): New macro.
5258         (ASM_SPEC): Adjust xnack option usage.
5259         * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
5260         * configure: Regenerate.
5261         * configure.ac: Detect LLVM assembler dialect.
5263 2021-10-07  Richard Biener  <rguenther@suse.de>
5265         * tree-pretty-print.c (dump_generic_node): Do not elide
5266         printing '&' when dumping with -gimple.
5268 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5270         * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
5271         intersect routine.
5272         * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
5273         (adjust_imagpart_expr): Ditto.
5274         * value-range.cc (irange::irange_intersect): Call new routine if
5275         RHS is a single pair.
5276         (irange::intersect): New wide_int version.
5277         * value-range.h (class irange): New prototype.
5279 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5281         * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
5282         Add parameter to limit size when recognizing switches.
5283         (gimple_outgoing_range::edge_range_p): Check size limit.
5284         * gimple-range-edge.h (gimple_outgoing_range): Add size field.
5285         * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
5286         that exceed the size limit.
5287         (gori_compute::gori_compute): Add initializer.
5288         * params.opt (evrp-switch-limit): New.
5289         * doc/invoke.texi: Update docs.
5291 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5293         * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
5294         TYPE_MAX_VALUE instead of creating new trees when possible.
5296 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5298         * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
5299         zero and non-zero more efficently.
5301 2021-10-06  Richard Biener  <rguenther@suse.de>
5303         PR c/102605
5304         * dumpfile.h (TDF_GIMPLE_VAL): New.
5305         (dump_flag): Re-order and adjust TDF_* flags.  Make
5306         the enum uint32_t.  Use std::underlying_type in the
5307         operator overloads.
5308         (optgroup_flag): Likewise for the operator overloads.
5309         * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
5310         in _Literal if TDF_GIMPLE_VAL.
5311         * gimple-pretty-print.c (dump_gimple_assign): Add
5312         TDF_GIMPLE_VAL to flags when dumping operands where only
5313         is_gimple_val are allowed.
5314         (dump_gimple_cond): Likewise.
5316 2021-10-06  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
5318         * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
5319         condition.
5321 2021-10-05  qing zhao  <qing.zhao@oracle.com>
5323         PR middle-end/102359
5324         * gimplify.c (gimplify_decl_expr): Not add initialization for an
5325         auto variable when it has been initialized by frontend.
5327 2021-10-05  Aldy Hernandez  <aldyh@redhat.com>
5329         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
5330         Loosen restrictions
5332 2021-10-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5334         * common/config/avr/avr-common.c (avr_handle_option): Mark
5335         argument as ATTRIBUTE_UNUSED.
5337 2021-10-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5339         * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
5340         Undefine before redefinition.
5342 2021-10-05  Richard Biener  <rguenther@suse.de>
5344         * toplev.c (no_backend): Remove global var.
5345         (process_options): Pass in no_backend, move post_options
5346         langhook call to toplev::main.
5347         (do_compile): Pass in no_backend, move process_options call
5348         to toplev::main.
5349         (toplev::run_self_tests): Check no_backend at the caller.
5350         (toplev::main): Call post_options and process_options
5351         split out from do_compile, do self-tests only if
5352         no_backend is initialized.
5354 2021-10-05  Richard Biener  <rguenther@suse.de>
5356         * tree-cfg.c (dump_function_to_file): Dump the UID of the
5357         function as part of the name when requested.
5358         * tree-pretty-print.c (dump_function_name): Dump the UID when
5359         requested and the langhook produced the actual name.
5361 2021-10-05  Richard Biener  <rguenther@suse.de>
5363         PR middle-end/102587
5364         PR middle-end/102285
5365         * internal-fn.c (expand_DEFERRED_INIT): Fall back to
5366         zero-initialization as last resort, use the constant
5367         size as given by the DEFERRED_INIT argument to build
5368         the initializer.
5370 2021-10-04  Marek Polacek  <polacek@redhat.com>
5372         PR c++/97573
5373         * doc/invoke.texi: Document -Warray-compare.
5375 2021-10-04  Richard Biener  <rguenther@suse.de>
5377         * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
5378         variables are not to be initialized.
5380 2021-10-04  Richard Biener  <rguenther@suse.de>
5382         * expr.h (non_mem_decl_p): Declare.
5383         (mem_ref_refers_to_non_mem_p): Likewise.
5384         * expr.c (non_mem_decl_p): Export.
5385         (mem_ref_refers_to_non_mem_p): Likewise.
5386         * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
5387         but check the base with mem_ref_refers_to_non_mem_p
5388         and non_mem_decl_p.
5390 2021-10-04  Richard Biener  <rguenther@suse.de>
5392         PR tree-optimization/102570
5393         * tree-ssa-sccvn.h (vn_reference_op_struct): Document
5394         we are using clique for the internal function code.
5395         * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
5396         internal function code.
5397         (print_vn_reference_ops): Print the internal function code.
5398         (vn_reference_op_compute_hash): Hash it.
5399         (copy_reference_ops_from_call): Record it.
5400         (visit_stmt): Remove the restriction around internal function
5401         calls.
5402         (fully_constant_vn_reference_p): Use fold_const_call and handle
5403         internal functions.
5404         (vn_reference_eq): Compare call return types.
5405         * tree-ssa-pre.c (create_expression_by_pieces): Handle
5406         generating calls to internal functions.
5407         (compute_avail): Remove the restriction around internal function
5408         calls.
5410 2021-10-04  Aldy Hernandez  <aldyh@redhat.com>
5412         PR tree-optimization/102560
5413         * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
5414         marker for invalid_range.
5416 2021-10-04  Richard Biener  <rguenther@suse.de>
5418         PR middle-end/102587
5419         * internal-fn.c (expand_DEFERRED_INIT): Guard register
5420         initialization path an avoid initializing VLA registers
5421         with it.
5423 2021-10-04  Eric Botcazou  <ebotcazou@adacore.com>
5425         * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
5427 2021-10-03  Martin Liska  <mliska@suse.cz>
5429         * toplev.c (toplev::main): Check opt_index if it is a part
5430         of cl_options.
5432 2021-10-02  Aldy Hernandez  <aldyh@redhat.com>
5434         PR tree-optimization/102563
5435         * range-op.cc (operator_lshift::op1_range): Do not clobber
5436         range.
5438 2021-10-02  Martin Liska  <mliska@suse.cz>
5440         * toplev.c (toplev::main): save_decoded_options[0] is program
5441         name and so it should be skipped.
5443 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
5445         PR tree-optimization/102546
5446         * range-op.cc (operator_lshift::op1_range): Teach range-ops that
5447         X << Y is non-zero implies X is also non-zero.
5449 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5451         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
5452         Cortex-X2 core.
5453         * config/aarch64/aarch64-tune.md: Regenerate.
5454         * doc/invoke.texi: Update docs.
5456 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5458         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
5459         Cortex-A710 core.
5460         * config/aarch64/aarch64-tune.md: Regenerate.
5461         * doc/invoke.texi: Update docs.
5463 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5465         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
5466         Cortex-A510 core.
5467         * config/aarch64/aarch64-tune.md: Regenerate.
5468         * doc/invoke.texi: Update docs.
5470 2021-10-01  Martin Sebor  <msebor@redhat.com>
5472         PR c/102103
5473         * doc/invoke.texi (-Waddress): Update.
5474         * gengtype.c (write_types): Avoid -Waddress.
5475         * poly-int.h (POLY_SET_COEFF): Avoid using null.
5477 2021-10-01  John David Anglin  <danglin@gcc.gnu.org>
5479         PR debug/102373
5480         * config/pa/pa.c (pa_option_override): Default to dwarf version 4
5481         on hppa64-hpux.
5483 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5485         * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
5487 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
5489         * gimple-range-path.cc (path_range_query::compute_ranges): Use
5490         get_path_oracle.
5491         * gimple-range-path.h (class path_range_query): Remove shadowed
5492         m_oracle field.
5493         (path_range_query::get_path_oracle): New.
5495 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5496             Richard Biener  <rguenther@suse.de>
5498         PR sanitizer/102515
5499         * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
5500         INT_MIN / -1 division detection from here ...
5501         (-fsanitize=signed-integer-overflow): ... and add it here.
5503 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5505         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
5506         armv9-a.
5507         * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
5508         (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
5509         (AARCH64_ISA_V9): New ISA flag.
5510         * doc/invoke.texi: Update docs.
5512 2021-10-01  Martin Liska  <mliska@suse.cz>
5514         * toplev.c (toplev::main): Save decoded optimization options.
5515         * toplev.h (save_opt_decoded_options): New.
5516         * doc/extend.texi: Be more clear about optimize and target
5517         attributes.
5519 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5521         * explow.c: Include langhooks.h.
5522         (set_stack_check_libfunc): Build a proper function type.
5524 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5526         PR c++/64697
5527         * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
5528         not return true for external weak function symbols in medium model.
5530 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5532         * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
5533         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
5534         reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
5535         * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
5536         without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
5537         OMP_CLAUSE_SCHEDULE_STATIC.
5539 2021-10-01  Richard Biener  <rguenther@suse.de>
5541         PR middle-end/102518
5542         * tree-inline.c (setup_one_parameter): Avoid substituting
5543         an invariant into contexts where a GIMPLE register is not valid.
5545 2021-09-30  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
5547         * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
5548         * config/arm/arm-tables.opt: Regenerate.
5549         * config/arm/arm-tune.md: Regenerate.
5550         * doc/invoke.texi: Update docs.
5552 2021-09-30  Uroš Bizjak  <ubizjak@gmail.com>
5554         PR target/89954
5555         * config/i386/i386.md
5556         (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
5557         New splitters.
5559 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5561         * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
5562         omp_{c,re}alloc, fix omp_alloc/omp_free.
5564 2021-09-30  Martin Liska  <mliska@suse.cz>
5566         * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
5567         asm_out_file and stream directly to MYFILE.
5569 2021-09-30  Richard Biener  <rguenther@suse.de>
5571         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
5572         Restore and fix condition under which we apply npeel to
5573         the DRs misalignment value.
5575 2021-09-30  Richard Biener  <rguenther@suse.de>
5577         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
5578         Fix npeel check for variable amount of peeling.
5580 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
5582         * lto-wrapper.c (run_gcc): Plug snprintf overflow.
5584 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
5586         * gimple-range.cc (gimple_ranger::debug): New.
5587         * gimple-range.h (class gimple_ranger): Add debug.
5589 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
5591         PR middle-end/102519
5592         * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
5594 2021-09-29  Indu Bhagat  <indu.bhagat@oracle.com>
5596         PR debug/102507
5597         * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
5598         (btf_finalize): Empty the hash_map btf_var_ids.
5600 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
5602         * tree-vrp.c (thread_through_all_blocks): Return bool.
5603         (execute_vrp_threader): Return TODO_* flags.
5604         (pass_data_vrp_threader): Set todo_flags_finish to 0.
5606 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
5608         * timevar.def (TV_TREE_VRP_THREADER): New.
5609         * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
5611 2021-09-29  David Faust  <david.faust@oracle.com>
5613         * config.gcc (bpf-*-*): Do not overwrite extra_headers.
5615 2021-09-29  Jonathan Wright  <jonathan.wright@arm.com>
5617         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
5618         new type qualifier enum.
5619         (TYPES_TERNOP_SSSU): Likewise.
5620         (TYPES_TERNOP_PPPU): Likewise.
5621         * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
5622         PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
5623         Neon builtins.
5624         * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
5625         builtin and remove casts.
5626         (vqtbl1_s8): Likewise.
5627         (vqtbl1q_p8): Likewise.
5628         (vqtbl1q_s8): Likewise.
5629         (vqtbx1_s8): Likewise.
5630         (vqtbx1_p8): Likewise.
5631         (vqtbx1q_s8): Likewise.
5632         (vqtbx1q_p8): Likewise.
5633         (vtbl1_p8): Likewise.
5634         (vtbl2_p8): Likewise.
5635         (vtbx2_p8): Likewise.
5637 2021-09-29  Richard Biener  <rguenther@suse.de>
5639         * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
5640         New helper.
5641         (vect_update_misalignment_for_peel): Use it to update
5642         misaligned to the value necessary for an aligned access.
5643         (vect_get_peeling_costs_all_drs): Likewise.
5644         (vect_enhance_data_refs_alignment): Likewise.
5646 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5648         * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
5649         emitted operations and adjust heuristic for code size.
5651 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5653         * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
5654         emitted operations and adjust heuristic for code size.
5656 2021-09-29  Jakub Jelinek  <jakub@redhat.com>
5658         PR middle-end/102504
5659         * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
5660         in OMP_SCOPE clauses, not just on worksharing construct clauses.
5662 2021-09-28  Geng Qi  <gengqi@linux.alibaba.com>
5664         * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
5665         (<u>mulditi3): Call <su>muldi3_highpart.
5666         (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
5667         (<u>mulsidi3): Call <su>mulsi3_highpart.
5668         (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
5670 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
5672         * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
5674 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
5676         * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
5677         (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
5678         of the fixed regs.
5680 2021-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5682         * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
5683         (AARCH64_FL_V8_7): Likewise.
5684         (AARCH64_FL_FOR_ARCH8_7): Likewise.
5685         * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
5686         * config/aarch64/aarch64-option-extensions.def (ls64): Define.
5687         * doc/invoke.texi: Document the above.
5689 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
5691         * dbgcnt.c (dbg_cnt_counter): New.
5692         * dbgcnt.h (dbg_cnt_counter): New.
5693         * dumpfile.c (dump_options): Add entry for TDF_THREADING.
5694         * dumpfile.h (enum dump_flag): Add TDF_THREADING.
5695         * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
5696         * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
5697         debug counter.
5699 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
5701         * cfgcleanup.c (pass_jump::execute): Check
5702         flag_expensive_optimizations.
5703         (pass_jump_after_combine::gate): Same.
5704         * doc/invoke.texi (-fthread-jumps): Enable for -O1.
5705         * opts.c (default_options_table): Enable -fthread-jumps at -O1.
5706         * tree-ssa-threadupdate.c
5707         (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
5708         flag_thread_jumps.
5710 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
5712         * tree-ssa-reassoc.c (biased_names): New global.
5713         (propagate_bias_p): New function.
5714         (loop_carried_phi): Remove.
5715         (propagate_rank): Propagate bias along single uses.
5716         (get_rank): Update biased_names when needed.
5718 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
5720         * passes.def (pass_reassoc): Rename parameter to early_p.
5721         * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
5722         New variable.
5723         (phi_rank): Don't bias loop-carried phi ranks
5724         before vectorization pass.
5725         (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
5726         (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
5727         initializer.
5728         (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
5729         value.
5730         (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
5731         execute_reassoc.
5732         (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
5734 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
5736         PR target/102498
5737         * config/i386/i386.c (standard_80387_constant_p): Don't recognize
5738         special 80387 instruction XFmode constants if flag_rounding_math.
5740 2021-09-28  Richard Biener  <rguenther@suse.de>
5742         PR tree-optimization/100112
5743         * tree-ssa-sccvn.c (visit_reference_op_load): Record the
5744         referece into the hashtable twice in case last_vuse is
5745         different from the original vuse on the stmt.
5747 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
5749         PR middle-end/102492
5750         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
5751         omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
5752         clauses on SIMD constructs.
5754 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
5756         PR tree-optimization/102511
5757         * gimple-range-path.cc (path_range_query::range_on_path_entry):
5758         Return VARYING when nothing found.
5760 2021-09-28  Hongyu Wang  <hongyu.wang@intel.com>
5762         PR target/102230
5763         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
5764         V2HF mode check.
5765         (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
5766         (VALID_MMX_REG_MODE): Add V4HFmode.
5767         (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
5768         vector mode condition.
5769         * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
5770         via sse regs.
5771         (function_arg_32): Add V4HFmode.
5772         (function_arg_advance_32): Likewise.
5773         * config/i386/i386.md (mode): Add V4HF/V2HF.
5774         (MODE_SIZE): Likewise.
5775         * config/i386/mmx.md (MMXMODE): Add V4HF mode.
5776         (V_32): Add V2HF mode.
5777         (VHF_32_64): New mode iterator.
5778         (*mov<mode>_internal): Adjust sse alternatives to support
5779         V4HF mode move.
5780         (*mov<mode>_internal): Adjust sse alternatives to support
5781         V2HF mode move.
5782         (<insn><mode>3): New define_insn for add/sub/mul/div.
5784 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
5786         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
5787         flag_thread_jumps.
5788         (pass_early_thread_jumps::gate): Same.
5789         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
5790         Return if !flag_thread_jumps.
5791         * tree-ssa-threadupdate.c
5792         (jt_path_registry::register_jump_thread): Assert that
5793         flag_thread_jumps is true.
5795 2021-09-28  liuhongt  <hongtao.liu@intel.com>
5797         * simplify-rtx.c
5798         (simplify_context::simplify_binary_operation_1): Relax
5799         condition of simplifying (vec_concat:M (vec_select op0
5800         index0)(vec_select op1 index1)) to allow different modes
5801         between op0 and M, but have same inner mode.
5803 2021-09-28  liuhongt  <hongtao.liu@intel.com>
5805         * config/i386/i386-expand.c (emit_reduc_half): Handle
5806         V8HF/V16HF/V32HFmode.
5807         * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
5808         (REDUC_SSE_SMINMAX_MODE): Ditto.
5809         (REDUC_PLUS_MODE): Add V16HF and V32HF.
5810         (REDUC_SMINMAX_MODE): Ditto.
5812 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5814         * gimple-range-path.cc
5815         (path_range_query::precompute_ranges_in_block): Rename to...
5816         (path_range_query::compute_ranges_in_block): ...this.
5817         (path_range_query::precompute_ranges): Rename to...
5818         (path_range_query::compute_ranges): ...this.
5819         (path_range_query::precompute_relations): Rename to...
5820         (path_range_query::compute_relations): ...this.
5821         (path_range_query::precompute_phi_relations): Rename to...
5822         (path_range_query::compute_phi_relations): ...this.
5823         * gimple-range-path.h: Rename precompute* to compute*.
5824         * tree-ssa-threadbackward.c
5825         (back_threader::find_taken_edge_switch): Same.
5826         (back_threader::find_taken_edge_cond): Same.
5827         * tree-ssa-threadedge.c
5828         (hybrid_jt_simplifier::compute_ranges_from_state): Same.
5829         (hybrid_jt_state::register_equivs_stmt): Inline...
5830         * tree-ssa-threadedge.h: ...here.
5832 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5834         * tree-vrp.c (lhs_of_dominating_assert): Remove.
5835         (class vrp_jt_state): Remove.
5836         (class vrp_jt_simplifier): Remove.
5837         (vrp_jt_simplifier::simplify): Remove.
5838         (class vrp_jump_threader): Remove.
5839         (vrp_jump_threader::vrp_jump_threader): Remove.
5840         (vrp_jump_threader::~vrp_jump_threader): Remove.
5841         (vrp_jump_threader::before_dom_children): Remove.
5842         (vrp_jump_threader::after_dom_children): Remove.
5844 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5846         * passes.def (pass_vrp_threader): New.
5847         * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
5848         * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
5849         (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
5850         (hybrid_jt_simplifier::simplify): New.
5851         (hybrid_jt_simplifier::compute_ranges_from_state): New.
5852         * tree-ssa-threadedge.h (class hybrid_jt_state): New.
5853         (class hybrid_jt_simplifier): New.
5854         * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
5855         threader.
5856         (class hybrid_threader): New.
5857         (hybrid_threader::hybrid_threader): New.
5858         (hybrid_threader::~hybrid_threader): New.
5859         (hybrid_threader::before_dom_children): New.
5860         (hybrid_threader::after_dom_children): New.
5861         (execute_vrp_threader): New.
5862         (class pass_vrp_threader): New.
5863         (make_pass_vrp_threader): New.
5865 2021-09-27  Martin Liska  <mliska@suse.cz>
5867         * output.h (enum section_flag): New.
5868         (SECTION_FORGET): Remove.
5869         (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
5870         (SECTION_STYLE_MASK): Define it based on other enum
5871         values.
5872         * varasm.c (switch_to_section): Remove unused handling of
5873         SECTION_FORGET.
5875 2021-09-27  Martin Liska  <mliska@suse.cz>
5877         * common.opt: Add new variable flag_default_complex_method.
5878         * opts.c (finish_options): Handle flags related to
5879           x_flag_complex_method.
5880         * toplev.c (process_options): Remove option handling related
5881         to flag_complex_method.
5883 2021-09-27  Richard Biener  <rguenther@suse.de>
5885         PR middle-end/102450
5886         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
5887         type_for_size, instead use int_mode_for_size.
5889 2021-09-27  Andrew Pinski  <apinski@marvell.com>
5891         PR c/94726
5892         * gimplify.c (gimplify_save_expr): Return early
5893         if the type of val is error_mark_node.
5895 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5897         * tree-ssanames.c (ssa_name_has_boolean_range): Use
5898         get_range_query.
5900 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5902         * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
5903         vrp_visit_cond_stmt.
5904         * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
5905         (cprop_into_stmt): Same.
5906         (dom_opt_dom_walker::optimize_stmt): Same.
5908 2021-09-27  Richard Biener  <rguenther@suse.de>
5910         PR tree-optimization/97351
5911         PR tree-optimization/97352
5912         PR tree-optimization/82426
5913         * tree-vectorizer.h (dr_misalignment): Add vector type
5914         argument.
5915         (aligned_access_p): Likewise.
5916         (known_alignment_for_access_p): Likewise.
5917         (vect_supportable_dr_alignment): Likewise.
5918         (vect_known_alignment_in_bytes): Likewise.  Refactor.
5919         (DR_MISALIGNMENT): Remove.
5920         (vect_update_shared_vectype): Likewise.
5921         * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
5922         a vector type with larger alignment requirement and apply
5923         the negative step adjustment here.
5924         (vect_calculate_target_alignment): Remove.
5925         (vect_compute_data_ref_alignment): Get explicit vector type
5926         argument, do not apply a negative step alignment adjustment
5927         here.
5928         (vect_slp_analyze_node_alignment): Re-analyze alignment
5929         when we re-visit the DR with a bigger desired alignment but
5930         keep more precise results from smaller alignments.
5931         * tree-vect-slp.c (vect_update_shared_vectype): Remove.
5932         (vect_slp_analyze_node_operations_1): Do not update the
5933         shared vector type on stmts.
5934         * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
5935         vector type of an SLP node to the representative stmt-info.
5936         (vect_transform_stmt): Likewise.
5938 2021-09-27  liuhongt  <hongtao.liu@intel.com>
5940         Revert:
5941         2021-09-09  liuhongt  <hongtao.liu@intel.com>
5943         PR target/101059
5944         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
5945         (reduc_plus_scal_v4sf): .. this, New define_expand.
5946         (reduc_plus_scal_v2df): .. and this, New define_expand.
5948 2021-09-26  liuhongt  <hongtao.liu@intel.com>
5950         * doc/extend.texi (Half-Precision): Remove storage only
5951         description for _Float16 w/o avx512fp16.
5953 2021-09-25  Dimitar Dimitrov  <dimitar@dinux.eu>
5955         * config/pru/constraints.md (Rrio): New constraint.
5956         * config/pru/predicates.md (regio_operand): New predicate.
5957         * config/pru/pru-pragma.c (pru_register_pragmas): Register
5958         the __regio_symbol address space.
5959         * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
5960         * config/pru/pru.c (pru_symref2ioregno): New helper function.
5961         (pru_legitimate_address_p): Remove.
5962         (pru_addr_space_legitimate_address_p): Use the address space
5963         aware hook variant.
5964         (pru_nongeneric_pointer_addrspace): New helper function.
5965         (pru_insert_attributes): New function to validate __regio_symbol
5966         usage.
5967         (TARGET_INSERT_ATTRIBUTES): New macro.
5968         (TARGET_LEGITIMATE_ADDRESS_P): Remove.
5969         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
5970         * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
5971         * config/pru/pru.md (*regio_readsi): New pattern to read I/O
5972         registers.
5973         (*regio_nozext_writesi): New pattern to write to I/O registers.
5974         (*regio_zext_write_r30<EQS0:mode>): Ditto.
5975         * doc/extend.texi: Document the new PRU Named Address Space.
5977 2021-09-24  Patrick Palka  <ppalka@redhat.com>
5979         PR c++/98216
5980         PR c++/91292
5981         * real.c (encode_ieee_double): Avoid unwanted sign extension.
5982         (encode_ieee_quad): Likewise.
5984 2021-09-24  Vladimir Makarov  <vmakarov@redhat.com>
5986         PR rtl-optimization/102147
5987         * ira-build.c (ira_conflict_vector_profitable_p): Make
5988         profitability calculation independent of host compiler pointer and
5989         IRA_INT_BITS sizes.
5991 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
5993         * gimple-range-path.cc (path_range_query::path_range_query):
5994         Move debugging header...
5995         (path_range_query::precompute_ranges): ...here.
5996         (path_range_query::internal_range_of_expr): Do not call
5997         range_on_path_entry if NAME is defined in the current block.
5999 2021-09-24  Richard Biener  <rguenther@suse.de>
6001         * cfghooks.c (verify_flow_info): Verify unallocated BB and
6002         edge flags are not set.
6004 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
6006         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
6007         New.
6008         (jt_path_registry::register_jump_thread): Call
6009         cancel_invalid_paths.
6010         * tree-ssa-threadupdate.h (class jt_path_registry): Add
6011         cancel_invalid_paths.
6013 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
6015         PR tree-optimization/102400
6016         * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
6017         result_vdef to zero value.
6019 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
6021         PR tree-optimization/102451
6022         * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
6023         before removal.
6025 2021-09-24  Hongyu Wang  <hongyu.wang@intel.com>
6027         * config/i386/sse.md (cond_<insn><mode>): Extend to support
6028         vector HFmodes.
6029         (cond_mul<mode>): Likewise.
6030         (cond_div<mode>): Likewise.
6031         (cond_<code><mode>): Likewise.
6032         (cond_fma<mode>): Likewise.
6033         (cond_fms<mode>): Likewise.
6034         (cond_fnma<mode>): Likewise.
6035         (cond_fnms<mode>): Likewise.
6037 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
6039         PR tree-optimization/102463
6040         * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
6041         there is no range-ops handler, don't look for a relation.
6043 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
6045         * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
6046         non-executable_edge flag as parameter.
6047         * gimple-range-cache.h (ranger_cache): Adjust prototype.
6048         * gimple-range-gori.cc (gori_compute::gori_compute): Take
6049         non-executable_edge flag as parameter.
6050         (gori_compute::outgoing_edge_range_p): Check new flag.
6051         * gimple-range-gori.h (gori_compute): Adjust prototype.
6052         * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
6053         (gimple_ranger::range_on_edge): Check new flag.
6054         * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
6055         * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
6056         (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
6057         (hybrid_folder::fold_stmt): Set flag value in the simplifer.
6058         * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
6059         Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
6060         (simplify_using_ranges::simplify_switch_using_ranges): Clear
6061         EDGE_EXECUTABLE like it originally did.
6062         (simplify_using_ranges::cleanup_edges_and_switches): Clear any
6063         NON_EXECUTABLE flags.
6064         (simplify_using_ranges::simplify_using_ranges): Adjust.
6065         * vr-values.h (class simplify_using_ranges): Adjust.
6066         (simplify_using_ranges::set_range_query): Add non-executable flag param.
6068 2021-09-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6070         PR target/102024
6071         * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
6072         zero-width bit fields and return indicator.
6073         (rs6000_discover_homogeneous_aggregate): Diagnose when the
6074         presence of a zero-width bit field changes parameter passing in
6075         GCC 12.
6077 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
6079         * gimple-range-fold.cc (fold_using_range::range_of_phi):
6080         Remove dominator check.
6082 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
6084         * gimple-range-path.cc (path_range_query::precompute_relations):
6085         Hoist edge calculations before using EDGE_SUCC.
6087 2021-09-23  Jonathan Wakely  <jwakely@redhat.com>
6089         * configure.ac: Fix --with-multilib-list description.
6090         * configure: Regenerate.
6092 2021-09-23  Richard Biener  <rguenther@suse.de>
6094         PR tree-optimization/102448
6095         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
6096         Clear alignment info copied from DR_PTR_INFO.
6098 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6100         * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
6101         HFmode mask_cmp.
6102         * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
6103         (<avx512>_store<mode>_mask): Extend to support HF vector modes.
6104         (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
6105         (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
6106         (vcond<mode><mode>): New expander.
6107         (vcond<mode><sseintvecmodelower>): Likewise.
6108         (vcond<sseintvecmodelower><mode>): Likewise.
6109         (vcondu<mode><sseintvecmodelower>): Likewise.
6111 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6113         * config/i386/sse.md (extend<ssePHmodelower><mode>2):
6114         New expander.
6115         (extendv4hf<mode>2): Likewise.
6116         (extendv2hfv2df2): Likewise.
6117         (trunc<mode><ssePHmodelower>2): Likewise.
6118         (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
6119         (trunc<mode>v4hf2): ... this, and drop constraints.
6120         (avx512fp16_vcvtpd2ph_v2df): Rename to ...
6121         (truncv2dfv2hf2): ... this, and likewise.
6123 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6125         * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
6126         New expander.
6127         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
6128         Rename to ...
6129         (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
6130         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
6131         (float<floatunssuffix>v2div2hf2): ... this, and likewise.
6133 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6135         * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
6136         (fixuns_trunchfhi2): Likewise.
6137         (*fixuns_trunchfsi2zext): New define_insn.
6138         * config/i386/sse.md (ssePHmodelower): New mode_attr.
6139         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
6140         New expander for same element vector fix_truncate.
6141         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
6142         Likewise for V4HF to V4SI/V4DI fix_truncate.
6143         (fix<fixunssuffix>_truncv2hfv2di2):
6144         Likeise for V2HF to V2DI fix_truncate.
6146 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6148         * config/i386/i386.md (<code>hf3): New expander.
6150 2021-09-23  liuhongt  <hongtao.liu@intel.com>
6152         * config/i386/sse.md (FMAMODEM): extend to handle FP16.
6153         (VFH_SF_AVX512VL): Extend to handle HFmode.
6154         (VF_SF_AVX512VL): Deleted.
6156 2021-09-23  liuhongt  <hongtao.liu@intel.com>
6158         * config/i386/i386.md (rinthf2): New expander.
6159         (nearbyinthf2): New expander.
6161 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
6163         * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
6164         (class dom_jt_state): ...this and provide virtual overrides.
6165         (dom_jt_state::register_equiv): New.
6166         (class dom_jt_simplifier): Rename from
6167         dom_jump_threader_simplifier.
6168         (dom_jump_threader_simplifier::simplify): Rename...
6169         (dom_jt_simplifier::simplify): ...to this.
6170         (pass_dominator::execute): Use dom_jt_simplifier and
6171         dom_jt_state.
6172         * tree-ssa-threadedge.c (jump_threader::jump_threader):
6173         Clean-up.
6174         (jt_state::register_equivs_stmt): Abstract out...
6175         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
6176         ...from here.
6177         (jump_threader::thread_around_empty_blocks): Update state.
6178         (jump_threader::thread_through_normal_block): Same.
6179         (jt_state::jt_state): Remove.
6180         (jt_state::push): Remove pass specific bits.  Keep block vector
6181         updated.
6182         (jt_state::append_path): New.
6183         (jt_state::pop): Remove pass specific bits.
6184         (jt_state::register_equiv): Same.
6185         (jt_state::record_ranges_from_stmt): Same.
6186         (jt_state::register_equivs_on_edge): Same.  Rename...
6187         (jt_state::register_equivs_edge):  ...to this.
6188         (jt_state::dump): New.
6189         (jt_state::debug): New.
6190         (jump_threader_simplifier::simplify): Remove.
6191         (jt_state::get_path): New.
6192         * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
6193         class.  Expose common functionality as virtual methods.
6194         (class jump_threader_simplifier): Same.  Rename...
6195         (class jt_simplifier): ...to this.
6196         * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
6197         (class vrp_jt_simplifier): ...to this. Provide pass specific
6198         overrides.
6199         (class vrp_jt_state): New.
6200         (vrp_jump_threader_simplifier::simplify): Rename...
6201         (vrp_jt_simplifier::simplify): ...to this.  Inline code from
6202         what used to be the base class.
6203         (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
6204         vrp_jt_simplifier.
6206 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
6208         PR fortran/55534
6209         * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
6210         behavior.
6212 2021-09-22  Roger Sayle  <roger@nextmovesoftware.com>
6213             Richard Biener  <rguenther@suse.de>
6215         * match.pd (negation simplifications): Implement some negation
6216         folding transformations from fold-const.c's fold_negate_expr.
6217         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
6218         argument, to control whether the op should be simplified prior
6219         to looking up/assigning a value number.
6220         (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
6221         (vn_nary_simplify): Likewise.
6222         (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
6223         now call vn_nary_build_or_lookup_1 disabling simplification.
6225 2021-09-22  Jiufu Guo  <guojiufu@linux.ibm.com>
6227         PR tree-optimization/102087
6228         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
6229         Update bound/cmp/control for niter.
6231 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
6233         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
6234         Move check for non-empty BB here.
6235         (fur_source::register_outgoing_edges): ...from here.
6237 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
6239         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
6240         Remove call to improve_range_with_equivs.
6241         (path_range_query::improve_range_with_equivs): Remove
6242         * gimple-range-path.h: Remove improve_range_with_equivs.
6244 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6246         * config/i386/avx512fp16intrin.h:
6247         (_mm512_mask_blend_ph): New intrinsic.
6248         (_mm512_permutex2var_ph): Ditto.
6249         (_mm512_permutexvar_ph): Ditto.
6250         * config/i386/avx512fp16vlintrin.h:
6251         (_mm256_mask_blend_ph): New intrinsic.
6252         (_mm256_permutex2var_ph): Ditto.
6253         (_mm256_permutexvar_ph): Ditto.
6254         (_mm_mask_blend_ph): Ditto.
6255         (_mm_permutex2var_ph): Ditto.
6256         (_mm_permutexvar_ph): Ditto.
6258 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6260         * config/i386/avx512fp16intrin.h: Add new intrinsics.
6261         (_mm512_conj_pch): New intrinsic.
6262         (_mm512_mask_conj_pch): Ditto.
6263         (_mm512_maskz_conj_pch): Ditto.
6264         * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
6265         (_mm256_conj_pch): New intrinsic.
6266         (_mm256_mask_conj_pch): Ditto.
6267         (_mm256_maskz_conj_pch): Ditto.
6268         (_mm_conj_pch): Ditto.
6269         (_mm_mask_conj_pch): Ditto.
6270         (_mm_maskz_conj_pch): Ditto.
6272 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6274         * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
6275         (_mm512_reduce_add_ph): New intrinsic.
6276         (_mm512_reduce_mul_ph): Ditto.
6277         (_mm512_reduce_min_ph): Ditto.
6278         (_mm512_reduce_max_ph): Ditto.
6279         * config/i386/avx512fp16vlintrin.h
6280         (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
6281         (_mm256_reduce_add_ph): New intrinsic.
6282         (_mm256_reduce_mul_ph): Ditto.
6283         (_mm256_reduce_min_ph): Ditto.
6284         (_mm256_reduce_max_ph): Ditto.
6285         (_mm_reduce_add_ph): Ditto.
6286         (_mm_reduce_mul_ph): Ditto.
6287         (_mm_reduce_min_ph): Ditto.
6288         (_mm_reduce_max_ph): Ditto.
6290 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6292         * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
6293         __m128h_u): New typedef.
6294         (_mm512_load_ph): New intrinsic.
6295         (_mm256_load_ph): Ditto.
6296         (_mm_load_ph): Ditto.
6297         (_mm512_loadu_ph): Ditto.
6298         (_mm256_loadu_ph): Ditto.
6299         (_mm_loadu_ph): Ditto.
6300         (_mm512_store_ph): Ditto.
6301         (_mm256_store_ph): Ditto.
6302         (_mm_store_ph): Ditto.
6303         (_mm512_storeu_ph): Ditto.
6304         (_mm256_storeu_ph): Ditto.
6305         (_mm_storeu_ph): Ditto.
6306         (_mm512_abs_ph): Ditto.
6307         * config/i386/avx512fp16vlintrin.h
6308         (_mm_abs_ph): Ditto.
6309         (_mm256_abs_ph): Ditto.
6311 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
6313         * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
6315 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
6317         PR target/102222
6318         * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
6319         is actually a full copy of the source operand into the target.
6320         Don't emit a strict low part move if source and target mode match.
6322 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
6324         PR middle-end/102415
6325         * omp-expand.c (expand_omp_single): If region->exit is NULL,
6326         assert region->entry is GIMPLE_OMP_SCOPE region and return.
6328 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
6330         * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
6331         * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
6332         arguments from 2 to 3.
6333         * tree-pretty-print.c (dump_omp_clause): Print allocator() around
6334         allocate clause allocator and print align if present.
6335         * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
6336         for omp_default_mem_alloc if align modifier is present.  If align
6337         modifier is present, use TREE_LIST to encode both allocator and
6338         align.
6339         (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
6340         Handle align modifier on allocator clause if present.
6342 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6344         * config/i386/i386.md (define_attr "isa"): Add
6345         fma_or_avx512vl.
6346         (define_attr "enabled"): Correspond fma_or_avx512vl to
6347         TARGET_FMA || TARGET_AVX512VL.
6348         * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
6349         (fmsv2sf4): Ditto.
6350         (fnmav2sf4): Ditto.
6351         (fnmsv2sf4): Ditto.
6353 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6355         * config/i386/i386.md (cstorehf3): New define_expand.
6357 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6359         * config/i386/i386.md (<rounding_insn>hf2): New expander.
6360         (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
6361         * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
6362         Extend from VF_128 to VFH_128.
6364 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6366         * config/i386/i386-features.c (i386-features.c): Handle
6367         E_HFmode.
6368         * config/i386/i386.md (sqrthf2): New expander.
6369         (*sqrthf2): New define_insn.
6370         * config/i386/sse.md
6371         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
6372         Extend to VFH_128.
6374 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6376         * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
6377         New intrinsic.
6378         (_mm_mask3_fcmadd_sch): Likewise.
6379         (_mm_maskz_fcmadd_sch): Likewise.
6380         (_mm_fcmadd_sch): Likewise.
6381         (_mm_mask_fmadd_sch): Likewise.
6382         (_mm_mask3_fmadd_sch): Likewise.
6383         (_mm_maskz_fmadd_sch): Likewise.
6384         (_mm_fmadd_sch): Likewise.
6385         (_mm_mask_fcmadd_round_sch): Likewise.
6386         (_mm_mask3_fcmadd_round_sch): Likewise.
6387         (_mm_maskz_fcmadd_round_sch): Likewise.
6388         (_mm_fcmadd_round_sch): Likewise.
6389         (_mm_mask_fmadd_round_sch): Likewise.
6390         (_mm_mask3_fmadd_round_sch): Likewise.
6391         (_mm_maskz_fmadd_round_sch): Likewise.
6392         (_mm_fmadd_round_sch): Likewise.
6393         (_mm_fcmul_sch): Likewise.
6394         (_mm_mask_fcmul_sch): Likewise.
6395         (_mm_maskz_fcmul_sch): Likewise.
6396         (_mm_fmul_sch): Likewise.
6397         (_mm_mask_fmul_sch): Likewise.
6398         (_mm_maskz_fmul_sch): Likewise.
6399         (_mm_fcmul_round_sch): Likewise.
6400         (_mm_mask_fcmul_round_sch): Likewise.
6401         (_mm_maskz_fcmul_round_sch): Likewise.
6402         (_mm_fmul_round_sch): Likewise.
6403         (_mm_mask_fmul_round_sch): Likewise.
6404         (_mm_maskz_fmul_round_sch): Likewise.
6405         * config/i386/i386-builtin.def: Add corresponding new builtins.
6406         * config/i386/sse.md
6407         (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
6408         (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
6409         (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
6410         New define insn.
6411         (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
6412         (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
6413         Ditto.
6414         * config/i386/subst.md (mask_scalarcz_name): New.
6415         (mask_scalarc_name): Ditto.
6416         (mask_scalarc_operand3): Ditto.
6417         (mask_scalarcz_operand4): Ditto.
6418         (round_scalarcz_name): Ditto.
6419         (round_scalarc_mask_operand3): Ditto.
6420         (round_scalarcz_mask_operand4): Ditto.
6421         (round_scalarc_mask_op3): Ditto.
6422         (round_scalarcz_mask_op4): Ditto.
6423         (round_scalarcz_constraint): Ditto.
6424         (round_scalarcz_nimm_predicate): Ditto.
6425         (mask_scalarcz): Ditto.
6426         (mask_scalarc): Ditto.
6427         (round_scalarcz): Ditto.
6429 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6431         * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
6432         New intrinsic.
6433         (_mm512_mask_fcmadd_pch): Likewise.
6434         (_mm512_mask3_fcmadd_pch): Likewise.
6435         (_mm512_maskz_fcmadd_pch): Likewise.
6436         (_mm512_fmadd_pch): Likewise.
6437         (_mm512_mask_fmadd_pch): Likewise.
6438         (_mm512_mask3_fmadd_pch): Likewise.
6439         (_mm512_maskz_fmadd_pch): Likewise.
6440         (_mm512_fcmadd_round_pch): Likewise.
6441         (_mm512_mask_fcmadd_round_pch): Likewise.
6442         (_mm512_mask3_fcmadd_round_pch): Likewise.
6443         (_mm512_maskz_fcmadd_round_pch): Likewise.
6444         (_mm512_fmadd_round_pch): Likewise.
6445         (_mm512_mask_fmadd_round_pch): Likewise.
6446         (_mm512_mask3_fmadd_round_pch): Likewise.
6447         (_mm512_maskz_fmadd_round_pch): Likewise.
6448         (_mm512_fcmul_pch): Likewise.
6449         (_mm512_mask_fcmul_pch): Likewise.
6450         (_mm512_maskz_fcmul_pch): Likewise.
6451         (_mm512_fmul_pch): Likewise.
6452         (_mm512_mask_fmul_pch): Likewise.
6453         (_mm512_maskz_fmul_pch): Likewise.
6454         (_mm512_fcmul_round_pch): Likewise.
6455         (_mm512_mask_fcmul_round_pch): Likewise.
6456         (_mm512_maskz_fcmul_round_pch): Likewise.
6457         (_mm512_fmul_round_pch): Likewise.
6458         (_mm512_mask_fmul_round_pch): Likewise.
6459         (_mm512_maskz_fmul_round_pch): Likewise.
6460         * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
6461         New intrinsic.
6462         (_mm_mask_fmadd_pch): Likewise.
6463         (_mm_mask3_fmadd_pch): Likewise.
6464         (_mm_maskz_fmadd_pch): Likewise.
6465         (_mm256_fmadd_pch): Likewise.
6466         (_mm256_mask_fmadd_pch): Likewise.
6467         (_mm256_mask3_fmadd_pch): Likewise.
6468         (_mm256_maskz_fmadd_pch): Likewise.
6469         (_mm_fcmadd_pch): Likewise.
6470         (_mm_mask_fcmadd_pch): Likewise.
6471         (_mm_mask3_fcmadd_pch): Likewise.
6472         (_mm_maskz_fcmadd_pch): Likewise.
6473         (_mm256_fcmadd_pch): Likewise.
6474         (_mm256_mask_fcmadd_pch): Likewise.
6475         (_mm256_mask3_fcmadd_pch): Likewise.
6476         (_mm256_maskz_fcmadd_pch): Likewise.
6477         (_mm_fmul_pch): Likewise.
6478         (_mm_mask_fmul_pch): Likewise.
6479         (_mm_maskz_fmul_pch): Likewise.
6480         (_mm256_fmul_pch): Likewise.
6481         (_mm256_mask_fmul_pch): Likewise.
6482         (_mm256_maskz_fmul_pch): Likewise.
6483         (_mm_fcmul_pch): Likewise.
6484         (_mm_mask_fcmul_pch): Likewise.
6485         (_mm_maskz_fcmul_pch): Likewise.
6486         (_mm256_fcmul_pch): Likewise.
6487         (_mm256_mask_fcmul_pch): Likewise.
6488         (_mm256_maskz_fcmul_pch): Likewise.
6489         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
6490         V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
6491         V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
6492         V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
6493         * config/i386/i386-builtin.def: Add new builtins.
6494         * config/i386/i386-expand.c: Handle new builtin types.
6495         * config/i386/subst.md (SUBST_CV): New.
6496         (maskc_name): Ditto.
6497         (maskc_operand3): Ditto.
6498         (maskc): Ditto.
6499         (sdc_maskz_name): Ditto.
6500         (sdc_mask_op4): Ditto.
6501         (sdc_mask_op5): Ditto.
6502         (sdc_mask_mode512bit_condition): Ditto.
6503         (sdc): Ditto.
6504         (round_maskc_operand3): Ditto.
6505         (round_sdc_mask_operand4): Ditto.
6506         (round_maskc_op3): Ditto.
6507         (round_sdc_mask_op4): Ditto.
6508         (round_saeonly_sdc_mask_operand5): Ditto.
6509         * config/i386/sse.md (unspec): Add complex fma unspecs.
6510         (avx512fmaskcmode): New.
6511         (UNSPEC_COMPLEX_F_C_MA): Ditto.
6512         (UNSPEC_COMPLEX_F_C_MUL): Ditto.
6513         (complexopname): Ditto.
6514         (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
6515         (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
6516         (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
6517         define insn.
6518         (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
6519         (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
6521 2021-09-22  Kewen Lin  <linkw@linux.ibm.com>
6523         * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
6524         rs6000-density-size-threshold, rs6000-density-penalty,
6525         rs6000-density-load-pct-threshold,
6526         rs6000-density-load-num-threshold): New parameter.
6527         * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
6528         corresponding parameters.
6530 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6532         * gimple-range-path.cc (path_range_query::defined_outside_path):
6533         New.
6534         (path_range_query::range_on_path_entry): New.
6535         (path_range_query::internal_range_of_expr): Resolve unknowns
6536         with ranger.
6537         (path_range_query::improve_range_with_equivs): New.
6538         (path_range_query::ssa_range_in_phi): Resolve unknowns with
6539         ranger.
6540         * gimple-range-path.h (class path_range_query): Add
6541         defined_outside_path, range_on_path_entry, and
6542         improve_range_with_equivs.
6544 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6546         * gimple-range-path.cc (path_range_query::add_to_imports): New.
6547         (path_range_query::add_copies_to_imports): New.
6548         (path_range_query::precompute_ranges): Call
6549         add_copies_to_imports.
6550         * gimple-range-path.h (class path_range_query): Add prototypes
6551         for add_copies_to_imports and add_to_imports.
6553 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6555         * gimple-range-path.cc (path_range_query::range_defined_in_block):
6556         Remove useless code.
6558 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6560         * gimple-range-fold.h (class fur_source): Make oracle protected.
6561         * gimple-range-path.cc (path_range_query::path_range_query): Add
6562         resolve argument.  Initialize oracle.
6563         (path_range_query::~path_range_query): Delete oracle.
6564         (path_range_query::range_of_stmt): Adapt to use relations.
6565         (path_range_query::precompute_ranges): Pre-compute relations.
6566         (class jt_fur_source): New
6567         (jt_fur_source::jt_fur_source): New.
6568         (jt_fur_source::register_relation): New.
6569         (jt_fur_source::query_relation): New.
6570         (path_range_query::precompute_relations): New.
6571         (path_range_query::precompute_phi_relations): New.
6572         * gimple-range-path.h (path_range_query): Add resolve argument.
6573         Add oracle, precompute_relations, precompute_phi_relations.
6574         * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
6575         resolve argument to solver.
6577 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6579         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
6580         Rename postfold_gcond_edges to register_outgoing_edges and
6581         adapt.
6582         (fold_using_range::postfold_gcond_edges): Rename...
6583         (fur_source::register_outgoing_edges): ...to this.
6584         * gimple-range-fold.h (postfold_gcond_edges): Rename to
6585         register_outgoing_edges and move to fur_source.
6587 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6589         * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
6590         dom_info_available_p.
6592 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
6594         * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
6595         and quick_grow_cleared instead of safe_grow_cleared.
6597 2021-09-21  Thomas Schwinge  <thomas@codesourcery.com>
6599         PR other/102408
6600         * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
6601         'random ()' to '0'.
6603 2021-09-21  Richard Earnshaw  <rearnsha@arm.com>
6605         * configure.ac: Detect when the assembler supports new-style
6606         architecture extensions.
6607         * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
6608         the full CPU string if the assembler can grok it.
6609         (arm_rewrite_march): Likewise but for the architecture.
6610         * config.in: Regenerate.
6611         * configure: Regenerate.
6613 2021-09-21  Richard Biener  <rguenther@suse.de>
6615         PR tree-optimization/102421
6616         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
6617         adjust alignment info.
6619 2021-09-21  Kewen Lin  <linkw@linux.ibm.com>
6621         * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
6622         bitfield stream out.
6624 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
6626         * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
6627         undefined edges, apply an equivalence if appropriate.
6628         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
6629         UNDEFINED if EDGE_EXECUTABLE is not set.
6630         * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
6631         as EXECUTABLE upon startup.
6632         (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
6633         EDGE_EXECUTABLE set.
6634         * vr-values.c (set_and_propagate_unexecutable): New.
6635         (simplify_using_ranges::fold_cond): Call set_and_propagate.
6636         (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
6637         * vr-values.h: Add prototype.
6639 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
6641         * value-relation.cc (equiv_oracle::register_initial_def): New.
6642         (equiv_oracle::register_relation): Call register_initial_def.
6643         (equiv_oracle::add_equiv_to_block): New.  Split register_relation.
6644         (relation_oracle::register_stmt): Check def block of PHI arguments.
6645         * value-relation.h (equiv_oracle): Add new prototypes.
6647 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
6649         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
6650         Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
6651         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
6652         __ROUNDING_MATH__ according to their corresponding flags.
6653         * doc/cpp.texi: Document __RECIPROCAL_MATH__,
6654         __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
6655         and __ROUNDING_MATH__.
6657 2021-09-20  Richard Biener  <rguenther@suse.de>
6659         * tree-vect-stmts.c (vectorizable_load): Use the vectype
6660         from the SLP node.
6662 2021-09-20  Richard Biener  <rguenther@suse.de>
6664         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
6665         Do not compute alignment of the vectorized access here.
6667 2021-09-20  Richard Biener  <rguenther@suse.de>
6669         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6670         Store -1 for runtime alias peeling iterations.
6672 2021-09-20  Richard Biener  <rguenther@suse.de>
6674         * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
6676 2021-09-20  Thomas Schwinge  <thomas@codesourcery.com>
6678         * input.c (string_concat_db::record_string_concatenation)
6679         (string_concat_db::get_string_concatenation): Skip for
6680         'RESERVED_LOCATION_P'.
6682 2021-09-20  Richard Biener  <rguenther@suse.de>
6684         PR tree-optimization/65206
6685         * tree-data-ref.h (struct data_reference): Add alt_indices,
6686         order it last.
6687         * tree-data-ref.c (free_data_ref): Release alt_indices.
6688         (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
6689         (create_data_ref): Adjust.
6690         (initialize_data_dependence_relation): Split into head
6691         and tail.  When the base objects fail to match up try
6692         again with pointer-based analysis of indices.
6693         * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
6694         not compare the lazily computed alternate set of indices.
6696 2021-09-20  Iain Sandoe  <iain@sandoe.co.uk>
6698         * gcc.c: Test for execute OK when we find the
6699         programs for assembler linker and dsymutil and those
6700         were specified at configure-time.
6702 2021-09-19  Martin Sebor  <msebor@redhat.com>
6704         PR middle-end/102403
6705         * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
6706         Correct a function pre/postcondition.
6708 2021-09-19  Martin Sebor  <msebor@redhat.com>
6710         PR middle-end/102243
6711         * tree-ssa-strlen.c (get_range): Handle null cfun.
6713 2021-09-19  Iain Sandoe  <iain@sandoe.co.uk>
6715         * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
6716         unwinder shim as a convenience library.
6718 2021-09-19  Andrew Pinski  <apinski@marvell.com>
6720         * doc/install.texi: Add note about
6721         binutils 2.35 is required for LTO usage.
6723 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
6725         * tree-ssa-threadbackward.c
6726         (back_threader_registry::register_path): Use push_edge.
6727         * tree-ssa-threadedge.c
6728         (jump_threader::thread_around_empty_blocks): Same.
6729         (jump_threader::thread_through_normal_block): Same.
6730         (jump_threader::thread_across_edge): Same.  Also, use auto_bitmap.
6731         Tidy up code.
6732         * tree-ssa-threadupdate.c
6733         (jt_path_registry::allocate_thread_edge): Remove.
6734         (jt_path_registry::push_edge): New.
6735         (dump_jump_thread_path): Make static.
6736         * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
6737         (push_edge): New.
6739 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
6741         * gimple-range-path.cc (path_range_query::path_range_query): Add
6742         header.
6743         (path_range_query::dump): Remove extern declaration of dump_ranger.
6744         * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
6745         * gimple-range-trace.h (dump_ranger): Add prototype.
6747 2021-09-19  John Ericson  <git@JohnEricson.me>
6749         * gcc.c (find_a_program): New function, factored out of...
6750         (find_a_file): Here.
6751         (execute): Use find_a_program when looking for programs rather
6752         than find_a_file.
6754 2021-09-19  Matwey V. Kornilov  <matwey.kornilov@gmail.com>
6756         * config/avr/avr-mcus.def: Add atmega324pb.
6757         * doc/avr-mmcu.texi: Corresponding changes.
6759 2021-09-19  Roger Sayle  <roger@nextmovesoftware.com>
6761         PR middle-end/88173
6762         * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
6763         the same transformations as to @1.  For comparisons against NaN,
6764         don't check HONOR_SNANS but confirm that neither operand is a
6765         signaling NaN.
6767 2021-09-19  Benjamin Peterson  <benjamin@locrian.net>
6769         * attribs.c (make_unique_name): Delete.
6770         * attribs.h (make_unique_name): Delete.
6772 2021-09-19  Andrew Pinski  <apinski@marvell.com>
6774         * lra-constraints.c (check_and_process_move): Assert
6775         that dclass and sclass are greater than or equal to NO_REGS.
6777 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
6779         * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
6780         * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
6781         for OMP_CLAUSE_ORDER_UNCONSTRAINED.
6783 2021-09-18  liuhongt  <hongtao.liu@intel.com>
6785         * config/i386/i386-features.c (remove_partial_avx_dependency):
6786         Restrict TARGET_USE_VECTOR_FP_CONVERTS and
6787         TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
6789 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
6791         * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
6792         if file/namespace scope variable doesn't have predetermined sharing,
6793         treat it as if there was default(none).
6795 2021-09-18  liuhongt  <hongtao.liu@intel.com>
6797         * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
6798         New intrinsic.
6799         (_mm_mask_fmadd_sh): Likewise.
6800         (_mm_mask3_fmadd_sh): Likewise.
6801         (_mm_maskz_fmadd_sh): Likewise.
6802         (_mm_fmadd_round_sh): Likewise.
6803         (_mm_mask_fmadd_round_sh): Likewise.
6804         (_mm_mask3_fmadd_round_sh): Likewise.
6805         (_mm_maskz_fmadd_round_sh): Likewise.
6806         (_mm_fnmadd_sh): Likewise.
6807         (_mm_mask_fnmadd_sh): Likewise.
6808         (_mm_mask3_fnmadd_sh): Likewise.
6809         (_mm_maskz_fnmadd_sh): Likewise.
6810         (_mm_fnmadd_round_sh): Likewise.
6811         (_mm_mask_fnmadd_round_sh): Likewise.
6812         (_mm_mask3_fnmadd_round_sh): Likewise.
6813         (_mm_maskz_fnmadd_round_sh): Likewise.
6814         (_mm_fmsub_sh): Likewise.
6815         (_mm_mask_fmsub_sh): Likewise.
6816         (_mm_mask3_fmsub_sh): Likewise.
6817         (_mm_maskz_fmsub_sh): Likewise.
6818         (_mm_fmsub_round_sh): Likewise.
6819         (_mm_mask_fmsub_round_sh): Likewise.
6820         (_mm_mask3_fmsub_round_sh): Likewise.
6821         (_mm_maskz_fmsub_round_sh): Likewise.
6822         (_mm_fnmsub_sh): Likewise.
6823         (_mm_mask_fnmsub_sh): Likewise.
6824         (_mm_mask3_fnmsub_sh): Likewise.
6825         (_mm_maskz_fnmsub_sh): Likewise.
6826         (_mm_fnmsub_round_sh): Likewise.
6827         (_mm_mask_fnmsub_round_sh): Likewise.
6828         (_mm_mask3_fnmsub_round_sh): Likewise.
6829         (_mm_maskz_fnmsub_round_sh): Likewise.
6830         * config/i386/i386-builtin-types.def
6831         (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
6832         * config/i386/i386-builtin.def: Add new builtins.
6833         * config/i386/i386-expand.c: Handle new builtin type.
6834         * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
6835         Ajdust to support FP16.
6836         (fmai_vmfmsub_<mode><round_name>): Ditto.
6837         (fmai_vmfnmadd_<mode><round_name>): Ditto.
6838         (fmai_vmfnmsub_<mode><round_name>): Ditto.
6839         (*fmai_fmadd_<mode>): Ditto.
6840         (*fmai_fmsub_<mode>): Ditto.
6841         (*fmai_fnmadd_<mode><round_name>): Ditto.
6842         (*fmai_fnmsub_<mode><round_name>): Ditto.
6843         (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
6844         (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
6845         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
6846         (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
6847         (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
6848         (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
6849         (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
6850         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
6851         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
6852         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
6853         (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
6854         (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
6855         adjust to support FP16.
6856         (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
6857         (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
6858         (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
6859         expander.
6861 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
6863         * config/i386/sse.md (avx512fmaskmodelower): Extend to support
6864         HF modes.
6865         (maskload<mode><avx512fmaskmodelower>): Ditto.
6866         (maskstore<mode><avx512fmaskmodelower>): Ditto.
6868 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
6870         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
6871         Handle HFmode.
6872         (ix86_expand_copysign): Ditto.
6873         (ix86_expand_xorsign): Ditto.
6874         * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
6875         modes.
6876         (ix86_build_signbit_mask): Ditto.
6877         (ix86_can_change_mode_class): Ditto.
6878         * config/i386/i386.md
6879         (SSEMODEF): Add HFmode.
6880         (ssevecmodef): Ditto.
6881         (<code>hf2): New define_expand.
6882         (*<code>hf2_1): New define_insn_and_split.
6883         (copysign<mode>): Extend to support HFmode under AVX512FP16.
6884         (xorsign<mode>): Ditto.
6885         * config/i386/sse.md (VFB): New mode iterator.
6886         (VFB_128_256): Ditto.
6887         (VFB_512): Ditto.
6888         (sseintvecmode2): Support HF vector mode.
6889         (<code><mode>2): Use new mode iterator.
6890         (*<code><mode>2): Ditto.
6891         (copysign<mode>3): Ditto.
6892         (xorsign<mode>3): Ditto.
6893         (<code><mode>3<mask_name>): Ditto.
6894         (<code><mode>3<mask_name>): Ditto.
6895         (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
6896         (<sse>_andnot<mode>3<mask_name>): Ditto.
6897         (*<code><mode>3<mask_name>): Ditto.
6898         (*<code><mode>3<mask_name>): Ditto.
6900 2021-09-18  liuhongt  <hongtao.liu@intel.com>
6902         * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
6903         New intrinsic.
6904         (_mm512_mask3_fmadd_ph): Likewise.
6905         (_mm512_maskz_fmadd_ph): Likewise.
6906         (_mm512_fmadd_round_ph): Likewise.
6907         (_mm512_mask_fmadd_round_ph): Likewise.
6908         (_mm512_mask3_fmadd_round_ph): Likewise.
6909         (_mm512_maskz_fmadd_round_ph): Likewise.
6910         (_mm512_fnmadd_ph): Likewise.
6911         (_mm512_mask_fnmadd_ph): Likewise.
6912         (_mm512_mask3_fnmadd_ph): Likewise.
6913         (_mm512_maskz_fnmadd_ph): Likewise.
6914         (_mm512_fnmadd_round_ph): Likewise.
6915         (_mm512_mask_fnmadd_round_ph): Likewise.
6916         (_mm512_mask3_fnmadd_round_ph): Likewise.
6917         (_mm512_maskz_fnmadd_round_ph): Likewise.
6918         (_mm512_fmsub_ph): Likewise.
6919         (_mm512_mask_fmsub_ph): Likewise.
6920         (_mm512_mask3_fmsub_ph): Likewise.
6921         (_mm512_maskz_fmsub_ph): Likewise.
6922         (_mm512_fmsub_round_ph): Likewise.
6923         (_mm512_mask_fmsub_round_ph): Likewise.
6924         (_mm512_mask3_fmsub_round_ph): Likewise.
6925         (_mm512_maskz_fmsub_round_ph): Likewise.
6926         (_mm512_fnmsub_ph): Likewise.
6927         (_mm512_mask_fnmsub_ph): Likewise.
6928         (_mm512_mask3_fnmsub_ph): Likewise.
6929         (_mm512_maskz_fnmsub_ph): Likewise.
6930         (_mm512_fnmsub_round_ph): Likewise.
6931         (_mm512_mask_fnmsub_round_ph): Likewise.
6932         (_mm512_mask3_fnmsub_round_ph): Likewise.
6933         (_mm512_maskz_fnmsub_round_ph): Likewise.
6934         * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
6935         New intrinsic.
6936         (_mm256_mask_fmadd_ph): Likewise.
6937         (_mm256_mask3_fmadd_ph): Likewise.
6938         (_mm256_maskz_fmadd_ph): Likewise.
6939         (_mm_fmadd_ph): Likewise.
6940         (_mm_mask_fmadd_ph): Likewise.
6941         (_mm_mask3_fmadd_ph): Likewise.
6942         (_mm_maskz_fmadd_ph): Likewise.
6943         (_mm256_fnmadd_ph): Likewise.
6944         (_mm256_mask_fnmadd_ph): Likewise.
6945         (_mm256_mask3_fnmadd_ph): Likewise.
6946         (_mm256_maskz_fnmadd_ph): Likewise.
6947         (_mm_fnmadd_ph): Likewise.
6948         (_mm_mask_fnmadd_ph): Likewise.
6949         (_mm_mask3_fnmadd_ph): Likewise.
6950         (_mm_maskz_fnmadd_ph): Likewise.
6951         (_mm256_fmsub_ph): Likewise.
6952         (_mm256_mask_fmsub_ph): Likewise.
6953         (_mm256_mask3_fmsub_ph): Likewise.
6954         (_mm256_maskz_fmsub_ph): Likewise.
6955         (_mm_fmsub_ph): Likewise.
6956         (_mm_mask_fmsub_ph): Likewise.
6957         (_mm_mask3_fmsub_ph): Likewise.
6958         (_mm_maskz_fmsub_ph): Likewise.
6959         (_mm256_fnmsub_ph): Likewise.
6960         (_mm256_mask_fnmsub_ph): Likewise.
6961         (_mm256_mask3_fnmsub_ph): Likewise.
6962         (_mm256_maskz_fnmsub_ph): Likewise.
6963         (_mm_fnmsub_ph): Likewise.
6964         (_mm_mask_fnmsub_ph): Likewise.
6965         (_mm_mask3_fnmsub_ph): Likewise.
6966         (_mm_maskz_fnmsub_ph): Likewise.
6967         * config/i386/i386-builtin.def: Add corresponding new builtins.
6968         * config/i386/sse.md
6969         (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
6970         support HF vector modes.
6971         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
6972         Ditto.
6973         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
6974         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
6975         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
6976         (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
6977         (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
6978         (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
6979         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
6980         Ditto.
6981         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
6982         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
6983         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
6984         (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
6985         (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
6986         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
6987         Ditto.
6988         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
6989         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
6990         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
6991         (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
6992         (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
6993         (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
6994         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
6995         Ditto.
6996         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
6997         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
6998         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
6999         (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
7000         (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
7002 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7004         * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
7005         New intrinsic.
7006         (_mm512_mask_fmaddsub_ph): Likewise.
7007         (_mm512_mask3_fmaddsub_ph): Likewise.
7008         (_mm512_maskz_fmaddsub_ph): Likewise.
7009         (_mm512_fmaddsub_round_ph): Likewise.
7010         (_mm512_mask_fmaddsub_round_ph): Likewise.
7011         (_mm512_mask3_fmaddsub_round_ph): Likewise.
7012         (_mm512_maskz_fmaddsub_round_ph): Likewise.
7013         (_mm512_mask_fmsubadd_ph): Likewise.
7014         (_mm512_mask3_fmsubadd_ph): Likewise.
7015         (_mm512_maskz_fmsubadd_ph): Likewise.
7016         (_mm512_fmsubadd_round_ph): Likewise.
7017         (_mm512_mask_fmsubadd_round_ph): Likewise.
7018         (_mm512_mask3_fmsubadd_round_ph): Likewise.
7019         (_mm512_maskz_fmsubadd_round_ph): Likewise.
7020         * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
7021         New intrinsic.
7022         (_mm256_mask_fmaddsub_ph): Likewise.
7023         (_mm256_mask3_fmaddsub_ph): Likewise.
7024         (_mm256_maskz_fmaddsub_ph): Likewise.
7025         (_mm_fmaddsub_ph): Likewise.
7026         (_mm_mask_fmaddsub_ph): Likewise.
7027         (_mm_mask3_fmaddsub_ph): Likewise.
7028         (_mm_maskz_fmaddsub_ph): Likewise.
7029         (_mm256_fmsubadd_ph): Likewise.
7030         (_mm256_mask_fmsubadd_ph): Likewise.
7031         (_mm256_mask3_fmsubadd_ph): Likewise.
7032         (_mm256_maskz_fmsubadd_ph): Likewise.
7033         (_mm_fmsubadd_ph): Likewise.
7034         (_mm_mask_fmsubadd_ph): Likewise.
7035         (_mm_mask3_fmsubadd_ph): Likewise.
7036         (_mm_maskz_fmsubadd_ph): Likewise.
7037         * config/i386/i386-builtin.def: Add corresponding new builtins.
7038         * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
7039         * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
7040         * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
7041         VFH_SF_AVX512VL.
7042         * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
7043         Ditto.
7044         * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
7045         * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
7046         * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
7047         Ditto.
7048         * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
7049         * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
7051 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7053         PR target/87767
7054         * config/i386/i386.c (ix86_print_operand): Handle
7055         V8HF/V16HF/V32HFmode.
7056         * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
7057         * config/i386/sse.md (avx512bcst): Remove.
7059 2021-09-17  Martin Sebor  <msebor@redhat.com>
7061         * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
7062         * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
7063         (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
7064         (check_defs): Add comment.
7065         (can_skip_redundant_opnd): Update comment.
7066         (compute_uninit_opnds_pos): Adjust to namespace change.
7067         (find_pdom): Move to gimple-predicate-analysis.cc.
7068         (find_dom): Same.
7069         (struct uninit_undef_val_t): New.
7070         (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
7071         (find_control_equiv_block): Same.
7072         (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
7073         (MAX_SWITCH_CASES): Same.
7074         (compute_control_dep_chain): Same.
7075         (find_uninit_use): Use predicate analyzer.
7076         (struct pred_info): Move to gimple-predicate-analysis.
7077         (convert_control_dep_chain_into_preds): Same.
7078         (find_predicates): Same.
7079         (collect_phi_def_edges): Same.
7080         (warn_uninitialized_phi): Use predicate analyzer.
7081         (find_def_preds): Move to gimple-predicate-analysis.
7082         (dump_pred_info): Same.
7083         (dump_pred_chain): Same.
7084         (dump_predicates): Same.
7085         (destroy_predicate_vecs): Remove.
7086         (execute_late_warn_uninitialized): New.
7087         (get_cmp_code): Move to gimple-predicate-analysis.
7088         (is_value_included_in): Same.
7089         (value_sat_pred_p): Same.
7090         (find_matching_predicate_in_rest_chains): Same.
7091         (is_use_properly_guarded): Same.
7092         (prune_uninit_phi_opnds): Same.
7093         (find_var_cmp_const): Same.
7094         (use_pred_not_overlap_with_undef_path_pred): Same.
7095         (pred_equal_p): Same.
7096         (is_neq_relop_p): Same.
7097         (is_neq_zero_form_p): Same.
7098         (pred_expr_equal_p): Same.
7099         (is_pred_expr_subset_of): Same.
7100         (is_pred_chain_subset_of): Same.
7101         (is_included_in): Same.
7102         (is_superset_of): Same.
7103         (pred_neg_p): Same.
7104         (simplify_pred): Same.
7105         (simplify_preds_2): Same.
7106         (simplify_preds_3): Same.
7107         (simplify_preds_4): Same.
7108         (simplify_preds): Same.
7109         (push_pred): Same.
7110         (push_to_worklist): Same.
7111         (get_pred_info_from_cmp): Same.
7112         (is_degenerated_phi): Same.
7113         (normalize_one_pred_1): Same.
7114         (normalize_one_pred): Same.
7115         (normalize_one_pred_chain): Same.
7116         (normalize_preds): Same.
7117         (can_one_predicate_be_invalidated_p): Same.
7118         (can_chain_union_be_invalidated_p): Same.
7119         (uninit_uses_cannot_happen): Same.
7120         (pass_late_warn_uninitialized::execute): Define.
7121         * gimple-predicate-analysis.cc: New file.
7122         * gimple-predicate-analysis.h: New file.
7124 2021-09-17  Julian Brown  <julian@codesourcery.com>
7126         * config/gcn/gcn.c (gimple.h): Include.
7127         (gcn_fork_join): Emit barrier for worker-level joins.
7128         * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
7129         writes_gang_private bitmap parameter. Set bit for blocks
7130         containing gang-private variable writes.
7131         (worker_single_simple): Don't emit barrier after predicated block.
7132         (worker_single_copy): Don't emit barrier if we're not broadcasting
7133         anything and the block contains no gang-private writes.
7134         (neuter_worker_single): Don't predicate blocks that only contain
7135         NOPs or internal marker functions.  Pass has_gang_private_write
7136         argument to worker_single_copy.
7137         (oacc_do_neutering): Add writes_gang_private bitmap handling.
7139 2021-09-17  Julian Brown  <julian@codesourcery.com>
7141         * config/gcn/gcn-protos.h
7142         (gcn_goacc_create_worker_broadcast_record): Update prototype.
7143         * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
7144         preallocated block of LDS memory.  Do not cache/share decls for
7145         reduction temporaries between invocations.
7146         (gcn_goacc_reduction_teardown): Unshare VAR on second use.
7147         (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
7148         and return temporary LDS space at that offset.  Return pointer in
7149         "sender" case.
7150         * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
7151         New global vars.
7152         (ACC_LDS_SIZE): Define as acc_lds_size.
7153         (gcn_init_machine_status): Don't initialise lds_allocated,
7154         lds_allocs, reduc_decls fields of machine function struct.
7155         (gcn_option_override): Handle default size for gang-private
7156         variables and -mgang-private-size option.
7157         (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
7158         initialising M0_REG.
7159         (gcn_shared_mem_layout): New function.
7160         (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
7161         gang_private_hwm variable.
7162         (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
7163         * config/gcn/gcn.h (machine_function): Remove lds_allocated,
7164         lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
7165         * config/gcn/gcn.opt (gang_private_size_opt): New global.
7166         (mgang-private-size=): New option.
7167         * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
7168         documentation hook.
7169         * doc/tm.texi: Regenerate.
7170         * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
7171         Add includes.
7172         (build_sender_ref): Handle sender_decl being pointer.
7173         (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
7174         parameters.  Pass placement argument to
7175         create_worker_broadcast_record hook invocations.  Handle
7176         sender_decl being pointer and isolate_broadcasts inserting extra
7177         barriers.
7178         (blk_offset_map_t): Add typedef.
7179         (neuter_worker_single): Add BLK_OFFSET_MAP parameter.  Pass
7180         preallocated range to worker_single_copy call.
7181         (dfs_broadcast_reachable_1): New function.
7182         (idx_decl_pair_t, used_range_vec_t): New typedefs.
7183         (sort_size_descending): New function.
7184         (addr_range): New class.
7185         (splay_tree_compare_addr_range, splay_tree_free_key)
7186         (first_fit_range, merge_ranges_1, merge_ranges): New functions.
7187         (execute_omp_oacc_neuter_broadcast): Rename to...
7188         (oacc_do_neutering): ... this.  Add BOUNDS_LO, BOUNDS_HI
7189         parameters.  Arrange layout of shared memory for broadcast
7190         operations.
7191         (execute_omp_oacc_neuter_broadcast): New function.
7192         (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
7193         handling from here.  Enable pass for all OpenACC routines in order
7194         to call shared memory-layout hook.
7195         * target.def (create_worker_broadcast_record): Add OFFSET
7196         parameter.
7197         (shared_mem_layout): New hook.
7199 2021-09-17  Julian Brown  <julian@codesourcery.com>
7200             Thomas Schwinge  <thomas@codesourcery.com>
7202         * omp-oacc-neuter-broadcast.cc
7203         (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
7204         1.
7205         (execute_omp_oacc_neuter_broadcast): Adjust.
7207 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
7209         * value-relation.cc (class equiv_chain): Move to header file.
7210         (path_oracle::path_oracle): New.
7211         (path_oracle::~path_oracle): New.
7212         (path_oracle::register_relation): New.
7213         (path_oracle::query_relation): New.
7214         (path_oracle::reset_path): New.
7215         (path_oracle::dump): New.
7216         * value-relation.h (class equiv_chain): Move to here.
7217         (class path_oracle): New.
7219 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
7221         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
7222         based oracle.
7223         * gimple-range-fold.cc (fur_depend::register_relation): Use
7224         register_stmt/edge routines.
7225         * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
7226         (equiv_oracle::equiv_oracle): Create self equivalence cache.
7227         (equiv_oracle::~equiv_oracle): Release same.
7228         (equiv_oracle::equiv_set): Return entry from self equiv cache if there
7229         are no equivalences.
7230         (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
7231         (equiv_oracle::register_relation): Rename from register_equiv.
7232         (relation_chain_head::find_relation): Relocate from dom_oracle.
7233         (relation_oracle::register_stmt): New.
7234         (relation_oracle::register_edge): New.
7235         (dom_oracle::*): Rename from relation_oracle.
7236         (dom_oracle::register_relation): Adjust to call equiv_oracle.
7237         (dom_oracle::set_one_relation): Split from register_relation.
7238         (dom_oracle::register_transitives): Consolidate 2 methods.
7239         (dom_oracle::find_relation_block): Move core to relation_chain.
7240         (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
7241         * value-relation.h (class relation_oracle): New pure virtual base.
7242         (class equiv_oracle): Inherit from relation_oracle and adjust.
7243         (class dom_oracle): Rename from old relation_oracle and adjust.
7245 2021-09-17  Martin Sebor  <msebor@redhat.com>
7247         PR middle-end/102200
7248         * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
7249         (handle_min_max_size): Change argument.  Store original SSA_NAME for
7250         operands to potentially distinct (sub)objects.
7251         (compute_objsize_r): Adjust call to the above.
7253 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7255         * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
7256         (rs6000_new_builtin_vectorized_function): New function.
7257         (rs6000_new_builtin_md_vectorized_function): Likewise.
7258         (rs6000_builtin_vectorized_function): Call
7259         rs6000_new_builtin_vectorized_function.
7260         (rs6000_builtin_md_vectorized_function): Call
7261         rs6000_new_builtin_md_vectorized_function.
7263 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7265         * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
7266         (ASSEMBLE_PAIR): Likewise.
7267         (BUILD_ACC): Likewise.
7268         (DISASSEMBLE_ACC): Likewise.
7269         (DISASSEMBLE_PAIR): Likewise.
7270         (PMXVBF16GER2): Likewise.
7271         (PMXVBF16GER2NN): Likewise.
7272         (PMXVBF16GER2NP): Likewise.
7273         (PMXVBF16GER2PN): Likewise.
7274         (PMXVBF16GER2PP): Likewise.
7275         (PMXVF16GER2): Likewise.
7276         (PMXVF16GER2NN): Likewise.
7277         (PMXVF16GER2NP): Likewise.
7278         (PMXVF16GER2PN): Likewise.
7279         (PMXVF16GER2PP): Likewise.
7280         (PMXVF32GER): Likewise.
7281         (PMXVF32GERNN): Likewise.
7282         (PMXVF32GERNP): Likewise.
7283         (PMXVF32GERPN): Likewise.
7284         (PMXVF32GERPP): Likewise.
7285         (PMXVF64GER): Likewise.
7286         (PMXVF64GERNN): Likewise.
7287         (PMXVF64GERNP): Likewise.
7288         (PMXVF64GERPN): Likewise.
7289         (PMXVF64GERPP): Likewise.
7290         (PMXVI16GER2): Likewise.
7291         (PMXVI16GER2PP): Likewise.
7292         (PMXVI16GER2S): Likewise.
7293         (PMXVI16GER2SPP): Likewise.
7294         (PMXVI4GER8): Likewise.
7295         (PMXVI4GER8PP): Likewise.
7296         (PMXVI8GER4): Likewise.
7297         (PMXVI8GER4PP): Likewise.
7298         (PMXVI8GER4SPP): Likewise.
7299         (XVBF16GER2): Likewise.
7300         (XVBF16GER2NN): Likewise.
7301         (XVBF16GER2NP): Likewise.
7302         (XVBF16GER2PN): Likewise.
7303         (XVBF16GER2PP): Likewise.
7304         (XVF16GER2): Likewise.
7305         (XVF16GER2NN): Likewise.
7306         (XVF16GER2NP): Likewise.
7307         (XVF16GER2PN): Likewise.
7308         (XVF16GER2PP): Likewise.
7309         (XVF32GER): Likewise.
7310         (XVF32GERNN): Likewise.
7311         (XVF32GERNP): Likewise.
7312         (XVF32GERPN): Likewise.
7313         (XVF32GERPP): Likewise.
7314         (XVF64GER): Likewise.
7315         (XVF64GERNN): Likewise.
7316         (XVF64GERNP): Likewise.
7317         (XVF64GERPN): Likewise.
7318         (XVF64GERPP): Likewise.
7319         (XVI16GER2): Likewise.
7320         (XVI16GER2PP): Likewise.
7321         (XVI16GER2S): Likewise.
7322         (XVI16GER2SPP): Likewise.
7323         (XVI4GER8): Likewise.
7324         (XVI4GER8PP): Likewise.
7325         (XVI8GER4): Likewise.
7326         (XVI8GER4PP): Likewise.
7327         (XVI8GER4SPP): Likewise.
7328         (XXMFACC): Likewise.
7329         (XXMTACC): Likewise.
7330         (XXSETACCZ): Likewise.
7331         (ASSEMBLE_PAIR_V): Likewise.
7332         (BUILD_PAIR): Likewise.
7333         (DISASSEMBLE_PAIR_V): Likewise.
7334         (LXVP): New.
7335         (STXVP): New.
7336         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
7337         Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
7338         * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
7339         (parse_bif_attrs): Handle ismmaint.
7340         (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
7341         (write_bif_static_init): Handle ismmaint.
7343 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7345         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
7346         forward decl.
7347         (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
7348         (rs6000_new_builtin_valid_without_lhs): New function.
7349         (rs6000_gimple_fold_new_mma_builtin): Likewise.
7350         (rs6000_gimple_fold_new_builtin): Likewise.
7352 2021-09-17  Thomas Schwinge  <thomas@codesourcery.com>
7354         * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
7355         Destruct stale Value objects.
7356         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
7357         Update.
7359 2021-09-17  Roger Sayle  <roger@nextmovesoftware.com>
7361         PR c/102245
7362         * match.pd (shift optimizations): Disable recent sign-changing
7363         optimization for shifts by zero, these will be folded later.
7365 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7367         * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
7368         [power9] to [always].
7370 2021-09-17  Richard Biener  <rguenther@suse.de>
7372         * tree-vect-stmts.c (vectorizable_load): Do not frob
7373         stmt_info for SLP.
7375 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7377         * config/i386/i386-features.c (remove_partial_avx_dependency):
7378         Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
7379         and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
7380         vxorps.
7381         * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
7382         New.
7383         (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
7384         * config/i386/i386.md (SSE FP to FP splitters): Replace
7385         TARGET_SSE_PARTIAL_REG_DEPENDENCY with
7386         TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
7387         (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
7388         with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
7389         * config/i386/x86-tune.def
7390         (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
7391         (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
7393 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7395         PR target/101900
7396         * config/i386/i386-features.c (remove_partial_avx_dependency):
7397         Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
7398         before generating vxorps.
7400 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7402         * config/i386/i386-options.c (processor_cost_table): Use
7403         tremont_cost for Tremont.
7404         * config/i386/x86-tune-costs.h (tremont_memcpy): New.
7405         (tremont_memset): Likewise.
7406         (tremont_cost): Likewise.
7407         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
7408         Enable for Tremont.
7410 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7412         * common/config/i386/i386-common.c: Use Haswell scheduling model
7413         for Tremont.
7414         * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
7415         scheduling pass.
7416         * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
7417         issue rate to 4.
7418         (ix86_adjust_cost): Handle Tremont.
7419         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
7420         Enable for Tremont.
7421         (X86_TUNE_USE_LEAVE): Likewise.
7422         (X86_TUNE_PUSH_MEMORY): Likewise.
7423         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
7424         (X86_TUNE_USE_CLTD): Likewise.
7425         (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
7426         (X86_TUNE_AVOID_MFENCE): Likewise.
7427         (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
7428         (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
7429         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
7430         (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
7431         (X86_TUNE_OPT_AGU): Likewise.
7432         (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
7433         (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
7434         (X86_TUNE_EXPAND_ABS): Likewise.
7435         (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
7436         (X86_TUNE_SLOW_PSHUFB): Likewise.
7438 2021-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7440         PR rtl-optimization/102306
7441         * combine.c (try_combine): Abort the combination if we are about to
7442         duplicate volatile references.
7444 2021-09-17  liuhongt  <hongtao.liu@intel.com>
7446         * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
7447         New intrinsic.
7448         (_mm256_undefined_ph): Likewise.
7449         (_mm512_undefined_ph): Likewise.
7450         (_mm_cvtsh_h): Likewise.
7451         (_mm256_cvtsh_h): Likewise.
7452         (_mm512_cvtsh_h): Likewise.
7453         (_mm512_castph_ps): Likewise.
7454         (_mm512_castph_pd): Likewise.
7455         (_mm512_castph_si512): Likewise.
7456         (_mm512_castph512_ph128): Likewise.
7457         (_mm512_castph512_ph256): Likewise.
7458         (_mm512_castph128_ph512): Likewise.
7459         (_mm512_castph256_ph512): Likewise.
7460         (_mm512_zextph128_ph512): Likewise.
7461         (_mm512_zextph256_ph512): Likewise.
7462         (_mm512_castps_ph): Likewise.
7463         (_mm512_castpd_ph): Likewise.
7464         (_mm512_castsi512_ph): Likewise.
7465         * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
7466         New intrinsic.
7467         (_mm256_castph_ps): Likewise.
7468         (_mm_castph_pd): Likewise.
7469         (_mm256_castph_pd): Likewise.
7470         (_mm_castph_si128): Likewise.
7471         (_mm256_castph_si256): Likewise.
7472         (_mm_castps_ph): Likewise.
7473         (_mm256_castps_ph): Likewise.
7474         (_mm_castpd_ph): Likewise.
7475         (_mm256_castpd_ph): Likewise.
7476         (_mm_castsi128_ph): Likewise.
7477         (_mm256_castsi256_ph): Likewise.
7478         (_mm256_castph256_ph128): Likewise.
7479         (_mm256_castph128_ph256): Likewise.
7480         (_mm256_zextph128_ph256): Likewise.
7482 2021-09-17  liuhongt  <hongtao.liu@intel.com>
7484         * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
7485         New intrinsic.
7486         (_mm_mask_cvtsh_ss): Likewise.
7487         (_mm_maskz_cvtsh_ss): Likewise.
7488         (_mm_cvtsh_sd): Likewise.
7489         (_mm_mask_cvtsh_sd): Likewise.
7490         (_mm_maskz_cvtsh_sd): Likewise.
7491         (_mm_cvt_roundsh_ss): Likewise.
7492         (_mm_mask_cvt_roundsh_ss): Likewise.
7493         (_mm_maskz_cvt_roundsh_ss): Likewise.
7494         (_mm_cvt_roundsh_sd): Likewise.
7495         (_mm_mask_cvt_roundsh_sd): Likewise.
7496         (_mm_maskz_cvt_roundsh_sd): Likewise.
7497         (_mm_cvtss_sh): Likewise.
7498         (_mm_mask_cvtss_sh): Likewise.
7499         (_mm_maskz_cvtss_sh): Likewise.
7500         (_mm_cvtsd_sh): Likewise.
7501         (_mm_mask_cvtsd_sh): Likewise.
7502         (_mm_maskz_cvtsd_sh): Likewise.
7503         (_mm_cvt_roundss_sh): Likewise.
7504         (_mm_mask_cvt_roundss_sh): Likewise.
7505         (_mm_maskz_cvt_roundss_sh): Likewise.
7506         (_mm_cvt_roundsd_sh): Likewise.
7507         (_mm_mask_cvt_roundsd_sh): Likewise.
7508         (_mm_maskz_cvt_roundsd_sh): Likewise.
7509         * config/i386/i386-builtin-types.def
7510         (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
7511         V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
7512         V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
7513         V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
7514         * config/i386/i386-builtin.def: Add corrresponding new builtins.
7515         * config/i386/i386-expand.c: Handle new builtin types.
7516         * config/i386/sse.md (VF48_128): New mode iterator.
7517         (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
7518         New.
7519         (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
7520         Ditto.
7522 2021-09-17  liuhongt  <hongtao.liu@intel.com>
7524         * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
7525         New intrinsic.
7526         (_mm512_mask_cvtph_pd): Likewise.
7527         (_mm512_maskz_cvtph_pd): Likewise.
7528         (_mm512_cvt_roundph_pd): Likewise.
7529         (_mm512_mask_cvt_roundph_pd): Likewise.
7530         (_mm512_maskz_cvt_roundph_pd): Likewise.
7531         (_mm512_cvtxph_ps): Likewise.
7532         (_mm512_mask_cvtxph_ps): Likewise.
7533         (_mm512_maskz_cvtxph_ps): Likewise.
7534         (_mm512_cvtx_roundph_ps): Likewise.
7535         (_mm512_mask_cvtx_roundph_ps): Likewise.
7536         (_mm512_maskz_cvtx_roundph_ps): Likewise.
7537         (_mm512_cvtxps_ph): Likewise.
7538         (_mm512_mask_cvtxps_ph): Likewise.
7539         (_mm512_maskz_cvtxps_ph): Likewise.
7540         (_mm512_cvtx_roundps_ph): Likewise.
7541         (_mm512_mask_cvtx_roundps_ph): Likewise.
7542         (_mm512_maskz_cvtx_roundps_ph): Likewise.
7543         (_mm512_cvtpd_ph): Likewise.
7544         (_mm512_mask_cvtpd_ph): Likewise.
7545         (_mm512_maskz_cvtpd_ph): Likewise.
7546         (_mm512_cvt_roundpd_ph): Likewise.
7547         (_mm512_mask_cvt_roundpd_ph): Likewise.
7548         (_mm512_maskz_cvt_roundpd_ph): Likewise.
7549         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
7550         New intrinsic.
7551         (_mm_mask_cvtph_pd): Likewise.
7552         (_mm_maskz_cvtph_pd): Likewise.
7553         (_mm256_cvtph_pd): Likewise.
7554         (_mm256_mask_cvtph_pd): Likewise.
7555         (_mm256_maskz_cvtph_pd): Likewise.
7556         (_mm_cvtxph_ps): Likewise.
7557         (_mm_mask_cvtxph_ps): Likewise.
7558         (_mm_maskz_cvtxph_ps): Likewise.
7559         (_mm256_cvtxph_ps): Likewise.
7560         (_mm256_mask_cvtxph_ps): Likewise.
7561         (_mm256_maskz_cvtxph_ps): Likewise.
7562         (_mm_cvtxps_ph): Likewise.
7563         (_mm_mask_cvtxps_ph): Likewise.
7564         (_mm_maskz_cvtxps_ph): Likewise.
7565         (_mm256_cvtxps_ph): Likewise.
7566         (_mm256_mask_cvtxps_ph): Likewise.
7567         (_mm256_maskz_cvtxps_ph): Likewise.
7568         (_mm_cvtpd_ph): Likewise.
7569         (_mm_mask_cvtpd_ph): Likewise.
7570         (_mm_maskz_cvtpd_ph): Likewise.
7571         (_mm256_cvtpd_ph): Likewise.
7572         (_mm256_mask_cvtpd_ph): Likewise.
7573         (_mm256_maskz_cvtpd_ph): Likewise.
7574         * config/i386/i386-builtin.def: Add corresponding new builtins.
7575         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
7576         * config/i386/i386-expand.c: Handle new builtin types.
7577         * config/i386/sse.md
7578         (VF4_128_8_256): New.
7579         (VF48H_AVX512VL): Ditto.
7580         (ssePHmode): Add HF vector modes.
7581         (castmode): Add new convertable modes.
7582         (qq2phsuff): Ditto.
7583         (ph2pssuffix): New.
7584         (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
7585         (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
7586         (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
7587         (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
7588         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
7589         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
7590         (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
7591         Ditto.
7592         (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
7593         (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
7594         (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
7595         (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
7597 2021-09-17  liuhongt  <hongtao.liu@intel.com>
7599         * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
7600         New intrinsic.
7601         (_mm_cvttsh_u32): Likewise.
7602         (_mm_cvtt_roundsh_i32): Likewise.
7603         (_mm_cvtt_roundsh_u32): Likewise.
7604         (_mm_cvttsh_i64): Likewise.
7605         (_mm_cvttsh_u64): Likewise.
7606         (_mm_cvtt_roundsh_i64): Likewise.
7607         (_mm_cvtt_roundsh_u64): Likewise.
7608         * config/i386/i386-builtin.def: Add corresponding new builtins.
7609         * config/i386/sse.md
7610         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
7611         New.
7613 2021-09-17  liuhongt  <hongtao.liu@intel.com>
7615         * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
7616         New intrinsic.
7617         (_mm512_mask_cvttph_epi32): Likewise.
7618         (_mm512_maskz_cvttph_epi32): Likewise.
7619         (_mm512_cvtt_roundph_epi32): Likewise.
7620         (_mm512_mask_cvtt_roundph_epi32): Likewise.
7621         (_mm512_maskz_cvtt_roundph_epi32): Likewise.
7622         (_mm512_cvttph_epu32): Likewise.
7623         (_mm512_mask_cvttph_epu32): Likewise.
7624         (_mm512_maskz_cvttph_epu32): Likewise.
7625         (_mm512_cvtt_roundph_epu32): Likewise.
7626         (_mm512_mask_cvtt_roundph_epu32): Likewise.
7627         (_mm512_maskz_cvtt_roundph_epu32): Likewise.
7628         (_mm512_cvttph_epi64): Likewise.
7629         (_mm512_mask_cvttph_epi64): Likewise.
7630         (_mm512_maskz_cvttph_epi64): Likewise.
7631         (_mm512_cvtt_roundph_epi64): Likewise.
7632         (_mm512_mask_cvtt_roundph_epi64): Likewise.
7633         (_mm512_maskz_cvtt_roundph_epi64): Likewise.
7634         (_mm512_cvttph_epu64): Likewise.
7635         (_mm512_mask_cvttph_epu64): Likewise.
7636         (_mm512_maskz_cvttph_epu64): Likewise.
7637         (_mm512_cvtt_roundph_epu64): Likewise.
7638         (_mm512_mask_cvtt_roundph_epu64): Likewise.
7639         (_mm512_maskz_cvtt_roundph_epu64): Likewise.
7640         (_mm512_cvttph_epi16): Likewise.
7641         (_mm512_mask_cvttph_epi16): Likewise.
7642         (_mm512_maskz_cvttph_epi16): Likewise.
7643         (_mm512_cvtt_roundph_epi16): Likewise.
7644         (_mm512_mask_cvtt_roundph_epi16): Likewise.
7645         (_mm512_maskz_cvtt_roundph_epi16): Likewise.
7646         (_mm512_cvttph_epu16): Likewise.
7647         (_mm512_mask_cvttph_epu16): Likewise.
7648         (_mm512_maskz_cvttph_epu16): Likewise.
7649         (_mm512_cvtt_roundph_epu16): Likewise.
7650         (_mm512_mask_cvtt_roundph_epu16): Likewise.
7651         (_mm512_maskz_cvtt_roundph_epu16): Likewise.
7652         * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
7653         New intirnsic.
7654         (_mm_mask_cvttph_epi32): Likewise.
7655         (_mm_maskz_cvttph_epi32): Likewise.
7656         (_mm256_cvttph_epi32): Likewise.
7657         (_mm256_mask_cvttph_epi32): Likewise.
7658         (_mm256_maskz_cvttph_epi32): Likewise.
7659         (_mm_cvttph_epu32): Likewise.
7660         (_mm_mask_cvttph_epu32): Likewise.
7661         (_mm_maskz_cvttph_epu32): Likewise.
7662         (_mm256_cvttph_epu32): Likewise.
7663         (_mm256_mask_cvttph_epu32): Likewise.
7664         (_mm256_maskz_cvttph_epu32): Likewise.
7665         (_mm_cvttph_epi64): Likewise.
7666         (_mm_mask_cvttph_epi64): Likewise.
7667         (_mm_maskz_cvttph_epi64): Likewise.
7668         (_mm256_cvttph_epi64): Likewise.
7669         (_mm256_mask_cvttph_epi64): Likewise.
7670         (_mm256_maskz_cvttph_epi64): Likewise.
7671         (_mm_cvttph_epu64): Likewise.
7672         (_mm_mask_cvttph_epu64): Likewise.
7673         (_mm_maskz_cvttph_epu64): Likewise.
7674         (_mm256_cvttph_epu64): Likewise.
7675         (_mm256_mask_cvttph_epu64): Likewise.
7676         (_mm256_maskz_cvttph_epu64): Likewise.
7677         (_mm_cvttph_epi16): Likewise.
7678         (_mm_mask_cvttph_epi16): Likewise.
7679         (_mm_maskz_cvttph_epi16): Likewise.
7680         (_mm256_cvttph_epi16): Likewise.
7681         (_mm256_mask_cvttph_epi16): Likewise.
7682         (_mm256_maskz_cvttph_epi16): Likewise.
7683         (_mm_cvttph_epu16): Likewise.
7684         (_mm_mask_cvttph_epu16): Likewise.
7685         (_mm_maskz_cvttph_epu16): Likewise.
7686         (_mm256_cvttph_epu16): Likewise.
7687         (_mm256_mask_cvttph_epu16): Likewise.
7688         (_mm256_maskz_cvttph_epu16): Likewise.
7689         * config/i386/i386-builtin.def: Add new builtins.
7690         * config/i386/sse.md
7691         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
7692         New.
7693         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
7694         (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
7695         (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
7696         (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
7698 2021-09-17  liuhongt  <hongtao.liu@intel.com>
7700         * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
7701         (_mm_cvtsh_u32): Likewise.
7702         (_mm_cvt_roundsh_i32): Likewise.
7703         (_mm_cvt_roundsh_u32): Likewise.
7704         (_mm_cvtsh_i64): Likewise.
7705         (_mm_cvtsh_u64): Likewise.
7706         (_mm_cvt_roundsh_i64): Likewise.
7707         (_mm_cvt_roundsh_u64): Likewise.
7708         (_mm_cvti32_sh): Likewise.
7709         (_mm_cvtu32_sh): Likewise.
7710         (_mm_cvt_roundi32_sh): Likewise.
7711         (_mm_cvt_roundu32_sh): Likewise.
7712         (_mm_cvti64_sh): Likewise.
7713         (_mm_cvtu64_sh): Likewise.
7714         (_mm_cvt_roundi64_sh): Likewise.
7715         (_mm_cvt_roundu64_sh): Likewise.
7716         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
7717         * config/i386/i386-builtin.def: Add corresponding new builtins.
7718         * config/i386/i386-expand.c (ix86_expand_round_builtin):
7719         Handle new builtin types.
7720         * config/i386/sse.md
7721         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
7722         New define_insn.
7723         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
7724         (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
7726 2021-09-16  Bill Schmidt  <wschmidt@linux.ibm.com>
7728         * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
7729         (altivec_resolve_new_overloaded_builtin): New forward decl.
7730         (rs6000_new_builtin_type_compatible): New function.
7731         (altivec_resolve_overloaded_builtin): Call
7732         altivec_resolve_new_overloaded_builtin.
7733         (altivec_build_new_resolved_builtin): New function.
7734         (altivec_resolve_new_overloaded_builtin): Likewise.
7735         * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
7736         Likewise.
7737         * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
7738         name of rs6000_new_builtin_is_supported.
7740 2021-09-16  Uroš Bizjak  <ubizjak@gmail.com>
7742         * config/i386/i386-protos.h (ix86_decompose_address):
7743         Change return type to bool.
7744         * config/i386/i386.c (ix86_decompose_address): Ditto.
7746 2021-09-16  Tobias Burnus  <tobias@codesourcery.com>
7748         PR target/102353
7749         * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
7750         Added 'build/' to target, use build/%.o rule.
7751         (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
7752         '$(build_exeext)' to target and 'build/' for the *.o files.
7753         (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
7754         with $(RUN_GEN).
7756 2021-09-16  Martin Jambor  <mjambor@suse.cz>
7758         * cgraph.c (cgraph_node::dump): Do not check caller count sums if
7759         the body has been removed.  Remove trailing whitespace.
7761 2021-09-16  Richard Biener  <rguenther@suse.de>
7763         PR middle-end/102360
7764         * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
7765         of non-memory more robust.
7767 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
7769         * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
7770         * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
7771         (leon5_adjust_cost): Increase cost of store with data dependency
7772         on ALU instruction and FPU anti-dependencies.
7773         (sparc_option_override): Add LEON5 costs
7774         (sparc_adjust_cost): Add LEON5 cost adjustments
7775         * config/sparc/sparc.h: Add LEON5
7776         * config/sparc/sparc.md: Include LEON5 scheduling information
7777         * config/sparc/sparc.opt: Add LEON5
7778         * doc/invoke.texi: Add LEON5
7779         * config/sparc/leon5.md: New file.
7781 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
7783         * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
7784         sensitive sequence for B2BST errata workaround.
7786 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
7788         * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
7789         functions with atomic instruction in the UT700 errata workaround.
7791 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
7793         * config/sparc/sparc.c (next_active_non_empty_insn): New function
7794         that returns next active non empty assembly instruction.
7795         (sparc_do_work_around_errata): Use new function.
7797 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
7799         * config/sparc/sparc.c (store_insn_p): Add predicate for store
7800         attributes.
7801         (load_insn_p): Add predicate for load attributes.
7802         (sparc_do_work_around_errata): Use new predicates.
7804 2021-09-16  Andreas Larsson  <andreas@gaisler.com>
7806         * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
7807         LEON and LEON3.
7809 2021-09-16  Martin Liska  <mliska@suse.cz>
7811         * config/mips/netbsd.h: Fix typo in name of a macro.
7813 2021-09-16  liuhongt  <hongtao.liu@intel.com>
7815         PR middle-end/102080
7816         * match.pd: Check mask type when doing cond_op related gimple
7817         simplification.
7818         * tree.c (is_truth_type_for): New function.
7819         * tree.h (is_truth_type_for): New declaration.
7821 2021-09-16  liuhongt  <hongtao.liu@intel.com>
7823         * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
7824         intrinsic.
7825         (_mm512_mask_cvtepi32_ph): Likewise.
7826         (_mm512_maskz_cvtepi32_ph): Likewise.
7827         (_mm512_cvt_roundepi32_ph): Likewise.
7828         (_mm512_mask_cvt_roundepi32_ph): Likewise.
7829         (_mm512_maskz_cvt_roundepi32_ph): Likewise.
7830         (_mm512_cvtepu32_ph): Likewise.
7831         (_mm512_mask_cvtepu32_ph): Likewise.
7832         (_mm512_maskz_cvtepu32_ph): Likewise.
7833         (_mm512_cvt_roundepu32_ph): Likewise.
7834         (_mm512_mask_cvt_roundepu32_ph): Likewise.
7835         (_mm512_maskz_cvt_roundepu32_ph): Likewise.
7836         (_mm512_cvtepi64_ph): Likewise.
7837         (_mm512_mask_cvtepi64_ph): Likewise.
7838         (_mm512_maskz_cvtepi64_ph): Likewise.
7839         (_mm512_cvt_roundepi64_ph): Likewise.
7840         (_mm512_mask_cvt_roundepi64_ph): Likewise.
7841         (_mm512_maskz_cvt_roundepi64_ph): Likewise.
7842         (_mm512_cvtepu64_ph): Likewise.
7843         (_mm512_mask_cvtepu64_ph): Likewise.
7844         (_mm512_maskz_cvtepu64_ph): Likewise.
7845         (_mm512_cvt_roundepu64_ph): Likewise.
7846         (_mm512_mask_cvt_roundepu64_ph): Likewise.
7847         (_mm512_maskz_cvt_roundepu64_ph): Likewise.
7848         (_mm512_cvtepi16_ph): Likewise.
7849         (_mm512_mask_cvtepi16_ph): Likewise.
7850         (_mm512_maskz_cvtepi16_ph): Likewise.
7851         (_mm512_cvt_roundepi16_ph): Likewise.
7852         (_mm512_mask_cvt_roundepi16_ph): Likewise.
7853         (_mm512_maskz_cvt_roundepi16_ph): Likewise.
7854         (_mm512_cvtepu16_ph): Likewise.
7855         (_mm512_mask_cvtepu16_ph): Likewise.
7856         (_mm512_maskz_cvtepu16_ph): Likewise.
7857         (_mm512_cvt_roundepu16_ph): Likewise.
7858         (_mm512_mask_cvt_roundepu16_ph): Likewise.
7859         (_mm512_maskz_cvt_roundepu16_ph): Likewise.
7860         * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
7861         intrinsic.
7862         (_mm_mask_cvtepi32_ph): Likewise.
7863         (_mm_maskz_cvtepi32_ph): Likewise.
7864         (_mm256_cvtepi32_ph): Likewise.
7865         (_mm256_mask_cvtepi32_ph): Likewise.
7866         (_mm256_maskz_cvtepi32_ph): Likewise.
7867         (_mm_cvtepu32_ph): Likewise.
7868         (_mm_mask_cvtepu32_ph): Likewise.
7869         (_mm_maskz_cvtepu32_ph): Likewise.
7870         (_mm256_cvtepu32_ph): Likewise.
7871         (_mm256_mask_cvtepu32_ph): Likewise.
7872         (_mm256_maskz_cvtepu32_ph): Likewise.
7873         (_mm_cvtepi64_ph): Likewise.
7874         (_mm_mask_cvtepi64_ph): Likewise.
7875         (_mm_maskz_cvtepi64_ph): Likewise.
7876         (_mm256_cvtepi64_ph): Likewise.
7877         (_mm256_mask_cvtepi64_ph): Likewise.
7878         (_mm256_maskz_cvtepi64_ph): Likewise.
7879         (_mm_cvtepu64_ph): Likewise.
7880         (_mm_mask_cvtepu64_ph): Likewise.
7881         (_mm_maskz_cvtepu64_ph): Likewise.
7882         (_mm256_cvtepu64_ph): Likewise.
7883         (_mm256_mask_cvtepu64_ph): Likewise.
7884         (_mm256_maskz_cvtepu64_ph): Likewise.
7885         (_mm_cvtepi16_ph): Likewise.
7886         (_mm_mask_cvtepi16_ph): Likewise.
7887         (_mm_maskz_cvtepi16_ph): Likewise.
7888         (_mm256_cvtepi16_ph): Likewise.
7889         (_mm256_mask_cvtepi16_ph): Likewise.
7890         (_mm256_maskz_cvtepi16_ph): Likewise.
7891         (_mm_cvtepu16_ph): Likewise.
7892         (_mm_mask_cvtepu16_ph): Likewise.
7893         (_mm_maskz_cvtepu16_ph): Likewise.
7894         (_mm256_cvtepu16_ph): Likewise.
7895         (_mm256_mask_cvtepu16_ph): Likewise.
7896         (_mm256_maskz_cvtepu16_ph): Likewise.
7897         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
7898         * config/i386/i386-builtin.def: Add corresponding new builtins.
7899         * config/i386/i386-expand.c
7900         (ix86_expand_args_builtin): Handle new builtin types.
7901         (ix86_expand_round_builtin): Ditto.
7902         * config/i386/i386-modes.def: Declare V2HF and V6HF.
7903         * config/i386/sse.md (VI2H_AVX512VL): New.
7904         (qq2phsuff): Ditto.
7905         (sseintvecmode): Add HF vector modes.
7906         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
7907         New.
7908         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
7909         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
7910         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
7911         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
7912         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
7913         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
7914         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
7915         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
7916         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
7917         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
7918         * config/i386/subst.md (round_qq2phsuff): New subst_attr.
7920 2021-09-16  liuhongt  <hongtao.liu@intel.com>
7922         * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
7923         New intrinsic/
7924         (_mm512_mask_cvtph_epi32): Likewise.
7925         (_mm512_maskz_cvtph_epi32): Likewise.
7926         (_mm512_cvt_roundph_epi32): Likewise.
7927         (_mm512_mask_cvt_roundph_epi32): Likewise.
7928         (_mm512_maskz_cvt_roundph_epi32): Likewise.
7929         (_mm512_cvtph_epu32): Likewise.
7930         (_mm512_mask_cvtph_epu32): Likewise.
7931         (_mm512_maskz_cvtph_epu32): Likewise.
7932         (_mm512_cvt_roundph_epu32): Likewise.
7933         (_mm512_mask_cvt_roundph_epu32): Likewise.
7934         (_mm512_maskz_cvt_roundph_epu32): Likewise.
7935         (_mm512_cvtph_epi64): Likewise.
7936         (_mm512_mask_cvtph_epi64): Likewise.
7937         (_mm512_maskz_cvtph_epi64): Likewise.
7938         (_mm512_cvt_roundph_epi64): Likewise.
7939         (_mm512_mask_cvt_roundph_epi64): Likewise.
7940         (_mm512_maskz_cvt_roundph_epi64): Likewise.
7941         (_mm512_cvtph_epu64): Likewise.
7942         (_mm512_mask_cvtph_epu64): Likewise.
7943         (_mm512_maskz_cvtph_epu64): Likewise.
7944         (_mm512_cvt_roundph_epu64): Likewise.
7945         (_mm512_mask_cvt_roundph_epu64): Likewise.
7946         (_mm512_maskz_cvt_roundph_epu64): Likewise.
7947         (_mm512_cvtph_epi16): Likewise.
7948         (_mm512_mask_cvtph_epi16): Likewise.
7949         (_mm512_maskz_cvtph_epi16): Likewise.
7950         (_mm512_cvt_roundph_epi16): Likewise.
7951         (_mm512_mask_cvt_roundph_epi16): Likewise.
7952         (_mm512_maskz_cvt_roundph_epi16): Likewise.
7953         (_mm512_cvtph_epu16): Likewise.
7954         (_mm512_mask_cvtph_epu16): Likewise.
7955         (_mm512_maskz_cvtph_epu16): Likewise.
7956         (_mm512_cvt_roundph_epu16): Likewise.
7957         (_mm512_mask_cvt_roundph_epu16): Likewise.
7958         (_mm512_maskz_cvt_roundph_epu16): Likewise.
7959         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
7960         New intrinsic.
7961         (_mm_mask_cvtph_epi32): Likewise.
7962         (_mm_maskz_cvtph_epi32): Likewise.
7963         (_mm256_cvtph_epi32): Likewise.
7964         (_mm256_mask_cvtph_epi32): Likewise.
7965         (_mm256_maskz_cvtph_epi32): Likewise.
7966         (_mm_cvtph_epu32): Likewise.
7967         (_mm_mask_cvtph_epu32): Likewise.
7968         (_mm_maskz_cvtph_epu32): Likewise.
7969         (_mm256_cvtph_epu32): Likewise.
7970         (_mm256_mask_cvtph_epu32): Likewise.
7971         (_mm256_maskz_cvtph_epu32): Likewise.
7972         (_mm_cvtph_epi64): Likewise.
7973         (_mm_mask_cvtph_epi64): Likewise.
7974         (_mm_maskz_cvtph_epi64): Likewise.
7975         (_mm256_cvtph_epi64): Likewise.
7976         (_mm256_mask_cvtph_epi64): Likewise.
7977         (_mm256_maskz_cvtph_epi64): Likewise.
7978         (_mm_cvtph_epu64): Likewise.
7979         (_mm_mask_cvtph_epu64): Likewise.
7980         (_mm_maskz_cvtph_epu64): Likewise.
7981         (_mm256_cvtph_epu64): Likewise.
7982         (_mm256_mask_cvtph_epu64): Likewise.
7983         (_mm256_maskz_cvtph_epu64): Likewise.
7984         (_mm_cvtph_epi16): Likewise.
7985         (_mm_mask_cvtph_epi16): Likewise.
7986         (_mm_maskz_cvtph_epi16): Likewise.
7987         (_mm256_cvtph_epi16): Likewise.
7988         (_mm256_mask_cvtph_epi16): Likewise.
7989         (_mm256_maskz_cvtph_epi16): Likewise.
7990         (_mm_cvtph_epu16): Likewise.
7991         (_mm_mask_cvtph_epu16): Likewise.
7992         (_mm_maskz_cvtph_epu16): Likewise.
7993         (_mm256_cvtph_epu16): Likewise.
7994         (_mm256_mask_cvtph_epu16): Likewise.
7995         (_mm256_maskz_cvtph_epu16): Likewise.
7996         * config/i386/i386-builtin-types.def: Add new builtin types.
7997         * config/i386/i386-builtin.def: Add new builtins.
7998         * config/i386/i386-expand.c
7999         (ix86_expand_args_builtin): Handle new builtin types.
8000         (ix86_expand_round_builtin): Ditto.
8001         * config/i386/sse.md (sseintconvert): New.
8002         (ssePHmode): Ditto.
8003         (UNSPEC_US_FIX_NOTRUNC): Ditto.
8004         (sseintconvertsignprefix): Ditto.
8005         (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
8006         Ditto.
8008 2021-09-16  liuhongt  <hongtao.liu@intel.com>
8010         * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
8011         New intrinsic.
8012         (_mm_cvtsi128_si16): Likewise.
8013         (_mm_mask_load_sh): Likewise.
8014         (_mm_maskz_load_sh): Likewise.
8015         (_mm_mask_store_sh): Likewise.
8016         (_mm_move_sh): Likewise.
8017         (_mm_mask_move_sh): Likewise.
8018         (_mm_maskz_move_sh): Likewise.
8019         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8020         * config/i386/i386-builtin.def: Add corresponding new builtins.
8021         * config/i386/i386-expand.c
8022         (ix86_expand_special_args_builtin): Handle new builtin types.
8023         (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
8024         * config/i386/sse.md (VI2F): New mode iterator.
8025         (vec_set<mode>_0): Use new mode iterator.
8026         (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
8027         (avx512f_store<mode>_mask): Ditto.
8029 2021-09-16  Kewen Lin  <linkw@linux.ibm.com>
8031         * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
8033 2021-09-15  David Edelsohn  <dje.gcc@gmail.com>
8035         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
8036         Proceed if no symbol summary or the symbol alias flag is false.
8038 2021-09-15  Jakub Jelinek  <jakub@redhat.com>
8040         PR c++/88578
8041         PR c++/102295
8042         * varasm.c (output_constructor_regular_field): Instead of assertion
8043         that array_size_for_constructor result is equal to size of
8044         TREE_TYPE (local->val) in bytes, assert that the type size is greater
8045         or equal to array_size_for_constructor result and use type size as
8046         fieldsize.
8048 2021-09-15  Martin Liska  <mliska@suse.cz>
8050         PR target/102351
8051         * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
8053 2021-09-15  Martin Liska  <mliska@suse.cz>
8055         PR target/102349
8056         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
8057         Check that we have a symbol summary for a symbol.
8059 2021-09-15  Richard Biener  <rguenther@suse.de>
8061         PR target/102348
8062         * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
8063         to inherit from elfos.h
8065 2021-09-15  liuhongt  <hongtao.liu@intel.com>
8067         PR target/102327
8068         * config/i386/i386-expand.c
8069         (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
8070         HFmodes.
8071         (ix86_expand_vector_set): Use blendw instead of pinsrw.
8072         * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
8073         AVX512FP16 which supports 16bit vector load.
8074         * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
8075         Rename to ..
8076         (avx512bw_interleave_high<mode><mask_name>): .. this, and
8077         extend to V32HFmode.
8078         (avx2_interleave_highv16hi<mask_name>): Rename to ..
8079         (avx2_interleave_high<mode><mask_name>): .. this, and extend
8080         to V16HFmode.
8081         (vec_interleave_highv8hi<mask_name>): Rename to ..
8082         (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
8083         (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
8084         Rename to ..
8085         (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
8086         this, and extend to V32HFmode.
8087         (avx2_interleave_lowv16hi<mask_name>): Rename to ..
8088         (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
8089         (vec_interleave_lowv8hi<mask_name>): Rename to ..
8090         (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
8091         (sse4_1_pblendw): Rename to ..
8092         (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
8093         (avx2_pblendph): New define_expand.
8094         (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
8095         sseintmodesuffix instead of ssemodesuffix.
8096         (blendsuf): New mode attr.
8098 2021-09-15  Richard Biener  <rguenther@suse.de>
8100         * tree-vectorizer.h (dr_misalignment): Move out of line.
8101         (dr_target_alignment): New.
8102         (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
8103         (set_dr_target_alignment): New.
8104         (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
8105         * tree-vect-data-refs.c (dr_misalignment): Compute and
8106         return the group members misalignment.
8107         (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
8108         (vect_analyze_data_refs_alignment): Compute alignment only
8109         for the first element of a DR group.
8110         (vect_slp_analyze_node_alignment): Likewise.
8112 2021-09-15  Hongyu Wang  <hongyu.wang@intel.com>
8114         * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
8115         * config/i386/avx512fp16vlintrin.h: Likewise.
8116         * config/i386/i386-builtin.def: Adjust builtin name and
8117         enumeration to match AVX512F style.
8119 2021-09-15  Richard Biener  <rguenther@suse.de>
8121         PR tree-optimization/102318
8122         * tree-vect-loop.c (vect_transform_cycle_phi): Revert
8123         previous change and do the mode conversion separately from
8124         the sign conversion.
8126 2021-09-15  Hongtao Liu  <hongtao.liu@intel.com>
8127             Peter Cordes  <peter@cordes.ca>
8129         PR target/91103
8130         * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
8131         (*vec_extract<mode><ssescalarmodelower>_valign): Output
8132         vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
8133         0.
8135 2021-09-15  Richard Biener  <rguenther@suse.de>
8137         * config.gcc: Remove vax-*-openbsd* configuration.
8139 2021-09-15  Richard Biener  <rguenther@suse.de>
8141         * config.gcc: Remove m68k-openbsd.
8143 2021-09-15  Max Filippov  <jcmvbkbc@gmail.com>
8145         PR target/102336
8146         * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
8148 2021-09-14  Peter Bergner  <bergner@linux.ibm.com>
8150         * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
8151         (unspecv): Add UNSPECV_MMA_XXSETACCZ.
8152         (*mma_xxsetaccz): Delete.
8153         (mma_xxsetaccz): Change to define_insn.  Remove operand 1.
8154         Use UNSPECV_MMA_XXSETACCZ.  Update comment.
8155         * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
8157 2021-09-14  Iain Sandoe  <iain@sandoe.co.uk>
8159         * Makefile.in: Remove variables related to applying no-PIE
8160         to the exes on $build.
8161         * configure: Regenerate.
8162         * configure.ac: Remove configuration related to applying
8163         no-PIE to the exes on $build.
8165 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
8167         * config/arc/arc.md (doloop_end): Add missing mode.
8168         (loop_end): Likewise.
8170 2021-09-14  Jakub Jelinek  <jakub@redhat.com>
8172         * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
8173         it to recursive calls, for depth above 7 just gimplify or return.
8174         Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
8175         __builtin_clear_padding and TARGET_EXPR.
8176         (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
8178 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8180         * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
8181         New intrinsic.
8182         (_mm_mask_fpclass_sh_mask): Likewise.
8183         (_mm512_mask_fpclass_ph_mask): Likewise.
8184         (_mm512_fpclass_ph_mask): Likewise.
8185         (_mm_getexp_sh): Likewise.
8186         (_mm_mask_getexp_sh): Likewise.
8187         (_mm_maskz_getexp_sh): Likewise.
8188         (_mm512_getexp_ph): Likewise.
8189         (_mm512_mask_getexp_ph): Likewise.
8190         (_mm512_maskz_getexp_ph): Likewise.
8191         (_mm_getexp_round_sh): Likewise.
8192         (_mm_mask_getexp_round_sh): Likewise.
8193         (_mm_maskz_getexp_round_sh): Likewise.
8194         (_mm512_getexp_round_ph): Likewise.
8195         (_mm512_mask_getexp_round_ph): Likewise.
8196         (_mm512_maskz_getexp_round_ph): Likewise.
8197         (_mm_getmant_sh): Likewise.
8198         (_mm_mask_getmant_sh): Likewise.
8199         (_mm_maskz_getmant_sh): Likewise.
8200         (_mm512_getmant_ph): Likewise.
8201         (_mm512_mask_getmant_ph): Likewise.
8202         (_mm512_maskz_getmant_ph): Likewise.
8203         (_mm_getmant_round_sh): Likewise.
8204         (_mm_mask_getmant_round_sh): Likewise.
8205         (_mm_maskz_getmant_round_sh): Likewise.
8206         (_mm512_getmant_round_ph): Likewise.
8207         (_mm512_mask_getmant_round_ph): Likewise.
8208         (_mm512_maskz_getmant_round_ph): Likewise.
8209         * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
8210         New intrinsic.
8211         (_mm_fpclass_ph_mask): Likewise.
8212         (_mm256_mask_fpclass_ph_mask): Likewise.
8213         (_mm256_fpclass_ph_mask): Likewise.
8214         (_mm256_getexp_ph): Likewise.
8215         (_mm256_mask_getexp_ph): Likewise.
8216         (_mm256_maskz_getexp_ph): Likewise.
8217         (_mm_getexp_ph): Likewise.
8218         (_mm_mask_getexp_ph): Likewise.
8219         (_mm_maskz_getexp_ph): Likewise.
8220         (_mm256_getmant_ph): Likewise.
8221         (_mm256_mask_getmant_ph): Likewise.
8222         (_mm256_maskz_getmant_ph): Likewise.
8223         (_mm_getmant_ph): Likewise.
8224         (_mm_mask_getmant_ph): Likewise.
8225         (_mm_maskz_getmant_ph): Likewise.
8226         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8227         * config/i386/i386-builtin.def: Add corresponding new builtins.
8228         * config/i386/i386-expand.c
8229         (ix86_expand_args_builtin): Handle new builtin types.
8230         (ix86_expand_round_builtin): Ditto.
8231         * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
8232         (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
8233         to support HF vector modes.
8234         (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
8235         Ditto.
8236         (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
8237         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
8238         (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
8239         (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
8240         Ditto.
8242 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8244         * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
8245         New intrinsic.
8246         (_mm512_mask_reduce_ph): Likewise.
8247         (_mm512_maskz_reduce_ph): Likewise.
8248         (_mm512_reduce_round_ph): Likewise.
8249         (_mm512_mask_reduce_round_ph): Likewise.
8250         (_mm512_maskz_reduce_round_ph): Likewise.
8251         (_mm_reduce_sh): Likewise.
8252         (_mm_mask_reduce_sh): Likewise.
8253         (_mm_maskz_reduce_sh): Likewise.
8254         (_mm_reduce_round_sh): Likewise.
8255         (_mm_mask_reduce_round_sh): Likewise.
8256         (_mm_maskz_reduce_round_sh): Likewise.
8257         (_mm512_roundscale_ph): Likewise.
8258         (_mm512_mask_roundscale_ph): Likewise.
8259         (_mm512_maskz_roundscale_ph): Likewise.
8260         (_mm512_roundscale_round_ph): Likewise.
8261         (_mm512_mask_roundscale_round_ph): Likewise.
8262         (_mm512_maskz_roundscale_round_ph): Likewise.
8263         (_mm_roundscale_sh): Likewise.
8264         (_mm_mask_roundscale_sh): Likewise.
8265         (_mm_maskz_roundscale_sh): Likewise.
8266         (_mm_roundscale_round_sh): Likewise.
8267         (_mm_mask_roundscale_round_sh): Likewise.
8268         (_mm_maskz_roundscale_round_sh): Likewise.
8269         * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
8270         New intrinsic.
8271         (_mm_mask_reduce_ph): Likewise.
8272         (_mm_maskz_reduce_ph): Likewise.
8273         (_mm256_reduce_ph): Likewise.
8274         (_mm256_mask_reduce_ph): Likewise.
8275         (_mm256_maskz_reduce_ph): Likewise.
8276         (_mm_roundscale_ph): Likewise.
8277         (_mm_mask_roundscale_ph): Likewise.
8278         (_mm_maskz_roundscale_ph): Likewise.
8279         (_mm256_roundscale_ph): Likewise.
8280         (_mm256_mask_roundscale_ph): Likewise.
8281         (_mm256_maskz_roundscale_ph): Likewise.
8282         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8283         * config/i386/i386-builtin.def: Add corresponding new builtins.
8284         * config/i386/i386-expand.c
8285         (ix86_expand_args_builtin): Handle new builtin types.
8286         (ix86_expand_round_builtin): Ditto.
8287         * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
8288         Renamed to ...
8289         (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
8290         ... this, and adjust for round operands.
8291         (reduces<mode><mask_scalar_name>): Likewise, with ...
8292         (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
8293         ... this.
8294         (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
8295         Adjust for HF vector modes.
8296         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8297         Ditto.
8298         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8300 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8302         * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
8303         New intrinsic.
8304         (_mm512_mask_rcp_ph): Likewise.
8305         (_mm512_maskz_rcp_ph): Likewise.
8306         (_mm_rcp_sh): Likewise.
8307         (_mm_mask_rcp_sh): Likewise.
8308         (_mm_maskz_rcp_sh): Likewise.
8309         (_mm512_scalef_ph): Likewise.
8310         (_mm512_mask_scalef_ph): Likewise.
8311         (_mm512_maskz_scalef_ph): Likewise.
8312         (_mm512_scalef_round_ph): Likewise.
8313         (_mm512_mask_scalef_round_ph): Likewise.
8314         (_mm512_maskz_scalef_round_ph): Likewise.
8315         (_mm_scalef_sh): Likewise.
8316         (_mm_mask_scalef_sh): Likewise.
8317         (_mm_maskz_scalef_sh): Likewise.
8318         (_mm_scalef_round_sh): Likewise.
8319         (_mm_mask_scalef_round_sh): Likewise.
8320         (_mm_maskz_scalef_round_sh): Likewise.
8321         * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
8322         New intrinsic.
8323         (_mm256_rcp_ph): Likewise.
8324         (_mm_mask_rcp_ph): Likewise.
8325         (_mm256_mask_rcp_ph): Likewise.
8326         (_mm_maskz_rcp_ph): Likewise.
8327         (_mm256_maskz_rcp_ph): Likewise.
8328         (_mm_scalef_ph): Likewise.
8329         (_mm256_scalef_ph): Likewise.
8330         (_mm_mask_scalef_ph): Likewise.
8331         (_mm256_mask_scalef_ph): Likewise.
8332         (_mm_maskz_scalef_ph): Likewise.
8333         (_mm256_maskz_scalef_ph): Likewise.
8334         * config/i386/i386-builtin.def: Add new builtins.
8335         * config/i386/sse.md (VFH_AVX512VL): New.
8336         (avx512fp16_rcp<mode>2<mask_name>): Ditto.
8337         (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
8338         (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
8339         Adjust to support HF vector modes.
8340         (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
8342 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8344         * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
8345         New intrinsic.
8346         (_mm512_mask_sqrt_ph): Likewise.
8347         (_mm512_maskz_sqrt_ph): Likewise.
8348         (_mm512_sqrt_round_ph): Likewise.
8349         (_mm512_mask_sqrt_round_ph): Likewise.
8350         (_mm512_maskz_sqrt_round_ph): Likewise.
8351         (_mm512_rsqrt_ph): Likewise.
8352         (_mm512_mask_rsqrt_ph): Likewise.
8353         (_mm512_maskz_rsqrt_ph): Likewise.
8354         (_mm_rsqrt_sh): Likewise.
8355         (_mm_mask_rsqrt_sh): Likewise.
8356         (_mm_maskz_rsqrt_sh): Likewise.
8357         (_mm_sqrt_sh): Likewise.
8358         (_mm_mask_sqrt_sh): Likewise.
8359         (_mm_maskz_sqrt_sh): Likewise.
8360         (_mm_sqrt_round_sh): Likewise.
8361         (_mm_mask_sqrt_round_sh): Likewise.
8362         (_mm_maskz_sqrt_round_sh): Likewise.
8363         * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
8364         (_mm256_sqrt_ph): Likewise.
8365         (_mm_mask_sqrt_ph): Likewise.
8366         (_mm256_mask_sqrt_ph): Likewise.
8367         (_mm_maskz_sqrt_ph): Likewise.
8368         (_mm256_maskz_sqrt_ph): Likewise.
8369         (_mm_rsqrt_ph): Likewise.
8370         (_mm256_rsqrt_ph): Likewise.
8371         (_mm_mask_rsqrt_ph): Likewise.
8372         (_mm256_mask_rsqrt_ph): Likewise.
8373         (_mm_maskz_rsqrt_ph): Likewise.
8374         (_mm256_maskz_rsqrt_ph): Likewise.
8375         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8376         * config/i386/i386-builtin.def: Add corresponding new builtins.
8377         * config/i386/i386-expand.c
8378         (ix86_expand_args_builtin): Handle new builtins.
8379         (ix86_expand_round_builtin): Ditto.
8380         * config/i386/sse.md (VF_AVX512FP16VL): New.
8381         (sqrt<mode>2): Adjust for HF vector modes.
8382         (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
8383         (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
8384         Likewise.
8385         (<sse>_rsqrt<mode>2<mask_name>): New.
8386         (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
8388 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
8390         PR bootstrap/101574
8391         * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
8392         'RESERVED_LOCATION_P' locations.
8393         * warning-control.cc (get_nowarn_spec, suppress_warning)
8394         (copy_warning): Likewise.
8396 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
8398         * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
8399         (typedef key_type_t): ... this.  Remove.
8400         (nowarn_map): Document.
8401         * diagnostic-spec.c (nowarn_map): Likewise.
8402         * warning-control.cc (convert_to_key): Evolve functions into...
8403         (get_location): ... these.  Adjust all users.
8405 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
8407         * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
8409 2021-09-13  Jason Merrill  <jason@redhat.com>
8411         * params.opt: Add destructive-interference-size and
8412         constructive-interference-size.
8413         * doc/invoke.texi: Document them.
8414         * config/aarch64/aarch64.c (aarch64_override_options_internal):
8415         Set them.
8416         * config/arm/arm.c (arm_option_override): Set them.
8417         * config/i386/i386-options.c (ix86_option_override_internal):
8418         Set them.
8420 2021-09-13  Martin Liska  <mliska@suse.cz>
8421             H.J. Lu  <hjl.tools@gmail.com>
8423         PR target/101696
8424         * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
8425         for x86-64 micro levels for __builtin_cpu_supports.
8426         * common/config/i386/i386-cpuinfo.h (enum feature_priority):
8427         Add priorities for the micro-arch levels.
8428         (enum processor_features): Add new features.
8429         * common/config/i386/i386-isas.h: Add micro-arch features.
8430         * config/i386/i386-builtins.c (get_builtin_code_for_version):
8431         Support the micro-arch levels by callsing
8432         __builtin_cpu_supports.
8433         * doc/extend.texi: Document that the levels are support by
8434           __builtin_cpu_supports.
8436 2021-09-13  Andrew Pinski  <apinski@marvell.com>
8438         PR target/95969
8439         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
8440         New function.
8441         (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
8442         (aarch64_general_gimple_fold_builtin): Likewise.
8444 2021-09-13  Andrew Pinski  <apinski@marvell.com>
8446         * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
8447         to the Unsupported targets list.
8448         Remove support for m32r-*-linux* and m32rle-*-linux*.
8449         * config/m32r/linux.h: Removed.
8450         * config/m32r/t-linux: Removed.
8452 2021-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8454         PR target/102252
8455         * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
8456         register index for SVE predicate modes.
8458 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
8460         * tree-ssa-threadbackward.c
8461         (back_threader_profitability::profitable_path_p): Remove FSM
8462         references.
8463         (back_threader_registry::register_path): Same.
8464         * tree-ssa-threadedge.c
8465         (jump_threader::simplify_control_stmt_condition): Same.
8466         * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
8467         Add backedge_threads argument.
8468         (fwd_jt_path_registry::fwd_jt_path_registry): Pass
8469         backedge_threads argument.
8470         (back_jt_path_registry::back_jt_path_registry):  Same.
8471         (dump_jump_thread_path): Adjust for FSM removal.
8472         (back_jt_path_registry::rewire_first_differing_edge): Same.
8473         (back_jt_path_registry::adjust_paths_after_duplication): Same.
8474         (back_jt_path_registry::update_cfg): Same.
8475         (jt_path_registry::register_jump_thread): Same.
8476         * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
8477         EDGE_FSM_THREAD.
8478         (class back_jt_path_registry): Add backedge_threads to
8479         constructor.
8481 2021-09-13  Martin Liska  <mliska@suse.cz>
8483         PR c++/101331
8484         * asan.h (sanitize_coverage_p): Handle when fn == NULL.
8486 2021-09-13  H.J. Lu  <hjl.tools@gmail.com>
8488         PR target/101935
8489         * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
8490         (TARGET_AVX256_STORE_BY_PIECES): Likewise.
8491         (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
8492         TARGET_AVX256_STORE_BY_PIECES instead of
8493         TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
8494         TARGET_AVX256_SPLIT_UNALIGNED_STORE.
8495         (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
8496         of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
8497         * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
8498         (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
8500 2021-09-13  liuhongt  <hongtao.liu@intel.com>
8502         PR bootstrap/102302
8503         * expmed.c (extract_bit_field_using_extv): Use
8504         gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
8506 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
8508         * Makefile.in (OBJS): Add value-pointer-equiv.o.
8509         * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
8510         value-pointer-equiv.*.
8511         (ssa_equiv_stack::ssa_equiv_stack): Same.
8512         (ssa_equiv_stack::enter): Same.
8513         (ssa_equiv_stack::leave): Same.
8514         (ssa_equiv_stack::push_replacement): Same.
8515         (ssa_equiv_stack::get_replacement): Same.
8516         (is_pointer_ssa): Same.
8517         (class pointer_equiv_analyzer): Same.
8518         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
8519         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
8520         (pointer_equiv_analyzer::set_global_equiv): Same.
8521         (pointer_equiv_analyzer::set_cond_equiv): Same.
8522         (pointer_equiv_analyzer::get_equiv): Same.
8523         (pointer_equiv_analyzer::enter): Same.
8524         (pointer_equiv_analyzer::leave): Same.
8525         (pointer_equiv_analyzer::get_equiv_expr): Same.
8526         (pta_valueize): Same.
8527         (pointer_equiv_analyzer::visit_stmt): Same.
8528         (pointer_equiv_analyzer::visit_edge): Same.
8529         (hybrid_folder::value_of_expr): Same.
8530         (hybrid_folder::value_on_edge): Same.
8531         * value-pointer-equiv.cc: New file.
8532         * value-pointer-equiv.h: New file.
8534 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
8536         PR target/102125
8537         * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
8538         memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
8540 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
8542         PR target/102125
8543         * config/arm/arm.md (movmisaligndi): New define_expand.
8544         * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
8546 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
8548         PR target/102125
8549         * emit-rtl.c (gen_highpart): Use adjust_address to handle
8550         MEM rather than calling simplify_gen_subreg.
8552 2021-09-13  Jan-Benedict Glaw  <jbglaw@ług-owl.de>
8554         * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
8555         define into a block.
8557 2021-09-13  Richard Biener  <rguenther@suse.de>
8559         * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
8560         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
8561         change based on DARWIN_PREFER_DWARF not being defined.
8563 2021-09-13  Richard Biener  <rguenther@suse.de>
8565         * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
8566         to inherit from elfos.h
8568 2021-09-13  Richard Biener  <rguenther@suse.de>
8570         * config.gcc: Add cr16-*-* to the list of obsoleted targets.
8572 2021-09-13  Richard Biener  <rguenther@suse.de>
8574         * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
8575         override, pick up DWARF2_DEBUG define from elfos.h
8577 2021-09-13  Richard Biener  <rguenther@suse.de>
8579         * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
8580         DWARF2_DEBUG.
8582 2021-09-13  Richard Biener  <rguenther@suse.de>
8584         * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
8585         DWARF2_DEBUG.
8587 2021-09-13  Richard Biener  <rguenther@suse.de>
8589         * config/i386/cygming.h: Always default to DWARF2 debugging.
8590         Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
8591         already.
8592         * doc/install.texi: Document binutils 2.16 as minimum
8593         requirement for mingw.
8595 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
8597         * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
8598         nstmts, nloads and extra_ctor_cost.
8599         (rs6000_density_test): Add load density related heuristics.  Do
8600         extra costing on vector construction statements if need.
8601         (rs6000_init_cost): Init new members.
8602         (rs6000_update_target_cost_per_stmt): New function.
8603         (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
8604         rs6000_update_target_cost_per_stmt and call it.
8606 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
8608         * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
8609         (rs6000_init_cost): Adjust.
8611 2021-09-13  liuhongt  <hongtao.liu@intel.com>
8613         * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
8614         (UNSPEC_XORSIGN): Ditto.
8616 2021-09-12  Roger Sayle  <roger@nextmovesoftware.com>
8618         * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
8619         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
8620         subreg.
8622 2021-09-11  Aldy Hernandez  <aldyh@redhat.com>
8624         * tree-ssa-threadbackward.c (class back_threader_registry): Use
8625         back_jt_path_registry.
8626         * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
8627         fwd_jt_path_registry.
8628         * tree-ssa-threadedge.h (class jump_threader): Same..
8629         * tree-ssa-threadupdate.c
8630         (jump_thread_path_registry::jump_thread_path_registry): Rename...
8631         (jt_path_registry::jt_path_registry): ...to this.
8632         (jump_thread_path_registry::~jump_thread_path_registry): Rename...
8633         (jt_path_registry::~jt_path_registry): ...this.
8634         (fwd_jt_path_registry::fwd_jt_path_registry): New.
8635         (fwd_jt_path_registry::~fwd_jt_path_registry): New.
8636         (jump_thread_path_registry::allocate_thread_edge): Rename...
8637         (jt_path_registry::allocate_thread_edge): ...to this.
8638         (jump_thread_path_registry::allocate_thread_path): Rename...
8639         (jt_path_registry::allocate_thread_path): ...to this.
8640         (jump_thread_path_registry::lookup_redirection_data): Rename...
8641         (fwd_jt_path_registry::lookup_redirection_data): ...to this.
8642         (jump_thread_path_registry::thread_block_1): Rename...
8643         (fwd_jt_path_registry::thread_block_1): ...to this.
8644         (jump_thread_path_registry::thread_block): Rename...
8645         (fwd_jt_path_registry::thread_block): ...to this.
8646         (jt_path_registry::thread_through_loop_header): Rename...
8647         (fwd_jt_path_registry::thread_through_loop_header): ...to this.
8648         (jump_thread_path_registry::mark_threaded_blocks): Rename...
8649         (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
8650         (jump_thread_path_registry::debug_path): Rename...
8651         (jt_path_registry::debug_path): ...to this.
8652         (jump_thread_path_registry::dump): Rename...
8653         (jt_path_registry::debug): ...to this.
8654         (jump_thread_path_registry::rewire_first_differing_edge): Rename...
8655         (back_jt_path_registry::rewire_first_differing_edge): ...to this.
8656         (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
8657         (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
8658         (jump_thread_path_registry::duplicate_thread_path): Rename...
8659         (back_jt_path_registry::duplicate_thread_path): ...to this.  Also,
8660         drop ill-formed candidates.
8661         (jump_thread_path_registry::remove_jump_threads_including): Rename...
8662         (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
8663         (jt_path_registry::thread_through_all_blocks): New.
8664         (back_jt_path_registry::update_cfg): New.
8665         (fwd_jt_path_registry::update_cfg): New.
8666         (jump_thread_path_registry::register_jump_thread): Rename...
8667         (jt_path_registry::register_jump_thread): ...to this.
8668         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
8669         Abstract to...
8670         (class jt_path_registry): ...here.
8671         (class fwd_jt_path_registry): New.
8672         (class back_jt_path_registry): New.
8674 2021-09-10  liuhongt  <hongtao.liu@intel.com>
8676         Revert:
8677         2021-09-01  liuhongt  <hongtao.liu@intel.com>
8679         * emit-rtl.c (validate_subreg): Get rid of all float-int
8680         special cases.
8682 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
8684         * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
8685         OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
8686         OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
8687         OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
8688         OMP_FAIL_MEMORY_ORDER_MASK enumerators.
8689         (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
8690         * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
8691         dump_gimple_omp_atomic_store): Print [weak] for weak atomic
8692         load/store.
8693         * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
8694         to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
8695         GF_OMP_ATOMIC_WEAK.
8696         (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
8697         functions.
8698         * tree.h (OMP_ATOMIC_WEAK): Define.
8699         * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
8700         fail memory order being encoded in the same enum and also print
8701         fail clause if present.
8702         (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
8703         * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
8704         handle pre_p == NULL case as a test mode that only returns value
8705         but doesn't change gimplify nor change anything otherwise, adjust
8706         recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
8707         and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
8708         __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
8709         than rvalue.
8710         (gimplify_omp_atomic): Adjust goa_stabilize_expr caller.  Handle
8711         COND_EXPR rhs.  Set weak flag on gimple load/store for
8712         OMP_ATOMIC_WEAK.
8713         * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
8714         (omp_memory_order_to_memmodel): Adjust for fail clause encoded
8715         in the same enum.
8716         (expand_omp_atomic_cas): New function.
8717         (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
8718         function.
8719         (expand_omp_atomic): Attempt to optimize atomic compare and exchange
8720         using expand_omp_atomic_cas.
8722 2021-09-10  Aldy Hernandez  <aldyh@redhat.com>
8723             Michael Matz  <matz@suse.de>
8725         * tree-pass.h (PROP_loop_opts_done): New.
8726         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
8727         Intersect with global range.
8728         * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
8729         * tree-ssa-threadbackward.c
8730         (back_threader_profitability::profitable_path_p): Disable
8731         threading through latches until after loop optimizations have run.
8733 2021-09-10  David Faust  <david.faust@oracle.com>
8735         * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
8736         options.
8738 2021-09-10  David Faust  <david.faust@oracle.com>
8740         * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
8741         * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
8742         * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
8743         (bpf_expand_cbranch): New function.
8744         * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
8745         mode.
8746         (zero_extendsidi2): Only use mov32 instruction if it is available.
8747         (SIM mode iterator): Conditionalize support for SI mode.
8748         (JM mode iterator): New.
8749         (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
8750         (*branch_on_di): Update name, use new JM iterator.
8751         * config/bpf/bpf.opt: (mjmpext): New option.
8752         (malu32): Likewise.
8753         (mjmp32): Likewise.
8754         (mcpu): Likewise.
8755         (bpf_isa): New enum.
8757 2021-09-10  David Faust  <david.faust@oracle.com>
8759         * config/bpf/bpf.md (zero_extendhidi2): Add new output template
8760         for register-to-register extensions.
8761         (zero_extendqidi2): Likewise.
8763 2021-09-10  Richard Biener  <rguenther@suse.de>
8765         PR middle-end/102273
8766         * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
8768 2021-09-10  Richard Biener  <rguenther@suse.de>
8770         PR middle-end/102269
8771         * gimplify.c (is_var_need_auto_init): Empty types do not need
8772         initialization.
8774 2021-09-10  Richard Biener  <rguenther@suse.de>
8776         * configure.ac (--with-stabs): Remove.
8777         * configure: Regenerate.
8778         * doc/install.texi: Remove --with-stabs documentation.
8780 2021-09-10  liuhongt  <hongtao.liu@intel.com>
8782         * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
8783         New intrinsic.
8784         (_mm512_mask_cmp_ph_mask): Likewise.
8785         (_mm512_cmp_round_ph_mask): Likewise.
8786         (_mm512_mask_cmp_round_ph_mask): Likewise.
8787         (_mm_cmp_sh_mask): Likewise.
8788         (_mm_mask_cmp_sh_mask): Likewise.
8789         (_mm_cmp_round_sh_mask): Likewise.
8790         (_mm_mask_cmp_round_sh_mask): Likewise.
8791         (_mm_comieq_sh): Likewise.
8792         (_mm_comilt_sh): Likewise.
8793         (_mm_comile_sh): Likewise.
8794         (_mm_comigt_sh): Likewise.
8795         (_mm_comige_sh): Likewise.
8796         (_mm_comineq_sh): Likewise.
8797         (_mm_ucomieq_sh): Likewise.
8798         (_mm_ucomilt_sh): Likewise.
8799         (_mm_ucomile_sh): Likewise.
8800         (_mm_ucomigt_sh): Likewise.
8801         (_mm_ucomige_sh): Likewise.
8802         (_mm_ucomineq_sh): Likewise.
8803         (_mm_comi_round_sh): Likewise.
8804         (_mm_comi_sh): Likewise.
8805         * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
8806         (_mm_mask_cmp_ph_mask): Likewise.
8807         (_mm256_cmp_ph_mask): Likewise.
8808         (_mm256_mask_cmp_ph_mask): Likewise.
8809         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8810         * config/i386/i386-builtin.def: Add corresponding new builtins.
8811         * config/i386/i386-expand.c
8812         (ix86_expand_args_builtin): Handle new builtin types.
8813         (ix86_expand_round_builtin): Ditto.
8814         * config/i386/i386.md (ssevecmode): Add HF mode.
8815         (MODEFH): New mode iterator.
8816         * config/i386/sse.md
8817         (V48H_AVX512VL): New mode iterator to support HF vector modes.
8818         Ajdust corresponding description.
8819         (ssecmpintprefix): New.
8820         (VI12_AVX512VL): Adjust to support HF vector modes.
8821         (cmp_imm_predicate): Likewise.
8822         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
8823         Likewise.
8824         (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
8825         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
8826         (<sse>_<unord>comi<round_saeonly_name>): Likewise.
8828 2021-09-10  liuhongt  <hongtao.liu@intel.com>
8830         * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
8831         (_mm512_mask_max_ph): Likewise.
8832         (_mm512_maskz_max_ph): Likewise.
8833         (_mm512_min_ph): Likewise.
8834         (_mm512_mask_min_ph): Likewise.
8835         (_mm512_maskz_min_ph): Likewise.
8836         (_mm512_max_round_ph): Likewise.
8837         (_mm512_mask_max_round_ph): Likewise.
8838         (_mm512_maskz_max_round_ph): Likewise.
8839         (_mm512_min_round_ph): Likewise.
8840         (_mm512_mask_min_round_ph): Likewise.
8841         (_mm512_maskz_min_round_ph): Likewise.
8842         (_mm_max_sh): Likewise.
8843         (_mm_mask_max_sh): Likewise.
8844         (_mm_maskz_max_sh): Likewise.
8845         (_mm_min_sh): Likewise.
8846         (_mm_mask_min_sh): Likewise.
8847         (_mm_maskz_min_sh): Likewise.
8848         (_mm_max_round_sh): Likewise.
8849         (_mm_mask_max_round_sh): Likewise.
8850         (_mm_maskz_max_round_sh): Likewise.
8851         (_mm_min_round_sh): Likewise.
8852         (_mm_mask_min_round_sh): Likewise.
8853         (_mm_maskz_min_round_sh): Likewise.
8854         * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
8855         (_mm256_max_ph): Likewise.
8856         (_mm_mask_max_ph): Likewise.
8857         (_mm256_mask_max_ph): Likewise.
8858         (_mm_maskz_max_ph): Likewise.
8859         (_mm256_maskz_max_ph): Likewise.
8860         (_mm_min_ph): Likewise.
8861         (_mm256_min_ph): Likewise.
8862         (_mm_mask_min_ph): Likewise.
8863         (_mm256_mask_min_ph): Likewise.
8864         (_mm_maskz_min_ph): Likewise.
8865         (_mm256_maskz_min_ph): Likewise.
8866         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8867         * config/i386/i386-builtin.def: Add corresponding new builtins.
8868         * config/i386/i386-expand.c
8869         (ix86_expand_args_builtin): Handle new builtin types.
8870         * config/i386/sse.md
8871         (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
8872         support HF vector modes.
8873         (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
8874         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
8875         Likewise.
8876         (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
8877         Likewise.
8878         * config/i386/subst.md (round_saeonly_mode512bit_condition):
8879         Adjust for HF vector modes.
8881 2021-09-10  Liu, Hongtao  <hongtao.liu@intel.com>
8883         * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
8884         (_mm_mask_add_sh): Likewise.
8885         (_mm_maskz_add_sh): Likewise.
8886         (_mm_sub_sh): Likewise.
8887         (_mm_mask_sub_sh): Likewise.
8888         (_mm_maskz_sub_sh): Likewise.
8889         (_mm_mul_sh): Likewise.
8890         (_mm_mask_mul_sh): Likewise.
8891         (_mm_maskz_mul_sh): Likewise.
8892         (_mm_div_sh): Likewise.
8893         (_mm_mask_div_sh): Likewise.
8894         (_mm_maskz_div_sh): Likewise.
8895         (_mm_add_round_sh): Likewise.
8896         (_mm_mask_add_round_sh): Likewise.
8897         (_mm_maskz_add_round_sh): Likewise.
8898         (_mm_sub_round_sh): Likewise.
8899         (_mm_mask_sub_round_sh): Likewise.
8900         (_mm_maskz_sub_round_sh): Likewise.
8901         (_mm_mul_round_sh): Likewise.
8902         (_mm_mask_mul_round_sh): Likewise.
8903         (_mm_maskz_mul_round_sh): Likewise.
8904         (_mm_div_round_sh): Likewise.
8905         (_mm_mask_div_round_sh): Likewise.
8906         (_mm_maskz_div_round_sh): Likewise.
8907         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8908         * config/i386/i386-builtin.def: Add corresponding new builtins.
8909         * config/i386/i386-expand.c
8910         (ix86_expand_round_builtin): Handle new builtins.
8911         * config/i386/sse.md (VF_128): Change description.
8912         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
8913         Adjust to support HF vector modes.
8914         (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
8915         Likewise.
8917 2021-09-10  H.J. Lu  <hjl.tools@gmail.com>
8919         * config/i386/i386-expand.c
8920         (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
8921         * config/i386/i386.c
8922         (ix86_preferred_simd_mode): Handle HF mode.
8923         * config/i386/sse.md (V_256H): New mode iterator.
8924         (avx_vextractf128<mode>): Use it.
8925         (VEC_INIT_MODE): Align vector HFmode condition to vector
8926         HImodes since there're no real HF instruction used.
8927         (VEC_INIT_HALF_MODE): Ditto.
8928         (VIHF): Ditto.
8929         (VIHF_AVX512BW): Ditto.
8930         (*vec_extracthf): Ditto.
8931         (VEC_EXTRACT_MODE): Ditto.
8933 2021-09-10  Richard Biener  <rguenther@suse.de>
8935         PR target/102255
8936         * config/dbx.h: Remove.
8937         * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
8938         * config/lynx.h: Likewise.
8940 2021-09-10  liuhongt  <hongtao.liu@intel.com>
8942         * config/i386/i386-expand.c (ix86_expand_copysign): Expand
8943         right into ANDNOT + AND + IOR, using paradoxical subregs.
8944         (ix86_split_copysign_const): Remove.
8945         (ix86_split_copysign_var): Ditto.
8946         * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
8947         (ix86_split_copysign_var): Ditto.
8948         * config/i386/i386.md (@copysign<mode>3_const): Ditto.
8949         (@copysign<mode>3_var): Ditto.
8951 2021-09-09  qing zhao  <qing.zhao@oracle.com>
8953         * builtins.c (expand_builtin_memset): Make external visible.
8954         * builtins.h (expand_builtin_memset): Declare extern.
8955         * common.opt (ftrivial-auto-var-init=): New option.
8956         * doc/extend.texi: Document the uninitialized attribute.
8957         * doc/invoke.texi: Document -ftrivial-auto-var-init.
8958         * flag-types.h (enum auto_init_type): New enumerated type
8959         auto_init_type.
8960         * gimple-fold.c (clear_padding_type): Add one new parameter.
8961         (clear_padding_union): Likewise.
8962         (clear_padding_emit_loop): Likewise.
8963         (clear_type_padding_in_mask): Likewise.
8964         (gimple_fold_builtin_clear_padding): Handle this new parameter.
8965         * gimplify.c (gimple_add_init_for_auto_var): New function.
8966         (gimple_add_padding_init_for_auto_var): New function.
8967         (is_var_need_auto_init): New function.
8968         (gimplify_decl_expr): Add initialization to automatic variables per
8969         users' requests.
8970         (gimplify_call_expr): Add one new parameter for call to
8971         __builtin_clear_padding.
8972         (gimplify_init_constructor): Add padding initialization in the end.
8973         * internal-fn.c (INIT_PATTERN_VALUE): New macro.
8974         (expand_DEFERRED_INIT): New function.
8975         * internal-fn.def (DEFERRED_INIT): New internal function.
8976         * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
8977         * tree-sra.c (generate_subtree_deferred_init): New function.
8978         (scan_function): Avoid setting cannot_scalarize_away_bitmap for
8979         calls to .DEFERRED_INIT.
8980         (sra_modify_deferred_init): New function.
8981         (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
8982         * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
8983         * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
8984         specially.
8985         (check_defs): Likewise.
8986         (warn_uninitialized_vars): Likewise.
8987         * tree-ssa.c (ssa_undefined_value_p): Likewise.
8988         * tree.c (build_common_builtin_nodes): Build tree node for
8989         BUILT_IN_CLEAR_PADDING when needed.
8991 2021-09-09  Richard Biener  <rguenther@suse.de>
8993         * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
8994         into all subloops.
8996 2021-09-09  Richard Biener  <rguenther@suse.de>
8998         * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
8999         DOM walk from get_loop_body_in_dom_order using a worklist
9000         approach.
9002 2021-09-09  liuhongt  <hongtao.liu@intel.com>
9004         * config.gcc: Add avx512fp16vlintrin.h.
9005         * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
9006         (_mm512_mask_add_ph): Likewise.
9007         (_mm512_maskz_add_ph): Likewise.
9008         (_mm512_sub_ph): Likewise.
9009         (_mm512_mask_sub_ph): Likewise.
9010         (_mm512_maskz_sub_ph): Likewise.
9011         (_mm512_mul_ph): Likewise.
9012         (_mm512_mask_mul_ph): Likewise.
9013         (_mm512_maskz_mul_ph): Likewise.
9014         (_mm512_div_ph): Likewise.
9015         (_mm512_mask_div_ph): Likewise.
9016         (_mm512_maskz_div_ph): Likewise.
9017         (_mm512_add_round_ph): Likewise.
9018         (_mm512_mask_add_round_ph): Likewise.
9019         (_mm512_maskz_add_round_ph): Likewise.
9020         (_mm512_sub_round_ph): Likewise.
9021         (_mm512_mask_sub_round_ph): Likewise.
9022         (_mm512_maskz_sub_round_ph): Likewise.
9023         (_mm512_mul_round_ph): Likewise.
9024         (_mm512_mask_mul_round_ph): Likewise.
9025         (_mm512_maskz_mul_round_ph): Likewise.
9026         (_mm512_div_round_ph): Likewise.
9027         (_mm512_mask_div_round_ph): Likewise.
9028         (_mm512_maskz_div_round_ph): Likewise.
9029         * config/i386/avx512fp16vlintrin.h: New header.
9030         * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
9031         Add new builtin types.
9032         * config/i386/i386-builtin.def: Add corresponding builtins.
9033         * config/i386/i386-expand.c
9034         (ix86_expand_args_builtin): Handle new builtin types.
9035         (ix86_expand_round_builtin): Likewise.
9036         * config/i386/immintrin.h: Include avx512fp16vlintrin.h
9037         * config/i386/sse.md (VFH): New mode_iterator.
9038         (VF2H): Likewise.
9039         (avx512fmaskmode): Add HF vector modes.
9040         (avx512fmaskhalfmode): Likewise.
9041         (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
9042         HF vector modes.
9043         (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
9044         (mul<mode>3<mask_name><round_name>): Likewise.
9045         (*mul<mode>3<mask_name><round_name>): Likewise.
9046         (div<mode>3): Likewise.
9047         (<sse>_div<mode>3<mask_name><round_name>): Likewise.
9048         * config/i386/subst.md (SUBST_V): Add HF vector modes.
9049         (SUBST_A): Likewise.
9050         (round_mode512bit_condition): Adjust for V32HFmode.
9052 2021-09-09  liuhongt  <hongtao.liu@intel.com>
9054         PR target/101059
9055         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
9056         (reduc_plus_scal_v4sf): .. this, New define_expand.
9057         (reduc_plus_scal_v2df): .. and this, New define_expand.
9059 2021-09-09  liuhongt  <hongtao.liu@intel.com>
9061         PR target/91103
9062         * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
9063         New define_insn.
9065 2021-09-08  Jonathan Wakely  <jwakely@redhat.com>
9067         PR c++/60318
9068         * doc/trouble.texi (Copy Assignment): Fix description of
9069         behaviour and fix code in example.
9071 2021-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
9073         PR target/102107
9074         * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
9075         r11 instead of r12 for restoring CR.
9077 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
9078             liuhongt  <hongtao.liu@intel.com>
9080         PR target/89984
9081         * config/i386/i386.md (@xorsign<mode>3_1): Remove.
9082         * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
9083         into AND with mask and XOR, using paradoxical subregs.
9084         (ix86_split_xorsign): Remove.
9085         * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
9087 2021-09-08  Di Zhao  <dizhao@os.amperecomputing.com>
9089         * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
9091 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
9093         PR target/102224
9094         * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
9095         operands[2], emit abs<mode>2 instead.
9096         (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
9097         first alternative even for avx, add another alternative with
9098         =&Yv <- 0, Yv, Yvm constraints.
9099         * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
9100         to op1, emit vpandn instead.
9102 2021-09-08  liuhongt  <hongtao.liu@intel.com>
9104         * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
9105         (_mm256_set_ph): Likewise.
9106         (_mm512_set_ph): Likewise.
9107         (_mm_setr_ph): Likewise.
9108         (_mm256_setr_ph): Likewise.
9109         (_mm512_setr_ph): Likewise.
9110         (_mm_set1_ph): Likewise.
9111         (_mm256_set1_ph): Likewise.
9112         (_mm512_set1_ph): Likewise.
9113         (_mm_setzero_ph): Likewise.
9114         (_mm256_setzero_ph): Likewise.
9115         (_mm512_setzero_ph): Likewise.
9116         (_mm_set_sh): Likewise.
9117         (_mm_load_sh): Likewise.
9118         (_mm_store_sh): Likewise.
9119         * config/i386/i386-builtin-types.def (V8HF): New type.
9120         (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
9121         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
9122         Support vector HFmodes.
9123         (ix86_expand_vector_init_one_nonzero): Likewise.
9124         (ix86_expand_vector_init_one_var): Likewise.
9125         (ix86_expand_vector_init_interleave): Likewise.
9126         (ix86_expand_vector_init_general): Likewise.
9127         (ix86_expand_vector_set): Likewise.
9128         (ix86_expand_vector_extract): Likewise.
9129         (ix86_expand_vector_init_concat): Likewise.
9130         (ix86_expand_sse_movcc): Handle vector HFmodes.
9131         (ix86_expand_vector_set_var): Ditto.
9132         * config/i386/i386-modes.def: Add HF vector modes in comment.
9133         * config/i386/i386.c (classify_argument): Add HF vector modes.
9134         (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
9135         (ix86_vector_mode_supported_p): Likewise.
9136         (ix86_set_reg_reg_cost): Handle vector HFmode.
9137         (ix86_get_ssemov): Handle vector HFmode.
9138         (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
9139         by stack.
9140         (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
9141         mode.
9142         (function_arg_advance_32): Ditto.
9143         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
9144         (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
9145         (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
9146         (VALID_SSE2_REG_VHF_MODE): New.
9147         (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
9148         (SSE_REG_MODE_P): Add vector HFmode.
9149         * config/i386/i386.md (mode): Add HF vector modes.
9150         (MODE_SIZE): Likewise.
9151         (ssemodesuffix): Add ph suffix for HF vector modes.
9152         * config/i386/sse.md (VFH_128): New mode iterator.
9153         (VMOVE): Adjust for HF vector modes.
9154         (V): Likewise.
9155         (V_256_512): Likewise.
9156         (avx512): Likewise.
9157         (avx512fmaskmode): Likewise.
9158         (shuffletype): Likewise.
9159         (sseinsnmode): Likewise.
9160         (ssedoublevecmode): Likewise.
9161         (ssehalfvecmode): Likewise.
9162         (ssehalfvecmodelower): Likewise.
9163         (ssePScmode): Likewise.
9164         (ssescalarmode): Likewise.
9165         (ssescalarmodelower): Likewise.
9166         (sseintprefix): Likewise.
9167         (i128): Likewise.
9168         (bcstscalarsuff): Likewise.
9169         (xtg_mode): Likewise.
9170         (VI12HF_AVX512VL): New mode_iterator.
9171         (VF_AVX512FP16): Likewise.
9172         (VIHF): Likewise.
9173         (VIHF_256): Likewise.
9174         (VIHF_AVX512BW): Likewise.
9175         (V16_256): Likewise.
9176         (V32_512): Likewise.
9177         (sseintmodesuffix): New mode_attr.
9178         (sse): Add scalar and vector HFmodes.
9179         (ssescalarmode): Add vector HFmode mapping.
9180         (ssescalarmodesuffix): Add sh suffix for HFmode.
9181         (*<sse>_vm<insn><mode>3): Use VFH_128.
9182         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9183         (*ieee_<ieee_maxmin><mode>3): Likewise.
9184         (<avx512>_blendm<mode>): New define_insn.
9185         (vec_setv8hf): New define_expand.
9186         (vec_set<mode>_0): New define_insn for HF vector set.
9187         (*avx512fp16_movsh): Likewise.
9188         (avx512fp16_movsh): Likewise.
9189         (vec_extract_lo_v32hi): Rename to ...
9190         (vec_extract_lo_<mode>): ... this, and adjust to allow HF
9191         vector modes.
9192         (vec_extract_hi_v32hi): Likewise.
9193         (vec_extract_hi_<mode>): Likewise.
9194         (vec_extract_lo_v16hi): Likewise.
9195         (vec_extract_lo_<mode>): Likewise.
9196         (vec_extract_hi_v16hi): Likewise.
9197         (vec_extract_hi_<mode>): Likewise.
9198         (vec_set_hi_v16hi): Likewise.
9199         (vec_set_hi_<mode>): Likewise.
9200         (vec_set_lo_v16hi): Likewise.
9201         (vec_set_lo_<mode>): Likewise.
9202         (*vec_extract<mode>_0): New define_insn_and_split for HF
9203         vector extract.
9204         (*vec_extracthf): New define_insn.
9205         (VEC_EXTRACT_MODE): Add HF vector modes.
9206         (PINSR_MODE): Add V8HF.
9207         (sse2p4_1): Likewise.
9208         (pinsr_evex_isa): Likewise.
9209         (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
9210         insert for V8HFmode.
9211         (pbroadcast_evex_isa): Add HF vector modes.
9212         (AVX2_VEC_DUP_MODE): Likewise.
9213         (VEC_INIT_MODE): Likewise.
9214         (VEC_INIT_HALF_MODE): Likewise.
9215         (avx2_pbroadcast<mode>): Adjust to support HF vector mode
9216         broadcast.
9217         (avx2_pbroadcast<mode>_1): Likewise.
9218         (<avx512>_vec_dup<mode>_1): Likewise.
9219         (<avx512>_vec_dup<mode><mask_name>): Likewise.
9220         (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
9221         Likewise.
9223 2021-09-08  Guo, Xuepeng  <xuepeng.guo@intel.com>
9224             H.J. Lu  <hongjiu.lu@intel.com>
9225             Liu Hongtao  <hongtao.liu@intel.com>
9226             Wang Hongyu  <hongyu.wang@intel.com>
9227             Xu Dianhong  <dianhong.xu@intel.com>
9229         * common/config/i386/cpuinfo.h (get_available_features):
9230         Detect FEATURE_AVX512FP16.
9231         * common/config/i386/i386-common.c
9232         (OPTION_MASK_ISA_AVX512FP16_SET,
9233         OPTION_MASK_ISA_AVX512FP16_UNSET,
9234         OPTION_MASK_ISA2_AVX512FP16_SET,
9235         OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
9236         (OPTION_MASK_ISA2_AVX512BW_UNSET,
9237         OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
9238         (ix86_handle_option): Handle -mavx512fp16.
9239         * common/config/i386/i386-cpuinfo.h (enum processor_features):
9240         Add FEATURE_AVX512FP16.
9241         * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
9242         * config.gcc: Add avx512fp16intrin.h.
9243         * config/i386/avx512fp16intrin.h: New intrinsic header.
9244         * config/i386/cpuid.h: Add bit_AVX512FP16.
9245         * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
9246         * config/i386/i386-builtins.c: Support _Float16 type for i386
9247         backend.
9248         (ix86_register_float16_builtin_type): New function.
9249         (ix86_float16_type_node): New.
9250         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9251         __AVX512FP16__.
9252         * config/i386/i386-expand.c (ix86_expand_branch): Support
9253         HFmode.
9254         (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
9255         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
9256         (ix86_expand_fp_movcc): Ditto.
9257         * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
9258         * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
9259         (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
9260         * config/i386/i386.c (ix86_get_ssemov): Use
9261         vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
9262         (ix86_get_excess_precision): Use
9263         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
9264         existed.
9265         (sse_store_index): Use SFmode cost for HFmode cost.
9266         (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
9267         GPR cost for HFmode.
9268         (ix86_hard_regno_mode_ok): Allow HImode in sse register.
9269         (ix86_mangle_type): Add manlging for _Float16 type.
9270         (inline_secondary_memory_needed): No memory is needed for
9271         16bit movement between gpr and sse reg under
9272         TARGET_AVX512FP16.
9273         (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
9274         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
9275         (ix86_division_cost): Ditto.
9276         (ix86_rtx_costs): Ditto.
9277         (ix86_add_stmt_cost): Ditto.
9278         (ix86_optab_supported_p): Ditto.
9279         * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
9280         (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
9281         (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
9282         * config/i386/i386.md (mode): Add HFmode.
9283         (MODE_SIZE): Add HFmode.
9284         (isa): Add avx512fp16.
9285         (enabled): Handle avx512fp16.
9286         (ssemodesuffix): Add sh suffix for HFmode.
9287         (comm): Add mult, div.
9288         (plusminusmultdiv): New code iterator.
9289         (insn): Add mult, div.
9290         (*movhf_internal): Adjust for avx512fp16 instruction.
9291         (*movhi_internal): Ditto.
9292         (*cmpi<unord>hf): New define_insn for HFmode.
9293         (*ieee_s<ieee_maxmin>hf3): Likewise.
9294         (extendhf<mode>2): Likewise.
9295         (trunc<mode>hf2): Likewise.
9296         (float<floatunssuffix><mode>hf2): Likewise.
9297         (*<insn>hf): Likewise.
9298         (cbranchhf4): New expander.
9299         (movhfcc): Likewise.
9300         (<insn>hf3): Likewise.
9301         (mulhf3): Likewise.
9302         (divhf3): Likewise.
9303         * config/i386/i386.opt: Add mavx512fp16.
9304         * config/i386/immintrin.h: Include avx512fp16intrin.h.
9305         * doc/invoke.texi: Add mavx512fp16.
9306         * doc/extend.texi: Add avx512fp16 Usage Notes.
9308 2021-09-08  liuhongt  <hongtao.liu@intel.com>
9310         * common.opt: Support -fexcess-precision=16.
9311         * config/aarch64/aarch64.c (aarch64_excess_precision): Return
9312         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
9313         EXCESS_PRECISION_TYPE_FLOAT16.
9314         * config/arm/arm.c (arm_excess_precision): Ditto.
9315         * config/i386/i386.c (ix86_get_excess_precision): Ditto.
9316         * config/m68k/m68k.c (m68k_excess_precision): Issue an error
9317         when EXCESS_PRECISION_TYPE_FLOAT16.
9318         * config/s390/s390.c (s390_excess_precision): Ditto.
9319         * coretypes.h (enum excess_precision_type): Add
9320         EXCESS_PRECISION_TYPE_FLOAT16.
9321         * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
9322         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
9323         * doc/extend.texi (Half-Precision): Document
9324         -fexcess-precision=16.
9325         * flag-types.h (enum excess_precision): Add
9326         EXCESS_PRECISION_FLOAT16.
9327         * target.def (excess_precision): Update document.
9328         * tree.c (excess_precision_type): Set excess_precision_type to
9329         EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
9331 2021-09-08  liuhongt  <hongtao.liu@intel.com>
9333         * doc/extend.texi: (@node Floating Types): Adjust the wording.
9334         (@node Half-Precision): Ditto.
9336 2021-09-07  Takayuki 'January June' Suwa  <jjsuwa_sys3175@yahoo.co.jp>
9338         PR target/102115
9339         * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
9340         'CONST_INT_P (src)' to the condition of the block that tries to
9341         eliminate literal when loading integer contant.
9343 2021-09-07  David Faust  <david.faust@oracle.com>
9345         * doc/extend.texi (BPF Type Attributes) New node.
9346         Document new preserve_access_index attribute.
9347         Document new preserve_access_index builtin.
9348         * doc/invoke.texi: Document -mco-re and -mno-co-re options.
9350 2021-09-07  David Faust  <david.faust@oracle.com>
9352         * config/bpf/bpf.c: Adjust includes.
9353         (bpf_handle_preserve_access_index_attribute): New function.
9354         (bpf_attribute_table): Use it here.
9355         (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
9356         (bpf_option_override): Handle "-mco-re" option.
9357         (bpf_asm_init_sections): New.
9358         (TARGET_ASM_INIT_SECTIONS): Redefine.
9359         (bpf_file_end): New.
9360         (TARGET_ASM_FILE_END): Redefine.
9361         (bpf_init_builtins): Add "__builtin_preserve_access_index".
9362         (bpf_core_compute, bpf_core_get_index): New.
9363         (is_attr_preserve_access): New.
9364         (bpf_expand_builtin): Handle new builtins.
9365         (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
9366         (bpf_core_walk): New.
9367         (bpf_resolve_overloaded_builtin): New.
9368         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
9369         (handle_attr): New.
9370         (pass_bpf_core_attr): New RTL pass.
9371         * config/bpf/bpf-passes.def: New file.
9372         * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
9373         * config/bpf/coreout.c: New file.
9374         * config/bpf/coreout.h: Likewise.
9375         * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
9376         (coreout.o): New rule.
9377         (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
9378         * config.gcc (bpf): Add coreout.h to extra_headers.
9379         Add coreout.o to extra_objs.
9380         Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
9382 2021-09-07  David Faust  <david.faust@oracle.com>
9384         * btfout.c (get_btf_id): Function is no longer static.
9385         * ctfc.h: Expose it here.
9387 2021-09-07  David Faust  <david.faust@oracle.com>
9389         * ctfc.c (ctf_lookup_tree_type): New function.
9390         * ctfc.h: Likewise.
9392 2021-09-07  David Faust  <david.faust@oracle.com>
9394         * ctfc.c (ctf_dtd_lookup): Function is no longer static.
9395         * ctfc.h: Analogous change.
9397 2021-09-07  David Faust  <david.faust@oracle.com>
9399         * dwarf2out.c (lookup_type_die): Function is no longer static.
9400         * dwarf2out.h: Expose it here.
9402 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
9404         * dwarf2ctf.c (ctf_debug_finalize): Make it static.
9405         (ctf_debug_early_finish): New definition.
9406         (ctf_debug_finish): Likewise.
9407         * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
9408         (ctf_debug_early_finish): New declaration.
9409         (ctf_debug_finish): Likewise.
9410         * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
9411         (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
9413 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
9415         * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
9416         support when compiling for CO-RE.
9417         * config/bpf/bpf.opt: Add new command line option -mco-re.
9419 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
9421         * flag-types.h (enum debug_info_type): Add new enum
9422         DINFO_TYPE_BTF_WITH_CORE.
9423         (BTF_WITH_CORE_DEBUG): New bitmask.
9424         * flags.h (btf_with_core_debuginfo_p): New declaration.
9425         * opts.c (btf_with_core_debuginfo_p): New definition.
9427 2021-09-07  Jason Merrill  <jason@redhat.com>
9429         * tree.h (error_operand_p): Change to inline function.
9431 2021-09-07  Aldy Hernandez  <aldyh@redhat.com>
9433         * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
9434         (empty_block_with_phis_p): ...this.
9435         (potentially_threadable_block): Same.
9436         (jump_threader::thread_through_normal_block): Same.
9438 2021-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9440         PR debug/101947
9441         * dwarf2out.c (mark_base_types): New overloaded function.
9442         (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
9443         as the compilation unit, and call move_marked_base_types afterward.
9445 2021-09-07  H.J. Lu  <hjl.tools@gmail.com>
9447         PR target/85819
9448         * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
9449         Enable FMA.
9450         (ix86_expand_vector_convert_uns_vsivsf): Likewise.
9452 2021-09-07  Richard Biener  <rguenther@suse.de>
9454         PR tree-optimization/102226
9455         * tree-vect-loop.c (vect_transform_cycle_phi): Record
9456         the converted value for the epilogue PHI use.
9458 2021-09-07  Martin Liska  <mliska@suse.cz>
9460         PR gcov-profile/80223
9461         * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
9462         options, do not inline when no_profile_instrument_function
9463         attributes are different in early inliner. It's fine to inline
9464         it after PGO instrumentation.
9466 2021-09-07  Richard Biener  <rguenther@suse.de>
9468         PR tree-optimization/101555
9469         * tree-ssa-pre.c (translate_vuse_through_block): Do not
9470         perform an alias walk to determine the validity of the
9471         mem at the start of the block which is already guaranteed
9472         by means of prune_clobbered_mems.
9473         (phi_translate_1): Pass edge to translate_vuse_through_block.
9475 2021-09-07  Xionghu Luo  <luoxhu@linux.ibm.com>
9477         PR target/97142
9478         * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
9479         (remainder<mode>3): Likewise.
9481 2021-09-07  YunQiang Su  <yunqiang.su@cipunited.com>
9483         * config/mips/mips.c (mips_file_start): add .module for
9484           arch and ase.
9486 2021-09-06  Roger Sayle  <roger@nextmovesoftware.com>
9488         * wide-int.cc (wi::clz): Reorder tests to ensure the result
9489         is zero for all negative values.
9491 2021-09-06  Tobias Burnus  <tobias@codesourcery.com>
9493         * doc/invoke.texi (-foffload-options): Fix @opindex.
9495 2021-09-06  H.J. Lu  <hjl.tools@gmail.com>
9497         PR target/89984
9498         * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
9499         * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
9500         source alternative for AVX.
9502 2021-09-06  liuhongt  <hongtao.liu@intel.com>
9504         PR middle-end/102182
9505         * optabs.c (expand_fix): Add from1 to avoid from being
9506         overwritten.
9508 2021-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9510         * dwarf2out.c (modified_type_die): Deal with all array types earlier
9511         and use local variable consistently throughout the function.
9513 2021-09-06  Jakub Jelinek  <jakub@redhat.com>
9515         PR tree-optimization/102207
9516         * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
9517         were promoted from signed to wider unsigned type.
9519 2021-09-06  Andrew Pinski  <apinski@marvell.com>
9521         PR tree-optimization/63184
9522         * match.pd: Add simplification of pointer_diff of two pointer_plus
9523         with addr_expr in the first operand of each pointer_plus.
9524         Add simplificatoin of ne/eq of two pointer_plus with addr_expr
9525         in the first operand of each pointer_plus.
9527 2021-09-06  Richard Biener  <rguenther@suse.de>
9529         PR tree-optimization/102176
9530         * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
9531         New function.
9532         (vect_bb_slp_scalar_cost): Use the computed set of
9533         vectorized scalar stmts instead of relying on the out-of-date
9534         and not accurate PURE_SLP_STMT.
9535         (vect_bb_vectorization_profitable_p): Compute the set
9536         of vectorized scalar stmts.
9538 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
9540         * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
9541         GIMPLE_COND special casing.
9542         (path_range_query::range_defined_in_block): Use range_of_stmt
9543         instead of calling fold_range directly.
9545 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
9547         * gimple-range-path.cc (path_range_query::range_of_expr): Set
9548         m_undefined_path when appropriate.
9549         (path_range_query::internal_range_of_expr): Copy from range_of_expr.
9550         (path_range_query::unreachable_path_p): New.
9551         (path_range_query::precompute_ranges): Set m_undefined_path.
9552         * gimple-range-path.h (path_range_query::unreachable_path_p): New.
9553         (path_range_query::internal_range_of_expr): New.
9554         * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
9555         Use unreachable_path_p.
9557 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
9559         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
9560         Remove argument and call find_taken_edge.
9561         (back_threader::resolve_phi): Do not calculate taken edge before
9562         calling maybe_register_path.
9563         (back_threader::find_paths_to_names): Same.
9565 2021-09-05  Jeff Law  <jlaw@localhost.localdomain>
9567         * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
9568         * config/h8300/testcompare.md (store_c): Update name, use new
9569         QHSI2 iterator.
9570         (store_neg_c, store_shifted_c): New patterns.
9572 2021-09-03  Segher Boessenkool  <segher@kernel.crashing.org>
9574         PR target/102107
9575         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
9576         instead of r12 for CR save, in all cases.
9578 2021-09-03  Andrew Pinski  <apinski@marvell.com>
9580         * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
9581         Handle error_mark_node as the type of the type_decl.
9583 2021-09-03  Andrew Pinski  <apinski@marvell.com>
9585         * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
9586         Mark with GTY.
9587         (aarch64_simd_types): Likewise.
9588         (aarch64_simd_intOI_type_node): Likewise.
9589         (aarch64_simd_intCI_type_node): Likewise.
9590         (aarch64_simd_intXI_type_node): Likewise.
9591         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
9592         (aarch64_fp16_ptr_type_node): Likewise.
9593         (aarch64_bf16_type_node): Likewise.
9594         (aarch64_bf16_ptr_type_node): Likewise.
9596 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9598         * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
9599         out to...
9600         (minus_op1_op2_relation_effect): ...here.
9601         (class operator_pointer_diff): New.
9602         (operator_pointer_diff::op1_op2_relation_effect): Call
9603         minus_op1_op2_relation_effect.
9604         (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
9606 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9608         * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
9609         Add may_peel_loop_headers.
9610         (back_threader_registry::thread_through_all_blocks): Same.
9611         (try_thread_blocks): Pass may_peel_loop_headers argument.
9612         (pass_early_thread_jumps::execute): Same.
9614 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9616         * tree-ssa-threadedge.c (has_phis_p): New.
9617         (forwarder_block_p): New.
9618         (potentially_threadable_block): Call forwarder_block_p.
9619         (jump_threader::thread_around_empty_blocks): Call has_phis_p.
9620         (jump_threader::thread_through_normal_block): Call
9621         forwarder_block_p.
9623 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9625         * tree-ssa-threadbackward.c (back_threader::dump): New.
9626         (back_threader::debug): New.
9627         (back_threader_profitability::profitable_path_p): Dump blocks
9628         even if we are bailing early.
9630 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9632         * tree-ssa-threadupdate.c (cancel_thread): New.
9633         (jump_thread_path_registry::thread_block_1): Use cancel_thread.
9634         (jump_thread_path_registry::mark_threaded_blocks): Same.
9635         (jump_thread_path_registry::register_jump_thread): Same.
9637 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9639         * tree-ssa-threadedge.c (jt_state::push): Only call methods for
9640         which objects are available.
9641         (jt_state::pop): Same.
9642         (jt_state::register_equiv): Same.
9643         (jt_state::register_equivs_on_edge): Same.
9645 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9647         * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
9648         Move pop until after a thread is registered.
9650 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9652         * tree-ssa-threadupdate.c (debug): New.
9654 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9656         * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
9657         (push_dump_file::~push_dump_file): New.
9658         (dump_ranger): Change dump_file temporarily while dumping
9659         ranger.
9660         * gimple-range-trace.h (class push_dump_file): New.
9662 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9664         * gimple-range-trace.cc (debug_seed_ranger): Remove static.
9665         (dump_ranger): Dump function name.
9667 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9669         * gimple-range-path.cc (path_range_query::range_defined_in_block):
9670         Adjust for non-null.
9671         (path_range_query::adjust_for_non_null_uses): New.
9672         (path_range_query::precompute_ranges): Call
9673         adjust_for_non_null_uses.
9674         * gimple-range-path.h: Add m_non_null and
9675         adjust_for_non_null_uses.
9677 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9679         * gimple-range-path.cc (path_range_query::dump): Dump path
9680         length.
9681         (path_range_query::precompute_ranges): Dump entire path.
9683 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9685         * value-relation.cc (relation_oracle::debug): New.
9686         * value-relation.h (relation_oracle::debug): New.
9688 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9690         * tree-ssa-loop-ch.c: Remove unnecessary include file.
9692 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9694         * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
9695         Skip statements with no defining BB.
9696         * gimple-range-path.cc (path_range_query::range_defined_in_block):
9697         Do not get confused by statements with no defining BB.
9699 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
9701         * gimple-range-fold.cc (adjust_imagpart_expr): Move from
9702         gimple_range_adjustment.  Add support for constants.
9703         (adjust_realpart_expr): New.
9704         (gimple_range_adjustment): Move IMAGPART_EXPR code to
9705         adjust_imagpart_expr.
9706         * range-op.cc (integral_table::integral_table): Add entry for
9707         REALPART_CST.
9709 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
9711         * omp-expand.c (expand_omp_atomic_pipeline): Use
9712         IFN_ATOMIC_COMPARE_EXCHANGE instead of
9713         BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
9714         can be provided.
9716 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
9718         PR target/102024
9719         * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
9720         that is false if DECL_BIT_FIELD.
9721         (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
9722         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
9723         * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
9724         DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
9725         of DECL_FIELD_ABI_IGNORED.
9726         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
9727         SET_DECL_FIELD_ABI_IGNORED instead of writing to
9728         DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
9729         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
9730         * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
9731         DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
9733 2021-09-03  liuhongt  <hongtao.liu@intel.com>
9735         PR target/102166
9736         * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
9737         * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
9738         * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
9740 2021-09-02  Martin Sebor  <msebor@redhat.com>
9742         PR tree-optimization/17506
9743         PR testsuite/37182
9744         * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
9746 2021-09-02  Richard Biener  <rguenther@suse.de>
9748         * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
9749         fix for PR78185 and continue processing when leaving
9750         finite inner loops.
9752 2021-09-02  Jakub Jelinek  <jakub@redhat.com>
9754         PR tree-optimization/99591
9755         * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
9756         were promoted.
9758 2021-09-02  Richard Biener  <rguenther@suse.de>
9760         Revert:
9761         2021-09-02  Richard Biener  <rguenther@suse.de>
9763         PR tree-optimization/102155
9764         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
9765         over a part of the RPO array and do not recurse here.
9766         Dump blocks marked as always executed.
9767         (fill_always_executed_in): Walk over the RPO array and
9768         process loops whose header we run into.
9769         (loop_invariant_motion_in_fun): Compute the first RPO
9770         using rev_post_order_and_mark_dfs_back_seme in iteration
9771         order and pass that to fill_always_executed_in.
9773 2021-09-02  liuhongt  <hongtao.liu@intel.com>
9775         * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
9776         * config/i386/i386.c (enum x86_64_reg_class): Add
9777         X86_64_SSEHF_CLASS.
9778         (merge_classes): Handle X86_64_SSEHF_CLASS.
9779         (examine_argument): Ditto.
9780         (construct_container): Ditto.
9781         (classify_argument): Ditto, and set HFmode/HCmode to
9782         X86_64_SSEHF_CLASS.
9783         (function_value_32): Return _FLoat16/Complex Float16 by
9784         %xmm0.
9785         (function_value_64): Return _Float16/Complex Float16 by SSE
9786         register.
9787         (ix86_print_operand): Handle CONST_DOUBLE HFmode.
9788         (ix86_secondary_reload): Require gpr as intermediate register
9789         to store _Float16 from sse register when sse4 is not
9790         available.
9791         (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
9792         sse2.
9793         (ix86_scalar_mode_supported_p): Ditto.
9794         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
9795         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
9796         (VALID_INT_MODE_P): Add HFmode and HCmode.
9797         * config/i386/i386.md (*pushhf_rex64): New define_insn.
9798         (*pushhf): Ditto.
9799         (*movhf_internal): Ditto.
9800         * doc/extend.texi (Half-Precision Floating Point): Documemt
9801         _Float16 for x86.
9803 2021-09-02  Richard Biener  <rguenther@suse.de>
9805         PR tree-optimization/102155
9806         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
9807         over a part of the RPO array and do not recurse here.
9808         Dump blocks marked as always executed.
9809         (fill_always_executed_in): Walk over the RPO array and
9810         process loops whose header we run into.
9811         (loop_invariant_motion_in_fun): Compute the first RPO
9812         using rev_post_order_and_mark_dfs_back_seme in iteration
9813         order and pass that to fill_always_executed_in.
9815 2021-09-02  YunQiang Su  <syq@debian.org>
9817         Revert:
9818         2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
9820         * config/mips/mips.c (mips_module_isa_name): New.
9821           mips_file_start: add .module mipsREV to all asm output
9823 2021-09-01  Jeff Law  <jlaw@localhost.localdomain>
9825         PR tree-optimization/102152
9826         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
9827         comparison to a scalar comparison before calling
9828         update_stmt_if_modified.
9830 2021-09-01  Andrew Pinski  <apinski@marvell.com>
9832         PR target/101934
9833         * config/aarch64/aarch64.c (aarch64_expand_setmem):
9834         Check STRICT_ALIGNMENT before creating an overlapping
9835         store.
9837 2021-09-01  Martin Sebor  <msebor@redhat.com>
9839         * gimple-ssa-warn-access.cc (get_size_range): Add argument.
9840         (check_access): Pass additional argument.
9841         (check_memop_access): Remove template and make a member function.
9842         (maybe_check_dealloc_call): Make a pass_waccess member function.
9843         (class pass_waccess): Add, rename, and remove members.
9844         (pass_waccess::pass_waccess): Adjust to name change.
9845         (pass_waccess::~pass_waccess): Same.
9846         (check_alloca): Make a member function.
9847         (check_alloc_size_call): Same.
9848         (check_strcat): Same.
9849         (check_strncat): Same.
9850         (check_stxcpy): Same.
9851         (check_stxncpy): Same.
9852         (check_strncmp): Same.
9853         (maybe_warn_rdwr_sizes): Rename...
9854         (pass_waccess::maybe_check_access_sizes): ...to this.
9855         (pass_waccess::check_call): Adjust to name changes.
9856         (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
9857         function.
9858         (pass_waccess::execute): Adjust to name changes.
9859         * gimple-ssa-warn-access.h (check_memop_access): Remove.
9860         * pointer-query.cc (access_ref::phi): Handle null pointer.
9861         (access_ref::inform_access): Same.
9862         (pointer_query::put_ref): Modify a cached value, not a copy of it.
9863         (pointer_query::dump): New function.
9864         (compute_objsize_r): Avoid overwriting access_ref::bndrng.  Cache
9865         more results.
9866         * pointer-query.h (pointer_query::dump): Declare.
9867         * tree-ssa-strlen.c (get_range): Simplify.  Use function query.
9868         (dump_strlen_info): Use function query.
9869         (printf_strlen_execute): Factor code out into pointer_query::put_ref.
9871 2021-09-01  Thomas Schwinge  <thomas@codesourcery.com>
9873         * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
9875 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
9877         * doc/extend.texi: Document unavailable attribute.
9878         * print-tree.c (print_node): Handle unavailable attribute.
9879         * tree-core.h (struct tree_base): Add a bit to carry unavailability.
9880         * tree.c (error_unavailable_use): New.
9881         * tree.h (TREE_UNAVAILABLE): New.
9882         (error_unavailable_use): New.
9884 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
9886         PR tree-optimization/102124
9887         * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
9888         MINUS_EXPR, if itype is unsigned with smaller precision than type,
9889         add an extra cast to signed variant of itype to ensure sign-extension.
9891 2021-09-01  Martin Liska  <mliska@suse.cz>
9893         * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
9894           edges and rather use colors for TRUE and FALSE edges.
9896 2021-09-01  Richard Biener  <rguenther@suse.de>
9898         PR tree-optimization/93491
9899         * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
9900         after processing the stmt itself.  Do not consider
9901         pure functions possibly not returning.  Properly avoid
9902         adding possibly trapping calls to EXP_GEN when there's
9903         a preceeding possibly not returning call.
9904         * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
9905         not handle calls.
9907 2021-09-01  Richard Biener  <rguenther@suse.de>
9909         PR tree-optimization/102139
9910         * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
9911         type to record a std::pair of the stmt-info and the innermost
9912         loop behavior.
9913         (dr_vec_info::group): New member.
9914         * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
9915         (vect_compute_data_ref_alignment): Verify the recorded
9916         base alignment can be used.
9917         (data_ref_pair): Remove.
9918         (dr_group_sort_cmp): Adjust.
9919         (vect_analyze_data_ref_accesses): Store the group-ID in the
9920         dr_vec_info and operate on a vector of dr_vec_infos.
9922 2021-09-01  YunQiang Su  <yunqiang.su@cipunited.com>
9924         * read-md.c (md_reader::handle_enum): support value assignation.
9925         * doc/md.texi: record define_c_enum value assignation support.
9927 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
9929         PR tree-optimization/102141
9930         * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
9931         argument.  If false, emit stmts after gsi instead of before, and
9932         with GSI_NEW_STMT.
9933         (bswap_replace): Adjust callers.  When converting output of bswap,
9934         emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
9935         of before it.
9937 2021-09-01  liuhongt  <hongtao.liu@intel.com>
9939         * emit-rtl.c (validate_subreg): Get rid of all float-int
9940         special cases.
9942 2021-09-01  liuhongt  <hongtao.liu@intel.com>
9944         Revert:
9945         2021-08-30  liuhongt  <hongtao.liu@intel.com>
9947         * expmed.c (extract_bit_field_1): Make sure we're playing with
9948         integral modes before call extract_integral_bit_field.
9949         (extract_integral_bit_field): Add a parameter of type
9950         scalar_int_mode which corresponds to of tmode.
9951         And call extract_and_convert_fixed_bit_field instead of
9952         extract_fixed_bit_field and convert_extracted_bit_field.
9953         (extract_and_convert_fixed_bit_field): New function, it's a
9954         combination of extract_fixed_bit_field and
9955         convert_extracted_bit_field.
9957 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
9959         * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
9961 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
9963         * omp-general.h (omp_is_reference): Rename to...
9964         (omp_privatize_by_reference): ... this.  Adjust all users...
9965         * omp-general.c: ... here, ...
9966         * gimplify.c: ... here, ...
9967         * omp-expand.c: ... here, ...
9968         * omp-low.c: ... here.
9970 2021-08-31  Martin Sebor  <msebor@redhat.com>
9972         * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
9973         pointer element for equality to zero, not that of the cotaining
9974         array.
9976 2021-08-31  Martin Sebor  <msebor@redhat.com>
9978         * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
9980 2021-08-31  Martin Sebor  <msebor@redhat.com>
9982         * function.h (function): Add comments.
9983         (get_range_query): Same.  Add attribute returns nonnull.
9985 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
9987         * expr.c (convert_modes): Don't use subreg_promoted_mode on a
9988         SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
9989         Instead use the standard (safer) is_a <scalar_int_mode> idiom.
9991 2021-08-31  Jeff Law  <jlaw@localhost.localdomain>
9993         * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
9994         tm_file.
9995         (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
9996         (mn10300-*-*, am33_2.0-*-linux*): Likewise.
9997         (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
9998         (m32c-*-elf*, m32c-*-rtems*): Likewise.
9999         * config/cris/cris.h (DBX_NO_XREFS): Remove.
10000         (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
10001         * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
10002         (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
10003         * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
10004         * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
10006 2021-08-31  Marcel Vollweiler  <marcel@codesourcery.com>
10008         * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
10009         allowed on target constructs and only with particular other clauses.
10010         * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
10011         'ancestor' is used.
10012         * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
10013         structs when 'ancestor' is used.
10014         (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
10015         'ancestor' is used.
10016         * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
10017         * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
10019 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
10021         * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
10022         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
10023         subreg.
10024         * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
10025         Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
10026         partial subreg from a SUBREG_PROMOTED_VAR_P subreg.  Generate
10027         SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
10028         [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
10029         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
10030         subreg.  Generate ZERO_EXTEND of the SUBREG_REG when a subreg
10031         would be paradoxical.
10033 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
10035         * combine.c (combine_simplify_rtx): Avoid converting an explicit
10036         TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
10037         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10039 2021-08-31  Richard Biener  <rguenther@suse.de>
10041         PR tree-optimization/102142
10042         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
10043         condition under which to unset the visited flag.
10045 2021-08-31  Richard Biener  <rguenther@suse.de>
10047         PR middle-end/102129
10048         * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
10049         possibly trapping expressions across calls.
10051 2021-08-31  Jakub Jelinek  <jakub@redhat.com>
10053         PR tree-optimization/102134
10054         * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
10055         UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
10056         become negative.
10058 2021-08-31  Andrew Pinski  <apinski@marvell.com>
10060         PR driver/79181
10061         * collect-utils.c (setup_signals): New declaration.
10062         * collect-utils.h (setup_signals): New function.
10063         * collect2.c (handler): Delete.
10064         (main): Instead of manually setting up the signals,
10065         just call setup_signals.
10066         * lto-wrapper.c (main): Likewise.
10068 2021-08-31  Andrew Pinski  <apinski@marvell.com>
10070         PR target/56337
10071         * config/i386/i386-protos.h (x86_output_aligned_bss):
10072         Change align argument to unsigned type.
10073         (x86_elf_aligned_decl_common): Likewise.
10074         * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
10075         (x86_output_aligned_bss): Likewise.
10077 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
10079         * config/mips/mips.c (mips_module_isa_name): New.
10080           mips_file_start: add .module mipsREV to all asm output
10082 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
10084         * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
10085           use enum instead of int for 'isa' member.
10086         * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
10087           config/mips/netbsd.h: replace hardcoded numbers with enum.
10089 2021-08-31  liuhongt  <hongtao.liu@intel.com>
10091         * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
10092         define_split to define_insn_and_split.
10093         (*avx2_eq<mode>3): Removed.
10094         (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
10095         (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
10096         (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
10097         adjust pattern.
10098         (*avx2_gt<mode>3): Removed.
10099         (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
10100         define_insn to define_expand, and adjust pattern.
10101         (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
10103 2021-08-30  David Malcolm  <dmalcolm@redhat.com>
10105         PR analyzer/99260
10106         * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
10108 2021-08-30  Jason Merrill  <jason@redhat.com>
10110         * doc/invoke.texi: Document -Wmissing-requires.
10112 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10114         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
10115         TARGET_EXTRA_BUILTINS guard.
10117 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10119         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
10120         initialization of V2DI_type_node and unsigned_V2DI_type_node.
10122 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10124         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
10125         decl when new_builtins_are_live.
10126         * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
10127         built-in.
10129 2021-08-30  Pat Haugen  <pthaugen@linux.ibm.com>
10131         * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
10132         OPTION_MASK_P10_FUSION_2STORE.
10133         (POWERPC_MASKS): Likewise.
10134         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
10135         store fusion for Power10.
10136         (is_fusable_store): New.
10137         (power10_sched_reorder): Likewise.
10138         (rs6000_sched_reorder): Do Power10 specific reordering.
10139         (rs6000_sched_reorder2): Likewise.
10140         * config/rs6000/rs6000.opt: Add new option.
10142 2021-08-30  Richard Biener  <rguenther@suse.de>
10144         PR tree-optimization/102128
10145         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
10146         Move scanning for if-converted scalar code to the caller
10147         and instead delay clearing the visited flag for profitable
10148         subgraphs.
10149         (vect_slp_region): Cost all subgraphs before scheduling.
10150         For if-converted BB vectorization scan for scalar COND_EXPRs
10151         and do not vectorize if any found and the cost model is
10152         very-cheap.
10154 2021-08-30  Richard Biener  <rguenther@suse.de>
10156         * common.opt (fexceptions): Mark
10157         EnabledBy(fnon-call-exceptions).
10158         * doc/invoke.texi (fnon-call-exceptions): Document this
10159         enables -fexceptions.
10161 2021-08-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10163         * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
10164         is not already defined.
10166 2021-08-30  liuhongt  <hongtao.liu@intel.com>
10168         * expmed.c (extract_bit_field_1): Make sure we're playing with
10169         integral modes before call extract_integral_bit_field.
10170         (extract_integral_bit_field): Add a parameter of type
10171         scalar_int_mode which corresponds to of tmode.
10172         And call extract_and_convert_fixed_bit_field instead of
10173         extract_fixed_bit_field and convert_extracted_bit_field.
10174         (extract_and_convert_fixed_bit_field): New function, it's a
10175         combination of extract_fixed_bit_field and
10176         convert_extracted_bit_field.
10178 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
10180         * config/darwin.c (darwin_libc_has_function): Do not run
10181         the checks for x86 or modern Darwin.  Make sure that there
10182         is a value set for darwin_macosx_version_min before testing.
10184 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
10186         * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
10188 2021-08-28  Jan Hubicka  <hubicka@ucw.cz>
10190         * ipa-modref-tree.h (modref_access_node::merge): Break out
10191         logic combining offsets and logic merging ranges to ...
10192         (modref_access_node::combined_offsets): ... here
10193         (modref_access_node::update2): ... here
10194         (modref_access_node::closer_pair_p): New member function.
10195         (modref_access_node::forced_merge): New member function.
10196         (modre_ref_node::insert): Do merging when table is full.
10198 2021-08-28  YunQiang Su  <yunqiang.su@cipunited.com>
10200         PR target/102089
10201         * config.gcc: MIPS: use N64 ABI by default if the triple end
10202           with -gnuabi64, which is used by Debian since 2013.
10204 2021-08-28  Alexandre Oliva  <oliva@adacore.com>
10206         * ipa-modref.c (analyze_function): Skip debug stmts.
10207         * tree-inline.c (estimate_num_insn): Consider builtins even
10208         without a cgraph_node.
10210 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
10212         * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
10213         * config/h8300/h8300.c (h8300_expand_branch): Remove function.
10214         * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
10215         * config/h8300/h8300.md (eqne): New code iterator.
10216         (geultu, geultu_to_c): Similarly.
10217         * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
10218         (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
10219         (cmp<mode>_c): New pattern
10221 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
10223         * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
10224         function.
10225         (dom_opt_dom_walker::optimize_stmt): Use it.
10227 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
10229         * config/darwin.c (finalize_ctors): Add a section-start linker-
10230         visible symbol.
10231         (finalize_dtors): Likewise.
10232         * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
10234 2021-08-27  Bill Schmidt  <wschmidt@linux.ibm.com>
10236         * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
10237         (rs6000_init_builtins): Call rs6000_init_generated_builtins.  Skip the
10238         old initialization logic when new builtins are enabled.
10239         * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
10240         rs6000_autoinit_builtins to rs6000_init_generated_builtins.
10241         (write_init_file): Likewise.
10243 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
10245         * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
10246         gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
10247         (amdgcn-* | gcn-*) Likewise.
10249 2021-08-27  Anthony Sharp  <anthonysharp15@gmail.com>
10251         * symbol-summary.h: Added missing template keyword.
10253 2021-08-27  Richard Biener  <rguenther@suse.de>
10255         PR tree-optimization/45178
10256         * tree-ssa-dce.c (find_obviously_necessary_stmts): For
10257         infinite loops without exit do not mark control dependent
10258         edges of the latch necessary.
10260 2021-08-27  konglin1  <lingling.kong@intel.com>
10262         PR target/101472
10263         * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
10264         UNSPEC_VSIBADDR.
10265         (<avx512>scattersi<mode>): Likewise.
10266         (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
10267         (*avx512f_scatterdi<VI48F:mode>): Likewise
10269 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
10271         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
10272         support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
10273         MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
10274         P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
10275         P10_BUILTIN_PEXTD on Power10.
10277 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
10279         * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
10280         signedness for some Power10 bifs.
10282 2021-08-27  David Edelsohn  <dje.gcc@gmail.com>
10284         PR target/102068
10285         * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
10286         computed alignment if the entire struct has attribute packed.
10288 2021-08-27  liuhongt  <hongtao.liu@intel.com>
10290         PR target/98167
10291         PR target/43147
10292         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
10293         IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
10294         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
10295         IX86_BUILTIN_SHUFPS256.
10296         (ix86_masked_all_ones): New function.
10298 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
10300         * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
10301         (conditional moves with memory inputs splitters): Ditto.
10302         * config/i386/sse.md (one_cmpl<mode>2): Simplify.
10304 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10306         * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
10307         search after merging.
10309 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10311         * config/rs6000/rs6000-overload.def: Add remaining overloads.
10313 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10315         * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
10317 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10319         * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
10320         crypto, and htm stanzas.
10322 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10324         * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
10326 2021-08-26  Martin Sebor  <msebor@redhat.com>
10328         * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
10329         (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
10330         (warn_uninitialized_vars): Same.  Reduce visibility of locals.
10331         (warn_uninitialized_phi): Same.
10333 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
10335         * tree-ssa-ccp.c (get_individual_bits): Helper function to
10336         extract the individual bits from a widest_int constant (mask).
10337         (gray_code_bit_flips): New read-only table for effiently
10338         enumerating permutations/combinations of bits.
10339         (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
10340         by unknown counts that are guaranteed less than the target
10341         precision and four or fewer unknown bits by enumeration.
10342         [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
10343         enumeration under the same conditions.  Handle remaining
10344         shifts as a mask based upon the minimum possible shift value.
10346 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
10347             Richard Biener  <rguenther@suse.de>
10349         * match.pd (shift transformations): Remove a redundant
10350         !POINTER_TYPE_P check.
10352 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
10354         PR target/102057
10355         * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
10356         Set all_regs to true in the call to replace_rtx.
10358 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10360         * ipa-modref-tree.c (test_insert_search_collapse): Update test.
10361         * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
10362         hiting --param modref-max-refs limit.
10363         (modref_tree:insert_base): Be smarter when hitting
10364         --param modref-max-bases limit. Add new parameter REF.
10365         (modref_tree:insert): Update.
10366         (modref_tree:merge): Update.
10367         * ipa-modref.c (read_modref_records): Update.
10369 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10371         * params.opt: (modref-max-adjustments): Add full stop.
10373 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10375         * ipa-modref-tree.h (modref_ref_node::verify): New member
10376         functoin.
10377         (modref_ref_node::insert): Use it.
10378         (modref_ref_node::try_mere_with): Fix off by one error.
10380 2021-08-26  Martin Liska  <mliska@suse.cz>
10381             Stefan Kneifel  <stefan.kneifel@bluewin.ch>
10383         * cgraph.h (create_version_clone_with_body): Add new parameter.
10384         * cgraphclones.c: Likewise.
10385         * multiple_target.c (create_dispatcher_calls): Do not use
10386         numbered suffixes.
10387         (create_target_clone): Likewise here.
10389 2021-08-26  Jonathan Yong  <10walls@gmail.com>
10391         * doc/extend.texi: Add note about reserved priorities
10392         to the constructor attribute.
10394 2021-08-25  Martin Sebor  <msebor@redhat.com>
10396         * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
10397         range table header alone.
10398         * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
10400 2021-08-25  Jan Hubicka  <hubicka@ucw.cz>
10402         * doc/invoke.texi: Document --param modref-max-adjustments.
10403         * ipa-modref-tree.c (test_insert_search_collapse): Update.
10404         (test_merge): Update.
10405         * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
10406         (modref_access_node::operator==): Fix handling of access ranges.
10407         (modref_access_node::contains): Constify parameter; handle also
10408         mismatched parm offsets.
10409         (modref_access_node::update): New function.
10410         (modref_access_node::merge): New function.
10411         (unspecified_modref_access_node): Update constructor.
10412         (modref_ref_node::insert_access): Add record_adjustments parameter;
10413         handle merging.
10414         (modref_ref_node::try_merge_with): New private function.
10415         (modref_tree::insert): New record_adjustments parameter.
10416         (modref_tree::merge): New record_adjustments parameter.
10417         (modref_tree::copy_from): Update.
10418         * ipa-modref.c (dump_access): Dump adjustments field.
10419         (get_access): Update constructor.
10420         (record_access): Update call of insert.
10421         (record_access_lto): Update call of insert.
10422         (merge_call_side_effects): Add record_adjustments parameter.
10423         (get_access_for_fnspec): Update.
10424         (process_fnspec): Update.
10425         (analyze_call): Update.
10426         (analyze_function): Update.
10427         (read_modref_records): Update.
10428         (ipa_merge_modref_summary_after_inlining): Update.
10429         (propagate_unknown_call): Update.
10430         (modref_propagate_in_scc): Update.
10431         * params.opt (param-max-modref-adjustments=): New.
10433 2021-08-25  Michael Meissner  <meissner@linux.ibm.com>
10435         * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
10436         UNSPEC_XXSPLTID.
10437         (xxspltiw_v4si): Use vecperm type attribute.
10438         (xxspltiw_v4si_inst): Use vecperm type attribute.
10439         (xxspltiw_v4sf_inst): Likewise.
10440         (xxspltidp_v2df): Use vecperm type attribute.  Use
10441         UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
10442         (xxspltidp_v2df_inst): Likewise.
10443         (xxsplti32dx_v4si): Use vecperm type attribute.
10444         (xxsplti32dx_v4si_inst): Likewise.
10445         (xxsplti32dx_v4sf_inst): Likewise.
10446         (xxblend_<mode>): Likewise.
10447         (xxpermx): Likewise.
10448         (xxpermx_inst): Likewise.
10449         (xxeval): Likewise.
10451 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
10453         PR other/93067
10454         * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
10455         * diagnostic.c (diagnostic_initialize_input_context): New function.
10456         * diagnostic.h (diagnostic_initialize_input_context): Declare.
10457         * input.c (default_charset_callback): New function.
10458         (file_cache::initialize_input_context): New function.
10459         (file_cache_slot::create): Added ability to convert the input
10460         according to the input context.
10461         (file_cache::file_cache): Initialize the new input context.
10462         (class file_cache_slot): Added new m_alloc_offset member.
10463         (file_cache_slot::file_cache_slot): Initialize the new member.
10464         (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
10465         (file_cache_slot::maybe_grow): Likewise.
10466         (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
10467         (file_cache_slot::get_next_line): Likewise.
10468         * input.h (class file_cache): Added input context member.
10470 2021-08-25  Richard Biener  <rguenther@suse.de>
10472         PR tree-optimization/102046
10473         * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
10474         update ->any_pattern when swapping operands.
10476 2021-08-25  Hongyu Wang  <hongyu.wang@intel.com>
10478         PR target/101716
10479         * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
10480         (ix86_decompose_address): Remove retval check for ASHIFT,
10481         allow non-canonical zero extend if AND mask covers ASHIFT
10482         count.
10483         (ix86_legitimate_address_p): Adjust condition for decompose.
10484         (ix86_rtx_costs): Adjust cost for lea with non-canonical
10485         zero-extend.
10486         Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
10488 2021-08-25  Jiufu Guo  <guojiufu@linux.ibm.com>
10490         PR tree-optimization/101145
10491         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
10492         New function.
10493         (number_of_iterations_lt): Invoke above function.
10494         (adjust_cond_for_loop_until_wrap):
10495         Merge to number_of_iterations_until_wrap.
10496         (number_of_iterations_cond): Update invokes for
10497         adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
10499 2021-08-25  konglin1  <lingling.kong@intel.com>
10501         PR target/101471
10502         * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
10503         macro define in O0.
10504         (_mm512_mask_fpclass_ps_mask): Ditto.
10506 2021-08-25  Kewen Lin  <linkw@linux.ibm.com>
10508         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
10509         (vec_unpacku_hi_v8hi): Likewise.
10510         (vec_unpacku_lo_v16qi): Likewise.
10511         (vec_unpacku_lo_v8hi): Likewise.
10512         (vec_unpacku_hi_<VP_small_lc>): New define_expand.
10513         (vec_unpacku_lo_<VP_small_lc>): Likewise.
10515 2021-08-24  David Edelsohn  <dje.gcc@gmail.com>
10517         * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
10518         * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
10519         * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
10520         * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
10522 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
10524         PR middle-end/102031
10525         * simplify-rtx.c (simplify_truncation): When comparing precisions
10526         use "subreg_prec" variable, not "subreg_mode".
10528 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
10530         * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
10531         stanzas.
10533 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
10535         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
10536         various pointer type nodes.
10537         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
10538         values for various pointer types.
10539         (ptr_V16QI_type_node): New macro.
10540         (ptr_V1TI_type_node): New macro.
10541         (ptr_V2DI_type_node): New macro.
10542         (ptr_V2DF_type_node): New macro.
10543         (ptr_V4SI_type_node): New macro.
10544         (ptr_V4SF_type_node): New macro.
10545         (ptr_V8HI_type_node): New macro.
10546         (ptr_unsigned_V16QI_type_node): New macro.
10547         (ptr_unsigned_V1TI_type_node): New macro.
10548         (ptr_unsigned_V8HI_type_node): New macro.
10549         (ptr_unsigned_V4SI_type_node): New macro.
10550         (ptr_unsigned_V2DI_type_node): New macro.
10551         (ptr_bool_V16QI_type_node): New macro.
10552         (ptr_bool_V8HI_type_node): New macro.
10553         (ptr_bool_V4SI_type_node): New macro.
10554         (ptr_bool_V2DI_type_node): New macro.
10555         (ptr_bool_V1TI_type_node): New macro.
10556         (ptr_pixel_type_node): New macro.
10557         (ptr_intQI_type_node): New macro.
10558         (ptr_uintQI_type_node): New macro.
10559         (ptr_intHI_type_node): New macro.
10560         (ptr_uintHI_type_node): New macro.
10561         (ptr_intSI_type_node): New macro.
10562         (ptr_uintSI_type_node): New macro.
10563         (ptr_intDI_type_node): New macro.
10564         (ptr_uintDI_type_node): New macro.
10565         (ptr_intTI_type_node): New macro.
10566         (ptr_uintTI_type_node): New macro.
10567         (ptr_long_integer_type_node): New macro.
10568         (ptr_long_unsigned_type_node): New macro.
10569         (ptr_float_type_node): New macro.
10570         (ptr_double_type_node): New macro.
10571         (ptr_long_double_type_node): New macro.
10572         (ptr_dfloat64_type_node): New macro.
10573         (ptr_dfloat128_type_node): New macro.
10574         (ptr_ieee128_type_node): New macro.
10575         (ptr_ibm128_type_node): New macro.
10576         (ptr_vector_pair_type_node): New macro.
10577         (ptr_vector_quad_type_node): New macro.
10578         (ptr_long_long_integer_type_node): New macro.
10579         (ptr_long_long_unsigned_type_node): New macro.
10581 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
10583         * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
10584         and power9-64 stanzas.
10586 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
10587             Tom de Vries  <tdevries@suse.de>
10589         * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
10590         * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
10591         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
10592         a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
10593         * config/nvptx/t-nvptx (nvptx-c.o): New rule.
10594         * config/nvptx/nvptx-c.c: New source file.
10595         (nvptx_cpu_cpp_builtins): Move implementation here.
10597 2021-08-24  Martin Sebor  <msebor@redhat.com>
10599         PR middle-end/101600
10600         PR middle-end/101977
10601         * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
10602         the phrasing of a warning.
10603         (check_access): Use the remaining size after subtracting any offset
10604         rather than the whole object size.
10605         * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
10606         clear for any nonnull PHI argument.
10607         (compute_objsize): Clear argument.
10609 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
10611         * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
10613 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
10615         * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
10616         stanzas.
10618 2021-08-24  Andrew MacLeod  <amacleod@redhat.com>
10620         * value-relation.cc (rr_transitive_table): New.
10621         (relation_transitive): New.
10622         (value_relation::swap): Remove.
10623         (value_relation::apply_transitive): New.
10624         (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
10625         (relation_oracle::register_relation): Call register_transitives.
10626         (relation_oracle::register_transitives): New.
10627         * value-relation.h (relation_oracle): Add new temporary bitmap and
10628         methods.
10630 2021-08-24  H.J. Lu  <hjl.tools@gmail.com>
10632         PR target/102021
10633         * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
10634         from integer to a pseudo vector register.
10636 2021-08-24  Richard Biener  <rguenther@suse.de>
10638         PR tree-optimization/100089
10639         * tree-vectorizer.h (vect_slp_bb): Rename to ...
10640         (vect_slp_if_converted_bb): ... this and get the original
10641         loop as new argument.
10642         * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
10643         pass original loop to vect_slp_if_converted_bb.
10644         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
10645         If orig_loop was passed scan the not vectorized stmts
10646         for COND_EXPRs and force not profitable if found.
10647         (vect_slp_region): Pass down all SLP instances to costing
10648         if orig_loop was specified.
10649         (vect_slp_bbs): Pass through orig_loop.
10650         (vect_slp_bb): Rename to ...
10651         (vect_slp_if_converted_bb): ... this and get the original
10652         loop as new argument.
10653         (vect_slp_function): Adjust.
10655 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
10657         PR target/102035
10658         * config/arm/arm.md (attribute arch): Add fix_vlldm.
10659         (arch_enabled): Use it.
10660         * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
10661         use when erratum mitigation is needed.
10663 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
10665         PR target/102035
10666         * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
10667         * doc/invoke.texi (Arm Options): Document it.
10668         * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
10669         (ALL_QUIRKS): Add quirk_vlldm.
10670         (cortex-m33): Add quirk_vlldm.
10671         (cortex-m35p, cortex-m55): Likewise.
10672         * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
10673         targetting an affected CPU and not explicitly controlled on
10674         the command line.
10676 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
10678         * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
10679         (lazy_load_multiple_insn): Likewise.
10681 2021-08-24  liuhongt  <hongtao.liu@intel.com>
10683         PR target/101989
10684         * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
10685         Enable avx512 embedded broadcast.
10686         (*<avx512>_vternlog<mode>_all): Ditto.
10687         (<avx512>_vternlog<mode>_mask): Ditto.
10689 2021-08-24  liuhongt  <hongtao.liu@intel.com>
10691         PR target/101989
10692         * config/i386/i386.c (ix86_rtx_costs): Define cost for
10693         UNSPEC_VTERNLOG.
10694         * config/i386/i386.h (STRIP_UNARY): New macro.
10695         * config/i386/predicates.md (reg_or_notreg_operand): New
10696         predicate.
10697         * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
10698         (*<avx512>_vternlog<mode>_1): New pre_reload
10699         define_insn_and_split.
10700         (*<avx512>_vternlog<mode>_2): Ditto.
10701         (*<avx512>_vternlog<mode>_3): Ditto.
10702         (any_logic1,any_logic2): New code iterator.
10703         (logic_op): New code attribute.
10704         (ternlogsuffix): Extend to VNxDF and VNxSF.
10706 2021-08-24  Richard Biener  <rguenther@suse.de>
10708         * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
10709         * params.opt (--param vect-inner-loop-cost-factor): Adjust
10710         maximum value.
10711         * tree-vect-loop.c (vect_analyze_loop_form): Initialize
10712         inner_loop_cost_factor to the minimum of the estimated number
10713         of iterations of the inner loop and vect-inner-loop-cost-factor.
10715 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
10716             Richard Biener  <rguenther@suse.de>
10718         * config/i386/i386-features.c (compute_convert_gain): Provide
10719         more accurate values for CONST_INT, when optimizing for size.
10720         * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
10721         * config/i386/i386.h (COSTS_N_BYTES): to here.
10723 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
10724             Jakub Jelinek  <jakub@redhat.com>
10726         PR middle-end/102029
10727         * match.pd (shift transformations): Add an additional check for
10728         !POINTER_TYPE_P in the recently added left shift transformation.
10730 2021-08-24  liuhongt  <hongtao.liu@intel.com>
10732         PR tree-optimization/100089
10733         * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
10734         loop vectorizer when cost model is very-cheap.
10736 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
10738         * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
10739         asprintf, which is not available on AIX.
10741 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
10743         * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
10744         * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
10746 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
10748         * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
10749         * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
10750         last.
10751         * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
10752         (rbtree.o): Likewise.
10753         (rs6000-gen-builtins): Likewise.
10754         (rs6000-builtins.c): Likewise.
10755         (rs6000-builtins.h): Likewise.
10756         (rs6000.o): Add dependency.
10757         (EXTRA_HEADERS): Add rs6000-vecdefines.h.
10758         (rs6000-vecdefines.h): New target.
10759         (rs6000-builtins.o): Likewise.
10760         (rs6000-call.o): Add rs6000-builtins.h as a dependency.
10761         (rs6000-c.o): Likewise.
10763 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
10765         PR target/101830
10766         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
10767         Diagnose buffer overrun.
10768         (safe_inc_pos): Fix overrun detection.
10769         (match_identifier): Diagnose buffer overrun.
10770         (match_integer): Likewise.
10771         (match_to_right_bracket): Likewise.
10773 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
10775         * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
10776         Improve range compare.
10777         (modref_access_node::contains): New member function.
10778         (modref_access_node::search): Remove.
10779         (modref_access_node::insert): Be smarter about subaccesses.
10781 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
10783         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
10784         <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
10785         * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
10786         Add "intel_mic".
10788 2021-08-23  Jeff Law  <jlaw@localhost.localdomain>
10790         * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
10791         argument.
10792         * config/h8300/jumpcall.md (call, call_value): Restrict to
10793         !SIBLING_CALL_P cases.
10794         (subcall, sibcall_value): New patterns & expanders.
10795         * config/h8300/proepi.md (epilogue): Pass new argument to
10796         h8300_expand_epilogue.
10797         (sibcall_epilogue): New expander.
10798         * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
10799         epilogues too.
10800         (h8300_ok_for_sibcall_p): New function.
10801         (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
10803 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
10805         * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
10806         Handle case where the operand is already the desired mode.
10808 2021-08-23  Richard Biener  <rguenther@suse.de>
10810         PR ipa/97565
10811         * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
10812         in addition to has_gimple_body.
10814 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
10816         PR middle-end/101949
10817         * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
10818         EAF_NOCLOBBER
10820 2021-08-23  Martin Liska  <mliska@suse.cz>
10822         * doc/invoke.texi: Put the option out of -mxl-mode-app-model
10823         table.
10825 2021-08-23  Richard Biener  <rguenther@suse.de>
10827         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
10828         Properly scale the inner loop cost only once.
10830 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
10832         * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
10833         Provide bounds for unsigned (and signed with non-negative operands)
10834         division and modulus.
10836 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
10838         * simplify-rtx.c (simplify_truncation): Generalize simplification
10839         of (truncate:A (subreg:B X)).
10840         (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
10841         SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
10842         already has the desired machine mode.
10843         (test_scalar_int_ops): Add tests that useless extensions and
10844         truncations are optimized away.
10845         (test_scalar_int_ext_ops): New self-test function to confirm
10846         that truncations of extensions are correctly simplified.
10847         (test_scalar_int_ext_ops2): New self-test function to check
10848         truncations of truncations, extensions of extensions, and
10849         truncations of extensions.
10850         (test_scalar_ops): Call the above two functions with a
10851         representative sampling of integer machine modes.
10853 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
10855         * match.pd (shift transformations): Change the sign of an
10856         LSHIFT_EXPR if it reduces the number of explicit conversions.
10858 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
10860         PR tree-optimization/86723
10861         * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
10862         cast64_to_32 argument, set *cast64_to_32 to false, unless n is
10863         non-memory permutation of 64-bit src which only has bytes of
10864         0 or [5..8] and n->range is 4.
10865         (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
10866         find_bswap_or_nop_finalize caller, support bswap with some bytes
10867         zeroed, as long as at least two bytes are not zeroed.
10868         (bswap_replace): Add mask argument and handle masking of bswap
10869         result.
10870         (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
10871         caller, punt if cast64_to_32 or mask is not all ones.
10872         (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
10873         caller, for now punt if cast64_to_32.
10875 2021-08-23  Richard Biener  <rguenther@suse.de>
10877         PR tree-optimization/79334
10878         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
10879         a type also for COMPONENT_REFs.
10880         (vn_reference_may_trap): Check ARRAY_REF with constant index
10881         against the array domain.
10883 2021-08-23  liuhongt  <hongtao.liu@intel.com>
10885         PR target/102016
10886         * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
10887         TARGET_AVX512BW to condition.
10889 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
10891         PR debug/101905
10892         * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
10893         register variables already during early_dwarf if possible.
10895 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
10897         * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
10899 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
10901         PR target/100856
10902         * config/arm/arm.opt: Fix typo.
10903         * config/arm/t-rmprofile: Fix typo.
10905 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
10907         * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
10908         (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
10909         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
10910         case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
10911         * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
10912         if either grainsize or num_tasks clause has the strict modifier.
10914 2021-08-23  Martin Liska  <mliska@suse.cz>
10916         * dbgcnt.def (DEBUG_COUNTER): New counter.
10917         * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
10919 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
10921         * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
10923 2021-08-23  Xi Ruoyao  <xry111@mengyan1223.wang>
10925         PR target/101922
10926         * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
10927           Declare.
10928         * config/mips/mips.c (mips_msa_output_shift_immediate): New
10929           function.
10930         * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
10931           vlshr<mode>3): Call it.
10933 2021-08-22  Jan Hubicka  <hubicka@ucw.cz>
10934             Martin Liska  <mliska@suse.cz>
10936         PR middle-end/101949
10937         * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
10938         ~EAF_NOCLOBBER.
10940 2021-08-21  Dragan Mladjenovic  <OT_Dragan.Mladjenovic@mediatek.com>
10942         * config/mips/mips.c (mips_function_rodata_section,
10943         TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
10945 2021-08-21  John David Anglin  <danglin@gcc.gnu.org>
10947         * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
10949 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10951         * configure.ac (thread-local storage support): Remove tls_first_major
10952         and tls_first_minor.  Use "$conftest_s" to check support.
10953         * configure: Regenerate.
10955 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10957         * configure.ac: Fixup formatting.
10959 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10961         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
10962         * configure.ac: ... update all callers.
10964 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10966         PR target/91602
10967         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
10968         (gcc_GAS_VERSION_GTE_IFELSE): Remove.
10969         (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
10970         * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
10971         Remove remaining checks for in-tree assembler.
10972         * configure: Regenerate.
10974 2021-08-20  Jeff Law  <jlaw@localhost.localdomain>
10976         * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
10977         by 15 bits for H8/300H and H8/S.  Improve logical shifts by 12
10978         bits for H8/S.
10979         (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
10980         H8/300H.  Improve arithmetic shift right by 15 bits for H8/S.
10981         Improve logical shifts by 27 bits for H8/S.
10982         (get_shift_alg): Corresponding changes.
10983         (h8300_option_override): Revert to loops for -Os when profitable.
10985 2021-08-20  Richard Biener  <rguenther@suse.de>
10987         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
10988         BBs.
10989         (vect_analyze_data_ref_accesses): Likewise.  Assign the BB
10990         index as group_id when dataref_groups were not computed.
10991         * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
10992         we advace to the next BB.
10994 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
10996         * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
10997         builtins.
10999 2021-08-20  Martin Liska  <mliska@suse.cz>
11001         PR gcov-profile/89961
11002         * gcov.c (make_gcov_file_name): Rewrite using std::string.
11003         (mangle_name): Simplify, do not used the second argument.
11004         (strip_extention): New function.
11005         (get_md5sum): Likewise.
11006         (get_gcov_intermediate_filename): Handle properly -p and -x
11007         options.
11008         (output_gcov_file): Use string type.
11009         (generate_results): Likewise.
11010         (md5sum_to_hex): Remove.
11012 2021-08-20  Michael Meissner  <meissner@linux.ibm.com>
11014         * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
11015         (UNSPEC_XXSPLTIW): Move to vsx.md.
11016         (UNSPEC_XXSPLTID): Move to vsx.md.
11017         (UNSPEC_XXSPLTI32DX): Move to vsx.md.
11018         (UNSPEC_XXBLEND): Move to vsx.md.
11019         (UNSPEC_XXPERMX): Move to vsx.md.
11020         (VM3): Move to vsx.md.
11021         (VM3_char): Move to vsx.md.
11022         (xxspltiw_v4si): Move to vsx.md.
11023         (xxspltiw_v4sf): Move to vsx.md.
11024         (xxspltiw_v4sf_inst): Move to vsx.md.
11025         (xxspltidp_v2df): Move to vsx.md.
11026         (xxspltidp_v2df_inst): Move to vsx.md.
11027         (xxsplti32dx_v4si_inst): Move to vsx.md.
11028         (xxsplti32dx_v4sf): Move to vsx.md.
11029         (xxsplti32dx_v4sf_inst): Move to vsx.md.
11030         (xxblend_<mode>): Move to vsx.md.
11031         (xxpermx): Move to vsx.md.
11032         (xxpermx_inst): Move to vsx.md.
11033         * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
11034         (UNSPEC_XXSPLTIW): Move from altivec.md.
11035         (UNSPEC_XXSPLTID): Move from altivec.md.
11036         (UNSPEC_XXSPLTI32DX): Move from altivec.md.
11037         (UNSPEC_XXBLEND): Move from altivec.md.
11038         (UNSPEC_XXPERMX): Move from altivec.md.
11039         (VM3): Move from altivec.md.
11040         (VM3_char): Move from altivec.md.
11041         (xxspltiw_v4si): Move from altivec.md.
11042         (xxspltiw_v4sf): Move from altivec.md.
11043         (xxspltiw_v4sf_inst): Move from altivec.md.
11044         (xxspltidp_v2df): Move from altivec.md.
11045         (xxspltidp_v2df_inst): Move from altivec.md.
11046         (xxsplti32dx_v4si_inst): Move from altivec.md.
11047         (xxsplti32dx_v4sf): Move from altivec.md.
11048         (xxsplti32dx_v4sf_inst): Move from altivec.md.
11049         (xxblend_<mode>): Move from altivec.md.
11050         (xxpermx): Move from altivec.md.
11051         (xxpermx_inst): Move from altivec.md.
11053 2021-08-19  Roger Sayle  <roger@nextmovesoftware.com>
11055         * tree-vect-generic.c (expand_vector_operations_1): Use either
11056         gimplify_build1 or gimplify_build2 instead of gimple_build_assign
11057         when constructing scalar splat expressions.
11059 2021-08-19  Peter Bergner  <bergner@linux.ibm.com>
11061         PR target/101849
11062         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
11063         pointer to __vector_pair *.
11065 2021-08-19  Martin Sebor  <msebor@redhat.com>
11067         * gimple-range.cc: Add comments.
11068         * gimple-range.h: Same.
11070 2021-08-19  Martin Sebor  <msebor@redhat.com>
11072         PR middle-end/101984
11073         * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
11074         disable_ranger.
11076 2021-08-19  Jeff Law  <jlaw@localhost.localdomain>
11078         * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
11079         (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
11080         * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
11082 2021-08-19  Jakub Jelinek  <jakub@redhat.com>
11084         PR middle-end/101950
11085         * optabs.c (expand_clrsb_using_clz): New function.
11086         (expand_unop): Use it as another clrsb expansion fallback.
11088 2021-08-19  liuhongt  <hongtao.liu@intel.com>
11090         Revert:
11091         2021-07-28  liuhongt  <hongtao.liu@intel.com>
11093         PR target/99881
11094         * config/i386/i386.h (processor_costs): Add new member
11095         integer_to_sse.
11096         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
11097         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
11098         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
11099         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
11100         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
11101         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
11102         generic_cost, core_cost): Initialize integer_to_sse same value
11103         as sse_op.
11104         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
11105         * config/i386/i386.c (ix86_builtin_vectorization_cost):
11106         Use integer_to_sse instead of sse_op to calculate the cost of
11107         vec_construct.
11109 2021-08-18  Iain Sandoe  <iain@sandoe.co.uk>
11111         * config.gcc: Include rpath.opt for Darwin.
11112         * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
11114 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
11116         PR bootstrap/101959
11117         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
11118         Use an 'int_hash'.
11120 2021-08-18  Jonathan Wright  <jonathan.wright@arm.com>
11122         * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
11123         pattern and type cast.
11124         (vld4_lane_f32): Use float RTL pattern.
11125         (vld4q_lane_f64): Use float type cast.
11127 2021-08-18  Jan Hubicka  <hubicka@ucw.cz>
11129         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
11130         EAF_NOREAD.
11132 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
11134         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
11135         (test_map_of_type_with_ctor_and_dtor_expand): Add function.
11136         (hash_map_tests_c_tests): Call it.
11138 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
11140         * ggc.h (enum ggc_collect): New.
11141         (ggc_collect): Use it.
11142         * ggc-page.c: Adjust.
11143         * ggc-common.c: Likewise.
11144         * ggc-tests.c: Likewise.
11145         * read-rtl-function.c: Likewise.
11146         * selftest-run-tests.c: Likewise.
11147         * doc/gty.texi (Invoking the garbage collector): Likewise.
11149 2021-08-18  liuhongt  <hongtao.liu@intel.com>
11151         PR target/97147
11152         * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
11153         New macro.
11154         * config/i386/sse.md (*sse3_haddv2df3_low): Add
11155         TARGET_V2DF_REDUCTION_PREFER_HADDPD.
11156         (*sse3_hsubv2df3_low): Ditto.
11157         * config/i386/x86-tune.def
11158         (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
11160 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11162         * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
11163         (gori_compute::compute_operand_range): Add tracing.
11164         (gori_compute::logical_combine): Ditto.
11165         (gori_compute::compute_logical_operands): Ditto.
11166         (gori_compute::compute_operand1_range): Ditto.
11167         (gori_compute::compute_operand2_range): Ditto.
11168         (gori_compute::outgoing_edge_range_p): Ditto.
11169         * gimple-range-gori.h (class gori_compute): Add range_tracer.
11171 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11173         * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
11174         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
11175         * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
11176         * params.opt (--param=evrp-mode): Adjust options.
11178 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11180         * Makefile.in (OBJS): Add gimple-range-trace.o.
11181         * gimple-range-cache.h (enable_new_values): Remove unused prototype.
11182         * gimple-range-fold.cc: Adjust headers.
11183         * gimple-range-trace.cc: New.
11184         * gimple-range-trace.h: New.
11185         * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
11186         (gimple_ranger::range_of_expr): Add tracing.
11187         (gimple_ranger::range_on_entry): Ditto.
11188         (gimple_ranger::range_on_exit): Ditto.
11189         (gimple_ranger::range_on_edge): Ditto.
11190         (gimple_ranger::fold_range_internal): Ditto.
11191         (gimple_ranger::dump_bb): Do not calculate edge range twice.
11192         (trace_ranger::*): Remove.
11193         (enable_ranger): Never create a trace_ranger.
11194         (debug_seed_ranger): Move to gimple-range-trace.cc.
11195         (dump_ranger): Ditto.
11196         (debug_ranger): Ditto.
11197         * gimple-range.h: Include gimple-range-trace.h.
11198         (range_on_entry, range_on_exit): No longer virtual.
11199         (class trace_ranger): Remove.
11200         (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
11202 2021-08-17  Martin Sebor  <msebor@redhat.com>
11204         PR middle-end/101854
11205         * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
11206         in gimple-ssa-warn-access.cc.
11207         * calls.c (alloc_max_size): Move code to check_alloca.
11208         (get_size_range): Move to pointer-query.cc.
11209         (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
11210         (get_attr_nonstring_decl): Move to tree.c.
11211         (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
11212         (append_attrname): Same.
11213         (maybe_warn_rdwr_sizes): Same.
11214         (initialize_argument_information): Move code to
11215         gimple-ssa-warn-access.cc.
11216         * calls.h (maybe_warn_alloc_args_overflow): Move to
11217         gimple-ssa-warn-access.h.
11218         (get_attr_nonstring_decl): Move to tree.h.
11219         (maybe_warn_nonstring_arg):  Move to gimple-ssa-warn-access.h.
11220         (enum size_range_flags): Move to pointer-query.h.
11221         (get_size_range): Same.
11222         * gimple-ssa-warn-access.cc (has_location): Remove unused overload
11223         to avoid Clang -Wunused-function.
11224         (get_size_range): Declare static.
11225         (maybe_emit_free_warning): Rename...
11226         (maybe_check_dealloc_call): ...to this for consistency.
11227         (class pass_waccess): Add members.
11228         (pass_waccess::~pass_waccess): Defined.
11229         (alloc_max_size): Move here from calls.c.
11230         (maybe_warn_alloc_args_overflow): Same.
11231         (check_alloca): New function.
11232         (check_alloc_size_call): New function.
11233         (check_strncat): Handle another warning flag.
11234         (pass_waccess::check_builtin): Handle alloca.
11235         (fntype_argno_type): Move here from calls.c.
11236         (append_attrname): Same.
11237         (maybe_warn_rdwr_sizes): Same.
11238         (pass_waccess::check_call): Define.
11239         (check_nonstring_args): New function.
11240         (pass_waccess::check): Call new member functions.
11241         (pass_waccess::execute): Enable ranger.
11242         * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
11243         (maybe_warn_nonstring_arg): Same.
11244         * gimple-ssa-warn-restrict.c: Remove #include.
11245         * pointer-query.cc (get_size_range): Move here from calls.c.
11246         * pointer-query.h (enum size_range_flags): Same.
11247         (get_size_range): Same.
11248         * tree.c (get_attr_nonstring_decl): Move here from calls.c.
11249         * tree.h (get_attr_nonstring_decl): Move here from calls.h.
11251 2021-08-17  Thomas Schwinge  <thomas@codesourcery.com>
11253         * ggc.h (ggc_collect): Add 'force_collect' parameter.
11254         * ggc-page.c (ggc_collect): Use that one instead of global
11255         'ggc_force_collect'.  Adjust all users.
11256         * doc/gty.texi (Invoking the garbage collector): Update.
11257         * ggc-internal.h (ggc_force_collect): Remove.
11258         * ggc-common.c (ggc_force_collect): Likewise.
11259         * selftest.h (forcibly_ggc_collect): Remove.
11260         * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
11261         * read-rtl-function.c (test_loading_labels): Adjust.
11262         * selftest-run-tests.c (run_tests): Likewise.
11264 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
11266         * config/darwin.c (darwin_file_end): Reset and reclaim the
11267         section names table at the end of compile.
11269 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
11271         PR target/100340
11272         * config.in: Regenerate.
11273         * config/i386/darwin.h (EXTRA_ASM_OPTS): New
11274         (ASM_SPEC): Pass options to disable branch shortening where
11275         needed.
11276         * configure: Regenerate.
11277         * configure.ac: Detect versions of 'as' that support the
11278         optimisation which has the bug.
11280 2021-08-17  Richard Biener  <rguenther@suse.de>
11282         * optabs-query.c (supports_vec_gather_load_p): Also check
11283         for masked optabs.
11284         (supports_vec_scatter_store_p): Likewise.
11285         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
11286         back to masked variants if non-masked are not supported.
11287         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
11288         When we need to use masked gather/scatter but do not have
11289         a mask set up a constant true one.
11290         * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
11291         non-SSA_NAME masks.
11293 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
11295         * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
11296         algorithm as PLUS_EXPR to improve subtraction bit bounds.
11297         [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
11299 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
11301         * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
11302         calculate the mask-value pair result of a multiplication by an
11303         unsigned constant.
11304         (bit_value_binop) [MULT_EXPR]:  Call it from here for
11305         multiplications by (sparse) non-negative constants.
11307 2021-08-17  Christophe Lyon  <christophe.lyon@foss.st.com>
11309         PR target/100896
11310         * config.gcc (gcc_cv_initfini_array): Leave undefined for
11311         uclinuxfdpiceabi targets.
11313 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
11315         * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
11316         reverse debug stmts.
11318 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
11320         * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
11322 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
11324         * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
11325         (__LD4Q_LANE_FUNC): Likewise.
11326         (vld4_lane_u8): Define without macro.
11327         (vld4_lane_u16): Likewise.
11328         (vld4_lane_u32): Likewise.
11329         (vld4_lane_u64): Likewise.
11330         (vld4_lane_s8): Likewise.
11331         (vld4_lane_s16): Likewise.
11332         (vld4_lane_s32): Likewise.
11333         (vld4_lane_s64): Likewise.
11334         (vld4_lane_f16): Likewise.
11335         (vld4_lane_f32): Likewise.
11336         (vld4_lane_f64): Likewise.
11337         (vld4_lane_p8): Likewise.
11338         (vld4_lane_p16): Likewise.
11339         (vld4_lane_p64): Likewise.
11340         (vld4q_lane_u8): Likewise.
11341         (vld4q_lane_u16): Likewise.
11342         (vld4q_lane_u32): Likewise.
11343         (vld4q_lane_u64): Likewise.
11344         (vld4q_lane_s8): Likewise.
11345         (vld4q_lane_s16): Likewise.
11346         (vld4q_lane_s32): Likewise.
11347         (vld4q_lane_s64): Likewise.
11348         (vld4q_lane_f16): Likewise.
11349         (vld4q_lane_f32): Likewise.
11350         (vld4q_lane_f64): Likewise.
11351         (vld4q_lane_p8): Likewise.
11352         (vld4q_lane_p16): Likewise.
11353         (vld4q_lane_p64): Likewise.
11354         (vld4_lane_bf16): Likewise.
11355         (vld4q_lane_bf16): Likewise.
11357 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
11359         * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
11360         (__LD3Q_LANE_FUNC): Delete.
11361         (vld3_lane_u8): Define without macro.
11362         (vld3_lane_u16): Likewise.
11363         (vld3_lane_u32): Likewise.
11364         (vld3_lane_u64): Likewise.
11365         (vld3_lane_s8): Likewise.
11366         (vld3_lane_s16): Likewise.
11367         (vld3_lane_s32): Likewise.
11368         (vld3_lane_s64): Likewise.
11369         (vld3_lane_f16): Likewise.
11370         (vld3_lane_f32): Likewise.
11371         (vld3_lane_f64): Likewise.
11372         (vld3_lane_p8): Likewise.
11373         (vld3_lane_p16): Likewise.
11374         (vld3_lane_p64): Likewise.
11375         (vld3q_lane_u8): Likewise.
11376         (vld3q_lane_u16): Likewise.
11377         (vld3q_lane_u32): Likewise.
11378         (vld3q_lane_u64): Likewise.
11379         (vld3q_lane_s8): Likewise.
11380         (vld3q_lane_s16): Likewise.
11381         (vld3q_lane_s32): Likewise.
11382         (vld3q_lane_s64): Likewise.
11383         (vld3q_lane_f16): Likewise.
11384         (vld3q_lane_f32): Likewise.
11385         (vld3q_lane_f64): Likewise.
11386         (vld3q_lane_p8): Likewise.
11387         (vld3q_lane_p16): Likewise.
11388         (vld3q_lane_p64): Likewise.
11389         (vld3_lane_bf16): Likewise.
11390         (vld3q_lane_bf16): Likewise.
11392 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
11394         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
11395         (__LD2Q_LANE_FUNC): Likewise.
11396         (vld2_lane_u8): Define without macro.
11397         (vld2_lane_u16): Likewise.
11398         (vld2_lane_u32): Likewise.
11399         (vld2_lane_u64): Likewise.
11400         (vld2_lane_s8): Likewise.
11401         (vld2_lane_s16): Likewise.
11402         (vld2_lane_s32): Likewise.
11403         (vld2_lane_s64): Likewise.
11404         (vld2_lane_f16): Likewise.
11405         (vld2_lane_f32): Likewise.
11406         (vld2_lane_f64): Likewise.
11407         (vld2_lane_p8): Likewise.
11408         (vld2_lane_p16): Likewise.
11409         (vld2_lane_p64): Likewise.
11410         (vld2q_lane_u8): Likewise.
11411         (vld2q_lane_u16): Likewise.
11412         (vld2q_lane_u32): Likewise.
11413         (vld2q_lane_u64): Likewise.
11414         (vld2q_lane_s8): Likewise.
11415         (vld2q_lane_s16): Likewise.
11416         (vld2q_lane_s32): Likewise.
11417         (vld2q_lane_s64): Likewise.
11418         (vld2q_lane_f16): Likewise.
11419         (vld2q_lane_f32): Likewise.
11420         (vld2q_lane_f64): Likewise.
11421         (vld2q_lane_p8): Likewise.
11422         (vld2q_lane_p16): Likewise.
11423         (vld2q_lane_p64): Likewise.
11424         (vld2_lane_bf16): Likewise.
11425         (vld2q_lane_bf16): Likewise.
11427 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11429         * haifa-sched.c (advance_one_cycle): Output more context-synchronization
11430         lines for diff.
11432 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11434         * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
11435         (rank_for_schedule): Use it.
11437 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11439         PR rtl-optimization/91598
11440         * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
11441         insns after memory reads and before memory writes.
11443 2021-08-17  Alistair_Lee  <alistair.lee@arm.com>
11445         * rtl.h (CONST_VECTOR_P): New macro.
11446         * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
11447         code testing macros.
11448         (aarch64_ptrue_all_mode): Likewise.
11449         (aarch64_expand_mov_immediate): Likewise.
11450         (aarch64_const_vec_all_in_range_p): Likewise.
11451         (aarch64_rtx_costs): Likewise.
11452         (aarch64_legitimate_constant_p): Likewise.
11453         (aarch64_simd_valid_immediate): Likewise.
11454         (aarch64_simd_make_constant): Likewise.
11455         (aarch64_convert_mult_to_shift): Likewise.
11456         (aarch64_expand_sve_vec_perm): Likewise.
11457         (aarch64_vec_fpconst_pow_of_2): Likewise.
11459 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11461         PR tree-optimization/101938
11462         * range-op.cc (operator_abs::op1_range): Special case
11463         -TYPE_MIN_VALUE for flag_wrapv.
11465 2021-08-17  Kewen Lin  <linkw@linux.ibm.com>
11467         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
11468         value extraction.
11470 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
11472         * tree.def (OMP_SCOPE): New tree code.
11473         * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
11474         * tree-nested.c (convert_nonlocal_reference_stmt,
11475         convert_local_reference_stmt, convert_gimple_call): Handle
11476         GIMPLE_OMP_SCOPE.
11477         * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
11478         * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
11479         * gimple.c (gimple_build_omp_scope): New function.
11480         (gimple_copy): Handle GIMPLE_OMP_SCOPE.
11481         * gimple.h (gimple_build_omp_scope): Declare.
11482         (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
11483         (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
11484         gimple_omp_scope_set_clauses): New inline functions.
11485         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
11486         * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
11487         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
11488         * gimple-walk.c (walk_gimple_stmt): Likewise.
11489         * gimple-low.c (lower_stmt): Likewise.
11490         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
11491         (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
11492         like ORT_WORKSHARE constructs.  Adjust diagnostics for %<scope%>
11493         allowing task reductions.  Reject inscan reductions on scope.
11494         (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
11495         (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
11496         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
11497         (estimate_num_insns): Likewise.
11498         * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
11499         contexts if var isn't privatized there.
11500         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
11501         (scan_omp_1_stmt): Likewise.
11502         (maybe_add_implicit_barrier_cancel): Look through outer
11503         scope constructs.
11504         (lower_omp_scope): New function.
11505         (lower_omp_task_reductions): Handle OMP_SCOPE.
11506         (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
11507         (diagnose_sb_1, diagnose_sb_2): Likewise.
11508         * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
11509         (expand_omp): Handle GIMPLE_OMP_SCOPE.
11510         (omp_make_gimple_edges): Likewise.
11511         * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
11513 2021-08-17  Richard Biener  <rguenther@suse.de>
11515         PR tree-optimization/101925
11516         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
11517         reverse on COMPONENT_REF and ARRAY_REF according to
11518         what reverse_storage_order_for_component_p does.
11519         (vn_reference_eq): Compare reversed on reference ops.
11520         (reverse_storage_order_for_component_p): New overload.
11521         (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
11522         on the reference looked up.
11524 2021-08-17  Jeff Law  <jlaw@localhost.localdomain>
11526         * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
11527         shifts on the H8/S.
11528         (h8300_option_override): Use loops on H8/S more often when optimizing
11529         for size.
11530         (get_shift_alg): Handle new "special" cases on H8/S.  Simplify
11531         accordingly.  Handle various arithmetic right shifts with special
11532         sequences that we couldn't handle before.
11534 2021-08-16  Jeff Law  <jlaw@localhost.localdomain>
11536         * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
11538 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11540         * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
11541         * config/sparc/sparc.c (sparc_gcov_type_size): New.
11542         (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
11543         * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
11544         * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
11545         * doc/tm.texi.in: Regenerate.
11546         * target.def (gcov_type_size): New target hook.
11547         * targhooks.c (default_gcov_type_size): New.
11548         * targhooks.h (default_gcov_type_size): Declare.
11549         * tree-profile.c (gimple_gen_edge_profiler): Use precision of
11550         gcov_type_node.
11551         (gimple_gen_time_profiler): Likewise.
11553 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
11555         * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
11557 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
11559         PR middle-end/101931
11560         * omp-low.c (omp_runtime_api_call): Update for routines
11561         added in the meanwhile.
11563 2021-08-16  Martin Liska  <mliska@suse.cz>
11565         PR tree-optimization/100393
11566         * tree-switch-conversion.c (group_cluster::dump): Use
11567           get_comparison_count.
11568         (jump_table_cluster::find_jump_tables): Pre-compute number of
11569         comparisons and then decrement it. Cache also max_ratio.
11570         (jump_table_cluster::can_be_handled): Change signature.
11571         * tree-switch-conversion.h (get_comparison_count): New.
11573 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
11575         * dwarf2out.c (add_data_member_location_attribute): Use GNAT
11576         encodings only when -fgnat-encodings=all is specified.
11577         (add_bound_info): Likewise.
11578         (add_byte_size_attribute): Likewise.
11579         (gen_member_die): Likewise.
11581 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
11583         * omp-oacc-neuter-broadcast.cc
11584         (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
11586 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
11588         * omp-oacc-neuter-broadcast.cc
11589         (execute_omp_oacc_neuter_broadcast): Clarify memory management for
11590         'prop_set'.
11592 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
11594         * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
11595         (execute_omp_oacc_neuter_broadcast): ... here.
11596         (install_var_field, build_receiver_ref, build_sender_ref): Take
11597         'field_map_t *' parameter.  Adjust all users.
11598         (worker_single_copy, neuter_worker_single): Take a
11599         'record_field_map_t *' parameter.  Adjust all users.
11601 2021-08-16  liuhongt  <hongtao.liu@intel.com>
11603         PR target/101930
11604         * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
11605         reg.
11607 2021-08-16  Martin Liska  <mliska@suse.cz>
11609         PR ipa/101726
11610         * multiple_target.c (create_dispatcher_calls): Make default
11611           function local only if it is a definition.
11613 2021-08-16  Martin Liska  <mliska@suse.cz>
11615         PR ipa/100600
11616         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
11617           consider equal SSA_NAMEs when one is a param.
11619 2021-08-16  liuhongt  <hongtao.liu@intel.com>
11621         PR target/101846
11622         * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
11623         Support vpermi2b for V32QI/V16QImode.
11624         (ix86_extract_perm_from_pool_constant): New function.
11625         (ix86_expand_vec_one_operand_perm_avx512): Support
11626         vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
11627         (expand_vec_perm_1): Adjust comments for upper.
11628         * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
11629         New declare.
11630         * config/i386/predicates.md (permvar_truncate_operand): New predicate.
11631         (pshufb_truncv4siv4hi_operand): Ditto.
11632         (pshufb_truncv8hiv8qi_operand): Ditto.
11633         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
11634         New pre_reload define_insn_and_split.
11635         (*avx512f_permvar_truncv8siv8hi_1): Ditto.
11636         (*avx512f_vpermvar_truncv8div8si_1): Ditto.
11637         (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
11638         (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
11639         (*avx512f_permvar_truncv4div4si_1): Ditto.
11640         (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
11641         (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
11642         (*avx512f_pshufd_truncv2div2si_1): Ditto.
11644 2021-08-16  Kito Cheng  <kito.cheng@sifive.com>
11646         * config/riscv/multilib-generator: Support code model option for
11647         multi-lib.
11648         * doc/install.texi: Add document of new option for
11649         --with-multilib-generator.
11651 2021-08-15  Clément Chigot  <clement.chigot@atos.net>
11653         * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
11654         (rs6000_legitimize_tls_address_aix): Use it.
11655         (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
11656         xcoff_tls_exec_model_detected is true.
11658 2021-08-15  Jeff Law  <jlaw@localhost.localdomain>
11660         * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
11661         to allow a bit more code growth, saving many dozens of cycles.
11662         (h8300_option_override): Adjus shift_alg_si if optimizing for
11663         code size.
11664         (get_shift_alg): Use special + inline shifts for residuals
11665         in more cases.
11667 2021-08-14  Stafford Horne  <shorne@gmail.com>
11669         PR target/99783
11670         * config/or1k/or1k-opts.h: New file.
11671         * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
11672         Support generating gotha relocations if -mcmodel=large is
11673         specified.
11674         * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
11675         New macros.
11676         * config/or1k/or1k.opt (mcmodel=): New option.
11677         * doc/invoke.texi (OpenRISC Options): Document mcmodel.
11679 2021-08-14  Martin Sebor  <msebor@redhat.com>
11681         PR middle-end/101791
11682         * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
11683         to valid_new_delete_pair_p.
11684         * tree.c (valid_new_delete_pair_p): Add argument.
11685         * tree.h (valid_new_delete_pair_p): Same.
11687 2021-08-14  Jakub Jelinek  <jakub@redhat.com>
11689         PR target/101896
11690         * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
11691         <case E_V64QImode>: For this mode assert
11692         !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
11694 2021-08-13  Michael Meissner  <meissner@linux.ibm.com>
11696         PR target/99921
11697         * config/rs6000/altivec.md (xxeval): Use register_predicate
11698         instead of altivec_register_predicate.
11700 2021-08-13  Martin Sebor  <msebor@redhat.com>
11702         PR middle-end/101734
11703         * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
11704         (maybe_warn_operand): Call it.
11706 2021-08-13  Martin Liska  <mliska@suse.cz>
11708         PR ipa/101354
11709         * attribs.c (decl_attributes): Make naked functions "noipa"
11710           functions.
11712 2021-08-13  Martin Liska  <mliska@suse.cz>
11714         PR ipa/101261
11715         * symtab.c (symtab_node::noninterposable_alias): Do not create
11716           local aliases for target_clone functions as the clonning pass
11717           rejects aliases.
11719 2021-08-13  Martin Liska  <mliska@suse.cz>
11721         * opts.c (LIVE_PATCHING_OPTION): Define.
11722         (control_options_for_live_patching): Use it in error messages.
11724 2021-08-13  Jan Hubicka  <hubicka@ucw.cz>
11726         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
11727         (implicit_const_eaf_flags, implicit_pure_eaf_flags,
11728          ignore_stores_eaf_flags): New constants.
11729         (remove_useless_eaf_flags): New function.
11730         (eaf_flags_useful_p): Use it.
11731         (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
11732         handle EAF_NOREAD.
11733         (modref_lattice::init): Add EAF_NOREAD.
11734         (modref_lattice::add_escape_point): Do not reacord escape point if
11735         result is unused.
11736         (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
11737         use remove_useless_eaf_flags.
11738         (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
11739         (modref_lattice::merge_direct_load): Add EAF_NOREAD
11740         (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
11741         (analyze_parms): Use remove_useless_eaf_flags.
11742         (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
11743         (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
11744         use remove_useless_eaf_flags.
11745         (modref_propagate_flags_in_scc): Update.
11746         * ipa-modref.h: Turn eaf_flags_t back to char.
11747         * tree-core.h (EAF_NOT_RETURNED): Fix.
11748         (EAF_NOREAD): New constant
11749         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
11750         EAF_NOREAD.
11751         * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
11752         (handle_pure_call): Likewise.
11754 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
11756         * tree.def (OMP_MASKED): New tree code.
11757         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
11758         * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
11759         OMP_CLAUSE_FILTER_EXPR): Define.
11760         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
11761         (omp_clause_code_name): Likewise.
11762         (walk_tree_1): Handle OMP_CLAUSE_FILTER.
11763         * tree-nested.c (convert_nonlocal_omp_clauses,
11764         convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
11765         (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
11766         convert_gimple_call): Handle GIMPLE_OMP_MASTER.
11767         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
11768         (dump_generic_node): Handle OMP_MASTER.
11769         * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
11770         * gimple.c (gimple_build_omp_masked): New function.
11771         (gimple_copy): Handle GIMPLE_OMP_MASKED.
11772         * gimple.h (gimple_build_omp_masked): Declare.
11773         (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
11774         (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
11775         gimple_omp_masked_set_clauses): New inline functions.
11776         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
11777         * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
11778         (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
11779         * gimple-walk.c (walk_gimple_stmt): Likewise.
11780         * gimple-low.c (lower_stmt): Likewise.
11781         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
11782         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER.  For clauses
11783         that take one expression rather than decl or constant, force
11784         gimplification of that into a SSA_NAME or temporary unless min
11785         invariant.
11786         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
11787         (gimplify_expr): Handle OMP_MASKED.
11788         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
11789         (estimate_num_insns): Likewise.
11790         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
11791         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED.  Adjust
11792         diagnostics for existence of masked construct.
11793         (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
11794         diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
11795         * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
11796         Likewise.
11798 2021-08-12  Uroš Bizjak  <ubizjak@gmail.com>
11800         PR target/98309
11801         * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
11802         (ldexp<mode>3): Use avx512f_scalef<mode>2.
11803         (UNSPEC_SCALEF): Move from ...
11804         * config/i386/sse.md (UNSPEC_SCALEF): ... here.
11806 2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
11808         * ipa-split.c (consider_split): Fix condition testing void functions.
11810 2021-08-12  Aldy Hernandez  <aldyh@redhat.com>
11812         * doc/invoke.texi: Remove docs for threader-mode param.
11813         * flag-types.h (enum threader_mode): Remove.
11814         * params.opt: Remove threader-mode param.
11815         * tree-ssa-threadbackward.c (class back_threader): Remove
11816         path_is_unreachable_p.
11817         Make find_paths private.
11818         Add maybe_thread and thread_through_all_blocks.
11819         Remove reference marker for m_registry.
11820         Remove reference marker for m_profit.
11821         (back_threader::back_threader): Adjust for registry and profit not
11822         being references.
11823         (dump_path): Move down.
11824         (debug): Move down.
11825         (class thread_jumps): Remove.
11826         (class back_threader_registry): Remove m_all_paths.
11827         Remove destructor.
11828         (thread_jumps::thread_through_all_blocks): Move to back_threader
11829         class.
11830         (fsm_find_thread_path): Remove
11831         (back_threader::maybe_thread): New.
11832         (back_threader::thread_through_all_blocks): Move from
11833         thread_jumps.
11834         (back_threader_registry::back_threader_registry): Remove
11835         m_all_paths.
11836         (back_threader_registry::~back_threader_registry): Remove.
11837         (thread_jumps::find_taken_edge): Remove.
11838         (thread_jumps::check_subpath_and_update_thread_path): Remove.
11839         (thread_jumps::maybe_register_path): Remove.
11840         (thread_jumps::handle_phi): Remove.
11841         (handle_assignment_p): Remove.
11842         (thread_jumps::handle_assignment): Remove.
11843         (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
11844         (thread_jumps::find_jump_threads_backwards): Remove.
11845         (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
11846         (try_thread_blocks): Rename find_jump_threads_backwards to
11847         maybe_thread.
11848         (pass_early_thread_jumps::execute): Same.
11850 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
11852         * tree-core.h (omp_clause_proc_bind_kind): Add
11853         OMP_CLAUSE_PROC_BIND_PRIMARY.
11854         * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
11855         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
11857 2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
11859         * common/config/arc/arc-common.c (arc_option_init_struct): Remove
11860         fno-common reference.
11861         * config/arc/arc.c (arc_override_options): Remove overriding of
11862         flag_no_common.
11864 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
11866         PR target/101860
11867         * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
11868         If d->testing_p, return true after performing checks instead of
11869         actually expanding the insn.
11870         (expand_vec_perm_broadcast_1): Handle V32HImode - assert
11871         !TARGET_AVX512BW and return false.
11873 2021-08-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
11875         * configure.ac (PE linker --disable-dynamicbase support): New check.
11876         * configure: Regenerate.
11877         * config.in: Likewise.
11878         * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
11879         (LINK_SPEC): Use it.
11880         * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
11881         (LINK_SPEC): Likewise.
11883 2021-08-12  liuhongt  <hongtao.liu@intel.com>
11885         PR target/101846
11886         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
11887         post_reload define_insn_and_split.
11888         (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
11889         (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
11890         (*avx512f_zero_extendv16hiv16si2_2): Ditto.
11891         (*avx2_zero_extendv8hiv8si2_2): Ditto.
11892         (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
11893         (*avx512f_zero_extendv8siv8di2_2): Ditto.
11894         (*avx2_zero_extendv4siv4di2_2): Ditto.
11895         (*sse4_1_zero_extendv2siv2di2_4): Ditto.
11896         (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
11897         mode iterator.
11899 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
11901         * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
11902         power6 stanzas.
11904 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
11906         * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
11908 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
11910         * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
11911         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
11912         initialization of pcvoid_type_node here...
11913         (altivec_init_builtins): ...from here.
11914         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
11915         RS6000_BTI_const_ptr_void.
11916         (pcvoid_type_node): New macro.
11918 2021-08-11  Richard Biener  <rguenther@suse.de>
11920         PR target/101877
11921         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
11922         hard-register accesses.
11924 2021-08-11  Richard Biener  <rguenther@suse.de>
11926         * tree-ssa-operands.c (operands_scanner::get_expr_operands):
11927         Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
11928         to determine has_volatile_ops.
11930 2021-08-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
11932         * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
11934 2021-08-11  Jan Hubicka  <hubicka@ucw.cz>
11935             Alexandre Oliva  <oliva@adacore.com>
11937         * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
11938         dumping.
11939         (modref_lattice::merge_deref): Fix handling of indirect scape points.
11940         (update_escape_summary_1): Likewise.
11941         (update_escape_summary): Likewise.
11942         (ipa_merge_modref_summary_after_inlining): Likewise.
11944 2021-08-11  Richard Biener  <rguenther@suse.de>
11946         PR middle-end/101858
11947         * fold-const.c (fold_binary_loc): Guard simplification
11948         of  X < (cast) (1 << Y) to integer types.
11950 2021-08-11  Richard Biener  <rguenther@suse.de>
11952         PR tree-optimization/101861
11953         * tree-vect-stmts.c (vectorizable_load): Fix error in
11954         previous change with regard to gather vectorization.
11956 2021-08-11  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
11958         PR target/66791
11959         * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
11960         with constructor.
11961         (vdup_n_s16): Likewise.
11962         (vdup_n_s32): Likewise.
11963         (vdup_n_s64): Likewise.
11964         (vdup_n_u8): Likewise.
11965         (vdup_n_u16): Likewise.
11966         (vdup_n_u32): Likewise.
11967         (vdup_n_u64): Likewise.
11968         (vdup_n_p8): Likewise.
11969         (vdup_n_p16): Likewise.
11970         (vdup_n_p64): Likewise.
11971         (vdup_n_f16): Likewise.
11972         (vdup_n_f32): Likewise.
11973         (vdupq_n_s8): Likewise.
11974         (vdupq_n_s16): Likewise.
11975         (vdupq_n_s32): Likewise.
11976         (vdupq_n_s64): Likewise.
11977         (vdupq_n_u8): Likewise.
11978         (vdupq_n_u16): Likewise.
11979         (vdupq_n_u32): Likewise.
11980         (vdupq_n_u64): Likewise.
11981         (vdupq_n_p8): Likewise.
11982         (vdupq_n_p16): Likewise.
11983         (vdupq_n_p64): Likewise.
11984         (vdupq_n_f16): Likewise.
11985         (vdupq_n_f32): Likewise.
11986         (vmov_n_s8): Replace call to builtin with call to corresponding
11987         vdup_n intrinsic.
11988         (vmov_n_s16): Likewise.
11989         (vmov_n_s32): Likewise.
11990         (vmov_n_s64): Likewise.
11991         (vmov_n_u8): Likewise.
11992         (vmov_n_u16): Likewise.
11993         (vmov_n_u32): Likewise.
11994         (vmov_n_u64): Likewise.
11995         (vmov_n_p8): Likewise.
11996         (vmov_n_p16): Likewise.
11997         (vmov_n_f16): Likewise.
11998         (vmov_n_f32): Likewise.
11999         (vmovq_n_s8): Likewise.
12000         (vmovq_n_s16): Likewise.
12001         (vmovq_n_s32): Likewise.
12002         (vmovq_n_s64): Likewise.
12003         (vmovq_n_u8): Likewise.
12004         (vmovq_n_u16): Likewise.
12005         (vmovq_n_u32): Likewise.
12006         (vmovq_n_u64): Likewise.
12007         (vmovq_n_p8): Likewise.
12008         (vmovq_n_p16): Likewise.
12009         (vmovq_n_f16): Likewise.
12010         (vmovq_n_f32): Likewise.
12011         * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
12013 2021-08-11  liuhongt  <hongtao.liu@intel.com>
12015         PR target/98309
12016         * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
12017         when TARGET_AVX512F and TARGET_SSE_MATH.
12019 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
12021         PR target/80355
12022         * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
12023         for V32HImode if !TARGET_AVX512BW.
12024         (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
12025         If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
12026         early, but actually check the permutation.
12028 2021-08-10  Richard Biener  <rguenther@suse.de>
12030         PR tree-optimization/101809
12031         * tree-vect-stmts.c (get_load_store_type): Allow emulated
12032         gathers with offset vector nunits being a constant multiple
12033         of the data vector nunits.
12034         (vect_get_gather_scatter_ops): Use the appropriate nunits
12035         for the offset vector defs.
12036         (vectorizable_store): Adjust call to
12037         vect_get_gather_scatter_ops.
12038         (vectorizable_load): Likewise.  Handle the case of less
12039         offset vectors than data vectors.
12041 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
12043         PR target/80355
12044         * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
12045         *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
12046         patterns.
12048 2021-08-10  Richard Biener  <rguenther@suse.de>
12050         PR tree-optimization/101801
12051         PR tree-optimization/101819
12052         * tree-vectorizer.h (vect_emulated_vector_p): Declare.
12053         * tree-vect-loop.c (vect_emulated_vector_p): New function.
12054         (vectorizable_reduction): Re-instantiate a check for emulated
12055         operations.
12056         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12057         (vectorizable_operation): Likewise.  Cost emulated vector
12058         operations according to the scalar sequence synthesized by
12059         vector lowering.
12061 2021-08-10  Richard Biener  <rguenther@suse.de>
12063         PR middle-end/101824
12064         * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
12065         volatile in case the variable was.
12067 2021-08-10  H.J. Lu  <hjl.tools@gmail.com>
12069         PR target/101804
12070         * config/i386/constraints.md (BC): Document for integer SSE
12071         constant all bits set operand.
12072         (BF): New constraint for const floating-point all bits set
12073         vectors.
12074         * config/i386/i386.c (standard_sse_constant_p): Likewise.
12075         (standard_sse_constant_opcode): Likewise.
12076         * config/i386/sse.md (sseconstm1): New mode attribute.
12077         (mov<mode>_internal): Replace BC with <sseconstm1>.
12079 2021-08-10  liuhongt  <hongtao.liu@intel.com>
12081         * config/i386/sse.md (cond_<insn><mode>): New expander.
12082         (VI248_AVX512VLBW): New mode iterator.
12083         * config/i386/predicates.md
12084         (nonimmediate_or_const_vec_dup_operand): New predicate.
12086 2021-08-09  Andrew MacLeod  <amacleod@redhat.com>
12088         PR tree-optimization/101741
12089         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
12090         type of parameter for toupper/tolower.
12092 2021-08-09  Martin Jambor  <mjambor@suse.cz>
12094         PR testsuite/101654
12095         * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
12097 2021-08-09  Pat Haugen  <pthaugen@linux.ibm.com>
12099         * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
12100         register.
12101         (is_store_insn1): Verify source is a register.
12103 2021-08-09  Uroš Bizjak  <ubizjak@gmail.com>
12105         PR target/101812
12106         * config/i386/mmx.md (<any_logic:code>v2sf3):
12107         Rename from *mmx_<any_logic:code>v2sf3
12109 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12111         * config/nvptx/nvptx.c: Cross-reference parts adapted in
12112         'gcc/omp-oacc-neuter-broadcast.cc'.
12113         * omp-low.c: Likewise.
12114         * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
12115         the above files.
12117 2021-08-09  Julian Brown  <julian@codesourcery.com>
12118             Kwok Cheung Yeung  <kcy@codesourcery.com>
12119             Thomas Schwinge  <thomas@codesourcery.com>
12121         * config/gcn/gcn.c (gcn_init_builtins): Override decls for
12122         BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
12123         BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
12124         (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
12125         (gcn_fork_join): Update comment.
12126         * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
12127         (macc_experimental_workers): Remove unused option.
12129 2021-08-09  Julian Brown  <julian@codesourcery.com>
12130             Nathan Sidwell  <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
12131             Kwok Cheung Yeung  <kcy@codesourcery.com>
12132             Thomas Schwinge  <thomas@codesourcery.com>
12134         * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
12135         * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
12136         Add documentation hook.
12137         * doc/tm.texi: Regenerate.
12138         * omp-oacc-neuter-broadcast.cc: New file.
12139         * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
12140         (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
12141         (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
12142         * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
12143         * target.def (goacc.create_worker_broadcast_record): Add target
12144         hook.
12145         * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
12146         prototype.
12147         * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
12148         Rename prototype to...
12149         (gcn_goacc_create_worker_broadcast_record): ... this.
12150         * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
12151         function to...
12152         (gcn_goacc_create_worker_broadcast_record): ... this.
12153         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
12154         Rename to...
12155         (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
12157 2021-08-09  Tejas Belagod  <tejas.belagod@arm.com>
12159         PR target/101609
12160         * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
12161         the right iterator.
12163 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12165         * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
12167 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12169         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
12170         consider '-foffload-abi'.
12171         * common.opt (-foffload-abi): Remove 'Var', 'Init'.
12172         * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
12173         Ignore.
12175 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12177         * optc-gen.awk: Sanity check that 'Init' doesn't appear without
12178         'Var'.
12180 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12182         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
12184 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12186         * doc/gty.texi (Files): Update.
12188 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12190         * doc/gty.texi (Files): Fix GTY header file example.
12192 2021-08-09  Roger Sayle  <roger@nextmovesoftware.com>
12194         * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
12195         determine the upper and lower bounds from a mask-value pair.
12196         (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
12197         absolute value and unsigned absolute value expressions.
12198         (bit_value_binop):  Initialize *VAL's precision.
12199         [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
12200         upper and lower bounds of operands.  Add LE_EXPR/GE_EXPR
12201         support when the operands are unknown but potentially equal.
12202         [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
12204 2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
12206         * config/aarch64/aarch64.md
12207         (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
12209 2021-08-08  Sergei Trofimovich  <siarheit@google.com>
12211         * lra-constraints.c: Fix s/otput/output/ typo.
12213 2021-08-06  Martin Sebor  <msebor@redhat.com>
12215         * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
12216         (expand_builtin_strcat): Same.
12217         (expand_builtin_stpncpy): Same.
12218         (expand_builtin_strncat): Same.
12219         (check_read_access): Same.
12220         (check_memop_access): Same.
12221         (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
12222         (expand_builtin_strnlen): Same.
12223         (expand_builtin_memcpy): Same.
12224         (expand_builtin_memmove): Same.
12225         (expand_builtin_mempcpy): Same.
12226         (expand_builtin_strcpy): Same.
12227         (expand_builtin_strcpy_args): Same.
12228         (expand_builtin_stpcpy_1): Same.
12229         (expand_builtin_strncpy): Same.
12230         (expand_builtin_memset): Same.
12231         (expand_builtin_bzero): Same.
12232         (expand_builtin_strcmp): Same.
12233         (expand_builtin_strncmp): Same.
12234         (expand_builtin): Remove handlers.
12235         (fold_builtin_strlen): Add a comment.
12236         * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
12237         * calls.c (maybe_warn_nonstring_arg): Same.
12238         * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
12239         * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
12240         (gimple_fold_builtin_stpcpy): Same.
12241         * gimple-ssa-warn-access.cc (has_location): New function.
12242         (get_location): Same.
12243         (get_callee_fndecl): Same.
12244         (call_nargs): Same.
12245         (call_arg): Same.
12246         (warn_string_no_nul): Define.
12247         (unterminated_array): Same.
12248         (check_nul_terminated_array): Same.
12249         (maybe_warn_nonstring_arg): Same.
12250         (maybe_warn_for_bound): Same.
12251         (warn_for_access): Same.
12252         (check_access): Same.
12253         (check_memop_access): Same.
12254         (check_read_access): Same.
12255         (warn_dealloc_offset): Use helper functions.
12256         (maybe_emit_free_warning): Same.
12257         (class pass_waccess): Add members.
12258         (check_strcat): New function.
12259         (check_strncat): New function.
12260         (check_stxcpy): New function.
12261         (check_stxncpy): New function.
12262         (check_strncmp): New function.
12263         (pass_waccess::check_builtin): New function.
12264         (pass_waccess::check): Call it.
12265         * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
12266         builtins.h.
12267         (maybe_warn_for_bound): Same.
12268         (check_access): Same.
12269         (check_memop_access): Same.
12270         (check_read_access): Same.
12271         * pointer-query.h (struct access_data): Define a ctor overload.
12273 2021-08-06  Richard Biener  <rguenther@suse.de>
12275         PR tree-optimization/101801
12276         * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
12277         (vect_can_vectorize_without_simd_p): ... to this.
12278         * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
12279         (vect_can_vectorize_without_simd_p): ... to this and fold
12280         in vect_min_worthwhile_factor.
12281         (vect_min_worthwhile_factor): Remove.
12282         (vectorizable_reduction): Adjust and remove the cost part.
12283         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12284         (vectorizable_operation): Likewise.
12286 2021-08-06  Uroš Bizjak  <ubizjak@gmail.com>
12288         PR target/101797
12289         * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
12290         Add general_gr_operand predicate to operand 3.
12292 2021-08-06  Roger Sayle  <roger@nextmovesoftware.com>
12294         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
12295         CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
12297 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
12299         * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
12300         register_svprfop): Pass vec<> by pointer.
12301         * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
12302         * langhooks.c (lhd_simulate_enum_decl): Likewise.
12303         * langhooks.h (struct lang_hooks_for_types): Likewise.
12305 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12307         * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
12308         __builtin_memcpy instead of constructing an additional
12309         __builtin_aarch64_simd_oi one vector at a time.
12310         (vst1q_bf16_x2): Likewise.
12311         (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
12312         an additional __builtin_aarch64_simd_ci one vector at a time.
12313         (vst1q_bf16_x3): Likewise.
12314         (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
12315         (vst1q_bf16_x4): Likewise.
12316         (vst2_bf16): Use __builtin_memcpy instead of constructing an
12317         additional __builtin_aarch64_simd_oi one vector at a time.
12318         (vst2q_bf16): Likewise.
12319         (vst3_bf16): Use __builtin_memcpy instead of constructing an
12320         additional __builtin_aarch64_simd_ci mode one vector at a
12321         time.
12322         (vst3q_bf16): Likewise.
12323         (vst4_bf16): Use __builtin_memcpy instead of constructing an
12324         additional __builtin_aarch64_simd_xi one vector at a time.
12325         (vst4q_bf16): Likewise.
12327 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12329         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
12330         (__ST2Q_LANE_FUNC): Delete.
12331         (vst2_lane_f16): Use __builtin_memcpy to copy vector
12332         structure instead of constructing __builtin_aarch64_simd_oi
12333         one vector at a time.
12334         (vst2_lane_f32): Likewise.
12335         (vst2_lane_f64): Likewise.
12336         (vst2_lane_p8): Likewise.
12337         (vst2_lane_p16): Likewise.
12338         (vst2_lane_p64): Likewise.
12339         (vst2_lane_s8): Likewise.
12340         (vst2_lane_s16): Likewise.
12341         (vst2_lane_s32): Likewise.
12342         (vst2_lane_s64): Likewise.
12343         (vst2_lane_u8): Likewise.
12344         (vst2_lane_u16): Likewise.
12345         (vst2_lane_u32): Likewise.
12346         (vst2_lane_u64): Likewise.
12347         (vst2_lane_bf16): Likewise.
12348         (vst2q_lane_f16): Use __builtin_memcpy to copy vector
12349         structure instead of using a union.
12350         (vst2q_lane_f32): Likewise.
12351         (vst2q_lane_f64): Likewise.
12352         (vst2q_lane_p8): Likewise.
12353         (vst2q_lane_p16): Likewise.
12354         (vst2q_lane_p64): Likewise.
12355         (vst2q_lane_s8): Likewise.
12356         (vst2q_lane_s16): Likewise.
12357         (vst2q_lane_s32): Likewise.
12358         (vst2q_lane_s64): Likewise.
12359         (vst2q_lane_u8): Likewise.
12360         (vst2q_lane_u16): Likewise.
12361         (vst2q_lane_u32): Likewise.
12362         (vst2q_lane_u64): Likewise.
12363         (vst2q_lane_bf16): Likewise.
12365 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12367         * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
12368         (__ST3Q_LANE_FUNC): Delete.
12369         (vst3_lane_f16): Use __builtin_memcpy to copy vector
12370         structure instead of constructing __builtin_aarch64_simd_ci
12371         one vector at a time.
12372         (vst3_lane_f32): Likewise.
12373         (vst3_lane_f64): Likewise.
12374         (vst3_lane_p8): Likewise.
12375         (vst3_lane_p16): Likewise.
12376         (vst3_lane_p64): Likewise.
12377         (vst3_lane_s8): Likewise.
12378         (vst3_lane_s16): Likewise.
12379         (vst3_lane_s32): Likewise.
12380         (vst3_lane_s64): Likewise.
12381         (vst3_lane_u8): Likewise.
12382         (vst3_lane_u16): Likewise.
12383         (vst3_lane_u32): Likewise.
12384         (vst3_lane_u64): Likewise.
12385         (vst3_lane_bf16): Likewise.
12386         (vst3q_lane_f16): Use __builtin_memcpy to copy vector
12387         structure instead of using a union.
12388         (vst3q_lane_f32): Likewise.
12389         (vst3q_lane_f64): Likewise.
12390         (vst3q_lane_p8): Likewise.
12391         (vst3q_lane_p16): Likewise.
12392         (vst3q_lane_p64): Likewise.
12393         (vst3q_lane_s8): Likewise.
12394         (vst3q_lane_s16): Likewise.
12395         (vst3q_lane_s32): Likewise.
12396         (vst3q_lane_s64): Likewise.
12397         (vst3q_lane_u8): Likewise.
12398         (vst3q_lane_u16): Likewise.
12399         (vst3q_lane_u32): Likewise.
12400         (vst3q_lane_u64): Likewise.
12401         (vst3q_lane_bf16): Likewise.
12403 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12405         * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
12406         (__ST4Q_LANE_FUNC): Delete.
12407         (vst4_lane_f16): Use __builtin_memcpy to copy vector
12408         structure instead of constructing __builtin_aarch64_simd_xi
12409         one vector at a time.
12410         (vst4_lane_f32): Likewise.
12411         (vst4_lane_f64): Likewise.
12412         (vst4_lane_p8): Likewise.
12413         (vst4_lane_p16): Likewise.
12414         (vst4_lane_p64): Likewise.
12415         (vst4_lane_s8): Likewise.
12416         (vst4_lane_s16): Likewise.
12417         (vst4_lane_s32): Likewise.
12418         (vst4_lane_s64): Likewise.
12419         (vst4_lane_u8): Likewise.
12420         (vst4_lane_u16): Likewise.
12421         (vst4_lane_u32): Likewise.
12422         (vst4_lane_u64): Likewise.
12423         (vst4_lane_bf16): Likewise.
12424         (vst4q_lane_f16): Use __builtin_memcpy to copy vector
12425         structure instead of using a union.
12426         (vst4q_lane_f32): Likewise.
12427         (vst4q_lane_f64): Likewise.
12428         (vst4q_lane_p8): Likewise.
12429         (vst4q_lane_p16): Likewise.
12430         (vst4q_lane_p64): Likewise.
12431         (vst4q_lane_s8): Likewise.
12432         (vst4q_lane_s16): Likewise.
12433         (vst4q_lane_s32): Likewise.
12434         (vst4q_lane_s64): Likewise.
12435         (vst4q_lane_u8): Likewise.
12436         (vst4q_lane_u16): Likewise.
12437         (vst4q_lane_u32): Likewise.
12438         (vst4q_lane_u64): Likewise.
12439         (vst4q_lane_bf16): Likewise.
12441 2021-08-06  Martin Liska  <mliska@suse.cz>
12443         * config/rs6000/rs6000.c (rs6000_option_override_internal): When
12444         a target option is restored, it can have
12445         rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
12446         and error should not be emitted.
12448 2021-08-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12450         * gcov-io.h (gcov_write): Declare.
12451         * gcov-io.c (gcov_write): New.
12452         (gcov_write_counter): Remove.
12453         (gcov_write_tag_length): Likewise.
12454         (gcov_write_summary): Replace gcov_write_tag_length() with calls to
12455         gcov_write_unsigned().
12456         * doc/invoke.texi (fprofile-info-section): Mention
12457         __gcov_info_to_gdca().
12459 2021-08-06  Martin Sebor  <msebor@redhat.com>
12461         * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
12462         arguments to by-reference.
12463         (iterate_fix_dominators): Same.
12464         * dominance.h (iterate_fix_dominators): Same.
12465         * ipa-prop.h: Call auto_vec::to_vec_legacy.
12466         * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
12467         arguments to by-reference.
12468         (debug_data_dependence_relation): Same.
12469         (dump_data_dependence_relations): Same.
12470         * tree-data-ref.h (debug_data_dependence_relation): Same.
12471         (dump_data_dependence_relations): Same.
12472         * tree-predcom.c (dump_chains): Same.
12473         (initialize_root_vars_lm): Same.
12474         (determine_unroll_factor): Same.
12475         (replace_phis_by_defined_names): Same.
12476         (insert_init_seqs): Same.
12477         (pcom_worker::tree_predictive_commoning_loop): Call
12478          auto_vec::to_vec_legacy.
12479         * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
12480         arguments to by-reference.
12481         * tree-ssa-threadbackward.c (populate_worklist): Same.
12482         (back_threader::resolve_def): Same.
12483         * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
12484         (vect_enhance_data_refs_alignment): Same.
12485         (vect_check_lower_bound): Same.
12486         (vect_prune_runtime_alias_test_list): Same.
12487         (vect_permute_store_chain): Same.
12488         * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
12489         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
12490         * tree-vectorizer.h (vect_permute_store_chain): Same.
12491         * vec.c (test_init): New function.
12492         (vec_c_tests): Call new function.
12493         * vec.h (vec): Declare ctors, dtor, and assignment.
12494         (auto_vec::vec_to_legacy): New function.
12495         (vec::copy): Adjust initialization.
12497 2021-08-05  H.J. Lu  <hjl.tools@gmail.com>
12499         PR target/99744
12500         * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
12501         callee only uses GPRs.
12502         * config/i386/ia32intrin.h: Revert commit 5463cee2770.
12503         * config/i386/serializeintrin.h: Revert commit 71958f740f1.
12504         * config/i386/x86gprintrin.h: Add
12505         #pragma GCC target("general-regs-only") and #pragma GCC pop_options
12506         to disable non-GPR ISAs.
12508 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12510         PR middle-end/101787
12511         * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
12513 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12515         * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
12516         (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
12517         (vect_is_extending_load, vect_is_integer_truncation): New functions,
12518         moved from aarch64.c but given different names.
12519         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
12520         (aarch64_is_reduction, aarch64_reduc_type)
12521         (aarch64_embedded_comparison_type, aarch64_comparison_type)
12522         (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
12523         in favor of the above.  Update callers accordingly.
12525 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
12527         PR target/101723
12528         * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
12529         writing .cpu directive in asm output.
12530         * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
12531         (arm_last_printed_arch_string): Delete.
12532         (arm_last-printed_fpu_string): Delete.
12533         (arm_configure_build_target): If use of floating-point/SIMD is
12534         disabled, remove all fp/simd related features from the target ISA.
12535         (last_arm_targ_options): New variable.
12536         (arm_print_asm_arch_directives): Add new parameters.  Change order
12537         of emitted directives and handle all cases here.
12538         (arm_file_start): Always call arm_print_asm_arch_directives, move
12539         all generation of .arch/.arch_extension here.
12540         (arm_file_end): Call arm_print_asm_arch.
12541         (arm_declare_function_name): Call arm_print_asm_arch_directives
12542         instead of printing .arch/.fpu directives directly.
12544 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
12546         * config/arm/arm.c (arm_configure_build_target): Don't call
12547         arm_option_reconfigure_globals.
12548         (arm_option_restore): Call arm_option_reconfigure_globals after
12549         reconfiguring the target.
12550         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
12552 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
12554         * config/arm/arm.c (arm_configure_build_target): Ensure the target's
12555         arch_name is always set.
12557 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
12559         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
12560         of vec_select high-half from being added into Neon subtract
12561         cost.
12563 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
12565         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
12566         of vec_select high-half from being added into Neon add cost.
12568 2021-08-05  Kewen Lin  <linkw@linux.ibm.com>
12570         * cfgloop.h (loops_list::loops_list): Add one optional argument
12571         root and adjust accordingly, update loop tree walking and factor
12572         out to ...
12573         * cfgloop.c (loops_list::walk_loop_tree): ... this.  New function.
12575 2021-08-05  Eric Botcazou  <ebotcazou@gcc.gnu.org>
12577         PR tree-optimization/101626
12578         * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
12579         reverse scalar storage order on a pointer or vector component.
12581 2021-08-05  liuhongt  <hongtao.liu@intel.com>
12583         * config/i386/sse.md (cond_<code><mode>): New expander.
12585 2021-08-05  liuhongt  <hongtao.liu@intel.com>
12587         * config/i386/sse.md (cond_<code><mode>): New expander.
12589 2021-08-05  liuhongt  <hongtao.liu@intel.com>
12591         * config/i386/sse.md (cond_<code><mode>): New expander.
12593 2021-08-04  David Malcolm  <dmalcolm@redhat.com>
12595         PR analyzer/101570
12596         * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
12598 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
12600         PR target/101742
12601         * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
12602         only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
12604 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
12606         PR target/101772
12607         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
12608         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
12609         data with SSE register from one memory location to another.
12611 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
12613         * config/s390/s390.c (expand_perm_with_vpdi): New function.
12614         (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
12615         * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
12616         parameterized expander.
12617         (*vpdi4<mode>, @vpdi4<mode>): Likewise.
12619 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
12621         * config/s390/s390.c (MAX_VECT_LEN): Define macro.
12622         (struct expand_vec_perm_d): Define struct.
12623         (expand_perm_with_merge): New function.
12624         (vectorize_vec_perm_const_1): New function.
12625         (s390_vectorize_vec_perm_const): New function.
12626         (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
12628 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
12630         * config/s390/vector.md (V_HW_64): Remove mode iterator.
12631         (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
12632         * config/s390/vx-builtins.md
12633         (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
12634         V_HW_64.
12636 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
12638         * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
12639         definition.
12640         * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
12641         definitions.
12642         * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
12643         instead of an unspec.
12645 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
12647         * config/s390/s390-modes.def: Add more vector modes to support
12648         concatenation of two vectors.
12649         * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
12650         prototype.
12651         (s390_expand_merge): Likewise.
12652         * config/s390/s390.c (s390_expand_merge_perm_const): New function.
12653         (s390_expand_merge): New function.
12654         * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
12655         Remove constant definitions.
12656         * config/s390/vector.md (V_HW_2): Add mode iterators.
12657         (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
12658         (vec_2x_nelts, vec_2x_wide): New mode attributes.
12659         (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
12660         New pattern definitions.
12661         (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
12662         (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
12663         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
12664         (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
12665         vec merge.
12666         * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
12667         in vector.md.
12668         (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
12669         emit vec merge pattern.
12671 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
12673         * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
12674         Define.
12675         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
12676         vec_select high-half from being added into Neon multiply
12677         cost.
12678         * rtlanal.c (vec_series_highpart_p): Define.
12679         * rtlanal.h (vec_series_highpart_p): Declare.
12681 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
12683         * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
12684         Define.
12685         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
12686         vec_select cost from being added into Neon multiply cost.
12688 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
12690         * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
12691         which old_loop_vinfo is an epilogue loop that handles a constant
12692         number of iterations.
12694 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
12696         * tree-vect-loop.c (vect_analyze_loop): Print a dump message
12697         when a reanalyzed loop fails to be cheaper than the current
12698         main loop.
12700 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
12702         * config/aarch64/aarch64.c: Fix a typo.
12704 2021-08-04  Vincent Lefèvre  <vincent-gcc@vinc17.net>
12706         PR gcov-profile/101773
12707         * gcov-io.c (gcov_close): Check return code of a fclose.
12709 2021-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12711         PR ada/101575
12712         * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
12713         .file statement when needed.
12715 2021-08-04  Richard Biener  <rguenther@suse.de>
12717         * tree-vect-data-refs.c (vect_check_gather_scatter):
12718         Include widening conversions only when the result is
12719         still handed by native gather or the current offset
12720         size not already matches the data size.
12721         Also succeed analysis in case there's no native support,
12722         noted by a IFN_LAST ifn and a NULL decl.
12723         (vect_analyze_data_refs): Always consider gathers.
12724         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
12725         Test for no IFN gather rather than decl gather.
12726         * tree-vect-stmts.c (vect_model_load_cost): Pass in the
12727         gather-scatter info and cost emulated gathers accordingly.
12728         (vect_truncate_gather_scatter_offset): Properly test for
12729         no IFN gather.
12730         (vect_use_strided_gather_scatters_p): Likewise.
12731         (get_load_store_type): Handle emulated gathers and its
12732         restrictions.
12733         (vectorizable_load): Likewise.  Emulate them by extracting
12734         scalar offsets, doing scalar loads and a vector construct.
12736 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
12738         PR target/101742
12739         * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
12740         argument to set m_max_size.
12741         (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
12742         (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
12743         (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
12745 2021-08-04  Roger Sayle  <roger@nextmovesoftware.com>
12746             Marc Glisse  <marc.glisse@inria.fr>
12748         * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
12749         (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
12750         tree_nonzero_bits to ensure that operands are bit-wise disjoint.
12752 2021-08-04  Richard Biener  <rguenther@suse.de>
12754         * tree-ssa-forwprop.c (pass_forwprop::execute): Split
12755         out code to decompose vector loads ...
12756         (optimize_vector_load): ... here.  Generalize it to
12757         handle intermediate widening and TARGET_MEM_REF loads
12758         and apply it to loads with a supported vector mode as well.
12760 2021-08-04  Richard Biener  <rguenther@suse.de>
12762         PR tree-optimization/101756
12763         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
12764         the result of the reduction epilogue is compatible to the original
12765         scalar result.
12767 2021-08-04  liuhongt  <hongtao.liu@intel.com>
12769         PR target/101743
12770         * config/i386/i386.md (peephole2): Refine predicate from
12771         register_operand to general_reg_operand.
12773 2021-08-04  Aldy Hernandez  <aldyh@redhat.com>
12775         * gimple-range-path.h (path_range_query::dump): Mark override.
12777 2021-08-04  Richard Biener  <rguenther@suse.de>
12779         PR tree-optimization/101769
12780         * tree-tailcall.c (eliminate_tail_call): Add the created loop
12781         for the first recursion and return it via the new output parameter.
12782         (optimize_tail_call): Pass through new output param.
12783         (tree_optimize_tail_calls_1): After creating all latches,
12784         add the created loop to the loop tree.  Do not mark loops for fixup.
12786 2021-08-04  Martin Liska  <mliska@suse.cz>
12788         * doc/invoke.texi: Document threader-mode param.
12790 2021-08-04  liuhongt  <hongtao.liu@intel.com>
12792         * config/i386/sse.md (cond_fma<mode>): New expander.
12793         (cond_fms<mode>): Ditto.
12794         (cond_fnma<mode>): Ditto.
12795         (cond_fnms<mode>): Ditto.
12797 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
12799         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
12801 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
12803         * config/rs6000/constraints.md: Remove "e" from the list of available
12804         constraint characters.
12806 2021-08-03  Eugene Rozenfeld  <erozen@microsoft.com>
12808         PR gcov-profile/71672
12809         * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
12811 2021-08-03  Paul A. Clarke  <pc@us.ibm.com>
12813         * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
12815 2021-08-03  H.J. Lu  <hjl.tools@gmail.com>
12817         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
12818         try XMM31 to avoid vzeroupper.
12820 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12822         * doc/invoke.texi: Document -mtune=neoverse-512tvb and
12823         -mcpu=neoverse-512tvb.
12824         * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
12825         * config/aarch64/aarch64-tune.md: Regenerate.
12826         * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
12827         (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
12828         (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
12829         (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
12830         (aarch64_adjust_body_cost): Likewise.
12832 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12834         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
12835         record issue information for operations that occur in the
12836         innermost loop.
12838 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12840         * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
12841         parameter.  Detect cases in which an Advanced SIMD MLA would almost
12842         certainly require a MOV.
12843         (aarch64_count_ops): Update accordingly.
12845 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12847         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
12848         function, split out from...
12849         (aarch64_detect_vector_stmt_subtype): ...here.
12850         (aarch64_add_stmt_cost): Treat extracting element 0 as free.
12852 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12854         * config/aarch64/aarch64-protos.h (sve_vec_cost):
12855         Add gather_load_x32_cost and gather_load_x64_cost.
12856         * config/aarch64/aarch64.c (generic_sve_vector_cost)
12857         (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
12858         accordingly, using the values given by the scalar_load * number
12859         of elements calculation that we used previously.
12860         (aarch64_detect_vector_stmt_subtype): Use the new fields.
12862 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12864         * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
12865         function, split out from...
12866         (aarch64_adjust_body_cost): ...here.
12868 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12870         * config/aarch64/fractional-cost.h: New file.
12871         * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
12872         and cost_fraction.h.
12873         (vec_cost_fraction): New typedef.
12874         (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
12875         (aarch64_detect_vector_stmt_subtype): Likewise.
12876         (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
12877         (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
12878         for cycle counts.
12879         (aarch64_adjust_body_cost): Likewise.
12880         (aarch64_test_cost_fraction): New function.
12881         (aarch64_run_selftests): Call it.
12883 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
12885         * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
12886         into a bitmask.
12887         * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
12888         accordingly.
12889         (aarch64_estimated_poly_value): Likewise.  Use the least significant
12890         set bit for the minimum and likely values.  Use the most significant
12891         set bit for the maximum value.
12893 2021-08-03  liuhongt  <hongtao.liu@intel.com>
12895         * config/i386/sse.md (cond_<insn><mode>): New expander.
12896         (cond_mul<mode>): Ditto.
12898 2021-08-03  Kewen Lin  <linkw@linux.ibm.com>
12900         * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
12902 2021-08-03  liuhongt  <hongtao.liu@intel.com>
12904         * config/i386/sse.md (cond_<insn><mode>):New expander.
12905         (cond_mul<mode>): Ditto.
12906         (cond_div<mode>): Ditto.
12908 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
12910         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
12911         check stack_realign_needed for stack realignment.
12912         (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
12913         than the largest integer supported by vector register.
12914         * config/i386/i386.h (MAX_MOVE_MAX): New.  Set to 64.
12915         (MOVE_MAX): Set to bytes of the largest integer supported by
12916         vector register.
12917         (STORE_MAX_PIECES): New.
12919 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
12921         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
12922         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
12923         data from one memory location to another.
12925 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
12927         PR middle-end/90773
12928         * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
12930 2021-08-02  Aldy Hernandez  <aldyh@redhat.com>
12932         PR tree-optimization/101724
12933         * params.opt: Remove --param=threader-iterative.
12934         * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
12935         iterative mode.
12937 2021-08-02  Tom de Vries  <tdevries@suse.de>
12939         PR middle-end/101665
12940         * doc/extend.texi (nonnull attribute): Improve documentation.
12942 2021-08-02  Andrew Pinski  <apinski@marvell.com>
12944         PR rtl-optimization/101683
12945         * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
12947 2021-08-02  Roger Sayle  <roger@nextmovesoftware.com>
12949         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
12950         Renamed from cond_removal_in_popcount_clz_ctz_pattern.
12951         Add support for BSWAP, FFS, PARITY and CLRSB builtins.
12952         (tree_ssa_phiop_worker): Update call to function above.
12954 2021-08-01  H.J. Lu  <hjl.tools@gmail.com>
12956         PR target/78103
12957         * config/i386/i386.md (bsr_rex64_1_zext): New.
12958         (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
12959         with gen_bsr_rex64_1_zext.
12961 2021-07-31  Jakub Jelinek  <jakub@redhat.com>
12963         PR target/78103
12964         * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
12965         define_insn patterns.
12966         (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
12967         Add combine splitters for constant - clz.
12968         (clz<mode>2): Use a temporary pseudo for bsr result.
12970 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
12972         * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
12973         _mm_floor_sd, _mm_floor_ss): New.
12975 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
12977         * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
12978         _mm_ceil_sd, _mm_ceil_ss): New.
12980 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
12982         * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
12983         _mm_blend_ps, _mm_blendv_ps): New.
12985 2021-07-30  Roger Sayle  <roger@nextmovesoftware.com>
12986             Uroš Bizjak  <ubizjak@gmail.com>
12988         * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
12989         to generate a conditional move using the carry flag after sub $1.
12990         (peephole2): Eliminate a register-to-register move by inverting
12991         the condition of a conditional move.
12993 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
12995         * config/mmix/mmix.md ("call", "call_value", "*call_real")
12996         ("*call_value_real"): Don't generate rtx mentioning the generic
12997         operands 1 and 2 to "call", and similarly for "call_value".
12998         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
12999         (mmix_print_operand): Use '!' instead of 'p'.
13001 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
13003         * doc/md.texi (call): Correct information about operand 2.
13004         * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
13006 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
13008         * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
13010 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
13012         * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
13014 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
13016         * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
13017         const_basic_block..
13018         (*::get_bb_range): Ditto.
13019         (*::bb_range_p): Ditto.
13020         * gimple-range-cache.h: Change prototypes.
13022 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
13024         PR middle-end/90773
13025         * builtins.c (builtin_memcpy_read_str): Change the mode argument
13026         from scalar_int_mode to fixed_size_mode.
13027         (builtin_strncpy_read_str): Likewise.
13028         (gen_memset_value_from_prev): New function.
13029         (builtin_memset_read_str): Change the mode argument from
13030         scalar_int_mode to fixed_size_mode.  Use gen_memset_value_from_prev
13031         and support CONST_VECTOR.
13032         (builtin_memset_gen_str): Likewise.
13033         (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
13034         constfun.
13035         * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
13036         with fixed_size_mode.
13037         (builtin_memset_read_str): Likewise.
13038         * expr.c (widest_int_mode_for_size): Renamed to ...
13039         (widest_fixed_size_mode_for_size): Add a bool argument to
13040         indicate if QI vector mode can be used.
13041         (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
13042         instead of widest_int_mode_for_size.
13043         (pieces_addr::adjust): Change the mode argument from
13044         scalar_int_mode to fixed_size_mode.
13045         (op_by_pieces_d): Make m_len read-only.  Add a bool member,
13046         m_qi_vector_mode, to indicate that QI vector mode can be used.
13047         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
13048         initialize m_qi_vector_mode.  Call widest_fixed_size_mode_for_size
13049         instead of widest_int_mode_for_size.
13050         (op_by_pieces_d::get_usable_mode): Change the mode argument from
13051         scalar_int_mode to fixed_size_mode.  Call
13052         widest_fixed_size_mode_for_size instead of
13053         widest_int_mode_for_size.
13054         (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
13055         function to return the smallest integer or QI vector mode.
13056         (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
13057         instead of widest_int_mode_for_size.  Call
13058         smallest_fixed_size_mode_for_size instead of
13059         smallest_int_mode_for_size.
13060         (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
13061         indicate that QI vector mode can be used and pass it to
13062         op_by_pieces_d::op_by_pieces_d.
13063         (can_store_by_pieces): Call widest_fixed_size_mode_for_size
13064         instead of widest_int_mode_for_size.  Pass memsetp to
13065         widest_fixed_size_mode_for_size to support QI vector mode.
13066         Allow all CONST_VECTORs for memset if vec_duplicate is supported.
13067         (store_by_pieces): Pass memsetp to
13068         store_by_pieces_d::store_by_pieces_d.
13069         (clear_by_pieces_1): Removed.
13070         (clear_by_pieces): Replace clear_by_pieces_1 with
13071         builtin_memset_read_str and pass true to store_by_pieces_d to
13072         support vector mode broadcast.
13073         (string_cst_read_str): Change the mode argument from
13074         scalar_int_mode to fixed_size_mode.
13075         * expr.h (by_pieces_constfn): Change scalar_int_mode to
13076         fixed_size_mode.
13077         (by_pieces_prev): Likewise.
13078         * rtl.h (lowpart_subreg_regno): New.
13079         * rtlanal.c (lowpart_subreg_regno): New.  A wrapper around
13080         simplify_subreg_regno.
13081         * target.def (gen_memset_scratch_rtx): New hook.
13082         * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
13083         * doc/tm.texi: Regenerated.
13085 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
13087         PR target/94780
13088         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
13089           TARGET_EXPR instead of MODIFY_EXPR.
13091 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
13093         PR target/101132
13094         * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
13095         * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
13096         * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
13097           expander.
13098           (vec_cmpu<IMSA:mode><mode_i>): New expander.
13100 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
13102         PR target/101685
13103         * config/i386/i386-options.c (ix86_option_override_internal):
13104         Don't enable LZCNT/POPCNT if they have been disabled explicitly.
13106 2021-07-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
13108         PR target/66791
13109         * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
13110         explicitly dereferencing __a.
13111         (vld1_s64): Likewise.
13112         (vld1_u64): Likewise.
13113         * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
13114         and change to VAR13.
13116 2021-07-30  Aldy Hernandez  <aldyh@redhat.com>
13118         * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
13119         use of m_range_analyzer.
13120         (loop_versioning::lv_dom_walker::before_dom_children): Same.
13121         (loop_versioning::lv_dom_walker::after_dom_children): Remove.
13122         (loop_versioning::prune_loop_conditions): Replace vr_values use
13123         with range_query interface.
13124         (pass_loop_versioning::execute): Use ranger.
13126 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
13128         PR ipa/101396
13129         * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
13130           enum values, and emit a warning if they mismatch.
13132 2021-07-30  Kewen Lin  <linkw@linux.ibm.com>
13134         * cfgloop.h (as_const): New function.
13135         (class loop_iterator): Rename to ...
13136         (class loops_list): ... this.
13137         (loop_iterator::next): Rename to ...
13138         (loops_list::Iter::fill_curr_loop): ... this and adjust.
13139         (loop_iterator::loop_iterator): Rename to ...
13140         (loops_list::loops_list): ... this and adjust.
13141         (loops_list::Iter): New class.
13142         (loops_list::iterator): New type.
13143         (loops_list::const_iterator): New type.
13144         (loops_list::begin): New function.
13145         (loops_list::end): Likewise.
13146         (loops_list::begin const): Likewise.
13147         (loops_list::end const): Likewise.
13148         (FOR_EACH_LOOP): Remove.
13149         (FOR_EACH_LOOP_FN): Remove.
13150         * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
13151         for loop with loops_list instance.
13152         (sort_sibling_loops): Likewise.
13153         (disambiguate_loops_with_multiple_latches): Likewise.
13154         (verify_loop_structure): Likewise.
13155         * cfgloopmanip.c (create_preheaders): Likewise.
13156         (force_single_succ_latches): Likewise.
13157         * config/aarch64/falkor-tag-collision-avoidance.c
13158         (execute_tag_collision_avoidance): Likewise.
13159         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
13160         * config/s390/s390.c (s390_adjust_loops): Likewise.
13161         * doc/loop.texi: Likewise.
13162         * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
13163         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
13164         * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
13165         (loop_versioning::make_versioning_decisions): Likewise.
13166         * gimple-ssa-split-paths.c (split_paths): Likewise.
13167         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
13168         * graphite.c (canonicalize_loop_form): Likewise.
13169         (graphite_transform_loops): Likewise.
13170         * ipa-fnsummary.c (analyze_function_body): Likewise.
13171         * ipa-pure-const.c (analyze_function): Likewise.
13172         * loop-doloop.c (doloop_optimize_loops): Likewise.
13173         * loop-init.c (loop_optimizer_finalize): Likewise.
13174         (fix_loop_structure): Likewise.
13175         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13176         (move_loop_invariants): Likewise.
13177         * loop-unroll.c (decide_unrolling): Likewise.
13178         (unroll_loops): Likewise.
13179         * modulo-sched.c (sms_schedule): Likewise.
13180         * predict.c (predict_loops): Likewise.
13181         (pass_profile::execute): Likewise.
13182         * profile.c (branch_prob): Likewise.
13183         * sel-sched-ir.c (sel_finish_pipelining): Likewise.
13184         (sel_find_rgns): Likewise.
13185         * tree-cfg.c (replace_loop_annotate): Likewise.
13186         (replace_uses_by): Likewise.
13187         (move_sese_region_to_fn): Likewise.
13188         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
13189         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
13190         * tree-parloops.c (parallelize_loops): Likewise.
13191         * tree-predcom.c (tree_predictive_commoning): Likewise.
13192         * tree-scalar-evolution.c (scev_initialize): Likewise.
13193         (scev_reset): Likewise.
13194         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
13195         * tree-ssa-live.c (remove_unused_locals): Likewise.
13196         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
13197         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
13198         (tree_ssa_lim_initialize): Likewise.
13199         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
13200         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
13201         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
13202         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
13203         (free_numbers_of_iterations_estimates): Likewise.
13204         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13205         * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
13206         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
13207         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13208         (pass_scev_cprop::execute): Likewise.
13209         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
13210         * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
13211         * tree-ssa-threadupdate.c
13212         (jump_thread_path_registry::thread_through_all_blocks): Likewise.
13213         * tree-vectorizer.c (vectorize_loops): Likewise.
13214         * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
13216 2021-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
13218         * config/mmix/mmix.c (mmix_function_arg_1): Avoid
13219         generating a VOIDmode register for e.g the
13220         function_arg_info::end_marker.
13222 2021-07-29  Jeff Law  <jeffreyalaw@gmail.com>
13224         * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
13225         * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
13226         (cc mode_attr): Similarly.
13227         (ccz subst_attr): Similarly.
13228         * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
13229         * config/h8300/testcompare.md: Remove various cc0 based patterns
13230         that had been commented out.  Add pattern to set CCZ from a bit
13231         test.
13233 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
13234             Julian Brown  <julian@codesourcery.com>
13235             Kwok Cheung Yeung  <kcy@codesourcery.com>
13237         * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
13238         'update_stmt' after modification.
13239         (pass_oacc_loop_designation): New function, extracted out of...
13240         (pass_oacc_device_lower): ... this.
13241         (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
13242         (make_pass_oacc_loop_designation): New
13243         * passes.def: Add it.
13244         * tree-parloops.c (create_parallel_loop): Adjust.
13245         * tree-pass.h (make_pass_oacc_loop_designation): New.
13247 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
13249         * flag-types.h (enum threader_mode): New.
13250         * params.opt: Add entry for --param=threader-mode.
13251         * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
13252         (class back_threader): New.
13253         (back_threader::back_threader): New.
13254         (back_threader::~back_threader): New.
13255         (back_threader::maybe_register_path): New.
13256         (back_threader::find_taken_edge): New.
13257         (back_threader::find_taken_edge_switch): New.
13258         (back_threader::find_taken_edge_cond): New.
13259         (back_threader::resolve_def): New.
13260         (back_threader::resolve_phi): New.
13261         (back_threader::find_paths_to_names): New.
13262         (back_threader::find_paths): New.
13263         (dump_path): New.
13264         (debug): New.
13265         (thread_jumps::find_jump_threads_backwards): Call ranger threader.
13266         (thread_jumps::find_jump_threads_backwards_with_ranger): New.
13267         (pass_thread_jumps::execute): Abstract out code...
13268         (try_thread_blocks): ...here.
13269         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
13270         Abstract out threading candidate code to...
13271         (single_succ_to_potentially_threadable_block): ...here.
13272         * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
13273         New.
13274         * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
13275         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
13276         Return bool from register_jump_thread.
13278 2021-07-29  Andreas Krebbel  <krebbel@linux.ibm.com>
13280         * target.def: in0 and in1 do not need to be registers.
13281         * doc/tm.texi: Regenerate.
13283 2021-07-29  liuhongt  <hongtao.liu@intel.com>
13285         PR target/39821
13286         * config/i386/i386.c (ix86_widen_mult_cost): New function.
13287         (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
13288         WIDEN_MULT_EXPR.
13290 2021-07-29  Jiufu Guo  <guojiufu@linux.ibm.com>
13292         PR target/61837
13293         * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
13294         (rs6000_preferred_doloop_mode): New hook.
13295         * doc/tm.texi: Regenerate.
13296         * doc/tm.texi.in: Add hook preferred_doloop_mode.
13297         * target.def (preferred_doloop_mode): New hook.
13298         * targhooks.c (default_preferred_doloop_mode): New hook.
13299         * targhooks.h (default_preferred_doloop_mode): New hook.
13300         * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
13301         (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
13302         and compute_doloop_base_on_mode.
13304 2021-07-28  Martin Sebor  <msebor@redhat.com>
13306         PR middle-end/101494
13307         * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
13308         and size computation.
13310 2021-07-28  Martin Sebor  <msebor@redhat.com>
13312         PR middle-end/101601
13313         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
13314         a pointless test.
13315         Handle pointers to functions.
13317 2021-07-28  Martin Sebor  <msebor@redhat.com>
13319         * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
13320         * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
13321         * builtins.c (compute_objsize_r): Move to pointer-query.cc.
13322         (access_ref::access_ref): Same.
13323         (access_ref::phi): Same.
13324         (access_ref::get_ref): Same.
13325         (access_ref::size_remaining): Same.
13326         (access_ref::offset_in_range): Same.
13327         (access_ref::add_offset): Same.
13328         (access_ref::inform_access): Same.
13329         (ssa_name_limit_t::visit_phi): Same.
13330         (ssa_name_limit_t::leave_phi): Same.
13331         (ssa_name_limit_t::next): Same.
13332         (ssa_name_limit_t::next_phi): Same.
13333         (ssa_name_limit_t::~ssa_name_limit_t): Same.
13334         (pointer_query::pointer_query): Same.
13335         (pointer_query::get_ref): Same.
13336         (pointer_query::put_ref): Same.
13337         (pointer_query::flush_cache): Same.
13338         (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
13339         (check_nul_terminated_array): Same.
13340         (unterminated_array): Same.
13341         (maybe_warn_for_bound): Same.
13342         (check_read_access): Same.
13343         (warn_for_access): Same.
13344         (get_size_range): Same.
13345         (check_access): Same.
13346         (gimple_call_alloc_size): Move to tree.c.
13347         (gimple_parm_array_size): Move to pointer-query.cc.
13348         (get_offset_range): Same.
13349         (gimple_call_return_array): Same.
13350         (handle_min_max_size): Same.
13351         (handle_array_ref): Same.
13352         (handle_mem_ref): Same.
13353         (compute_objsize): Same.
13354         (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
13355         (call_dealloc_argno): Same.
13356         (fndecl_dealloc_argno): Same.
13357         (new_delete_mismatch_p): Same.
13358         (matching_alloc_calls_p): Same.
13359         (warn_dealloc_offset): Same.
13360         (maybe_emit_free_warning): Same.
13361         * builtins.h (check_nul_terminated_array): Move to
13362         gimple-ssa-warn-access.h.
13363         (check_nul_terminated_array): Same.
13364         (warn_string_no_nul): Same.
13365         (unterminated_array): Same.
13366         (class ssa_name_limit_t): Same.
13367         (class pointer_query): Same.
13368         (struct access_ref): Same.
13369         (class range_query): Same.
13370         (struct access_data): Same.
13371         (gimple_call_alloc_size): Same.
13372         (gimple_parm_array_size): Same.
13373         (compute_objsize): Same.
13374         (class access_data): Same.
13375         (maybe_emit_free_warning): Same.
13376         * calls.c (initialize_argument_information): Remove call to
13377         maybe_emit_free_warning.
13378         * gimple-array-bounds.cc: Include new header..
13379         * gimple-fold.c: Same.
13380         * gimple-ssa-sprintf.c: Same.
13381         * gimple-ssa-warn-restrict.c: Same.
13382         * passes.def: Add pass_warn_access.
13383         * tree-pass.h (make_pass_warn_access): Declare.
13384         * tree-ssa-strlen.c: Include new headers.
13385         * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
13386         * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
13387         * gimple-ssa-warn-access.cc: New file.
13388         * gimple-ssa-warn-access.h: New file.
13389         * pointer-query.cc: New file.
13390         * pointer-query.h: New file.
13392 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
13394         PR middle-end/101624
13395         * ubsan.c (maybe_instrument_pointer_overflow,
13396         instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
13397         PARM_DECLs or RESULT_DECLs.
13398         * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
13400 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
13402         PR middle-end/101642
13403         * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
13404         to type of bswap16 for comparison.
13405         (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
13407 2021-07-28  Richard Biener  <rguenther@suse.de>
13409         PR tree-optimization/101615
13410         * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
13411         at CTOR SLP graph entries.
13413 2021-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13415         * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
13416         Add "r,w" alternative.
13418 2021-07-28  H.J. Lu  <hjl.tools@gmail.com>
13420         PR target/101456
13421         * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
13422         AVX_U128_DIRTY when all bits are zero.
13424 2021-07-28  Richard Biener  <rguenther@suse.de>
13426         PR tree-optimization/101615
13427         * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
13428         external nodes cannot be permuted so make them perm_out 0.
13430 2021-07-28  Andrew Stubbs  <ams@codesourcery.com>
13432         PR target/100208
13433         * config.in: Regenerate.
13434         * config/gcn/gcn-hsa.h (A_FIJI): New define.
13435         (A_900): New define.
13436         (A_906): New define.
13437         (A_908): New define.
13438         (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
13439         * config/gcn/gcn.c (output_file_start): Adjust attributes according
13440         to the assembler capabilities.
13441         * config/gcn/mkoffload.c (main): Likewise.
13442         * configure: Regenerate.
13443         * configure.ac: Add tests for LLVM assembler attribute features.
13445 2021-07-28  Andrew MacLeod  <amacleod@redhat.com>
13447         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
13448         cond_false and cond_true on branches.
13450 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
13452         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
13453         gcc_stablesort.
13455 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
13457         * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
13459 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
13461         PR target/101611
13462         * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
13463         and vashrv4di3 expander, where the latter requires just TARGET_AVX2
13464         and has special !TARGET_AVX512VL expansion.
13465         (vashrv2di3<mask_name>): Rename to ...
13466         (vashrv2di3): ... this.  Change condition to TARGET_XOP || TARGET_AVX2
13467         and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
13469 2021-07-28  Martin Uecker  <muecker@gwdg.de>
13471         * calls.c (maybe_warn_rdwr_sizes): Correct argument
13472         numbers in warning that were switched.
13474 2021-07-28  Kewen Lin  <linkw@linux.ibm.com>
13476         PR tree-optimization/101596
13477         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
13478         by using new_type's precision instead.
13480 2021-07-28  liuhongt  <hongtao.liu@intel.com>
13482         PR target/99881
13483         * config/i386/i386.h (processor_costs): Add new member
13484         integer_to_sse.
13485         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
13486         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
13487         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
13488         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
13489         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
13490         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
13491         generic_cost, core_cost): Initialize integer_to_sse same value
13492         as sse_op.
13493         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
13494         * config/i386/i386.c (ix86_builtin_vectorization_cost):
13495         Use integer_to_sse instead of sse_op to calculate the cost of
13496         vec_construct.
13498 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
13500         * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
13501         function.
13502         (write_init_file): Call write_ovld_static_init.
13504 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
13506         * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
13507         function.
13508         (write_init_file): Call write_bif_static_init.
13510 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
13512         * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
13513         (TYPE_MAP_SIZE): New macro.
13514         (type_map): New initialized variable.
13515         (typemap_cmp): New function.
13516         (write_type_node): Likewise.
13517         (write_fntype_init): Implement.
13519 2021-07-27  Martin Sebor  <msebor@redhat.com>
13521         PR tree-optimization/101584
13522         * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
13523         (check_defs): Call it.
13525 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
13527         * tree-ssa-dom.c (dom_jump_threader_simplifier):
13528         Put avail_exprs_stack in the class, instead of passing it to
13529         jump_threader_simplifier.
13530         (dom_jump_threader_simplifier::simplify): Add state argument.
13531         (dom_opt_dom_walker): Add state.
13532         (pass_dominator::execute): Pass state to threader.
13533         (dom_opt_dom_walker::before_dom_children): Use state.
13534         * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
13535         arguments by state.
13536         (jump_threader::record_temporary_equivalences_from_phis):
13537         Register equivalences through the state variable.
13538         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
13539         Record ranges in a statement through the state variable.
13540         (jump_threader::simplify_control_stmt_condition): Pass state to
13541         simplify.
13542         (jump_threader::simplify_control_stmt_condition_1): Same.
13543         (jump_threader::thread_around_empty_blocks): Remove obsolete
13544         comment.
13545         (jump_threader::thread_through_normal_block): Record equivalences
13546         on edge through the state variable.
13547         (jump_threader::thread_across_edge): Abstract state pushing.
13548         (jt_state::jt_state): New.
13549         (jt_state::push): New.
13550         (jt_state::pop): New.
13551         (jt_state::register_equiv): New.
13552         (jt_state::record_ranges_from_stmt): New.
13553         (jt_state::register_equivs_on_edge): New.
13554         (jump_threader_simplifier::jump_threader_simplifier): Move from
13555         header.
13556         (jump_threader_simplifier::simplify): Add state argument.
13557         * tree-ssa-threadedge.h (class jt_state): New.
13558         (class jump_threader): Add state to constructor.
13559         (class jump_threader_simplifier): Add state to simplify.  Remove
13560         avail_exprs_stack from class.
13561         * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
13562         argument.
13563         (vrp_jump_threader::vrp_jump_threader): Add state.
13564         (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
13566 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
13568         * Makefile.in (OBJS): Add gimple-range-path.o.
13569         * gimple-range-path.cc: New file.
13570         * gimple-range-path.h: New file.
13572 2021-07-27  Jonathan Wright  <jonathan.wright@arm.com>
13574         * config/aarch64/aarch64-simd.md: Push sign/zero-extension
13575         inside vec_duplicate for all patterns.
13576         * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
13577         Push sign/zero-extension inside vec_duplicate.
13579 2021-07-27  Richard Biener  <rguenther@suse.de>
13581         PR tree-optimization/101573
13582         * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
13583         looking at uninitialized PHI arg defs in some constrained cases.
13584         (warn_uninitialized_vars): Call it.
13585         (execute_early_warn_uninitialized): Calculate dominators.
13587 2021-07-27  Richard Biener  <rguenther@suse.de>
13589         PR tree-optimization/39821
13590         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
13591         vector_stmt for widening arithmetic.
13592         (vectorizable_conversion): Adjust.
13594 2021-07-27  Martin Jambor  <mjambor@suse.cz>
13596         * cgraph.h (ipa_replace_map): New field force_load_ref.
13597         * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
13598         aded new flag load_dereferenced, adjusted comments.
13599         (ipa_get_param_dereferenced): New function.
13600         (ipa_set_param_dereferenced): Likewise.
13601         * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
13602         * ipa-cp.c: Include gimple.h.
13603         (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
13604         (get_replacement_map): New parameter force_load_ref, set the
13605         appropriate flag in ipa_replace_map if set.
13606         (struct symbol_and_index_together): New type.
13607         (adjust_refs_in_act_callers): New function.
13608         (adjust_references_in_caller): Likewise.
13609         (create_specialized_node): When appropriate, call
13610         adjust_references_in_caller and force only load references.
13611         * ipa-prop.c (load_from_dereferenced_name): New function.
13612         (ipa_analyze_controlled_uses): Also detect loads from a
13613         dereference, harden testing of call statements.
13614         (ipa_write_node_info): Stream the dereferenced flag.
13615         (ipa_read_node_info): Likewise.
13616         (ipa_set_jf_constant): Also create refdesc when jump function
13617         references a variable.
13618         (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
13619         also on references of variables and return a symtab_node.  Adjust
13620         all callers.
13621         (propagate_controlled_uses): Also remove references to VAR_DECLs.
13623 2021-07-27  Jakub Jelinek  <jakub@redhat.com>
13625         PR middle-end/101586
13626         * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
13627         positions above or equal to sz except for diagnostics of flexible
13628         array members.
13630 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
13632         PR tree-optimization/78888
13633         * gimple-range-fold.cc (get_letter_range): New.
13634         (fold_using_range::range_of_builtin_call): Call get_letter_range.
13636 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
13638         PR tree-optimization/78888
13639         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
13640         for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
13642 2021-07-26  Roger Sayle  <roger@nextmovesoftware.com>
13643             Marc Glisse  <marc.glisse@inria.fr>
13645         * match.pd (rotate): Simplify equality/inequality of rotations.
13646         (bswap): Simplify equality/inequality tests of byte swapping.
13648 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
13650         * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
13651         New.
13653 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
13655         * range-op.cc (operator_lshift::fold_range): Pass rel to
13656         base class fold_range.
13657         (operator_rshift::fold_range): Same.
13659 2021-07-26  Ashimida  <ashimida@linux.alibaba.com>
13661         PR driver/101447
13662         * toplev.h (min_align_loops_log): Remove declaration.
13663         (min_align_jumps_log, min_align_labels_log): Likewise.
13664         (min_align_functions_log): Likewise.
13666 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
13668         * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
13669         with range_query.
13670         (execute_vrp): Abstract out simplification of conditionals...
13671         (simplify_casted_conds): ...here.
13673 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
13675         * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
13676         Add gimple argument.
13677         (array_bounds_checker::check_array_ref): Same.
13678         (array_bounds_checker::check_addr_expr): Same.
13679         (array_bounds_checker::check_array_bounds): Pass statement to
13680         check_array_bounds and check_addr_expr.
13681         * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
13682         (check_addr_expr): Same.
13683         (get_value_range): Same.
13685 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
13687         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
13688         (sdot_prod, udot_prod): ... This.
13689         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
13690         into...
13691         (<sur>dot_prod<vsi2qi>): ... this.
13692         (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
13693         Change operands order.
13694         (<sur>sadv16qi): Use new operands order.
13695         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
13696         vdotq_s32): Use new RTL ordering.
13698 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
13700         * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
13701         aarch64_types_ternop_suss_qualifiers): New.
13702         * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
13703         * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
13704         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
13706 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
13708         PR rtl-optimization/101562
13709         * expmed.c (store_integral_bit_field): Only use movstrict_optab
13710         if the operand isn't paradoxical.
13712 2021-07-23  Aldy Hernandez  <aldyh@redhat.com>
13714         * gimple-array-bounds.h (class array_bounds_checker): Change
13715         ranges type to range_query.
13717 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13719         * config/aarch64/arm_neon.h (vst1_s64_x2): Use
13720         __builtin_memcpy instead of constructing
13721         __builtin_aarch64_simd_oi one vector at a time.
13722         (vst1_u64_x2): Likewise.
13723         (vst1_f64_x2): Likewise.
13724         (vst1_s8_x2): Likewise.
13725         (vst1_p8_x2): Likewise.
13726         (vst1_s16_x2): Likewise.
13727         (vst1_p16_x2): Likewise.
13728         (vst1_s32_x2): Likewise.
13729         (vst1_u8_x2): Likewise.
13730         (vst1_u16_x2): Likewise.
13731         (vst1_u32_x2): Likewise.
13732         (vst1_f16_x2): Likewise.
13733         (vst1_f32_x2): Likewise.
13734         (vst1_p64_x2): Likewise.
13735         (vst1q_s8_x2): Likewise.
13736         (vst1q_p8_x2): Likewise.
13737         (vst1q_s16_x2): Likewise.
13738         (vst1q_p16_x2): Likewise.
13739         (vst1q_s32_x2): Likewise.
13740         (vst1q_s64_x2): Likewise.
13741         (vst1q_u8_x2): Likewise.
13742         (vst1q_u16_x2): Likewise.
13743         (vst1q_u32_x2): Likewise.
13744         (vst1q_u64_x2): Likewise.
13745         (vst1q_f16_x2): Likewise.
13746         (vst1q_f32_x2): Likewise.
13747         (vst1q_f64_x2): Likewise.
13748         (vst1q_p64_x2): Likewise.
13750 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13752         * config/aarch64/arm_neon.h (vst1_s64_x3): Use
13753         __builtin_memcpy instead of constructing
13754         __builtin_aarch64_simd_ci one vector at a time.
13755         (vst1_u64_x3): Likewise.
13756         (vst1_f64_x3): Likewise.
13757         (vst1_s8_x3): Likewise.
13758         (vst1_p8_x3): Likewise.
13759         (vst1_s16_x3): Likewise.
13760         (vst1_p16_x3): Likewise.
13761         (vst1_s32_x3): Likewise.
13762         (vst1_u8_x3): Likewise.
13763         (vst1_u16_x3): Likewise.
13764         (vst1_u32_x3): Likewise.
13765         (vst1_f16_x3): Likewise.
13766         (vst1_f32_x3): Likewise.
13767         (vst1_p64_x3): Likewise.
13768         (vst1q_s8_x3): Likewise.
13769         (vst1q_p8_x3): Likewise.
13770         (vst1q_s16_x3): Likewise.
13771         (vst1q_p16_x3): Likewise.
13772         (vst1q_s32_x3): Likewise.
13773         (vst1q_s64_x3): Likewise.
13774         (vst1q_u8_x3): Likewise.
13775         (vst1q_u16_x3): Likewise.
13776         (vst1q_u32_x3): Likewise.
13777         (vst1q_u64_x3): Likewise.
13778         (vst1q_f16_x3): Likewise.
13779         (vst1q_f32_x3): Likewise.
13780         (vst1q_f64_x3): Likewise.
13781         (vst1q_p64_x3): Likewise.
13783 2021-07-23  H.J. Lu  <hjl.tools@gmail.com>
13785         PR target/101504
13786         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
13787         hard register when LRA is in progress.
13789 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13791         * config/aarch64/arm_neon.h (vst1_s8_x4): Use
13792         __builtin_memcpy instead of using a union.
13793         (vst1q_s8_x4): Likewise.
13794         (vst1_s16_x4): Likewise.
13795         (vst1q_s16_x4): Likewise.
13796         (vst1_s32_x4): Likewise.
13797         (vst1q_s32_x4): Likewise.
13798         (vst1_u8_x4): Likewise.
13799         (vst1q_u8_x4): Likewise.
13800         (vst1_u16_x4): Likewise.
13801         (vst1q_u16_x4): Likewise.
13802         (vst1_u32_x4): Likewise.
13803         (vst1q_u32_x4): Likewise.
13804         (vst1_f16_x4): Likewise.
13805         (vst1q_f16_x4): Likewise.
13806         (vst1_f32_x4): Likewise.
13807         (vst1q_f32_x4): Likewise.
13808         (vst1_p8_x4): Likewise.
13809         (vst1q_p8_x4): Likewise.
13810         (vst1_p16_x4): Likewise.
13811         (vst1q_p16_x4): Likewise.
13812         (vst1_s64_x4): Likewise.
13813         (vst1_u64_x4): Likewise.
13814         (vst1_p64_x4): Likewise.
13815         (vst1q_s64_x4): Likewise.
13816         (vst1q_u64_x4): Likewise.
13817         (vst1q_p64_x4): Likewise.
13818         (vst1_f64_x4): Likewise.
13819         (vst1q_f64_x4): Likewise.
13821 2021-07-23  Jonathan Wrightt  <jonathan.wright@arm.com>
13823         * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
13824         instead of constructing __builtin_aarch64_simd_oi one vector
13825         at a time.
13826         (vst2_u64): Likewise.
13827         (vst2_f64): Likewise.
13828         (vst2_s8): Likewise.
13829         (vst2_p8): Likewise.
13830         (vst2_s16): Likewise.
13831         (vst2_p16): Likewise.
13832         (vst2_s32): Likewise.
13833         (vst2_u8): Likewise.
13834         (vst2_u16): Likewise.
13835         (vst2_u32): Likewise.
13836         (vst2_f16): Likewise.
13837         (vst2_f32): Likewise.
13838         (vst2_p64): Likewise.
13839         (vst2q_s8): Likewise.
13840         (vst2q_p8): Likewise.
13841         (vst2q_s16): Likewise.
13842         (vst2q_p16): Likewise.
13843         (vst2q_s32): Likewise.
13844         (vst2q_s64): Likewise.
13845         (vst2q_u8): Likewise.
13846         (vst2q_u16): Likewise.
13847         (vst2q_u32): Likewise.
13848         (vst2q_u64): Likewise.
13849         (vst2q_f16): Likewise.
13850         (vst2q_f32): Likewise.
13851         (vst2q_f64): Likewise.
13852         (vst2q_p64): Likewise.
13854 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13856         * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
13857         instead of constructing __builtin_aarch64_simd_ci one vector
13858         at a time.
13859         (vst3_u64): Likewise.
13860         (vst3_f64): Likewise.
13861         (vst3_s8): Likewise.
13862         (vst3_p8): Likewise.
13863         (vst3_s16): Likewise.
13864         (vst3_p16): Likewise.
13865         (vst3_s32): Likewise.
13866         (vst3_u8): Likewise.
13867         (vst3_u16): Likewise.
13868         (vst3_u32): Likewise.
13869         (vst3_f16): Likewise.
13870         (vst3_f32): Likewise.
13871         (vst3_p64): Likewise.
13872         (vst3q_s8): Likewise.
13873         (vst3q_p8): Likewise.
13874         (vst3q_s16): Likewise.
13875         (vst3q_p16): Likewise.
13876         (vst3q_s32): Likewise.
13877         (vst3q_s64): Likewise.
13878         (vst3q_u8): Likewise.
13879         (vst3q_u16): Likewise.
13880         (vst3q_u32): Likewise.
13881         (vst3q_u64): Likewise.
13882         (vst3q_f16): Likewise.
13883         (vst3q_f32): Likewise.
13884         (vst3q_f64): Likewise.
13885         (vst3q_p64): Likewise.
13887 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13889         * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
13890         instead of constructing __builtin_aarch64_simd_xi one vector
13891         at a time.
13892         (vst4_u64): Likewise.
13893         (vst4_f64): Likewise.
13894         (vst4_s8): Likewise.
13895         (vst4_p8): Likewise.
13896         (vst4_s16): Likewise.
13897         (vst4_p16): Likewise.
13898         (vst4_s32): Likewise.
13899         (vst4_u8): Likewise.
13900         (vst4_u16): Likewise.
13901         (vst4_u32): Likewise.
13902         (vst4_f16): Likewise.
13903         (vst4_f32): Likewise.
13904         (vst4_p64): Likewise.
13905         (vst4q_s8): Likewise.
13906         (vst4q_p8): Likewise.
13907         (vst4q_s16): Likewise.
13908         (vst4q_p16): Likewise.
13909         (vst4q_s32): Likewise.
13910         (vst4q_s64): Likewise.
13911         (vst4q_u8): Likewise.
13912         (vst4q_u16): Likewise.
13913         (vst4q_u32): Likewise.
13914         (vst4q_u64): Likewise.
13915         (vst4q_f16): Likewise.
13916         (vst4q_f32): Likewise.
13917         (vst4q_f64): Likewise.
13918         (vst4q_p64): Likewise.
13920 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13922         * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
13923         instead of constructing __builtin_aarch64_simd_oi one vector
13924         at a time.
13925         (vtbx4_u8): Likewise.
13926         (vtbx4_p8): Likewise.
13928 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13930         * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
13931         instead of constructing __builtin_aarch64_simd_oi one vector
13932         at a time.
13933         (vtbl3_u8): Likewise.
13934         (vtbl3_p8): Likewise.
13935         (vtbl4_s8): Likewise.
13936         (vtbl4_u8): Likewise.
13937         (vtbl4_p8): Likewise.
13939 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13941         * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
13942         instead of constructing __builtin_aarch64_simd_oi one vector
13943         at a time.
13944         (vqtbx2_u8): Likewise.
13945         (vqtbx2_p8): Likewise.
13946         (vqtbx2q_s8): Likewise.
13947         (vqtbx2q_u8): Likewise.
13948         (vqtbx2q_p8): Likewise.
13949         (vqtbx3_s8): Use __builtin_memcpy instead of constructing
13950         __builtin_aarch64_simd_ci one vector at a time.
13951         (vqtbx3_u8): Likewise.
13952         (vqtbx3_p8): Likewise.
13953         (vqtbx3q_s8): Likewise.
13954         (vqtbx3q_u8): Likewise.
13955         (vqtbx3q_p8): Likewise.
13956         (vqtbx4_s8): Use __builtin_memcpy instead of constructing
13957         __builtin_aarch64_simd_xi one vector at a time.
13958         (vqtbx4_u8): Likewise.
13959         (vqtbx4_p8): Likewise.
13960         (vqtbx4q_s8): Likewise.
13961         (vqtbx4q_u8): Likewise.
13962         (vqtbx4q_p8): Likewise.
13964 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
13966         * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
13967         instead of constructing __builtin_aarch64_simd_oi one vector
13968         at a time.
13969         (vqtbl2_u8): Likewise.
13970         (vqtbl2_p8): Likewise.
13971         (vqtbl2q_s8): Likewise.
13972         (vqtbl2q_u8): Likewise.
13973         (vqtbl2q_p8): Likewise.
13974         (vqtbl3_s8): Use __builtin_memcpy instead of constructing
13975         __builtin_aarch64_simd_ci one vector at a time.
13976         (vqtbl3_u8): Likewise.
13977         (vqtbl3_p8): Likewise.
13978         (vqtbl3q_s8): Likewise.
13979         (vqtbl3q_u8): Likewise.
13980         (vqtbl3q_p8): Likewise.
13981         (vqtbl4_s8): Use __builtin_memcpy instead of constructing
13982         __builtin_aarch64_simd_xi one vector at a time.
13983         (vqtbl4_u8): Likewise.
13984         (vqtbl4_p8): Likewise.
13985         (vqtbl4q_s8): Likewise.
13986         (vqtbl4q_u8): Likewise.
13987         (vqtbl4q_p8): Likewise.
13989 2021-07-23  Haochen Gui  <guihaoc@gcc.gnu.org>
13991         PR target/100952
13992         * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
13994 2021-07-22  Andrew Pinski  <apinski@marvell.com>
13996         PR tree-optimization/10153
13997         * tree-tailcall.c (create_tailcall_accumulator):
13998         Don't call fold_convert as the type should be correct already.
13999         (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
14000         of integer_{one,zero}_node for the call of create_tailcall_accumulator.
14002 2021-07-22  Aldy Hernandez  <aldyh@redhat.com>
14004         * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
14005         varying_p check for null/non-null check.
14007 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
14009         PR tree-optimization/101511
14010         * value-relation.cc (relation_oracle::query_relation): Check if ssa1
14011         is in ssa2's equiv set, and don't trap if so.
14013 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
14015         PR tree-optimization/101497
14016         * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
14017         for undefined.
14019 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
14021         PR tree-optimization/101496
14022         * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
14023         first, then vrp_visit_cond_Stmt.
14025 2021-07-22  liuhongt  <hongtao.liu@intel.com>
14027         * config/i386/i386-expand.c
14028         (ix86_broadcast_from_integer_constant): Rename to ..
14029         (ix86_broadcast_from_constant): .. this, and extend it to
14030         handle float mode.
14031         (ix86_expand_vector_move): Extend to float mode.
14032         * config/i386/i386-features.c
14033         (replace_constant_pool_with_broadcast): Remove.
14034         (remove_partial_avx_dependency_gate): Ditto.
14035         (constant_pool_broadcast): Ditto.
14036         (class pass_constant_pool_broadcast): Ditto.
14037         (make_pass_constant_pool_broadcast): Ditto.
14038         (remove_partial_avx_dependency): Adjust gate.
14039         * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
14040         * config/i386/i386-protos.h
14041         (make_pass_constant_pool_broadcast): Remove.
14043 2021-07-22  liuhongt  <hongtao.liu@intel.com>
14045         * config/i386/constraints.md (Wb): New constraint.
14046         (Ww): Ditto.
14047         * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
14048         shift.
14049         (*ashlqi3_1): Ditto.
14050         (*<insn><mode>3_1): Split to ..
14051         (*ashr<mode>3_1): this, ...
14052         (*lshr<mode>3_1): and this, also extend this pattern to avx512
14053         mask registers.
14054         (*<insn><mode>3_1): Split to ..
14055         (*ashr<mode>3_1): this, ...
14056         (*lshrqi3_1): and this, also extend this pattern to avx512
14057         mask registers.
14058         (*lshrhi3_1): And this, also extend this pattern to avx512
14059         mask registers.
14060         * config/i386/sse.md (k<code><mode>): New define_split after
14061         it to convert generic shift pattern to mask shift ones.
14063 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
14064             Joseph Myers  <joseph@codesourcery.com>
14065             Cesar Philippidis  <cesar@codesourcery.com>
14067         * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
14068         * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
14069         Handle it.
14070         * tree-pretty-print.c (dump_omp_clause): Likewise.
14071         * omp-general.c (oacc_verify_routine_clauses): Likewise.
14072         * gimplify.c (gimplify_scan_omp_clauses)
14073         (gimplify_adjust_omp_clauses): Likewise.
14074         * tree-nested.c (convert_nonlocal_omp_clauses)
14075         (convert_local_omp_clauses): Likewise.
14076         * omp-low.c (scan_sharing_clauses): Likewise.
14077         * omp-offload.c (execute_oacc_device_lower): Update.
14079 2021-07-21  Martin Sebor  <msebor@redhat.com>
14081         * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
14083 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14085         * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
14086         Implement.
14088 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14090         * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
14091         callback function.
14092         (write_fntype_init): New stub function.
14093         (write_init_bif_table): Likewise.
14094         (write_init_ovld_table): New function.
14095         (write_init_file): Implement.
14097 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14099         * config/rs6000/rs6000-gen-builtins.c
14100         (write_autogenerated_header): New function.
14101         (write_decls): Likewise.
14102         (write_extern_fntype): New callback function.
14103         (write_header_file): Implement.
14105 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14107         * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
14108         Implement.
14110 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14112         * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
14113         function.
14114         (complete_base_type): Likewise.
14115         (construct_fntype_id): Likewise.
14116         (parse_bif_entry): Call contruct_fntype_id.
14117         (parse_ovld_entry): Likewise.
14119 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14121         * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
14122         (MAXOVLDSTANZAS): New macro.
14123         (ovld_stanzas): New variable.
14124         (curr_ovld_stanza): Likewise.
14125         (MAXOVLDS): New macro.
14126         (ovlddata): New struct.
14127         (ovlds): New variable.
14128         (curr_ovld): Likewise.
14129         (max_ovld_args): Likewise.
14130         (parse_ovld_entry): New function.
14131         (parse_ovld_stanza): Likewise.
14132         (parse_ovld): Implement.
14134 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14136         * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
14137         Implement.
14139 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14141         * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
14142         (parse_prototype): Implement.
14144 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14146         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
14147         (curr_bif_stanza): New variable.
14148         (stanza_entry): New struct.
14149         (stanza_map): New initialized variable.
14150         (enable_string): Likewise.
14151         (fnkinds): New enum.
14152         (typelist): New struct.
14153         (attrinfo): Likewise.
14154         (MAXRESTROPNDS): New macro.
14155         (prototype): New struct.
14156         (MAXBIFS): New macro.
14157         (bifdata): New struct.
14158         (bifs): New variable.
14159         (curr_bif): Likewise.
14160         (bif_order): Likewise.
14161         (bif_index): Likewise.
14162         (fatal): New function.
14163         (stanza_name_to_stanza): Likewise.
14164         (parse_bif_attrs): New stub function.
14165         (parse_prototype): Likewise.
14166         (parse_bif_entry): New function.
14167         (parse_bif_stanza): Likewise.
14168         (parse_bif): Implement.
14169         (set_bif_order): New function.
14170         (create_bif_order): Implement.
14172 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14174         * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
14175         (num_bifs): New variable.
14176         (num_ovld_stanzas): Likewise.
14177         (num_ovlds): Likewise.
14178         (parse_codes): New enum.
14179         (bif_rbt): New variable.
14180         (ovld_rbt): Likewise.
14181         (fntype_rbt): Likewise.
14182         (bifo_rbt): Likewise.
14183         (parse_bif): New stub function.
14184         (create_bif_order): Likewise.
14185         (parse_ovld): Likewise.
14186         (write_header_file): Likewise.
14187         (write_init_file): Likewise.
14188         (write_defines_file): Likewise.
14189         (delete_output_files): New function.
14190         (main): Likewise.
14192 2021-07-21  H.J. Lu  <hjl.tools@gmail.com>
14194         PR target/101549
14195         * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
14196         from CRC32 _builtin functions.
14198 2021-07-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14200         * coverage.c (build_gcov_info_var_registration): Mark the object placed
14201         in the linker set as referenced so that it does not get optimized away.
14203 2021-07-21  Kito Cheng  <kito.cheng@sifive.com>
14205         Revert:
14206         2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
14208         * config.gcc (riscv*-*-*): Detect which python is available.
14210 2021-07-21  Jakub Jelinek  <jakub@redhat.com>
14212         PR middle-end/101535
14213         * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
14214         contexts in which decl isn't privatized and for ORT_TARGET return
14215         false if decl is mapped.
14217 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
14219         * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
14220         (tree_loop_unroll_and_jam): Run value-numbering on a loop that
14221         has been successfully unrolled.
14223 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
14225         * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
14226         exit condition if no tail loop is needed, and if the original exit
14227         condition should therefore be kept as-is.
14228         (tree_transform_and_unroll_loop): Handle that case here too.
14230 2021-07-21  Kewen Lin  <linkw@linux.ibm.com>
14232         * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
14233         by reference.
14234         (free_data_refs): Likewise.
14235         * tree-data-ref.h (free_dependence_relations): Likewise.
14236         (free_data_refs): Likewise.
14237         * tree-predcom.c (struct chain): Use auto_vec instead of vec for
14238         members.
14239         (struct component): Likewise.
14240         (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
14241         (pcom_worker::~pcom_worker): Likewise.
14242         (pcom_worker::release_chain): Adjust as auto_vec changes.
14243         (pcom_worker::loop): Rename to ...
14244         (pcom_worker::m_loop): ... this.
14245         (pcom_worker::datarefs): Rename to ...
14246         (pcom_worker::m_datarefs): ... this.  Use auto_vec instead of vec.
14247         (pcom_worker::dependences): Rename to ...
14248         (pcom_worker::m_dependences): ... this.  Use auto_vec instead of vec.
14249         (pcom_worker::chains): Rename to ...
14250         (pcom_worker::m_chains): ... this.  Use auto_vec instead of vec.
14251         (pcom_worker::looparound_phis): Rename to ...
14252         (pcom_worker::m_looparound_phis): ... this.  Use auto_vec instead of
14253         vec.
14254         (pcom_worker::cache): Rename to ...
14255         (pcom_worker::m_cache): ... this.  Use auto_vec instead of vec.
14256         (pcom_worker::release_chain): Adjust for auto_vec changes.
14257         (pcom_worker::release_chains): Adjust for auto_vec and renaming
14258         changes.
14259         (release_component): Remove.
14260         (release_components): Adjust for release_component removal.
14261         (component_of): Adjust to use vec.
14262         (merge_comps): Likewise.
14263         (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
14264         (pcom_worker::determine_offset): Likewise.
14265         (class comp_ptrs): Remove.
14266         (pcom_worker::split_data_refs_to_components): Adjust for renaming
14267         changes, for comp_ptrs removal with auto_vec.
14268         (pcom_worker::suitable_component_p): Adjust for renaming changes.
14269         (pcom_worker::filter_suitable_components): Adjust for release_component
14270         removal.
14271         (pcom_worker::valid_initializer_p): Adjust for renaming changes.
14272         (pcom_worker::find_looparound_phi): Likewise.
14273         (pcom_worker::add_looparound_copies): Likewise.
14274         (pcom_worker::determine_roots_comp): Likewise.
14275         (pcom_worker::single_nonlooparound_use): Likewise.
14276         (pcom_worker::execute_pred_commoning_chain): Likewise.
14277         (pcom_worker::execute_pred_commoning): Likewise.
14278         (pcom_worker::try_combine_chains): Likewise.
14279         (pcom_worker::prepare_initializers_chain): Likewise.
14280         (pcom_worker::prepare_initializers): Likewise.
14281         (pcom_worker::prepare_finalizers_chain): Likewise.
14282         (pcom_worker::prepare_finalizers): Likewise.
14283         (pcom_worker::tree_predictive_commoning_loop): Likewise.
14285 2021-07-20  Martin Sebor  <msebor@redhat.com>
14287         PR middle-end/101397
14288         * builtins.c (gimple_call_return_array): Add argument.  Correct
14289         offsets for memchr, mempcpy, stpcpy, and stpncpy.
14290         (compute_objsize_r): Adjust offset computation for argument returning
14291         built-ins.
14293 2021-07-20  Martin Sebor  <msebor@redhat.com>
14295         PR middle-end/101300
14296         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
14298 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
14300         * function.c (assign_parm_setup_block): Use adjust_address instead
14301         of change_address to preserve MEM_EXPR and friends.
14303 2021-07-20  Martin Sebor  <msebor@redhat.com>
14305         * cfgloop.h (single_likely_exit): Adjust by-value argument to
14306         by-const-reference.
14307         * cfgloopanal.c (single_likely_exit): Same.
14308         * cgraph.h (struct cgraph_node): Same.
14309         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
14310         * genautomata.c (merge_states): Same.
14311         * genextract.c (VEC_char_to_string): Same.
14312         * genmatch.c (dt_node::gen_kids_1): Same.
14313         (walk_captures): Adjust by-value argument to by-reference.
14314         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
14315         to by-const-reference.
14316         * gimple.c (gimple_build_call_vec): Same.
14317         (gimple_build_call_internal_vec): Same.
14318         (gimple_build_switch): Same.
14319         (sort_case_labels): Same.
14320         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
14321         by-reference.
14322         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
14323         by-const-reference.
14324         (gimple_build_call_internal_vec): Same.
14325         (gimple_build_switch): Same.
14326         (sort_case_labels): Same.
14327         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
14328         by-reference.
14329         * haifa-sched.c (calc_priorities): Adjust by-value argument to
14330         by-const-reference.
14331         (sched_init_luids): Same.
14332         (haifa_init_h_i_d): Same.
14333         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
14334         (adjust_callers_for_value_intersection): Adjust by-value argument to
14335         by-reference.
14336         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
14337         by-const-reference.
14338         (find_more_contexts_for_caller_subset): Same.
14339         (find_aggregate_values_for_callers_subset): Same.
14340         (copy_useful_known_contexts): Same.
14341         * ipa-fnsummary.c (remap_edge_summaries): Same.
14342         (remap_freqcounting_predicate): Same.
14343         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
14344         by-reference.
14345         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
14346         to by-const-reference.
14347         * ipa-predicate.h (predicate::remap_after_inlining): Same.
14348         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
14349         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
14350         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
14351         * read-rtl.c (add_overload_instance): Same.
14352         * rtl.h (native_decode_rtx): Same.
14353         (native_decode_vector_rtx): Same.
14354         * sched-int.h (sched_init_luids): Same.
14355         (haifa_init_h_i_d): Same.
14356         * simplify-rtx.c (native_decode_vector_rtx): Same.
14357         (native_decode_rtx): Same.
14358         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
14359         (shrink_wrap_one_built_in_call_with_conds): Same.
14360         (shrink_wrap_conditional_dead_built_in_calls): Same.
14361         * tree-data-ref.c (create_runtime_alias_checks): Same.
14362         (compute_all_dependences): Same.
14363         * tree-data-ref.h (compute_all_dependences): Same.
14364         (create_runtime_alias_checks): Same.
14365         (index_in_loop_nest): Same.
14366         * tree-if-conv.c (mask_exists): Same.
14367         * tree-loop-distribution.c (class loop_distribution): Same.
14368         (loop_distribution::create_rdg_vertices): Same.
14369         (dump_rdg_partitions): Same.
14370         (debug_rdg_partitions): Same.
14371         (partition_contains_all_rw): Same.
14372         (loop_distribution::distribute_loop): Same.
14373         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
14374         (oacc_entry_exit_single_gang): Same.
14375         * tree-ssa-loop-im.c (hoist_memory_references): Same.
14376         (loop_suitable_for_sm): Same.
14377         * tree-ssa-loop-niter.c (bound_index): Same.
14378         * tree-ssa-reassoc.c (update_ops): Same.
14379         (swap_ops_for_binary_stmt): Same.
14380         (rewrite_expr_tree): Same.
14381         (rewrite_expr_tree_parallel): Same.
14382         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
14383         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
14384         * tree-ssa-structalias.c (process_all_all_constraints): Same.
14385         (make_constraints_to): Same.
14386         (handle_lhs_call): Same.
14387         (find_func_aliases_for_builtin_call): Same.
14388         (sort_fieldstack): Same.
14389         (check_for_overlaps): Same.
14390         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
14391         (vect_create_cond_for_unequal_addrs): Same.
14392         (vect_create_cond_for_lower_bounds): Same.
14393         (vect_create_cond_for_alias_checks): Same.
14394         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
14395         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
14396         (vect_make_slp_decision): Same.
14397         (vect_slp_bbs): Same.
14398         (duplicate_and_interleave): Same.
14399         (vect_transform_slp_perm_load): Same.
14400         (vect_schedule_slp): Same.
14401         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
14402         (vect_schedule_slp): Same.
14403         (duplicate_and_interleave): Same.
14404         * tree.c (build_vector_from_ctor): Same.
14405         (build_vector): Same.
14406         (check_vector_cst): Same.
14407         (check_vector_cst_duplicate): Same.
14408         (check_vector_cst_fill): Same.
14409         (check_vector_cst_stepped): Same.
14410         * tree.h (build_vector_from_ctor): Same.
14412 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
14414         PR target/101384
14415         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
14416         type from bool to int.
14417         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
14418         EASY_VECTOR_MSB case if either step or copies is not 1.
14419         (vspltis_shifted): Fix comment typo.
14420         (easy_altivec_constant): Change return type from bool to int, instead
14421         of returning true return byte size of the element mode that should be
14422         used to synthetize the constant.
14423         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
14424         that vspltis_shifted is 0, handle the case where easy_altivec_constant
14425         assumes using different vector mode from CONST_VECTOR's mode.
14426         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
14427         easy_altivec_constant to determine mode in which -1 >> -1 should be
14428         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
14430 2021-07-20  Richard Biener  <rguenther@suse.de>
14432         PR debug/101473
14433         * dwarf2out.h (dwarf_file_data): Add key member.
14434         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
14435         (dwarf_file_hasher::hash): Hash key.
14436         (lookup_filename): Remap the filename and store it in the
14437         filename member of dwarf_file_data when creating a new
14438         dwarf_file_data.
14439         (file_name_acquire): Do not remap the filename again.
14440         (maybe_emit_file): Likewise.
14442 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
14444         * config/aarch64/aarch64-simd-builtins.def: Use two variant
14445         generators for all TBL/TBX intrinsics and rename to
14446         consistent forms: qtbl[1234] or qtbx[1234].
14447         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
14448         Rename to...
14449         (aarch64_qtbl1<mode>): This.
14450         (aarch64_tbx1<mode>): Rename to...
14451         (aarch64_qtbx1<mode>): This.
14452         (aarch64_tbl2v16qi): Delete.
14453         (aarch64_tbl3<mode>): Rename to...
14454         (aarch64_qtbl2<mode>): This.
14455         (aarch64_tbx4<mode>): Rename to...
14456         (aarch64_qtbx2<mode>): This.
14457         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
14458         renamed qtbl1 and qtbl2 RTL patterns.
14459         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
14460         RTL pattern.
14461         (vqtbl1_s8): Likewise.
14462         (vqtbl1_u8): Likewise.
14463         (vqtbl1q_p8): Likewise.
14464         (vqtbl1q_s8): Likewise.
14465         (vqtbl1q_u8): Likewise.
14466         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
14467         (vqtbx1_u8): Likewise.
14468         (vqtbx1_p8): Likewise.
14469         (vqtbx1q_s8): Likewise.
14470         (vqtbx1q_u8): Likewise.
14471         (vqtbx1q_p8): Likewise.
14472         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
14473         (vtbl1_u8): Likewise.
14474         (vtbl1_p8): Likewise.
14475         (vtbl2_s8): Likewise
14476         (vtbl2_u8): Likewise.
14477         (vtbl2_p8): Likewise.
14478         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
14479         (vtbl3_u8): Likewise.
14480         (vtbl3_p8): Likewise.
14481         (vtbl4_s8): Likewise.
14482         (vtbl4_u8): Likewise.
14483         (vtbl4_p8): Likewise.
14484         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
14485         (vtbx2_u8): Likewise.
14486         (vtbx2_p8): Likewise.
14487         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
14488         (vqtbl2_u8): Likewise.
14489         (vqtbl2_p8): Likewise.
14490         (vqtbl2q_s8): Likewise.
14491         (vqtbl2q_u8): Likewise.
14492         (vqtbl2q_p8): Likewise.
14493         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
14494         (vqtbx2_u8): Likewise.
14495         (vqtbx2_p8): Likewise.
14496         (vqtbx2q_s8): Likewise.
14497         (vqtbx2q_u8): Likewise.
14498         (vqtbx2q_p8): Likewise.
14499         (vtbx4_s8): Likewise.
14500         (vtbx4_u8): Likewise.
14501         (vtbx4_p8): Likewise.
14503 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
14505         PR target/100182
14506         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
14507         Remove.
14508         (define_peephole2 atomic_loaddi_fpu): Ditto.
14510 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
14512         * config.gcc (riscv*-*-*): Detect which python is available.
14514 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
14516         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
14517         (smul<mode>3_highpart): ... this.
14518         (mulhu_<mode>): Rename to...
14519         (umul<mode>3_highpart): ... this.
14520         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
14521         MULHU_V2DI, MULHU_V4SI): Adjust.
14523 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
14525         PR tree-optimization/100696
14526         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
14527         * internal-fn.def (IFN_MULH): New internal function.
14528         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
14529         recog normal multiply highpart as IFN_MULH.
14530         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
14531         function CFN_MULH.
14533 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
14535         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
14536         (BTF_DEBUGGING_INFO): Likewise.
14537         * doc/tm.texi.in: Document the new macros.
14538         * doc/tm.texi: Regenerated.
14539         * toplev.c: Guard initialization of debug hooks.
14541 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
14543         * flags.h (ctf_debuginfo_p): New function declaration.
14544         * opts.c (ctf_debuginfo_p): New function definition.
14546 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
14548         PR target/100208
14549         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
14550         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
14551         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
14552         * config/gcn/gcn-valu.md: Add a warning comment.
14553         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
14554         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
14555         * config/gcn/gcn.md: Add a warning comment.
14556         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
14557         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
14558         SRAM-ECC flag.
14559         (EF_AMDGPU_XNACK): New.
14560         (EF_AMDGPU_SRAM_ECC): New.
14561         (elf_flags): New.
14562         (copy_early_debug_info): Use elf_flags.
14563         (main): Handle -mxnack and -msram-ecc options.
14564         * doc/invoke.texi: Document -mxnack and -msram-ecc.
14566 2021-07-19  Andrew Pinski  <apinski@marvell.com>
14568         PR target/101205
14569         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
14570         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
14572 2021-07-19  Richard Biener  <rguenther@suse.de>
14574         PR tree-optimization/101505
14575         * tree-vect-patterns.c (vect_determine_precisions): Walk
14576         PHIs also for loop vectorization.
14578 2021-07-19  Richard Biener  <rguenther@suse.de>
14580         * gimple.h (gimple_expr_type): Remove.
14581         * doc/gimple.texi: Remove gimple_expr_type documentation.
14583 2021-07-19  Richard Biener  <rguenther@suse.de>
14585         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
14586         (ao_ref_init_from_vn_reference): Likewise.
14587         (fully_constant_reference): Likewise.
14588         (vn_reference_lookup_call): Do not set vr->type to random
14589         values.
14590         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
14591         without a value.
14592         * tree-vect-generic.c (expand_vector_piecewise): Pass in
14593         whether we expanded parallel.
14594         (expand_vector_parallel): Adjust.
14595         (expand_vector_addition): Likewise.
14596         (expand_vector_comparison): Likewise.
14597         (expand_vector_operation): Likewise.
14598         (expand_vector_scalar_condition): Likewise.
14599         (expand_vector_conversion): Likewise.
14601 2021-07-19  Richard Biener  <rguenther@suse.de>
14603         * tree-vrp.c (register_edge_assert_for_2): Use the
14604         type from the LHS.
14605         (vrp_folder::fold_predicate_in): Likewise.
14606         * vr-values.c (gimple_assign_nonzero_p): Likewise.
14607         (vr_values::extract_range_from_comparison): Likewise.
14608         (vr_values::extract_range_from_ubsan_builtin): Use the
14609         type of the first operand.
14610         (vr_values::extract_range_basic): Push down type
14611         computation, use the appropriate LHS.
14612         (vr_values::extract_range_from_assignment): Use the
14613         type of the LHS.
14615 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
14617         PR target/101492
14618         * common/config/i386/i386-common.c (ix86_handle_option): For
14619         -mgeneral-regs-only, enable the GPR only instructions which are
14620         enabled implicitly by SSE ISAs unless they have been disabled
14621         explicitly.
14623 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
14625         PR target/101495
14626         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
14627         ix86_avx_u128_mode_needed.
14628         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
14629         returns AVX register.
14631 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
14633         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
14634         (handle_const_call): Liekise
14635         (handle_pure_call): Liekise
14637 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
14639         PR tree-optimization/96542
14640         * range-op.cc (range_operator::wi_fold_in_parts): New.
14641         (range_operator::fold_range): Call wi_fold_in_parts.
14642         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
14643         * range-op.h (wi_fold_in_parts): Add prototype.
14645 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
14647         * doc/analyzer.texi: Add __analyzer_dump_state.
14649 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14651         * config/rs6000/rbtree.c: New file.
14652         * config/rs6000/rbtree.h: New file.
14654 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14656         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
14657         (typeinfo): Add restr field.
14658         (match_bracketed_pair): New function.
14659         (match_const_restriction): Implement.
14661 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14663         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
14665 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14667         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
14668         (basetype): Likewise.
14669         (typeinfo): Likewise.
14670         (handle_pointer): New function.
14671         (match_basetype): New stub function.
14672         (match_const_restriction): Likewise.
14673         (match_type): New function.
14675 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14677         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
14678         function.
14679         (advance_line): Likewise.
14680         (safe_inc_pos): Likewise.
14681         (match_identifier): Likewise.
14682         (match_integer): Likewise.
14683         (match_to_right_bracket): Likewise.
14685 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14687         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
14688         (ovld_file): Likewise.
14689         (header_file): Likewise.
14690         (init_file): Likewise.
14691         (defines_file): Likewise.
14692         (pgm_path): Likewise.
14693         (bif_path): Likewise.
14694         (ovld_path): Likewise.
14695         (header_path): Likewise.
14696         (init_path): Likewise.
14697         (defines_path): Likewise.
14698         (LINELEN): New macro.
14699         (linebuf): New variable.
14700         (line): Likewise.
14701         (pos): Likewise.
14702         (diag): Likewise.
14703         (bif_diag): New function.
14704         (ovld_diag): Likewise.
14706 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14708         * config/rs6000/rs6000-builtin-new.def: New.
14709         * config/rs6000/rs6000-overload.def: New.
14711 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14713         * config/rs6000/rs6000-gen-builtins.c: New.
14715 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
14717         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
14718         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
14719         * gengtype-state.c (state_writer::write_state_file_list): Add a
14720         parameter to the fileslist expression for the number of build
14721         headers to scan.
14722         (read_state_files_list): Detect build headers and strip the
14723         initial "./" or ".\" from their names.
14724         * gengtype.c (build_headers): New global variable.
14725         (num_build_headers): Likewise.
14726         (open_base_files): Emit #include for each build header.
14727         (main): Detect and count build headers.
14728         * gengtype.h (build_headers): New extern variable.
14729         (num_build_headers): Likewise.
14731 2021-07-16  Richard Biener   <rguenther@suse.de>
14733         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
14734         the type of the LHS.
14735         (find_bswap_or_nop_1): Likewise.
14736         (find_bswap_or_nop): Likewise.
14737         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
14738         prototype.
14739         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
14740         Remove unused parameters, pass in the scalar type.  Fix
14741         internal store function handling.
14742         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
14743         (vect_get_vector_types_for_stmt): Move down check for
14744         existing vector stmt after we've determined a scalar type.
14745         Pass down the used scalar type to vect_get_smallest_scalar_type.
14746         * tree-vect-generic.c (expand_vector_condition): Use
14747         the type of the LHS.
14748         (expand_vector_scalar_condition): Likewise.
14749         (expand_vector_operations_1): Likewise.
14750         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
14751         (vect_recog_dot_prod_pattern): Likewise.
14752         (vect_recog_sad_pattern): Likewise.
14753         (vect_recog_widen_op_pattern): Likewise.
14754         (vect_recog_widen_sum_pattern): Likewise.
14755         (vect_recog_mixed_size_cond_pattern): Likewise.
14757 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
14759         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
14760         (dump_eaf_flags): Dump EAF_NOT_RETURNED
14761         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
14762         and EAF_NOT_RETURNED.
14763         (modref_summary::useful_p): Likewise.
14764         (modref_summary_lto::useful_p): Likewise.
14765         (struct) modref_summary_lto: Use eaf_fleags_t.
14766         (deref_flags): Handle EAF_NOT_RETURNED.
14767         (struct escape_point): Use min_flags.
14768         (modref_lattice::init): Add EAF_NOT_RETURNED.
14769         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
14770         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
14771         handle call flags.
14772         (analyze_parms): Also analyze const functions; update conition on
14773         flags usefulness.
14774         (modref_write): Update streaming.
14775         (read_section): Update streaming.
14776         (remap_arg_flags): Use eaf_flags_t.
14777         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
14778         * ipa-modref.h: (eaf_flags_t): New typedef.
14779         (struct modref_summary): Use eaf_flags_t.
14780         * tree-core.h (EAF_NOT_RETURNED): New constant.
14782 2021-07-16  Richard Biener  <rguenther@suse.de>
14784         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
14785         the type of the LHS.
14786         (gimple_assign_nonnegative_warnv_p): Likewise.
14787         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
14788         if the call has no LHS.
14789         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
14790         * tree-eh.c (stmt_could_throw_1_p): Likewise.
14791         * tree-inline.c (insert_init_stmt): Likewise.
14792         * tree-ssa-loop-niter.c (get_val_for): Likewise.
14793         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
14794         the def.
14795         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
14796         gassign *.  Use the type of the lhs.
14797         (vn_nary_op_lookup_stmt): Adjust.
14798         (vn_nary_op_insert_stmt): Likewise.
14800 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
14802         * config/s390/predicates.md (bras_sym_operand): Accept all
14803         functions in 64-bit mode, use UNSPEC_PLT31.
14804         (larl_operand): Use UNSPEC_PLT31.
14805         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
14806         (legitimize_pic_address): Likewise.
14807         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
14808         use UNSPEC_PLT31.
14809         (s390_delegitimize_address): Use UNSPEC_PLT31.
14810         (s390_output_addr_const_extra): Likewise.
14811         (print_operand): Add @PLT to TLS calls, handle %K.
14812         (s390_function_profiler): Mark __fentry__/_mcount as function,
14813         use %K, use UNSPEC_PLT31.
14814         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
14815         (s390_emit_call): Use UNSPEC_PLT31.
14816         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
14817         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
14818         (*movdi_64): Use %K.
14819         (reload_base_64): Likewise.
14820         (*sibcall_brc): Likewise.
14821         (*sibcall_brcl): Likewise.
14822         (*sibcall_value_brc): Likewise.
14823         (*sibcall_value_brcl): Likewise.
14824         (*bras): Likewise.
14825         (*brasl): Likewise.
14826         (*bras_r): Likewise.
14827         (*brasl_r): Likewise.
14828         (*bras_tls): Likewise.
14829         (*brasl_tls): Likewise.
14830         (main_base_64): Likewise.
14831         (reload_base_64): Likewise.
14832         (@split_stack_call<mode>): Likewise.
14834 2021-07-16  Richard Biener  <rguenther@suse.de>
14836         PR tree-optimization/101467
14837         * tree-vect-stmts.c (vect_gen_while): Properly guard
14838         make_temp_ssa_name usage.
14840 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
14842         * config.gcc: Don't use forked print-sysroot-suffix.sh and
14843         t-sysroot-suffix for C-SKY.
14844         * config/csky/print-sysroot-suffix.sh: Delete.
14845         * config/csky/t-csky-linux: Delete.
14846         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
14847         instead of CSKY_MULTILIB_DIRNAMES.
14849 2021-07-16  Richard Biener  <rguenther@suse.de>
14851         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
14852         conversion issues with the partial reduction of the reused
14853         vector accumulator.
14855 2021-07-16  Richard Biener  <rguenther@suse.de>
14857         * config/i386/i386-options.c (ix86_option_override_internal): Set
14858         param_vect_partial_vector_usage to zero if not set.
14860 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
14862         PR target/101346
14863         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
14864         (VALID_INT_MODE_P): Add SDmode and DDmode.
14865         Add TDmode for TARGET_64BIT.
14866         (VALID_DFP_MODE_P): Remove.
14867         * config/i386/i386.c (ix86_hard_regno_mode_ok):
14868         Do not use VALID_DFP_MODE_P.
14870 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
14872         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
14873         gimple_range_type.
14874         (fold_using_range::fold_stmt): Ditto.
14875         (fold_using_range::range_of_range_op): Ditto.
14876         (fold_using_range::range_of_phi): Ditto.
14877         (fold_using_range::range_of_call): Ditto.
14878         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
14879         (fold_using_range::range_of_builtin_call): Ditto.
14880         (fold_using_range::range_of_cond_expr): Ditto.
14881         * gimple-range-fold.h (gimple_range_type): New.
14883 2021-07-15  Martin Sebor  <msebor@redhat.com>
14885         PR middle-end/97027
14886         * tree-ssa-strlen.c (handle_assign): New function.
14887         (maybe_warn_overflow): Add argument.
14888         (nonzero_bytes_for_type): New function.
14889         (count_nonzero_bytes): Handle more tree types.  Call
14890         nonzero_bytes_for_tye.
14891         (count_nonzero_bytes): Handle types.
14892         (handle_store): Handle stores from function calls.
14893         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
14894         it for assignments from function calls.
14896 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
14898         PR analyzer/95006
14899         PR analyzer/94713
14900         PR analyzer/94714
14901         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
14903 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
14905         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
14907 2021-07-15  Martin Sebor  <msebor@redhat.com>
14909         PR c/101289
14910         PR c/97548
14911         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
14912         (operand_compare::verify_hash_value): Same.
14913         * tree-core.h (OEP_DECL_NAME): New.
14915 2021-07-15  Martin Jambor  <mjambor@suse.cz>
14917         * profile-count.h (profile_count::value): Change the return type to
14918         uint64_t.
14919         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
14920         statement.
14921         * tree-cfg.c (dump_function_to_file): Likewise.
14923 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
14925         PR target/101129
14926         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
14927         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
14928         not swappable.
14930 2021-07-15  Richard Biener  <rguenther@suse.de>
14932         * tree-vectorizer.h (vect_gen_while): Match up with
14933         vect_gen_while_not.
14934         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
14935         of vect_gen_while_not.
14936         (vect_gen_while_not): Adjust.
14937         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
14939 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
14941         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
14942         (ranger_cache::range_of_def): Call adjust_range.
14943         (ranger_cache::entry_range): Same.
14944         * gimple-range-cache.h (non_null_ref::adjust_range): New.
14945         * gimple-range.cc (gimple_ranger::range_of_expr): Call
14946         adjust_range.
14947         (gimple_ranger::range_on_entry): Same.
14949 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
14951         Revert:
14952         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
14954         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
14956 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
14958         Revert:
14959         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
14961         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
14962         (sdot_prod, udot_prod): ...These.
14963         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
14964         (aarch64_<sur>dot<vsi2qi>): Rename to...
14965         (<sur>dot_prod<vsi2qi>): ...This.
14966         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
14967         Update builtins.
14969 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
14971         PR middle-end/101437
14972         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
14973         types even if they have non-BLKmode TYPE_MODE.
14975 2021-07-15  Richard Biener  <rguenther@suse.de>
14977         PR driver/101383
14978         * gcc.c (process_command): Process -gtoggle like process_options
14979         would after parsing options.
14981 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
14983         * cfgexpand.c (expand_asm_loc): Adjust.
14984         (expand_asm_stmt): Likewise.
14985         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
14986         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
14987         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
14988         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
14989         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
14990         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
14991         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
14992         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
14993         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
14994         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
14995         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
14996         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
14997         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
14998         * doc/tm.texi: Regenerate.
14999         * target.def: Add location argument to md_asm_adjust.
15001 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
15003         * tree-diagnostic.c (diagnostic_report_current_function): Use the
15004         diagnostic's location, not input_location.
15006 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
15008         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
15009         diagnostics.
15010         (expand_asm_stmt): Likewise.
15012 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
15014         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
15015         addressed memory rtx, if any.
15016         (rs6000_split_multireg_move): Fix code formatting.
15017         Handle MMA build built-ins with operands in adjacent memory locations.
15019 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
15021         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
15022         in the file.
15024 2021-07-14  Jason Merrill  <jason@redhat.com>
15026         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
15028 2021-07-14  Jason Merrill  <jason@redhat.com>
15030         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
15031         C++.
15033 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15035         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
15036         Remove erroneous line.
15038 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
15040         * params.opt (param_evrp_mode): Change default.
15042 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15044         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
15045         (sdot_prod, udot_prod): ...These.
15046         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
15047         (aarch64_<sur>dot<vsi2qi>): Rename to...
15048         (<sur>dot_prod<vsi2qi>): ...This.
15049         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
15050         Update builtins.
15052 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15054         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
15056 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15058         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
15060 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15062         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
15064 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15066         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
15067         (usdot_prod<vsi2qi>): ... This.
15068         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
15069         (usdot_prod): ...This.
15070         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
15071         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
15072         Rename to...
15073         (@<sur>dot_prod<vsi2qi>): ...This.
15074         * config/aarch64/aarch64-sve-builtins-base.cc
15075         (svusdot_impl::expand): Use it.
15077 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15079         * optabs.def (usdot_prod_optab): New.
15080         * doc/md.texi: Document it and clarify other dot prod optabs.
15081         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
15082         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
15083         * optabs.c (expand_widen_pattern_expr): Likewise.
15084         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15085         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
15086         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
15087         optab subtype.
15088         (vect_widened_op_tree): Optionally ignore
15089         mismatch types.
15090         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
15092 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
15094         PR target/101395
15095         * config/i386/driver-i386.c (host_detect_local_cpu): Check
15096         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
15097         Enable UINTR only for 64-bit codegen.
15098         * config/i386/i386-options.c
15099         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
15100         in 64-bit mode.
15101         * config/i386/i386.h (ARCH_ARG): New.
15102         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
15103         "[arch|tune] 64" for 64-bit codegen.
15105 2021-07-14  Richard Biener  <rguenther@suse.de>
15107         PR tree-optimization/101445
15108         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
15109         of the IV in the correct direction for negative stride
15110         accesses.
15112 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
15114         PR go/101407
15115         * godump.c (godump_str_hash): New type.
15116         (godump_container::pot_dummy_types): Use string_hash instead of
15117         ptr_hash in the hash_set.
15119 2021-07-14  Richard Biener  <rguenther@suse.de>
15121         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
15122         vector types where the old vector type has a multiple of
15123         the new vector type elements.
15124         (vect_create_partial_epilog): New function, split out from...
15125         (vect_create_epilog_for_reduction): ... here.
15126         (vect_transform_cycle_phi): Reduce the re-used accumulator
15127         to the new vector type.
15129 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
15131         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
15132         non-'t'-sized arg check.
15134 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
15136         * tree-cfg.c (cleanup_dead_labels_eh): Update
15137         post_landing_pad label upon change of landing pad block's
15138         primary label.
15139         (cleanup_dead_labels): Check that a removed label is not that
15140         of a landing pad.
15142 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
15144         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
15145         simplification.
15146         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
15147         Add Neon to general purpose register case for zero-extend
15148         pattern.
15149         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
15150         case to prevent some cases opting to go through memory.
15151         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
15152         * rtl.c (rtvec_series_p): Define predicate to determine
15153         whether a vector contains a linear series of integers.
15154         * rtl.h (rtvec_series_p): Define.
15155         * rtlanal.c (vec_series_lowpart_p): Define predicate to
15156         determine if a vector selection is equivalent to the low part
15157         of the vector.
15158         * rtlanal.h (vec_series_lowpart_p): Define.
15159         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
15160         Add vec_select -> subreg simplification.
15162 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
15164         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
15165         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
15166         _mm_test_mix_ones_zeros): New.
15168 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
15169             Richard Biener  <rguenther@suse.de>
15171         * gimple.c (gimple_could_trap_p_1):  Make S argument a
15172         "const gimple*".  Preserve constness in call to
15173         gimple_asm_volatile_p.
15174         (gimple_could_trap_p): Make S argument a "const gimple*".
15175         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
15176         Update function prototypes.
15178 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15180         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
15181         (_loop_vec_info::main_loop_edge): New field.
15182         (_loop_vec_info::skip_main_loop_edge): Likewise.
15183         (_loop_vec_info::skip_this_loop_edge): Likewise.
15184         (_loop_vec_info::reusable_accumulators): Likewise.
15185         (_stmt_vec_info::reduc_scalar_results): Likewise.
15186         (_stmt_vec_info::reused_accumulator): Likewise.
15187         (vect_get_main_loop_result): Declare.
15188         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
15189         reduc_scalar_inputs.
15190         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
15191         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
15192         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
15193         skip_main_loop_edge and skip_this_loop_edge fields.
15194         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
15195         (vect_emit_reduction_init_stmts): New function.
15196         (get_initial_def_for_reduction): Use it.
15197         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
15198         parameter to a loop_vec_info.
15199         (vect_create_epilog_for_reduction): Store the scalar results
15200         in the reduc_info.  If an epilogue loop is reusing an accumulator
15201         from the main loop, and if the epilogue loop can also be skipped,
15202         try to place the reduction code in the join block.  Record
15203         accumulators that could potentially be reused by epilogue loops.
15204         (vect_transform_cycle_phi): When vectorizing epilogue loops,
15205         try to reuse accumulators from the main loop.  Record the initial
15206         value in reduc_info for non-SLP reductions too.
15208 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15210         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
15211         adjustment handling.  Take the neutral value as an argument,
15212         in place of the code argument.
15213         (vect_transform_cycle_phi): Update accordingly.  Handle the
15214         initial values of cond reductions separately from code reductions.
15215         Choose the adjustment here rather than in
15216         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
15218 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15220         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
15221         (neutral_op_for_reduction): ...this, providing a more general
15222         interface.
15223         (vect_create_epilog_for_reduction): Update accordingly.
15224         (vectorizable_reduction): Likewise.
15225         (vect_transform_cycle_phi): Likewise.
15227 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15229         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
15230         reduc_info instead of the original stmt_vec_info.
15231         (vect_transform_cycle_phi): Update accordingly.
15233 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15235         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
15236         reduc_info as an additional parameter.
15237         (vect_transform_cycle_phi): Update accordingly.
15239 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15241         * tree-vectorizer.h: Include tree-ssa-operands.h.
15242         (vect_phi_initial_value): New function.
15243         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
15244         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
15245         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
15246         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
15248 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15250         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
15251         the phi results to vectype after creating them.  Remove later
15252         conversion code that thus becomes redundant.
15254 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15256         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
15257         the new_phis vector with a reduc_inputs vector.  Combine handling
15258         of reduction chains and ncopies > 1.
15260 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15262         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
15263         scalar_results to group_size elements after reducing down from
15264         N*group_size elements.  Construct an array_slice of the live-out
15265         stmts and assert that there is one stmt per scalar result.
15267 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15269         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15270         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
15271         assignment to "loop".
15273 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15275         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
15276         vector types first.  For scalar types, consider both the preferred
15277         vector mode and the alternative vector modes.
15278         * optabs-query.c (can_vec_mask_load_store_p): Use the same
15279         structure as above, in particular using related_vector_mode
15280         for modes provided by autovectorize_vector_modes.
15282 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
15283             Richard Biener  <rguenther@suse.de>
15285         PR tree-optimization/101419
15286         * tree-pass.h (PROP_objsz): Define.
15287         (make_pass_early_object_sizes): Declare.
15288         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
15289         there to pass_early_object_sizes, drop parameter.
15290         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
15291         drop parameter, move pass_post_ipa_warn right after that.
15292         * tree-object-size.c (pass_object_sizes::execute): Rename to...
15293         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
15294         (pass_data_object_sizes): Move after object_sizes_execute.
15295         (pass_object_sizes): Likewise.  In execute method call
15296         object_sizes_execute, drop set_pass_param method and insert_min_max_p
15297         non-static data member and its initializer in the ctor.
15298         (pass_data_early_object_sizes, pass_early_object_sizes,
15299         make_pass_early_object_sizes): New.
15300         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
15301         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
15303 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
15305         PR target/101275
15306         * config/riscv/constraints.md ("S"): Update description and remove
15307         @internal.
15308         * doc/md.texi (Machine Constraints): Document the 'S' constraints
15309         for RISC-V.
15311 2021-07-13  Richard Biener  <rguenther@suse.de>
15313         Revert:
15314         2021-07-12  Richard Biener  <rguenther@suse.de>
15316         * tree-vect-slp.c (vect_slp_region): Show the number of
15317         SLP graph entries in the optimization message.
15319 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
15321         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
15322         value to to long.
15323         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
15324         return type to long.
15325         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
15326         type to long.
15328 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
15330         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
15331         Query relation between the 2 operands and use it.
15333 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
15335         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
15337 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
15339         PR target/101424
15340         * config/i386/predicates.md (vec_setm_sse41_operand):
15341         Rename from vec_setm_operand.
15342         (vec_setm_avx2_operand): New predicate.
15343         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
15344         Use vec_setm_sse41_operand as operand 2 predicate.
15345         (vec_set<V_256_512:mode): New expander.
15346         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
15347         as operand 2 predicate.
15349 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
15351         PR tree-optimization/101335
15352         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
15354 2021-07-12  Andrew Pinski  <apinski@marvell.com>
15356         * tree-ssa-phiopt.c (match_simplify_replacement): Move
15357         insert of the sequence before the movement of the
15358         statement. Check if to see if the statement is used
15359         outside of the original phi to see if we should move it.
15361 2021-07-12  Richard Biener  <rguenther@suse.de>
15363         * dump-context.h (debug_dump_context::debug_dump_context):
15364         Add FILE * parameter defaulted to stderr.
15365         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
15366         * tree-vect-slp.c (dot_slp_tree): New functions.
15368 2021-07-12  Richard Biener  <rguenther@suse.de>
15370         PR tree-optimization/101373
15371         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
15372         references when the BB may not return.
15373         (compute_avail): Pass in the function we're working on and
15374         replace cfun references with it.  Externally throwing
15375         const calls also possibly terminate the function.
15376         (pass_pre::execute): Pass down the function we're working on.
15377         * gcse.c (compute_hash_table_work): Externally throwing
15378         const/pure calls also need record_last_mem_set_info.
15379         * postreload-gcse.c (record_opr_changes): Looping or externally
15380         throwing const/pure calls also need record_last_mem_set_info.
15382 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
15384         * recog.c (memory_address_addr_space_p): Change the type to bool.
15385         Return true/false instead of 1/0.
15386         (offsettable_memref_p): Ditto.
15387         (offsettable_nonstrict_memref_p): Ditto.
15388         (offsettable_address_addr_space_p): Ditto.
15389         Change the type of addressp indirect function to bool.
15390         * recog.h (memory_address_addr_space_p): Change the type to bool.
15391         (strict_memory_address_addr_space_p): Ditto.
15392         (offsettable_memref_p): Ditto.
15393         (offsettable_nonstrict_memref_p): Ditto.
15394         (offsettable_address_addr_space_p): Ditto.
15395         * reload.c (maybe_memory_address_addr_space_p): Ditto.
15396         (strict_memory_address_addr_space_p): Change the type to bool.
15397         Return true/false instead of 1/0.
15398         (maybe_memory_address_addr_space_p): Change the type to bool.
15400 2021-07-12  Richard Biener  <rguenther@suse.de>
15402         * tree-vect-slp.c (vect_slp_region): Show the number of
15403         SLP graph entries in the optimization message.
15405 2021-07-12  Richard Biener  <rguenther@suse.de>
15407         PR tree-optimization/101394
15408         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
15409         copies from abnormals for a full redundancy.
15411 2021-07-12  Richard Biener  <rguenther@suse.de>
15413         PR middle-end/101423
15414         * gimple.c (gimple_could_trap_p_1): Internal function calls
15415         do not trap.
15416         * tree-eh.c (tree_could_trap_p): Likewise.
15418 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
15420         PR target/66791
15421         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
15422         __a * __b.
15423         (vmulq_n_u32): Likewise.
15424         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
15425         (vmulq_n_f32): Likewise.
15426         (vmul_n_f16): Likewise.
15427         (vmulq_n_f16): Likewise.
15429 2021-07-12  Martin Liska  <mliska@suse.cz>
15431         PR sanitizer/101425
15432         * gcc.c (check_offload_target_name): Call
15433           candidates_list_and_hint only if we have a candidate.
15435 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
15437         PR target/98435
15438         * config/arm/neon.md (vec_init): Move to ...
15439         * config/arm/vec-common.md (vec_init): ... here.
15440         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
15442 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
15444         PR tree-optimization/101403
15445         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
15446         signedness of the shift is not the same as the signedness of
15447         the type extension.
15449 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
15450             Uroš Bizjak  <ubizjak@gmail.com>
15452         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
15453         divmod of a constant numerator with new define_insn_and_split.
15455 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
15457         PR target/100152
15458         * config/i386/i386-expand.c (ix86_expand_call): If a call is
15459         to a non-local-binding, or local but to a public symbol, then
15460         assume that it might be indirected via the lazy symbol binder.
15461         Mark R10 and R10 as clobbered in that case.
15463 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
15465         PR target/101377
15466         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
15467         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
15468         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
15470 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
15472         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
15473         log2 range of operands[3] to [1,31].
15474         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
15476 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
15478         * doc/md.texi: Don't split @smallexample in multiple @groups.
15480 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
15482         * doc/md.texi: Add missing 'see' word.
15484 2021-07-09  Andrew Pinski  <apinski@marvell.com>
15486         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
15487         to take sequence and gimple_match_op.  Accept the case where
15488         op is a SSA_NAME and one statement in the sequence.
15489         Also allow constants.
15490         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
15491         Update call to phiopt_early_allow.  Discard the sequence if not
15492         used.
15494 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
15496         PR target/100760
15497         PR target/100761
15498         PR target/100762
15499         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
15500         instead of ISA_HAS_MSA.
15501         (mips_expand_vec_unpack): Likewise.
15502         (mips_expand_vector_init): Likewise.
15504 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
15506         * config/rs6000/vsx.md (mods_<mode>): Rename to...
15507         (mod<mode>3): ... this.
15508         (modu_<mode>): Rename to...
15509         (umod<mode>3): ... this.
15510         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
15511         MODU_V4SI): Adjust.
15513 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
15515         * config/h8300/shiftrotate.md (variable shifts): Expose condition
15516         code handling for the test before the loop.
15518 2021-07-08  Martin Jambor  <mjambor@suse.cz>
15520         PR ipa/101066
15521         * ipa-sra.c (class isra_call_summary): New member
15522         m_before_any_store, initialize it in the constructor.
15523         (isra_call_summary::dump): Dump the new field.
15524         (ipa_sra_call_summaries::duplicate): Copy it.
15525         (process_scan_results): Set it.
15526         (isra_write_edge_summary): Stream it.
15527         (isra_read_edge_summary): Likewise.
15528         (param_splitting_across_edge): Only override
15529         safe_to_import_accesses if m_before_any_store is set.
15531 2021-07-08  Martin Sebor  <msebor@redhat.com>
15533         PR bootstrap/101374
15534         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
15535         Use Object Size Type 0 instead of 1.
15537 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
15539         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
15540         if condition.
15542 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
15544         * match.pd: Simplify an extend-operate-truncate sequence involving
15545         a POLY_INT_CST.
15547 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
15548             Richard Biener  <rguenther@suse.de>
15550         PR tree-optimization/40210
15551         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
15552         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
15553         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
15555 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
15557         PR target/100637
15558         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
15559         Handle V4QI mode.
15560         * config/i386/mmx.md (V_32): New mode iterator.
15561         (mov<V_32:mode>): Use V_32 mode iterator.
15562         (*mov<V_32:mode>_internal): Ditto.
15563         (*push<V_32:mode>2_rex64): Ditto.
15564         (*push<V_32:mode>2): Ditto.
15565         (movmisalign<V_32:mode>): Ditto.
15566         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
15567         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
15568         (vec_unpacks_lo_v4qi): New expander.
15569         (vec_unpacks_hi_v4qi): Ditto.
15570         (vec_unpacku_lo_v4qi): Ditto.
15571         (vec_unpacku_hi_v4qi): Ditto.
15572         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
15573         (VALID_INT_MODE_P): Ditto.
15575 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
15577         PR target/100809
15578         * config/rs6000/rs6000.md (udivti3): New insn.
15579         (divti3): New insn.
15580         (umodti3): New insn.
15581         (modti3): New insn.
15583 2021-07-07  Martin Sebor  <msebor@redhat.com>
15585         PR tree-optimization/100137
15586         PR tree-optimization/99121
15587         PR tree-optimization/97027
15588         * builtins.c (access_ref::access_ref): Also set offmax.
15589         (access_ref::offset_in_range): Define new function.
15590         (access_ref::add_offset): Set offmax.
15591         (access_ref::inform_access): Handle access_none.
15592         (handle_mem_ref): Clear ostype.
15593         (compute_objsize_r): Handle ASSERT_EXPR.
15594         * builtins.h (struct access_ref): Add offmax member.
15595         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
15596         compute_objsize() and simplify.
15598 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
15600         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
15601         and VSX_BUILTIN_STXVP.
15603 2021-07-07  Martin Sebor  <msebor@redhat.com>
15605         PR target/101363
15606         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
15607         a stray %K from error_at() missed in r12-2088.
15609 2021-07-07  Richard Biener  <rguenther@suse.de>
15611         PR tree-optimization/99728
15612         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
15613         aggregate copies.
15614         (mem_refs_may_alias_p): Add assert we handled aggregate
15615         copies elsewhere.
15616         (sm_seq_valid_bb): Give up when running into aggregate copies.
15617         (ref_indep_loop_p): Handle aggregate copies as never
15618         being invariant themselves but allow other refs to be
15619         disambiguated against them.
15620         (can_sm_ref_p): Do not try to apply store-motion to aggregate
15621         copies.
15623 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
15625         PR debug/101283
15626         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
15627         number of bits.
15629 2021-07-06  Martin Sebor  <msebor@redhat.com>
15631         * gimple-pretty-print.c (percent_G_format): Remove.
15632         * tree-diagnostic.c (default_tree_printer): Remove calls.
15633         * tree-pretty-print.c (percent_K_format): Remove.
15634         * tree-pretty-print.h (percent_K_format): Remove.
15636 2021-07-06  Martin Sebor  <msebor@redhat.com>
15638         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15639         Remove %K and use error_at.
15640         (aarch64_expand_fcmla_builtin): Same.
15641         (aarch64_expand_builtin_tme): Same.
15642         (aarch64_expand_builtin_memtag): Same.
15643         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
15644         (arm_expand_builtin): Same.
15645         * config/arm/arm.c (bounds_check): Same.
15647 2021-07-06  Martin Sebor  <msebor@redhat.com>
15649         * builtins.c (warn_string_no_nul): Remove %G.
15650         (maybe_warn_for_bound): Same.
15651         (warn_for_access): Same.
15652         (check_access): Same.
15653         (check_strncat_sizes): Same.
15654         (expand_builtin_strncat): Same.
15655         (expand_builtin_strncmp): Same.
15656         (expand_builtin): Same.
15657         (expand_builtin_object_size): Same.
15658         (warn_dealloc_offset): Same.
15659         (maybe_emit_free_warning): Same.
15660         * calls.c (maybe_warn_alloc_args_overflow): Same.
15661         (maybe_warn_nonstring_arg): Same.
15662         (maybe_warn_rdwr_sizes): Same.
15663         * expr.c (expand_expr_real_1): Remove %K.
15664         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
15665         (gimple_fold_builtin_strncat): Same.
15666         * gimple-ssa-sprintf.c (format_directive): Same.
15667         (handle_printf_call): Same.
15668         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
15669         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
15670         (maybe_diag_access_bounds): Same.  Call gimple_location.
15671         (check_bounds_or_overlap): Same.
15672         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
15673         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
15674         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
15675         (maybe_diag_stxncpy_trunc): Same.
15676         (handle_builtin_stxncpy_strncat): Same.
15677         (maybe_warn_pointless_strcmp): Same.
15678         * tree-ssa-uninit.c (maybe_warn_operand): Same.
15680 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
15682         PR target/97194
15683         * config/i386/predicates.md (vec_setm_operand): Enable
15684         register_operand for TARGET_SSE4_1.
15685         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
15686         as operand 2 predicate.  Call ix86_expand_vector_set_var
15687         for non-constant index operand.
15688         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
15689         Call ix86_expand_vector_set_var for non-constant index operand.
15691 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
15693         * config/h8300/jumpcall.md (*branch): When possible, generate
15694         the comparison in CCZN mode.
15695         * config/h8300/predicates.md (simple_memory_operand): Reject all
15696         auto-increment addressing modes.
15698 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
15700         PR bootstrap/100246
15701         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
15702         this type.
15704 2021-07-06  Richard Biener  <rguenther@suse.de>
15706         * doc/md.texi (vec_fmaddsub<mode>4): Document.
15707         (vec_fmsubadd<mode>4): Likewise.
15708         * optabs.def (vec_fmaddsub$a4): Add.
15709         (vec_fmsubadd$a4): Likewise.
15710         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
15711         (IFN_VEC_FMSUBADD): Likewise.
15712         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
15713         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
15714         (addsub_pattern::build): Likewise.
15715         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
15716         and CFN_VEC_FMSUBADD are not transparent for permutes.
15717         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
15718         (vec_fmsubadd<mode>4): Likewise.
15720 2021-07-06  Richard Biener  <rguenther@suse.de>
15722         * doc/invoke.texi (fmove-loop-stores): Document.
15723         * common.opt (fmove-loop-stores): New option.
15724         * opts.c (default_options_table): Enable -fmove-loop-stores
15725         at -O1 but not -Og.
15726         * tree-ssa-loop-im.c (pass_lim::execute): Pass
15727         flag_move_loop_stores instead of true to
15728         loop_invariant_motion_in_fun.
15730 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
15732         * doc/install.texi: Document --with-dsymutil.
15734 2021-07-06  Andrew Pinski  <apinski@marvell.com>
15736         PR tree-optimization/101256
15737         * dbgcnt.def (phiopt_edge_range): New counter.
15738         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
15739         Check to make sure the new name is defined in the same
15740         bb as the conditional before duplicating range info.
15741         Also add debug counter.
15743 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
15745         PR rtl-optimization/100328
15746         * config/i386/i386-options.c (ix86_option_override_internal):
15747         Set param_ira_consider_dup_in_all_alts to 0.
15749 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
15751         PR rtl-optimization/100328
15752         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
15753         parameter.
15754         * ira.c (ira_get_dup_out_num): Adjust as parameter
15755         param_ira_consider_dup_in_all_alts.
15756         * params.opt (ira-consider-dup-in-all-alts): New.
15757         * ira-conflicts.c (process_regs_for_copy): Add one parameter
15758         single_input_op_has_cstr_p.
15759         (get_freq_for_shuffle_copy): New function.
15760         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
15761         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
15763 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
15765         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
15766         generate condition code aware RTL directly.
15768 2021-07-05  Andrew Pinski  <apinski@marvell.com>
15770         PR tree-optimization/101039
15771         * match.pd (A CMP 0 ? A : -A): New patterns.
15772         * tree-ssa-phiopt.c (abs_replacement): Delete function.
15773         (tree_ssa_phiopt_worker): Don't call abs_replacement.
15774         Update comment about abs_replacement.
15776 2021-07-05  Andrew Pinski  <apinski@marvell.com>
15778         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
15779         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
15781 2021-07-05  Andrew Pinski  <apinski@marvell.com>
15783         * tree-ssa-phiopt.c (match_simplify_replacement):
15784         Add early_p argument. Call gimple_simplify_phiopt
15785         instead of gimple_simplify.
15786         (tree_ssa_phiopt_worker): Update call to
15787         match_simplify_replacement and allow unconditionally.
15788         (phiopt_early_allow): New function.
15789         (gimple_simplify_phiopt): New function.
15791 2021-07-05  Andrew Pinski  <apinski@marvell.com>
15793         PR middle-end/101237
15794         * fold-const.c (negate_expr_p): Remove call to element_mode
15795         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
15796         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
15797         (fold_negate_expr_1): Likewise.
15798         (const_unop): Likewise.
15799         (fold_cond_expr_with_comparison): Likewise.
15800         (fold_binary_loc): Likewise.
15801         (fold_ternary_loc): Likewise.
15802         (tree_call_nonnegative_warnv_p): Likewise.
15803         * match.pd (-(A + B) -> (-B) - A): Likewise.
15805 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
15807         * configure.ac: Handle --with-dsymutil in the same way as we
15808         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
15809         Extract the type and version for the dsymutil configured or
15810         found by the default searches.
15811         * config.in: Regenerated.
15812         * configure: Regenerated.
15813         * collect2.c (do_dsymutil): Handle locating dsymutil in the
15814         same way as for the assembler and  linker.
15815         * config/darwin.h (DSYMUTIL): Delete.
15816         * gcc.c: Report a configured dsymutil correctly.
15817         * exec-tool.in: Allow for dsymutil.
15819 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
15821         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
15822         Handle V4QI and V2HI modes.
15823         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
15824         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
15825         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
15826         Handle 4-byte dual operands with TARGET_XOP and single operands
15827         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
15828         mmx_pshufbv4qi3 for TARGET_SSSE3.
15829         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
15830         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
15831         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
15832         (expand_vec_perm_even_odd_1): Handle V4QI mode.
15833         (expand_vec_perm_broadcast_1): Handle V4QI mode.
15834         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
15835         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
15836         (mmx_pshufbv4qi3): Ditto.
15837         (*mmx_pblendw32): Ditto.
15838         (*mmx_pblendw64): Rename from *mmx_pblendw.
15839         (mmx_punpckhbw_low): New insn_and_split pattern.
15840         (mmx_punpcklbw_low): Ditto.
15842 2021-07-05  Richard Biener  <rguenther@suse.de>
15844         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
15845         set LOOP_C_INFINITE on the vectorized loop.
15847 2021-07-05  Richard Biener  <rguenther@suse.de>
15849         PR middle-end/101291
15850         * cfgloopmanip.c (loop_version): Set the loop copy of the
15851         versioned loop to the new loop.
15853 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
15855         PR target/100269
15856         * config.gcc: Ensure that Darwin biarch definitions are
15857         added before i386.h.
15858         * config/i386/darwin.h (TARGET_64BIT): Remove.
15859         (PR80556_WORKAROUND): New.
15860         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
15861         (DARWIN_SUBARCH_SPEC): New.
15862         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
15863         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
15864         (REAL_LIBGCC_SPEC): Remove.
15865         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
15866         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
15867         (REAL_LIBGCC_SPEC): Remove.
15869 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
15871         PR middle-end/101294
15872         * expr.c (store_constructor): Don't use vec_duplicate on vector.
15874 2021-07-02  Martin Sebor  <msebor@redhat.com>
15876         PR middle-end/98871
15877         PR middle-end/98512
15878         * diagnostic.c (get_any_inlining_info): New.
15879         (update_effective_level_from_pragmas): Handle inlining context.
15880         (diagnostic_enabled): Same.
15881         (diagnostic_report_diagnostic): Same.
15882         * diagnostic.h (struct diagnostic_info): Add ctor.
15883         (struct diagnostic_context): Add new member.
15884         * tree-diagnostic.c (set_inlining_locations): New.
15885         (tree_diagnostics_defaults): Set new callback pointer.
15887 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
15889         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
15890         New macros.
15891         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
15892         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
15893         lxvp and stxvp built-ins.
15894         (mma_init_builtins): Handle lxvp and stxvp built-ins.
15895         (builtin_function_type): Likewise.
15896         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
15898 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
15900         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
15901         additional argument for the code.
15902         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
15903         argument for the code.  Just return if the ZN bits are useful or
15904         not rather than the old style CC_* enums.
15905         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
15906         more generic shiftqi patterns.
15907         (shifthi_noscratch, shiftsi_noscratch): Similarly.
15908         (shiftqi_noscratch_set_flags): New pattern.
15909         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
15911 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
15913         PR tree-optimization/101223
15914         * range-op.cc (build_lt): Add -1 for signed values.
15915         (built_gt): Subtract -1 for signed values.
15917 2021-07-02  David Faust  <david.faust@oracle.com>
15919         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
15920         (btf_asm_type): Likewise.
15922 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
15924         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
15925         an array of rtx rather than a pointer to rtx.  Add code argument.
15926         (compute_a_shift_length): Similarly.
15927         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
15928         shift itself isn't an operand.  Create dummy operand[0] to carry
15929         a mode and pass a suitable rtx code to compute_a_shift_length.
15930         (get_shift_alg): Adjust operand number of clobber in output templates.
15931         (output_a_shift): Make first argument an array of rtx rather than
15932         a pointer to rtx.  Add code argument for the type of shift.
15933         Adjust now that the shift itself is no longer an operand.
15934         (compute_a_shift_length): Similarly.
15935         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
15936         iterator rather than nshift_operator.
15937         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
15938         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
15939         and compute_a_shift_length.
15940         (shiftqi_noscratch_clobber_flags): Likewise.
15941         (shifthi_noscratch_clobber_flags): Likewise.
15942         (shiftsi_noscratch_clobber_flags): Likewise.
15944 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
15946         PR debug/101283
15947         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
15948         dsymutil for BTF/CTF.
15950 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
15952         PR debug/101283
15953         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
15954         segment to include BTF.
15955         (BTF_INFO_SECTION_NAME): New.
15957 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
15959         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
15960         (small_data_operand, memreg_operand, small_insn_p): Likewise.
15961         * config/m32r/m32r.c (call_operand): Adjust return type.
15962         (small_data_operand, memreg_operand): Likewise.
15964 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
15966         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
15967         type.
15968         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
15969         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
15970         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
15971         (move_source_operand, move_destination_operand): Likewise.
15972         (condexec_source_operand, condexec_dest_operand): Likewise.
15973         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
15974         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
15975         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
15976         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
15977         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
15978         (even_fpr_operand, odd_fpr_operand): Likewise.
15979         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
15980         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
15981         (uint4_operand, uint1_operand, int_2word_operand): Likewise
15982         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
15983         (relational_operator, float_relational_operator): Likewise.
15984         (ccr_eqne_operator, minmax_operator): Likewise.
15985         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
15986         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
15987         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
15988         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
15989         (quad_acc_operand, accg_operand): Likewise.
15991 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
15993         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
15994         return type to a bool.
15995         (nonimmediate_nonstack_operand): Likewise.
15996         (xstormy16_splittable_below100_operand): Likewise.
15997         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
15998         return type.
15999         (xstormy16_splittable_below100_operand): Likewise.
16001 2021-07-02  Richard Biener  <rguenther@suse.de>
16003         PR tree-optimization/101293
16004         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
16005         with combined offsets.
16006         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
16007         combined with the rest of the offset.
16009 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16011         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
16012         PIC encodings for PE-COFF targets.
16014 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
16016         PR target/101286
16017         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
16018         Return nullptr for TImode inner mode.
16020 2021-07-02  Richard Biener  <rguenther@suse.de>
16022         PR tree-optimization/101280
16023         PR tree-optimization/101173
16024         * gimple-loop-interchange.cc
16025         (tree_loop_interchange::valid_data_dependences): Properly
16026         guard all dependence checks with DDR_REVERSED_P or its
16027         inverse.
16029 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
16031         * config/i386/i386-expand.c (ix86_expand_builtin):
16032         Add branch to clear odata when ZF is set for asedecenc_expand
16033         and wideaesdecenc_expand.
16035 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
16037         * config/i386/gcc-auto-profile: regenerate
16039 2021-07-02  liuhongt  <hongtao.liu@intel.com>
16041         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
16042         (trunc<mode><pmov_dst_4_lower>2): this.
16044 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
16046         * diagnostic.h (diagnostic_context::m_file_cache): New field.
16047         * input.c (class fcache): Rename to...
16048         (class file_cache_slot): ...this, making most members private and
16049         prefixing fields with "m_".
16050         (file_cache_slot::get_file_path): New accessor.
16051         (file_cache_slot::get_use_count): New accessor.
16052         (file_cache_slot::missing_trailing_newline_p): New accessor.
16053         (file_cache_slot::inc_use_count): New.
16054         (fcache_buffer_size): Move to...
16055         (file_cache_slot::buffer_size): ...here.
16056         (fcache_line_record_size): Move to...
16057         (file_cache_slot::line_record_size): ...here.
16058         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
16059         (fcache_tab_size): Move to file_cache::num_file_slots.
16060         (diagnostic_file_cache_init): Update for move of fcache_tab
16061         to global_dc->m_file_cache.
16062         (diagnostic_file_cache_fini): Likewise.
16063         (lookup_file_in_cache_tab): Convert to...
16064         (file_cache::lookup_file): ...this.
16065         (diagnostics_file_cache_forcibly_evict_file): Update for move of
16066         fcache_tab to global_dc->m_file_cache, moving most of
16067         implementation to...
16068         (file_cache::forcibly_evict_file): ...this new function and...
16069         (file_cache_slot::evict): ...this new function.
16070         (evicted_cache_tab_entry): Convert to...
16071         (file_cache::evicted_cache_tab_entry): ...this.
16072         (add_file_to_cache_tab): Convert to...
16073         (file_cache::add_file): ...this, moving bulk of implementation
16074         to...
16075         (file_cache_slot::create): ..this new function.
16076         (file_cache::file_cache): New.
16077         (file_cache::~file_cache): New.
16078         (lookup_or_add_file_to_cache_tab): Convert to...
16079         (file_cache::lookup_or_add_file): ..this new function.
16080         (fcache::fcache): Rename to...
16081         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
16082         to fields.
16083         (fcache::~fcache): Rename to...
16084         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
16085         to fields.
16086         (needs_read): Convert to...
16087         (file_cache_slot::needs_read_p): ...this.
16088         (needs_grow): Convert to...
16089         (file_cache_slot::needs_grow_p): ...this.
16090         (maybe_grow): Convert to...
16091         (file_cache_slot::maybe_grow): ...this.
16092         (read_data): Convert to...
16093         (file_cache_slot::read_data): ...this.
16094         (maybe_read_data): Convert to...
16095         (file_cache_slot::maybe_read_data): ...this.
16096         (get_next_line): Convert to...
16097         (file_cache_slot::get_next_line): ...this.
16098         (goto_next_line): Convert to...
16099         (file_cache_slot::goto_next_line): ...this.
16100         (read_line_num): Convert to...
16101         (file_cache_slot::read_line_num): ...this.
16102         (location_get_source_line): Update for moving of globals to
16103         global_dc->m_file_cache.
16104         (location_missing_trailing_newline): Likewise.
16105         * input.h (class file_cache_slot): New forward decl.
16106         (class file_cache): New.
16108 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
16110         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
16111         128-bit floating point conditional move support.
16112         (have_compare_and_set_mask): Add IEEE 128-bit floating point
16113         types.
16114         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
16115         (mov<mode>cc_p10, IEEE128 iterator): New insn.
16116         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
16117         (fpmask<mode>, IEEE128 iterator): New insn.
16118         (xxsel<mode>, IEEE128 iterator): New insn.
16120 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
16122         PR debug/101283
16123         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
16125 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
16127         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16128         Make it global.
16129         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
16130         New prototype.
16131         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
16132         (vec_duplicate<mode>): New expander.
16134 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
16136         PR target/100865
16137         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16138         New prototype.
16139         (ix86_byte_broadcast): New function.
16140         (ix86_convert_const_wide_int_to_broadcast): Likewise.
16141         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
16142         size is 16 bytes or bigger.
16143         (ix86_broadcast_from_integer_constant): New function.
16144         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
16145         to broadcast if mode size is 16 bytes or bigger.
16146         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
16147         prototype.
16148         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
16150 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16152         * config/i386/predicates.md (ix86_endbr_immediate_operand):
16153         Return true/false instead of 1/0.
16154         (movq_parallel): Ditto.
16156 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16158         * recog.c (general_operand): Return true/false instead of 1/0.
16159         (register_operand): Ditto.
16160         (immediate_operand): Ditto.
16161         (const_int_operand): Ditto.
16162         (const_scalar_int_operand): Ditto.
16163         (const_double_operand): Ditto.
16164         (push_operand): Ditto.
16165         (pop_operand): Ditto.
16166         (memory_operand): Ditto.
16167         (indirect_operand): Ditto.
16169 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16171         * genpreds.c (write_predicate_subfunction):
16172         Change the type of written subfunction to bool.
16173         (write_one_predicate_function):
16174         Change the type of written function to bool.
16175         (write_tm_preds_h): Ditto.
16176         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
16177         * recog.c (general_operand): Change the type to bool.
16178         (address_operand): Ditto.
16179         (register_operand): Ditto.
16180         (pmode_register_operand): Ditto.
16181         (scratch_operand): Ditto.
16182         (immediate_operand): Ditto.
16183         (const_int_operand): Ditto.
16184         (const_scalar_int_operand): Ditto.
16185         (const_double_operand): Ditto.
16186         (nonimmediate_operand): Ditto.
16187         (nonmemory_operand): Ditto.
16188         (push_operand): Ditto.
16189         (pop_operand): Ditto.
16190         (memory_operand): Ditto.
16191         (indirect_operand): Ditto.
16192         (ordered_comparison_operator): Ditto.
16193         (comparison_operator): Ditto.
16194         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
16195         Change the type of indirect predicate function to bool.
16196         * config/rs6000/rs6000.c (easy_vector_constant):
16197         Change the type to bool.
16198         * config/mips/mips-protos.h (m16_based_address_p):
16199         Change the type of operand 3 to bool.
16201 2021-07-01  Richard Biener  <rguenther@suse.de>
16203         PR tree-optimization/101280
16204         PR tree-optimization/101173
16205         * gimple-loop-interchange.cc
16206         (tree_loop_interchange::valid_data_dependences): Revert
16207         previous change and instead correctly handle DDR_REVERSED_P
16208         dependence.
16210 2021-07-01  Richard Biener  <rguenther@suse.de>
16212         PR tree-optimization/101278
16213         * tree-ssa-dse.c (dse_classify_store): First check for
16214         uses, then ignore stmt for chaining purposes.
16216 2021-07-01  Richard Biener  <rguenther@suse.de>
16218         PR tree-optimization/100778
16219         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
16220         vectorized ops ahead of their scalar BB.
16222 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16224         PR target/101044
16225         * config/i386/i386.md (*nabs<dwi>2_doubleword):
16226         New insn_and_split pattern.
16227         (*nabs<dwi>2_1): Ditto.
16228         * config/i386/i386-features.c
16229         (general_scalar_chain::compute_convert_gain):
16230         Handle (NEG (ABS (...))) RTX.  Rewrite src code
16231         scanner as switch statement.
16232         (general_scalar_chain::convert_insn):
16233         Handle (NEG (ABS (...))) RTX.
16234         (general_scalar_to_vector_candidate_p):
16235         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
16236         for (AND (NOT (...) ...)) fallthrough.
16238 2021-07-01  Richard Biener  <rguenther@suse.de>
16240         PR tree-optimization/101178
16241         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
16242         (slpg::perm_in): Add.
16243         (slpg::get_perm_in): Remove.
16244         (slpg::get_perm_materialized): Add.
16245         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
16246         during permute propagation and materialization.
16248 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
16250         PR debug/101266
16251         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
16253 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
16255         PR middle-end/94366
16256         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
16257         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
16258         use boolean_type_node instead of integer_type_node as NE_EXPR type.
16259         (lower_reduction_clauses): Likewise.
16261 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
16263         * config/gcn/gcn.c: Include dwarf2.h.
16264         (gcn_addr_space_debug): New function.
16265         (TARGET_ADDR_SPACE_DEBUG): New hook.
16267 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
16269         * common/config/gcn/gcn-common.c
16270         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
16271         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
16272         when emitting CFI.
16273         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
16274         (gcn_frame_pointer_rqd): New function.
16275         (TARGET_FRAME_POINTER_REQUIRED): New hook.
16277 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
16279         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
16280         prologue register saves.
16281         (gcn_debug_unwind_info): Use UI_DWARF2.
16282         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
16283         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
16284         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
16285         (DWARF_LINK_REGISTER): New define.
16286         (FIRST_PSEUDO_REGISTER): Increment.
16287         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
16288         (CALL_USED_REGISTERS): Likewise.
16289         (REGISTER_NAMES): Likewise.
16291 2021-06-30  Richard Biener  <rguenther@suse.de>
16293         PR tree-optimization/101267
16294         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
16295         API and use SLP compatible interface of vect_is_simple_use.
16296         Reject not vectorized SLP defs for callers that do not support
16297         that.
16298         (vect_check_store_rhs): Handle masked stores and pass down
16299         the appropriate operator index.
16300         (vectorizable_call): Adjust.
16301         (vectorizable_store): Likewise.
16302         (vectorizable_load): Likewise.  Handle SLP pecularity of
16303         masked loads.
16304         (vect_is_simple_use): Remove special-casing of masked stores.
16306 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
16308         * common.opt (foffload): Remove help as Driver only.
16309         * gcc.c (display_help): Add -foffload.
16311 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
16313         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
16314         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
16315         a candidate list; better inform no offload target is configured
16316         and fix hint extraction when passed target is not '\0' at [len].
16317         * common.opt (foffload): Add tailing '.'.
16318         (foffload-options): Likewise; fix flag name in the help string.
16320 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
16322         PR target/66791
16323         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
16324         (vcage_f32): Gate comparison on __FAST_MATH__.
16325         (vcageq_f32): Likewise.
16326         (vcale_f32): Likewise.
16327         (vcaleq_f32): Likewise.
16328         (vcagt_f32): Likewise.
16329         (vcagtq_f32): Likewise.
16330         (vcalt_f32): Likewise.
16331         (vcaltq_f32): Likewise.
16332         (vcage_f16): Likewise.
16333         (vcageq_f16): Likewise.
16334         (vcale_f16): Likewise.
16335         (vcaleq_f16): Likewise.
16336         (vcagt_f16): Likewise.
16337         (vcagtq_f16): Likewise.
16338         (vcalt_f16): Likewise.
16339         (vcaltq_f16): Likewise.
16341 2021-06-30  Richard Biener  <rguenther@suse.de>
16343         PR tree-optimization/101264
16344         * tree-vect-slp.c (vect_optimize_slp): Propagate the
16345         computed perm_in to all "any" permute successors
16346         we cannot de-duplicate immediately.
16348 2021-06-30  liuhongt  <hongtao.liu@intel.com>
16350         PR target/101248
16351         * config/i386/sse.md
16352         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
16353         Refined to ..
16354         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
16355         this.
16356         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
16357         * config/i386/subst.md (maskz_scalar): New define_subst.
16358         (maskz_scalar_name): New subst_attr.
16359         (maskz_scalar_op5): Ditto.
16360         (round_saeonly_maskz_scalar_op5): Ditto.
16361         (round_saeonly_maskz_scalar_operand5): Ditto.
16363 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
16365         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
16366         Increase code CSECT alignment to at least 32 bytes.
16367         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
16368         alignment designation.
16370 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
16372         * doc/generic.texi: Fix s/net yet/not yet/ typo.
16374 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
16376         PR tree-optimization/101254
16377         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
16378         wrapping/non-wrapping when setting the result range.
16380 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
16382         * value-query.cc (gimple_range_global): Allow phis.
16384 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
16386         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
16387         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
16388         statement for location context.
16389         (check_for_binary_op_overflow): Ditto.
16390         (simplify_using_ranges::get_vr_for_comparison): Ditto.
16391         (simplify_using_ranges::compare_name_with_value): Ditto.
16392         (simplify_using_ranges::compare_names): Ditto.
16393         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
16394         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
16395         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
16396         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
16397         (simplify_using_ranges::two_valued_val_range_p): Ditto.
16398         (simplify_using_ranges::simplify): Ditto.
16399         * vr-values.h: Adjust prototypes.
16401 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
16403         PR target/95046
16404         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
16406 2021-06-29  Julian Brown  <julian@codesourcery.com>
16408         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
16409         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
16410         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
16411         otherwise.
16412         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
16413         (MAX_FIXED_MODE_SIZE): Change to 128.
16415 2021-06-29  Julian Brown  <julian@codesourcery.com>
16417         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
16418         (s_mnemonic): Add clrsb.
16419         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
16420         (clrsb<mode>2): Add expander for SImode/DImode.
16422 2021-06-29  Julian Brown  <julian@codesourcery.com>
16424         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
16425         muldi3): Add patterns.
16427 2021-06-29  Julian Brown  <julian@codesourcery.com>
16429         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
16430         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
16432 2021-06-29  Julian Brown  <julian@codesourcery.com>
16434         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
16436 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
16438         * btfout.c, ctfout.c: Include "memmodel.h".
16440 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
16442         * gcc.c (check_offload_target_name): Cast len argument to
16443         %q.*s to 'int'; avoid -Wstringop-truncation warning.
16445 2021-06-29  Richard Biener  <rguenther@suse.de>
16447         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
16448         to "any" permute nodes and relax "any" permute proapgation
16449         during iterative backward propagation.
16451 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
16453         PR other/67300
16454         * common.opt (-foffload=): Update description.
16455         (-foffload-options=): New.
16456         * doc/invoke.texi (C Language Options): Document
16457         -foffload and -foffload-options.
16458         * gcc.c (check_offload_target_name): New, split off from
16459         handle_foffload_option.
16460         (check_foffload_target_names): New.
16461         (handle_foffload_option): Handle -foffload=default.
16462         (driver_handle_option): Update for -foffload-options.
16463         * lto-opts.c (lto_write_options): Use -foffload-options
16464         instead of -foffload.
16465         * lto-wrapper.c (merge_and_complain, append_offload_options):
16466         Likewise.
16467         * opts.c (common_handle_option): Likewise.
16469 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
16471         * doc/invoke.texi (C Language Options): Sort options
16472         alphabetically in optlist and also the description itself.
16473         Remove leftover -fallow-single-precision from and add missing
16474         -fgnu-tm to the optlist.
16476 2021-06-29  Richard Biener  <rguenther@suse.de>
16478         * tree-vect-slp.c (slpg_vertex::visited): Remove.
16479         (vect_slp_perms_eq): Handle -1 permutes.
16480         (vect_optimize_slp): Rewrite permute propagation.
16482 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
16484         PR c++/101210
16485         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
16486         perform the optimization in GENERIC when sanitizing and x has a
16487         reference type.
16489 2021-06-29  Richard Biener  <rguenther@suse.de>
16491         PR tree-optimization/101242
16492         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
16493         PHIs with not represented initial values as leafs.
16495 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
16497         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
16498         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
16499         "register" keyword.
16500         (pdp11_initial_elimination_offset) Remove unused variable.
16501         (pdp11_cmp_length) Ditto.
16502         (pdp11_insn_cost): Ditto, and fix signedness warning.
16504 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
16506         * btfout.c: Include tm_p.h.
16507         * ctfout.c: Same.
16509 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
16511         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
16512         frame related.
16513         (bpf_expand_epilogue): Likewise.
16514         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
16515         Do not define DBX_DEBUGGING_INFO.
16517 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
16519         * doc/invoke.texi: Document the CTF and BTF debug info options.
16521 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
16522             David Faust  <david.faust@oracle.com>
16523             Jose E. Marchesi  <jose.marchesi@oracle.com>
16524             Weimin Pan  <weimin.pan@oracle.com>
16526         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
16527         GTFILES.  Add new object files.
16528         * common.opt: Add CTF and BTF debug info options.
16529         * btfout.c: New file.
16530         * ctfc.c: Likewise.
16531         * ctfc.h: Likewise.
16532         * ctfout.c: Likewise.
16533         * dwarf2ctf.c: Likewise.
16534         * dwarf2ctf.h: Likewise.
16535         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
16536         BTF_DEBUG.
16537         * dwarf2out.c (dwarf2out_source_line): Likewise.
16538         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
16539         be generated.
16540         (debug_format_do_cu): New function.
16541         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
16542         them if requested.
16543         Include dwarf2ctf.c.
16544         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
16545         formats.
16546         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
16547         (CTF_DEBUG): New bitmask.
16548         (BTF_DEBUG): Likewise.
16549         (enum ctf_debug_info_levels): New enum.
16550         * gengtype.c (open_base_files): Handle ctfc.h.
16551         (main): Handle uint32_t type.
16552         * flags.h (btf_debuginfo_p): New definition.
16553         (dwarf_based_debuginfo_p): Likewise.
16554         * opts.c (debug_type_names): Add entries for CTF and BTF.
16555         (btf_debuginfo_p): New function.
16556         (dwarf_based_debuginfo_p): Likewise.
16557         (common_handle_option): Handle -gctfN and -gbtf options.
16558         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
16559         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
16560         frontend is not C.
16562 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
16564         * dwarf2out.c (AT_class): Function is no longer static.
16565         (AT_int): Likewise.
16566         (AT_unsigned): Likewise.
16567         (AT_loc): Likewise.
16568         (get_AT): Likewise.
16569         (get_AT_string): Likewise.
16570         (get_AT_flag): Likewise.
16571         (get_AT_unsigned): Likewise.
16572         (get_AT_ref): Likewise.
16573         (new_die_raw): Likewise.
16574         (lookup_decl_die): Likewise.
16575         (base_type_die): Likewise.
16576         (add_name_attribute): Likewise.
16577         (add_AT_int): Likewise.
16578         (add_AT_unsigned): Likewise.
16579         (add_AT_loc): Likewise.
16580         (dw_get_die_tag): New function.
16581         (dw_get_die_child): Likewise.
16582         (dw_get_die_sib): Likewise.
16583         (struct dwarf_file_data): Move from here to dwarf2out.h
16584         (struct dw_attr_struct): Likewise.
16585         * dwarf2out.h: Analogous changes.
16587 2021-06-28  Martin Jambor  <mjambor@suse.cz>
16589         PR ipa/93385
16590         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
16591         members m_dead_stmts and m_dead_ssas.
16592         * ipa-param-manipulation.c
16593         (ipa_param_body_adjustments::mark_dead_statements): New function.
16594         (ipa_param_body_adjustments::common_initialization): Call it on
16595         all removed but not split parameters.
16596         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
16597         new mwmbers.
16598         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
16599         are dead.
16600         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
16601         dead debug statements.
16602         (copy_phis_for_bb): Do not copy dead PHI nodes.
16604 2021-06-28  Martin Jambor  <mjambor@suse.cz>
16606         PR ipa/93385
16607         * symtab-clones.h (clone_info): Removed member param_adjustments.
16608         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
16609         deal with pass-through splits now.
16610         (ipa_param_performed_split): Removed.
16611         (ipa_param_adjustments::modify_call): Adjusted parameters.
16612         (class ipa_param_body_adjustments): Adjusted parameters of
16613         register_replacement, modify_gimple_stmt and modify_call_stmt.
16614         (ipa_verify_edge_has_no_modifications): Declare.
16615         (ipa_edge_modifications_finalize): Declare.
16616         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
16617         performed_splits processing, pas only edge to padjs->modify_call,
16618         check that call arguments were not modified if they should not have
16619         been.
16620         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
16621         splits.
16622         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
16623         (ipa_edge_modification_info): Likewise.
16624         (ipa_edge_modification_sum): Likewise.
16625         (ipa_edge_modifications): New edge summary.
16626         (ipa_verify_edge_has_no_modifications): New function.
16627         (transitive_split_p): Removed.
16628         (transitive_split_map): Likewise.
16629         (init_transitive_splits): Likewise.
16630         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
16631         summary instead of performed_splits.
16632         (ipa_param_body_adjustments::register_replacement): Drop dummy
16633         parameter, set base_index of the created ipa_param_body_replacement.
16634         (phi_arg_will_live_p): New function.
16635         (ipa_param_body_adjustments::common_initialization): Do not create
16636         IPA_SRA dummy decls.
16637         (simple_tree_swap_info): Removed.
16638         (remap_split_decl_to_dummy): Likewise.
16639         (record_argument_state_1): New function.
16640         (record_argument_state): Likewise.
16641         (ipa_param_body_adjustments::modify_call_stmt): New parameter
16642         orig_stmt.  Do not work with dummy decls, save necessary info about
16643         changes to ipa_edge_modifications.
16644         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
16645         orig_stmt, pass it to modify_call_stmt.
16646         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
16647         modify_gimple_stmt.
16648         (ipa_edge_modifications_finalize): New function.
16649         * tree-inline.c (remap_gimple_stmt): Pass original statement to
16650         modify_gimple_stmt.
16651         (copy_phis_for_bb): Do not copy dead PHI nodes.
16652         (expand_call_inline): Do not remap performed_splits.
16653         (update_clone_info): Likewise.
16654         * toplev.c: Include ipa-param-manipulation.h.
16655         (toplev::finalize): Call ipa_edge_modifications_finalize.
16657 2021-06-28  Andrew Pinski  <apinski@marvell.com>
16659         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
16660         info if we're the only things setting the target PHI.
16661         (value_replacement): Don't duplicate range here.
16662         (minmax_replacement): Likewise.
16664 2021-06-28  Richard Biener  <rguenther@suse.de>
16666         PR tree-optimization/101229
16667         * gimple-walk.c (gimple_walk_op): Handle PHIs.
16669 2021-06-28  Martin Liska  <mliska@suse.cz>
16671         * config/v850/v850.c (construct_dispose_instruction): Allocate
16672         a bigger buffer.
16673         (construct_prepare_instruction): Likewise.
16675 2021-06-28  Martin Liska  <mliska@suse.cz>
16677         * config/v850/v850.c (v850_option_override): Build default
16678         target node.
16679         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
16680         ignored for inlining.
16681         (TARGET_CAN_INLINE_P): New.
16683 2021-06-28  Richard Biener  <rguenther@suse.de>
16685         PR tree-optimization/101207
16686         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
16687         permute eliding for load permutations properly.
16689 2021-06-28  Richard Biener  <rguenther@suse.de>
16691         PR tree-optimization/101173
16692         * gimple-loop-interchange.cc
16693         (tree_loop_interchange::valid_data_dependences): Disallow outer
16694         loop dependence distance of zero.
16696 2021-06-28  liuhongt  <hongtao.liu@intel.com>
16698         PR target/100648
16699         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
16700         define_insn_and_split.
16701         (*avx_cmp<mode>3_ltint): Ditto.
16702         (*avx2_pcmp<mode>3_3): Ditto.
16703         (*avx2_pcmp<mode>3_4): Ditto.
16704         (*avx2_pcmp<mode>3_5): Ditto.
16706 2021-06-28  liuhongt  <hongtao.liu@intel.com>
16708         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
16709         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
16710         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
16711         IX86_BUILTIN_PBLENDVB128): Replace icode with
16712         CODE_FOR_nothing.
16713         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
16714         builtins.
16715         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
16716         New pre_reload splitter.
16718 2021-06-27  Andrew Pinski  <apinski@marvell.com>
16720         PR middle-end/101230
16721         * fold-const.c (fold_ternary_loc): Check
16722         the return value of invert_tree_comparison.
16724 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
16726         * config.gcc: Add SPDX License Identifier.
16727         (powerpc-ibm-aix789): Default to aix73.h.
16728         (powerpc-ibm-aix7.2.*.*): New stanza.
16729         * config/rs6000/aix72.h: Add SPDX License Identifier.
16730         * config/rs6000/aix73.h: New file.
16732 2021-06-26  Jason Merrill  <jason@redhat.com>
16734         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
16736 2021-06-26  Andrew Pinski  <apinski@marvell.com>
16738         * genmatch.c (lower_cond): Copy for_subst_vec
16739         for the simplify also.
16740         (lower): Swap the order for lower_for and lower_cond.
16742 2021-06-26  Andrew Pinski  <apinski@marvell.com>
16744         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
16745         flow senatitive info on the moved ssa set.
16747 2021-06-26  Andrew Pinski  <apinski@marvell.com>
16749         * fold-const.c (fold_cond_expr_with_comparison):
16750         Exand arg0 into comp_code, arg00, and arg01.
16751         (fold_ternary_loc): Use invert_tree_comparison
16752         instead of fold_invert_truthvalue for the case
16753         where we have A CMP B ? C : A.
16755 2021-06-25  Martin Sebor  <msebor@redhat.com>
16757         PR middle-end/101216
16758         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
16760 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
16762         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
16764 2021-06-25  Richard Biener  <rguenther@suse.de>
16766         PR tree-optimization/101202
16767         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
16768         failed nodes.
16770 2021-06-25  Richard Biener  <rguenther@suse.de>
16772         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
16773         STMT_VINFO_REDUC_DEF from the original representative.
16775 2021-06-25  Martin Sebor  <msebor@redhat.com>
16777         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
16778         gimple_no_warning_p and gimple_set_no_warning with
16779         warning_suppressed_p, and suppress_warning.
16780         (c_strlen): Same.
16781         (maybe_warn_for_bound): Same.
16782         (warn_for_access): Same.
16783         (check_access): Same.
16784         (expand_builtin_strncmp): Same.
16785         (fold_builtin_varargs): Same.
16786         * calls.c (maybe_warn_nonstring_arg): Same.
16787         (maybe_warn_rdwr_sizes): Same.
16788         * cfgexpand.c (expand_call_stmt): Same.
16789         * cgraphunit.c (check_global_declaration): Same.
16790         * fold-const.c (fold_undefer_overflow_warnings): Same.
16791         (fold_truth_not_expr): Same.
16792         (fold_unary_loc): Same.
16793         (fold_checksum_tree): Same.
16794         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
16795         (array_bounds_checker::check_mem_ref): Same.
16796         (array_bounds_checker::check_addr_expr): Same.
16797         (array_bounds_checker::check_array_bounds): Same.
16798         * gimple-expr.c (copy_var_decl): Same.
16799         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
16800         (gimple_fold_builtin_strncat): Same.
16801         (gimple_fold_builtin_stxcpy_chk): Same.
16802         (gimple_fold_builtin_stpcpy): Same.
16803         (gimple_fold_builtin_sprintf): Same.
16804         (fold_stmt_1): Same.
16805         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
16806         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16807         * gimple-ssa-sprintf.c (handle_printf_call): Same.
16808         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
16809         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
16810         * gimple-ssa-warn-restrict.h: Adjust declarations.
16811         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
16812         gimple_no_warning_p and gimple_set_no_warning with
16813         warning_suppressed_p, and suppress_warning.
16814         (check_call): Same.
16815         (check_bounds_or_overlap): Same.
16816         * gimple.c (gimple_build_call_from_tree): Same.
16817         * gimplify.c (gimplify_return_expr): Same.
16818         (gimplify_cond_expr): Same.
16819         (gimplify_modify_expr_complex_part): Same.
16820         (gimplify_modify_expr): Same.
16821         (gimple_push_cleanup): Same.
16822         (gimplify_expr): Same.
16823         * omp-expand.c (expand_omp_for_generic): Same.
16824         (expand_omp_taskloop_for_outer): Same.
16825         * omp-low.c (lower_rec_input_clauses): Same.
16826         (lower_lastprivate_clauses): Same.
16827         (lower_send_clauses): Same.
16828         (lower_omp_target): Same.
16829         * tree-cfg.c (pass_warn_function_return::execute): Same.
16830         * tree-complex.c (create_one_component_var): Same.
16831         * tree-inline.c (remap_gimple_op_r): Same.
16832         (copy_tree_body_r): Same.
16833         (declare_return_variable): Same.
16834         (expand_call_inline): Same.
16835         * tree-nested.c (lookup_field_for_decl): Same.
16836         * tree-sra.c (create_access_replacement): Same.
16837         (generate_subtree_copies): Same.
16838         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
16839         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
16840         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
16841         * tree-ssa-loop-im.c (execute_sm): Same.
16842         * tree-ssa-phiopt.c (cond_store_replacement): Same.
16843         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
16844         (handle_builtin_strcpy): Same.
16845         (maybe_diag_stxncpy_trunc): Same.
16846         (handle_builtin_stxncpy_strncat): Same.
16847         (handle_builtin_strcat): Same.
16848         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
16849         (set_no_uninit_warning): Same.
16850         (uninit_undefined_value_p): Same.
16851         (warn_uninit): Same.
16852         (maybe_warn_operand): Same.
16853         * tree-vrp.c (compare_values_warnv): Same.
16854         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
16855         (test_for_singularity): Same.
16856         * gimple.h (warning_suppressed_p): New function.
16857         (suppress_warning): Same.
16858         (copy_no_warning): Same.
16859         (gimple_set_block): Call gimple_set_location.
16860         (gimple_set_location): Call copy_warning.
16862 2021-06-25  Martin Sebor  <msebor@redhat.com>
16864         * tree.h (warning_suppressed_at, copy_warning,
16865         warning_suppressed_p, suppress_warning): New functions.
16867 2021-06-25  Martin Sebor  <msebor@redhat.com>
16869         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
16870         * gengtype.c (open_base_files): Add diagnostic-spec.h.
16871         * diagnostic-spec.c: New file.
16872         * diagnostic-spec.h: New file.
16873         * tree.h (no_warning, all_warnings, suppress_warning_at): New
16874         declarations.
16875         * warning-control.cc: New file.
16877 2021-06-25  liuhongt  <hongtao.liu@intel.com>
16879         PR target/101185
16880         * config/i386/i386.c (x86_order_regs_for_local_alloc):
16881         Revert r12-1669.
16883 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
16885         PR tree-optimization/101189
16886         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
16887         LHS range of condition to postfold routine.
16888         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
16889         FALSE edge if the LHS range supports it being taken.
16890         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
16892 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
16894         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
16895         (relation_oracle::find_relation_block): Check correct bitmap.
16896         (relation_oracle::dump): Do not dump NULL blocks.
16898 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
16900         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
16901         range_on_edge instead of manually calculating.
16903 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
16905         * range-op.cc: Fix comment.
16907 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
16909         PR target/89021
16910         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
16911         Handle V8QI and V4HI modes.
16912         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
16913         New insn pattern.
16914         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
16915         (mmxpackmode): New mode attribute.
16916         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
16917         (mmxunpackmode): New mode attribute.
16918         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
16919         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
16920         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
16921         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
16922         * config/i386/i386.md (extsuffix): Move from ...
16923         * config/i386/sse.md: ... here.
16925 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
16927         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
16928         (dwarf2out_finish): ...instead of here.
16930 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
16932         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
16933         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
16934         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
16935         * configure: Regenerate.
16937 2021-06-24  Richard Biener  <rguenther@suse.de>
16939         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
16940         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
16941         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
16943 2021-06-24  Richard Biener  <rguenther@suse.de>
16945         * config/i386/sse.md (avx_addsubv4df3): Rename to
16946         vec_addsubv4df3.
16947         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
16948         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
16949         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
16950         * config/i386/i386-builtin.def: Adjust.
16951         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
16952         * optabs.def (vec_addsub_optab): New optab.
16953         * tree-vect-slp-patterns.c (class addsub_pattern): New.
16954         (slp_patterns): Add addsub_pattern.
16955         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
16956         across CFN_VEC_ADDSUB.
16957         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
16958         m_ops optional.
16959         * doc/md.texi (vec_addsub<mode>3): Document.
16961 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
16963         PR middle-end/101170
16964         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
16965         where regno + subreg_regno_offset wraps around use 0 as starting
16966         regno.
16968 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
16970         PR middle-end/101172
16971         * stor-layout.c (finish_bitfield_representative): If nextf has
16972         error_mark_node type, set repr type to error_mark_node too.
16974 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
16976         * config/s390/s390.c (s390_function_profiler): Ignore labelno
16977         parameter.
16978         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
16980 2021-06-24  Richard Biener  <rguenther@suse.de>
16982         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
16983         across operations that have different semantics on different
16984         lanes.
16986 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
16988         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
16989         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
16990         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
16991         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
16992         OMP_TARGET user outer_ctx instead of ctx for placeholders and
16993         initializer/combiner gimplification.
16994         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
16995         on target constructs.
16996         (lower_rec_input_clauses): Likewise.
16997         (lower_omp_target): Likewise.
16998         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
16999         on target if in_reduction is present.
17001 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
17003         * tree-predcom.c (class pcom_worker): New class.
17004         (release_chain): Renamed to...
17005         (pcom_worker::release_chain): ...this.
17006         (release_chains): Renamed to...
17007         (pcom_worker::release_chains): ...this.
17008         (aff_combination_dr_offset): Renamed to...
17009         (pcom_worker::aff_combination_dr_offset): ...this.
17010         (determine_offset): Renamed to...
17011         (pcom_worker::determine_offset): ...this.
17012         (class comp_ptrs): New class.
17013         (split_data_refs_to_components): Renamed to...
17014         (pcom_worker::split_data_refs_to_components): ...this,
17015         and update with class comp_ptrs.
17016         (suitable_component_p): Renamed to...
17017         (pcom_worker::suitable_component_p): ...this.
17018         (filter_suitable_components): Renamed to...
17019         (pcom_worker::filter_suitable_components): ...this.
17020         (valid_initializer_p): Renamed to...
17021         (pcom_worker::valid_initializer_p): ...this.
17022         (find_looparound_phi): Renamed to...
17023         (pcom_worker::find_looparound_phi): ...this.
17024         (add_looparound_copies): Renamed to...
17025         (pcom_worker::add_looparound_copies): ...this.
17026         (determine_roots_comp): Renamed to...
17027         (pcom_worker::determine_roots_comp): ...this.
17028         (determine_roots): Renamed to...
17029         (pcom_worker::determine_roots): ...this.
17030         (single_nonlooparound_use): Renamed to...
17031         (pcom_worker::single_nonlooparound_use): ...this.
17032         (remove_stmt): Renamed to...
17033         (pcom_worker::remove_stmt): ...this.
17034         (execute_pred_commoning_chain): Renamed to...
17035         (pcom_worker::execute_pred_commoning_chain): ...this.
17036         (execute_pred_commoning): Renamed to...
17037         (pcom_worker::execute_pred_commoning): ...this.
17038         (struct epcc_data): New member worker.
17039         (execute_pred_commoning_cbck): Call execute_pred_commoning
17040         with pcom_worker pointer.
17041         (find_use_stmt): Renamed to...
17042         (pcom_worker::find_use_stmt): ...this.
17043         (find_associative_operation_root): Renamed to...
17044         (pcom_worker::find_associative_operation_root): ...this.
17045         (find_common_use_stmt): Renamed to...
17046         (pcom_worker::find_common_use_stmt): ...this.
17047         (combinable_refs_p): Renamed to...
17048         (pcom_worker::combinable_refs_p): ...this.
17049         (reassociate_to_the_same_stmt): Renamed to...
17050         (pcom_worker::reassociate_to_the_same_stmt): ...this.
17051         (stmt_combining_refs): Renamed to...
17052         (pcom_worker::stmt_combining_refs): ...this.
17053         (combine_chains): Renamed to...
17054         (pcom_worker::combine_chains): ...this.
17055         (try_combine_chains): Renamed to...
17056         (pcom_worker::try_combine_chains): ...this.
17057         (prepare_initializers_chain): Renamed to...
17058         (pcom_worker::prepare_initializers_chain): ...this.
17059         (prepare_initializers): Renamed to...
17060         (pcom_worker::prepare_initializers): ...this.
17061         (prepare_finalizers_chain): Renamed to...
17062         (pcom_worker::prepare_finalizers_chain): ...this.
17063         (prepare_finalizers): Renamed to...
17064         (pcom_worker::prepare_finalizers): ...this.
17065         (tree_predictive_commoning_loop): Renamed to...
17066         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
17067         some calls and remove some cleanup code.
17068         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
17069         (static variable looparound_phis): Remove.
17070         (static variable name_expansions): Remove.
17072 2021-06-24  Richard Biener  <rguenther@suse.de>
17074         * tree-vect-slp.c (slpg_vertex): New struct.
17075         (vect_slp_build_vertices): Adjust.
17076         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
17077         and a materialized one.
17079 2021-06-24  Richard Biener  <rguenther@suse.de>
17081         PR tree-optimization/101105
17082         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17083         Only ignore steps when they are equal or scalar order is preserved.
17085 2021-06-24  liuhongt  <hongtao.liu@intel.com>
17087         PR target/98434
17088         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
17089         Adjust comments for ix86_expand_vecop_qihi2.
17090         (ix86_expand_vecmul_qihi): Renamed to ..
17091         (ix86_expand_vecop_qihi2): Adjust function prototype to
17092         support shift operation, add static to definition.
17093         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
17094         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
17095         ix86_expand_vec_shift_qihi_constant.
17096         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
17097         (ix86_expand_vec_shift_qihi_constant): Deleted.
17098         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
17099         iterator.
17100         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
17101         condition TARGET_64BIT.
17102         (mul<mode>3): Ditto.
17103         (<insn><mode>3): Ditto.
17104         (vlshr<mode>3): Extend to support avx512 vlshr.
17105         (v<insn><mode>3): New expander for
17106         vashr/vlshr/vashl.
17107         (v<insn>v8qi3): Ditto.
17108         (vashrv8hi3<mask_name>): Renamed to ..
17109         (vashr<mode>3): And extend to support V16QImode for avx512.
17110         (vashrv16qi3): Deleted.
17111         (vashrv2di3<mask_name>): Extend expander to support avx512
17112         instruction.
17114 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
17116         * doc/lto.texi (Design Overview): Update that slim objects are
17117         the default.
17119 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
17121         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
17122         of OTHER_POWER10_MASKS so it will not be enabled by default.
17124 2021-06-23  Richard Biener  <rguenther@suse.de>
17125             Martin Jambor  <mjambor@suse.cz>
17127         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
17128         param replacement unconditionally.  Adjust comment.
17130 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17132         * Makefile.in (OBJS): Add gimple-range-fold.o
17133         * gimple-range-fold.cc: New.
17134         * gimple-range-fold.h: New.
17135         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
17136         (gimple_range_calc_op2): Ditto.
17137         * gimple-range-gori.h: Move prototypes to here.
17138         * gimple-range.cc: Adjust include files.
17139         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
17140         (fur_source::get_operand): Ditto.
17141         (fur_source::get_phi_operand): Ditto.
17142         (fur_source::query_relation): Ditto.
17143         (fur_source::register_relation): Ditto.
17144         (class fur_edge): Ditto.
17145         (fur_edge::fur_edge): Ditto.
17146         (fur_edge::get_operand): Ditto.
17147         (fur_edge::get_phi_operand): Ditto.
17148         (fur_stmt::fur_stmt): Ditto.
17149         (fur_stmt::get_operand): Ditto.
17150         (fur_stmt::get_phi_operand): Ditto.
17151         (fur_stmt::query_relation): Ditto.
17152         (class fur_depend): Relocate to gimple-range-fold.h.
17153         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
17154         (fur_depend::register_relation): Ditto.
17155         (fur_depend::register_relation): Ditto.
17156         (class fur_list): Ditto.
17157         (fur_list::fur_list): Ditto.
17158         (fur_list::get_operand): Ditto.
17159         (fur_list::get_phi_operand): Ditto.
17160         (fold_range): Ditto.
17161         (adjust_pointer_diff_expr): Ditto.
17162         (gimple_range_adjustment): Ditto.
17163         (gimple_range_base_of_assignment): Ditto.
17164         (gimple_range_operand1): Ditto.
17165         (gimple_range_operand2): Ditto.
17166         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
17167         (gimple_range_calc_op2): Ditto.
17168         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
17169         (fold_using_range::range_of_range_op): Ditto.
17170         (fold_using_range::range_of_address): Ditto.
17171         (fold_using_range::range_of_phi): Ditto.
17172         (fold_using_range::range_of_call): Ditto.
17173         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
17174         (fold_using_range::range_of_builtin_call): Ditto.
17175         (fold_using_range::range_of_cond_expr): Ditto.
17176         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
17177         (fold_using_range::relation_fold_and_or): Ditto.
17178         (fold_using_range::postfold_gcond_edges): Ditto.
17179         * gimple-range.h: Add gimple-range-fold.h to include files. Change
17180         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
17181         (gimple_range_handler): Relocate to gimple-range-fold.h.
17182         (gimple_range_ssa_p): Ditto.
17183         (range_compatible_p): Ditto.
17184         (class fur_source): Ditto.
17185         (class fur_stmt): Ditto.
17186         (class fold_using_range): Ditto.
17187         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
17188         (gimple_range_calc_op2): Ditto.
17190 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17192         PR tree-optimization/101148
17193         PR tree-optimization/101014
17194         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
17195         (ranger_cache::~ranger_cache): Adjust.
17196         (ranger_cache::block_range): Check if propagation disallowed.
17197         (ranger_cache::propagate_cache): Disallow propagation if new value
17198         can't be stored properly.
17199         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
17201 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17203         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
17204         (sbr_vector::set_bb_range): Return true.
17205         (class sbr_sparse_bitmap): Adjust.
17206         (sbr_sparse_bitmap::set_bb_range): Return value.
17207         (block_range_cache::set_bb_range): Return value.
17208         (ranger_cache::propagate_cache): Use return value to print msg.
17209         * gimple-range-cache.h (class block_range_cache): Adjust.
17211 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17213         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
17215 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
17217         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
17218         so this pattern can be used for test/compare removal.  Pass
17219         current insn to compute_logical_op_length and output_logical_op.
17220         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
17221         (h8300_and_costs): Add argument to compute_logical_op_length.
17222         (output_logical_op): Add new argument.  Use it to determine if the
17223         condition codes are used and adjust the output accordingly.
17224         (compute_logical_op_length): Add new argument and update length
17225         computations when condition codes are used.
17226         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
17227         prototype.
17228         (output_logical_op): Likewise.
17230 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
17232         PR target/89021
17233         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
17234         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
17235         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
17236         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
17237         * config/i386/sse.md (unspec): ... here.
17239 2021-06-23  Martin Liska  <mliska@suse.cz>
17241         PR target/98636
17242         * optc-save-gen.awk: Put back arm_fp16_format to
17243         checked_options.
17245 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
17247         PR target/101175
17248         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
17249         (bsr): Ditto.
17250         (*bsrhi): Remove.
17251         (clz<mode>2): Update RTX pattern for additions.
17253 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
17255         PR middle-end/101167
17256         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
17257         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
17259 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
17261         * doc/rtl.texi: drop unbalanced parenthesis.
17263 2021-06-22  Richard Biener  <rguenther@suse.de>
17265         PR middle-end/101156
17266         * gimplify.c (gimplify_expr): Remove premature incorrect
17267         optimization.
17269 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17271         PR tree-optimization/101159
17272         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
17273         comment typos.
17275 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17277         PR middle-end/101160
17278         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
17279         clear crtl->return_rtx instead of keeping it referencing a pseudo.
17281 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17282             Andrew Pinski  <apinski@marvell.com>
17284         PR tree-optimization/101162
17285         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
17286         types.
17288 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17290         * range-op.cc (range_relational_tests): New.
17291         (range_op_tests): Call range_relational_tests.
17293 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17295         * range-op.cc (operator_cast::lhs_op1_relation): New.
17296         (operator_identity::lhs_op1_relation): Mew.
17298 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17300         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
17302 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17304         * range-op.cc (operator_plus::lhs_op1_relation): New.
17305         (operator_plus::lhs_op2_relation): New.
17307 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17309         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
17310         relation_oracle if dominators exist.
17311         (ranger_cache::~ranger_cache): Dispose of oracle.
17312         (ranger_cache::dump_bb): Dump oracle.
17313         * gimple-range.cc (fur_source::fur_source): New.
17314         (fur_source::get_operand): Use mmeber query.
17315         (fur_source::get_phi_operand): Use member_query.
17316         (fur_source::query_relation): New.
17317         (fur_source::register_dependency): Delete.
17318         (fur_source::register_relation): New.
17319         (fur_edge::fur_edge): Adjust.
17320         (fur_edge::get_phi_operand): Fix comment.
17321         (fur_edge::query): Delete.
17322         (fur_stmt::fur_stmt): Adjust.
17323         (fur_stmt::query): Delete.
17324         (fur_depend::fur_depend): Adjust.
17325         (fur_depend::register_relation): New.
17326         (fur_depend::register_relation): New.
17327         (fur_list::fur_list): Adjust.
17328         (fur_list::get_operand): Use member query.
17329         (fold_using_range::range_of_range_op): Process and query relations.
17330         (fold_using_range::range_of_address): Adjust dependency call.
17331         (fold_using_range::range_of_phi): Ditto.
17332         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
17333         (fold_using_range::relation_fold_and_or): New.
17334         (fold_using_range::postfold_gcond_edges): New.
17335         * gimple-range.h (class gimple_ranger): Adjust.
17336         (class fur_source): Adjust members.
17337         (class fur_stmt): Ditto.
17338         (class fold_using_range): Ditto.
17340 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17342         * range-op.cc (range_operator::wi_fold): Apply relation effect.
17343         (range_operator::fold_range): Adjust and apply relation effect.
17344         (*::fold_range): Add relation parameters.
17345         (*::op1_range): Ditto.
17346         (*::op2_range): Ditto.
17347         (range_operator::lhs_op1_relation): New.
17348         (range_operator::lhs_op2_relation): New.
17349         (range_operator::op1_op2_relation): New.
17350         (range_operator::op1_op2_relation_effect): New.
17351         (relop_early_resolve): New.
17352         (operator_equal::op1_op2_relation): New.
17353         (operator_equal::fold_range): Call relop_early_resolve.
17354         (operator_not_equal::op1_op2_relation): New.
17355         (operator_not_equal::fold_range): Call relop_early_resolve.
17356         (operator_lt::op1_op2_relation): New.
17357         (operator_lt::fold_range): Call relop_early_resolve.
17358         (operator_le::op1_op2_relation): New.
17359         (operator_le::fold_range): Call relop_early_resolve.
17360         (operator_gt::op1_op2_relation): New.
17361         (operator_gt::fold_range): Call relop_early_resolve.
17362         (operator_ge::op1_op2_relation): New.
17363         (operator_ge::fold_range): Call relop_early_resolve.
17364         * range-op.h (class range_operator): Adjust parameters and methods.
17366 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17368         * Makefile.in (OBJS): Add value-relation.o.
17369         * gimple-range.h: Adjust include files.
17370         * tree-data-ref.c: Adjust include file order.
17371         * value-query.cc (range_query::get_value_range): Default to no oracle.
17372         (range_query::query_relation): New.
17373         (range_query::query_relation): New.
17374         * value-query.h (class range_query): Adjust.
17375         * value-relation.cc: New.
17376         * value-relation.h: New.
17378 2021-06-22  Richard Biener  <rguenther@suse.de>
17380         PR tree-optimization/101151
17381         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
17382         region check.
17384 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
17386         * config/riscv/riscv.c (thead_c906_tune_info): New.
17387         (riscv_tune_info_table): Use new tune.
17389 2021-06-22  Richard Biener  <rguenther@suse.de>
17391         PR tree-optimization/101158
17392         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
17393         checking after checking for matching operation.
17395 2021-06-22  Richard Biener  <rguenther@suse.de>
17397         PR tree-optimization/101159
17398         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
17399         missing NULL vectype check.
17401 2021-06-22  Richard Biener  <rguenther@suse.de>
17403         PR tree-optimization/101154
17404         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
17406 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17408         PR target/11877
17409         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
17410         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
17411         * config/i386/i386.c (ix86_expand_prologue): Clear it.
17412         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
17413         Remove "" from match_operand.  Emit new insns using emit_move_insn and
17414         set ix86_last_zero_store_uid to INSN_UID of the last store.
17415         Add peephole2s for 1/2/4 stores of const0_rtx following previous
17416         successful peep2s.
17418 2021-06-22  Martin Liska  <mliska@suse.cz>
17420         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
17421         was changed.
17423 2021-06-22  Martin Liska  <mliska@suse.cz>
17425         * gcov-io.h: Remove padding entries.
17427 2021-06-22  liuhongt  <hongtao.liu@intel.com>
17429         PR tree-optimization/97770
17430         * tree-vect-patterns.c (vect_recog_popcount_pattern):
17431         New.
17432         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
17434 2021-06-22  liuhongt  <hongtao.liu@intel.com>
17436         PR target/100267
17437         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
17438         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
17439         (expand<mode>_mask): this ..
17440         (*expand<mode>_mask): New pre_reload splitter to transform
17441         v{,p}expand* to vmov* when mask is zero, all ones, or has all
17442         ones in it's lower part, otherwise still generate
17443         v{,p}expand*.
17445 2021-06-22  liuhongt  <hongtao.liu@intel.com>
17447         PR target/100310
17448         * config/i386/i386-expand.c
17449         (ix86_expand_special_args_builtin): Keep constm1_operand only
17450         if it satisfies insn's operand predicate.
17452 2021-06-21  Jason Merrill  <jason@redhat.com>
17454         PR target/88529
17455         * df-scan.c (df_ref_record): Check that regno < endregno.
17456         * function.c (assign_parms, expand_function_end): Do nothing with a
17457         TYPE_EMPTY_P result.
17459 2021-06-21  Richard Biener  <rguenther@suse.de>
17461         PR tree-optimization/101120
17462         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
17463         built increment.
17464         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
17465         DR chain DCE capability.
17466         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
17467         * tree-vect-stmts.c (vectorizable_load): Remove unused
17468         loads in the DR chain for SLP.
17470 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
17472         PR inline-asm/100785
17473         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
17474         output or input operands were already error_mark_node.
17475         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
17476         remove all inputs, outputs and clobbers from the asm and
17477         set template to "".
17479 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
17481         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
17482         (vceq_s16): Likewise.
17483         (vceq_s32): Likewise.
17484         (vceq_u8): Likewise.
17485         (vceq_u16): Likewise.
17486         (vceq_u32): Likewise.
17487         (vceq_p8): Likewise.
17488         (vceqq_s8): Likewise.
17489         (vceqq_s16): Likewise.
17490         (vceqq_s32): Likewise.
17491         (vceqq_u8): Likewise.
17492         (vceqq_u16): Likewise.
17493         (vceqq_u32): Likewise.
17494         (vceqq_p8): Likewise.
17495         (vceq_f32): Gate __a == __b on __FAST_MATH__.
17496         (vceqq_f32): Likewise.
17497         (vceq_f16): Likewise.
17498         (vceqq_f16): Likewise.
17500 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
17502         PR target/97906
17503         * config/arm/iterators.md (NEON_VACMP): Remove.
17504         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
17505         iterator.
17506         (neon_vca<cmp_op><mode>_insn): Likewise.
17507         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
17508         NEON_VACMP.
17510 2021-06-21  Richard Biener  <rguenther@suse.de>
17512         PR tree-optimization/101121
17513         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
17514         when we just lack a stmt with the desired op when doing permutation.
17515         (vect_build_slp_tree): When caching a failed SLP build attempt
17516         assert that at least one lane is marked as not matching.
17518 2021-06-21  liuhongt  <hongtao.liu@intel.com>
17520         PR target/101142
17521         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
17522         register alternative.
17523         (*and<mode>_1): Ditto.
17524         (*andqi_1): Ditto.
17525         (*andn<mode>_1): Ditto.
17526         (*<code><mode>_1): Ditto.
17527         (*<code>qi_1): Ditto.
17528         (*one_cmpl<mode>2_1): Ditto.
17529         (*one_cmplsi2_1_zext): Ditto.
17530         (*one_cmplqi2_1): Ditto.
17531         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
17532         the order of mask registers to be before general registers.
17534 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
17536         PR target/11877
17537         * config/i386/i386.md: New define_peephole2s to shrink writing
17538         1, 2 or 4 consecutive zeros to memory when optimizing for size.
17540 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
17542         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
17543         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
17544         more efficient code when the source can be trivially simplified.
17546 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
17548         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
17549         a range if global is not available.
17550         (ranger_cache::entry_range): Fallback to range_of_def.
17551         * gimple-range-cache.h (range_of_def): Adjust prototype.
17553 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
17555         PR tree-optimization/101014
17556         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
17557         value list.
17558         (ranger_cache::~ranger_cache): Ditto.
17559         (ranger_cache::enable_new_values): Delete.
17560         (ranger_cache::push_poor_value): Delete.
17561         (ranger_cache::range_of_def): Remove poor value processing.
17562         (ranger_cache::entry_range): Ditto.
17563         (ranger_cache::fill_block_cache): Ditto.
17564         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
17565         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
17566         * gimple-range.h (class gimple_ranger): Adjust.
17568 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
17570         PR target/100856
17571         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
17572         derived from arm_canon_arch.
17573         (arm_canon_arch_option): Call it.
17574         (arm_canon_arch_multilib_option): New function.
17575         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
17576         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
17577         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
17578         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
17579         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
17580         * config/arm/arm.opt (mlibarch): New option.
17581         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
17582         of march on RHS with mlibarch.
17584 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
17586         * config.in: Regenerate.
17587         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
17588         functions.
17589         * configure: Regenerate.
17590         * configure.ac: Fix for global_load assembler functions.
17592 2021-06-18  Richard Biener  <rguenther@suse.de>
17594         PR tree-optimization/101112
17595         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
17596         to lookup a pattern stmt def.
17598 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
17600         PR middle-end/101062
17601         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
17602         representatives in QUAL_UNION_TYPE.
17604 2021-06-18  Andrew Pinski  <apinski@marvell.com>
17606         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
17607         Add counting of how many times it is done.
17608         (factor_out_conditional_conversion): Likewise.
17609         (match_simplify_replacement): Likewise.
17610         (value_replacement): Likewise.
17611         (spaceship_replacement): Likewise.
17612         (cond_store_replacement): Likewise.
17613         (cond_if_else_store_replacement_1): Likewise.
17614         (hoist_adjacent_loads): Likewise.
17616 2021-06-18  Andrew Pinski  <apinski@marvell.com>
17618         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
17619         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
17620         (verify_gimple_assign_binary): Reject point and offset types on
17621         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
17622         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
17623         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
17625 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
17627         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
17628         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
17629         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
17630         New insns.
17632 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
17634         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
17635         earlyclobber to alts 0/1.
17636         (gen_addadd): Add earlyclobber to alts 0/1.
17637         * config/rs6000/fusion.md: Regenerate file.
17639 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17641         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
17643 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
17645         * gimple-range-cache.cc: Comment cleanups.
17646         * gimple-range-gori.cc: Comment cleanups.
17647         * gimple-range.cc: Comment/spacing cleanups
17648         * value-range.h: Comment cleanups.
17650 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
17652         PR target/100704
17653         * calls.c (expand_call): Replace PUSH_ARGS with
17654         targetm.calls.push_argument (0).
17655         (emit_library_call_value_1): Likewise.
17656         * defaults.h (PUSH_ARGS): Removed.
17657         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
17658         targetm.calls.push_argument (0).
17659         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
17660         (emit_push_insn): Pass the number bytes to push to
17661         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
17662         * hooks.c (hook_bool_uint_true): New.
17663         * hooks.h (hook_bool_uint_true): Likewise.
17664         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
17665         targetm.calls.push_argument (0).
17666         * target.def (push_argument): Add a targetm.calls hook.
17667         * targhooks.c (default_push_argument): New.
17668         * targhooks.h (default_push_argument): Likewise.
17669         * config/bpf/bpf.h (PUSH_ARGS): Removed.
17670         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
17671         * config/cr16/cr16.h (PUSH_ARGS): Removed.
17672         * config/i386/i386.c (ix86_push_argument): New.
17673         (TARGET_PUSH_ARGUMENT): Likewise.
17674         * config/i386/i386.h (PUSH_ARGS): Removed.
17675         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
17676         * config/m32c/m32c.h (PUSH_ARGS): Removed.
17677         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
17678         * config/pru/pru.h (PUSH_ARGS): Likewise.
17679         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
17680         TARGET_PUSH_ARGUMENT hook.
17681         * doc/tm.texi: Regenerated.
17683 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
17685         PR target/97194
17686         * config/i386/i386-expand.c (expand_vector_set_var):
17687         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
17688         ix86_expand_vector_init_duplicate.
17689         (ix86_expand_vector_init_duplicate): Emit insv_1 for
17690         QImode for !TARGET_PARTIAL_REG_STALL.
17691         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
17692         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
17693         as operand 2 predicate.  Call ix86_expand_vector_set_var
17694         for non-constant index operand.
17695         (vec_setv2si): Ditto.
17696         (vec_setv4hi): Ditto.
17697         (vec_setv8qi): ditto.
17699 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
17701         PR tree-optimization/100790
17702         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
17703         code.
17705 2021-06-17  Martin Liska  <mliska@suse.cz>
17707         * doc/invoke.texi: Use consistently -O1 instead of -O.
17709 2021-06-17  Martin Liska  <mliska@suse.cz>
17711         * gcov-io.h: Update documentation entry about string format.
17713 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
17715         PR target/100871
17716         * config/s390/vecintrin.h (vec_doublee): Fix to use
17717           __builtin_s390_vflls.
17718         (vec_floate): Fix to use __builtin_s390_vflrd.
17720 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17722         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
17723         * dominance.h (get_dominated_to_depth): Likewise.
17724         (get_all_dominated_blocks): Likewise.
17725         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
17726         * gcse.c (hoist_code): Likewise.
17727         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
17728         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
17729         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17730         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
17732 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17734         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
17735         * dominance.h (get_dominated_by_region): Likewise.
17736         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
17737         (gimple_duplicate_sese_tail): Likewise.
17738         (move_sese_region_to_fn): Likewise.
17740 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17742         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
17743         * dominance.h (get_dominated_by): Likewise.
17744         * auto-profile.c (afdo_find_equiv_class): Adjust.
17745         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
17746         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17747         * tree-cfg.c (test_linear_chain): Likewise.
17748         (test_diamond): Likewise.
17750 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17752         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
17753         * cfgloopanal.c (get_loop_hot_path): Likewise.
17754         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
17756 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17758         * cgraph.c (cgraph_node::collect_callers): Return
17759         auto_vec<cgraph_edge *>.
17760         * cgraph.h (cgraph_node::collect_callers): Likewise.
17761         * ipa-cp.c (create_specialized_node): Adjust.
17762         (decide_about_value): Likewise.
17763         (decide_whether_version_node): Likewise.
17764         * ipa-sra.c (process_isra_node_results): Likewise.
17766 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
17768         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
17769         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
17770         constructor.
17771         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
17772         assignment.
17774 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
17776         * gimple-range.cc (debug_seed_ranger): New.
17777         (dump_ranger): New.
17778         (debug_ranger): New.
17780 2021-06-17  Richard Biener   <rguenther@suse.de>
17782         PR tree-optimization/54400
17783         * tree-vectorizer.h (enum slp_instance_kind): Add
17784         slp_inst_kind_bb_reduc.
17785         (reduction_fn_for_scalar_code): Declare.
17786         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
17787         Check SLP_INSTANCE_KIND instead of looking at the
17788         representative.
17789         (vect_slp_analyze_instance_alignment): Likewise.
17790         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
17791         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
17792         chain linearization from vect_build_slp_tree_2 and generalize
17793         for the use of BB reduction vectorization.
17794         (vect_build_slp_tree_2): Adjust accordingly.
17795         (vect_optimize_slp): Elide permutes at the root of BB reduction
17796         instances.
17797         (vectorizable_bb_reduc_epilogue): New function.
17798         (vect_slp_prune_covered_roots): Likewise.
17799         (vect_slp_analyze_operations): Use them.
17800         (vect_slp_check_for_constructors): Recognize associatable
17801         chains for BB reduction vectorization.
17802         (vectorize_slp_instance_root_stmt): Generate code for the
17803         BB reduction epilogue.
17805 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
17807         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
17808         may_recompute_p.
17809         (gori_compute::may_recompute_p): New.
17810         (gori_compute::outgoing_edge_range_p): Perform recomputations.
17811         * gimple-range-gori.h (class gori_compute): Add prototype.
17813 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
17815         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
17816         true when a range can be calculated.
17817         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
17819 2021-06-16  Martin Sebor  <msebor@redhat.com>
17821         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
17822         Correct documented defaults.
17824 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
17826         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
17827         m_new_value_p directly.
17829 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
17831         PR target/89021
17832         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
17833         Handle 64bit modes for TARGET_SSE4_1.
17834         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
17835         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
17836         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
17837         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
17838         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
17839         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
17841 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
17843         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
17844         Change to an expander that emits the correct instruction
17845         depending on endianness.
17846         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
17847         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
17849 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
17851         * config/aarch64/aarch64-simd-builtins.def: Split generator
17852         for aarch64_<su>qmovn builtins into scalar and vector
17853         variants.
17854         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
17855         Define.
17856         (aarch64_<su>qmovn<mode>_insn_be): Define.
17857         (aarch64_<su>qmovn<mode>): Split into scalar and vector
17858         variants. Change vector variant to an expander that emits the
17859         correct instruction depending on endianness.
17861 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
17863         * config/aarch64/aarch64-simd-builtins.def: Split generator
17864         for aarch64_sqmovun builtins into scalar and vector variants.
17865         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
17866         Split into scalar and vector variants. Change vector variant
17867         to an expander that emits the correct instruction depending
17868         on endianness.
17869         (aarch64_sqmovun<mode>_insn_le): Define.
17870         (aarch64_sqmovun<mode>_insn_be): Define.
17872 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
17874         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
17875         Define - modeling zero-high-half semantics.
17876         (aarch64_xtn<mode>): Change to an expander that emits the
17877         appropriate instruction depending on endianness.
17878         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
17879         semantics.
17880         (aarch64_xtn2<mode>_le): Rename to...
17881         (aarch64_xtn2<mode>_insn_le): This.
17882         (aarch64_xtn2<mode>_be): Rename to...
17883         (aarch64_xtn2<mode>_insn_be): This.
17884         (vec_pack_trunc_<mode>): Emit truncation instruction instead
17885         of aarch64_xtn.
17886         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
17887         attribute iterator.
17889 2021-06-16  Martin Jambor  <mjambor@suse.cz>
17891         PR tree-optimization/100453
17892         * tree-sra.c (create_access): Disqualify any const candidates
17893         which are written to.
17894         (sra_modify_expr): Do not store sub-replacements back to a const base.
17895         (handle_unscalarized_data_in_subtree): Likewise.
17896         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
17897         instead of constant_decl_p.
17899 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
17901         PR middle-end/101062
17902         * stor-layout.c (finish_bitfield_representative): For fields in unions
17903         assume nextf is always NULL.
17904         (finish_bitfield_layout): Compute bit field representatives also in
17905         unions, but handle it as if each bitfield was the only field in the
17906         aggregate.
17908 2021-06-16  Richard Biener  <rguenther@suse.de>
17910         PR tree-optimization/101088
17911         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
17912         supported refs on edges.  Do not assert same ref but
17913         different kind stores are unsuported but mark them so.
17914         (hoist_memory_references): Only look for supported refs
17915         on exits.
17917 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
17919         PR rtl-optimization/46235
17920         * config/i386/i386.md: New define_split for bt followed by cmov.
17921         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
17922         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
17923         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
17924         by setnc with zero extension.
17926 2021-06-16  Richard Biener  <rguenther@suse.de>
17928         PR tree-optimization/101083
17929         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
17930         vectype as argument.
17931         (vect_build_slp_tree_2): Adjust.
17933 2021-06-15  Martin Sebor  <msebor@redhat.com>
17935         PR middle-end/100876
17936         * builtins.c: (gimple_call_return_array): Account for size_t
17937         mangling as either unsigned int or unsigned long
17939 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
17941         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
17942         up before eliminating comparisons.
17944 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
17946         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
17947         nonzero|X is nonzero.
17948         (range_op_bitwise_and_tests): Add tests for above.
17950 2021-06-15  Carl Love  <cel@us.ibm.com>
17952         PR target/101022
17953         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
17954         enum definition.
17955         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
17956         definitions.
17958 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
17960         PR fortran/92568
17961         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
17962         (struct gimplify_omp_ctx): Extend defaultmap array by one.
17963         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
17964         (omp_notice_variable): Update type classification for Fortran.
17965         (gimplify_scan_omp_clauses): Update calls for new argument; handle
17966         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
17967         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
17968         * langhooks.c (lhd_omp_scalar_p): Likewise.
17969         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
17970         (LANG_HOOKS_DECLS): Add them.
17971         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
17972         omp_scalar_p pointer type to include the new bool argument.
17974 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
17976         * doc/analyzer.texi
17977         (Special Functions for Debugging the Analyzer): Add
17978         __analyzer_dump_capacity.
17980 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
17982         PR target/101046
17983         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
17984         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
17986 2021-06-15  Richard Biener  <rguenther@suse.de>
17988         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
17989         check to identify loop latches.
17990         * cfgloop.c (verify_loop_structure): Likewise.
17991         * loop-init.c (apply_loop_flags): Allow marked irreducible
17992         regions even with multiple latches.
17993         * predict.c (rebuild_frequencies): Simplify.
17995 2021-06-15  Richard Biener  <rguenther@suse.de>
17997         * tree-ssa-threadupdate.c
17998         (jump_thread_path_registry::mark_threaded_blocks): Assert we
17999         have marked irreducible regions.
18001 2021-06-14  Martin Sebor  <msebor@redhat.com>
18003         PR c++/100876
18004         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
18005         Handle calls to placement new.
18006         (ndecl_dealloc_argno): Avoid placement delete.
18008 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
18010         PR target/100777
18011         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
18012         create_tmp_reg_or_ssa_name().
18014 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
18016         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
18017         (ranger_cache::enable_new_values): Set to specified value and
18018         return the old value.
18019         (ranger_cache::disable_new_values): Delete.
18020         (ranger_cache::fill_block_cache): Disable non 1st order derived
18021         poor values.
18022         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
18023         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
18025 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
18027         PR target/101058
18028         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
18029         Return true early when testing with V2HImode.
18030         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
18032 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
18034         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
18035         (mve_vec_unpack<US>_hi_<mode>): New pattern.
18036         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
18037         (mve_vmovntq_<supf><mode>): Prefix with '@'.
18038         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
18039         vec-common.md.
18040         (vec_unpack<US>_lo_<mode>): Likewise.
18041         (vec_pack_trunc_<mode>): Rename to
18042         neon_quad_vec_pack_trunc_<mode>.
18043         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
18044         pattern.
18045         (vec_unpack<US>_lo_<mode>): New.
18046         (vec_pack_trunc_<mode>): New.
18048 2021-06-14  Richard Biener  <rguenther@suse.de>
18050         PR tree-optimization/100934
18051         * tree-ssa-dom.c (pass_dominator::execute): Properly
18052         mark irreducible regions.
18054 2021-06-14  Martin Liska  <mliska@suse.cz>
18056         * doc/invoke.texi: Put r{...} on the same line as @item.
18058 2021-06-14  Martin Liska  <mliska@suse.cz>
18060         * doc/invoke.texi: Add missing newline.
18062 2021-06-14  Martin Liska  <mliska@suse.cz>
18064         * doc/invoke.texi: Remove '+' charasters.
18066 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
18068         * config.gcc (arc): Add support for with_cpu option.
18069         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
18071 2021-06-14  Richard Biener  <rguenther@suse.de>
18073         PR tree-optimization/101031
18074         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
18075         instead of size when accounting for a possibly string
18076         terminating nul.
18078 2021-06-14  Martin Liska  <mliska@suse.cz>
18080         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
18082 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
18084         * value-query.cc (gimple_range_global): Call get_range_global
18085         if called after inlining.
18087 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
18089         PR target/101021
18090         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
18091         Emit constant permutation insn directly from here.
18093 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
18095         * attribs.c (find_attribute_namespace): Iterate over vec<> with
18096         range based for.
18097         * auto-profile.c (afdo_find_equiv_class): Likewise.
18098         * gcc.c (do_specs_vec): Likewise.
18099         (do_spec_1): Likewise.
18100         (driver::set_up_specs): Likewise.
18101         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
18102         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
18103         (imm_store_chain_info::try_coalesce_bswap): Likewise.
18104         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
18105         (get_location_for_stmts): Likewise.
18106         * graphite-poly.c (print_iteration_domains): Likewise.
18107         (free_poly_bb): Likewise.
18108         (remove_gbbs_in_scop): Likewise.
18109         (free_scop): Likewise.
18110         (dump_gbb_cases): Likewise.
18111         (dump_gbb_conditions): Likewise.
18112         (print_pdrs): Likewise.
18113         (print_scop): Likewise.
18114         * ifcvt.c (cond_move_process_if_block): Likewise.
18115         * lower-subreg.c (decompose_multiword_subregs): Likewise.
18116         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
18117         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
18118         * sel-sched-dump.c (dump_insn_vector): Likewise.
18119         * store-motion.c (store_ops_ok): Likewise.
18120         (store_killed_in_insn): Likewise.
18121         * timevar.c (timer::named_items::print): Likewise.
18122         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
18123         (cleanup_tree_cfg_noloop): Likewise.
18124         * tree-data-ref.c (dump_data_references): Likewise.
18125         (print_dir_vectors): Likewise.
18126         (print_dist_vectors): Likewise.
18127         (dump_data_dependence_relations): Likewise.
18128         (dump_dist_dir_vectors): Likewise.
18129         (dump_ddrs): Likewise.
18130         (create_runtime_alias_checks): Likewise.
18131         (free_subscripts): Likewise.
18132         (save_dist_v): Likewise.
18133         (save_dir_v): Likewise.
18134         (invariant_access_functions): Likewise.
18135         (same_access_functions): Likewise.
18136         (access_functions_are_affine_or_constant_p): Likewise.
18137         (find_data_references_in_stmt): Likewise.
18138         (graphite_find_data_references_in_stmt): Likewise.
18139         (free_dependence_relations): Likewise.
18140         (free_data_refs): Likewise.
18141         * tree-inline.c (copy_debug_stmts): Likewise.
18142         * tree-into-ssa.c (dump_currdefs): Likewise.
18143         (rewrite_update_phi_arguments): Likewise.
18144         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
18145         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
18146         Likewise.
18147         (vect_slp_analyze_node_dependences): Likewise.
18148         (vect_slp_analyze_instance_dependence): Likewise.
18149         (vect_record_base_alignments): Likewise.
18150         (vect_get_peeling_costs_all_drs): Likewise.
18151         (vect_peeling_supportable): Likewise.
18152         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
18153         (vec_info::free_stmt_vec_infos): Likewise.
18155 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
18157         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
18158         (andqi3_1<cczn>): Removed.
18159         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
18160         (H8/SX bit logicals): Split out from other patterns.
18161         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
18162         mulqihi3_const_clobber_flags.
18163         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
18165 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
18167         PR target/101023
18168         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
18169         to true if red zone is used.
18170         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
18171         ix86_red_zone_used.
18172         * config/i386/i386.h (machine_function): Add red_zone_used.
18173         (ix86_red_zone_size): Removed.
18174         (ix86_red_zone_used): New.
18175         * config/i386/i386.md (peephole2 patterns): Replace
18176         ix86_red_zone_size with ix86_red_zone_used.
18178 2021-06-12  Jason Merrill  <jason@redhat.com>
18180         * doc/extend.texi (unused variable attribute): Applies to
18181         structure fields as well.
18183 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
18185         * auto-profile.c (read_profile): fix a typo in an error string
18187 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
18189         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
18190         default argument.
18191         * tree-pretty-print.c (dump_omp_clauses): Update.
18192         (dump_generic_node) <OMP_CLAUSE>: Use it.
18194 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
18196         PR target/101016
18197         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
18198         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
18199         the polymorphic variants matching code.
18200         (__arm_vld1q_z): Likewise.
18201         (__arm_vld2q): Likewise.
18202         (__arm_vld4q): Likewise.
18203         (__arm_vldrbq_gather_offset): Likewise.
18204         (__arm_vldrbq_gather_offset_z): Likewise.
18206 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
18208         PR tree-optimization/96392
18209         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
18211 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
18213         PR tree-optimization/96392
18214         * fold-const.c (fold_real_zero_addition_p): Take both arguments
18215         of the addition or subtraction, not just the zero.  Use this
18216         other argument in tests for signaling NaNs and signed zeros.
18217         (tree_expr_maybe_real_minus_zero_p): New predicate.
18218         * fold-const.h (fold_real_zero_addition_p): Update prototype.
18219         (tree_expr_maybe_real_minus_zero_p): New function prototype.
18220         * match.pd: Update calls to fold_real_zero_addition_p.
18221         Replace HONOR_NANS with tree_expr_maybe_nan_p.
18222         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
18223         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
18224         * tree-ssa-reassoc.c (eliminate_using_constants): Update
18225         call to fold_real_zero_addition_p.
18227 2021-06-11  Richard Biener  <rguenther@suse.de>
18229         PR tree-optimization/101025
18230         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
18231         all refs that require dependence checking.
18233 2021-06-11  Richard Biener  <rguenther@suse.de>
18235         PR tree-optimization/101028
18236         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
18237         reassoc discovery fails fatally, mark appropriate lanes
18238         in matches[] so.
18240 2021-06-11  Richard Biener  <rguenther@suse.de>
18242         PR tree-optimization/101026
18243         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
18244         have a representative for the associated chain nodes.
18246 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
18248         PR rtl-optimization/101008
18249         * simplify-rtx.c (relational_result): New function.
18250         (simplify_logical_relational_operation,
18251         simplify_relational_operation): Use it.
18253 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
18255         PR target/101007
18256         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
18258 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
18260         PR target/101021
18261         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
18262         false if the permutation can be implemented with constant
18263         permutation instruction in wider mode.
18264         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
18265         Handle V8QImode and V4HImode.
18267 2021-06-11  Martin Liska  <mliska@suse.cz>
18269         PR gcov-profile/100788
18270         * common.opt: Add new option.
18271         * coverage.c (coverage_begin_function): Emit warning instead on
18272         the internal compiler error.
18273         * doc/invoke.texi: Document the option.
18274         * toplev.c (process_options): Enable it by default.
18276 2021-06-11  Richard Biener  <rguenther@suse.de>
18278         PR middle-end/101009
18279         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
18280         to set *init_b to true when we encounter a constant equal
18281         index pair.
18282         (compute_affine_dependence): Also dump the actual DR_REF.
18284 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
18286         PR tree-optimization/100984
18287         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
18288         replacements table.
18289         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
18291 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
18293         * config/rs6000/rs6000.md
18294         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
18295         define_insn_and_split.
18297 2021-06-11  Richard Biener  <rguenther@suse.de>
18299         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
18300         to sort operands of the associative chain.
18302 2021-06-11  Richard Biener  <rguenther@suse.de>
18304         * system.h (gcc_stablesort_r): Declare.
18305         * sort.cc (gcc_sort_r): Support stable sort.
18306         (gcc_stablesort_r): Define.
18307         * vec.h (vec<>::stablesort): Add.
18309 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
18311         PR target/89021
18312         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
18313         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
18314         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
18315         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
18316         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
18317         (expand_vec_perm_interleave2): Handle 64bit modes.
18318         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
18319         (expand_vec_perm_even_odd_1): Ditto.
18320         (ix86_vectorize_vec_perm_const): Ditto.
18321         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
18322         * config/i386/sse.md: ... here.
18323         * config/i386/mmx.md (*vec_interleave_lowv2sf):
18324         New insn_and_split pattern.
18325         (*vec_interleave_highv2sf): Ditto.
18326         (mmx_pshufbv8qi3): New insn pattern.
18327         (*mmx_pblendw): Ditto.
18329 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
18331         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
18332         (build_acc): Likewise.
18333         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
18334         source operands in little-endian mode.
18335         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
18336         (mma_init_builtins): Likewise.
18337         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
18338         ordering for the MMA assemble and build source operands.
18339         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
18340         Document.
18341         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
18342         documentation.
18344 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
18346         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
18347         REG_P.
18348         * config/h8300/extensions.md: Replace _clobber_flags patterns
18349         with <cczn>.
18351 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
18353         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
18354         (vcond_mask_<mode><tointvec>): this.
18356 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
18357             Thomas Schwinge  <thomas@codesourcery.com>
18359         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
18360         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
18361         * gimple.h (enum gf_mask): Split
18362         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
18363         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
18364         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
18365         (is_gimple_omp_oacc): Update.
18366         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
18367         * gimplify.c (gimplify_omp_target_update): Likewise.
18368         * omp-expand.c (expand_omp_target, build_omp_regions_1)
18369         (omp_make_gimple_edges): Likewise.
18370         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
18371         Likewise.
18373 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
18375         * value-query.cc (value_query::value_on_edge): Rename name to
18376         expr.
18377         (range_query::range_on_edge): Same.
18378         (range_query::value_of_expr): Same.
18379         (range_query::value_on_edge): Same.
18380         * value-query.h (class value_query): Same.
18381         (class range_query): Same.
18383 2021-06-10  Richard Biener  <rguenther@suse.de>
18385         PR tree-optimization/101003
18386         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
18387         use the pattern stmt defs when linearizing a chain.
18389 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
18391         PR debug/100852
18392         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
18393         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
18395 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
18397         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
18398         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
18400 2021-06-09  Andrew Pinski  <apinski@marvell.com>
18402         PR tree-optimization/100925
18403         * match.pd (a ? CST1 : CST2): Limit transformations
18404         that would produce a negative to integeral types only.
18405         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
18407 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
18409         Revert:
18410         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
18412         * doc/tm.texi: Correctly update.
18414 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
18416         * doc/tm.texi: Correctly update.
18418 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
18420         PR other/100735
18421         * doc/tm.texi.in (Trampolines): Add a missing blank line.
18423 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
18425         PR other/100735
18426         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
18427         and -ftrampolines work only with Ada.
18428         * doc/tm.texi.in (Trampolines): Likewise.
18429         * doc/tm.texi: Regenerated.
18431 2021-06-09  Carl Love  <cel@us.ibm.com>
18433         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
18434         Add define for new builtins.
18435         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
18436         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
18437         overloaded builtin definitions.
18438         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
18439         VSIGNEXTSD2Q):  Add builtin expansions.
18440         (SIGNEXT): Add P10 overload definition.
18441         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
18442         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
18443         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
18444         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
18445         vsignextend_si_v2di)[VIlong]: Add define_expand.
18446         Make define_insn vsx_sign_extend_si_v2di visible.
18447         * doc/extend.texi:  Add documentation for the vec_signexti,
18448         vec_signextll builtins and vec_signextq.
18450 2021-06-09  Carl Love  <cel@us.ibm.com>
18452         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
18453         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
18454         __floattikf_sw, __floatuntikf_sw respectively.
18455         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
18456         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
18457         define_insn for mode IEEE 128.
18459 2021-06-09  Carl Love  <cel@us.ibm.com>
18461         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
18462         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
18463         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
18464         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
18465         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
18466         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
18467         uses of VSX_TI to VEC_TI.
18469 2021-06-09  Carl Love  <cel@us.ibm.com>
18471         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
18473 2021-06-09  Carl Love  <cel@us.ibm.com>
18475         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
18476         builtins.
18477         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
18478         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
18479         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
18480         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
18481         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
18482         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
18483         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
18484         define_insn.
18485         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
18486         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
18487         altivec_vrlqnm): New define_expands.
18488         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
18489         VCMPGTUT_P): Add macro expansions.
18490         (BU_P10V_AV_P): Add builtin predicate definition.
18491         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
18492         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
18493         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
18494         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
18495         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
18496         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
18497         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
18498         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
18499         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
18500         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
18501         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
18502         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
18503         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
18504         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
18505         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
18506         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
18507         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
18508         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
18509         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
18510         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
18511         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
18512         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
18513         P10V_BUILTIN_MODU_V1TI):
18514         New overloaded definitions.
18515         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
18516         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
18517         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
18518         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
18519         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
18520         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
18521         New assignments.
18522         (altivec_init_builtins): New E_V1TImode case statement.
18523         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
18524         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
18525         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
18526         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
18527         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
18528         E_V1TImode]: New case statements.
18529         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
18530         value RS6000_BTI_bool_V1TI.
18531         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
18532         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
18533         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
18534         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
18535         vlshrv1ti3, vashrv1ti3): New define_expands.
18536         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
18537         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
18538         UNSPEC_VSX_MODUQ): New unspecs.
18539         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
18540         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
18541         define_insns.
18542         (vcmpnet): New define_expand.
18543         * doc/extend.texi: Add documentation for the new builtins vec_rl,
18544         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
18545         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
18546         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
18547         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
18548         vec_any_ge, vec_any_le.
18550 2021-06-09  Carl Love  <cel@us.ibm.com>
18552         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
18553         bug in argument generation.
18555 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
18557         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
18558         (VCLZQ): Remove.
18559         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
18560         remove <supf> iterator.
18561         (mve_vclzq_u<mode>): New.
18562         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
18563         (neon_vclz<mode): Move to ...
18564         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
18565         * config/arm/vec-common.md: ... here. Add support for MVE.
18567 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
18569         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
18570         (@mve_vrhaddq_<supf><mode): Likewise.
18571         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
18572         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
18573         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
18575 2021-06-09  imba-tjd  <109224573@qq.com>
18577         * doc/invoke.texi: Fix typo.
18579 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
18581         PR middle-end/53267
18582         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
18583         Support evaluation of fmod/fmodf/fmodl at compile-time.
18585 2021-06-09  Richard Biener  <rguenther@suse.de>
18587         PR tree-optimization/100981
18588         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
18589         gimple_get_lhs to also handle calls.
18590         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
18591         reduction info.
18593 2021-06-09  Richard Biener  <rguenther@suse.de>
18595         PR tree-optimization/97832
18596         * tree-vectorizer.h (_slp_tree::failed): New.
18597         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
18598         failed member.
18599         (_slp_tree::~_slp_tree): Free failed.
18600         (vect_build_slp_tree): Retain failed nodes and record
18601         matches in them, copying that back out when running
18602         into a cached fail.  Dump start and end of discovery.
18603         (dt_sort_cmp): New.
18604         (vect_build_slp_tree_2): Handle associatable chains
18605         together doing more aggressive operand swapping.
18607 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
18609         PR target/100896
18610         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
18611         GNU targets.
18612         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
18613         Linux and GNU targets.
18615 2021-06-09  Richard Biener  <rguenther@suse.de>
18617         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
18618         from the stmt.
18620 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
18622         * config/arc/arc.md (loop_end): Change it to
18623         define_insn_and_split.
18625 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
18627         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
18628         (machi): New pattern.
18629         (umaddhisi4): Use VMAC2HU instruction.
18630         (umachi): New pattern.
18632 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
18634         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
18635         * config/arc/arc.c (arc_split_move_p): New function.
18636         (arc_split_move): Clean up.
18637         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
18638         (movdf_insn): Likewise.
18639         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
18641 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
18643         PR target/100936
18644         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
18645         argument to "raw".  Do not emit segment overrides when "raw" is true.
18647 2021-06-09  Martin Liska  <mliska@suse.cz>
18649         * doc/gcov.texi: Create a proper JSON files.
18650         * doc/invoke.texi: Remove dots in order to make it a valid
18651         JSON object.
18653 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
18655         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
18656         (insn_is_load_p): Use pattern_is_rotate64.
18657         (insn_is_swap_p): Likewise.
18658         (quad_aligned_load_p): Likewise.
18659         (const_load_sequence_p): Likewise.
18660         (replace_swapped_aligned_load): Likewise.
18661         (recombine_lvx_pattern): Likewise.
18662         (recombine_stvx_pattern): Likewise.
18664 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
18666         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
18667         fur_stmt source record.
18668         * gimple-range.cc (fur_source::get_operand): Generic range query.
18669         (fur_source::get_phi_operand): New.
18670         (fur_source::register_dependency): New.
18671         (fur_source::query): New.
18672         (class fur_edge): New.  Edge source for operands.
18673         (fur_edge::fur_edge): New.
18674         (fur_edge::get_operand): New.
18675         (fur_edge::get_phi_operand): New.
18676         (fur_edge::query): New.
18677         (fur_stmt::fur_stmt): New.
18678         (fur_stmt::get_operand): New.
18679         (fur_stmt::get_phi_operand): New.
18680         (fur_stmt::query): New.
18681         (class fur_depend): New.  Statement source and process dependencies.
18682         (fur_depend::fur_depend): New.
18683         (fur_depend::register_dependency): New.
18684         (class fur_list): New.  List source for operands.
18685         (fur_list::fur_list): New.
18686         (fur_list::get_operand): New.
18687         (fur_list::get_phi_operand): New.
18688         (fold_range): New.  Instantiate appropriate fur_source class and fold.
18689         (fold_using_range::range_of_range_op): Use new API.
18690         (fold_using_range::range_of_address): Ditto.
18691         (fold_using_range::range_of_phi): Ditto.
18692         (imple_ranger::fold_range_internal): Use fur_depend class.
18693         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
18694         * gimple-range.h (class fur_source): Now a base class.
18695         (class fur_stmt): New.
18696         (fold_range): New prototypes.
18697         (fur_source::fur_source): Delete.
18699 2021-06-08  Andrew Pinski  <apinski@marvell.com>
18701         PR tree-optimization/25290
18702         * tree-ssa-phiopt.c (xor_replacement): Delete.
18703         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
18704         (match_simplify_replacement): Allow one cheap preparation
18705         statement that can be moved to before the if.
18707 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
18709         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
18710         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
18712 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
18714         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
18715         Create length attribute on define_insn_and_split.  Only split for cases which we
18716         know will use AND.
18717         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
18718         fix length computation.
18719         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
18721 2021-06-08  Richard Biener  <rguenther@suse.de>
18723         PR tree-optimization/100923
18724         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
18725         the operand vector to be valueized.
18726         (valueize_refs): Likewise.
18727         (valueize_shared_reference_ops_from_ref): Adjust.
18728         (valueize_shared_reference_ops_from_call): Likewise.
18729         (vn_reference_lookup_3): Likewise.
18730         (vn_reference_lookup_pieces): Likewise.  Re-valueize
18731         with honoring availability when we are about to create
18732         the ao_ref and valueized before.
18733         (vn_reference_lookup): Likewise.
18734         (vn_reference_insert_pieces): Adjust.
18736 2021-06-08  Richard Biener  <rguenther@suse.de>
18738         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
18739         (_slp_instance::root_stmts): ... a vector.
18740         (SLP_INSTANCE_ROOT_STMT): Rename to ...
18741         (SLP_INSTANCE_ROOT_STMTS): ... this.
18742         (slp_root::root): Change to...
18743         (slp_root::roots): ... a vector.
18744         (slp_root::slp_root): Adjust.
18745         * tree-vect-slp.c (_slp_instance::location): Adjust.
18746         (vect_free_slp_instance): Release the root stmt vector.
18747         (vect_build_slp_instance): Adjust.
18748         (vect_analyze_slp): Likewise.
18749         (_bb_vec_info::~_bb_vec_info): Likewise.
18750         (vect_slp_analyze_operations): Likewise.
18751         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
18752         costs for the root stmt.
18753         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
18754         as root stmts.
18755         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
18756         as pure_slp.
18757         (vectorize_slp_instance_root_stmt): Adjust.
18758         (vect_schedule_slp): Likewise.
18760 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
18762         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
18763         (ssa_equiv_stack::ssa_equiv_stack): New.
18764         (ssa_equiv_stack::~ssa_equiv_stack): New.
18765         (ssa_equiv_stack::enter): New.
18766         (ssa_equiv_stack::leave): New.
18767         (ssa_equiv_stack::push_replacement): New.
18768         (ssa_equiv_stack::get_replacement): New.
18769         (is_pointer_ssa): New.
18770         (class pointer_equiv_analyzer): New.
18771         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
18772         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
18773         (pointer_equiv_analyzer::set_global_equiv): New.
18774         (pointer_equiv_analyzer::set_cond_equiv): New.
18775         (pointer_equiv_analyzer::get_equiv): New.
18776         (pointer_equiv_analyzer::enter): New.
18777         (pointer_equiv_analyzer::leave): New.
18778         (pointer_equiv_analyzer::get_equiv_expr): New.
18779         (pta_valueize): New.
18780         (pointer_equiv_analyzer::visit_stmt): New.
18781         (pointer_equiv_analyzer::visit_edge): New.
18782         (hybrid_folder::value_of_expr): Call PTA.
18783         (hybrid_folder::value_on_edge): Same.
18784         (hybrid_folder::pre_fold_bb): New.
18785         (hybrid_folder::post_fold_bb): New.
18786         (hybrid_folder::pre_fold_stmt): New.
18787         (rvrp_folder::pre_fold_bb): New.
18788         (rvrp_folder::post_fold_bb): New.
18789         (rvrp_folder::pre_fold_stmt): New.
18790         (rvrp_folder::value_of_expr): Call PTA.
18791         (rvrp_folder::value_on_edge): Same.
18793 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
18795         PR c++/100957
18796         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
18797         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
18799 2021-06-08  Richard Biener  <rguenther@suse.de>
18801         PR middle-end/100951
18802         * tree-vect-generic.c (expand_vector_piecewise): Build a
18803         VECTOR_CST if all elements are constant.
18804         (expand_vector_condition): Likewise.
18805         (lower_vec_perm): Likewise.
18806         (expand_vector_conversion): Likewise.
18808 2021-06-08  Martin Liska  <mliska@suse.cz>
18810         * doc/invoke.texi: Document new param evrp-sparse-threshold.
18812 2021-06-08  Martin Liska  <mliska@suse.cz>
18814         * genautomata.c (create_automata): Fix typo.
18816 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
18818         PR tree-optimization/100794
18819         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
18820         allow_unroll_p and only allow unrolling when it's true.
18821         (tree_predictive_commoning): Add parameter allow_unroll_p and
18822         adjust for it.
18823         (run_tree_predictive_commoning): Likewise.
18824         (pass_predcom::gate): Check flag_tree_loop_vectorize and
18825         global_options_set.x_flag_predictive_commoning.
18826         (pass_predcom::execute): Adjust for allow_unroll_p.
18828 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
18830         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
18831         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
18832         lambda function cleanup, remove scev_reset call, and adjust return
18833         value.
18834         (tree_predictive_commoning): Adjust for different changed values,
18835         only set flag TODO_update_ssa_only_virtuals if changed.
18836         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
18837         from todo_flags_finish.
18839 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
18841         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
18842         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
18843         (sbr_sparse_bitmap::bitmap_set_quad): New.
18844         (sbr_sparse_bitmap::bitmap_get_quad): New.
18845         (sbr_sparse_bitmap::set_bb_range): New.
18846         (sbr_sparse_bitmap::get_bb_range): New.
18847         (sbr_sparse_bitmap::bb_range_p): New.
18848         (block_range_cache::block_range_cache): initialize bitmap obstack.
18849         (block_range_cache::~block_range_cache): Destruct obstack.
18850         (block_range_cache::set_bb_range): Decide when to utilze the
18851         sparse on entry cache.
18852         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
18853         * params.opt (-param=evrp-sparse-threshold): New.
18855 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
18857         * bitmap.c (bitmap_set_aligned_chunk): New.
18858         (bitmap_get_aligned_chunk): New.
18859         (test_aligned_chunk): New.
18860         (bitmap_c_tests): Call test_aligned_chunk.
18861         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
18863 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
18865         PR target/100637
18866         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
18867         Handle V4QI mode.
18868         (ix86_expand_vector_init_one_nonzero): Ditto.
18869         (ix86_expand_vector_init_one_var): Ditto.
18870         (ix86_expand_vector_init_general): Ditto.
18871         * config/i386/mmx.md (vec_initv4qiqi): New expander.
18873 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
18875         * config/h8300/movepush.md: Change most _clobber_flags
18876         patterns to instead use <cczn> subst.
18877         (movsi_cczn): New pattern with usable CC cases split out.
18878         (movsi_h8sx_cczn): Likewise.
18880 2021-06-07  Martin Liska  <mliska@suse.cz>
18882         * common/common-target.def: Split long lines and replace them
18883         with '\n\'.
18884         * target.def: Likewise.
18885         * doc/tm.texi: Re-generated.
18887 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
18889         PR target/100887
18890         * fold-const.c (fold_read_from_vector): Return NULL if trying to
18891         read from a CONSTRUCTOR with vector type elements.
18893 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
18895         PR middle-end/100898
18896         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
18897         should copy any arguments.  Don't call gimple_call_num_args
18898         on id->call_stmt or call_stmt more than once.
18900 2021-06-07  liuhongt  <hongtao.liu@intel.com>
18902         PR target/100885
18903         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
18904         constraints.
18905         (<insn>v4siv4di2): Delete constraints for define_expand.
18907 2021-06-07  liuhongt  <hongtao.liu@intel.com>
18909         PR target/82735
18910         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
18911         assignment of cfun->machine->has_explicit_vzeroupper.
18912         * config/i386/i386-features.c
18913         (ix86_add_reg_usage_to_vzerouppers): Delete.
18914         (ix86_add_reg_usage_to_vzeroupper): Ditto.
18915         (rest_of_handle_insert_vzeroupper): Remove
18916         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
18917         of the function.
18918         (gate): Remove cfun->machine->has_explicit_vzeroupper.
18919         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
18920         Declared.
18921         * config/i386/i386.c (ix86_insn_callee_abi): New function.
18922         (ix86_initialize_callee_abi): Ditto.
18923         (ix86_expand_avx_vzeroupper): Ditto.
18924         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
18925         ABI.
18926         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
18927         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
18928         directly.
18929         * config/i386/i386.h (struct GTY(()) machine_function): Delete
18930         has_explicit_vzeroupper.
18931         * config/i386/i386.md (enum unspec): New member
18932         UNSPEC_CALLEE_ABI.
18933         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
18934         define_constants for insn callee abi index.
18935         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
18936         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
18937         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
18938         (*avx_vzeroupper): Rename to ..
18939         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
18940         call_insn which has a special vzeroupper ABI.
18941         (*avx_vzeroupper_1): Deleted.
18943 2021-06-07  liuhongt  <hongtao.liu@intel.com>
18945         PR target/82735
18946         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
18947         it won't use stack pointer reg.
18948         * final.c (leaf_function_p): When call_insn is a fake call, it
18949         won't affect caller as a leaf function.
18950         * reg-stack.c (callee_clobbers_any_stack_reg): New.
18951         (subst_stack_regs): When call_insn doesn't clobber any stack
18952         reg, don't clear the arguments.
18953         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
18954         a insn.
18955         * shrink-wrap.c (requires_stack_frame_p): No need for stack
18956         frame for a fake call.
18957         * rtl.h (FAKE_CALL_P): New macro.
18959 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18961         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
18962         to...
18963         (sparc_order_regs_for_local_alloc): ...this.
18964         (sparc_leaf_reg_remap): Declare.
18965         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
18966         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
18967         * config/sparc/sparc.c (leaf_reg_remap): Delete.
18968         (order_regs_for_local_alloc): Rename to...
18969         (sparc_order_regs_for_local_alloc): ...this.
18970         (sparc_leaf_reg_remap): New function.
18971         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
18973 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
18975         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
18976         Use assemble_name to output BSS section name.
18978 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
18980         * config/i386/constraints.md (Bs):
18981         Remove boolean operators from match_test RTX.
18982         (Bw): Ditto.
18983         (L): Ditto.
18984         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
18985         (Wz): Ditto.
18987 2021-06-06  Martin Liska  <mliska@suse.cz>
18989         * doc/extend.texi: Add missing @headitem.
18990         * doc/invoke.texi: Likewise.
18991         * doc/objc.texi: Likewise.
18993 2021-06-06  Martin Liska  <mliska@suse.cz>
18995         * genhooks.c (emit_findices): Remove unused function.
18996         (emit_documentation): Do not call emit_findices
18997         and do not search for @Fcode directives.
18999 2021-06-06  Martin Liska  <mliska@suse.cz>
19001         * doc/invoke.texi: Remove extra character.
19003 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19005         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
19007 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19009         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
19010         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
19011         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
19012         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
19014 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19016         * config/or1k/or1k.md (*movdi): Fix empty split condition.
19018 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19020         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
19021         split condition.
19023 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19025         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
19026         *zero_extendsidi2): Fix empty split condition.
19028 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
19030         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
19031         patterns.
19032         * config/h8300/bitfield.md: Likewise.
19033         * config/h8300/combiner.md: Likewise.
19034         * config/h8300/divmod.md: Likewise.
19035         * config/h8300/extensions.md: Likewise.
19036         * config/h8300/jumpcall.md: Likewise.
19037         * config/h8300/movepush.md: Likewise.
19038         * config/h8300/multiply.md: Likewise.
19039         * config/h8300/other.md: Likewise.
19040         * config/h8300/shiftrotate.md: Likewise.
19041         * config/h8300/logical.md: Likewise.  Fix split pattern to use
19042         code iterator that somehow slipped through.
19044 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
19046         PR middle-end/100905
19047         * tree-nested.c (convert_nonlocal_omp_clauses,
19048         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
19050 2021-06-04  Martin Sebor  <msebor@redhat.com>
19052         PR middle-end/100732
19053         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
19054         with either source or destination argument of invalid type.
19055         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
19056         calls with arguments of invalid type.
19058 2021-06-04  Martin Sebor  <msebor@redhat.com>
19060         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
19061         order.
19062         (attr_access::vla_bounds): Also handle VLA bounds.
19064 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
19066         * config/i386/predicates.md (GOT_memory_operand):
19067         Implement using match_code RTXes.
19068         (GOT32_symbol_operand): Ditto.
19070 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
19072         PR target/100637
19073         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
19074         Handle V2HI mode.
19075         (ix86_expand_vector_init_general): Ditto.
19076         Use SImode instead of word_mode for logic operations
19077         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
19078         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
19079         implemented by expand_vec_perm_1.
19080         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
19081         should be implemented using standard shuffle patterns.
19082         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
19083         V2HI modes to modes, implementable with shuffle for one operand.
19084         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
19085         (*pshufw_1): New insn pattern.
19086         (*vec_dupv2hi): Ditto.
19087         (vec_initv2hihi): New expander.
19089 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
19091         * config/arm/vfp.md (no_literal_pool_df_immediate,
19092         no_literal_pool_sf_immediate): Fix empty split condition.
19094 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
19096         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
19097         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
19098         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
19099         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
19100         *<sse4_1_avx2>_pblendvb_lt): Likewise.
19102 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
19104         PR target/100887
19105         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
19106         concatenation from half-sized modes with TImode elements.
19108 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
19110         * config/arc/arc.c (arc_override_options): Disable millicode
19111         thunks when RF16 is on.
19113 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
19115         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
19117 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
19119         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
19120         Replace PROMOTE_MODE marco with its content.
19122 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
19124         * config/cris/cris.md (*addi_reload): Fix empty split condition.
19126 2021-06-03  Jim Wilson  <jimw@sifive.com>
19128         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
19129         turn it on for all riscv targets.
19131 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
19133         PR target/100637
19134         * config/i386/i386-expand.c (ix86_expand_vector_set):
19135         Handle V2HI and V4QI modes.
19136         (ix86_expand_vector_extract): Ditto.
19137         * config/i386/mmx.md (*pinsrw): New insn pattern.
19138         (*pinsrb): Ditto.
19139         (*pextrw): Ditto.
19140         (*pextrw_zext): Ditto.
19141         (*pextrb): Ditto.
19142         (*pextrb_zext): Ditto.
19143         (vec_setv2hi): New expander.
19144         (vec_extractv2hihi): Ditto.
19145         (vec_setv4qi): Ditto.
19146         (vec_extractv4qiqi): Ditto.
19147         (vec_setv8qi): Enable only for TARGET_SSE4_1.
19148         (vec_extractv8qiqi): Ditto.
19150 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
19152         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
19153         order to subf instruction.
19154         * config/rs6000/fusion.md: Regenerate.
19156 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
19158         * calls.c (get_size_range): Use range_of_expr instead of
19159         determine_value_range.
19160         * tree-affine.c (expr_to_aff_combination): Same.
19161         * tree-data-ref.c (split_constant_offset): Same.
19162         * tree-vrp.c (determine_value_range_1): Remove.
19163         (determine_value_range): Remove.
19164         * tree-vrp.h (determine_value_range): Remove.
19166 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
19168         * function-tests.c (test_ranges): Call gimple_range_tests.
19169         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
19170         to get_tree_range.
19171         * gimple-range.cc (fur_source::get_operand): Do not call
19172         get_tree_range or gimple_range_global.
19173         get_tree_range.
19174         (get_tree_range): Move to value-query.cc.
19175         Call get_arith_expr_range.
19176         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
19177         Include gimple-range-tests.cc.
19178         * gimple-range.h (fold_range): Add argument.
19179         (get_tree_range): Remove.
19180         * selftest.h (gimple_range_tests): New.
19181         * value-query.cc (global_range_query::range_of_expr): Add
19182         stmt argument.
19183         (range_query::get_tree_range): Move from gimple-range.cc.
19184         * value-query.h (class range_query): Add get_tree_range and
19185         get_arith_expr_range.  Make fur_source a friend.
19186         * vr-values.c (vr_values::range_of_expr): Pass stmt to
19187         get_tree_range.
19188         * gimple-range-tests.cc: New file.
19190 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
19192         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
19193           update_global_range.
19194         * value-query.cc (update_global_range): New.
19195         * value-query.h (update_global_range): New.
19197 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
19199         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
19200         printing the same location twice if there are fix-it hints,
19201         multiple locations, or a label.
19203 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19205         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
19206         thresholds to narrow the upper bound on epilogue iterations.
19208 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
19210         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
19211         (mve_vabsq_s<mode>): Likewise.
19212         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
19213         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
19214         * config/arm/vec-common.md (neg<mode>2): Rename to
19215         <absneg_str><mode>2.
19217 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
19219         * common/config/arc/arc-common.c (arc_option_optimization_table):
19220         Remove malign-call.
19221         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
19222         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
19223         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
19224         * config/arc/arc.md (abssi2_mixed): Remove pattern.
19225         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
19226         (malign-call): Likewise.
19227         (mmixed-code): Likewise.
19228         * doc/invoke.texi (ARC): Update doc.
19230 2021-06-03  Martin Liska  <mliska@suse.cz>
19232         * common.opt: Use proper Enum values.
19233         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
19234         (parse_sanitizer_options): Handle only sanitizer_opts.
19235         (common_handle_option): Just assign value.
19237 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19239         PR ipa/99122
19240         * tree-inline.c (inline_forbidden_p): Remove test on return type.
19242 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19244         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
19245         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
19246         (type_byte_size): Inline into...
19247         (add_byte_size_attribute): ...this and call add_scalar_info.
19249 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19251         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
19252         (typed_binop_from_tree): New function.
19253         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
19254         turn a divide by a power of 2 into a shift.
19255         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
19256         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
19257         typed divide by calling typed_binop_from_tree.
19259 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19261         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
19262         (is_handled_procedure_type): Likewise.
19263         (struct loc_descr_context): Add strict_signedness field.
19264         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
19265         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
19266         (resolve_args_picking): Minor tweak.
19267         (function_to_dwarf_procedure): Initialize strict_signedness field.
19268         (type_byte_size): Likewise.
19269         (field_byte_offset): Likewise.
19270         (gen_descr_array_type_die): Likewise.
19271         (gen_variant_part): Likewise.
19272         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
19273         to true when a context is present before evaluating the arguments.
19274         <COND_EXPR>: Do not generate a useless comparison with zero.
19275         When dereferencing an address, if strict_signedness is true and the
19276         type is small and signed, use DW_OP_deref_type to do the dereference
19277         and then DW_OP_convert to convert back to the generic type.
19279 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
19281         PR c++/100859
19282         * tree-inline.c (copy_tree_body_r): Handle iterators on
19283         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
19285 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
19287         * config/arc/arc.md (*bbit_di): Remove.
19289 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
19291         PR rtl-optimization/100264
19292         * ree.c (get_sub_rtx): Ignore SET expressions without register
19293         destinations and remove assertion, as it is not valid anymore
19294         with this new behaviour.
19295         (merge_def_and_ext): Eliminate destination check for register
19296         as such SET expressions can't occur anymore.
19297         (combine_reaching_defs): Likewise.
19299 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
19301         PR target/100841
19302         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
19303         -Wtype-limits warnings.
19304         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
19305         in operands to avoid -Wsign-compare warnings.
19307 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
19309         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
19310         gen_frame_store.
19312 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
19314         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
19316 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
19318         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
19319         constraint.
19320         * config/s390/subst.md(cconly_subst): Use a single constraint
19321         in (match_scratch).
19323 2021-06-02  Martin Liska  <mliska@suse.cz>
19325         * ipa-icf.h: Use auto_vec for memory_access_types.
19327 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
19329         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
19330         argument from prototype.
19331         (output_logical_op): Add rtx_code argument.
19332         (compute_logical_op_length): Likewise.
19333         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
19334         to compute_a_shift_length.
19335         (output_logical_op); New argument with the rtx code rather than
19336         extracting it from an operand.  Handle QImode too.
19337         (compute_logical_op_length): Similary.
19338         (compute_a_shift_length): Drop unused argument.
19339         * config/h8300/h8300.md (logicals): New code iterator.
19340         * config/h8300/logical.md (<code><mode>3 expander): Combine
19341         the "and" expander with the "ior"/"xor" expander.
19342         (bclr<mode>msx): Combine the QI/HI mode patterns.
19343         (<logical><mode>3 insns): Use code iterator rather than match_operator.
19344         Handle QImode as well.   Update call to output_logical_op and
19345         compute_logical_op_length to pass in rtx_code
19346         Fix split condition on all define_insn_and_split patterns.
19347         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
19348         the flags and setting ZN via existing define_subst.
19349         * config/h8300/shiftrotate.md: Drop unused argument from
19350         calls to compute_a_shift_length.
19351         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
19353 2021-06-01  Andrew Pinski  <apinski@marvell.com>
19355         PR tree-optimization/25290
19356         * tree-ssa-phiopt.c (match_simplify_replacement):
19357         New function.
19358         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
19359         (two_value_replacement): Change the comment about
19360         conditional_replacement.
19361         (conditional_replacement): Delete.
19363 2021-06-01  Andrew Pinski  <apinski@marvell.com>
19365         PR tree-optimization/95481
19366         * tree-tailcall.c (find_tail_calls): Handle empty typed
19367         return decls.
19369 2021-06-01  Andrew Pinski  <apinski@marvell.com>
19371         * gimplify.c (zero_sized_field_decl): Delete
19372         (zero_sized_type): Delete
19373         (gimplify_init_ctor_eval): Use is_empty_type instead
19374         of zero_sized_field_decl.
19375         (gimplify_modify_expr): Use is_empty_type instead of
19376         zero_sized_type.
19378 2021-06-01  Jason Merrill  <jason@redhat.com>
19380         PR c++/91859
19381         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
19383 2021-06-01  Jason Merrill  <jason@redhat.com>
19385         PR c++/94492
19386         * diagnostic.h (warning_enabled_at): Declare.
19387         * diagnostic.c (diagnostic_enabled): Factor out from...
19388         (diagnostic_report_diagnostic): ...here.
19389         (warning_enabled_at): New.
19391 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
19393         * gimple-ssa-evrp.c: Enable exporting of global ranges.
19395 2021-06-01  Martin Liska  <mliska@suse.cz>
19397         PR other/100826
19398         * doc/invoke.texi: Mention that -fgcse-after-reload
19399         is enabled with -O3.
19401 2021-06-01  liuhongt  <hongtao.liu@intel.com>
19403         PR tree-optimization/98365
19404         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
19405         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
19406         (convert_scalar_cond_reduction): Ditto.
19407         (predicate_scalar_phi): Ditto.
19409 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19411         PR tree-optimization/100781
19412         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
19413         value calculation by default.
19414         (ranger_cache::enable_new_values): New.
19415         (ranger_cache::disable_new_values): New.
19416         (ranger_cache::push_poor_value): Check if new values are allowed.
19417         * gimple-range-cache.h (class ranger_cache): New member/methods.
19418         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
19419         statement, and disable/renable new value calculation.
19421 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19423         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
19424         (ranger_cache::range_of_def): New.
19425         (ranger_cache::entry_range): New.
19426         (ranger_cache::exit_range): New.
19427         (ranger_cache::range_of_expr): Adjust.
19428         (ranger_cache::range_on_edge): Adjust.
19429         (ranger_cache::propagate_cache): Call exit_range directly.
19430         * gimple-range-cache.h (class ranger_cache): Adjust.
19432 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19434         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
19435         gori_compute being a member rather than base class.
19436         dervied call to member call.
19437         (ranger_cache::dump): No longer dump gori_map.
19438         (ranger_cache::dump_bb): New.
19439         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
19440         being a member rather than base class.
19441         (ranger_cache::set_global_range): Ditto.
19442         (ranger_cache::ssa_range_in_bb): Ditto.
19443         (ranger_cache::range_of_expr): New.
19444         (ranger_cache::range_on_edge): New.
19445         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
19446         (ranger_cache::propagate_cache):  Adjust debugging output.
19447         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
19448         output changes.
19449         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
19450         member, and inherit from range_query instead.
19451         (ranger_cache::dump_bb): New. split from dump.
19452         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
19453         (gori_compute::expr_range_at_stmt): Delete.
19454         (gori_compute::compute_name_range_op): Delete.
19455         (gori_compute::compute_operand_range_switch): Add fur_source.
19456         (gori_compute::compute_operand_range): Add fur_source param, inline
19457         old compute_name_range_op and optimize_logical_operands.
19458         (struct tf_range): Delete.
19459         (gori_compute::logical_combine): Adjust
19460         (gori_compute::optimize_logical_operands): Delete.
19461         (gori_compute::compute_logical_operands_in_chain): Delete.
19462         (gori_compute::compute_logical_operands): Adjust.
19463         (gori_compute::compute_operand1_range): Adjust to fur_source.
19464         (gori_compute::compute_operand2_range): Ditto.
19465         (gori_compute::compute_operand1_and_operand2_range): Ditto.
19466         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
19467         and adjust to fur_source.
19468         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
19469         range_query and fur_source.
19470         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
19471         from the ranger_cache..
19472         (gimple_ranger::fold_range_internal): Adjust to base class change of
19473         ranger_cache.
19474         (gimple_ranger::dump_bb): Adjust dump.
19475         * gimple-range.h (gimple_ranger):export gori computes object.
19477 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19479         PR tree-optimization/100774
19480         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
19481         Constant values are also not stale.
19482         (ranger_cache::set_global_range): Range invariant values should also
19483         have the correct timestamp.
19485 2021-05-31  Martin Liska  <mliska@suse.cz>
19487         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19488         Unpack FUNCTION_DECL_DECL_TYPE.
19489         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19490         Stream FUNCTION_DECL_DECL_TYPE instead of
19491         DECL_IS_OPERATOR_NEW_P.
19492         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
19493         macro.
19494         (DECL_IS_OPERATOR_NEW_P): Likewise.
19495         (DECL_IS_OPERATOR_DELETE_P): Likewise.
19496         (DECL_LAMBDA_FUNCTION_P): Likewise.
19498 2021-05-31  Richard Biener  <rguenther@suse.de>
19500         PR c++/88601
19501         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
19502         * internal-fn.def (SHUFFLEVECTOR): New.
19503         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
19504         * doc/extend.texi: Document __builtin_shufflevector.
19506 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
19508         PR target/99842
19509         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
19510         indexed form addresses.
19512 2021-05-29  Jeff Law  <jlaw@tachyum.com>
19514         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
19515         parameter.  Call callers fixed.
19516         (push): Likewise.
19517         (output_plussi): Add FALLTHRU markers.
19518         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
19520 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
19522         PR middle-end/99928
19523         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
19524         combined with parallel, make sure to add shared clause to
19525         parallel for explicit linear clause.
19527 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
19529         PR tree-optimization/100787
19530         * gimple-ssa-evrp.c: Disable exporting of global ranges.
19532 2021-05-28  Jason Merrill  <jason@redhat.com>
19534         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
19535         operator--, operator*, operator==, and operator!=.
19536         (class tsi_range): New.
19538 2021-05-28  Richard Biener  <rguenther@suse.de>
19540         PR tree-optimization/100778
19541         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
19542         trapping ops in different BBs.
19544 2021-05-28  Richard Biener  <rguenther@suse.de>
19546         PR ipa/100791
19547         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
19548         copy fntype from original call.
19550 2021-05-28  Martin Liska  <mliska@suse.cz>
19552         PR gcov-profile/100751
19553         * doc/gcov.texi: Revert partially a hunk that was wrong.
19555 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
19557         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
19558         Defined.
19559         (HAVE_sync_compare_and_swaphi): Likewise.
19560         (HAVE_sync_compare_and_swapsi): Likewise.
19562 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
19564         PR middle-end/99928
19565         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
19567 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
19569         * gimplify.c (gimplify_omp_affinity): New.
19570         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
19571         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
19572         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
19573         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
19574         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
19576 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
19577             Richard Biener   <rguenther@suse.de>
19579         * match.pd <popcount & / + pattern matching>:
19580         When generating popcount directly fails, try doing it in two halves.
19582 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19584         * Makefile.in (generated_files): Add gimple-match.c and
19585         generic-match.c
19587 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19589         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
19591 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19593         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
19595 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
19597         PR tree-optimization/99398
19598         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
19599         where the fed operands are CTOR/CST and propagated through
19600         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
19601         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
19602         function.
19603         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
19604         declare.
19606 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
19608         * config/i386/mmx.md (addv2sf3): Do not call
19609         ix86_fixup_binary_operands_no_copy.
19610         (subv2sf3): Ditto.
19611         (mulv2sf3): Ditto.
19612         (<smaxmin:code>v2sf3): Ditto.
19613         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
19614         (<plusminus:insn><VI_32:mode>3): Remove expander.
19615         (<plusminus:insn><VI_32:mode>3): Rename from
19616         "*<plusminus:insn><VI_32:mode>3".
19617         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
19618         (mulv2hi3): Remove expander.
19619         (mulv2hi3): Rename from *mulv2hi3.
19620         (<s>mulv2hi3_highpart): Remove expander.
19621         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
19622         (<smaxmin:code><MMXMODE14:mode>3): Rename from
19623         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
19624         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
19625         (SMAXMIN_MMXMODEI): Remove mode iterator.
19626         (<smaxmin:code>v4hi3): New expander.
19627         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
19628         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
19629         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
19630         (SMAXMIN_VI_32): Remove mode iterator.
19631         (<umaxmin:code><MMXMODE24:mode>3): Rename from
19632         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
19633         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
19634         (UMAXMIN_MMXMODEI): Remove mode iterator.
19635         (<umaxmin:code>v8qi3): New expander.
19636         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
19637         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
19638         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
19639         (UMAXMIN_VI_32): Remove mode iterator.
19640         (<any_shift:insn>v2hi3): Remove expander.
19641         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
19642         (<any_logic:code><MMXMODEI:mode>3): Do not call
19643         ix86_fixup_binary_operands_no_copy.
19644         (<any_logic:code><VI_32:mode>3): Remove expander.
19645         (<any_logic:code><VI_32:mode>3): Rename from
19646         "*<any_logic:code><VI_32:mode>3".
19647         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
19648         * config/i386/sse.md (div<VF2:mode>3): Do not call
19649         ix86_fixup_binary_operands_no_copy.
19650         (div<VF1:mode>3): Ditto.
19651         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
19652         (smulhrsv4hi3): Ditto.
19653         (smulhrsv2hi3): Ditto.
19655 2021-05-27  Martin Sebor  <msebor@redhat.com>
19657         * ggc.h (gt_ggc_mx): Add overloads for all integers.
19658         (gt_pch_nx):  Same.
19659         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
19660         integers.
19661         (hash_map::operator==): New function.
19663 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
19665         PR target/100637
19666         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
19667         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
19668         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
19669         (*xop_maskcmp<VI_32:mode>3): Ditto.
19670         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
19671         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
19673 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
19675         PR target/100767
19676         * config/arm/arm.c (arm_configure_build_target): Remove parameter
19677         opts_set, directly check opts parameters for being non-null.
19678         (arm_option_restore): Update call to arm_configure_build_target.
19679         (arm_option_override): Likewise.
19680         (arm_can_inline_p): Likewise.
19681         (arm_valid_target_attribute_tree): Likewise.
19682         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
19683         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
19684         prototype.
19686 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
19688         * vr-values.c (simplify_conversion_using_ranges): Use
19689         get_range_query instead of get_global_range_query.
19691 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
19693         * gimple-range.cc (get_range_global): Move to value-query.cc.
19694         (gimple_range_global): Same.
19695         (get_global_range_query): Same.
19696         (global_range_query::range_of_expr): Same.
19697         * gimple-range.h (class global_range_query): Move to
19698         value-query.h.
19699         (gimple_range_global): Same.
19700         * tree-ssanames.c (get_range_info): Move to value-query.cc.
19701         (get_ptr_nonnull): Same.
19702         * tree-ssanames.h (get_range_info): Remove.
19703         (get_ptr_nonnull): Remove.
19704         * value-query.cc (get_ssa_name_range_info): Move from
19705         tree-ssanames.c.
19706         (get_ssa_name_ptr_info_nonnull): Same.
19707         (get_range_global): Move from gimple-range.cc.
19708         (gimple_range_global): Same.
19709         (get_global_range_query): Same.
19710         (global_range_query::range_of_expr): Same.
19711         * value-query.h (class global_range_query): Move from
19712         gimple-range.h.
19713         (gimple_range_global): Same.
19715 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
19717         PR target/100637
19718         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
19719         (uavgv2hi3_ceil): Ditto.
19721 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
19723         PR c/100653
19724         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
19726 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
19728         * tree-ssanames.c (get_range_info): Merge both copies of
19729         get_range_info into one that works with irange.
19730         * tree-ssanames.h (get_range_info): Remove version that works on
19731         wide_ints.
19733 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
19735         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
19736         (expand_builtin_strnlen): Same.
19737         (determine_block_size): Same.
19738         * fold-const.c (expr_not_equal_to): Same.
19739         * gimple-fold.c (size_must_be_zero_p): Same.
19740         * gimple-match-head.c: Include gimple-range.h.
19741         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
19742         * gimple-ssa-warn-restrict.c
19743         (builtin_memref::extend_offset_range): Same.
19744         * graphite-sese-to-poly.c (add_param_constraints): Same.
19745         * internal-fn.c (get_min_precision): Same.
19746         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
19747         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
19748         * match.pd: Same.
19749         * tree-data-ref.c (split_constant_offset): Same.
19750         (dr_step_indicator): Same.
19751         * tree-dfa.c (get_ref_base_and_extent): Same.
19752         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
19753         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
19754         (determine_value_range): Same.
19755         (record_nonwrapping_iv): Same.
19756         (infer_loop_bounds_from_signedness): Same.
19757         (scev_var_range_cant_overflow): Same.
19758         * tree-ssa-phiopt.c (two_value_replacement): Same.
19759         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
19760         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
19761         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
19762         (get_range): Same.
19763         (dump_strlen_info): Same.
19764         (set_strlen_range): Same.
19765         (maybe_diag_stxncpy_trunc): Same.
19766         (get_len_or_size): Same.
19767         (handle_integral_assign): Same.
19768         * tree-ssa-structalias.c (find_what_p_points_to): Same.
19769         * tree-ssa-uninit.c (find_var_cmp_const): Same.
19770         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
19771         * tree-vect-patterns.c (vect_get_range_info): Same.
19772         (vect_recog_divmod_pattern): Same.
19773         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
19774         (register_edge_assert_for_2): Same.
19775         (determine_value_range_1): Same.
19776         * tree.c (get_range_pos_neg): Same.
19777         * vr-values.c (vr_values::get_lattice_entry): Same.
19778         (vr_values::update_value_range): Same.
19779         (simplify_conversion_using_ranges): Same.
19781 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
19783         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
19784           get_range_query instead of query argument.
19785         (pass_walloca::execute): Enable and disable global ranger.
19787 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
19789         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
19790         enable_ranger.
19791         (rvrp_folder::~rvrp_folder): Call disable_ranger.
19792         (hybrid_folder::hybrid_folder): Call enable_ranger.
19793         (hybrid_folder::~hybrid_folder): Call disable_ranger.
19795 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
19797         * function.c (allocate_struct_function): Set cfun->x_range_query.
19798         * function.h (struct function): Declare x_range_query.
19799         (get_range_query): New.
19800         (get_global_range_query): New.
19801         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
19802         Remove call to safe_grow_cleared.
19803         * gimple-range.cc (get_range_global): New.
19804         (gimple_range_global): Move from gimple-range.h.
19805         (get_global_range_query): New.
19806         (global_range_query::range_of_expr): New.
19807         (enable_ranger): New.
19808         (disable_ranger): New.
19809         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
19810         (class global_range_query): New.
19811         (enable_ranger): New.
19812         (disable_ranger): New.
19813         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
19814         dump_all_value_ranges to dump.
19815         * tree-vrp.c (vrp_prop::finalize): Same.
19816         * value-query.cc (range_query::dump): New.
19817         * value-query.h (range_query::dump): New.
19818         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
19819         (vr_values::dump): ...this.
19820         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
19821         dump and make virtual.
19823 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
19825         * config/i386/i386.c (ix86_autovectorize_vector_modes):
19826         Add V4QImode and V16QImode for TARGET_SSE2.
19827         * doc/sourcebuild.texi (Vector-specific attributes):
19828         Add vect64 and vect32 description.
19830 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19832         * gimple-range-gori.cc (range_def_chain::register_dependency):
19833         Resize m_def_chain when needed.
19835 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
19837         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
19838         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
19839         * config/arm/vec-common.md: .. here. Add support for MVE.
19841 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
19843         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
19844         register keywords.
19845         * config/microblaze/microblaze.c (microblaze_legitimize_address,
19846         call_internal1,
19847         microblaze_option_override, print_operand): Likewise.
19848         * config/microblaze/microblaze.md (call_internal_plt,
19849         call_value_intern_plt, call_value_intern): Likewise.
19850         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
19851         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
19852         call_value_multiple_internal1): Likewise.
19853         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
19855 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19857         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
19858         arc_ccfsm_advance, symbolic_reference_mentioned_p,
19859         arc_raw_symbolic_reference_mentioned_p): Remove register
19860         keyword.
19862 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
19864         PR libgomp/100573
19865         * omp-low.c: Include omp-offload.h.
19866         (create_omp_child_function): If current_function_decl has
19867         "omp declare target" attribute and is_gimple_omp_offloaded,
19868         remove that attribute from the copy of attribute list and
19869         add "omp target entrypoint" attribute instead.
19870         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
19871         variables for offloading if in omp_maybe_offloaded_ctx.
19872         * omp-offload.c (pass_omp_target_link::execute): Nullify second
19873         argument to GOMP_target_data_ext in offloaded code.
19875 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
19877         * config/csky/csky.c (csky_can_change_mode_class): Delete.
19878         For csky, HF/SF mode use the low bits of VREGS.
19880 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
19882         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
19883         DECL which is a reference for OMP.
19885 2021-05-26  Martin Liska  <mliska@suse.cz>
19887         PR gcov-profile/100751
19888         * doc/gcov.texi: Document that __gcov_dump can be called just
19889         once and that __gcov_reset resets run-time counters.
19891 2021-05-26  Martin Liska  <mliska@suse.cz>
19893         * doc/install.texi: Port relevant part from install-old.texi
19894         and re-generate list of CPUs and systems.
19896 2021-05-26  Martin Liska  <mliska@suse.cz>
19898         * Makefile.in: Remove it.
19899         * doc/include/fdl.texi: Update next/previous chapters.
19900         * doc/install.texi: Likewise.
19901         * doc/install-old.texi: Removed.
19903 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
19905         * config/csky/csky.c (ck810_legitimate_index_p): Support
19906         "base + index" with DF mode.
19907         * config/csky/constraints.md ("Y"): New constraint for memory operands
19908         without index register.
19909         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
19910         when mov between memory and general registers, and lower their priority.
19911         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
19913 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
19915         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
19917 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
19919         * config/csky/csky.md (untyped_call): Emit clobber for return
19920         registers to mark them used.
19922 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
19924         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
19926 2021-05-26  Andrew Pinski  <apinski@marvell.com>
19928         * match.pd (x < 0 ? ~y : y): New patterns.
19930 2021-05-26  Andrew Pinski  <apinski@marvell.com>
19932         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
19933         A?POW2:0 and A?0:POW2.
19935 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
19937         * gimple-range-gori.cc (class logical_stmt_cache): Delete
19938         (logical_stmt_cache::logical_stmt_cache ): Delete.
19939         (logical_stmt_cache::~logical_stmt_cache): Delete.
19940         (logical_stmt_cache::cache_entry::dump): Delete.
19941         (logical_stmt_cache::get_range): Delete.
19942         (logical_stmt_cache::cached_name ): Delete.
19943         (logical_stmt_cache::same_cached_name): Delete.
19944         (logical_stmt_cache::cacheable_p): Delete.
19945         (logical_stmt_cache::slot_diagnostics ): Delete.
19946         (logical_stmt_cache::dump): Delete.
19947         (gori_compute_cache::gori_compute_cache): Delete.
19948         (gori_compute_cache::~gori_compute_cache): Delete.
19949         (gori_compute_cache::compute_operand_range): Delete.
19950         (gori_compute_cache::cache_stmt): Delete.
19951         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
19952         virtual.
19953         (class gori_compute_cache): Delete.
19955 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
19957         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
19958         intead of m_cache.
19959         (fold_using_range::range_of_address): Adjust.
19960         (fold_using_range::range_of_phi): Adjust.
19961         * gimple-range.h (class fur_source): Adjust.
19962         (fur_source::fur_source): Adjust.
19964 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
19966         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
19967         from expr_range_in_bb and adjust.
19968         (gori_compute::compute_name_range_op): Adjust.
19969         (gori_compute::optimize_logical_operands): Adjust.
19970         (gori_compute::compute_logical_operands_in_chain): Adjust.
19971         (gori_compute::compute_operand1_range): Adjust.
19972         (gori_compute::compute_operand2_range): Adjust.
19973         (ori_compute_cache::cache_stmt): Adjust.
19974         * gimple-range-gori.h (gori_compute): Rename prototype.
19976 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
19978         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
19979         checked only after range_of_stmt, not range_on_entry.
19980         (gimple_ranger::range_on_entry): Check for non-null in any
19981         predecessor block, if it is not already non-null.
19982         (gimple_ranger::range_on_exit): DOnt check for non-null after
19983         range on entry call.
19984         (gimple_ranger::dump_bb): New.  Split from dump.
19985         (gimple_ranger::dump): Adjust.
19986         * gimple-range.h (class gimple_ranger): Adjust.
19988 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
19990         * gimple-range-cache.cc (struct range_timestamp): Delete.
19991         (class temporal_cache): Adjust.
19992         (temporal_cache::get_timestamp): Delete.
19993         (temporal_cache::set_dependency): Delete.
19994         (temporal_cache::temporal_value): Adjust.
19995         (temporal_cache::current_p): Take dependencies as params.
19996         (temporal_cache::set_timestamp): Adjust.
19997         (temporal_cache::set_always_current): Adjust.
19998         (ranger_cache::get_non_stale_global_range): Adjust.
19999         (ranger_cache::register_dependency): Delete.
20000         * gimple-range-cache.h (class range_cache): Adjust.
20002 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20004         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
20005         bitmap obstack.
20006         (range_def_chain::~range_def_chain): Dispose of obstack rather than
20007         each individual bitmap.
20008         (range_def_chain::set_import): New.
20009         (range_def_chain::get_imports): New.
20010         (range_def_chain::chain_import_p): New.
20011         (range_def_chain::register_dependency): Rename from build_def_chain
20012         and set imports.
20013         (range_def_chain::def_chain_in_bitmap_p): New.
20014         (range_def_chain::add_def_chain_to_bitmap): New.
20015         (range_def_chain::has_def_chain): Just check first depenedence.
20016         (range_def_chain::get_def_chain): Process imports, use generic
20017         register_dependency routine.
20018         (range_def_chain::dump): New.
20019         (gori_map::gori_map): Allocate import list.
20020         (gori_map::~gori_map): Release imports.
20021         (gori_map::exports): Check for past allocated block size.
20022         (gori_map::imports): New.
20023         (gori_map::def_chain_in_export_p): Delete.
20024         (gori_map::is_import_p): New.
20025         (gori_map::maybe_add_gori): Handle imports.
20026         (gori_map::dump): Adjust output, add imports.
20027         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
20028         (gori_export_iterator::gori_export_iterator): New.
20029         (gori_export_iterator::next): New.
20030         (gori_export_iterator::get_name): New.
20031         * gimple-range-gori.h (range_def_chain): Add imports and direct
20032         dependecies via struct rdc.
20033         (range_def_chain::depend1): New.
20034         (range_def_chain::depend2): New.
20035         (class gori_map): Adjust.
20036         (FOR_EACH_GORI_IMPORT_NAME): New.
20037         (FOR_EACH_GORI_EXPORT_NAME): New.
20038         (class gori_export_iterator): New.
20040 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20042         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
20043         export cache filling to here.
20044         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
20046 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20048         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
20049         (gori_map): Move to gimple-range-gori.h.
20050         (gori_compute::gori_compute): Adjust.
20051         (gori_compute::~gori_compute): Delete.
20052         (gori_compute::compute_operand_range_switch): Adjust.
20053         (gori_compute::compute_operand_range): Adjust.
20054         (gori_compute::compute_logical_operands): Adjust.
20055         (gori_compute::has_edge_range_p ): Adjust.
20056         (gori_compute::set_range_invariant): Delete.
20057         (gori_compute::dump): Adjust.
20058         (gori_compute::outgoing_edge_range_p): Adjust.
20059         * gimple-range-gori.h (class range_def_chain): Relocate here.
20060         (class gori_map): Relocate here.
20061         (class gori_compute): Inherit from gori_map, and adjust.
20063 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
20065         * value-range.cc (range_tests_legacy): Use
20066         build_nonstandard_integer_type instead of int and short.
20068 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20070         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
20071         when really creating an initialization statement for it.
20073 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20075         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
20077 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
20079         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
20081 2021-05-25  Martin Liska  <mliska@suse.cz>
20083         PR tree-optimization/92860
20084         PR target/99592
20085         * optc-save-gen.awk: Remove exceptions.
20087 2021-05-25  Martin Liska  <mliska@suse.cz>
20089         * asan.h (sanitize_coverage_p): New function.
20090         * doc/extend.texi: Document it.
20091         * fold-const.c (fold_range_test): Use sanitize_flags_p
20092         instead of flag_sanitize_coverage.
20093         (fold_truth_andor): Likewise.
20094         * sancov.c: Likewise.
20095         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20096         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
20097         -fsanitize-coverage when inlining.
20099 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
20101         * config/csky/csky-modes.def : Fix copyright.
20103 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
20105         * config/csky/csky-modes.def : Amend copyright.
20106         * config/csky/csky_insn_fpuv2.md : Likewise.
20107         * config/csky/csky_insn_fpuv3.md : Likewise.
20109 2021-05-25  Richard Biener  <rguenther@suse.de>
20111         PR middle-end/100727
20112         * calls.c (initialize_argument_information): Explicitely test
20113         for WITH_SIZE_EXPR.
20114         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
20116 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20118         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
20119         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
20120         the signle definition. The signle definition may not work well
20121         at simplify_subreg_regno().
20122         (HARD_FRAME_POINTER_REGNUM): New.
20123         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
20124         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
20125         csky_initial_elimination_offset, csky_expand_prologue,
20126         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
20128 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20130         * config/csky/csky.c (csky_option_override):
20131         Init csky_arch_isa_features[] in advance, so TARGET_DSP
20132         and TARGET_DIV can be set well.
20134 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20136         * config/csky/constraints.md ("l", "h"): Delete.
20137         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
20138         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
20139         * config/csky/csky.c (regno_reg_classm,
20140         csky_secondary_reload, csky_register_move_cost):
20141         Use HILO_REGS instead of LO_REGS and HI_REGS.
20143 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20145         * config/csky/constraints.md ("W"): New constriant for mem operand
20146         with base reg, index register.
20147         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
20148         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
20149         constraint.
20150         ("Dv"): New constraint for const double value that can be used at
20151         fmovi instruction.
20152         * config/csky/csky-modes.def (HFmode): New mode.
20153         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
20154         to "csky_valid_mem_constraint_operand" and support new constraint
20155         "W".
20156         (csky_get_movedouble_length): New.
20157         (fpuv3_output_move): New.
20158         (fpuv3_const_double): New.
20159         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
20160         (decompose_csky_address): Refine.
20161         (csky_print_operand): New "CONST_DOUBLE" operand.
20162         (csky_output_move): Support fpv3 instructions.
20163         (csky_get_movedouble_length): New.
20164         (fpuv3_output_move): New.
20165         (fpuv3_const_double): New.
20166         (csky_emit_compare): Cover float comparsion.
20167         (csky_emit_compare_float): Refine.
20168         (csky_vaild_fpuv2_mem_operand): Rename to
20169         "csky_valid_mem_constraint_operand" and support new constraint "W".
20170         (ck860_rtx_costs): New.
20171         (csky_rtx_costs): Add the cost calculation of CK860.
20172         (regno_reg_class): New vregs for fpuv3.
20173         (csky_dbx_regno): Likewise.
20174         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
20175         (csky_conditional_register_usage): Suporrot fpuv3.
20176         (csky_dwarf_register_span): Suporrot fpuv3.
20177         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
20178         (ck810_legitimate_index_p): Support fp16.
20179         * config/csky/csky.h (TARGET_TLS): ADD CK860.
20180         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
20181         (TARGET_SINGLE_FPU): Support fpuv3.
20182         (TARGET_SUPPORT_FPV3): New.
20183         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
20184         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
20185          REG_CLASS_CONTENTS): Support fpuv3.
20186         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
20187         (csky_movsf_fpv2): Likewise.
20188         (ck801_movsf): Likewise.
20189         (csky_movsf): Likewise.
20190         (movdf): Likewise.
20191         (csky_movdf_fpv2): Likewise.
20192         (ck801_movdf): Likewise.
20193         (csky_movdf): Likewise.
20194         (movsicc): Refine. Use "comparison_operatior" instead of
20195         "ordered_comparison_operatior".
20196         (addsicc): Likewise.
20197         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
20198         (call_value_internal_vh): New.
20199         * config/csky/csky_cores.def (CK860): New arch and cpu.
20200         (fpv3_hf): New.
20201         (fpv3_hsf): New.
20202         (fpv3_sdf): New.
20203         (fpv3): New.
20204         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
20205         into emit-patterns and match-patterns, remain the emit-patterns here,
20206         and move the match-patterns to csky_insn_fpuv2.md or
20207         csky_insn_fpuv3.md.
20208         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
20209         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
20210         isntructions.
20211         * config/csky/csky_isa.def (fcr): New.
20212         (fpv3_hi): New.
20213         (fpv3_hf): New.
20214         (fpv3_sf): New.
20215         (fpv3_df): New.
20216         (CK860): New definition for ck860.
20217         * config/csky/csky_tables.opt (ck860): New processors ck860,
20218         ck860f. And new arch ck860.
20219         (fpv3_hf): New.
20220         (fpv3_hsf): New.
20221         (fpv3_hdf): New.
20222         (fpv3): New.
20223         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
20224         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
20225         * config/csky/t-csky-elf: Support 860.
20226         * config/csky/t-csky-linux: Likewise.
20227         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
20229 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
20231         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
20232         add generation of logical-add and add-logical fusion pairs.
20233         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
20234         and powerpc mask.
20235         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
20236         logical-add and add-logical fusion by default.
20237         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
20238         -mpower10-fusion-add-logical options.
20239         * config/rs6000/fusion.md: Regenerate file.
20241 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
20243         * value-range.cc (irange::legacy_equal_p): Check type when
20244         comparing VR_VARYING types.
20245         (range_tests_legacy): Test comparing VARYING ranges of different
20246         sizes.
20248 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
20250         * config/aarch64/aarch64.c (neoversen1_tunings):
20251         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
20253 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
20255         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
20256         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
20257         PIC/PIE.
20259 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
20261         * config/arm/neon.md (vec_load_lanesxi<mode>)
20262         (vec_store_lanexoi<mode>): Move ...
20263         * config/arm/vec-common.md: here.
20265 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
20267         * config/arm/neon.md (vec_load_lanesoi<mode>)
20268         (vec_store_lanesoi<mode>): Move ...
20269         * config/arm/vec-common.md: here.
20271 2021-05-24  liuhongt  <hongtao.liu@intel.com>
20273         PR target/100660
20274         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
20275         stmt with GIMPLE_NOP when lhs doesn't exist.
20277 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
20279         PR target/100722
20280         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
20281         New instruction pattern.
20282         (*push<VI_32:mode>2): Ditto.
20283         (push splitter for SSE registers): New splitter.
20285 2021-05-23  Andrew Pinski  <apinski@marvell.com>
20287         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
20289 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
20291         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
20292         * config/rs6000/fusion.md: Regenerate file.
20294 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
20296         * config/rs6000/genfusion.pl (gen_addadd): New function.
20297         * config/rs6000/fusion.md: Regenerate file.
20298         * config/rs6000/rs6000-cpus.def: Add
20299         OPTION_MASK_P10_FUSION_2ADD to masks.
20300         * config/rs6000/rs6000.c (rs6000_option_override_internal):
20301         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
20302         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
20304 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
20306         PR middle-end/99928
20307         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
20308         * gimplify.c (enum gimplify_omp_var_data): Fix up
20309         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
20310         (omp_lastprivate_for_combined_outer_constructs): If combined target
20311         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
20312         GOVD_MAP | GOVD_SEEN.
20313         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
20314         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
20315         (gimplify_adjust_omp_clauses): For firstprivate clauses with
20316         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
20317         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
20318         let it be replaced by implicit map clause.
20320 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
20322         PR middle-end/99928
20323         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
20324         function.
20325         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
20326         (gimplify_omp_for): Likewise.
20328 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20330         PR middle-end/90115
20331         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
20332         'external' in blocks.
20334 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20336         PR middle-end/90115
20337         * flag-types.h (enum openacc_privatization): New.
20338         * params.opt (-param=openacc-privatization): New.
20339         * doc/invoke.texi (openacc-privatization): Document it.
20340         * omp-general.h (get_openacc_privatization_dump_flags): New
20341         function.
20342         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
20343         * omp-offload.c (execute_oacc_device_lower)
20344         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
20345         * target.def (goacc.adjust_private_decl): Add 'location_t'
20346         parameter.
20347         * doc/tm.texi: Regenerate.
20348         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
20349         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
20350         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
20351         Likewise.  Preserve it for...
20352         (nvptx_goacc_expand_var_decl): ... use here.
20354 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20356         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
20357         DejaGnu selector.
20359 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20361         PR middle-end/90115
20362         * omp-low.c (oacc_privatization_candidate_p): New function.
20363         (oacc_privatization_scan_clause_chain)
20364         (oacc_privatization_scan_decl_chain): Use it.  Also
20365         'gcc_checking_assert' that we're not seeing duplicates.
20367 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20369         PR middle-end/90115
20370         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
20371         work to be done.
20373 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20375         PR middle-end/90115
20376         * omp-offload.c (execute_oacc_device_lower): Explain.
20378 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20380         PR middle-end/90115
20381         * omp-offload.c (execute_oacc_device_lower)
20382         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
20383         case, too.
20384         * internal-fn.c (expand_UNIQUE): Don't expect
20385         'IFN_UNIQUE_OACC_PRIVATE'.
20387 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20389         PR middle-end/90115
20390         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
20392 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20394         PR middle-end/90115
20395         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
20396         (nvptx_goacc_expand_var_decl): Tighten.
20398 2021-05-21  Julian Brown  <julian@codesourcery.com>
20399             Chung-Lin Tang  <cltang@codesourcery.com>
20400             Thomas Schwinge  <thomas@codesourcery.com>
20402         PR middle-end/90115
20403         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
20404         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
20405         * doc/tm.texi: Regenerate.
20406         * expr.c (expand_expr_real_1): Expand decls using the
20407         expand_var_decl OpenACC hook if defined.
20408         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
20409         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
20410         * omp-low.c (omp_context): Add oacc_privatization_candidates
20411         field.
20412         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
20413         before fork.
20414         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
20415         private marker's gimple call arguments, and pass it to
20416         lower_oacc_reductions.
20417         (oacc_privatization_scan_clause_chain)
20418         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
20419         New functions.
20420         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
20421         * omp-offload.c (convert.h): Include.
20422         (oacc_loop_xform_head_tail): Treat private-variable markers like
20423         fork/join when transforming head/tail sequences.
20424         (struct var_decl_rewrite_info): Add struct.
20425         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
20426         (execute_oacc_device_lower): Support rewriting gang-private
20427         variables using target hook, and fix up addr_expr and var_decl
20428         nodes afterwards.
20429         * target.def (adjust_private_decl, expand_var_decl): New hooks.
20430         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
20431         Rename to...
20432         (gcn_goacc_adjust_private_decl): ...this.
20433         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
20434         Rename to...
20435         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
20436         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
20437         definition using gcn_goacc_adjust_gangprivate_decl...
20438         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
20439         gcn_goacc_adjust_private_decl.
20440         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
20441         (gang_private_shared_size): New global variable.
20442         (gang_private_shared_align): Likewise.
20443         (gang_private_shared_sym): Likewise.
20444         (gang_private_shared_hmap): Likewise.
20445         (nvptx_option_override): Initialize these.
20446         (nvptx_file_end): Output gang_private_shared_sym.
20447         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
20448         New functions.
20449         (nvptx_set_current_function): Clear gang_private_shared_hmap.
20450         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
20451         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
20453 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
20455         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
20457 2021-05-21  Richard Biener  <rguenther@suse.de>
20458             H.J. Lu  <hjl.tools@gmail.com>
20460         PR middle-end/90773
20461         * expr.c (expand_constructor): Elide expand_constructor if
20462         move by pieces is preferred.
20464 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20466         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
20467         Take a flag and mode value as arguments.
20468         (aarch64_modifies_global_state_p): Likewise.
20469         (aarch64_reads_global_state_p): Likewise.
20470         (aarch64_could_trap_p): Likewise.
20471         (aarch64_get_attributes): Likewise.
20472         (aarch64_init_simd_builtins): Adjust callsite of above.
20473         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
20474         function attributes to apply to builtins.
20475         (aarch64_init_crc32_builtins): Likewise.
20476         (aarch64_init_builtin_rsqrt): Likewise.
20478 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
20480         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
20481         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
20482         (gen_2logical): Use new fusion types.
20483         * config/rs6000/fusion.md: Regenerate.
20485 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
20487         PR target/100637
20488         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
20489         Handle V4QI and V2HI modes.
20490         (ix86_expand_sse_movcc): Ditto.
20491         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
20492         New instruction pattern.
20493         (*eq<VI_32:mode>3): Ditto.
20494         (*gt<VI_32:mode>3): Ditto.
20495         (*xop_pcmov_<VI_32:mode>): Ditto.
20496         (mmx_pblendvb32): Ditto.
20497         (mmx_pblendvb64): Rename from mmx_pblendvb.
20498         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
20499         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
20500         (vcond<VI_32:mode><VI_32:mode>): Ditto.
20501         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
20502         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
20504 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
20506         PR tree-optimization/94589
20507         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
20508         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
20509         not the same as cmp3) treat <= the same as < and >= the same as >.
20510         Don't require that cond2_phi_edge is true edge, instead take
20511         false/true edges into account based on cmp1/cmp2 comparison kinds.
20513 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
20515         PR target/100637
20516         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
20517         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
20518         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
20519         using SMAXMIN_MMXMODEI mode iterator.
20520         (*<smaxmin:code>v4qi3): New insn pattern.
20521         (*<smaxmin:code>v2hi3): Ditto.
20522         (SMAXMIN_VI_32): New mode iterator.
20523         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
20524         (UMAXMIN_MMXMODEI): New mode iterator.
20525         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
20526         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
20527         using UMAXMIN_MMXMODEI mode iterator.
20528         (*<umaxmin:code>v4qi3): New insn pattern.
20529         (*<umaxmin:code>v2hi3): Ditto.
20530         (UMAXMIN_VI_32): New mode iterator.
20531         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
20532         (abs<VI_32:mode>2): New insn pattern.
20533         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
20534         * config/i386/sse.md: ... here.
20536 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
20537             David Edelsohn  <dje.gcc@gmail.com>
20539         * collect2.c (scan_prog_file): Issue non-fatal warning for
20540         non-COFF files.
20542 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
20544         * doc/invoke.texi (-Wno-c++11-extensions)
20545         (-Wno-c++14-extensions, -Wno-c++17-extensions)
20546         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
20547         new options.
20549 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
20551         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
20552         * config/darwin.c (darwin_override_options): Likewise.
20553         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
20554         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
20555         (DWARF2_FRAME_REG_OUT): Likewise.
20556         * config/mips/mips.c (mips_output_filename): Likewise.
20557         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
20558         Likewise.
20559         (rs6000_dbx_register_number): Likewise.
20560         * dbxout.c: Include flags.h.
20561         * dwarf2cfi.c (cfi_label_required_p): Likewise.
20562         (dwarf2out_do_frame): Likewise.
20563         * except.c: Include flags.h.
20564         * final.c (dwarf2_debug_info_emitted_p): Likewise.
20565         (final_scan_insn_1): Likewise.
20566         * flags.h (dwarf_debuginfo_p): New function declaration.
20567         * opts.c (dwarf_debuginfo_p): New function definition.
20568         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
20569         * toplev.c (process_options): Likewise.
20571 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
20573         * common.opt: Change type to support bitmasks.
20574         * flag-types.h (enum debug_info_type): Rename enumerator constants.
20575         (NO_DEBUG): New bitmask.
20576         (DBX_DEBUG): Likewise.
20577         (DWARF2_DEBUG): Likewise.
20578         (XCOFF_DEBUG): Likewise.
20579         (VMS_DEBUG): Likewise.
20580         (VMS_AND_DWARF2_DEBUG): Likewise.
20581         * flags.h (debug_set_to_format): New function declaration.
20582         (debug_set_count): Likewise.
20583         (debug_set_names): Likewise.
20584         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
20585         (debug_set_to_format): New function definition.
20586         (debug_set_count): Likewise.
20587         (debug_set_names): Likewise.
20588         (set_debug_level): Update access to debug_type_names.
20589         * toplev.c: Likewise.
20591 2021-05-20  Martin Sebor  <msebor@redhat.com>
20593         PR middle-end/100684
20594         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
20596 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
20598         PR target/100701
20599         * config/i386/i386.md (isa): Remove x64_bmi.
20600         (enabled): Remove x64_bmi.
20601         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
20602         Remove general register alternative.
20603         (*andnot<VI_32:mode>3): Ditto.
20604         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
20605         (*<any_logic:code><VI_32:mode>3): Ditto.
20607 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
20609         * config/arm/arm.c: Include head files tree-vectorizer.h and
20610         cfgloop.h.
20612 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
20614         PR target/100637
20615         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
20616         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
20617         (<s>mulv4hi3_highpart): New expander.
20618         (*<s>mulv2hi3_highpart): New insn pattern.
20619         (<s>mulv2hi3_higpart): New expander.
20620         (*<any_shift:insn>v2hi3): New insn pattern.
20621         (<any_shift:insn>v2hi3): New expander.
20622         * config/i386/sse.md (smulhrsv2hi3): New expander.
20623         (*smulhrsv2hi3): New insn pattern.
20625 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
20627         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
20628         parameter.
20629         * params.opt (vect-inner-loop-cost-factor): New.
20630         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
20631         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
20632         tree-vectorizer.h and its required ones.
20633         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
20634         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
20635         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
20636         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
20637         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
20638         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
20639         Likewise.
20640         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
20641         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
20642         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
20644 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
20645             Torbjörn Svensson  <torbjorn.svensson@st.com>
20647         PR c/42579
20648         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
20650 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
20652         PR middle-end/99928
20653         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
20654         explicit linear clause when combined with target, make it map(tofrom:)
20655         instead of no clause or firstprivate.
20657 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
20659         PR tree-optimization/94589
20660         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
20661         of integral conversions.
20663 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
20665         * gimple-range.cc (fur_source::get_operand): New.
20666         (gimple_range_fold): Delete.
20667         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
20668         (fold_using_range::range_of_range_op): Move from gimple_ranger.
20669         (fold_using_range::range_of_address): Ditto.
20670         (fold_using_range::range_of_phi): Ditto.
20671         (fold_using_range::range_of_call): Ditto.
20672         (fold_using_range::range_of_builtin_ubsan_call): Move from
20673         range_of_builtin_ubsan_call.
20674         (fold_using_range::range_of_builtin_call): Move from
20675         range_of_builtin_call.
20676         (gimple_ranger::range_of_builtin_call): Delete.
20677         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
20678         (gimple_ranger::fold_range_internal): New.
20679         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
20680         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
20681         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
20682         * gimple-range.h (gimple_ranger): Remove various range_of routines.
20683         (class fur_source): New.
20684         (class fold_using_range): New.
20685         (fur_source::fur_source): New.
20686         (fold_range): New.
20687         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
20688         instead of range_of_builtin_call.
20690 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
20692         * doc/cpp.texi (Common Predefined Macros): Update documentation
20693         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
20695 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
20697         PR target/100333
20698         * config/arm/arm.md (nonsecure_call_internal): Always ensure
20699         callee's address is in a register.
20701 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
20703         * common/config/riscv/riscv-common.c
20704         (riscv_subset_list::parsing_subset_version): Properly parse the letter
20705         'p' in '-march'.
20706         (riscv_subset_list::parse_std_ext,
20707          riscv_subset_list::parse_multiletter_ext): To handle errors generated
20708         in riscv_subset_list::parsing_subset_version.
20710 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
20712         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
20713         type attribute in patterns generating XTN(2).
20715 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
20717         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
20718         Remove as duplicate of...
20719         (aarch64_xtn<mode>): This.
20720         (aarch64_xtn2<mode>_le): Move position in file.
20721         (aarch64_xtn2<mode>_be): Move position in file.
20722         (aarch64_xtn2<mode>): Move position in file.
20723         (vec_pack_trunc_<mode>): Define as an expander.
20725 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
20727         * config/aarch64/aarch64-simd-builtins.def: Split builtin
20728         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
20729         separate scalar and vector generators.
20730         * config/aarch64/aarch64-simd.md
20731         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
20732         split into...
20733         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
20734         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
20735         * config/aarch64/iterators.md: Define SD_HSDI iterator.
20737 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
20739         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
20740         of UNSPEC_SQXTUN2.
20741         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
20743 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
20745         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
20746         Implement as an expand emitting a big/little endian
20747         instruction pattern.
20748         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
20749         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
20751 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
20753         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
20754         Implement as an expand emitting a big/little endian
20755         instruction pattern.
20756         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
20757         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
20758         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
20759         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
20761 2021-05-19  Richard Biener  <rguenther@suse.de>
20763         PR middle-end/100672
20764         * fold-const.c (fold_negate_expr_1): Use element_precision.
20765         (negate_expr_p): Likewise.
20767 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
20769         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
20770         (pred_load): New int attribute.
20771         * config/aarch64/aarch64-sve.md
20772         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
20773         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
20774         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
20775         code_for_aarch64_load.
20777 2021-05-19  Richard Biener  <rguenther@suse.de>
20779         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
20780         sure TARGET_MEM_REF bases are expanded as memory.
20781         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
20782         Do not mark TARGET_MEM_REF bases addressable.
20783         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
20784         TARGET_MEM_REF bases as never rewritable.
20785         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
20786         walk TARGET_MEM_REF bases as address-takens.
20787         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
20789 2021-05-19  Richard Biener  <rguenther@suse.de>
20791         * builtins.c (get_object_alignment_1): Strip outer
20792         WITH_SIZE_EXPR.
20793         * tree-dfa.c (get_ref_base_and_extent): Handle outer
20794         WITH_SIZE_EXPR for size processing and process the
20795         containing ref.
20796         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
20797         outer WITH_SIZE_EXPR.
20798         (ao_ref_base_alias_ptr_type): Likewise.
20799         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
20800         and handle that accordingly, stripping it for the
20801         core alias workers.
20802         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
20803         looking through it instead of returning NULL.
20805 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
20807         PR middle-end/100576
20808         * builtins.c (check_read_access): Convert bound to size_type_node if
20809         non-NULL.
20811 2021-05-19  Richard Biener  <rguenther@suse.de>
20813         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
20814         (verify_types_in_gimple_reference): ... here.  Sanitize.
20815         (verify_gimple_call): Verify references in LHS and arguments.
20816         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
20818 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
20820         * config/i386/i386.h (VALID_INT_MODE_P):
20821         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
20822         * config/i386/i386.md (isa): Add x64_bmi.
20823         (enabled): Handle x64_bmi.
20824         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
20825         Add alternative using 64bit general registers.
20826         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
20828 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
20830         PR middle-end/99928
20831         * tree.h (OMP_MASTER_COMBINED): Define.
20832         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
20833         handling for outer combined/composite constructs to a loop.
20834         Handle lastprivate on combined target.
20835         (gimplify_expr): Formatting fix.
20837 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
20839         * passes.def: Add sink_code pass before store_merging.
20840         * tree-ssa-sink.c (pass_sink_code:clone): New.
20842 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
20844         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
20845         rs6000_special_adjust_field_align_p.
20846         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
20847         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
20848         Remove ABI warning.
20849         (rs6000_function_arg): Likewise.
20850         * config/rs6000/rs6000-protos.h
20851         (rs6000_special_adjust_field_align_p): Remove prototype.
20852         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
20853         Remove.
20854         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
20855         rs6000_special_adjust_field_align_p.
20857 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
20859         PR target/100637
20860         * config/i386/i386.h (VALID_SSE2_REG_MODE):
20861         Add V4QI and V2HI modes.
20862         (VALID_INT_MODE_P): Ditto.
20863         * config/i386/mmx.md (VI_32): New mode iterator.
20864         (mmxvecsize): Handle V4QI and V2HI.
20865         (Yv_Yw): Ditto.
20866         (mov<VI_32:mode>): New expander.
20867         (*mov<mode>_internal): New insn pattern.
20868         (movmisalign<VI_32:mode>): New expander.
20869         (neg<VI_32:mode>): New expander.
20870         (<plusminus:insn><VI_32:mode>3): New expander.
20871         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
20872         (mulv2hi3): New expander.
20873         (*mulv2hi3): New insn pattern.
20874         (one_cmpl<VI_32:mode>2): New expander.
20875         (*andnot<VI_32:mode>3): New insn pattern.
20876         (<any_logic:code><VI_32:mode>3): New expander.
20877         (*<any_logic:code><VI_32:mode>3): New insn pattern.
20879 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
20881         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
20882         Fix a mode mismatch with operand 1.
20884 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
20886         PR target/100626
20887         * config/i386/i386-expand.c (split_double_mode): Return
20888         temporary register when simplify_gen_subreg fails with
20889         the high half od the paradoxical subreg.
20891 2021-05-18  Richard Biener  <rguenther@suse.de>
20893         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
20894         and honor it when expanding.
20895         (expand_used_vars_for_block): Pass through forced_stack_var.
20896         (expand_used_vars): Likewise.
20897         (discover_nonconstant_array_refs_r): Set bits in
20898         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
20899         (avoid_type_punning_on_regs): Likewise.
20900         (discover_nonconstant_array_refs): Likewise.
20901         (pass_expand::execute): Create and pass down forced_stack_var
20902         bitmap.  For parameters and returns temporarily set
20903         TREE_ADDRESSABLE when expand_function_start.
20905 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
20907         * doc/sourcebuild.texi: Document 'dg-note'.
20909 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
20911         PR other/100598
20912         * configure: Regenerate.
20913         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
20915 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
20917         * gimple.h (is_gimple_omp_oacc): Tighten.
20918         * omp-low.c (check_omp_nesting_restrictions): Adjust.
20920 2021-05-18  Richard Biener  <rguenther@suse.de>
20922         * tree-ssa-operands.c (mark_address_taken): Simplify.
20924 2021-05-18  Martin Liska  <mliska@suse.cz>
20926         * config/gcn/mkoffload.c (STR): Redefine.
20927         * config/i386/intelmic-mkoffload.c (STR): Likewise.
20928         * config/nvptx/mkoffload.c (STR): Likewise.
20930 2021-05-18  Martin Liska  <mliska@suse.cz>
20932         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
20933         Use startswith function instead of strncmp.
20934         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
20935         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
20936         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
20937         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
20938         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
20939         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
20940         * config/arm/arm.c (arm_file_start): Likewise.
20941         (arm_valid_target_attribute_rec): Likewise.
20942         (thumb1_md_asm_adjust): Likewise.
20943         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
20944         * config/avr/avr.c (STR_PREFIX_P): Likewise.
20945         (avr_set_current_function): Likewise.
20946         (avr_handle_addr_attribute): Likewise.
20947         (avr_asm_output_aligned_decl_common): Likewise.
20948         (avr_asm_named_section): Likewise.
20949         (avr_section_type_flags): Likewise.
20950         (avr_asm_select_section): Likewise.
20951         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
20952         (c6x_section_type_flags): Likewise.
20953         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
20954         (darwin_objc_declare_unresolved_class_reference): Likewise.
20955         (darwin_objc_declare_class_definition): Likewise.
20956         * config/darwin.c (indirect_data): Likewise.
20957         (darwin_encode_section_info): Likewise.
20958         (darwin_objc2_section): Likewise.
20959         (darwin_objc1_section): Likewise.
20960         (machopic_select_section): Likewise.
20961         (darwin_globalize_label): Likewise.
20962         (darwin_label_is_anonymous_local_objc_name): Likewise.
20963         (darwin_asm_named_section): Likewise.
20964         (darwin_asm_output_dwarf_offset): Likewise.
20965         * config/frv/frv.c (frv_string_begins_with): Likewise.
20966         (frv_in_small_data_p): Likewise.
20967         * config/gcn/mkoffload.c (STR): Likewise.
20968         (main): Likewise.
20969         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
20970         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
20971         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
20972         (ix86_md_asm_adjust): Likewise.
20973         * config/i386/intelmic-mkoffload.c (STR): Likewise.
20974         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
20975         (i386_pe_file_end): Likewise.
20976         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
20977         (ia64_section_type_flags): Likewise.
20978         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
20979         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
20980         (mips16_stub_function_p): Likewise.
20981         (mips_function_rodata_section): Likewise.
20982         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
20983         (msp430_function_section): Likewise.
20984         (msp430_section_type_flags): Likewise.
20985         (msp430_expand_helper): Likewise.
20986         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
20987         (nios2_valid_target_attribute_rec): Likewise.
20988         * config/nvptx/mkoffload.c (process): Likewise.
20989         (STR): Likewise.
20990         * config/pa/som.h: Likewise.
20991         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
20992         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
20993         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
20994         (rs6000_inner_target_options): Likewise.
20995         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
20996         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
20997         * config/vax/vax.c (vax_output_int_move): Likewise.
20998         * config/vms/vms-ld.c (startswith): Likewise.
20999         (process_args): Likewise.
21000         (main): Likewise.
21001         * config/vms/vms.c: Likewise.
21003 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
21005         PR rtl-optimization/100590
21006         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
21007         they are NONJUMP_INSN_P.
21009 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
21011         PR c++/100580
21012         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
21013         DECL_ASSEMBLER_NAME on the fn_decl.
21015 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
21017         PR tree-optimization/94589
21018         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
21019         phi result used in (res & ~1) == 0 comparison as res >= 0 as
21020         res == 2 would be UB with -ffinite-math-only.
21022 2021-05-18  Martin Liska  <mliska@suse.cz>
21024         * Makefile.in: genversion.o should depend on DATESTAMP.
21026 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
21028         * config/arc/simdext.md (negv2si2): Remove round bracket.
21030 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
21032         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
21033         _Bool as macro expanding to _Bool.
21035 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
21037         PR c++/100281
21038         * tree.c (build_reference_type_for_mode)
21039         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
21040         is VOIDmode.
21041         (build_reference_type, build_pointer_type): Invoke
21042         build_*_type_for_mode with VOIDmode.
21044 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
21046         PR tree-optimization/100512
21047         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
21048         and non-zero pointer ranges as invariant.
21049         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
21050         processing from here.
21052 2021-05-17  Tom de Vries  <tdevries@suse.de>
21054         PR target/100497
21055         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
21056         * config/nvptx/nvptx.c (nvptx_output_barrier)
21057         (nvptx_output_atomic_insn): New function.
21058         (nvptx_print_operand): Add support for 'B'.
21059         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
21060         insns.
21062 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
21064         PR tree-optimization/100349
21065         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
21066           NULL.
21068 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
21070         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
21071         (host_detect_local_cpu): Use it.
21073 2021-05-17  Martin Liska  <mliska@suse.cz>
21075         * doc/invoke.texi: Add 2 missing dots.
21077 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
21079         PR bootstrap/100552
21080         * configure.ac: Replace pattern substitution with call to sed.
21081         * configure: Regenerate.
21083 2021-05-17  Richard Biener  <rguenther@suse.de>
21085         PR middle-end/100582
21086         * tree.c (array_at_struct_end_p): Get to the base of the
21087         reference before looking for the underlying decl.
21089 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
21091         * genoutput.c (validate_insn_alternatives) Make "wrong number of
21092         alternatives" message more specific, and remove assumption on where
21093         the problem is.
21095 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
21097         * config/arm/iterators.md (V16): New iterator.
21098         (VH_cvtto): New iterator.
21099         (v_cmp_result): Added V4HF and V8HF support.
21100         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
21101         (vcond<mode><mode>): Likewise.
21102         (vcond_mask_<mode><v_cmp_result>): Likewise.
21103         (vcond<VH_cvtto><mode>): New expander.
21105 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
21107         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
21108         prototype.
21109         * config/arm/arm.c (arm_expand_vector_compare): Add support for
21110         MVE.
21111         (arm_expand_vcond): Likewise.
21112         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
21113         VCMPEQQ_N_S, VCMPNEQ_N_S.
21114         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
21115         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
21116         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
21117         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
21118         (@mve_vpselq_<supf><mode>): Likewise.
21119         (@mve_vpselq_f<mode>"): Likewise.
21120         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
21121         and move to vec-common.md.
21122         (vec_cmpu<mode><mode>): Likewise.
21123         (vcond<mode><mode>): Likewise.
21124         (vcond<V_cvtto><mode>): Likewise.
21125         (vcondu<mode><v_cmp_result>): Likewise.
21126         (vcond_mask_<mode><v_cmp_result>): Likewise.
21127         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
21128         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
21129         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
21130         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
21131         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
21132         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
21133         from neon.md.
21134         (vec_cmpu<mode><mode>): Likewise.
21135         (vcond<mode><mode>): Likewise.
21136         (vcond<V_cvtto><mode>): Likewise.
21137         (vcondu<mode><v_cmp_result>): Likewise.
21138         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
21139         condition.
21141 2021-05-17  liuhongt  <hongtao.liu@intel.com>
21143         PR target/100549
21144         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
21145         gsi_insert_seq_before instead.
21147 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
21149         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
21150         (arm_sat_ok): ...this.
21152 2021-05-17  Martin Liska  <mliska@suse.cz>
21154         * lto-wrapper.c (merge_flto_options): Factor out a new function.
21155         (merge_and_complain): Use it.
21156         (run_gcc): Merge also linker command line -flto=foo argument
21157         with IL files.
21159 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
21161         * config/arm/arm.h (CPP_SPEC): Remove error message about
21162         -mlittle-endian/-mbig-endian conflict.
21164 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
21166         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21167         __ROP_PROTECT__ if -mrop-protect is selected.
21169 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
21171         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
21172         rop_hash_save_offset and rop_hash_size.
21173         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
21174         rop_hash_size and rop_hash_save_offset.
21175         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
21176         (rs6000_emit_prologue): Emit hashst[p] in prologue.
21177         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
21178         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
21179         UNSPEC_HASHCHK.
21180         (hashst): New define_insn.
21181         (hashchk): Likewise.
21183 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
21185         * config/rs6000/rs6000.c (rs6000_option_override_internal):
21186         Disable shrink wrap when inserting ROP-protect instructions.
21187         * config/rs6000/rs6000.opt (mrop-protect): New option.
21188         (mprivileged): Likewise.
21189         * doc/invoke.texi: Document mrop-protect and mprivileged.
21191 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
21193         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
21194         "Remove CC0".
21196 2021-05-15  Martin Jambor  <mjambor@suse.cz>
21198         Revert:
21199         2021-05-13  Martin Jambor  <mjambor@suse.cz>
21201         PR tree-optimization/100453
21202         * tree-sra.c (sra_modify_assign): All const base accesses do not
21203         need refreshing, not just those from decl_pool.
21204         (sra_modify_assign): Do not refresh into a const base decl.
21206 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
21208         PR rtl-optimization/100342
21209         * regcprop.c (copy_value): When copying a source reg in a wider
21210         mode than it has recorded for the value, adjust recorded destination
21211         mode too or punt if !REG_CAN_CHANGE_MODE_P.
21213 2021-05-14  Jason Merrill  <jason@redhat.com>
21215         * intl.h: Add comments.
21217 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21219         * config/aarch64/aarch64-simd.md
21220         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
21221         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
21222         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
21223         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
21224         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
21225         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
21226         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
21227         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
21228         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
21230 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21232         PR target/66791
21233         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
21234         boolean logic equivalent.
21235         (vtst_s16): Likewise.
21236         (vtst_s32): Likewise.
21237         (vtst_u8): Likewise.
21238         (vtst_u16): Likewise.
21239         (vtst_u32): Likewise.
21240         (vtst_p8): Likewise.
21241         (vtst_p16): Likewise.
21242         (vtstq_s8): Likewise.
21243         (vtstq_s16): Likewise.
21244         (vtstq_s32): Likewise.
21245         (vtstq_u8): Likewise.
21246         (vtstq_u16): Likewise.
21247         (vtstq_u32): Likewise.
21248         (vtstq_p8): Likewise.
21249         (vtstq_p16): Likewise.
21250         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
21251         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
21253 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21255         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
21256         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
21257         (aarch64_sqdmlsl2<mode>): Delete.
21258         (aarch64_sqdmlal2_lane<mode>): Merge this...
21259         (aarch64_sqdmlsl2_lane<mode>): ... And this...
21260         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
21261         (aarch64_sqdmlal2_laneq<mode>): Merge this...
21262         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
21263         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
21264         (aarch64_sqdmlal2_n<mode>): Merge this...
21265         (aarch64_sqdmlsl2_n<mode>): ... And this...
21266         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
21268 2021-05-13  Martin Sebor  <msebor@redhat.com>
21270         PR middle-end/100574
21271         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
21272         all null arguments.
21274 2021-05-13  Martin Sebor  <msebor@redhat.com>
21276         PR tree-optimization/93100
21277         PR middle-end/98583
21278         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
21279         don't modify referenced objects.
21281 2021-05-13  Martin Jambor  <mjambor@suse.cz>
21283         PR tree-optimization/100453
21284         * tree-sra.c (sra_modify_assign): All const base accesses do not
21285         need refreshing, not just those from decl_pool.
21286         (sra_modify_assign): Do not refresh into a const base decl.
21288 2021-05-13  Martin Liska  <mliska@suse.cz>
21290         * tree-ssa-dom.c: Remove m_simplifier.
21292 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
21294         PR target/100563
21295         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
21296         canonicalize DImode inequality comparisons against the
21297         maximum integral value.
21299 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
21301         PR tree-optimization/98856
21302         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
21303         Expect V2DI and V4DI arithmetic right shifts to be emulated.
21304         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
21305         caller.
21306         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
21307         expand_vec_perm_2perm_pblendv): New functions.
21308         (ix86_expand_vec_perm_const_1): Use them.
21309         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
21310         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
21311         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
21312         (ashrv4di3): New define_expand.
21313         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
21314         and !TARGET_AVX512VL expansion.
21316 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
21318         PR target/100581
21319         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
21320         sizes < 16 to a register when constructing vpcmov pattern.
21321         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
21323 2021-05-13  Martin Liska  <mliska@suse.cz>
21325         * gcov-io.c (gcov_write_block): Remove.
21326         (gcov_write_words): Likewise.
21327         (gcov_read_words): Re-implement using gcov_read_bytes.
21328         (gcov_allocate): Remove.
21329         (GCOV_BLOCK_SIZE): Likewise.
21330         (struct gcov_var): Remove most of the fields.
21331         (gcov_position): Implement with ftell.
21332         (gcov_rewrite): Remove setting of start and offset fields.
21333         (from_file): Re-format.
21334         (gcov_open): Remove setbuf call. It should not be needed.
21335         (gcov_close): Remove internal buffer handling.
21336         (gcov_magic): Use __builtin_bswap32.
21337         (gcov_write_counter): Use directly gcov_write_unsigned.
21338         (gcov_write_string): Use direct fwrite and do not round
21339         to 4 bytes.
21340         (gcov_seek): Use directly fseek.
21341         (gcov_write_tag): Use gcov_write_unsigned directly.
21342         (gcov_write_length): Likewise.
21343         (gcov_write_tag_length): Likewise.
21344         (gcov_read_bytes): Use directly fread.
21345         (gcov_read_unsigned): Use gcov_read_words.
21346         (gcov_read_counter): Likewise.
21347         (gcov_read_string): Use gcov_read_bytes.
21348         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
21349         that size is not in bytes, but words (4B).
21350         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
21351         (GCOV_TAG_ARCS_LENGTH): Likewise.
21352         (GCOV_TAG_ARCS_NUM): Likewise.
21353         (GCOV_TAG_COUNTER_LENGTH): Likewise.
21354         (GCOV_TAG_COUNTER_NUM): Likewise.
21355         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
21357 2021-05-13  liuhongt  <hongtao.liu@intel.com>
21359         PR target/94680
21360         * config/i386/sse.md (ssedoublevecmode): Add attribute for
21361         V64QI/V32HI/V16SI/V4DI.
21362         (ssehalfvecmode): Add attribute for V2DI/V2DF.
21363         (*vec_concatv4si_0): Extend to VI124_128.
21364         (*vec_concat<mode>_0): New pre-reload splitter.
21365         * config/i386/predicates.md (movq_parallel): New predicate.
21367 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
21369         * targhooks.c (default_zero_call_used_regs): Retry using
21370         successfully-zeroed registers as sources.
21372 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
21374         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
21376 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
21378         PR c/100521
21379         * gimple-range.cc (range_of_builtin_call): Skip out on
21380           processing __builtin_clz when varying.
21382 2021-05-12  Tom de Vries  <tdevries@suse.de>
21384         PR target/96005
21385         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
21386         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
21387         to ptx_version_option.
21388         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
21389         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
21390         (define_insn "nvptx_vote_ballot"): Use sync variant for
21391         TARGET_PTX_6_3.
21392         * config/nvptx/nvptx.opt (ptx_version): Add enum.
21393         (mptx): Add option.
21394         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
21396 2021-05-12  Richard Biener  <rguenther@suse.de>
21398         PR tree-optimization/100566
21399         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
21400         allow_back for all edge queries.
21402 2021-05-12  liuhongt  <hongtao.liu@intel.com>
21404         PR target/99908
21405         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
21406         splitters for pblendvb of NOT mask register.
21408 2021-05-12  Richard Biener  <rguenther@suse.de>
21410         PR tree-optimization/100519
21411         * tree-ssa-reassoc.c (can_associate_p): Split into...
21412         (can_associate_op_p): ... this
21413         (can_associate_type_p): ... and this.
21414         (is_reassociable_op): Call can_associate_op_p.
21415         (break_up_subtract_bb): Call the appropriate predicates.
21416         (reassociate_bb): Likewise.
21418 2021-05-12  Martin Liska  <mliska@suse.cz>
21420         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
21421         (run_gcc): Use -flto argument detection for merged
21422         fdecoded_options.
21424 2021-05-12  Martin Liska  <mliska@suse.cz>
21426         * lto-wrapper.c (print_lto_docs_link): New function.
21427         (run_gcc): Print warning about missing job server detection
21428         after we know NR of partitions. Do the same for -flto{,=1}.
21429         * opts.c (get_option_html_page): Support -flto option.
21431 2021-05-12  Martin Liska  <mliska@suse.cz>
21433         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
21434         return type.
21435         (append_option): Remove.
21436         (find_option): Rework to use the vector type.
21437         (remove_option): Remove.
21438         (merge_and_complain): Use vectors for cl_decoded_option data
21439         type arguments.
21440         (append_compiler_options): Likewise.
21441         (append_diag_options): Likewise.
21442         (append_linker_options): Likewise.
21443         (append_offload_options): Likewise.
21444         (compile_offload_image): Likewise.
21445         (compile_images_for_offload_targets): Likewise.
21446         (find_and_merge_options): Likewise.
21447         (run_gcc): Likewise.
21449 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21451         PR debug/100515
21452         * dwarf2out.c (dwarf2out_finish): Set
21453         have_multiple_function_sections with multi-range text_section.
21455 2021-05-12  Martin Liska  <mliska@suse.cz>
21457         PR bootstrap/100560
21458         * Makefile.in: Remove version.h from linker command line.
21460 2021-05-12  Richard Biener  <rguenther@suse.de>
21462         PR middle-end/100547
21463         * rtl.h (rtvec_alloc): Make argument size_t.
21464         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
21466 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
21468         PR middle-end/100508
21469         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
21470         type, don't reuse DECL_RTL if it has different mode, instead force
21471         creation of a new DEBUG_EXPR.
21473 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
21474             Marc Glisse  <marc.glisse@inria.fr>
21476         PR tree-optimization/94589
21477         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
21478         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
21480 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
21482         PR target/98218
21483         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
21484         * config/i386/mmx.md (MMXMODE124): New mode iterator.
21485         (V2FI): Ditto.
21486         (mmxintvecmode): New mode attribute.
21487         (mmxintvecmodelower): Ditto.
21488         (*mmx_maskcmpv2sf3_comm): New insn pattern.
21489         (*mmx_maskcmpv2sf3): Ditto.
21490         (vec_cmpv2sfv2si): New expander.
21491         (vcond<V2FI:mode>v2si): Ditto.
21492         (mmx_vlendvps): New insn pattern.
21493         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
21494         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
21495         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
21497 2021-05-11  Martin Sebor  <msebor@redhat.com>
21499         PR middle-end/21433
21500         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
21502 2021-05-11  Richard Biener  <rguenther@suse.de>
21504         * gimple-fold.c (gimple_fold_call): Do not call
21505         maybe_fold_reference on call arguments or the static chain.
21506         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
21507         inputs.
21509 2021-05-11  Martin Liska  <mliska@suse.cz>
21511         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
21512         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
21513         (DEF_HSAIL_SAT_BUILTIN): Likewise.
21514         (DEF_HSAIL_INTR_BUILTIN): Likewise.
21515         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
21516         * doc/frontends.texi: Remove BRIG.
21517         * doc/install.texi: Likewise.
21518         * doc/invoke.texi: Likewise.
21519         * doc/standards.texi: Likewise.
21520         * brig-builtins.def: Removed.
21521         * brig/ChangeLog: Removed.
21522         * brig/Make-lang.in: Removed.
21523         * brig/brig-builtins.h: Removed.
21524         * brig/brig-c.h: Removed.
21525         * brig/brig-lang.c: Removed.
21526         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
21527         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
21528         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
21529         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
21530         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
21531         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
21532         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
21533         * brig/brigfrontend/brig-comment-handler.cc: Removed.
21534         * brig/brigfrontend/brig-control-handler.cc: Removed.
21535         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
21536         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
21537         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
21538         * brig/brigfrontend/brig-function-handler.cc: Removed.
21539         * brig/brigfrontend/brig-function.cc: Removed.
21540         * brig/brigfrontend/brig-function.h: Removed.
21541         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
21542         * brig/brigfrontend/brig-label-handler.cc: Removed.
21543         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
21544         * brig/brigfrontend/brig-machine.c: Removed.
21545         * brig/brigfrontend/brig-machine.h: Removed.
21546         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
21547         * brig/brigfrontend/brig-module-handler.cc: Removed.
21548         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
21549         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
21550         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
21551         * brig/brigfrontend/brig-to-generic.cc: Removed.
21552         * brig/brigfrontend/brig-to-generic.h: Removed.
21553         * brig/brigfrontend/brig-util.cc: Removed.
21554         * brig/brigfrontend/brig-util.h: Removed.
21555         * brig/brigfrontend/brig-variable-handler.cc: Removed.
21556         * brig/brigfrontend/hsa-brig-format.h: Removed.
21557         * brig/brigfrontend/phsa.h: Removed.
21558         * brig/brigspec.c: Removed.
21559         * brig/config-lang.in: Removed.
21560         * brig/gccbrig.texi: Removed.
21561         * brig/lang-specs.h: Removed.
21562         * brig/lang.opt: Removed.
21564 2021-05-11  Richard Biener  <rguenther@suse.de>
21566         PR ipa/100513
21567         * ipa-param-manipulation.c
21568         (ipa_param_body_adjustments::modify_call_stmt): Avoid
21569         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
21570         via gimple_call_lhs_ptr.
21572 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
21574         PR target/99725
21575         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
21576         Avoid emitting CFA adjusts on the sp if we have the fp.
21578 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
21580         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
21581         (VMULD): New iterator.
21582         (VCOND): Handle V4HF and V8HF.
21583         (VCONQ): Fix entry for V2SF.
21584         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
21585         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
21586         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
21587         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
21588         Use a 128-bit vector mode for the indexed operand.  Use stype for
21589         the scheduling type.
21591 2021-05-11  Richard Biener  <rguenther@suse.de>
21593         * gimple-fold.c (maybe_fold_reference): Only return
21594         is_gimple_min_invariant values.
21596 2021-05-11  Richard Biener  <rguenther@suse.de>
21598         PR middle-end/100509
21599         * gimple-fold.c (fold_gimple_assign): Only call
21600         get_symbol_constant_value on register type symbols.
21602 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
21603             Joe Ramsay   <joe.ramsay@arm.com>
21605         PR target/100419
21606         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
21607         (__arm_vcmpneq): Remove duplicate definition.
21608         (__arm_vstrwq_scatter_offset_p): Likewise.
21609         (__arm_vmaxq_x): Likewise.
21610         (__arm_vmlsdavaq): Likewise.
21611         (__arm_vmlsdavaxq): Likewise.
21612         (__arm_vmlsdavq_p): Likewise.
21613         (__arm_vmlsdavxq_p): Likewise.
21614         (__arm_vrmlaldavhaq): Likewise.
21615         (__arm_vstrbq_p): Likewise.
21616         (__arm_vstrbq_scatter_offset): Likewise.
21617         (__arm_vstrbq_scatter_offset_p): Likewise.
21618         (__arm_vstrdq_scatter_offset): Likewise.
21619         (__arm_vstrdq_scatter_offset_p): Likewise.
21620         (__arm_vstrdq_scatter_shifted_offset): Likewise.
21621         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
21623 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
21625         PR middle-end/100471
21626         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
21627         is 0, bypass the reduction loop including
21628         GOMP_taskgroup_reduction_unregister call.
21630 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
21632         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
21633         costing_for_scalar.
21634         (rs6000_density_test): Early return if costing_for_scalar is true.
21635         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
21637 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
21639         * doc/tm.texi: Regenerated.
21640         * target.def (init_cost): Add new parameter costing_for_scalar.
21641         * targhooks.c (default_init_cost): Adjust for new parameter.
21642         * targhooks.h (default_init_cost): Likewise.
21643         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
21644         (vect_compute_single_scalar_iteration_cost): Likewise.
21645         (vect_analyze_loop_2): Likewise.
21646         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
21647         (vect_bb_vectorization_profitable_p): Likewise.
21648         * tree-vectorizer.h (init_cost): Likewise.
21649         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
21650         * config/i386/i386.c (ix86_init_cost): Likewise.
21651         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
21653 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
21655         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
21656         vect_nonmem and moved into...
21657         (struct rs6000_cost_data): ...here.
21658         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
21659         (rs6000_add_stmt_cost): Likewise.
21660         (rs6000_finish_cost): Likewise.
21662 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
21664         * range-op.cc (get_bool_state): Adjust head comment.
21665         (operator_not_equal::op1_range): Fix comment.
21666         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
21668 2021-05-10  Martin Sebor  <msebor@redhat.com>
21670         PR middle-end/100425
21671         PR middle-end/100510
21672         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
21673         (pass_walloca::xlimit_certain_p): ...to this.
21674         (pass_walloca::gate): Execute for any kind of handled warning.
21675         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
21676         warnings when xlimit_certain_p is set.
21678 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
21680         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
21681         Return ALTIVEC_REGS if that is best_class.
21682         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
21684 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
21686         * config/arm/arm.h (CPP_SPEC): Remove error message about
21687         -mfloat-abi.
21689 2021-05-10  Martin Jambor  <mjambor@suse.cz>
21691         * ipa-prop.h (IPA_NODE_REF): Removed.
21692         (IPA_NODE_REF_GET_CREATE): Likewise.
21693         (IPA_EDGE_REF): Likewise.
21694         (IPA_EDGE_REF_GET_CREATE): Likewise.
21695         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
21696         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
21697         use of ipa_node_params_sum.
21698         (ipcp_versionable_function_p): Likewise.
21699         (push_node_to_stack): Likewise.
21700         (pop_node_from_stack): Likewise.
21701         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
21702         direct use of ipa_node_params_sum.
21703         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
21704         ipa_node_params_sum.
21705         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
21706         ipa_edge_args_sum.
21707         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
21708         use of ipa_node_params_sum.
21709         (self_recursively_generated_p): Likewise.
21710         (propagate_scalar_across_jump_function): Likewise.
21711         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
21712         direct use of ipa_edge_args_sum, moved the lookup after the early
21713         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
21714         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
21715         direct uses of ipa_node_params_sum.
21716         (propagate_vr_across_jump_function): Likewise.
21717         (propagate_aggregate_lattice): Likewise.
21718         (propagate_aggs_across_jump_function): Likewise.
21719         (propagate_constants_across_call): Likewise, also replaced
21720         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
21721         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
21722         of ipa_node_params_sum.
21723         (estimate_local_effects): Likewise.
21724         (add_all_node_vals_to_toposort): Likewise.
21725         (propagate_constants_topo): Likewise.
21726         (ipcp_propagate_stage): Likewise.
21727         (ipcp_discover_new_direct_edges): Likewise.
21728         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
21729         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
21730         (get_info_about_necessary_edges): Likewise.
21731         (want_remove_some_param_p): Likewise.
21732         (create_specialized_node): Likewise.
21733         (self_recursive_pass_through_p): Likewise.
21734         (self_recursive_agg_pass_through_p): Likewise.
21735         (find_more_scalar_values_for_callers_subset): Likewise and also
21736         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
21737         case replacing two of those with a single query.
21738         (find_more_contexts_for_caller_subset): Likewise for the
21739         ipa_polymorphic_call_context overload.
21740         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
21741         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
21742         ipa_node_params_sum.
21743         (find_aggregate_values_for_callers_subset): Likewise, also reusing
21744         results of ipa_edge_args_sum->get.
21745         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
21746         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
21747         direct use of ipa_edge_args_sum.
21748         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
21749         summary query after the early exit and reused the result later.
21750         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
21751         ipa_node_params_sum.
21752         (decide_whether_version_node): Likewise.  Removed re-querying for
21753         summaries after cloning.
21754         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
21755         ipa_node_params_sum.
21756         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
21757         some queries.
21758         (identify_dead_nodes): Likewise.
21759         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
21760         ipa_node_params_sum.
21761         (ipcp_store_vr_results): Likewise.
21762         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
21763         (ipa_fn_summary_t::duplicate): Likewise.
21764         (analyze_function_body): Likewise.
21765         (estimate_calls_size_and_time): Likewise.
21766         (ipa_cached_call_context::duplicate_from): Likewise.
21767         (ipa_call_context::equal_to): Likewise.
21768         (remap_edge_params): Likewise.
21769         (ipa_merge_fn_summary_after_inlining): Likewise.
21770         (inline_read_section): Likewise.
21771         * ipa-icf.c (sem_function::param_used_p): Likewise.
21772         * ipa-modref.c (compute_parm_map): Likewise.
21773         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
21774         ipa_edge_args_sum.
21775         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
21776         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
21777         ipa_edge_args_sum.
21778         * ipa-profile.c (check_argument_count): Likewise.
21779         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
21780         with a direct use of ipa_node_params_sum.
21781         (ipa_initialize_node_params): Likewise.
21782         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
21783         direct use of ipa_edge_args_sum and reused the query result.
21784         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
21785         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
21786         direct use of ipa_edge_args_sum.
21787         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
21788         ipa_node_params_sum and reused the result of the query.
21789         (ipa_analyze_node): Likewise.
21790         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
21791         of ipa_node_params_sum.
21792         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
21793         direct uses of ipa_edge_args_sum.
21794         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
21795         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
21796         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
21797         top edge summary.
21798         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
21799         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
21800         ipa_edge_args_sum.
21801         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
21802         direct use of ipa_edge_args_sum.
21803         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
21804         use of ipa_node_params_sum.
21805         (ipa_print_node_params): Likewise.
21806         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
21807         direct uses of ipa_edge_args_sum.
21808         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
21809         ipa_edge_args_sum.
21810         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
21811         ipa_node_params_sum.
21812         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
21813         scopes where it is used.
21815 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
21817         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
21818         <case E_V2SImode>: Force op_true to register.
21820 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
21822         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
21823         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
21824         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
21825         patterns.
21826         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
21827         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
21828         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
21829         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
21830         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
21831         (mve_vcmpneq_n_f<mode>): Remove.
21832         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
21833         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
21834         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
21836 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
21838         * config/arm/iterators.md (MVE_COMPARISONS): New.
21839         (mve_cmp_op): New.
21840         (mve_cmp_type): New.
21841         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
21842         mve_vcmp patterns.
21843         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
21844         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
21845         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
21846         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
21847         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
21848         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
21849         (mve_vcmpneq_n_<mode>): Remove.
21851 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
21853         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
21854         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
21855         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
21856         names.
21858 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
21860         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
21861         (vcmpneq_n_u): Likewise.
21862         (vcmpeqq_u,): Likewise.
21863         (vcmpeqq_n_u): Likewise.
21864         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
21865         VCMPEQQ_N_U and VCMPNEQ_N_U.
21866         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
21867         (mve_vcmpeqq_n): Likewise.
21868         (mve_vcmpeqq): Likewise.
21869         (mve_vcmpneq_n): Likewise.
21871 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
21873         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
21874         the 's' version of the builtin.
21876 2021-05-10  Richard Biener  <rguenther@suse.de>
21878         PR tree-optimization/100492
21879         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
21880         Find nothing when the loop contains an irreducible region.
21882 2021-05-10  Richard Biener  <rguenther@suse.de>
21884         PR middle-end/100464
21885         PR c++/100468
21886         * gimple-fold.c (canonicalize_constructor_val): Do not set
21887         TREE_ADDRESSABLE.
21889 2021-05-10  Richard Biener  <rguenther@suse.de>
21891         PR tree-optimization/100434
21892         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
21893         call LHS.
21894         (dse_optimize_stmt): Handle call LHS by dropping the
21895         LHS or the whole call if it doesn't have other
21896         side-effects.
21897         (pass_dse::execute): Adjust.
21899 2021-05-10  Martin Liska  <mliska@suse.cz>
21901         * Makefile.in: Add missing genversion rule.
21903 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
21905         PR target/99960
21906         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
21907         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
21909 2021-05-10  Martin Liska  <mliska@suse.cz>
21911         * builtins.c (is_builtin_name): Use startswith
21912         function instead of strncmp.
21913         * collect2.c (main): Likewise.
21914         (has_lto_section): Likewise.
21915         (scan_libraries): Likewise.
21916         * coverage.c (coverage_checksum_string): Likewise.
21917         (coverage_init): Likewise.
21918         * dwarf2out.c (is_cxx): Likewise.
21919         (gen_compile_unit_die): Likewise.
21920         * gcc-ar.c (main): Likewise.
21921         * gcc.c (init_spec): Likewise.
21922         (read_specs): Likewise.
21923         (execute): Likewise.
21924         (check_live_switch): Likewise.
21925         * genattrtab.c (write_attr_case): Likewise.
21926         (IS_ATTR_GROUP): Likewise.
21927         * gencfn-macros.c (main): Likewise.
21928         * gengtype.c (type_for_name): Likewise.
21929         (gen_rtx_next): Likewise.
21930         (get_file_langdir): Likewise.
21931         (write_local): Likewise.
21932         * genmatch.c (get_operator): Likewise.
21933         (get_operand_type): Likewise.
21934         (expr::gen_transform): Likewise.
21935         * genoutput.c (validate_optab_operands): Likewise.
21936         * incpath.c (add_sysroot_to_chain): Likewise.
21937         * langhooks.c (lang_GNU_C): Likewise.
21938         (lang_GNU_CXX): Likewise.
21939         (lang_GNU_Fortran): Likewise.
21940         (lang_GNU_OBJC): Likewise.
21941         * lto-wrapper.c (run_gcc): Likewise.
21942         * omp-general.c (omp_max_simt_vf): Likewise.
21943         * omp-low.c (omp_runtime_api_call): Likewise.
21944         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
21945         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
21946         * real.c (real_from_string): Likewise.
21947         * selftest.c (assert_str_startswith): Likewise.
21948         * timevar.c (timer::validate_phases): Likewise.
21949         * tree.c (get_file_function_name): Likewise.
21950         * ubsan.c (ubsan_use_new_style_p): Likewise.
21951         * varasm.c (default_function_rodata_section): Likewise.
21952         (incorporeal_function_p): Likewise.
21953         (default_section_type_flags): Likewise.
21954         * system.h (startswith): Define startswith.
21956 2021-05-10  Martin Liska  <mliska@suse.cz>
21958         * bitmap.h (class auto_bitmap): Remove
21959         __cplusplus >= 201103.
21960         * config/aarch64/aarch64.c: Likewise.
21961         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
21962         Likewise.
21963         * sbitmap.h: Likewise.
21965 2021-05-10  Martin Liska  <mliska@suse.cz>
21967         * Makefile.in: Rename gcov-iov to genversion and depend
21968         on version.h (instead of gcov-iov.h).
21969         * gcov-io.h: Include version.h instread of gcov-iov.h.
21970         * gengtype-state.c (read_state_version): Likewise.
21971         * gcov-iov.c: Moved to...
21972         * genversion.c: ...here.
21973         * lto-streamer.h (LTO_major_version): Define it with
21974         GCC_major_version.
21975         * version.c: Removed.
21976         * version.h: Removed.
21978 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
21980         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
21981         * config/arc/simdext.md (VCT): Add predicates for iterator
21982         elements.
21983         (EMUVEC): Define.
21984         (voptab): Likewise.
21985         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
21986         (<voptab>v2si3): New patterns.
21987         (neg): Likewise.
21988         (reduc_plus_scal_v4hi): Likewise.
21989         (reduc_plus_scal_v2si): Likewise.
21990         (vec_duplicatev2si): Likewise.
21991         (vec_duplicatev4hi): Likewise.
21993 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
21995         * config/arc/simdext.md: Format and cleanup file.
21997 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
21999         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
22000         only when munaligned-access option is on.
22001         (movmisalign<mode>): Likewise.
22003 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22005         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
22006         from string.
22007         * config/arc/arc.c (arc_reorg): Remove underscore from string.
22009 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22011         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
22012         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
22013         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
22014         (norm_f): Likewise.
22015         (ffs): Likewise.
22016         (ffs_f): Likewise.
22017         (clzsi2): Use fls instruction when available.
22018         (arc_clzsi2): Likewise.
22020 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22022         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
22024 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22026         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
22028 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22030         PR middle-end/100467
22031         * toplev.c (compile_file): Call insn_locations_init before
22032         targetm.asm_out.code_end.
22034 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
22036         Revert:
22037         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
22039         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
22041 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
22042             Andrew Stubbs  <amd@codesourcery.com>
22044         PR target/100418
22045         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
22046         emit_move_insn operands.
22048 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
22050         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
22051         location for the outgoing edges of an empty block.
22052         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
22053         type by means of the get_array_descr_info langhook, if it is set and
22054         returns true.  Remove obsolete code dealing with unnamed subtypes.
22056 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22058         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
22059         (sbr_vector): Renamed from ssa_block_cache.
22060         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
22061         (ssa_block_ranges::~ssa_block_ranges): Remove.
22062         (sbr_vector::set_bb_range): Use varying and undefined cached values.
22063         (ssa_block_ranges::set_bb_varying): Remove.
22064         (sbr_vector::get_bb_range): Adjust assert.
22065         (sbr_vector::bb_range_p): Adjust assert.
22066         (~block_range_cache): No freeing loop required.
22067         (block_range_cache::get_block_ranges): Remove.
22068         (block_range_cache::set_bb_range): Inline get_block_ranges.
22069         (block_range_cache::set_bb_varying): Remove.
22070         * gimple-range-cache.h (set_bb_varying): Remove prototype.
22071         * value-range.h (irange_allocator::get_memory): New.
22073 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22075         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
22076         dominator tree is available and requested.
22077         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
22078         (ranger_cache::fill_block_cache): Don't search dom tree here either.
22079         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
22081 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22083         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
22084         only PHI nodes better.
22086 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22088         * gimple-range-edge.h (gimple_outgoing_range): Rename from
22089         outgoing_range.
22090         (gcond_edge_range): Export prototype.
22091         * gimple-range-edge.cc (gcond_edge_range): New.
22092         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
22093         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
22095 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22097         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
22098         default range into a temp and allocate only what is needed.
22100 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22102         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
22104 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22106         * gimple-range.h (gimple_range_global): Pick up parameter initial
22107         values, and use-before defined locals are UNDEFINED.
22109 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
22111         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
22112         and vector fields.
22113         * tree.h (reverse_storage_order_for_component_p): Return false if
22114         the type is a pointer.
22116 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
22118         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
22120 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
22122         PR target/98218
22123         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
22124         Handle V8QI, V4HI and V2SI modes.
22125         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
22126         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
22127         * config/i386/i386.md (unspec): ... here.
22129 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
22130             Tom de Vries  <tdevries@suse.de>
22132         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
22133         a truth_value_p reduction variable is nonintegral.
22135 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
22137         PR target/100445
22138         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
22139         Return false for mode sizes < 16.
22141 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
22143         PR target/100445
22144         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
22146 2021-05-06  Martin Jambor  <mjambor@suse.cz>
22148         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
22149         when there is no function summary.
22150         (ipa_sra_summarize_function): produce edge summaries even when
22151         bailing out early.
22153 2021-05-06  Tom Tromey  <tom@tromey.com>
22155         * godump.c (string_hash_eq): Remove.
22156         (go_finish): Use htab_eq_string.
22158 2021-05-06  Tom Tromey  <tom@tromey.com>
22160         * gengtype-state.c (read_state): Use htab_eq_string.
22161         (string_eq): Remove.
22163 2021-05-06  Tom Tromey  <tom@tromey.com>
22165         * gensupport.c (htab_eq_string): Remove.
22167 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22169         PR ipa/97937
22170         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
22171         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
22172         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
22173         set_ignored_loc callbacks.
22174         * debug.c (do_nothing_debug_hooks): Likewise.
22175         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22176         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
22177         (in_text_section_p, last_text_label, last_cold_label,
22178         switch_text_ranges, switch_cold_ranges): New data items.
22179         (dwarf2out_note_section_used): Remove.
22180         (dwarf2out_begin_prologue): Set fde->ignored_debug and
22181         in_text_section_p.
22182         (mark_ignored_debug_section): New helper function.
22183         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
22184         mark_ignored_debug_section.
22185         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
22186         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
22187         (size_of_aranges): Adjust formula for multi-part text ranges size.
22188         (output_aranges): Output multi-part text ranges.
22189         (dwarf2out_set_ignored_loc): New callback function.
22190         (dwarf2out_finish): Output multi-part text ranges.
22191         (dwarf2out_c_finalize): Clear new data items.
22192         * final.c (final_start_function_1): Call set_ignored_loc callback.
22193         (final_scan_insn_1): Likewise.
22194         * ggc-page.c (gt_ggc_mx): New helper function.
22195         * stringpool.c (gt_pch_nx): Likewise.
22197 2021-05-06  Richard Biener  <rguenther@suse.de>
22199         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
22200         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
22201         (TV_TREE_INTO_SSA): New.
22202         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
22203         (rewrite_blocks): Likewise.
22204         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
22206 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
22208         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
22209         abs_replacement, xor_replacement,
22210         cond_removal_in_popcount_clz_ctz_pattern,
22211         replace_phi_edge_with_variable): Change type of phi argument from
22212         gimple * to gphi *.
22214 2021-05-06  Richard Biener  <rguenther@suse.de>
22216         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
22217         Output an opt-info message.
22218         (do_split_loop_on_cond): Likewise.
22219         (tree_ssa_split_loops): Update SSA form here.
22221 2021-05-06  Richard Biener  <rguenther@suse.de>
22223         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
22224         return variable removal.
22226 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
22228         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
22229         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
22230         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
22231         operand.
22232         * config/s390/s390.c (s390_const_operand_ok): Remove unused
22233         values.
22235 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
22237         PR tree-optimization/94589
22238         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
22239         spaceship_replacement.
22240         (cond_only_block_p, spaceship_replacement): New functions.
22242 2021-05-06  Richard Biener  <rguenther@suse.de>
22244         PR ipa/100373
22245         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
22246         dealing with a debug use and only query existing addresses
22247         if so.
22248         (lower_emutls_1): Avoid splitting out addresses for debug
22249         stmts, reset the debug stmt when we fail to find existing
22250         lowered addresses.
22251         (lower_emutls_phi_arg): Set wi.stmt.
22253 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
22255         PR target/100266
22256         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
22257         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
22258         (stack_protect_test): Use cbranch helper.
22260 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22262         PR target/100402
22263         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
22264         always return the establisher frame for __builtin_frame_address (0).
22266 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
22268         PR target/91400
22269         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
22270         (ix86_cpu_model_var): Likewise.
22271         (ix86_cpu_features2_type_node): Likewise.
22272         (ix86_cpu_features2_var): Likewise.
22273         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
22274         their types.
22276 2021-05-05  Martin Sebor  <msebor@redhat.com>
22278         * passes.def (pass_warn_printf): Run after SSA.
22280 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22282         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
22283         * config/arm/predicates.md (minus_one_operand): New predicate.
22285 2021-05-05  Jeff Law  <jlaw@tachyum.com>
22287         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
22289 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
22291         PR rtl-optimization/100263
22292         * postreload.c (move2add_valid_value_p): Ensure register can
22293         change mode.
22295 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22297         PR rtl-optimization/100411
22298         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
22299         and beginning of function markers.
22301 2021-05-05  Jeff Law  <jlaw@tachyum.com>
22303         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
22304         * config/cr16/cr16.c (notice_update_cc): Remove.
22305         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
22307 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
22309         PR target/98218
22310         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22311         Handle V8QI, V4HI and V2SI modes.
22312         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
22313         (ix86_build_signbit_mask): Ditto.
22314         * config/i386/mmx.md (MMXMODE14): New mode iterator.
22315         (<smaxmin:code><MMXMODE14:mode>3): New expander.
22316         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
22317         (<umaxmin:code><MMXMODE24:mode>3): New expander.
22318         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
22319         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
22320         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22321         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22322         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22323         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22325 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22327         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
22328         not expand the VALUE_EXPR of variables put in the non-local frame.
22329         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
22330         to be ignored for debug info, ensure its variable offsets are not.
22332 2021-05-05  Richard Biener  <rguenther@suse.de>
22334         PR tree-optimization/79333
22335         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
22336         Fold stmt following SSA edges.
22338 2021-05-05  Richard Biener  <rguenther@suse.de>
22340         PR middle-end/100394
22341         * calls.c (expand_call): Preserve possibly throwing calls.
22342         * cfgexpand.c (expand_call_stmt): When a call can throw signal
22343         RTL expansion there are side-effects.
22344         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
22345         mark all possibly throwing stmts necessary unless we can elide
22346         dead EH.
22347         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
22348         -fdelete-dead-exceptions.
22349         * tree.h (DECL_PURE_P): Add note about exceptions.
22351 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
22353         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
22354         unconditional.
22356 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
22358         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
22359         get_fnname_from_decl for name of thunk.
22360         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
22361         and ASM_OUTPUT_LABEL.
22362         (rs6000_xcoff_declare_function_name): Use assemble_name and
22363         ASM_OUTPUT_LABEL.
22364         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
22365         (rs6000_xcoff_encode_section_info): Don't add mapping class
22366         for aliases.  Always add [DS] mapping class to primary
22367         FUNCTION_DECL.
22368         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
22370 2021-05-04  Martin Sebor  <msebor@redhat.com>
22372         PR middle-end/100307
22373         * builtins.c (compute_objsize_r): Clear base0 for pointers.
22375 2021-05-04  Jeff Law  <jlaw@tachyum.com>
22377         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
22379 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
22381         * caller-save.c: Remove CC0.
22382         * cfgcleanup.c: Remove CC0.
22383         * cfgrtl.c: Remove CC0.
22384         * combine.c: Remove CC0.
22385         * compare-elim.c: Remove CC0.
22386         * conditions.h: Remove CC0.
22387         * config/h8300/h8300.h: Remove CC0.
22388         * config/h8300/h8300-protos.h: Remove CC0.
22389         * config/h8300/peepholes.md: Remove CC0.
22390         * config/i386/x86-tune-sched.c: Remove CC0.
22391         * config/m68k/m68k.c: Remove CC0.
22392         * config/rl78/rl78.c: Remove CC0.
22393         * config/sparc/sparc.c: Remove CC0.
22394         * config/xtensa/xtensa.c: Remove CC0.
22395         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
22396         RTL where that is used as a placeholder only.
22397         * cprop.c: Remove CC0.
22398         * cse.c: Remove CC0.
22399         * cselib.c: Remove CC0.
22400         * df-problems.c: Remove CC0.
22401         * df-scan.c: Remove CC0.
22402         * doc/md.texi: Remove CC0.  Adjust an example.
22403         * doc/rtl.texi: Remove CC0.  Adjust an example.
22404         * doc/tm.texi: Regenerate.
22405         * doc/tm.texi.in: Remove CC0.
22406         * emit-rtl.c: Remove CC0.
22407         * final.c: Remove CC0.
22408         * fwprop.c: Remove CC0.
22409         * gcse-common.c: Remove CC0.
22410         * gcse.c: Remove CC0.
22411         * genattrtab.c: Remove CC0.
22412         * genconfig.c: Remove CC0.
22413         * genemit.c: Remove CC0.
22414         * genextract.c: Remove CC0.
22415         * gengenrtl.c: Remove CC0.
22416         * genrecog.c: Remove CC0.
22417         * haifa-sched.c: Remove CC0.
22418         * ifcvt.c: Remove CC0.
22419         * ira-costs.c: Remove CC0.
22420         * ira.c: Remove CC0.
22421         * jump.c: Remove CC0.
22422         * loop-invariant.c: Remove CC0.
22423         * lra-constraints.c: Remove CC0.
22424         * lra-eliminations.c: Remove CC0.
22425         * optabs.c: Remove CC0.
22426         * postreload-gcse.c: Remove CC0.
22427         * postreload.c: Remove CC0.
22428         * print-rtl.c: Remove CC0.
22429         * read-rtl-function.c: Remove CC0.
22430         * reg-notes.def: Remove CC0.
22431         * reg-stack.c: Remove CC0.
22432         * reginfo.c: Remove CC0.
22433         * regrename.c: Remove CC0.
22434         * reload.c: Remove CC0.
22435         * reload1.c: Remove CC0.
22436         * reorg.c: Remove CC0.
22437         * resource.c: Remove CC0.
22438         * rtl.c: Remove CC0.
22439         * rtl.def: Remove CC0.
22440         * rtl.h: Remove CC0.
22441         * rtlanal.c: Remove CC0.
22442         * sched-deps.c: Remove CC0.
22443         * sched-rgn.c: Remove CC0.
22444         * shrink-wrap.c: Remove CC0.
22445         * simplify-rtx.c: Remove CC0.
22446         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
22447         CC_STATUS_MDEP, and CC_STATUS.
22448         * target.def: Remove CC0.
22449         * valtrack.c: Remove CC0.
22450         * var-tracking.c: Remove CC0.
22452 2021-05-04  Richard Biener  <rguenther@suse.de>
22454         PR tree-optimization/100414
22455         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
22456         info here.
22457         (tree_ssa_phiopt_worker): But unconditionally here.
22459 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
22461         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
22462         && and || with floating-point and complex arguments.
22464 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
22466         * tree-inline.c (insert_debug_decl_map): Delete.
22467         (copy_debug_stmt): Minor tweak.
22468         (setup_one_parameter): Do not use a variable if the value is either
22469         a read-only DECL or a non-addressable local variable in the caller.
22470         In this case, insert the debug-only variable in the map manually.
22471         (expand_call_inline): Do not generate a CLOBBER for these values.
22472         * tree-inline.h (debug_map): Minor tweak.
22474 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
22476         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
22477         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
22479 2021-05-04  Richard Biener  <rguenther@suse.de>
22481         PR tree-optimization/100329
22482         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
22483         asm goto defs.
22484         (insert_stmt_after): Assert we're not running into asm goto.
22486 2021-05-04  Richard Biener  <rguenther@suse.de>
22488         PR tree-optimization/100398
22489         * tree-ssa-dse.c (pass_dse::execute): Preserve control
22490         altering stmts.
22492 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22494         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
22496 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
22498         * builtins.c (try_store_by_multiple_pieces): New.
22499         (expand_builtin_memset_args): Use it.  If target_char_cast
22500         fails, proceed as for non-constant val.  Pass len's ctz to...
22501         * expr.c (clear_storage_hints): ... this.  Try store by
22502         multiple pieces after setmem.
22503         (clear_storage): Adjust.
22504         * expr.h (clear_storage_hints): Likewise.
22505         (try_store_by_multiple_pieces): Declare.
22506         * passes.def: Replace the last copy_prop with ccp.
22508 2021-05-03  Tom de Vries  <tdevries@suse.de>
22510         PR target/100321
22511         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
22512         reduction.
22514 2021-05-03  Richard Biener  <rguenther@suse.de>
22516         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
22518 2021-05-03  Richard Biener  <rguenther@suse.de>
22520         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
22521         (dse_dom_walker): Remove.
22522         (dse_dom_walker::dse_optimize_stmt): Rename...
22523         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
22524         (dse_dom_walker::before_dom_children): Inline ...
22525         (pass_dse::execute): ... here.  Perform a reverse program
22526         order walk.
22528 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
22530         PR bootstrap/99703
22531         * configure: Regenerated.
22533 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
22535         PR target/100217
22536         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
22537         (s390_md_asm_adjust): Handle hard registers.
22539 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
22541         PR tree-optimization/100382
22542         * tree-ssa-dse.c: Include tree-eh.h.
22543         (dse_dom_walker::before_dom_children): Don't remove stmts if
22544         stmt_unremovable_because_of_non_call_eh_p is true.
22546 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
22548         * varasm.c (compute_reloc_for_var): Split out from...
22549         (get_variable_section): Use it.
22550         * output.h (compute_reloc_for_var): Declare.
22551         * config/rs6000/rs6000-protos.h
22552         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
22553         unsigned int.
22554         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
22555         Don't append storage mapping class to symbol.
22556         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
22557         Don't convert TLS BSS to common.
22558         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
22559         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
22560         bss_initializer.
22561         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
22562         mapping class.
22563         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
22564         If align is 0 from TLS class, use the same rules as varasm.c
22565         If not common, switch to BSS section manually.
22566         If common, emit appropriate comm or lcomm directive.
22567         (rs6000_xcoff_encode_section_info): Add logic to append all
22568         storage mapping classes.
22569         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
22570         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
22571         rs6000_xcoff_asm_output_aligned_decl_common.
22572         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
22573         rs6000_xcoff_asm_output_aligned_decl_common.
22574         (ASM_OUTPUT_TLS_COMMON): Use
22575         rs6000_xcoff_asm_output_aligned_decl_common.
22577 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
22579         PR target/100375
22580         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
22581         as first argument of pseudo_node_t constructors.
22583 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
22585         PR target/100336
22586         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
22588 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
22590         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
22591         (gt_pch_nx (int_range<1> *&)): New.
22592         (gt_ggc_mx (int_range<1> *&)): New.
22593         * value-range.h (class irange): Add GTY support for
22594         the base class.
22596 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
22598         * doc/options.texi (Negative): Change either or to both and.
22600 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
22602         * config/aarch64/aarch64-simd-builtins.def: Add
22603         float_ml[as][q]_laneq builtin generator macros.
22604         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
22605         (aarch64_float_mla_laneq<mode>): Define.
22606         (aarch64_float_mls_laneq<mode>): Define.
22607         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
22608         instead of GCC vector extensions.
22609         (vmlaq_laneq_f32): Likewise.
22610         (vmls_laneq_f32): Likewise.
22611         (vmlsq_laneq_f32): Likewise.
22613 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
22615         * config/aarch64/aarch64-simd-builtins.def: Add
22616         float_ml[as]_lane builtin generator macros.
22617         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
22618         Rename to...
22619         (mul_lane<mode>3): This, and re-order arguments.
22620         (aarch64_float_mla_lane<mode>): Define.
22621         (aarch64_float_mls_lane<mode>): Define.
22622         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
22623         instead of GCC vector extensions.
22624         (vmlaq_lane_f32): Likewise.
22625         (vmls_lane_f32): Likewise.
22626         (vmlsq_lane_f32): Likewise.
22628 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
22630         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
22631         builtin generator macros.
22632         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
22633         Define.
22634         (aarch64_float_mls<mode>): Define.
22635         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
22636         instead of relying on GCC vector extensions.
22637         (vmla_f64): Likewise.
22638         (vmlaq_f32): Likewise.
22639         (vmlaq_f64): Likewise.
22640         (vmls_f32): Likewise.
22641         (vmls_f64): Likewise.
22642         (vmlsq_f32): Likewise.
22643         (vmlsq_f64): Likewise.
22644         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
22646 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
22648         * config/aarch64/aarch64-simd-builtins.def: Add
22649         float_ml[as]_n_builtin generator macros.
22650         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
22651         Rename to...
22652         (mul_n<mode>3): This, and re-order arguments.
22653         (aarch64_float_mla_n<mode>): Define.
22654         (aarch64_float_mls_n<mode>): Define.
22655         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
22656         instead of inline asm.
22657         (vmlaq_n_f32): Likewise.
22658         (vmls_n_f32): Likewise.
22659         (vmlsq_n_f32): Likewise.
22661 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
22663         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
22664         builtin generator macros.
22665         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
22666         (aarch64_pmull_hiv16qi_insn): Define.
22667         (aarch64_pmull_hiv16qi): Define.
22668         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
22669         instead of inline asm.
22670         (vmull_p8): Likewise.
22672 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
22674         * config/avr/avr.md: Adjust peepholes to match and
22675         generate parallels with clobber of REG_CC.
22676         (mov<mode>_insn): Rename to mov<mode>_insn_split.
22677         (*mov<mode>_insn): Rename to mov<mode>_insn.
22679 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
22681         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
22682         for VAR_DECLs if -fdata-sections enabled.
22684 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
22686         PR bootstrap/100327
22687         * config/rs6000/rs6000.c
22688         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
22689         (rs6000_libgcc_floating_mode_supported_p): New target hook.
22691 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
22693         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
22694         from here...
22695         (class back_threader_registry): ...to here...
22696         (class back_threader_profitability): ...and here...
22697         (thread_jumps::thread_through_all_blocks): Remove argument.
22698         (back_threader_registry::back_threader_registry): New.
22699         (back_threader_registry::~back_threader_registry): New.
22700         (back_threader_registry::thread_through_all_blocks): New.
22701         (thread_jumps::profitable_jump_thread_path): Move from here...
22702         (back_threader_profitability::profitable_path_p): ...to here.
22703         (thread_jumps::find_taken_edge): New.
22704         (thread_jumps::convert_and_register_current_path): Move...
22705         (back_threader_registry::register_path): ...to here.
22706         (thread_jumps::register_jump_thread_path_if_profitable): Move...
22707         (thread_jumps::maybe_register_path): ...to here.
22708         (thread_jumps::handle_phi): Call find_taken_edge and
22709         maybe_register_path.
22710         (thread_jumps::handle_assignment): Same.
22711         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
22712         tree argument to handle_phi and handle_assignment.
22713         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
22714         set of m_speed_p and m_max_threaded_paths.
22715         (pass_thread_jumps::execute): Remove second argument from
22716         find_jump_threads_backwards.
22717         (pass_early_thread_jumps::execute): Same.
22719 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
22721         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
22722         (class dom_opt_dom_walker): Initialize some class variables.
22723         (pass_dominator::execute): Pass evrp_range_analyzer and
22724         dom_jump_threader_simplifier to dom_opt_dom_walker.
22725         Adjust for some functions moving into classes.
22726         (simplify_stmt_for_jump_threading): Adjust and move to...
22727         (jump_threader_simplifier::simplify): ...here.
22728         (dom_opt_dom_walker::before_dom_children): Adjust for
22729         m_evrp_range_analyzer.
22730         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
22731         (test_for_singularity): Place in dom_opt_dom_walker class.
22732         (dom_opt_dom_walker::optimize_stmt): The argument
22733         evrp_range_analyzer is now a class field.
22734         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
22735         (thread_jumps::thread_through_all_blocks): New.
22736         (thread_jumps::convert_and_register_current_path): Use m_registry.
22737         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
22738         being in the threader class.
22739         (pass_early_thread_jumps::execute): Same.
22740         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
22741         (jump_threader::jump_threader): ...here.
22742         (threadedge_finalize_values): Move...
22743         (jump_threader::~jump_threader): ...here.
22744         (jump_threader::remove_jump_threads_including): New.
22745         (jump_threader::thread_through_all_blocks): New.
22746         (record_temporary_equivalences_from_phis): Move...
22747         (jump_threader::record_temporary_equivalences_from_phis): ...here.
22748         (record_temporary_equivalences_from_stmts_at_dest): Move...
22749         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
22750         Here...
22751         (simplify_control_stmt_condition_1): Move to jump_threader class.
22752         (simplify_control_stmt_condition): Move...
22753         (jump_threader::simplify_control_stmt_condition): ...here.
22754         (thread_around_empty_blocks): Move...
22755         (jump_threader::thread_around_empty_blocks): ...here.
22756         (thread_through_normal_block): Move...
22757         (jump_threader::thread_through_normal_block): ...here.
22758         (thread_across_edge): Move...
22759         (jump_threader::thread_across_edge): ...here.
22760         (thread_outgoing_edges): Move...
22761         (jump_threader::thread_outgoing_edges): ...here.
22762         * tree-ssa-threadedge.h: Move externally facing functings...
22763         (class jump_threader): ...here...
22764         (class jump_threader_simplifier): ...and here.
22765         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
22766         (jump_thread_path_allocator::jump_thread_path_allocator): New.
22767         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
22768         (jump_thread_path_allocator::allocate_thread_edge): New.
22769         (jump_thread_path_allocator::allocate_thread_path): New.
22770         (jump_thread_path_registry::jump_thread_path_registry): New.
22771         (jump_thread_path_registry::~jump_thread_path_registry): New.
22772         (jump_thread_path_registry::allocate_thread_edge): New.
22773         (jump_thread_path_registry::allocate_thread_path): New.
22774         (dump_jump_thread_path): Make extern.
22775         (debug (const vec<jump_thread_edge *> &path)): New.
22776         (struct removed_edges): Move to tree-ssa-threadupdate.h.
22777         (struct thread_stats_d): Remove.
22778         (remove_ctrl_stmt_and_useless_edges): Make static.
22779         (lookup_redirection_data): Move...
22780         (jump_thread_path_registry::lookup_redirection_data): ...here.
22781         (ssa_redirect_edges): Make static.
22782         (thread_block_1): Move...
22783         (jump_thread_path_registry::thread_block_1): ...here.
22784         (thread_block): Move...
22785         (jump_thread_path_registry::thread_block): ...here.
22786         (thread_through_loop_header):  Move...
22787         (jump_thread_path_registry::thread_through_loop_header): ...here.
22788         (mark_threaded_blocks): Move...
22789         (jump_thread_path_registry::mark_threaded_blocks): ...here.
22790         (debug_path): Move...
22791         (jump_thread_path_registry::debug_path): ...here.
22792         (debug_all_paths): Move...
22793         (jump_thread_path_registry::dump): ..here.
22794         (rewire_first_differing_edge): Move...
22795         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
22796         (adjust_paths_after_duplication): Move...
22797         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
22798         (duplicate_thread_path): Move...
22799         (jump_thread_path_registry::duplicate_thread_path): ..here.
22800         (remove_jump_threads_including): Move...
22801         (jump_thread_path_registry::remove_jump_threads_including): ...here.
22802         (thread_through_all_blocks): Move to...
22803         (jump_thread_path_registry::thread_through_all_blocks): ...here.
22804         (delete_jump_thread_path): Remove.
22805         (register_jump_thread): Move...
22806         (jump_thread_path_registry::register_jump_thread): ...here.
22807         * tree-ssa-threadupdate.h: Move externally facing functions...
22808         (class jump_thread_path_allocator): ...here...
22809         (class jump_thread_path_registry): ...and here.
22810         (thread_through_all_blocks): Remove.
22811         (struct removed_edges): New.
22812         (register_jump_thread): Remove.
22813         (remove_jump_threads_including): Remove.
22814         (delete_jump_thread_path): Remove.
22815         (remove_ctrl_stmt_and_useless_edges): Remove.
22816         (free_dom_edge_info): New prototype.
22817         * tree-vrp.c: Remove x_vr_values hack.
22818         (class vrp_jump_threader_simplifier): New.
22819         (vrp_jump_threader_simplifier::simplify): New.
22820         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
22821         Remove m_dummy_cond.
22822         Instantiate m_simplifier and m_threader.
22823         (vrp_jump_threader::thread_through_all_blocks): New.
22824         (vrp_jump_threader::simplify_stmt): Remove.
22825         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
22826         Remove x_vr_values hack.
22827         (execute_vrp): Adjust for thread_through_all_blocks being in a
22828         class.
22830 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
22832         * genflags.c (gen_insn): Print failed expansion string.
22834 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
22836         * expr.c (alignment_for_piecewise_move): Call mode_for_size
22837         without limit to MAX_FIXED_MODE_SIZE.
22839 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
22841         PR middle-end/90773
22842         * builtins.c (builtin_memset_gen_str): Don't use return from
22843         simplify_gen_subreg.
22845 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
22847         PR target/98060
22848         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
22849         (*addsi3_carry_zext_0r): Ditto.
22850         (*sub<mode>3_carry_0): Ditto.
22851         (*subsi3_carry_zext_0r): Ditto.
22852         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
22853         New predicate.
22854         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
22855         Also consider ix86_carry_flag_unset_operator to calculate
22856         the cost of adc/sbb insn.
22858 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
22860         PR rtl-optimization/100225
22861         PR rtl-optimization/84878
22862         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
22863         where we have an instruction which touches (writes) any hard
22864         register from df->regular_block_artificial_uses set.
22865         Allow not-single-set instruction only right before basic block
22866         tail.
22868 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
22870         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
22872 2021-04-30  LevyHsu  <admin@levyhsu.com>
22874         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
22875         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
22876         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
22877         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
22879 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
22881         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
22883 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
22885         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
22886         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
22887         * config/i386/i386.c: Adjust.
22888         * config/i386/i386.md: Adjust.
22889         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
22890         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22891         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22892         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22893         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22894         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22895         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22896         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22897         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22898         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22899         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
22901 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
22903         * config/i386/i386-expand.c (ix86_expand_int_compare):
22904         Swap operands of GTU and LEU comparison to emit carry flag comparison.
22905         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
22906         predicate to allow more combine opportunities with memory operands.
22907         (*sub<mode>3_carry_0): Ditto.
22909 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22911         PR rtl-optimization/100303
22912         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
22913         boolean that indicates whether the use will only be used in
22914         debug instructions.  Treat it in the same way that existing
22915         cross-EBB debug references would be handled if so.
22916         (function_info::make_uses_available): Likewise.
22917         * rtl-ssa/functions.h (function_info::make_uses_available): Update
22918         prototype accordingly.
22919         (function_info::make_uses_available): Likewise.
22920         * fwprop.c (try_fwprop_subst): Update call accordingly.
22922 2021-04-29  Jeff Law  <jlaw@tachyum.com>
22924         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
22925         of RTX_CODE guard.
22927 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
22928             Richard Biener  <rguenther@suse.de>
22930         PR target/100312
22931         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
22932         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
22933         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
22934         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
22935         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
22936         to PURE_ARGS category.
22937         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
22938         Handle PURE_ARGS category.
22939         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
22941 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
22943         * configure.ac: Check for the presence of sys/locking.h header and
22944         for whether _LK_LOCK is supported by _locking.
22945         * configure: Regenerate.
22946         * config.in: Likewise.
22947         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
22948         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
22949         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
22951 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
22953         * config/i386/predicates.md (fcmov_comparison_operator):
22954         Do not check for trivial FP comparison operator.
22955         <case GEU, case LTU>: Allow CCGZmode.
22956         <case GTU, case LEU>: Do not allow CCCmode.
22957         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
22958         (ix86_carry_flag_operator): Match only LTU and UNLT code.
22959         Do not check for trivial FP comparison operator.  Allow CCGZmode.
22961 2021-04-29  Tom de Vries  <tdevries@suse.de>
22963         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
22964         fd->loop.step by either step or orig_step.
22966 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
22968         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
22969         (load_got_register): Do the PIC dance here.
22970         (sparc_legitimize_tls_address): Simplify.
22971         (sparc_emit_probe_stack_range): Likewise.
22972         (sparc32_initialize_trampoline): Likewise.
22973         (sparc64_initialize_trampoline): Likewise.
22974         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
22975         (probe_stack_range<P:mode>): Likewise.
22976         (flush<P:mode>): Likewise.
22977         (tgd_hi22<P:mode>): Likewise.
22978         (tgd_lo10<P:mode>): Likewise.
22979         (tgd_add<P:mode>): Likewise.
22980         (tgd_call<P:mode>): Likewise.
22981         (tldm_hi22<P:mode>): Likewise.
22982         (tldm_lo10<P:mode>): Likewise.
22983         (tldm_add<P:mode>): Likewise.
22984         (tldm_call<P:mode>): Likewise.
22985         (tldo_hix22<P:mode>): Likewise.
22986         (tldo_lox10<P:mode>): Likewise.
22987         (tldo_add<P:mode>): Likewise.
22988         (tie_hi22<P:mode>): Likewise.
22989         (tie_lo10<P:mode>): Likewise.
22990         (tie_add<P:mode>): Likewise.
22991         (tle_hix22<P:mode>): Likewise.
22992         (tle_lox10<P:mode>): Likewise.
22993         (stack_protect_setsi): Rename to...
22994         (stack_protect_set32): ...this.
22995         (stack_protect_setdi): Rename to...
22996         (stack_protect_set64): ...this.
22997         (stack_protect_set): Adjust calls to above.
22998         (stack_protect_testsi): Rename to...
22999         (stack_protect_test32): ...this.
23000         (stack_protect_testdi): Rename to...
23001         (stack_protect_test64): ...this.
23002         (stack_protect_test): Adjust calls to above.
23004 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
23006         PR middle-end/90773
23007         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
23008         (builtin_strncpy_read_str): Likewise.
23009         (builtin_memset_read_str): Add an argument for the previous RTL
23010         information and generate the new RTL from the previous RTL info.
23011         (builtin_memset_gen_str): Likewise.
23012         * builtins.h (builtin_strncpy_read_str): Update the prototype.
23013         (builtin_memset_read_str): Likewise.
23014         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
23015         returns true, round up size and alignment to the widest integer
23016         mode for maximum size.
23017         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
23018         and pass it to m_constfn.
23019         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
23020         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
23021         initialize m_push.  Initialize m_overlap_op_by_pieces with
23022         targetm.overlap_op_by_pieces_p ().
23023         (op_by_pieces_d::run): Pass the previous RTL information to
23024         pieces_addr::adjust and generate overlapping operations if
23025         m_overlap_op_by_pieces is true.
23026         (PUSHG_P): New.
23027         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
23028         change.
23029         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
23030         change.
23031         (can_store_by_pieces): Use by_pieces_constfn on constfun.
23032         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
23033         for op_by_pieces_d change.
23034         (clear_by_pieces_1): Add a dummy argument.
23035         (clear_by_pieces): Updated for op_by_pieces_d change.
23036         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
23037         (string_cst_read_str): Add a dummy argument.
23038         * expr.h (by_pieces_constfn): Add a dummy argument.
23039         (by_pieces_prev): New.
23040         * target.def (overlap_op_by_pieces_p): New target hook.
23041         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
23042         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
23043         * doc/tm.texi: Regenerated.
23045 2021-04-29  Richard Biener  <rguenther@suse.de>
23047         PR tree-optimization/100253
23048         * tree-vect-stmts.c (vectorizable_load): Do not assume
23049         element alignment when DR_MISALIGNMENT is -1.
23050         (vectorizable_store): Likewise.
23052 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
23054         PR target/100302
23055         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
23056         absu_hwi instead of abs_hwi.
23058 2021-04-29  Richard Biener  <rguenther@suse.de>
23060         PR middle-end/38474
23061         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
23062         forwarding when indirect forwarding through ESCAPED
23063         alread happens.
23065 2021-04-29  Tom de Vries  <tdevries@suse.de>
23067         PR target/100232
23068         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
23069         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
23070         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
23071         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
23073 2021-04-29  Richard Biener  <rguenther@suse.de>
23075         PR tree-optimization/99912
23076         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
23077         (dse_dom_walker::todo): Likewise.
23078         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
23079         caller.
23080         (dse_dom_walker::before_dom_children): Remove trivially
23081         dead SSA defs and schedule CFG cleanup if we removed all
23082         PHIs in a block.
23083         (pass_dse::execute): Get TODO as computed by the DOM walker
23084         and return it.  Wipe dominator info earlier.
23086 2021-04-29  Richard Biener  <rguenther@suse.de>
23088         PR ipa/100308
23089         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
23090         Track blocks to cleanup EH in new m_need_eh_cleanup.
23091         (ipcp_modif_dom_walker::cleanup_eh): New.
23092         (ipcp_transform_function): Release dominator info before
23093         doing EH cleanup.
23095 2021-04-29  Martin Sebor  <msebor@redhat.com>
23097         PR middle-end/100250
23098         * attribs.c (attr_access::array_as_string): Avoid dereferencing
23099         a pointer when it's null.
23101 2021-04-29  Martin Sebor  <msebor@redhat.com>
23103         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
23104         * ipa-free-lang-data.cc: New file.
23105         * tree.c: Move pass free_lang_data to file above.
23106          (build_array_type_1): Declare extern.
23107         * tree.h (build_array_type_1): Declare.
23109 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23111         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
23112         make consistent with updated RTL pattern.
23113         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
23114         Implement using ss_truncate and us_truncate rather than
23115         unspecs.
23116         * config/aarch64/iterators.md: Remove redundant unspecs and
23117         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
23119 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23121         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
23122         attributes consistent with those defined in arm_neon.h.
23124 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23126         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
23127         attributes consistent with those defined in arm_neon.h.
23129 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23131         * config/aarch64/aarch64-simd-builtins.def: Add
23132         float_trunc_rodd builtin generator macros.
23133         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
23134         Define.
23135         (aarch64_float_trunc_rodd_lo_v2sf): Define.
23136         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
23137         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
23138         (aarch64_float_trunc_rodd_hi_v4sf): Define.
23139         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
23140         instead of inline asm.
23141         (vcvtx_high_f32_f64): Likewise.
23142         (vcvtxd_f32_f64): Likewise.
23143         * config/aarch64/iterators.md: Add FCVTXN unspec.
23145 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23147         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
23148         generator macros.
23149         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
23150         Define.
23151         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
23152         instead of inline asm.
23153         (vqtbx1_u8): Likewise.
23154         (vqtbx1_p8): Likewise.
23155         (vqtbx1q_s8): Likewise.
23156         (vqtbx1q_u8): Likewise.
23157         (vqtbx1q_p8): Likewise.
23158         (vtbx2_s8): Likewise.
23159         (vtbx2_u8): Likewise.
23160         (vtbx2_p8): Likewise.
23162 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23164         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
23165         generator macros.
23166         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
23167         instead of inline asm.
23168         (vqtbl1_s8): Likewise.
23169         (vqtbl1_u8): Likewise.
23170         (vqtbl1q_p8): Likewise.
23171         (vqtbl1q_s8): Likewise.
23172         (vqtbl1q_u8): Likewise.
23173         (vtbl1_s8): Likewise.
23174         (vtbl1_u8): Likewise.
23175         (vtbl1_p8): Likewise.
23176         (vtbl2_s8): Likewise.
23177         (vtbl2_u8): Likewise.
23178         (vtbl2_p8): Likewise.
23180 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23182         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
23183         ssri_n buitin generator macro.
23184         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
23185         instead of inline asm.
23186         (vsri_n_p16): Likewise.
23187         (vsri_n_p64): Likewise.
23188         (vsriq_n_p8): Likewise.
23189         (vsriq_n_p16): Likewise.
23190         (vsriq_n_p64): Likewise.
23192 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23194         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
23195         iterator for polynomial ssli_n builtin generator macro.
23196         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
23197         instead of inline asm.
23198         (vsli_n_p16): Likewise.
23199         (vsliq_n_p8): Likewise.
23200         (vsliq_n_p16): Likewise.
23201         * config/aarch64/iterators.md: Define VALLP mode iterator.
23203 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23205         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
23206         iterator to generate [su]adalp RTL builtins.
23207         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
23208         [su]adalp RTL pattern.
23209         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
23210         instead of inline asm.
23211         (vpadal_u32): Likewise.
23213 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23215         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
23216         builtin generator macros.
23217         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
23218         Define.
23219         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
23220         instead of inline asm.
23221         (vpaddl_s16): Likewise.
23222         (vpaddl_s32): Likewise.
23223         (vpaddl_u8): Likewise.
23224         (vpaddl_u16): Likewise.
23225         (vpaddl_u32): Likewise.
23226         (vpaddlq_s8): Likewise.
23227         (vpaddlq_s16): Likewise.
23228         (vpaddlq_s32): Likewise.
23229         (vpaddlq_u8): Likewise.
23230         (vpaddlq_u16): Likewise.
23231         (vpaddlq_u32): Liwewise.
23232         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
23233         appropriate attributes.
23235 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23237         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
23238         for aarch64_addp<mode> builtin macro generator.
23239         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
23240         aarch64_addp<mode> RTL pattern.
23241         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
23242         instead of inline asm.
23243         (vpaddq_s16): Likewise.
23244         (vpaddq_s32): Likewise.
23245         (vpaddq_s64): Likewise.
23246         (vpaddq_u8): Likewise.
23247         (vpaddq_u16): Likewise.
23248         (vpaddq_u32): Likewise.
23249         (vpaddq_u64): Likewise.
23251 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23253         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
23254         builtin generator macros.
23255         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
23256         Define.
23257         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
23258         instead of inline asm.
23259         (vqdmulh_n_s32): Likewise.
23260         (vqdmulhq_n_s16): Likewise.
23261         (vqdmulhq_n_s32): Likewise.
23262         (vqrdmulh_n_s16): Likewise.
23263         (vqrdmulh_n_s32): Likewise.
23264         (vqrdmulhq_n_s16): Likewise.
23265         (vqrdmulhq_n_s32): Likewise.
23267 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
23269         * doc/install.texi (--enable-offload-defaulted): Document.
23271 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
23273         * config/avr/avr-dimode.md: Turn existing patterns into
23274         define_insn_and_split style patterns where the splitter
23275         adds a clobber of the condition code register.  Drop "cc"
23276         attribute.  Add new patterns to match output of
23277         the splitters.
23278         * config/avr/avr-fixed.md: Likewise.
23279         * config/avr/avr.c (cc_reg_rtx): New.
23280         (avr_parallel_insn_from_insns): Adjust insn count
23281         for removal of set of cc0.
23282         (avr_is_casesi_sequence): Likewise.
23283         (avr_casei_sequence_check_operands): Likewise.
23284         (avr_optimize_casesi): Likewise. Also insert
23285         new insns after jump_insn.
23286         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
23287         for removal of set of cc0.
23288         (avr_init_expanders): Initialize cc_reg_rtx.
23289         (avr_regno_reg_class): Handle REG_CC.
23290         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
23291         (avr_notice_update_cc): Remove function.
23292         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
23293         (compare_condition): Adjust for PARALLEL with
23294         REG_CC clobber.
23295         (out_shift_with_cnt): Likewise.
23296         (ashlhi3_out): Likewise.
23297         (ashrhi3_out): Likewise.
23298         (lshrhi3_out): Likewise.
23299         (avr_class_max_nregs): Return single reg for REG_CC.
23300         (avr_compare_pattern): Check for REG_CC instead
23301         of cc0_rtx.
23302         (avr_reorg_remove_redundant_compare): Likewise.
23303         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
23304         (avr_hard_regno_nregs): Return single reg for REG_CC.
23305         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
23306         (avr_md_asm_adjust): Clobber REG_CC.
23307         (TARGET_HARD_REGNO_NREGS): Define.
23308         (TARGET_CLASS_MAX_NREGS): Define.
23309         (TARGET_MD_ASM_ADJUST): Define.
23310         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
23311         for REG_CC.
23312         (enum reg_class): Add CC_REG class.
23313         (NOTICE_UPDATE_CC): Remove.
23314         (CC_OVERFLOW_UNUSABLE): Remove.
23315         (CC_NO_CARRY): Remove.
23316         * config/avr/avr.md: Turn existing patterns into
23317         define_insn_and_split style patterns where the splitter
23318         adds a clobber of the condition code register.  Drop "cc"
23319         attribute.  Add new patterns to match output of
23320         the splitters.
23321         (sez): Remove unused pattern.
23323 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
23325         PR target/100311
23326         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
23327         used in HImode.
23329 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23331         PR target/100305
23332         * config/aarch64/constraints.md (Utq): Require the address to
23333         be valid for both the element mode and for V2DImode.
23335 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
23336             Tobias Burnus  <tobias@codesourcery.com>
23338         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
23339         * gcc.c (process_command): New variable.
23340         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
23341         set it if -foffload is defaulted.
23342         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
23343         (compile_offload_image): If OFFLOAD_DEFAULTED and
23344         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
23345         if corresponding mkoffload can't be found.
23346         (compile_images_for_offload_targets): Likewise.  Free and clear
23347         offload_names if no valid offload is found.
23348         * config.in: Regenerate.
23349         * configure: Regenerate.
23351 2021-04-28  Richard Biener  <rguenther@suse.de>
23353         PR tree-optimization/100292
23354         * tree-vect-generic.c (expand_vector_condition): Do not fold
23355         the comparisons.
23357 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
23359         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
23360         * config/rs6000/aix64.opt (m64): New.
23361         (m32): New.
23363 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
23365         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
23366         (index_term_p): Handle ASHIFT too.
23368 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
23370         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
23371         (sync_lock_test_and_set<mode>): Adjust accordingly.
23372         (sync_lock_release<mode>): Likewise.
23374 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
23376         * config/vax/vax-protos.h (adjacent_operands_p): Remove
23377         prototype.
23378         * config/vax/vax.c (adjacent_operands_p): Remove.
23380 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
23382         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
23383         through to the non-conditional execution case if getting the
23384         condition for conditional execution has failed.
23386 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23388         PR middle-end/100284
23389         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
23390         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
23391         than asserting on it.
23393 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
23395         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
23396         with TARGET_AIX_OS.
23398 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
23400         PR target/94177
23401         * calls.c (precompute_register_parameters): Additionally test
23402         targetm.precompute_tls_p to pre-compute argument.
23403         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
23404         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
23405         * target.def (precompute_tls_p): New.
23406         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
23407         * doc/tm.texi: Regenerated.
23409 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23411         PR target/100200
23412         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
23413         back to HOST_WIDE_INT.
23415 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23417         PR target/100106
23418         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
23419         memory alignment for the outer mode.
23421 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
23423         PR middle-end/90773
23424         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
23425         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
23427 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
23429         PR target/99977
23430         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
23431         with negative immediates: ensure we expand cbranchsi4_scratch
23432         correctly and ensure we satisfy its constraints.
23433         * config/arm/sync.md
23434         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
23435         attempt to tie two output operands together with constraints;
23436         collapse two alternatives.
23437         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
23438         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
23440 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23442         PR target/100200
23443         * config/aarch64/predicates.md (aarch64_sub_immediate,
23444         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
23445         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
23446         * config/aarch64/aarch64.c (aarch64_print_operand,
23447         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
23449 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23451         PR tree-optimization/100239
23452         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
23453         permutations with all indices from the first zero element as vec_shl.
23455 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23457         PR rtl-optimization/100254
23458         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
23459         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
23461 2021-04-27  Richard Biener  <rguenther@suse.de>
23463         PR tree-optimization/99912
23464         * passes.def: Add comment about new TODO_remove_unused_locals.
23465         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
23466         at start.
23468 2021-04-27  Richard Biener  <rguenther@suse.de>
23470         PR tree-optimization/99912
23471         * passes.def (pass_all_optimizations): Add pass_dse before
23472         the first pass_dce, move the first pass_dse before the
23473         pass_dce following pass_pre.
23475 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23477         PR tree-optimization/95527
23478         * generic-match-head.c: Include tm.h.
23479         * gimple-match-head.c: Include tm.h.
23480         * match.pd (CLZ == INTEGER_CST): Don't use
23481         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
23482         if clz == CFN_CLZ.  Add missing val declaration.
23483         (CTZ cmp CST): New simplifications.
23485 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23487         PR tree-optimization/96696
23488         * expr.c (expand_expr_divmod): New function.
23489         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
23490         divisions.  Formatting fixes.
23491         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
23492         cheaper.
23494 2021-04-27  Martin Jambor  <mjambor@suse.cz>
23496         PR ipa/99951
23497         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
23498         If removing a call statement LHS SSA name, release it.
23500 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
23502         PR target/100236
23503         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
23504         is valid before including it in the mask.
23506 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23508         PR target/100270
23509         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
23510         SVE attributes.
23512 2021-04-27  Richard Biener  <rguenther@suse.de>
23514         PR tree-optimization/100051
23515         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
23516         disambiguator based on access size vs. decl size.
23518 2021-04-27  Richard Biener  <rguenther@suse.de>
23520         PR tree-optimization/100278
23521         * tree-ssa-pre.c (compute_avail): Give up when we cannot
23522         adjust TBAA beacuse of mismatching bases.
23524 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23526         PR target/99405
23527         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
23528         For any_rotate define_insn_split and following splitters, use
23529         SWI iterator instead of SWI48.
23531 2021-04-27  Richard Biener  <rguenther@suse.de>
23533         PR tree-optimization/99776
23534         * match.pd (bit_field_ref (ctor)): Relax element extract
23535         type compatibility checks.
23537 2021-04-27  Cui,Lili  <lili.cui@intel.com>
23539         * common/config/i386/i386-common.c (processor_names):
23540         Sync processor_names with processor_type.
23541         * config/i386/i386-options.c (processor_cost_table):
23542         Sync processor_cost_table with processor_type.
23544 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
23546         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
23547         (irange::set): Call irange_set_1bit_anti_range for handling all
23548         1-bit ranges.  Fall through on ~[MIN,MAX].
23550 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
23552         * value-range.cc (irange::legacy_num_pairs): Remove.
23553         (irange::invert): Change gcc_assert to gcc_checking_assert.
23554         * value-range.h (irange::num_pairs): Adjust for a cached
23555         num_pairs().  Also, rename all gcc_assert's to
23556         gcc_checking_assert's.
23558 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
23560         * value-range.cc (irange::operator=): Set m_kind.
23561         (irange::copy_to_legacy): Handle varying and undefined sources
23562         as a legacy copy since they can be easily copied.
23563         (irange::irange_set): Set m_kind.
23564         (irange::irange_set_anti_range): Same.
23565         (irange::set): Rename normalize_min_max to normalize_kind.
23566         (irange::verify_range): Adjust for multi-ranges having the
23567         m_kind field set.
23568         (irange::irange_union): Set m_kind.
23569         (irange::irange_intersect): Same.
23570         (irange::invert): Same.
23571         * value-range.h (irange::kind): Always return m_kind.
23572         (irange::varying_p): Rename to...
23573         (irange::varying_comptaible_p): ...this.
23574         (irange::undefined_p): Only look at m_kind.
23575         (irange::irange): Always set VR_UNDEFINED if applicable.
23576         (irange::set_undefined): Always set VR_UNDEFINED.
23577         (irange::set_varying): Always set m_kind to VR_VARYING.
23578         (irange::normalize_min_max): Rename to...
23579         (irange::normalize_kind): ...this.
23581 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
23583         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
23584         Adjust for constant_p including varying_p.
23585         * tree-vrp.c (vrp_prop::finalize): Same.
23586         (determine_value_range): Same.
23587         * vr-values.c (vr_values::range_of_expr): Same.
23588         * value-range.cc (irange::symbolic_p): Do not check varying_p.
23589         (irange::constant_p): Same.
23591 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
23593         * value-range.cc (irange::legacy_lower_bound): Replace
23594           !undefined_p check with num_ranges > 0.
23595         (irange::legacy_upper_bound): Same.
23596         * value-range.h (irange::type): Same.
23597         (irange::lower_bound): Same.
23598         (irange::upper_bound): Same.
23600 2021-04-26  Richard Biener  <rguenther@suse.de>
23602         PR tree-optimization/99956
23603         * gimple-loop-interchange.cc (compute_access_stride):
23604         Try instantiating the access in a shallower loop nest
23605         if instantiating failed.
23606         (compute_access_strides): Pass adjustable loop_nest
23607         to compute_access_stride.
23609 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
23611         * doc/sourcebuild.texi (arm_cmse_hw): Document.
23613 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23615         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
23617 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
23618             Nathan Sidwell  <nathan@codesourcery.com>
23619             Tom de Vries  <vries@codesourcery.com>
23620             Julian Brown  <julian@codesourcery.com>
23621             Kwok Cheung Yeung  <kcy@codesourcery.com>
23623         * omp-offload.c (oacc_validate_dims): Implement
23624         '-Wopenacc-parallelism'.
23625         * doc/invoke.texi (-Wopenacc-parallelism): Document.
23627 2021-04-26  Richard Biener  <rguenther@suse.de>
23629         * tree-cfg.h (gimplify_build1): Remove.
23630         (gimplify_build2): Likewise.
23631         (gimplify_build3): Likewise.
23632         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
23633         (gimplify_build2): Likewise.
23634         (gimplify_build3): Likewise.
23635         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
23636         Modernize.
23637         (gimplify_build2): Likewise.
23638         (gimplify_build3): Likewise.
23639         (tree_vec_extract): Use resimplify with following SSA edges.
23640         (expand_vector_parallel): Avoid passing NULL size/bitpos
23641         to tree_vec_extract.
23642         * expr.c (store_constructor): Deal with zero-element CTORs.
23643         * match.pd (bit_field_ref <vector CTOR>): Make sure to
23644         produce vector constants when possible.
23646 2021-04-26  Richard Biener  <rguenther@suse.de>
23648         * tree-complex.c: Include gimple-fold.h.
23649         (expand_complex_addition): Use gimple_build.
23650         (expand_complex_multiplication_components): Likewise.
23651         (expand_complex_multiplication): Likewise.
23652         (expand_complex_div_straight): Likewise.
23653         (expand_complex_div_wide): Likewise.
23654         (expand_complex_division): Likewise.
23655         (expand_complex_conjugate): Likewise.
23656         (expand_complex_comparison): Likewise.
23658 2021-04-26  Richard Biener  <rguenther@suse.de>
23660         * tree-ssa-phiopt.c (two_value_replacement): Remove use
23661         of legacy gimplify_buildN API.
23663 2021-04-26  Richard Biener  <rguenther@suse.de>
23665         PR tree-optimization/99473
23666         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
23667         stores.
23669 2021-04-26  Richard Biener  <rguenther@suse.de>
23671         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
23672         Use replace_call_with_value.
23674 2021-04-26  Richard Biener  <rguenther@suse.de>
23676         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
23677         (update_gimple_call): Likewise.
23678         (update_call_from_tree): Likewise.
23679         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
23680         (valid_gimple_call_p): Likewise.
23681         (move_ssa_defining_stmt_for_defs): Likewise.
23682         (finish_update_gimple_call): Likewise.
23683         (update_gimple_call): Likewise.
23684         (update_call_from_tree): Likewise.
23685         (propagate_tree_value_into_stmt): Use replace_call_with_value.
23686         * gimple-fold.h (update_gimple_call): Declare.
23687         * gimple-fold.c (valid_gimple_rhs_p): Move here from
23688         tree-ssa-propagate.c.
23689         (update_gimple_call): Likewise.
23690         (valid_gimple_call_p): Likewise.
23691         (finish_update_gimple_call): Likewise, and simplify.
23692         (gimplify_and_update_call_from_tree): Implement
23693         update_call_from_tree functionality, avoid excessive
23694         push/pop_gimplify_context.
23695         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
23696         (gimple_fold_call): Likewise.
23697         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
23698         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
23699         (pass_fold_builtins::execute): Likewise.
23700         (optimize_stack_restore): Use replace_call_with_value.
23701         * tree-cfg.c (fold_loop_internal_call): Likewise.
23702         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
23703         only gimplify_and_update_call_from_tree.
23704         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
23705         (handle_builtin_strchr): Likewise.
23706         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
23708 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
23710         PR debug/100255
23711         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
23712         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
23713         register keywords.
23715 2021-04-25  liuhongt  <hongtao.liu@intel.com>
23717         PR target/98911
23718         * config/i386/i386-builtin.def (BDESC): Change the icode of
23719         the following builtins to CODE_FOR_nothing.
23720         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
23721         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
23722         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
23723         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
23724         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
23725         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
23726         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
23727         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
23728         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
23729         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
23730         (sse2_eq<mode>3): Ditto.
23731         (sse4_1_eqv2di3): Ditto.
23732         (sse2_gt<mode>3): Rename to ..
23733         (*sse2_gt<mode>3): .. this.
23735 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
23737         Revert:
23738         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
23740         PR target/100152
23741         * config/darwin.c (darwin_binds_local_p): Assume that any
23742         public symbol might be interposed for PIC code. Update function
23743         header comment to reflect current Darwin capability.
23745 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
23747         PR target/100152
23748         * config/darwin.c (darwin_binds_local_p): Assume that any
23749         public symbol might be interposed for PIC code. Update function
23750         header comment to reflect current Darwin capability.
23752 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
23754         * doc/sourcebuild.texi: Document no-opts and any-opts target
23755         selectors.
23757 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
23759         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
23761 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
23763         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
23765 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
23767         PR target/100041
23768         * config/i386/i386-options.c (ix86_option_override_internal):
23769         Error out when -m96bit-long-double is used with 64bit targets.
23770         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
23772 2021-04-23  Martin Liska  <mliska@suse.cz>
23774         * lto-wrapper.c: Remove FIXME about usage of
23775         hardware_concurrency. The function is not on par with
23776         what we have now.
23778 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
23780         PR target/100182
23781         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
23782         Copy operand 3 to operand 4.  Use sse_reg_operand
23783         as operand 3 predicate.
23784         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
23785         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
23786         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
23787         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
23788         Copy operand 1 to operand 0.
23789         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
23790         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
23791         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
23793 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
23795         PR rtl-optimization/100230
23796         * early-remat.c (early_remat::sort_candidates): Use delete[]
23797         instead of delete for array allocated with new[].
23799 2021-04-23  Richard Biener  <rguenther@suse.de>
23801         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
23802         (capture_info::capture_info): Likewise.
23803         (capture_info::walk_match): Likewise.
23804         (expr::gen_transform): Likewise.
23805         (dt_simplify::gen_1): Likewise.
23806         * gimple-match-head.c (maybe_resimplify_conditional_op):
23807         Remove VEC_COND_EXPR special-casing.
23808         (gimple_simplify): Likewise.
23809         * gimple.c (gimple_could_trap_p_1): Adjust.
23810         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
23811         to participate in PRE.
23813 2021-04-23  Richard Biener  <rguenther@suse.de>
23815         * cfganal.c (connect_infinite_loops_to_exit): First call
23816         add_noreturn_fake_exit_edges.
23817         * ipa-sra.c (process_scan_results): Do not call the now redundant
23818         add_noreturn_fake_exit_edges.
23819         * predict.c (tree_estimate_probability): Likewise.
23820         (rebuild_frequencies): Likewise.
23821         * store-motion.c (one_store_motion_pass): Likewise.
23823 2021-04-23  Richard Biener  <rguenther@suse.de>
23825         PR tree-optimization/100222
23826         * predict.c (pass_profile::execute): Remove redundant call to
23827         mark_irreducible_loops.
23828         (report_predictor_hitrates): Likewise.
23830 2021-04-23  Richard Biener  <rguenther@suse.de>
23832         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
23833         valid_gimple_rhs_p by instead gimplifying to one.
23835 2021-04-23  Richard Biener  <rguenther@suse.de>
23837         PR tree-optimization/99971
23838         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
23839         Always use TBAA for loads.
23841 2021-04-23  liuhongt  <hongtao.liu@intel.com>
23843         PR target/100093
23844         * config/i386/i386-options.c (ix86_option_override_internal):
23845         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
23846         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
23847         by target attribute.
23849 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
23851         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
23852         DWARF2_DEBUG.
23853         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
23855 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
23857         * config.gcc (powerpc-ibm-aix6.*): Remove.
23858         * config/rs6000/aix61.h: Delete.
23860 2021-04-22  Martin Liska  <mliska@suse.cz>
23862         PR testsuite/100159
23863         PR testsuite/100192
23864         * builtins.c (expand_builtin): Fix typos and missing comments.
23865         * dwarf2out.c (gen_subprogram_die): Likewise.
23866         (gen_struct_or_union_type_die): Likewise.
23868 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
23870         PR target/100119
23871         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
23872         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
23874 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
23876         * config/i386/darwin.h (TARGET_64BIT): Remove definition
23877         based on TARGET_ISA_64BIT.
23878         (TARGET_64BIT_P): Remove definition based on
23879         TARGET_ISA_64BIT_P().
23881 2021-04-21  Martin Liska  <mliska@suse.cz>
23883         Revert:
23884         2021-04-21  Martin Liska  <mliska@suse.cz>
23886         * lto-wrapper.c (cpuset_popcount): Remove.
23887         (init_num_threads): Remove and use hardware_concurrency.
23889 2021-04-21  Martin Liska  <mliska@suse.cz>
23891         PR jit/98615
23892         * main.c (main): Call toplev::finalize in CHECKING_P mode.
23893         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
23894         when incremental LTO linking happens.
23896 2021-04-21  Martin Liska  <mliska@suse.cz>
23898         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
23899         makeserver cannot be detected, then use -flto=N fallback.
23901 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
23903         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
23904         default to yes for aarch64-linux-gnu.
23905         * configure: Regenerate.
23907 2021-04-21  Martin Liska  <mliska@suse.cz>
23909         * lto-wrapper.c (cpuset_popcount): Remove.
23910         (init_num_threads): Remove and use hardware_concurrency.
23912 2021-04-21  Martin Liska  <mliska@suse.cz>
23914         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
23915         which remains to be '(... || 0)' and clang complains about it.
23916         * dwarf2out.c (AT_vms_delta): Declare conditionally.
23917         (add_AT_vms_delta): Likewise.
23918         * tree.c (fld_simplified_type): Use rather more common pattern
23919         for disabling of something (#if 0).
23920         (get_tree_code_name): Likewise.
23921         (verify_type_variant): Likewise.
23923 2021-04-21  Martin Liska  <mliska@suse.cz>
23925         * config/i386/i386-expand.c (decide_alignment): Use newly named
23926         macro TARGET_CPU_P.
23927         * config/i386/i386.c (ix86_decompose_address): Likewise.
23928         (ix86_address_cost): Likewise.
23929         (ix86_lea_outperforms): Likewise.
23930         (ix86_avoid_lea_for_addr): Likewise.
23931         (ix86_add_stmt_cost): Likewise.
23932         * config/i386/i386.h (TARGET_*): Remove.
23933         (TARGET_CPU_P): New macro.
23934         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
23935         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
23936         (swap_top_of_ready_list): Likewise.
23937         (ix86_atom_sched_reorder): Likewise.
23938         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
23939         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
23941 2021-04-21  Martin Liska  <mliska@suse.cz>
23943         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
23944         Define.
23945         (SET_TARGET_NO_SAHF): Likewise.
23946         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
23947         (SET_TARGET_PREFETCH_SSE): Likewise.
23948         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
23949         (SET_TARGET_NO_TUNE): Likewise.
23950         (TARGET_EXPLICIT_NO_80387_P): Likewise.
23951         (SET_TARGET_NO_80387): Likewise.
23952         (DEF_PTA): New.
23953         * config/i386/i386.h (TARGET_*): Remove.
23954         * opth-gen.awk: Generate new used macros.
23956 2021-04-21  Martin Liska  <mliska@suse.cz>
23958         * config/i386/i386.h (PTA_*): Remove.
23959         (enum pta_flag): New.
23960         (DEF_PTA): Generate PTA_* values from i386-isa.def.
23961         * config/i386/i386-isa.def: New file.
23963 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
23965         PR target/99988
23966         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
23967         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
23968         jump table targets.
23970 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
23972         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
23973         x86_64-*-* targets.
23974         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
23975         New.
23976         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
23977         (ix86_handle_option): Handle -mmwait.
23978         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23979         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
23980         __builtin_ia32_monitor and __builtin_ia32_mwait.
23981         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
23982         (ix86_valid_target_attribute_inner_p): Likewise.
23983         (ix86_option_override_internal): Enable mwait/monitor
23984         instructions for -msse3.
23985         * config/i386/i386.h (TARGET_MWAIT): New.
23986         (TARGET_MWAIT_P): Likewise.
23987         * config/i386/i386.opt: Add -mmwait.
23988         * config/i386/mwaitintrin.h: New file.
23989         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
23990         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
23991         TARGET_MWAIT.
23992         (@sse3_monitor_<mode>): Likewise.
23993         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
23994         * doc/extend.texi: Document mwait target attribute.
23995         * doc/invoke.texi: Document -mmwait.
23997 2021-04-21  Martin Liska  <mliska@suse.cz>
23999         * config/i386/i386-options.c (DEF_ENUM): Remove it.
24000         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
24001         * config/i386/stringop.def (DEF_ENUM): Likewise.
24003 2021-04-21  Martin Liska  <mliska@suse.cz>
24005         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
24006         of print_generic_expr.
24008 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
24010         PR rtl-optimization/100148
24011         * cprop.c (constprop_register): Use next_nondebug_insn instead of
24012         NEXT_INSN.
24014 2021-04-21  Martin Liska  <mliska@suse.cz>
24016         PR ipa/98815
24017         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
24018         free_dominance_info calls.
24020 2021-04-21  Richard Biener  <rguenther@suse.de>
24022         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
24023         parameter (and assume it to be false).
24024         (fold_gimple_assign): Adjust, remove all callers of
24025         maybe_fold_reference calling it with is_lhs true.
24026         (gimple_fold_call): Likewise.
24027         (fold_stmt_1): Likewise.
24029 2021-04-21  Richard Biener  <rguenther@suse.de>
24031         * fold-const.c (pedantic_non_lvalue_loc): Remove.
24032         (fold_binary_loc): Adjust.
24033         (fold_ternary_loc): Likewise.
24035 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
24037         PR middle-end/100130
24038         * varasm.c (get_block_for_decl): Make sure that any use of the
24039         retain attribute matches the section's retain flag.
24040         (switch_to_section): Check for retain mismatches even when
24041         changing sections, but do not warn if the given decl is the
24042         section's named.decl.
24043         (output_object_block): Pass the first decl in the block (if any)
24044         to switch_to_section.
24046 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
24048         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24049         __CRC32__ for -mcrc32.
24050         * config/i386/i386-options.c (ix86_option_override_internal):
24051         Enable crc32 instruction for -msse4.2.
24052         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
24053         check.
24054         (sse4_2_crc32di): Likewise.
24055         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
24056         intrinsics.
24058 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
24060         PR target/100108
24061         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
24062         OPTION_MASK_ISEL.
24064 2021-04-20  Martin Liska  <mliska@suse.cz>
24066         * doc/invoke.texi: Fix typo.
24067         * params.opt: Likewise.
24069 2021-04-20  Martin Liska  <mliska@suse.cz>
24071         * doc/invoke.texi: Document new param.
24073 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
24075         PR tree-optimization/100081
24076         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
24077         rather than gori_compute_cache.
24078         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
24079         (range_def_chain::m_logical_depth): New member.
24080         (range_def_chain::range_def_chain): Initialize m_logical_depth.
24081         (range_def_chain::get_def_chain): Don't build defchains through more
24082         than LOGICAL_LIMIT logical expressions.
24083         * params.opt (param_ranger_logical_depth): New.
24085 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
24087         PR target/100067
24088         * config/arm/arm.c (arm_configure_build_target): Do not strip
24089         extended FPU/SIMD feature bits from the target ISA when -mfpu
24090         is specified (partial revert of r11-8168).
24092 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
24094         * params.opt (-param=openacc-kernels=): Add.
24095         * omp-oacc-kernels-decompose.cc
24096         (pass_omp_oacc_kernels_decompose::gate): Use it.
24097         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
24098         (--param): ... here, 'openacc-kernels'.
24100 2021-04-19  Martin Liska  <mliska@suse.cz>
24102         PR c/100143
24103         * gengtype.c (finish_root_table): Align function arguments
24104         in between declaration and definition.
24106 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24108         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
24109         frames larger than the SEH maximum frame size.
24111 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
24113         PR rtl-optimization/99927
24114         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
24115         is dead, just drop it.
24117 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
24119         PR d/99914
24120         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
24121         * doc/tm.texi: Regenerate.
24122         * doc/tm.texi.in (D language and ABI): Add @hook for
24123         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
24125 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
24127         * config/darwin-d.c (darwin_d_handle_target_object_format): New
24128         function.
24129         (darwin_d_register_target_info): New function.
24130         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24131         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
24132         function.
24133         (dragonfly_d_register_target_info): New function.
24134         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24135         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
24136         function.
24137         (freebsd_d_register_target_info): New function.
24138         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24139         * config/glibc-d.c (glibc_d_handle_target_object_format): New
24140         function.
24141         (glibc_d_register_target_info): New function.
24142         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24143         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
24144         function.
24145         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
24146         as handler for objectFormat key.
24147         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
24148         function.
24149         (winnt_d_register_target_info): New function.
24150         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24151         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
24152         function.
24153         (netbsd_d_register_target_info): New function.
24154         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24155         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
24156         function.
24157         (openbsd_d_register_target_info): New function.
24158         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24159         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
24160         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
24161         handler for objectFormat key.
24162         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
24163         function.
24164         (rs6000_d_register_target_info): Add
24165         rs6000_d_handle_target_object_format as handler for objectFormat key.
24166         * config/sol2-d.c (solaris_d_handle_target_object_format): New
24167         function.
24168         (solaris_d_register_target_info): New function.
24169         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24171 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
24173         PR target/91710
24174         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
24175         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
24176         alignment.
24177         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
24178         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
24179         the old and new alignment after applying MIN/MAX to it is different.
24181 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
24183         PR target/100048
24184         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
24185         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
24186         TRN optab.
24187         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
24189 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
24191         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
24192         this section and its subsections.
24194 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
24196         PR target/100075
24197         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
24198         define_insn patterns.
24200 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
24202         PR rtl-optimization/98689
24203         * reg-notes.def (UNTYPED_CALL): New note.
24204         * combine.c (distribute_notes): Handle it.
24205         * emit-rtl.c (try_split): Likewise.
24206         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
24207         that calls with the note implicitly set all return value registers.
24208         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
24209         to untyped_calls.
24211 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
24213         PR rtl-optimization/99596
24214         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
24215         register accesses for const calls.  Assume that pure functions
24216         can only read from global registers.  Ignore cases in which
24217         the stack pointer has been marked global.
24219 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
24221         PR target/99767
24222         * tree-vect-loop.c (vect_transform_loop): Don't remove just
24223         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
24224         them by their last argument.
24226 2021-04-15  Martin Liska  <mliska@suse.cz>
24228         * doc/invoke.texi: Other params don't use it, remove it.
24230 2021-04-15  Richard Biener  <rguenther@suse.de>
24232         * gimple-builder.h: Add deprecation note.
24234 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
24236         PR c++/98852
24237         * attribs.h (restrict_type_identity_attributes_to): Declare.
24238         * attribs.c (restrict_type_identity_attributes_to): New function.
24240 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
24242         PR c/98852
24243         * attribs.h (affects_type_identity_attributes): Declare.
24244         * attribs.c (remove_attributes_matching): New function.
24245         (affects_type_identity_attributes): Likewise.
24247 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
24249         PR target/100056
24250         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
24251         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
24252         ZERO_EXTEND, SIGN_EXTEND or AND.
24254 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
24256         PR rtl-optimization/99929
24257         * rtl.h (same_vector_encodings_p): New function.
24258         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
24259         * cselib.c (rtx_equal_for_cselib_1): Likewise.
24260         * jump.c (rtx_renumbered_equal_p): Likewise.
24261         * lra-constraints.c (operands_match_p): Likewise.
24262         * reload.c (operands_match_p): Likewise.
24263         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
24265 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
24267         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
24268         more information about variable-length CONST_VECTORs.
24270 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
24272         PR rtl-optimization/100066
24273         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
24274         ordered modes when choosing splitting mode for hard reg.
24276 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
24278         PR target/99246
24279         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
24280         New function.
24281         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
24283 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
24285         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
24286         for mask operand types.
24287         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
24288         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
24289         operand.
24290         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
24291         immediate operand.
24292         * config/s390/s390.c (s390_const_operand_ok): Check the new
24293         operand types and generate a list of valid values.
24295 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
24297         * doc/tm.texi: Regenerate.
24298         * doc/tm.texi.in (D language and ABI): Add @hook for
24299         TARGET_D_REGISTER_OS_TARGET_INFO.
24301 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
24303         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
24304         function.
24305         (aarch64_d_register_target_info): New function.
24306         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
24307         Declare.
24308         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
24309         Define.
24310         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
24311         (arm_d_register_target_info): New function.
24312         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
24313         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24314         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
24315         (ix86_d_register_target_info): New function.
24316         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
24317         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24318         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
24319         (mips_d_register_target_info): New function.
24320         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
24321         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24322         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
24323         (pa_d_register_target_info): New function.
24324         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
24325         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24326         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
24327         function.
24328         (riscv_d_register_target_info): New function.
24329         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
24330         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24331         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
24332         function.
24333         (rs6000_d_register_target_info): New function.
24334         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
24335         Declare.
24336         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24337         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
24338         (s390_d_register_target_info): New function.
24339         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
24340         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24341         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
24342         function.
24343         (sparc_d_register_target_info): New function.
24344         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
24345         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24346         * doc/tm.texi: Regenerate.
24347         * doc/tm.texi.in (D language and ABI): Add @hook for
24348         TARGET_D_REGISTER_CPU_TARGET_INFO.
24350 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
24352         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
24353         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
24354         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
24355         * doc/tm.texi: Regenerate.
24356         * doc/tm.texi.in (D language and ABI): Add @hook for
24357         TARGET_D_HAS_STDCALL_CONVENTION.
24359 2021-04-14  Richard Biener  <rguenther@suse.de>
24361         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
24362         VEC_COND_EXPRs have a gimple_val condition.
24363         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
24364         can no longer have a GENERIC condition.
24366 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
24368         PR target/100067
24369         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
24370         from the isa_delta when -mfpu has been used.
24371         (arm_options_perform_arch_sanity_checks): It's the architecture that
24372         lacks an FPU not the processor.
24374 2021-04-13  Richard Biener  <rguenther@suse.de>
24376         PR tree-optimization/100053
24377         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
24378         not use optimistic dominance queries for backedges to validate
24379         predicated values.
24380         (dominated_by_p_w_unex): Add parameter to ignore executable
24381         state on backedges.
24382         (rpo_elim::eliminate_avail): Adjust.
24384 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
24386         PR target/100028
24387         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
24388         *aarch64_bfxilsi_extrdi): New define_insn patterns.
24390 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
24392         PR target/99648
24393         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
24394         outermode, return NULL if the result doesn't encode back to the
24395         original byte sequence.
24396         (simplify_gen_subreg): Don't create SUBREGs from constants to
24397         MODE_COMPOSITE_P outermode.
24399 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
24401         PR rtl-optimization/99905
24402         * combine.c (expand_compound_operation): If pos + len > modewidth,
24403         perform the right shift by pos in inner_mode and then convert to mode,
24404         instead of trying to simplify a shift of rtx with inner_mode by pos
24405         as if it was a shift in mode.
24407 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
24409         PR debug/99830
24410         * combine.c (simplify_and_const_int_1): Don't optimize varop
24411         away if it has side-effects.
24413 2021-04-12  Martin Liska  <mliska@suse.cz>
24415         * doc/extend.texi: Escape @smallexample content.
24417 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
24419         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
24420           alternative in order to load a DFP zero.
24422 2021-04-12  Martin Liska  <mliska@suse.cz>
24424         * doc/extend.texi: Be more precise in documentation
24425         of symver attribute.
24427 2021-04-12  Martin Liska  <mliska@suse.cz>
24429         PR sanitizer/99877
24430         * gimplify.c (gimplify_expr): Right now, we unpoison all
24431         variables before a goto <dest>. We should not do it if we are
24432         in a omp context.
24434 2021-04-12  Cui,Lili  <lili.cui@intel.com>
24436         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
24437         rocketlake.
24438         * common/config/i386/i386-common.c (processor_names): Add
24439         rocketlake.
24440         (processor_alias_table): Add rocketlake.
24441         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
24442         INTEL_COREI7_ROCKETLAKE.
24443         * config.gcc: Add -march=rocketlake.
24444         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24445         rocketlake.
24446         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
24447         (processor_cost_table): Add rocketlake cost.
24448         * config/i386/i386.h (ix86_size_cost) : Define
24449         TARGET_ROCKETLAKE.
24450         (processor_type) : Add PROCESSOR_ROCKETLAKE.
24451         (PTA_ROCKETLAKE): Ditto.
24452         * doc/extend.texi: Add rocketlake.
24453         * doc/invoke.texi: Add rocketlake.
24455 2021-04-12  Cui,Lili  <lili.cui@intel.com>
24457         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
24458         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
24459         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
24460         * doc/invoke.texi: Change alderlake ISA list.
24462 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
24464         PR middle-end/98088
24465         * omp-expand.c (expand_oacc_collapse_init): Update condition in
24466         a gcc_assert.
24468 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
24470         PR target/99744
24471         * config/i386/serializeintrin.h (_serialize): Defined as macro.
24473 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
24475         PR lto/99849
24476         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
24477         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
24479 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
24481         PR middle-end/99989
24482         * gimple-ssa-warn-alloca.c
24483         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
24484         0 with integer precision unconditionally.
24486 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
24488         PR rtl-optimization/98601
24489         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
24490         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
24491         unaligned_mems handle VOIDmode like BLKmode.
24493 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
24495         PR lto/99857
24496         * tree.c (free_lang_data_in_decl): Do not release body of
24497         declare_variant_alt.
24499 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
24501         * config/aarch64/aarch64.c (aarch64_option_restore): If the
24502         architecture was specified explicitly and the tuning wasn't,
24503         tune for the architecture rather than the configured default CPU.
24505 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
24507         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
24508         as the temporary register.
24510 2021-04-09  Martin Liska  <mliska@suse.cz>
24512         * doc/extend.texi: Move non-target attributes on the top level.
24514 2021-04-09  Martin Liska  <mliska@suse.cz>
24516         * doc/invoke.texi: Document minimum and maximum value of the
24517         argument for both supported compression algorithms.
24519 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
24521         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
24522         TLS BSS before TLS data.
24523         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
24525 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
24527         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
24529 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
24531         * match.pd: Extend vec_cond folds to handle shifts.
24533 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
24535         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
24536         peephole.
24538 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
24540         PR target/99647
24541         * config/arm/iterators.md (MVE_vecs): New.
24542         (V_elem): Also handle V2DF.
24543         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
24544         (*mve_vdup<mode>): ... this. Remove second alternative since
24545         vec_duplicate of const_int is not canonical RTL, and we don't
24546         want to match symbol_refs.
24547         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
24549 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
24551         * fold-const.c (fold_single_bit_test): Fix typo.
24552         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
24553         instead.
24555 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
24557         PR tree-optimization/97513
24558         * tree-vect-slp.c (vect_add_slp_permutation): New function,
24559         split out from...
24560         (vectorizable_slp_permutation): ...here.  Detect cases in which
24561         all VEC_PERM_EXPRs are guaranteed to have the same stepped
24562         permute vector and only generate one permute vector for that case.
24563         Extend that case to handle variable-length vectors.
24565 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
24567         PR tree-optimization/99873
24568         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
24569         (vect_build_slp_instance): Don't split store groups that could
24570         use IFN_STORE_LANES.
24572 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
24574         PR target/99872
24575         * varasm.c (output_constant_pool_contents): Don't strip name encoding
24576         from XSTR (desc->sym, 0) or from label before passing those to
24577         ASM_OUTPUT_DEF.
24579 2021-04-07  Richard Biener  <rguenther@suse.de>
24581         PR tree-optimization/99954
24582         * tree-loop-distribution.c: Include tree-affine.h.
24583         (generate_memcpy_builtin): Try using tree-affine to prove
24584         non-overlap.
24585         (loop_distribution::classify_builtin_ldst): Always classify
24586         as PKIND_MEMMOVE.
24588 2021-04-07  Richard Biener  <rguenther@suse.de>
24590         PR tree-optimization/99947
24591         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
24592         steps vector to avoid pushing elements from the reallocated
24593         vector.
24595 2021-04-07  Richard Biener  <rguenther@suse.de>
24597         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
24598         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
24599         printing...
24600         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
24601         function.
24602         (debug_vn_reference_ops): New.
24604 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
24606         PR tree-optimization/98736
24607         * tree-loop-distribution.c
24608         * (loop_distribution::bb_top_order_init):
24609         Compute RPO with programing order preserved by calling function
24610         rev_post_order_and_mark_dfs_back_seme.
24612 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
24614         PR target/99781
24615         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
24616         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
24617         functions.
24618         (process_bb_lives): Don't update biggest mode of hard reg for
24619         implicit in multi-register group.  Use the new functions for
24620         updating dead_set and unused_set by register notes.
24622 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
24624         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
24625         instead of *.
24627 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
24629         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
24630         (skylake_memset): Likewise.
24631         (skylake_cost): Change CLEAR_RATIO to 17.
24632         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
24633         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
24634         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
24636 2021-04-06  Richard Biener  <rguenther@suse.de>
24638         PR tree-optimization/99880
24639         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
24640         set vectorized defs of relevant PHIs.
24642 2021-04-06  Richard Biener  <rguenther@suse.de>
24644         PR tree-optimization/99924
24645         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
24646         nodes w/o scalar stmts as visited.
24648 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
24650         PR target/99748
24651         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
24652         PCS for [su]fix_optab.
24654 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
24656         * config/darwin.c (machopic_legitimize_pic_address): Check
24657         that the current pic register is one of the hard reg set
24658         before setting liveness.
24660 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
24662         * config/darwin.c (machopic_legitimize_pic_address): Fix
24663         whitespace, remove unused code.
24665 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
24667         PR tree-optimization/99882
24668         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
24669         pointer type.
24671 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
24673         PR rtl-optimization/99863
24674         * dse.c (replace_read): Drop regs_live argument.  Instead of
24675         regs_live, use store_insn->fixed_regs_live if non-NULL,
24676         otherwise punt if insns sequence clobbers or sets any hard
24677         registers.
24679 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
24681         PR testsuite/98125
24682         * targhooks.h (default_print_patchable_function_entry_1): Declare.
24683         * targhooks.c (default_print_patchable_function_entry_1): New function,
24684         copied from default_print_patchable_function_entry with an added flags
24685         argument.
24686         (default_print_patchable_function_entry): Rewritten into a small
24687         wrapper around default_print_patchable_function_entry_1.
24688         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
24689         Redefine.
24690         (rs6000_print_patchable_function_entry): New function.
24692 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
24694         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
24696 2021-04-01  Jason Merrill  <jason@redhat.com>
24698         PR c++/98481
24699         * common.opt: Document v15 and v16.
24701 2021-04-01  Richard Biener  <rguenther@suse.de>
24703         PR tree-optimization/99863
24704         * gimplify.c (gimplify_init_constructor): Recompute vector
24705         constructor flags.
24707 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
24709         * doc/extend.texi (symver attribute): Fix up syntax errors
24710         in the examples.
24712 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
24714         PR tree-optimization/96573
24715         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
24716         also pointer types.
24718 2021-04-01  Richard Biener  <rguenther@suse.de>
24720         PR tree-optimization/99856
24721         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
24722         precision to vector element precision.
24724 2021-04-01  Martin Jambor  <mjambor@suse.cz>
24726         PR tree-optimization/97009
24727         * tree-sra.c (access_or_its_child_written): New function.
24728         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
24729         test.
24731 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
24733         PR ipa/98265
24734         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
24736 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
24738         PR target/99133
24739         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
24740         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
24741         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
24742         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
24743         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
24744         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
24745         Likewise.
24746         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
24747         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
24748         (define_attr "prefixed"): Update initializer.
24750 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
24752         PR debug/99490
24753         * dwarf2out.c (debug_ranges_dwo_section): New variable.
24754         (DW_RANGES_IDX_SKELETON): Define.
24755         (struct dw_ranges): Add begin_entry and end_entry members.
24756         (DEBUG_DWO_RNGLISTS_SECTION): Define.
24757         (add_ranges_num): Adjust r initializer for addition of *_entry
24758         members.
24759         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
24760         set idx to DW_RANGES_IDX_SKELETON.
24761         (use_distinct_base_address_for_range): New function.
24762         (index_rnglists): Don't set r->idx if it is equal to
24763         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
24764         r->end_entry for -gsplit-dwarf if those will be needed by
24765         output_rnglists.
24766         (output_rnglists): Add DWO argument.  If true, switch to
24767         debug_ranges_dwo_section rather than debug_ranges_section.
24768         Adjust l1/l2 label indexes.  Only output the offset table when
24769         dwo is true and don't include in there the skeleton range
24770         entry if present.  For -gsplit-dwarf, skip ranges that belong
24771         to the other rnglists section.  Change return type from void
24772         to bool and return true if there are any range entries for
24773         the other section.  For dwarf_split_debug_info use
24774         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
24775         entries instead of DW_RLE_start_end, DW_RLE_start_length and
24776         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
24777         (init_sections_and_labels): Initialize debug_ranges_dwo_section
24778         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
24779         and range_base_label indexes.
24780         (dwarf2out_finish): Call index_rnglists earlier before finalizing
24781         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
24782         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
24783         with different dwo arguments.
24784         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
24786 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
24788         PR tree-optimization/98268
24789         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
24790         recompute_tree_invariant_for_addr_expr after successfully
24791         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
24793 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
24795         PR tree-optimization/99726
24796         * tree-data-ref.c (create_intersect_range_checks_index): Bail
24797         out if there is more than one access function SCEV for the loop
24798         being versioned.
24800 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
24802         PR rtl-optimization/97141
24803         PR rtl-optimization/98726
24804         * emit-rtl.c (valid_for_const_vector_p): Return true for
24805         CONST_POLY_INT_P.
24806         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
24807         poly_wide_int instead of a wide_int.
24808         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
24809         of a wide_int.
24810         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
24811         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
24812         false for CONST_VECTORs that cannot be forced to memory.
24813         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
24814         is too complex to force to memory, build it up from individual
24815         elements instead.
24817 2021-03-31  Jan Hubicka  <jh@suse.cz>
24819         PR lto/99447
24820         * cgraph.c (cgraph_node::release_body): Fix overactive check.
24822 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
24824         PR target/99786
24825         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
24826         for V4HI and V2SI.
24828 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
24830         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
24831         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
24832         to SImode.
24833         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
24834         "rep movsb/stosb" only for known sizes.
24835         * config/i386/i386-options.c (processor_cost_table): Use Ice
24836         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
24837         Rapids and Alder Lake.
24838         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
24839         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
24840         (icelake_memset): Likewise.
24841         (icelake_cost): Likewise.
24842         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
24843         New.
24845 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
24847         PR target/98119
24848         * config/aarch64/aarch64.c
24849         (aarch64_vectorize_preferred_vector_alignment): Query the size
24850         of the provided SVE vector; do not assume that all SVE vectors
24851         have the same size.
24853 2021-03-31  Jan Hubicka  <jh@suse.cz>
24855         PR lto/99447
24856         * cgraph.c (cgraph_node::release_body): Remove all callers and
24857         references.
24858         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
24859         * cgraphunit.c (cgraph_node::expand): And here.
24861 2021-03-31  Martin Liska  <mliska@suse.cz>
24863         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
24864         and one negated condition.
24866 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
24867             Richard Sandiford  <richard.sandiford@arm.com>
24869         PR target/99813
24870         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
24871         constraints on operands[2] and similarly 0 and rk constraints
24872         on operands[1] corresponding to that.
24874 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
24876         PR bootstrap/98860
24877         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
24878         linker doesn't support DWARF sections new in DWARF5.
24879         * config/i386/i386-options.c (ix86_option_override_internal): Default
24880         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
24881         targets.
24882         * config.in: Regenerated.
24883         * configure: Regenerated.
24885 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24887         PR target/99820
24888         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
24889         available issue_info before using it.
24891 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24893         PR target/99822
24894         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
24895         in operand 1.
24897 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
24899         PR target/99718
24900         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
24901         (altivec_lvsl_reg_<mode>): ... this.
24902         (altivec_lvsr_reg): Change to ...
24903         (altivec_lvsr_reg_<mode>): ... this.
24904         * config/rs6000/predicates.md (vec_set_index_operand): New.
24905         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24906         Enable 32bit variable vec_insert for all TARGET_VSX.
24907         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
24908         Enable 32bit variable vec_insert for p9 and above.
24909         (rs6000_expand_vector_set_var_p8): Rename to ...
24910         (rs6000_expand_vector_set_var_p7): ... this.
24911         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
24912         position.
24913         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
24914         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
24915         gen_altivec_lvsr_reg_di.
24917 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
24919         PR target/99744
24920         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
24921         (__rdtscp): Likewise.
24923 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
24925         PR tree-optimization/99825
24926         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
24927         Reject non-mult 2 lanes.
24929 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
24931         PR target/99773
24932         * config/arm/arm.c (arm_file_start): Fix emission of
24933         Tag_ABI_VFP_args attribute.
24935 2021-03-30  Richard Biener  <rguenther@suse.de>
24937         PR tree-optimization/99824
24938         * stor-layout.c (set_min_and_max_values_for_integral_type):
24939         Assert the precision is within the bounds of
24940         WIDE_INT_MAX_PRECISION.
24941         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
24942         the outermost component ref only to lower the access size
24943         and initialize that from the access type.
24945 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
24947         PR target/98136
24948         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
24949         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
24951 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
24953         * config/aarch64/aarch64.md
24954         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
24955         attribute to disambiguate between SIMD and FP variants of the
24956         instruction.
24958 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
24960         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
24961         (analyze_ssa_name_flags): Fix typo in comment.
24963 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
24965         PR target/99216
24966         * config/aarch64/aarch64-sve-builtins.cc
24967         (function_builder::add_function): Add placeholder_p argument, use
24968         placeholder decls if this is set.
24969         (function_builder::add_unique_function): Instead of conditionally adding
24970         direct overloads, unconditionally add either a direct overload or a
24971         placeholder.
24972         (function_builder::add_overloaded_function): Set placeholder_p if we're
24973         using C++ overloads. Use the obstack for string storage instead
24974         of relying on the tree nodes.
24975         (function_builder::add_overloaded_functions): Don't return early for
24976         m_direct_overloads: we need to add placeholders.
24977         * config/aarch64/aarch64-sve-builtins.h
24978         (function_builder::add_function): Add placeholder_p argument.
24980 2021-03-29  Richard Biener  <rguenther@suse.de>
24982         PR tree-optimization/99807
24983         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
24984         assert below VEC_PERM handling.
24986 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24988         PR target/99037
24989         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
24990         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
24991         matching const_int 0.
24992         (move_lo_quad_internal_be_<mode>): Likewise.
24993         (move_lo_quad_<mode>): Update for the above.
24994         * config/aarch64/iterators.md (VQ_2E): Delete.
24996 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
24998         PR tree-optimization/99777
24999         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
25000         types other than scalar integral types.
25002 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
25004         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
25005         XCOFF TLS reloc decorations.
25007 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
25009         * doc/analyzer.texi (Analyzer Internals): Update link to
25010         "A Memory Model for Static Analysis of C Programs".
25012 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
25014         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
25015         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
25016         Declare.
25017         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
25018         (rs6000_special_round_type_align): Recursively check innermost first
25019         field.
25021 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
25023         PR debug/99334
25024         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
25025         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
25026         assignment with drap_reg active, queue reg save for hfp with offset 0
25027         and flush queued reg saves.  When handling a push with rule18,
25028         defer queueing reg save for hfp and just assert the offset is 0.
25029         (scan_trace): Assert that fde->rule18 is false.
25031 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
25033         PR target/99766
25034         * ira-costs.c (record_reg_classes): Put case with
25035         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
25036         * ira.c (ira_setup_alts): Ditto.
25037         * lra-constraints.c (process_alt_operands): Ditto.
25038         * recog.c (asm_operand_ok): Ditto.
25039         * reload.c (find_reloads): Ditto.
25041 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25043         * config/aarch64/aarch64-protos.h
25044         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
25045         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
25046         * config/aarch64/aarch64.c (generic_addrcost_table): Update
25047         accordingly, using the same costs as for post_modify.
25048         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
25049         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
25050         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
25051         (a64fx_addrcost_table): Likewise.
25052         (neoversev1_addrcost_table): New.
25053         (neoversev1_tunings): Use neoversev1_addrcost_table.
25054         (aarch64_address_cost): Use the new post_modify costs for CImode
25055         and XImode.
25057 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25059         * config/aarch64/aarch64.opt
25060         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
25061         * doc/invoke.texi: Document it.
25062         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
25063         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
25064         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
25065         (aarch64_vec_issue_info): New structures.
25066         (cpu_vector_cost): Write comments above the variables rather
25067         than to the side.
25068         (cpu_vector_cost::issue_info): New member variable.
25069         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
25070         and tree-ssa-loop-niter.h.
25071         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
25072         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
25073         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
25074         (thunderx3t110_vector_cost): Initialize issue_info to null.
25075         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
25076         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
25077         (neoversev1_vector_cost): Use them.
25078         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
25079         (aarch64_vector_costs::saw_sve_only_op): New member variable.
25080         (aarch64_vector_costs::num_vector_iterations): Likewise.
25081         (aarch64_vector_costs::scalar_ops): Likewise.
25082         (aarch64_vector_costs::advsimd_ops): Likewise.
25083         (aarch64_vector_costs::sve_ops): Likewise.
25084         (aarch64_vector_costs::seen_loads): Likewise.
25085         (aarch64_simd_vec_costs_for_flags): New function.
25086         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
25087         Count the number of predicate operations required by SVE WHILE
25088         instructions.
25089         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
25090         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
25091         (aarch64_count_ops): Likewise.
25092         (aarch64_add_stmt_cost): Record whether see an SVE operation
25093         that cannot currently be implementing using Advanced SIMD.
25094         Record issue information about the scalar, Advanced SIMD
25095         and (where relevant) SVE versions of a loop.
25096         (aarch64_vec_op_count::dump): New function.
25097         (aarch64_sve_op_count::dump): Likewise.
25098         (aarch64_estimate_min_cycles_per_iter): Likewise.
25099         (aarch64_adjust_body_cost): If issue information is available,
25100         try to compare the issue rates of the various loop implementations
25101         and increase or decrease the vector body cost accordingly.
25103 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25105         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
25106         Assume a zero cost for induction phis.
25108 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25110         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
25111         function.
25112         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
25113         vector comparisons.
25115 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25117         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
25118         New function.
25119         (aarch64_add_stmt_cost): Call it.
25121 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25123         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
25124         New tuning parameter.
25125         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
25126         (aarch64_estimated_sve_vq): New function.
25127         (aarch64_vector_costs::analyzed_vinfo): New member variable.
25128         (aarch64_vector_costs::is_loop): Likewise.
25129         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
25130         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
25131         (aarch64_record_potential_advsimd_unrolling): New function.
25132         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
25133         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
25134         aarch64_analyze_bb_vinfo on the first use of a costs structure.
25135         Detect whether we're vectorizing a loop for SVE that might be
25136         completely unrolled if it used Advanced SIMD instead.
25137         (aarch64_adjust_body_cost_for_latency): New function.
25138         (aarch64_finish_cost): Call it.
25140 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25142         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
25143         (aarch64_init_cost): New function.
25144         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
25145         the default unsigned[3].
25146         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
25147         (TARGET_VECTORIZE_INIT_COST): Override.
25148         (TARGET_VECTORIZE_FINISH_COST): Likewise.
25149         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
25151 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25153         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
25154         (neoversev1_sve_vector_cost): New cost structures.
25155         (neoversev1_vector_cost): Likewise.
25156         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
25158 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25160         * config/aarch64/aarch64-protos.h
25161         (sve_vec_cost::scatter_store_elt_cost): New member variable.
25162         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
25163         accordingly, taking the cost from the cost of a scalar_store.
25164         (a64fx_sve_vector_cost): Likewise.
25165         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
25167 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25169         * config/aarch64/aarch64-protos.h
25170         (simd_vec_cost::store_elt_extra_cost): New member variable.
25171         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
25172         accordingly, using the vec_to_scalar cost for the new field.
25173         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
25174         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
25175         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
25176         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
25177         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
25178         (thunderx3t110_advsimd_vector_cost): Likewise.
25179         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
25181 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25183         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
25184         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
25185         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
25186         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
25187         accordingly, using zero for the new costs.
25188         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
25189         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
25190         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
25191         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
25192         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
25193         (thunderx3t110_advsimd_vector_cost): Likewise.
25194         (aarch64_ld234_st234_vectors): New function.
25195         (aarch64_adjust_stmt_cost): Likewise.
25196         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
25197         the new vector costs.
25199 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25201         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
25202         derived class of simd_vec_cost.  Add information about CLAST[AB]
25203         and FADDA instructions.
25204         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
25205         accordingly, using the vec_to_scalar costs for the new fields.
25206         (a64fx_sve_vector_cost): Likewise.
25207         (aarch64_reduc_type): New function.
25208         (aarch64_sve_in_loop_reduction_latency): Likewise.
25209         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
25210         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
25211         that occur in the loop body.
25212         (aarch64_add_stmt_cost): Update call accordingly.
25214 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25216         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
25217         New tuning flag.
25218         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
25219         above the fields rather than to the right.
25220         (simd_vec_cost::reduc_i8_cost): New member variable.
25221         (simd_vec_cost::reduc_i16_cost): Likewise.
25222         (simd_vec_cost::reduc_i32_cost): Likewise.
25223         (simd_vec_cost::reduc_i64_cost): Likewise.
25224         (simd_vec_cost::reduc_f16_cost): Likewise.
25225         (simd_vec_cost::reduc_f32_cost): Likewise.
25226         (simd_vec_cost::reduc_f64_cost): Likewise.
25227         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
25228         accordingly, using the vec_to_scalar_cost for the new fields.
25229         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
25230         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
25231         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
25232         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
25233         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
25234         (thunderx3t110_advsimd_vector_cost): Likewise.
25235         (aarch64_use_new_vector_costs_p): New function.
25236         (aarch64_simd_vec_costs): New function, split out from...
25237         (aarch64_builtin_vectorization_cost): ...here.
25238         (aarch64_is_reduction): New function.
25239         (aarch64_detect_vector_stmt_subtype): Likewise.
25240         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
25241         using the new vector costs.
25243 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25245         PR ipa/99466
25246         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
25247         TLS declarations as public.
25249 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25251         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
25252         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
25253         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
25254         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
25255         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
25256         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
25257         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
25258         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
25259         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
25261 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25263         PR d/91595
25264         * config.gcc (*-*-cygwin*): Add winnt-d.o
25265         (*-*-mingw*): Likewise.
25266         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
25267         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
25268         * config/i386/t-cygming: Add winnt-d.o.
25269         * config/i386/winnt-d.c: New file.
25271 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25273         * config/freebsd-d.c: Include memmodel.h.
25275 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25277         PR d/99691
25278         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
25279         * config/t-openbsd: Add openbsd-d.o.
25280         * config/openbsd-d.c: New file.
25282 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
25284         PR tree-optimization/96974
25285         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
25286         with graceful exit.
25288 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
25290         Revert:
25291         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
25293         PR target/98209
25294         PR target/99744
25295         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
25296         always_inline in system headers.
25298 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
25300         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
25302 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
25304         PR c++/99565
25305         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
25306         * fold-const.c (operand_compare::operand_equal_p): Don't compare
25307         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
25309 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
25311         PR target/98209
25312         PR target/99744
25313         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
25314         always_inline in system headers.
25316 2021-03-25  Richard Biener  <rguenther@suse.de>
25318         PR tree-optimization/99746
25319         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
25320         the scalar stmt as patterned.  Instead set up required things
25321         manually.
25323 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
25325         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
25326         from 256 to 512.
25328 2021-03-24  Martin Liska  <mliska@suse.cz>
25330         PR target/99753
25331         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
25332         error.
25333         * config/i386/i386-options.c (ix86_option_override_internal):
25334         Add run-time assert.
25336 2021-03-24  Martin Jambor  <mjambor@suse.cz>
25338         PR ipa/99122
25339         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
25340         parameters with unknown type.
25341         (ipacp_value_safe_for_type): New function.
25342         (propagate_vals_across_arith_jfunc): Verify that the constant type
25343         can be used for a type of the formal parameter.
25344         (propagate_vals_across_ancestor): Likewise.
25345         (propagate_scalar_across_jump_function): Likewise.  Pass the type
25346         also to propagate_vals_across_ancestor.
25348 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
25350         PR target/99727
25351         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
25352         constraint.
25353         (movmisalign<mode>_mve_load): Likewise.
25355 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
25357         PR target/99724
25358         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
25359         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
25361 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
25363         * doc/sourcebuild.texi (sysconf): New effective target.
25365 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
25367         * config/i386/predicates.md (reg_or_const_vec_operand): New.
25368         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
25369         the now *-prefixed insn_and_split, turn the splitter const vec
25370         into an input for the insn, making it an ignored immediate for
25371         non-split cases, and loaded into the scratch register
25372         otherwise.
25374 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
25376         PR target/99581
25377         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
25378         Use define_relaxed_memory_constraint for them.
25380 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
25382         PR target/99733
25383         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
25384         colon to the diagnostic message.
25386 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
25388         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
25389         set_info's uses.
25390         (try_fwprop_subst_note): Use set_info instead of insn_info.
25391         (try_fwprop_subst_pattern): Likewise.
25392         (try_fwprop_subst_notes): Likewise.
25393         (try_fwprop_subst): Likewise.
25394         (forward_propagate_subreg): Likewise.
25395         (forward_propagate_and_simplify): Likewise.
25396         (forward_propagate_into): Likewise.
25397         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
25398         method.
25399         (set_info::single_nondebug_insn_use): Likewise.
25400         (set_info::single_phi_use): Likewise.
25401         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
25402         method.
25403         (set_info::single_nondebug_insn_use): Likewise.
25404         (set_info::single_phi_use): Likewise.
25406 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
25408         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
25410 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
25412         PR target/99540
25413         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
25414         expand_mult to perform an unsigned rather than a signed
25415         multiplication.
25417 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
25419         PR target/99704
25420         * config/i386/cpuid.h (__cpuid): Add __volatile__.
25421         (__cpuid_count): Likewise.
25423 2021-03-23  Richard Biener  <rguenther@suse.de>
25425         PR tree-optimization/99721
25426         * tree-vect-slp.c (vect_slp_analyze_node_operations):
25427         Make sure we can schedule the node.
25429 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25431         * config/riscv/riscv.c (riscv_subword): Take endianness into
25432         account when calculating the byte offset.
25434 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25436         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
25437         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
25438         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
25439         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
25440         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
25441         new predicate "subreg_lowpart_operator"
25443 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25445         * config/riscv/riscv.c (riscv_swap_instruction): New function
25446         to byteswap an SImode rtx containing an instruction.
25447         (riscv_trampoline_init): Byteswap the generated instructions
25448         when needed.
25450 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25452         * common/config/riscv/riscv-common.c
25453         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
25454         * config.gcc (riscv32be-*, riscv64be-*): Set
25455         TARGET_BIG_ENDIAN_DEFAULT to 1.
25456         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
25457         depending on default endianness.
25458         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
25459         * config/riscv/linux.h (LINK_SPEC): Likewise.
25460         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
25461         default endianness.
25462         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
25464 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25466         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
25467         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
25468         * config/riscv/linux.h (LINK_SPEC): Likewise.
25469         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
25470         -mlittle-endian.
25471         (BYTES_BIG_ENDIAN): Handle big endian.
25472         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
25473         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
25474         options.
25475         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
25477 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
25479         * regcprop.c (find_oldest_value_reg): Ask target whether
25480           different mode is fine for replacement register.
25482 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
25484         PR tree-optimization/99296
25485         * value-range.cc (irange::irange_set_1bit_anti_range): New.
25486         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
25487         * value-range.h (irange::irange_set_1bit_anti_range): New.
25489 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
25491         PR target/99581
25492         * config/aarch64/constraints.md (UtQ): Use
25493         define_relaxed_memory_constraint for it.
25494         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
25495         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
25496         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
25497         (have_relaxed_memory_constraints): New static var.
25498         (relaxed_memory_start, relaxed_memory_end): Ditto.
25499         (add_constraint): Add arg is_relaxed_memory.  Check name for
25500         relaxed memory.  Set up is_relaxed_memory in constraint_data and
25501         have_relaxed_memory_constraints.  Adjust calls.
25502         (choose_enum_order): Process relaxed memory.
25503         (write_tm_preds_h): Ditto.
25504         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
25505         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
25506         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
25507         * ira-lives.c (single_reg_class): Use
25508         insn_extra_relaxed_memory_constraint.
25509         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
25510         * lra-constraints.c (valid_address_p): Use
25511         insn_extra_relaxed_memory_constraint instead of other memory
25512         constraints.
25513         (process_alt_operands): Process CT_RELAXED_MEMORY.
25514         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
25515         * recog.c (asm_operand_ok, preprocess_constraints): Process
25516         CT_RELAXED_MEMORY.
25517         * reload.c (find_reloads): Ditto.
25518         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
25519         * stmt.c (parse_input_constraint): Use
25520         insn_extra_relaxed_memory_constraint.
25522 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
25524         PR target/97926
25525         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
25526         there are no NaNs.
25528 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
25530         PR target/97252
25531         * config/arm/arm-protos.h (neon_make_constant): Add generate
25532         argument to guard emitting insns, default to true.
25533         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
25534         CONST_VECTORs which neon_make_constant can't handle.
25535         (neon_vdup_constant): Add generate argument, avoid emitting
25536         insns if it's not set.
25537         (neon_make_constant): Plumb new generate argument through.
25538         * config/arm/constraints.md (Ui): New. Use it...
25539         * config/arm/mve.md (*mve_mov<mode>): ... here.
25540         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
25541         synthesize constants.
25543 2021-03-22  Richard Biener  <rguenther@suse.de>
25545         * debug.h: Add deprecation warning.
25547 2021-03-22  Richard Biener  <rguenther@suse.de>
25549         PR tree-optimization/99694
25550         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
25551         PHI result.
25553 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
25555         PR target/99702
25556         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
25557         after type checking.
25559 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
25561         PR debug/99562
25562         PR debug/66728
25563         * dwarf2out.c (get_full_len): Use get_precision rather than
25564         min_precision.
25565         (add_const_value_attribute): Make sure add_AT_wide argument has
25566         precision prec rather than some very wide one.
25568 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
25570         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
25571         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
25572         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
25573         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
25574         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
25575         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
25576         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
25577         *fix_trunc<mode>si2_internal): Fix empty split condition.
25578         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
25579         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
25580         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
25581         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
25583 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
25585         PR target/98914
25586         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
25587         Convert idx to DImode.
25588         (rs6000_expand_vector_set_var_p8): Likewise.
25590 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
25592         PR debug/99388
25593         * dwarf2out.c (insert_float): Change return type from void to
25594         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
25595         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
25596         Adjust callers.
25598 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
25600         PR target/99679
25601         * config/i386/i386.c (construct_container): Check cfun != NULL
25602         before accessing silent_p.
25604 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
25606         * asan.c: Fix typos in comments.
25608 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
25610         PR rtl-optimization/99680
25611         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
25612         (process_address_1): Check empty constraint before using
25613         CONSTRAINT_LEN.
25615 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
25617         * config/rs6000/rs6000.c (power10_cost): New.
25618         (rs6000_option_override_internal): Set Power10 costs.
25619         (rs6000_issue_rate): Set Power10 issue rate.
25620         * config/rs6000/power10.md: Rewrite for Power10.
25622 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
25624         PR target/99663
25625         * lra-constraints.c (process_address_1): Don't use unknown
25626         constraint for address constraint.
25628 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
25630         PR target/99661
25631         * config.gcc (powerpc-*-darwin8): Delete the reference to
25632         the now removed darwin8.h.
25634 2021-03-19  Olivier Hainque  <hainque@adacore.com>
25636         PR target/99660
25637         * config/vxworksae.h (VX_CPU_PREFIX): Define.
25639 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
25641         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
25643 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
25645         PR tree-optimization/99656
25646         * tree-vect-slp-patterns.c (linear_loads_p,
25647         complex_add_pattern::matches, is_eq_or_top,
25648         vect_validate_multiplication, complex_mul_pattern::matches,
25649         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
25650         * tree-vectorizer.h: (complex_load_perm_t): Removed.
25651         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
25652         complex_load_perm_t.
25654 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
25656         PR target/99652
25657         * config/i386/i386-options.c (ix86_init_machine_status): Set
25658         silent_p to true.
25659         * config/i386/i386.c (init_cumulative_args): Set silent_p to
25660         false.
25661         (construct_container): Return early for return and argument
25662         errors if silent_p is true.
25663         * config/i386/i386.h (machine_function): Add silent_p.
25665 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
25667         PR target/99593
25668         * config/arm/constraints.md (Ds): New constraint.
25669         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
25670         constraint instead of w,Dm.
25672 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
25674         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
25675         in error message.
25677 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
25679         PR middle-end/99641
25680         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
25681         array type, do the computation of the current position in sizetype.
25683 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
25685         PR target/99422
25686         * lra-constraints.c (process_address_1): Use lookup_constraint
25687         only for a single constraint.
25689 2021-03-18  Martin Sebor  <msebor@redhat.com>
25691         PR middle-end/99502
25692         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
25693         (inbounds_memaccess_p): ...to this.  Check the ending offset of
25694         the accessed member.
25696 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
25698         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
25699           %> quote markers to error messages.
25700         (gcn_goacc_validate_dims): Likewise.
25701         (gcn_conditional_register_usage): Remove exclaimation mark from error
25702         message.
25703         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
25705 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
25707         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
25708         integer divides1.
25710 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
25711             Kito Cheng  <kito.cheng@sifive.com>
25713         * config/riscv/riscv.c (riscv_block_move_straight): Change type
25714         to unsigned HOST_WIDE_INT for parameter and local variable with
25715         HOST_WIDE_INT type.
25716         (riscv_adjust_block_mem): Ditto.
25717         (riscv_block_move_loop): Ditto.
25718         (riscv_expand_block_move): Ditto.
25720 2021-03-18  Nick Clifton  <nickc@redhat.com>
25722         * config/v850/v850.c (construct_restore_jr): Increase static
25723          buffer size.
25724         (construct_save_jarl): Likewise.
25725         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
25727 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25729         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
25730         (aarch64_override_options_internal): Use it.
25731         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
25732         tune_flags.
25734 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
25736         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
25737         error message format issues.
25738         (nios2_option_override): Likewise.
25739         (nios2_expand_fpu_builtin): Likewise.
25740         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
25741         truncation warning.
25742         (nios2_expand_custom_builtin): More error message format fixes.
25743         (nios2_expand_rdwrctl_builtin): Likewise.
25744         (nios2_expand_rdprs_builtin): Likewise.
25745         (nios2_expand_eni_builtin): Likewise.
25746         (nios2_expand_builtin): Likewise.
25747         (nios2_register_custom_code): Likewise.
25748         (nios2_valid_target_attribute_rec): Likewise.
25749         (nios2_add_insn_asm): Fix uninitialized variable warning.
25751 2021-03-17  Jan Hubicka  <jh@suse.cz>
25753         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
25754         of gather to match reality.
25755         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
25757 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25759         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
25760         to compare against CC_REG rather than NE.
25762 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
25764         PR target/99504
25765         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
25766         inline assembly statements.
25767         (ix86_print_operand): Update 'P' handling for -fno-plt.
25769 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
25771         PR target/99542
25772         * config/aarch64/aarch64.c
25773         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
25775 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
25777         PR target/98092
25778         * config/rs6000/predicates.md (branch_comparison_operator): Allow
25779         ordered and unordered for CCFPmode, if flag_finite_math_only.
25781 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
25783         PR target/99600
25784         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
25785         rather than ASHIFT.
25786         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
25788 2021-03-16  Martin Liska  <mliska@suse.cz>
25790         PR target/99592
25791         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
25792         cl_optimization_compare function.
25794 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
25796         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
25797         as "v".
25799 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
25801         PR target/99563
25802         * config/i386/i386.h (struct machine_function): Add
25803         has_explicit_vzeroupper bitfield.
25804         * config/i386/i386-expand.c (ix86_expand_builtin): Set
25805         cfun->machine->has_explicit_vzeroupper when expanding
25806         IX86_BUILTIN_VZEROUPPER.
25807         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
25808         Do the mode switching only when TARGET_VZEROUPPER, expensive
25809         optimizations turned on and not optimizing for size.
25810         (pass_insert_vzeroupper::gate): Enable even when
25811         cfun->machine->has_explicit_vzeroupper is set.
25813 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
25815         PR target/99542
25816         * config/aarch64/aarch64.c
25817         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
25818         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
25819         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
25821 2021-03-15  Richard Biener  <rguenther@suse.de>
25823         PR tree-optimization/98834
25824         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
25825         subsetting by truncating the access size.
25827 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
25829         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
25830         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
25831         of znver2_cost.
25833 2021-03-15  Martin Liska  <mliska@suse.cz>
25835         * spellcheck.c: Add missing comma in initialization.
25837 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
25839         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
25840         alternative 2 and alternative 1 with alternative 3 using
25841         YW register constraint.
25842         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
25843         using YW register constraint.
25844         (*vec_extractv16qi_zext): Ditto.
25845         (*vec_extractv4si): Merge alternatives 4 and 5
25846         using Yw register constraint.
25847         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
25849 2021-03-13  Martin Sebor  <msebor@redhat.com>
25851         PR tree-optimization/99489
25852         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
25853         is not a call statement.
25855 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
25857         PR tree-optimization/99544
25858         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
25859         if for vector types multiplication can't be done in type's mode.
25861 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
25863         PR target/99422
25864         * config/sparc/constraints.md (w): Rename to...
25865         (W): ... this and ditch previous implementation.
25866         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
25867         (*movdf_insn_sp64): Likewise.
25868         (*mov<VM64:mode>_insn_sp64): Likewise.
25869         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
25870         w with W.
25871         (atomic_compare_and_swap_leon3_1): Likewise.
25872         (*atomic_compare_and_swapdi_v8plus): Likewise.
25873         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
25874         architecture and add missing address validity check during LRA.
25876 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
25878         PR fortran/98858
25879         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
25880         occuring for assumed-size arrays in use_device_{ptr,addr}.
25882 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
25884         PR target/99321
25885         * config/i386/constraints.md (YW): New internal constraint.
25886         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
25887         (*<sse2_avx2>_<insn><mode>3<mask_name>,
25888         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
25889         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
25890         constraints.
25891         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
25892         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
25893         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
25894         into one, use Yw instead of former x,v.
25895         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
25896         the last alternative.
25897         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
25898         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
25899         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
25900         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
25901         into one, use <v_Yw> instead of former x,v.
25902         (avx2_interleave_highv32qi<mask_name>,
25903         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
25904         constraints.  Add && <mask_avx512bw_condition> to condition.
25905         (avx2_interleave_lowv32qi<mask_name>,
25906         vec_interleave_lowv16qi<mask_name>,
25907         avx2_interleave_highv16hi<mask_name>,
25908         vec_interleave_highv8hi<mask_name>,
25909         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
25910         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
25911         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
25912         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
25913         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
25914         Yw instead of v in constraints.
25915         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
25916         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
25917         instead of Yv in constraints.
25918         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
25919         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
25920         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
25921         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
25922         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
25923         constraints.
25924         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
25925         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
25926         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
25927         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
25928         two, one with just x, another isa avx512vl with v.
25930 2021-03-12  Martin Liska  <mliska@suse.cz>
25932         * doc/invoke.texi: Add missing param documentation.
25934 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
25936         PR analyzer/96374
25937         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
25938         analyzer/trimmed-graph.o.
25939         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
25940         feasibility checking to reflect new implementation.
25941         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
25942         option.
25943         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
25945 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
25947         * digraph.cc (selftest::test_shortest_paths): Update
25948         shortest_paths init for new param.  Add test of
25949         SPS_TO_GIVEN_TARGET.
25950         * shortest-paths.h (enum shortest_path_sense): New.
25951         (shortest_paths::shortest_paths): Add "sense" param.
25952         Update for renamings.  Generalize to use "sense" param.
25953         (shortest_paths::get_shortest_path): Rename param.
25954         (shortest_paths::m_sense): New field.
25955         (shortest_paths::m_prev): Rename...
25956         (shortest_paths::m_best_edge): ...to this.
25957         (shortest_paths::get_shortest_path): Update for renamings.
25958         Conditionalize flipping of path on sense of traversal.
25960 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
25962         * digraph.cc (selftest::test_shortest_paths): Add test coverage
25963         for paths from B and C.
25964         * shortest-paths.h (shortest_paths::shortest_paths): Handle
25965         unreachable nodes, rather than asserting.
25967 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
25969         PR target/99094
25970         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
25971         xcoff_tbss_section_name.
25972         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
25973         * xcoffout.c (xcoff_tbss_section_name): Delete.
25974         * xcoffout.h (xcoff_tbss_section_name): Delete.
25976 2021-03-11  Richard Biener  <rguenther@suse.de>
25978         PR tree-optimization/99523
25979         * tree-cfg.c (dump_function_to_file): Dump SSA names
25980         w/o identifier to the decls section as well, not only those
25981         without a VAR_DECL.
25983 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
25985         PR ipa/99517
25986         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
25987         function calls with lhs fail if the lhs don't have compatible types.
25989 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
25991         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
25992         Change FRAME_POINTER_REGNUM to correspond to a new faked
25993         register faked_fp, part of GENNONACR_REGS like faked_ap.
25994         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
25995         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
25996         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
25997         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
25998         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
25999         register.
26000         (CRIS_REAL_FP_REGNUM): New constant.
26001         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
26002         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
26003         (cris_initial_elimination_offset): Handle elimination changes
26004         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
26005         and add one from FRAME_POINTER_REGNUM to
26006         HARD_FRAME_POINTER_REGNUM.
26007         (cris_expand_prologue, cris_expand_epilogue): Emit code for
26008         hard_frame_pointer_rtx instead of frame_pointer_rtx.
26010 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
26012         PR target/99492
26013         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
26014         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
26016 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
26018         PR target/99422
26019         * lra-constraints.c (process_address_1): Don't check unknown
26020         constraint, use X for empty constraint.
26022 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
26024         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
26025         Fix typo in comment describing "is_ha" argument.
26027 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
26029         * doc/sourcebuild.texi: Document LRA target selector.
26031 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
26033         * doc/ux.texi: Add subsection contrasting interactive versus
26034         batch usage of GCC.
26036 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
26038         PR target/99102
26039         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
26040         check condition.
26041         (vectorizable_load): Fix gather load mask check condition.
26043 2021-03-10  Richard Biener  <rguenther@suse.de>
26045         PR tree-optimization/99510
26046         * tree.c (check_aligned_type): Check that the candidate
26047         has TYPE_USER_ALIGN set instead of matching with the
26048         original type.
26050 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
26052         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
26053         float and vector integer modes only if the mode is not larger.
26055 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
26057         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
26059 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
26061         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
26062         constraints > 9.
26063         * ira-lives.c (single_reg_class): Ditto.
26065 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26067         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
26068         the architecture-specific rtems.h.
26069         (aarch64-*-rtems*): Likewise.
26070         (arm*-*-rtems*): Likewise.
26071         (epiphany-*-rtems*): Likewise.
26072         (riscv*-*-rtems*): Likewise.
26074 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
26076         PR tree-optimization/99305
26077         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
26078         before integer_all_onesp instead of vice versa.
26080 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
26082         * common/config/arm/arm-common.c (arm_config_default): Change type
26083         of 'i' to unsigned.
26085 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
26087         PR target/99454
26088         * lra-constraints.c (process_address_1): Process constraint 'g'
26089         separately and digital constraints containing more one digit.
26091 2021-03-09  Nick Clifton  <nickc@redhat.com>
26093         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
26094         (DWARF"_DEBUGGING_INFO): Define.
26096 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
26098         PR c++/90448
26099         * calls.c (initialize_argument_information): When the argument
26100         is passed by reference, do not make a copy in a thunk only if
26101         the argument is already in memory.  Remove redundant test for
26102         the case of callee copy.
26104 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
26106         PR target/99454
26107         * lra-constraints.c (process_address_1): Process 0..9 constraints
26108         in process_address_1.
26110 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
26112         * config/s390/s390.c (struct s390_processor processor_table):
26113         Binutils name string must not be empty.
26115 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
26117         * config/arc/arc.c (arc_attr_type): Remove function.
26119 2021-03-09  Martin Liska  <mliska@suse.cz>
26121         PR target/99464
26122         * config/i386/i386-options.c (ix86_option_override_internal):
26123         Set isa_flags for OPTS argument and not for the global
26124         global_options.
26126 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
26128         * config/rs6000/predicates.md (ds_form_mem_operand): Check
26129         in correct code.
26131 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
26133         PR target/99070
26134         * config/rs6000/predicates.md (ds_form_mem_operand) New
26135         predicate.
26136         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
26137         ds_form_mem_operand in ld/lwa patterns.
26138         * config/rs6000/fusion.md: Regenerate file.
26140 2021-03-08  Martin Sebor  <msebor@redhat.com>
26142         PR middle-end/98266
26143         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
26144         (array_bounds_checker::check_array_bounds): Call it.
26146 2021-03-08  Martin Sebor  <msebor@redhat.com>
26148         PR middle-end/97631
26149         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
26150         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
26151         destination size from allocation calls.  Issue a more appropriate
26152         kind of warning.
26153         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
26154         (handle_builtin_memset): Same.
26156 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
26158         PR target/98959
26159         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
26160         to ensure we do not have an Altivec style address.
26161         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
26162         an Altivec style address.
26163         (*vsx_le_perm_store_<mode>): Likewise.
26164         (splitters after *vsx_le_perm_store_<mode>): Likewise.
26165         (vsx_load_<mode>): Disable special expander if passed an Altivec
26166         style address.
26167         (vsx_store_<mode>): Likewise.
26169 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26171         PR target/99437
26172         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
26173         (aarch64_simd_shift_imm_vec_hi): Likewise.
26174         (aarch64_simd_shift_imm_vec_si): Likewise.
26175         (aarch64_simd_shift_imm_vec_di): Likewise.
26176         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
26177         predicate from above.
26178         (aarch64_shrn<mode>_insn_be): Likewise.
26179         (aarch64_rshrn<mode>_insn_le): Likewise.
26180         (aarch64_rshrn<mode>_insn_be): Likewise.
26181         (aarch64_shrn2<mode>_insn_le): Likewise.
26182         (aarch64_shrn2<mode>_insn_be): Likewise.
26183         (aarch64_rshrn2<mode>_insn_le): Likewise.
26184         (aarch64_rshrn2<mode>_insn_be): Likewise.
26186 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
26188         PR target/99422
26189         * lra-constraints.c (skip_contraint_modifiers): New function.
26190         (process_address_1): Use it before lookup_constraint call.
26192 2021-03-08  Martin Liska  <mliska@suse.cz>
26194         PR target/99463
26195         * config/i386/i386-options.c (ix86_option_override_internal):
26196         Enable UINTR and HRESET for -march that supports it.
26198 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
26200         * config/s390/s390.c (f_constraint_p): New function.
26201         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
26202         (TARGET_MD_ASM_ADJUST): Likewise.
26204 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
26206         PR fortran/97927
26207         * tree-nested.c (convert_local_reference_stmt): Avoid calling
26208         lookup_field_for_decl for Fortran module (= namespace context).
26210 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
26212         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
26213         comparison with arithmetic right shift.
26214         (s390_expand_vcond): No need for a force_reg anymore.
26215         s390_vec_compare will do it.
26216         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
26217         immediate operands.
26219 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
26221         PR target/99321
26222         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
26223         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
26224         and comment.
26225         * config/i386/sse.md (v_Yw): New define_mode_attr.
26226         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
26227         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
26228         in constraints.
26229         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
26230         xYw in constraints.
26232 2021-03-06  Julian Brown  <julian@codesourcery.com>
26234         * tree-pretty-print.c (dump_generic_node): Emit non-generic
26235         address space info for aggregates.
26237 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
26239         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
26241 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
26243         PR middle-end/99322
26244         * tree-cfg.c (bb_to_omp_idx): New variable.
26245         (execute_build_cfg): Release the bb_to_omp_idx vector after
26246         cleanup_tree_cfg returns.
26247         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
26248         for bb_to_omp_idx being a vec<int> instead of pointer to array
26249         of ints.
26250         (make_edges): Remove bb_to_omp_idx local variable, don't pass
26251         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
26252         vec<int> instead of pointer to array of ints and don't free/release
26253         it at the end.
26254         (remove_bb): When removing a bb and placing forced label somewhere
26255         else, ensure it is put into the same OpenMP region during cfg
26256         pass if possible or to entry successor as fallback.  Unregister
26257         bb from bb_to_omp_idx.
26259 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
26261         PR target/99378
26262         * lra-constraints.c (process_address_1): Skip decomposing address
26263         for asm insn operand with unknown constraint.
26265 2021-03-05  Martin Jambor  <mjambor@suse.cz>
26267         PR ipa/98078
26268         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
26269         corresponding speculative edges if we are about to resolve
26270         sepculation.  Make edge direct (and so resolve speculations) before
26271         removing it from call_site_hash.
26272         (cgraph_edge::make_direct): Relax the initial assert to allow calling
26273         the function on speculative direct edges.
26275 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26277         PR rtl-optimization/99376
26278         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
26279         of low-order zero bits is too large, set the result to 0 directly.
26281 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
26283         PR middle-end/93235
26284         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
26285         SUBREG and a SUBREG to op_mode can't be created.
26287 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
26289         PR target/99381
26290         * config/aarch64/aarch64-sve-builtins.cc
26291         (function_resolver::require_vector_type): Handle error_mark_node.
26293 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
26295         * cfgexpand.c (expand_asm_loc): Pass new parameter.
26296         (expand_asm_stmt): Likewise.
26297         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
26298         parameter.
26299         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
26300         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
26301         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
26302         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
26303         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
26304         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
26305         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
26306         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
26307         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
26308         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
26309         * doc/tm.texi (md_asm_adjust): Likewise.
26310         * target.def (md_asm_adjust): Likewise.
26312 2021-03-04  Richard Biener  <rguenther@suse.de>
26314         PR middle-end/97855
26315         * tree-pretty-print.c: Poison pp_printf.
26316         (dump_decl_name): Avoid use of pp_printf.
26317         (dump_block_node): Likewise.
26318         (dump_generic_node): Likewise.
26320 2021-03-04  Martin Sebor  <msebor@redhat.com>
26322         PR middle-end/96963
26323         PR middle-end/94655
26324         * builtins.c (handle_array_ref): New helper.
26325         (handle_mem_ref): New helper.
26326         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
26327         into new helper functions.  Correct a workaround for vectorized
26328         assignments.
26330 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
26332         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
26333         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
26334         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
26335         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
26336         attribute for Power10.
26337         * config/rs6000/mma.md (*movoo): Likewise.
26338         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
26339         (define_mode_attr bits): Add DD/TD modes.
26340         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
26341         store_conditionalpti): Update size attribute for Power10.
26343 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26345         PR bootstrap/92002
26346         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
26347         -Wuninitialized, -Wmaybe-uninitialized.
26348         (wide-int.o-warn): Likewise.
26350 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
26352         * common/config/arm/arm-common.c: Include configargs.h.
26353         (arm_config_default): New function.
26354         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
26355         processors that do not support Thumb.  Take into account the
26356         --with-mode configuration setting for selecting the default.
26357         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
26358         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
26360 2021-03-03  Martin Liska  <mliska@suse.cz>
26362         PR gcov-profile/97461
26363         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
26365 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26367         PR target/99234
26368         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
26369         point back the hard frame pointer to its default location when the
26370         frame is larger than SEH_MAX_FRAME_SIZE.
26372 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
26374         PR target/99321
26375         * config/i386/predicates.md (logic_operator): New define_predicate.
26376         * config/i386/i386.md (mov + mem using comm arith peephole2):
26377         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
26378         and the inner mode is [QH]Imode.
26380 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
26382         PR debug/99090
26383         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
26384         (new_loc_list): Clear end_entry.
26385         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
26386         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
26387         typo.
26388         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
26389         initialize also end_entry.
26391 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
26393         PR target/99085
26394         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
26395         partitions, if in non-layout mode after reorder_blocks also move
26396         affected blocks to ensure a single partition transition.
26398 2021-03-03  Jason Merrill  <jason@redhat.com>
26400         PR c++/96078
26401         * cgraphunit.c (process_function_and_variable_attributes): Don't
26402         warn about flatten on an alias if the target also has it.
26403         * cgraph.h (symtab_node::get_alias_target_tree): New.
26405 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
26407         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
26408         period to symbol name.
26409         (tls_get_addr_internal<mode>): Same.
26411 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
26413         PR c/99323
26414         * diagnostic-show-locus.c
26415         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
26416         column 0.
26418 2021-03-02  Martin Sebor  <msebor@redhat.com>
26420         PR middle-end/99276
26421         * builtins.c (warn_for_access): Remove stray warning text.
26423 2021-03-02  Martin Sebor  <msebor@redhat.com>
26425         PR middle-end/99295
26426         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
26427         property.
26429 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
26431         PR debug/99319
26432         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
26433         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
26434         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
26435         DW_MACRO_define_strx and DW_MACRO_undef_strx.
26436         (save_macinfo_strings): Use DW_MACRO_*_str* even with
26437         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
26438         DW_MACRO_undef_strx.
26440 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
26442         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
26443         builtin signature.
26444         (BT_FN_V8HI_V8HI_UINT): Likewise.
26445         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
26446         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
26447         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
26448         New builtin definitions.
26449         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
26450         vector extension version.
26451         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
26452         available with current -march level.
26453         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
26454         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
26455         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
26456         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
26457         (vec_extend_to_fp32_lo): Likewise.
26458         (vec_round_from_fp32): Likewise.
26459         (vec_convert_to_fp16): Likewise.
26460         (vec_convert_from_fp16): Likewise.
26461         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
26462         (vclfnls_v8hi): Likewise.
26463         (vcrnfs_v8hi): Likewise.
26464         (vcfn_v8hi): Likewise.
26465         (vcnf_v8hi): Likewise.
26467 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
26469         * common/config/s390/s390-common.c (processor_flags_table): New entry.
26470         * config.gcc: Enable arch14 for --with-arch and --with-tune.
26471         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
26472         arch14 for unknown CPU models.
26473         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
26474         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
26475         (s390_get_sched_attrmask): Likewise.
26476         (s390_get_unit_mask): Likewise.
26477         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
26478         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
26479         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
26480         (TARGET_NNPA_P): New macro definitions.
26481         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
26482         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
26484 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
26486         PR middle-end/95757
26487         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
26488         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
26489         != 1 comparisons if name is lhs of a comparison.
26491 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
26493         PR target/44107
26494         PR target/48097
26495         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
26496         * config/darwin.c (darwin_should_restore_cfa_state): New.
26497         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
26498         * doc/tm.texi: Regenerated.
26499         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
26500         * dwarf2cfi.c (connect_traces): If the target requests, restore
26501         the CFA expression after a DW_CFA_restore.
26502         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
26504 2021-03-01  Martin Liska  <mliska@suse.cz>
26506         PR target/99313
26507         * optc-save-gen.awk: Add 4 more exceptions.
26509 2021-03-01  Nathan Sidwell  <nathan@acm.org>
26511         PR c++/99294
26512         * tree.h (TYPE_ALIGN_RAW): New accessor.
26513         (TYPE_ALIGN): Use it.
26515 2021-03-01  Jan Hubicka  <jh@suse.cz>
26517         PR ipa/98338
26518         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
26520 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
26522         PR target/99234
26523         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
26524         point the hard frame pointer to the SSE register save area instead
26525         of the general register save area.  Perform only minimal adjustment
26526         for small frames if it is initially not correctly aligned.
26527         (ix86_expand_prologue): Remove early saves for a SEH target.
26528         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
26530 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
26532         PR c/99304
26533         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
26534         typo - referneced -> referenced.
26535         * tree.c (component_ref_size): Fix comment typo -
26536         refernce -> reference.
26537         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
26538         traling -> trailing.
26539         (aliasing_component_refs_p): Fix comment typos -
26540         refernce -> reference and refernece -> reference and
26541         traling -> trailing.
26542         (nonoverlapping_refs_since_match_p): Fix comment typo -
26543         referneces -> references.
26544         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
26545         referneces -> references.
26547 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
26549         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
26550         diagnostic message to avoid use of a contraction and format
26551         warning.
26553 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
26555         PR other/99288
26556         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
26557         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
26558         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
26559         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
26560         typos.
26562 2021-02-26  Richard Biener  <rguenther@suse.de>
26564         PR middle-end/99281
26565         * expr.c (store_field): For calls with return-slot optimization
26566         and addressable return type expand the store directly.
26568 2021-02-26  Richard Biener  <rguenther@suse.de>
26570         PR c/99275
26571         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
26573 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
26575         PR target/99279
26576         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
26577         with an "if" test.
26579 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
26581         * config.gcc: Add rs6000-pcrel-opt.o.
26582         * config/rs6000/rs6000-pcrel-opt.c: New file.
26583         * config/rs6000/pcrel-opt.md: New file.
26584         * config/rs6000/predicates.md: Add d_form_memory predicate.
26585         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
26586         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
26587         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
26588         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
26589         and make_pass_pcrel_opt().
26590         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
26591         (rs6000_option_override_internal): Add pcrel-opt.
26592         (rs6000_delegitimize_address): Support pcrel-opt.
26593         (rs6000_opt_masks): Add pcrel-opt.
26594         (pcrel_opt_valid_mem_p): New function.
26595         (reg_to_non_prefixed): Make global.
26596         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
26597         (output_pcrel_opt_reloc): New function.
26598         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
26599         (pcrel_extern_addr): Set loads_extern_addr.
26600         Add include for pcrel-opt.md.
26601         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
26602         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
26603         pcrel-opt.md.
26605 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
26607         PR target/98996
26608         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
26609         If TARGET_64BIT and dest is SUBREG, we check the width, if it
26610         equal to SImode, we use SImode operation, just like what we are
26611         doing for REG one.
26613 2021-02-26  Marek Polacek  <polacek@redhat.com>
26615         * builtins.c (warn_for_access): Fix typos.
26617 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
26619         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
26620         mark in front of the immediate quantity.
26621         (<optab>_rolsi3_uxtw): Likewise.
26623 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
26625         PR target/99271
26626         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
26627         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
26628         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
26629         address and disable when the FPCXT is not available.
26630         (nonsecure_call_value_reg_thumb2): Likewise.
26632 2021-02-25  Nathan Sidwell  <nathan@acm.org>
26634         PR c++/99166
26635         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
26637 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
26639         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
26641 2021-02-25  Richard Biener  <rguenther@suse.de>
26643         PR tree-optimization/99253
26644         * tree-vect-loop.c (check_reduction_path): First compute
26645         code, then verify out-of-loop uses.
26647 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
26649         PR target/95798
26650         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
26652 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
26654         PR tree-optimization/80635
26655         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
26656         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
26657         has mode precision.
26659 2021-02-25  Richard Biener  <rguenther@suse.de>
26661         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
26662         load_map population.
26663         (vect_match_slp_patterns_2): Revert part of last change.
26664         (vect_analyze_slp): Do not interleave optimize_load_redistribution
26665         with pattern detection but do it afterwards.  Dump the
26666         whole SLP graph after pattern recognition and load
26667         redistribution optimization finished.
26669 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
26671         PR fortran/99226
26672         * omp-low.c (struct omp_context): Add teams_nested_p and
26673         nonteams_nested_p members.
26674         (scan_omp_target): Diagnose teams nested inside of target with other
26675         directives strictly nested inside of the same target.
26676         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
26677         ctx->nonteams_nested_p as needed.
26679 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
26681         PR inline-asm/99123
26682         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
26684 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
26686         * config/cris/cris.c (cris_expand_prologue): Set
26687         current_function_static_stack_size, if flag_stack_usage_info.
26689 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
26691         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
26692         (rs6000_final_prescan_insn): Adjust.
26693         (rs6000_asm_output_opcode): Likewise.
26695 2021-02-24  Martin Sebor  <msebor@redhat.com>
26697         PR middle-end/97172
26698         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
26699         from function arguments.
26701 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
26703         PR tree-optimization/99220
26704         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
26705         node from cache when it's about to be deleted.
26707 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
26709         PR tree-optimization/99225
26710         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
26711         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
26712         build_int_cst (..., 1).  Formatting fixes.
26714 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
26716         PR tree-optimization/99149
26717         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
26718         buffer.
26719         (vect_slp_reset_pattern): Remove.
26720         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
26721         (complex_mul_pattern::build, complex_fma_pattern::build,
26722         complex_fms_pattern::build): Fix ref counts.
26723         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
26724         when node is being deleted.
26725         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
26726         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
26727         stores.
26728         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
26730 2021-02-24  Matthias Klose  <doko@ubuntu.com>
26732         Revert:
26733         2020-12-07  Matthias Klose  <doko@ubuntu.com>
26735         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
26736         and ENABLE_RTL_FLAG_CHECKING.
26738 2021-02-24  Richard Biener  <rguenther@suse.de>
26740         PR c/99224
26741         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
26743 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
26745         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
26746         (vsx_assemble_pair): ...to this.
26747         (*mma_assemble_pair): Rename from this...
26748         (*vsx_assemble_pair): ...to this.
26749         (mma_disassemble_pair): Rename from this...
26750         (vsx_disassemble_pair): ...to this.
26751         (*mma_disassemble_pair): Rename from this...
26752         (*vsx_disassemble_pair): ...to this.
26753         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
26754         BU_COMPAT): New macros.
26755         (mma_assemble_pair): Rename from this...
26756         (vsx_assemble_pair): ...to this.
26757         (mma_disassemble_pair): Rename from this...
26758         (vsx_disassemble_pair): ...to this.
26759         (mma_assemble_pair): New compatibility built-in.
26760         (mma_disassemble_pair): Likewise.
26761         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
26762         (RS6000_BUILTIN_COMPAT): Define.
26763         (bdesc_compat): New.
26764         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
26765         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
26766         and VSX_BUILTIN_ASSEMBLE_PAIR.
26767         (rs6000_init_builtins): Register compatibility built-ins.
26768         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
26769         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
26770         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
26771         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
26772         (__builtin_vsx_assemble_pair): ...to this.
26773         (__builtin_mma_disassemble_pair): Rename from this...
26774         (__builtin_vsx_disassemble_pair): ...to this.
26776 2021-02-23  Martin Liska  <mliska@suse.cz>
26778         PR sanitizer/99168
26779         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
26780         with different alignment. That leads to an invalid red zone
26781         size allocated in runtime.
26783 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
26785         PR tree-optimization/99204
26786         * fold-const.c (fold_read_from_constant_string): Check that
26787         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
26789 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
26790             Kewen Lin  <linkw@gcc.gnu.org>
26792         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
26793         (rotl<mode>3_insert_3): ...this.
26794         (plus_ior_xor): New code_iterator.
26795         (define_split for GPR rl*imi): New splitter.
26796         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
26797         for integer merging.
26799 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26801         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
26802         Define.
26803         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
26804         into a register when the above is enabled.
26805         * config/aarch64/aarch64.c (neoversev1_tunings):
26806         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
26807         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
26809 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
26811         * config/cris/cris.c (cris_print_operand) <'T'>: Change
26812         valid operand from is now an addi mult-value to shift-value.
26813         * config/cris/cris.md (*addi): Change expression of scaled
26814         operand from mult to ashift.
26815         * config/cris/cris.md (*addi_reload): New insn_and_split.
26817 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
26819         PR target/85074
26820         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
26821         hook_bool_const_tree_hwi_hwi_const_tree_true.
26822         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
26824 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26826         PR rtl-optimization/98791
26827         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
26828         for unordered modes.
26830 2021-02-22  Martin Liska  <mliska@suse.cz>
26832         * tree-inline.c (inline_forbidden_p): Set
26833         inline_forbidden_reason.
26835 2021-02-22  Richard Biener  <rguenther@suse.de>
26837         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
26838         costed subgraph.
26840 2021-02-22  Richard Biener  <rguenther@suse.de>
26842         PR tree-optimization/99165
26843         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
26844         Accumulate changed to ret.
26846 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
26848         Revert:
26849         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
26851         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
26853 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
26855         PR target/99134
26856         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
26857         pattern.
26858         (trunctf<DFP_ALL:mode>2): Likewise.
26859         (trunctdtf2_vr): Likewise.
26860         (trunctdtf2): Likewise.
26861         (extend<DFP_ALL:mode>tf2_vr): Likewise.
26862         (extend<DFP_ALL:mode>tf2): Likewise.
26863         (extendtftd2_vr): Likewise.
26864         (extendtftd2): Likewise.
26866 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
26868         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
26869         add memory alternative.
26870         (tf_to_fprx2): New pattern.
26872 2021-02-19  Martin Sebor  <msebor@redhat.com>
26874         PR c/97172
26875         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
26876         (attr_access::free_lang_data): Remove a spurious test.
26878 2021-02-19  Nathan Sidwell  <nathan@acm.org>
26880         * doc/invoke.texi (flang-info-module-read): Document.
26882 2021-02-19  Martin Liska  <mliska@suse.cz>
26884         PR translation/99167
26885         * params.opt: Fix typo.
26887 2021-02-19  Richard Biener  <rguenther@suse.de>
26889         PR middle-end/99122
26890         * tree-inline.c (inline_forbidden_p): Do not inline functions
26891         with VLA arguments or return value.
26893 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
26895         PR target/98998
26896         * config/arm/arm.md (*stack_protect_combined_set_insn,
26897         *stack_protect_combined_test_insn): If force_const_mem result
26898         is not valid general operand, force its address into the destination
26899         register first.
26901 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
26903         PR ipa/99034
26904         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
26905         pad or non-local label, put FORCED_LABELs from bb b after that label
26906         rather than before it.
26908 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26910         PR target/98657
26911         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
26912         expand_vector_broadcast' to emit the vec_duplicate operand.
26914 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
26916         PR rtl-optimization/96264
26917         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
26918         hard regs.
26920 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
26922         PR target/99113
26923         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
26924         looking up the retain attribute.
26925         (resolve_unique_section): Likewise.
26926         (get_variable_section): Likewise.
26927         (switch_to_section): Likewise.  Warn when a symbol without the
26928         retain attribute and a symbol with the retain attribute are
26929         placed in the section with the same name, instead of the used
26930         attribute.
26931         * doc/extend.texi: Document the "retain" attribute.
26933 2021-02-18  Nathan Sidwell  <nathan@acm.org>
26935         PR c++/99023
26936         * doc/invoke.texi (flang-info-include-translate): Document header
26937         lookup behaviour.
26939 2021-02-18  Richard Biener  <rguenther@suse.de>
26941         PR middle-end/99122
26942         * ipa-fnsummary.c (analyze_function_body): Set
26943         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
26944         * tree-inline.c (insert_init_debug_bind): Pass NULL for
26945         error_mark_node values.
26946         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
26947         values.
26948         (setup_one_parameter): Delay force_value_to_type until when
26949         it's needed.
26951 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
26953         PR tree-optimization/99142
26954         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
26956 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
26958         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
26959         wide_int_bitmask::wide_int_bitmask (uint64_t),
26960         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
26961         wide_int_bitmask::operator ~ () const,
26962         wide_int_bitmask::operator | (wide_int_bitmask) const,
26963         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
26964         instead of inline.
26965         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
26966         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
26967         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
26968         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
26969         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
26970         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
26971         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
26972         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
26973         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
26974         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
26975         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
26976         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
26977         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
26978         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
26979         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
26980         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
26981         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
26982         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
26983         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
26984         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
26985         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
26986         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
26987         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
26988         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
26990 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
26992         PR middle-end/99109
26993         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
26994         (build_printable_array_type): ... this.  Add nelts argument.  For
26995         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
26996         nelts, call build_array_type_nelts.
26997         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
26998         instead of build_zero_elt_array_type and build_array_type_nelts.
27000 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
27002         PR target/99104
27003         * config/i386/i386.c (distance_non_agu_define): Don't call
27004         extract_insn_cached here.
27005         (ix86_lea_outperforms): Save and restore recog_data around call
27006         to distance_non_agu_define and distance_agu_use.
27007         (ix86_ok_to_clobber_flags): Remove.
27008         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
27009         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
27010         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
27011         into define_insn.  Move the splitting to define_peephole2 and
27012         check there using peep2_regno_dead_p if FLAGS_REG is dead.
27014 2021-02-17  Julian Brown  <julian@codesourcery.com>
27016         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
27017         for non-decls.
27019 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
27021         PR target/98491
27022         * config/mips/mips.c (mips_symbol_insns): Do not use
27023         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
27025 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
27027         PR inline-asm/98096
27028         * stmt.c (resolve_operand_name_1): Take inout operands into account
27029         for access to labels by names.
27030         * doc/extend.texi: Describe counting operands for accessing labels.
27032 2021-02-16  Richard Biener  <rguenther@suse.de>
27034         PR tree-optimization/38474
27035         * tree-ssa-structalias.c (variable_info::address_taken): New.
27036         (new_var_info): Initialize address_taken.
27037         (process_constraint): Set address_taken.
27038         (solve_constraints): Use the new address_taken flag rather
27039         than is_reg_var for sorting variables.
27040         (dump_constraint): Dump the variable number if the name
27041         is just NULL.
27043 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
27045         PR target/99100
27046         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
27047         multiply by 4096 and for inbranch by 8192.
27048         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
27049         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
27051 2021-02-15  Maya Rashish  <coypu@sdf.org>
27053         * config/aarch64/aarch64.c (aarch64_init_builtins):
27054         Call SUBTARGET_INIT_BUILTINS.
27056 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
27058         PR rtl-optimization/98872
27059         * init-regs.c (initialize_uninitialized_regs): Skip initialization
27060         if CONST0_RTX is NULL.
27062 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
27064         PR rtl-optimization/98863
27065         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
27066         (function_info::build_info): Turn into a declaration, moving the
27067         definition to internals.h.
27068         (function_info::bb_walker): Declare.
27069         (function_info::create_reg_use): Likewise.
27070         (function_info::calculate_potential_phi_regs): Take a build_info
27071         parameter.
27072         (function_info::place_phis, function_info::create_ebbs): Declare.
27073         (function_info::calculate_ebb_live_in_for_debug): Likewise.
27074         (function_info::populate_backedge_phis): Delete.
27075         (function_info::start_block, function_info::end_block): Declare.
27076         (function_info::populate_phi_inputs): Delete.
27077         (function_info::m_potential_phi_regs): Move information to build_info.
27078         * rtl-ssa/internals.h: New file.
27079         (function_info::bb_phi_info): New class.
27080         (function_info::build_info): Moved from functions.h.
27081         Add a constructor and destructor.
27082         (function_info::build_info::ebb_use): Delete.
27083         (function_info::build_info::ebb_def): Likewise.
27084         (function_info::build_info::bb_live_out): Likewise.
27085         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
27086         (function_info::build_info::potential_phi_regs): Likewise.
27087         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
27088         (function_info::build_info::ebb_def_regs): Likewise.
27089         (function_info::build_info::bb_phis): Likewise.
27090         (function_info::build_info::bb_mem_live_out): Likewise.
27091         (function_info::build_info::bb_to_rpo): Likewise.
27092         (function_info::build_info::def_stack): Likewise.
27093         (function_info::build_info::old_def_stack_limit): Likewise.
27094         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
27095         Remove the regno argument.  Push the previous definition onto the
27096         definition stack where necessary.
27097         * rtl-ssa/accesses.cc: Include internals.h.
27098         * rtl-ssa/changes.cc: Likewise.
27099         * rtl-ssa/blocks.cc: Likewise.
27100         (function_info::build_info::build_info): Define.
27101         (function_info::build_info::~build_info): Likewise.
27102         (function_info::bb_walker): New class.
27103         (function_info::bb_walker::bb_walker): Define.
27104         (function_info::add_live_out_use): Convert a logarithmic-complexity
27105         test into a linear one.  Allow the same definition to be passed
27106         multiple times.
27107         (function_info::calculate_potential_phi_regs): Moved from
27108         functions.cc.  Take a build_info parameter and store the
27109         information there instead.
27110         (function_info::place_phis): New function.
27111         (function_info::add_entry_block_defs): Update call to record_reg_def.
27112         (function_info::calculate_ebb_live_in_for_debug): New function.
27113         (function_info::add_phi_nodes): Use bb_phis to decide which
27114         registers need phi nodes and initialize ebb_def_regs accordingly.
27115         Do not add degenerate phis here.
27116         (function_info::add_artificial_accesses): Use create_reg_use.
27117         Assert that all definitions are listed in the DF LR sets.
27118         Update call to record_reg_def.
27119         (function_info::record_block_live_out): Record live-out register
27120         values in the phis of successor blocks.  Use the live-out set
27121         when processing the last block in an EBB, instead of always
27122         using the live-in sets of successor blocks.  AND the live sets
27123         with the set of registers that have been defined in the EBB,
27124         rather than with all potential phi registers.  Cope correctly
27125         with branches back to the start of the current EBB.
27126         (function_info::start_block): New function.
27127         (function_info::end_block): Likewise.
27128         (function_info::populate_phi_inputs): Likewise.
27129         (function_info::create_ebbs): Likewise.
27130         (function_info::process_all_blocks): Rewrite into a multi-phase
27131         process.
27132         * rtl-ssa/functions.cc: Include internals.h.
27133         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
27134         (function_info::init_function_data): Remove caller.
27135         * rtl-ssa/insns.cc: Include internals.h
27136         (function_info::create_reg_use): New function.  Lazily any
27137         degenerate phis needed by the linear RPO view.
27138         (function_info::record_use): Use create_reg_use.  When processing
27139         debug uses, use potential_phi_regs and test it before checking
27140         whether the register is live on entry to the current EBB.  Lazily
27141         calculate ebb_live_in_for_debug.
27142         (function_info::record_call_clobbers): Update call to record_reg_def.
27143         (function_info::record_def): Likewise.
27145 2021-02-15  Martin Liska  <mliska@suse.cz>
27147         * toplev.c (init_asm_output): Free output of
27148         gen_command_line_string function.
27149         (process_options): Likewise.
27151 2021-02-15  Martin Liska  <mliska@suse.cz>
27153         * params.opt: Add 2 missing Param keywords.
27155 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
27157         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
27159 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
27161         PR tree-optimization/99079
27162         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
27163         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
27164         require both type and TREE_TYPE (@1) to be integral types and either
27165         type having smaller or equal precision, or TREE_TYPE (@1) being
27166         unsigned type, or type being signed type.  If TREE_TYPE (@1)
27167         doesn't have wrapping overflow, perform the subtraction of one in
27168         unsigned type.
27170 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
27171             Richard Biener  <rguether@suse.de>
27173         PR ipa/97346
27174         * ipa-reference.c (ipa_init): Only conditinally initialize
27175         reference_vars_to_consider.
27176         (propagate): Conditionally deninitialize reference_vars_to_consider.
27177         (ipa_reference_write_optimization_summary): Sanity check that
27178         reference_vars_to_consider is not allocated.
27180 2021-02-13  Levy Hsu  <admin@levyhsu.com>
27182         PR target/97417
27183         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
27184         extend parameter to get_si_mem_base_reg declaration.
27185         (get_si_mem_base_reg): Add extend parameter.  Set it.
27186         (analyze): Pass extend arg to get_si_mem_base_reg.
27187         (transform): Likewise.  Use it when rewriting mems.
27188         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
27189         loads and emit sign/zero extending load followed by subreg move.
27191 2021-02-13  Jim Wilson  <jimw@sifive.com>
27193         PR target/97417
27194         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
27195         exit when !reload_completed.  Only perform check for compressed reg
27196         if reload_completed.
27197         (riscv_rtx_costs): In MEM case, when optimizing for size and
27198         shorten memrefs, if not compressible, then increase cost.
27200 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
27202         PR rtl-optimization/98439
27203         * recog.c (pass_split_before_regstack::gate): Enable even when
27204         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
27205         on.
27207 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
27209         PR target/96166
27210         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
27211         swap of V2SImode elements in memory into DImode memory rotate by 32.
27213 2021-02-12  Martin Sebor  <msebor@redhat.com>
27215         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
27217 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
27219         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
27220         m_temp_obstack rather than m_obstack to allocate the temporary use.
27222 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
27224         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
27225         as read-modify operations.
27227 2021-02-12  Richard Biener  <rguenther@suse.de>
27229         PR middle-end/38474
27230         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
27231         fbi->aa_walk_budget is bigger than zero.  Update
27232         fbi->aa_walk_budget.
27233         (param_change_prob): Likewise.
27234         * ipa-prop.c (detect_type_change_from_memory_writes):
27235         Properly account walk_aliased_vdefs.
27236         (parm_preserved_before_stmt_p): Canonicalize updates.
27237         (parm_ref_data_preserved_p): Likewise.
27238         (parm_ref_data_pass_through_p): Likewise.
27239         (determine_known_aggregate_parts): Account own alias queries.
27241 2021-02-12  Martin Liska  <mliska@suse.cz>
27243         * opts-common.c (decode_cmdline_option): Release werror_arg.
27244         * opts.c (gen_producer_string): Release output of
27245         gen_command_line_string.
27247 2021-02-12  Richard Biener  <rguenther@suse.de>
27249         PR tree-optimization/38474
27250         * params.opt (-param=max-store-chains-to-track=): New param.
27251         (-param=max-stores-to-track=): Likewise.
27252         * doc/invoke.texi (max-store-chains-to-track): Document.
27253         (max-stores-to-track): Likewise.
27254         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
27255         New.
27256         (pass_store_merging::m_n_stores): Likewise.
27257         (pass_store_merging::terminate_and_process_chain): Update
27258         m_n_stores and m_n_chains.
27259         (pass_store_merging::process_store): Likewise.   Terminate
27260         oldest chains if the number of stores or chains get too large.
27261         (imm_store_chain_info::terminate_and_process_chain): Dump
27262         chain length.
27264 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27266         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
27267         the cold section, emit a nop before the directive if the previous
27268         active instruction can throw.
27270 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
27272         PR target/99041
27273         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
27274         memory addresses that are legal for quad word accesses.
27276 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
27278         PR target/98931
27279         * config/arm/thumb2.md (*doloop_end_internal): Generate
27280         alternative sequence to handle long range branches.
27282 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
27284         PR tree-optimization/98772
27285         * optabs-tree.c (supportable_half_widening_operation): New function
27286         to check for supportable V8QI->V8HI widening patterns.
27287         * optabs-tree.h (supportable_half_widening_operation): New function.
27288         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
27289         to create promotion stmts for V8QI->V8HI widening patterns.
27290         (vectorizable_conversion): Add case for V8QI->V8HI.
27292 2021-02-11  Richard Biener  <rguenther@suse.de>
27294         * sparseset.h (SPARSESET_ELT_BITS): Remove.
27295         (SPARSESET_ELT_TYPE): Use unsigned int.
27296         * fwprop.c: Do not include sparseset.h.
27298 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27300         PR c++/99035
27301         * varasm.c (declare_weak): For -fsyntax-only, allow even
27302         TREE_ASM_WRITTEN function decls.
27304 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27306         PR target/99025
27307         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
27308         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
27309         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
27310         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
27311         calling simplify_gen_subreg on it.
27313 2021-02-10  Martin Liska  <mliska@suse.cz>
27315         * config/nvptx/nvptx.c (nvptx_option_override): Use
27316         flag_patchable_function_entry instead of the removed
27317         function_entry_patch_area_size.
27319 2021-02-10  Martin Liska  <mliska@suse.cz>
27321         PR tree-optimization/99002
27322         PR tree-optimization/99026
27323         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
27324         leak when adjacent cases are merged.
27325         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
27326         release_clusters.
27327         (make_pass_lower_switch): Remove trailing whitespace.
27328         * tree-switch-conversion.h (release_clusters): New.
27330 2021-02-10  Richard Biener  <rguenther@suse.de>
27332         PR rtl-optimization/99054
27333         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
27334         (fixup_partitions): Adjust.
27335         (rtl_verify_edges): Likewise.
27337 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27339         PR middle-end/99007
27340         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
27341         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
27342         calls.
27344 2021-02-10  Richard Biener  <rguenther@suse.de>
27346         PR ipa/99029
27347         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
27348         for callees.
27350 2021-02-10  Richard Biener  <rguenther@suse.de>
27352         PR tree-optimization/99024
27353         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
27354         clear loop->aux if it is associated with the destroyed loop_vinfo.
27356 2021-02-10  Martin Liska  <mliska@suse.cz>
27358         PR tree-optimization/99002
27359         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
27360         in the function.
27362 2021-02-10  Martin Liska  <mliska@suse.cz>
27364         PR ipa/99003
27365         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
27366         a reference exists.
27368 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27370         PR debug/98755
27371         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
27372         at class scope for DWARF5+.
27374 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27376         PR rtl-optimization/96015
27377         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
27378         (relax_delay_slots): When deleting a jump to the next active
27379         instruction over a barrier, first delete the barrier if the
27380         jump is the only way to reach the target label.
27382 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27384         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
27385         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
27386         vector multiplies and vect.alu for SSRA.
27387         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
27388         vect.mul cost field.
27389         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
27390         * config/arm/arm.c: Likewise.
27392 2021-02-09  Richard Biener  <rguenther@suse.de>
27394         PR tree-optimization/98863
27395         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
27396         * tree-ssa-sccvn.c (last_pushed_avail): New global.
27397         (rpo_elim::eliminate_push_avail): Chain pushed avails.
27398         (unwind_state::avail_top): Add.
27399         (do_unwind): Rewrite unwinding of avail entries.
27400         (do_rpo_vn): Initialize last_pushed_avail and
27401         avail_top of the undo state.
27403 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
27405         PR middle-end/99004
27406         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
27407         const char * to char * and free those pointers after use.
27409 2021-02-09  Richard Biener  <rguenther@suse.de>
27411         PR tree-optimization/99017
27412         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
27413         zero vector cost entries.
27415 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27417         PR middle-end/98974
27418         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
27419         parameter in vectorizable_condition.
27421 2021-02-08  Richard Biener  <rguenther@suse.de>
27423         PR lto/96591
27424         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
27426 2021-02-08  Martin Liska  <mliska@suse.cz>
27428         PR lto/98971
27429         * cfgexpand.c (pass_expand::execute): Parse per-function option
27430         flag_patchable_function_entry and use it.
27431         * common.opt: Remove function_entry_patch_area_size and
27432         function_entry_patch_area_start global variables.
27433         * opts.c (parse_and_check_patch_area): New function.
27434         (common_handle_option): Use it.
27435         * opts.h (parse_and_check_patch_area): New function.
27436         * toplev.c (process_options): Parse and use
27437         function_entry_patch_area_size.
27439 2021-02-08  Martin Sebor  <msebor@redhat.com>
27441         * doc/extend.texi (attribute malloc): Correct typos.
27443 2021-02-05  Nathan Sidwell  <nathan@acm.org>
27445         PR driver/98943
27446         * gcc.c (driver::maybe_run_linker): Check for input file
27447         accessibility if not linking.
27449 2021-02-05  Richard Biener  <rguenther@suse.de>
27451         PR tree-optimization/98855
27452         * tree-vectorizer.h (add_stmt_cost): New overload.
27453         * tree-vect-slp.c (li_cost_vec_cmp): New.
27454         (vect_bb_slp_scalar_cost): Cost individual loop regions
27455         separately.  Account for the scalar instance root stmt.
27457 2021-02-05  Tom de Vries  <tdevries@suse.de>
27459         PR debug/98656
27460         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
27461         argument.
27462         (bit_test_cluster::emit): Reuse location_t for newly created
27463         gswitch statement.
27464         (switch_decision_tree::try_switch_expansion): Preserve
27465         location_t.
27466         * tree-switch-conversion.h: Change function signatures.
27468 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
27470         PR target/98957
27471         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
27472         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
27473         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
27474         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
27476 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27478         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
27479         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
27480         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
27481         (vget_high_f16): Reimplement using new builtin.
27482         (vget_high_f32): Likewise.
27483         (vget_high_f64): Likewise.
27484         (vget_high_p8): Likewise.
27485         (vget_high_p16): Likewise.
27486         (vget_high_p64): Likewise.
27487         (vget_high_s8): Likewise.
27488         (vget_high_s16): Likewise.
27489         (vget_high_s32): Likewise.
27490         (vget_high_s64): Likewise.
27491         (vget_high_u8): Likewise.
27492         (vget_high_u16): Likewise.
27493         (vget_high_u32): Likewise.
27494         (vget_high_u64): Likewise.
27496 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27498         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
27499         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
27500         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
27501         (vget_low_f16): Reimplement using new builtin.
27502         (vget_low_f32): Likewise.
27503         (vget_low_f64): Likewise.
27504         (vget_low_p8): Likewise.
27505         (vget_low_p16): Likewise.
27506         (vget_low_p64): Likewise.
27507         (vget_low_s8): Likewise.
27508         (vget_low_s16): Likewise.
27509         (vget_low_s32): Likewise.
27510         (vget_low_s64): Likewise.
27511         (vget_low_u8): Likewise.
27512         (vget_low_u16): Likewise.
27513         (vget_low_u32): Likewise.
27514         (vget_low_u64): Likewise.
27516 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
27518         * gcc.c (print_multilib_info): Check all required argument is provided
27519         by default arg.
27521 2021-02-05  liuhongt  <hongtao.liu@intel.com>
27523         PR target/98537
27524         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
27525         generate integer mask comparison for 128/256-bits vector when
27526         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
27527         delete redundant !maskcmp condition.
27528         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
27529         here.
27530         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
27531         condition directly to if (maskcmp), add extra check for
27532         cmpmode, it should be MODE_INT.
27533         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
27534         parameters op_true/op_false.
27535         (ix86_use_mask_cmp_p): New.
27537 2021-02-05  liuhongt  <hongtao.liu@intel.com>
27539         PR target/98172
27540         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
27541         Remove m_GENERIC from ~list.
27542         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
27544 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
27546         PR c/97932
27547         * diagnostic-show-locus.c (compatible_locations_p): Require
27548         locations in the same macro map to be either both from the
27549         macro definition, or both from the macro arguments.
27551 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
27553         * config/aarch64/aarch64-simd-builtins.def: Add
27554         [su]mull_hi_lane[q] builtin generator macros.
27555         * config/aarch64/aarch64-simd.md
27556         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
27557         (aarch64_<su>mull_hi_lane<mode>): Define.
27558         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
27559         (aarch64_<su>mull_hi_laneq<mode>): Define.
27560         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
27561         builtin instead of inline asm.
27562         (vmull_high_lane_s32): Likewise.
27563         (vmull_high_lane_u16): Likewise.
27564         (vmull_high_lane_u32): Likewise.
27565         (vmull_high_laneq_s16): Likewise.
27566         (vmull_high_laneq_s32): Likewise.
27567         (vmull_high_laneq_u16): Likewise.
27568         (vmull_high_laneq_u32): Liekwise.
27570 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
27572         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
27573         builtin generator macros.
27574         * config/aarch64/aarch64-simd.md
27575         (aarch64_<su>mull_hi_n<mode>_insn): Define.
27576         (aarch64_<su>mull_hi_n<mode>): Define.
27577         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
27578         instead of inline asm.
27579         (vmull_high_n_s32): Likewise.
27580         (vmull_high_n_u16): Likewise.
27581         (vmull_high_n_u32): Likewise.
27583 2021-02-04  Richard Biener  <rguenther@suse.de>
27585         PR tree-optimization/98855
27586         * tree-vect-loop.c (vectorizable_phi): Do not cost
27587         single-argument PHIs.
27588         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
27589         * tree-vect-stmts.c (vectorizable_bswap): Also perform
27590         costing for SLP operation.
27592 2021-02-04  Martin Liska  <mliska@suse.cz>
27594         * doc/extend.texi: Mention -mprefer-vector-width in target
27595         attributes.
27597 2021-02-03  Martin Sebor  <msebor@redhat.com>
27599         PR tree-optimization/98937
27600         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
27601         Flush pointer_query cache.
27603 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
27605         * config/rs6000/genfusion.pl (gen_2logical): Add missing
27606         fixes based on patch review.
27607         * config/rs6000/fusion.md: Regenerate file.
27609 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
27611         * config/rs6000/t-rs6000: Comment out auto generation of
27612         fusion.md for now.
27614 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
27616         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
27617         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
27618         (output_file_start): Add gfx908.
27619         * config/gcn/gcn.opt (gpu_type): Add gfx908.
27620         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
27621         (MULTILIB_DIRNAMES): Add gfx908.
27622         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
27623         (main): Recognize gfx908.
27624         * config/gcn/t-omp-device: Add gfx908.
27626 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
27628         * config/aarch64/aarch64-simd-builtins.def: Add
27629         [su]mlsl_hi_lane[q] builtin macro generators.
27630         * config/aarch64/aarch64-simd.md
27631         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
27632         (aarch64_<su>mlsl_hi_lane<mode>): Define.
27633         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
27634         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
27635         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
27636         builtin instead of inline asm.
27637         (vmlsl_high_lane_s32): Likewise.
27638         (vmlsl_high_lane_u16): Likewise.
27639         (vmlsl_high_lane_u32): Likewise.
27640         (vmlsl_high_laneq_s16): Likewise.
27641         (vmlsl_high_laneq_s32): Likewise.
27642         (vmlsl_high_laneq_u16): Likewise.
27643         (vmlsl_high_laneq_u32): Likewise.
27644         (vmlal_high_laneq_u32): Likewise.
27646 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
27648         * config/aarch64/aarch64-simd-builtins.def: Add
27649         [su]mlal_hi_lane[q] builtin generator macros.
27650         * config/aarch64/aarch64-simd.md
27651         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
27652         (aarch64_<su>mlal_hi_lane<mode>): Define.
27653         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
27654         (aarch64_<su>mlal_hi_laneq<mode>): Define.
27655         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
27656         builtin instead of inline asm.
27657         (vmlal_high_lane_s32): Likewise.
27658         (vmlal_high_lane_u16): Likewise.
27659         (vmlal_high_lane_u32): Likewise.
27660         (vmlal_high_laneq_s16): Likewise.
27661         (vmlal_high_laneq_s32): Likewise.
27662         (vmlal_high_laneq_u16): Likewise.
27663         (vmlal_high_laneq_u32): Likewise.
27665 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
27667         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
27668         builtin generator macros.
27669         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
27670         Define.
27671         (aarch64_<su>mlsl_hi_n<mode>): Define.
27672         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
27673         instead of inline asm.
27674         (vmlsl_high_n_s32): Likewise.
27675         (vmlsl_high_n_u16): Likewise.
27676         (vmlsl_high_n_u32): Likewise.
27678 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
27680         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
27681         builtin generator macros.
27682         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
27683         Define.
27684         (aarch64_<su>mlal_hi_n<mode>): Define.
27685         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
27686         instead of inline asm.
27687         (vmlal_high_n_s32): Likewise.
27688         (vmlal_high_n_u16): Likewise.
27689         (vmlal_high_n_u32): Likewise.
27691 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
27693         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
27694         generator macros.
27695         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
27696         Rename to...
27697         (aarch64_<su>mlal_hi<mode>_insn): This.
27698         (aarch64_<su>mlal_hi<mode>): Define.
27699         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
27700         instead of inline asm.
27701         (vmlal_high_s16): Likewise.
27702         (vmlal_high_s32): Likewise.
27703         (vmlal_high_u8): Likewise.
27704         (vmlal_high_u16): Likewise.
27705         (vmlal_high_u32): Likewise.
27707 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
27709         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
27710         after calling alter_subreg() on a (mem).
27712 2021-02-03  Martin Liska  <mliska@suse.cz>
27714         PR lto/98912
27715         * lto-streamer-out.c (produce_lto_section): Fill up missing
27716         padding.
27717         * lto-streamer.h (struct lto_section): Add _padding field.
27719 2021-02-03  Richard Biener  <rguenther@suse.de>
27721         * lto-streamer.c (lto_get_section_name): Free temporary
27722         buffer.
27723         * tree-loop-distribution.c
27724         (loop_distribution::merge_dep_scc_partitions): Free edge data.
27726 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
27728         PR middle-end/97487
27729         * ifcvt.c (noce_can_force_operand): New function.
27730         (noce_emit_move_insn): Use it.
27731         (noce_try_sign_mask): Likewise.  Formatting fix.
27733 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
27735         PR middle-end/97971
27736         * lra-constraints.c (process_alt_operands): For inline asm, don't call
27737         fatal_insn, but instead return false.
27739 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
27741         PR tree-optimization/98287
27742         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
27743         for V1DImode.
27745 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
27747         PR tree-optimization/98928
27748         * tree-vect-loop.c (vect_analyze_loop_2): Change
27749         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
27750         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
27751         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
27752         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
27754 2021-02-02  Richard Biener  <rguenther@suse.de>
27756         * gimple-loop-interchange.cc (prepare_data_references):
27757         Release vectors.
27758         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
27759         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
27760         * tree-vect-stmts.c (vectorizable_condition): Do not
27761         allocate vectors.
27762         (vectorizable_comparison): Likewise.
27764 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27766         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
27767         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
27768         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
27769         (vrsqrteq_u32): Likewise.
27771 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27773         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
27774         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
27775         (aarch64_sqxtun2<mode>_be): Likewise.
27776         (aarch64_sqxtun2<mode>): Likewise.
27777         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
27778         (vqmovun_high_s32): Likewise.
27779         (vqmovun_high_s64): Likewise.
27780         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
27782 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27784         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
27785         AUTO_FP flags.
27786         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
27788 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27790         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
27791         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
27792         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
27793         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
27794         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
27795         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
27796         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
27797         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
27799 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27801         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
27802         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
27803         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
27805 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27807         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
27808         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
27810 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27812         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
27813         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
27814         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
27815         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
27816         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
27817         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
27818         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
27819         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
27820         NONE builtin flags.
27822 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
27824         PR tree-optimization/98848
27825         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
27826         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
27828 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
27830         PR target/98743
27831         * expr.c: Check mode before calling store_expr.
27833 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
27835         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
27836         (VORNQ): Remove.
27837         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
27838         instruction using expression ior.
27839         (mve_vornq_u<mode>): New expander.
27840         (mve_vornq_f<mode>): Use ior code instead of unspec.
27841         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
27843 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
27845         * tree-nested.c (convert_nonlocal_reference_op): Move
27846         current_function_decl restore after re-gimplification.
27847         (convert_local_reference_op): Likewise.
27849 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27851         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
27852         Define builtins.
27853         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
27854         Define.
27855         (aarch64_rshrn<mode>_insn_be): Likewise.
27856         (aarch64_rshrn<mode>): Likewise.
27857         (aarch64_rshrn2<mode>_insn_le): Likewise.
27858         (aarch64_rshrn2<mode>_insn_be): Likewise.
27859         (aarch64_rshrn2<mode>): Likewise.
27860         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
27861         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
27862         using builtin.
27863         (vrshrn_high_n_s32): Likewise.
27864         (vrshrn_high_n_s64): Likewise.
27865         (vrshrn_high_n_u16): Likewise.
27866         (vrshrn_high_n_u32): Likewise.
27867         (vrshrn_high_n_u64): Likewise.
27868         (vrshrn_n_s16): Likewise.
27869         (vrshrn_n_s32): Likewise.
27870         (vrshrn_n_s64): Likewise.
27871         (vrshrn_n_u16): Likewise.
27872         (vrshrn_n_u32): Likewise.
27873         (vrshrn_n_u64): Likewise.
27875 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
27877         PR tree-optimization/98499
27878         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
27879         conservatively and assume all possible side-effects.
27881 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27883         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
27884         vec_unpacku_hi_): Define builtins.
27885         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
27886         builtin.
27887         (vmovl_high_s16): Likewise.
27888         (vmovl_high_s32): Likewise.
27889         (vmovl_high_u8): Likewise.
27890         (vmovl_high_u16): Likewise.
27891         (vmovl_high_u32): Likewise.
27893 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27895         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
27896         Define builtins.
27897         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
27898         pattern.
27899         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
27900         UNSPEC_UABDL.
27901         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
27902         builtin.
27903         (vabdl_s16): Likewise.
27904         (vabdl_s32): Likewise.
27905         (vabdl_u8): Likewise.
27906         (vabdl_u16): Likewise.
27907         (vabdl_u32): Likewise.
27908         * config/aarch64/iterators.md (ABDL): New int iterator.
27909         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
27911 2021-02-01  Martin Sebor  <msebor@redhat.com>
27913         * tree.h (BLOCK_VARS): Add comment.
27914         (BLOCK_SUBBLOCKS): Same.
27915         (BLOCK_SUPERCONTEXT): Same.
27916         (BLOCK_ABSTRACT_ORIGIN): Same.
27917         (inlined_function_outer_scope_p): Same.
27919 2021-02-01  Martin Sebor  <msebor@redhat.com>
27921         PR middle-end/97172
27922         * attribs.c (attr_access::free_lang_data): Define new function.
27923         * attribs.h (attr_access::free_lang_data): Declare new function.
27925 2021-02-01  Richard Biener  <rguenther@suse.de>
27927         * vec.h (auto_vec::auto_vec): Add memory stat parameters
27928         and pass them on.
27929         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
27931 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
27933         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
27934         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
27936 2021-02-01  Richard Biener  <rguenther@suse.de>
27938         PR rtl-optimization/98863
27939         * config/i386/i386-features.c (convert_scalars_to_vector):
27940         Set DF_RD_PRUNE_DEAD_DEFS.
27942 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
27944         * system.h (SIZE_MAX): Define if not already defined.
27946 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
27948         * config/rs6000/genfusion.pl (gen_2logical): New function to
27949         generate patterns for logical-logical fusion.
27950         * config/rs6000/fusion.md: Regenerated patterns.
27951         * config/rs6000/rs6000-cpus.def: Add
27952         OPTION_MASK_P10_FUSION_2LOGICAL.
27953         * config/rs6000/rs6000.c (rs6000_option_override_internal):
27954         Enable logical-logical fusion for p10.
27955         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
27957 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
27959         * config/rs6000/rs6000.opt: Add periods to new AIX options.
27961 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
27963         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
27964         (mabi=vec-default): New.
27965         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
27966         __EXTABI__ for AIX Vector extended ABI.
27967         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
27968         extabi info.
27969         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
27970         are non-volatile.
27971         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
27973 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
27975         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
27976         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
27978 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
27980         PR target/97701
27981         * lra-constraints.c (in_class_p): Don't narrow class only for REG
27982         or MEM.
27984 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
27986         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
27987         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
27988         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
27990 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
27992         PR tree-optimization/98866
27993         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
27994         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
27995         (gori_map::m_maybe_invariant): Rename from all_outgoing.
27996         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
27997         (gori_map::is_export_p): Ditto.
27998         (gori_map::calculate_gori): Ditto.
27999         (gori_compute::set_range_invariant): New.
28000         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
28001         invariant for pointers evaluating to [1, +INF].
28003 2021-01-29  Richard Biener  <rguenther@suse.de>
28005         PR rtl-optimization/98863
28006         * config/i386/i386-features.c (remove_partial_avx_dependency):
28007         Do not perform DF analysis.
28008         (pass_data_remove_partial_avx_dependency): Remove
28009         TODO_df_finish.
28011 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
28013         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
28014         builtin generator macros.
28015         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
28016         Define.
28017         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
28018         instead of inline asm.
28019         (vmull_n_s32): Likewise.
28020         (vmull_n_u16): Likewise.
28021         (vmull_n_u32): Likewise.
28023 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28025         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
28026         Define builtins.
28027         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
28028         Rename to...
28029         (aarch64_<sur>abdl2<mode>): ... This.
28030         (<sur>sadv16qi): Adjust use of above.
28031         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
28032         builtin.
28033         (vabdl_high_s16): Likewise.
28034         (vabdl_high_s32): Likewise.
28035         (vabdl_high_u8): Likewise.
28036         (vabdl_high_u16): Likewise.
28037         (vabdl_high_u32): Likewise.
28039 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28041         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
28042         builtin.
28043         (uabal2): Likewise.
28044         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
28045         pattern.
28046         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
28047         UNSPEC_UABAL2.
28048         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
28049         builtin.
28050         (vabal_high_s16): Likewise.
28051         (vabal_high_s32): Likewise.
28052         (vabal_high_u8): Likewise.
28053         (vabal_high_u16): Likewise.
28054         (vabal_high_u32): Likewise.
28055         * config/aarch64/iterators.md (ABAL2): New mode iterator.
28056         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
28058 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28060         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
28061         builtin.
28062         (uabal): Likewise.
28063         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
28064         Rename to...
28065         (aarch64_<sur>abal<mode>): ... This
28066         (<sur>sadv16qi): Adust use of the above.
28067         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
28068         builtin.
28069         (vabal_s16): Likewise.
28070         (vabal_s32): Likewise.
28071         (vabal_u8): Likewise.
28072         (vabal_u16): Likewise.
28073         (vabal_u32): Likewise.
28075 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28077         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
28078         Define builtins.
28079         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
28080         Define.
28081         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
28082         builtin.
28083         (vaddlv_s16): Likewise.
28084         (vaddlv_u8): Likewise.
28085         (vaddlv_u16): Likewise.
28086         (vaddlvq_s8): Likewise.
28087         (vaddlvq_s16): Likewise.
28088         (vaddlvq_s32): Likewise.
28089         (vaddlvq_u8): Likewise.
28090         (vaddlvq_u16): Likewise.
28091         (vaddlvq_u32): Likewise.
28092         (vaddlv_s32): Likewise.
28093         (vaddlv_u32): Likewise.
28094         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
28095         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
28096         (Vwstype): New mode attribute.
28097         (Vwsuf): Likewise.
28098         (VWIDE_S): Likewise.
28099         (USADDLV): New int iterator.
28100         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
28102 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
28104         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
28105         builtin generator macros.
28106         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
28107         Define.
28108         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
28109         instead of inline asm.
28110         (vmlsl_lane_s32): Likewise.
28111         (vmlsl_lane_u16): Likewise.
28112         (vmlsl_lane_u32): Likewise.
28113         (vmlsl_laneq_s16): Likewise.
28114         (vmlsl_laneq_s32): Likewise.
28115         (vmlsl_laneq_u16): Likewise.
28116         (vmlsl_laneq_u32): Likewise.
28118 2021-01-29  Richard Biener  <rguenther@suse.de>
28120         * doc/invoke.texi (--param max-gcse-memory): Document unit
28121         of size.
28122         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
28123         * params.opt (--param max-gcse-memory): Adjust default and
28124         document unit of size.
28126 2021-01-29  Richard Biener  <rguenther@suse.de>
28128         PR rtl-optimization/98863
28129         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
28130         HOST_WIDE_INT for the memory estimate.
28132 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
28133             Richard Biener  <rguenther@suse.de>
28135         PR tree-optimization/97627
28136         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
28137         Do not analyze fake edges.
28139 2021-01-29  Richard Biener  <rguenther@suse.de>
28141         PR rtl-optimization/98144
28142         * df.h (df_mir_bb_info): Add con_visited member.
28143         * df-problems.c (df_mir_alloc): Initialize con_visited,
28144         do not fully populate IN and OUT.
28145         (df_mir_reset): Likewise.
28146         (df_mir_confluence_0): Set con_visited.
28147         (df_mir_confluence_n): Properly handle implicitely
28148         fully populated IN and OUT as designated by con_visited
28149         and update con_visited accordingly.
28151 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
28153         PR target/98849
28154         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
28155         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
28156         && !TARGET_REALLY_IWMMXT to conditions.
28158 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
28160         PR debug/98331
28161         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
28162         a BARRIER.
28164 2021-01-28  Marek Polacek  <polacek@redhat.com>
28166         PR c++/94775
28167         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
28168         the main variant, maybe reset it in its variants too.
28169         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
28170         (check_aligned_type): Check if TYPE_USER_ALIGN match.
28172 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
28174         PR target/98730
28175         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
28176         of constant zero for comparisons.
28178 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
28180         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
28181         support for mapping built-in function names for long double
28182         built-in functions if long double is IEEE 128-bit.
28184 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
28186         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
28187         builtin generator macros.
28188         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
28189         Define.
28190         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
28191         instead of inline asm.
28192         (vmlsl_n_s32): Likewise.
28193         (vmlsl_n_u16): Likewise.
28194         (vmlsl_n_u32): Likewise.
28196 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
28198         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
28199         builtin generator macros.
28200         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
28201         Define.
28202         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
28203         instead of inline asm.
28204         (vmlal_n_s32): Likewise.
28205         (vmlal_n_u16): Likewise.
28206         (vmlal_n_u32): Likewise.
28208 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28210         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
28211         builtin.
28212         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
28213         Define.
28214         (aarch64_shrn2<mode>_insn_be): Likewise.
28215         (aarch64_shrn2<mode>): Likewise.
28216         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
28217         using builtins.
28218         (vshrn_high_n_s32): Likewise.
28219         (vshrn_high_n_s64): Likewise.
28220         (vshrn_high_n_u16): Likewise.
28221         (vshrn_high_n_u32): Likewise.
28222         (vshrn_high_n_u64): Likewise.
28224 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28226         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
28227         builtin.
28228         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
28229         Define.
28230         (aarch64_shrn<mode>_insn_be): Likewise.
28231         (aarch64_shrn<mode>): Likewise.
28232         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
28233         builtins.
28234         (vshrn_n_s32): Likewise.
28235         (vshrn_n_s64): Likewise.
28236         (vshrn_n_u16): Likewise.
28237         (vshrn_n_u32): Likewise.
28238         (vshrn_n_u64): Likewise.
28239         * config/aarch64/iterators.md (vn_mode): New mode attribute.
28241 2021-01-28  Richard Biener  <rguenther@suse.de>
28243         PR rtl-optimization/80960
28244         * dse.c (check_mem_read_rtx): Call get_addr on the
28245         offsetted address.
28247 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
28248             David Edelsohn  <dje.gcc@gmail.com>
28250         PR target/98799
28251         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28252         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
28253         when -m32.
28254         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
28255         Delete.
28256         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
28257         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
28258         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
28259         directly.
28260         (rs6000_expand_vector_set_var): Delete.
28261         (rs6000_expand_vector_set_var_p9): Make static.
28262         (rs6000_expand_vector_set_var_p8): Make static.
28264 2021-01-28  Xing GUO  <higuoxing@gmail.com>
28266         * common/config/riscv/riscv-common.c
28267         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
28268         when `p` extension exists.
28270 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
28272         PR rtl-optimization/97684
28273         * ira.c (ira): Call ira_set_pseudo_classes before
28274         update_equiv_regs when it is necessary.
28276 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
28278         PR target/98853
28279         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
28280         %w0, %w1 and %2 instead of %0, %1 and %2.
28282 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
28284         * config/rs6000/genfusion.pl: New script to generate
28285         define_insn_and_split patterns so combine can arrange fused
28286         instructions next to each other.
28287         * config/rs6000/fusion.md: New file, generated fused instruction
28288         patterns for combine.
28289         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
28290         (non_update_memory_operand): New predicate.
28291         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
28292         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
28293         POWERPC_MASKS.
28294         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
28295         prototype.
28296         * config/rs6000/rs6000.c (rs6000_option_override_internal):
28297         Automatically set OPTION_MASK_P10_FUSION and
28298         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
28299         (rs600_opt_masks): Allow -mpower10-fusion
28300         in function attributes.
28301         (address_is_non_pfx_d_or_x): New function.
28302         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
28303         * config/rs6000/rs6000.md: Include fusion.md.
28304         * config/rs6000/rs6000.opt: Add -mpower10-fusion
28305         and -mpower10-fusion-ld-cmpi.
28306         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
28308 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28310         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
28311         builtin generator macros.
28312         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
28313         Rename to...
28314         (aarch64_<su>mlal<mode>): This.
28315         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
28316         instead of inline asm.
28317         (vmlal_s16): Likewise.
28318         (vmlal_s32): Likewise.
28319         (vmlal_u8): Likewise.
28320         (vmlal_u16): Likewise.
28321         (vmlal_u32): Likewise.
28323 2021-01-27  Richard Biener  <rguenther@suse.de>
28325         PR tree-optimization/98854
28326         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
28327         PHIs from scalars when the number of CTORs matches the
28328         number of children.
28330 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28332         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
28333         generator macro.
28334         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
28335         Rename to...
28336         (aarch64_mls_n<mode>): This.
28337         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
28338         instead of asm.
28339         (vmls_n_s32): Likewise.
28340         (vmls_n_u16): Likewise.
28341         (vmls_n_u32): Likewise.
28342         (vmlsq_n_s16): Likewise.
28343         (vmlsq_n_s32): Likewise.
28344         (vmlsq_n_u16): Likewise.
28345         (vmlsq_n_u32): Likewise.
28347 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28349         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
28350         generator macro.
28351         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
28352         than asm.
28353         (vmls_s16): Likewise.
28354         (vmls_s32): Likewise.
28355         (vmls_u8): Likewise.
28356         (vmls_u16): Likewise.
28357         (vmls_u32): Likewise.
28358         (vmlsq_s8): Likewise.
28359         (vmlsq_s16): Likewise.
28360         (vmlsq_s32): Likewise.
28361         (vmlsq_u8): Likewise.
28362         (vmlsq_u16): Likewise.
28363         (vmlsq_u32): Likewise.
28365 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28367         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
28368         generator macro.
28369         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
28370         Rename to...
28371         (aarch64_mla_n<mode>): This.
28372         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
28373         instead of asm.
28374         (vmla_n_s32): Likewise.
28375         (vmla_n_u16): Likewise.
28376         (vmla_n_u32): Likewise.
28377         (vmlaq_n_s16): Likewise.
28378         (vmlaq_n_s32): Likewise.
28379         (vmlaq_n_u16): Likewise.
28380         (vmlaq_n_u32): Likewise.
28382 2021-01-27  liuhongt  <hongtao.liu@intel.com>
28384         PR target/98833
28385         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
28386         (*sse2_eq<mode>3): Ditto.
28388 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
28390         * tree-pass.h (PROP_trees): Rename to ...
28391         (PROP_gimple): ... this.
28392         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
28393         * passes.c (execute_function_dump, execute_function_todo,
28394         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
28395         * varpool.c (ctor_for_folding): Likewise.
28397 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
28399         PR tree-optimization/97260
28400         * varpool.c: Include tree-pass.h.
28401         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
28402         non-TREE_SIDE_EFFECTS automatic variables.
28404 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
28406         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
28407         or -std=gnu++23.
28408         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
28409         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
28410         (gen_compile_unit_die): Recognise C++23.
28412 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
28414         PR bootstrap/98839
28415         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
28416         in comparison.
28418 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
28420         PR target/98681
28421         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
28422         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
28423         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
28425 2021-01-26  Richard Biener  <rguenther@suse.de>
28427         * gimple-pretty-print.c (dump_binary_rhs): Handle
28428         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
28430 2021-01-26  Richard Biener  <rguenther@suse.de>
28432         PR middle-end/98726
28433         * tree.h (vector_cst_int_elt): Remove.
28434         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
28435         make static.
28437 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
28439         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
28440         for V64DFmode min/max reductions.
28442 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
28444         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
28445         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
28446         two halves, one with x and the other with const0_rtx, ordered
28447         depending on endianity.
28449 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
28451         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
28452         temporaries not seen in binding block, and not about to be
28453         added as gimple variables.
28455 2021-01-25  Martin Sebor  <msebor@redhat.com>
28457         PR c++/98646
28458         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
28460 2021-01-25  Martin Liska  <mliska@suse.cz>
28462         * value-prof.c (get_nth_most_common_value): Use %s instead
28463         of %qs string.
28465 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
28467         PR debug/98811
28468         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
28469         readelf -wi is able to read the emitted .debug_info back.
28470         * configure: Regenerated.
28472 2021-01-25  Martin Liska  <mliska@suse.cz>
28474         PR gcov-profile/98739
28475         * common.opt: Add missing sign symbol.
28476         * value-prof.c (get_nth_most_common_value): Restore handling
28477         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
28478         PROFILE_REPRODUCIBILITY_MULTITHREADED.
28480 2021-01-25  Richard Biener  <rguenther@suse.de>
28482         PR middle-end/98807
28483         * tree.c (vector_element_bits): Always use precision of
28484         the element type for boolean vectors.
28486 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28488         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
28489         (ENDFILE_SPEC): Evaluate qnolinkcmds.
28491 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28493         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
28494         nostartfiles handling since this is already done by
28495         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
28496         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
28497         is already done by LINK_COMMAND_SPEC.
28498         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
28499         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
28500         evaluation.
28502 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
28504         PR testsuite/98771
28505         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
28506         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
28507         value rather than host size_t.
28508         (fold_const_call): Change type of s2 from size_t to
28509         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
28510         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
28511         instead of s2 as last argument.
28513 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
28515         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
28516         VCMLA_OP, VCMUL_OP): New.
28517         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
28518         * config/arm/neon.md (cmul<conj_op><mode>3): New.
28519         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
28520         UNSPEC_VCMUL_CONJ): New.
28521         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
28522         cml<fcmac1><conj_op><mode>4): New.
28524 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
28526         PR testsuite/97301
28527         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
28529 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
28531         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
28532         generator macro.
28533         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
28534         than asm.
28535         (vmla_s16): Likewise.
28536         (vmla_s32): Likewise.
28537         (vmla_u8): Likewise.
28538         (vmla_u16): Likewise.
28539         (vmla_u32): Likewise.
28540         (vmlaq_s8): Likewise.
28541         (vmlaq_s16): Likewise.
28542         (vmlaq_s32): Likewise.
28543         (vmlaq_u8): Likewise.
28544         (vmlaq_u16): Likewise.
28545         (vmlaq_u32): Likewise.
28547 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
28549         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
28550         directive.
28552 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
28554         PR debug/98796
28555         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
28556         filenames to emit, still emit the required 0 index directory and
28557         filename entries that match DW_AT_comp_dir and DW_AT_name of the
28558         compilation unit.
28560 2021-01-22  Marek Polacek  <polacek@redhat.com>
28562         PR c++/98545
28563         * doc/invoke.texi: Update C++ ABI Version 15 description.
28565 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28567         PR tree-optimization/98766
28568         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
28569         comparing against type size with param_avoid_fma_max_bits.
28571 2021-01-22  Richard Biener  <rguenther@suse.de>
28573         PR middle-end/98793
28574         * tree.c (vector_element_bits): Key single-bit bool vector on
28575         integer mode rather than not vector mode.
28577 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
28579         PR target/98093
28580         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28581         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
28582         platforms.
28583         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
28584         to call different path for P8 and P9.
28585         (rs6000_expand_vector_set_var_p9): New function.
28586         (rs6000_expand_vector_set_var_p8): New function.
28588 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
28590         PR target/79251
28591         PR target/98065
28592         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28593         Ajdust variable index vec_insert from address dereference to
28594         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
28595         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
28596         New declaration.
28597         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
28599 2021-01-22  Martin Liska  <mliska@suse.cz>
28601         PR gcov-profile/98739
28602         * profile.c (compute_value_histograms): Drop time profile for
28603         -fprofile-reproducible=multithreaded.
28605 2021-01-22  Nathan Sidwell  <nathan@acm.org>
28607         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
28608         existence here.
28610 2021-01-22  Richard Biener  <rguenther@suse.de>
28612         PR middle-end/98773
28613         * tree-data-ref.c (initalize_matrix_A): Revert previous
28614         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
28616 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
28618         PR tree-optimization/90248
28619         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
28620         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
28621         simplifications.
28622         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
28623         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
28625 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
28627         PR tree-optimization/98255
28628         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
28629         extend index - low_bound from sizetype's precision rather than index
28630         precision.
28631         (get_addr_base_and_unit_offset_1): Likewise.
28632         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
28633         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
28635 2021-01-22  Richard Biener  <rguenther@suse.de>
28637         PR tree-optimization/98786
28638         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
28639         adding new uses of abnormals.  Verify we deal with a conditional
28640         conversion.
28642 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28644         PR target/98636
28645         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
28647 2021-01-22  liuhongt  <hongtao.liu@intel.com>
28649         PR target/96891
28650         PR target/98348
28651         * config/i386/sse.md (VI_128_256): New mode iterator.
28652         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
28653          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
28654          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
28655         define_insn_and_split to lower avx512 vector comparison to avx
28656         version when dest is vector.
28657         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
28658         define_insn_and_split for negating the comparison result.
28659         * config/i386/predicates.md (float_vector_all_ones_operand):
28660         New predicate.
28661         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
28662         general NOT operator without UNSPEC_MASKOP.
28664 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
28666         PR rtl-optimization/98777
28667         * lra-int.h (lra_pmode_pseudo): New extern.
28668         * lra.c (lra_pmode_pseudo): New global.
28669         (lra): Set it up.
28670         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
28672 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
28674         * fwprop.c (fwprop_propagation::classify_result): Allow
28675         (subreg (mem)) simplifications.
28677 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28679         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
28680         Split into...
28681         (aarch64_sqdmlal<mode>): ... This...
28682         (aarch64_sqdmlsl<mode>): ... And this.
28683         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
28684         (aarch64_sqdmlal_lane<mode>): ... This...
28685         (aarch64_sqdmlsl_lane<mode>): ... And this.
28686         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
28687         (aarch64_sqdmlsl_laneq<mode>): ... This...
28688         (aarch64_sqdmlal_laneq<mode>):  ... And this.
28689         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
28690         (aarch64_sqdmlsl_n<mode>): ... This...
28691         (aarch64_sqdmlal_n<mode>): ... And this.
28692         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
28693         (aarch64_sqdmlal2<mode>_internal): ... This...
28694         (aarch64_sqdmlsl2<mode>_internal): ... And this.
28696 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
28698         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
28700 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
28702         PR target/96372
28703         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
28705 2021-01-21  liuhongt  <hongtao.liu@intel.com>
28707         PR rtl-optimization/98694
28708         * regcprop.c (copy_value): If SRC had been assigned a mode
28709         narrower than the copy, we can't link DEST into the chain even
28710         they have same hard_regno_nregs(i.e. HImode/SImode in i386
28711         backend).
28713 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28715         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
28716         Convert to define_insn_and_split.  Split into simple move when moving
28717         bottom element.
28719 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
28721         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
28722         Adjust comment.  Simplify code.
28724 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
28726         PR debug/98765
28727         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
28728         with DW_FORM_line_strp form.
28729         (prune_unused_types_update_strings): Don't add into debug_str_hash
28730         indirect strings with DW_FORM_line_strp form.
28731         (adjust_name_comp_dir): New function.
28732         (dwarf2out_finish): Call it on CU DIEs after resetting
28733         debug_line_str_hash.
28735 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
28737         PR rtl-optimization/98722
28738         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
28739         has no 3-op add insn to transform insns containing two pluses.
28741 2021-01-20  Richard Biener  <rguenther@suse.de>
28743         * hwint.h (add_hwi): New function.
28744         (mul_hwi): Likewise.
28745         * tree-data-ref.c (initialize_matrix_A): Properly translate
28746         tree constants and avoid HOST_WIDE_INT_MIN.
28747         (lambda_matrix_row_add): Avoid undefined integer overflow
28748         and return true on such overflow.
28749         (lambda_matrix_right_hermite): Handle overflow from
28750         lambda_matrix_row_add gracefully.  Simplify previous fix.
28751         (analyze_subscript_affine_affine): Likewise.
28753 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
28755         PR tree-optimization/96674
28756         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
28757         x >= y && y != XXX_MIN --> x > y - 1
28759 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
28761         PR tree-optimization/98535
28762         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
28763         If the high and low permutes are the same, remove the high permutes
28764         from the working set and only continue with the low ones.
28766 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
28768         PR tree-optimization/98721
28769         * builtins.c (access_ref::inform_access): Don't assume
28770         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
28771         object whenever allocfn is NULL, rather than only when DECL_P
28772         is true.  Use %qE instead of %qD for that.  Formatting fixes.
28774 2021-01-20  Richard Biener  <rguenther@suse.de>
28776         PR tree-optimization/98758
28777         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
28778         (lambda_matrix_right_hermite): Avoid undefinedness with
28779         signed integer abs and multiplication.
28780         (analyze_subscript_affine_affine): Use lambda_int.
28782 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
28784         PR debug/98751
28785         * dwarf2out.c (output_line_info): Rename static variable
28786         "generation", moving it out of the function to...
28787         (output_line_info_generation): New.
28788         (init_sections_and_labels): Likewise, renaming the variable to...
28789         (init_sections_and_labels_generation): New.
28790         (dwarf2out_c_finalize): Reset the new variables.
28792 2021-01-19  Martin Sebor  <msebor@redhat.com>
28794         PR middle-end/98664
28795         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
28796         all functions, even if they're not declared artificial or inline.
28797         * tree.c (tree_inlined_location): Use macro expansion location
28798         only if scope traversal fails to expose one.
28800 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
28802         PR rtl-optimization/92294
28803         * alias.c (compare_base_symbol_refs): Take an extra parameter
28804         and add the distance between two symbols to it.  Enshrine in
28805         comments that -1 means "either 0 or 1, but we can't tell
28806         which at compile time".
28807         (memrefs_conflict_p): Update call accordingly.
28808         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
28809         into account.
28811 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28813         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
28814         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
28815         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
28816         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
28817         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
28818         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
28819         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
28820         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
28821         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
28822         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
28823         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
28824         sqmovun): Use NONE flags.
28826 2021-01-19  Richard Biener  <rguenther@suse.de>
28828         PR ipa/98330
28829         * ipa-modref.c (analyze_stmt): Only record a summary for a
28830         direct call.
28832 2021-01-19  Richard Biener  <rguenther@suse.de>
28834         PR middle-end/98638
28835         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
28837 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
28839         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
28840         built-in define __FIX_LEON3FT_TN0018.
28842 2021-01-19  Richard Biener  <rguenther@suse.de>
28844         PR ipa/97673
28845         * tree-inline.c (tree_function_versioning): Set input_location
28846         to UNKNOWN_LOCATION throughout the function.
28848 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
28850         PR fortran/98476
28851         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
28853 2021-01-19  Martin Jambor  <mjambor@suse.cz>
28855         PR ipa/98690
28856         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
28857         whether non-call exceptions allow removal of a statement.
28858         (isra_analyze_call): Pass the appropriate function to
28859         ssa_name_only_returned_p.
28861 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
28863         * config/riscv/arch-canonicalize (longext_sort): New function for
28864          sorting 'multi-letter'.
28865         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
28866         'alts'. The 'arch' may not be the first of 'alts'.
28867         (_expand_combination): Add underline for the 'ext' without '*'.
28868         This is because, a single-letter extension can always be treated well
28869         with a '_' prefix, but it cannot be separated out if it is appended
28870         to a multi-letter.
28872 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
28874         PR target/97847
28875         * ira.c (ira): Skip abnormal critical edge splitting.
28877 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
28879         PR tree-optimization/98727
28880         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
28881         second .MUL_OVERFLOW operand for signed multiplication with overflow
28882         checking if the second operand of multiplication is not constant.
28884 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
28886         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
28887         defaults to version 4.
28889 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
28891         * attribs.h (fndecl_dealloc_argno): New decl.
28892         * builtins.c (call_dealloc_argno): Split out second half of
28893         function into...
28894         (fndecl_dealloc_argno): New.
28895         * doc/extend.texi (Common Function Attributes): Document the
28896         interaction between the analyzer and the malloc attribute.
28897         * doc/invoke.texi (Static Analyzer Options): Likewise.
28899 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
28901         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
28902         dwarf_version to 4.
28903         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
28905 2021-01-17  Martin Jambor  <mjambor@suse.cz>
28907         PR ipa/98222
28908         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
28909         the clone tree.
28911 2021-01-17  Mark Wielaard  <mark@klomp.org>
28913         * common.opt (gdwarf-): Init(5).
28914         * doc/invoke.texi (-gdwarf): Document default to 5.
28916 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
28918         * builtin-types.def
28919         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
28920         to...
28921         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
28922         ...this.  Add extra argument.
28923         * gimplify.c (omp_default_clause): Ensure that event handle is
28924         firstprivate in a task region.
28925         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
28926         (gimplify_adjust_omp_clauses): Likewise.
28927         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
28928         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
28929         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
28930         if detach clause specified.  Add detach argument when generating
28931         call to GOMP_task.
28932         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
28933         clause.
28934         (finish_taskreg_scan): Move field for variable containing the event
28935         handle to the front of the struct.
28936         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
28937         ordering.
28938         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
28939         OMP_CLAUSE_DETACH clause.
28940         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
28941         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
28942         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
28943         Fix ordering.
28944         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
28945         ordering.
28946         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
28948 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28950         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
28951         multilib directory names.  Use MULTILIB_REQUIRED instead of
28952         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
28953         -mcustom-fpu-cfg=fph2 multilib.
28955 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28957         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
28958         (nios2_init_fpu_configs): Provide register values for new
28959         -mcustom-fpu-cfg=fph2 option variant.
28960         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
28961         variant.
28963 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28965         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
28966         custom instruction warnings.
28968 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
28970         PR tree-optimization/96669
28971         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
28973 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
28975         PR tree-optimization/96271
28976         * passes.def: Pass false argument to first two pass_cd_dce
28977         instances and true to last instance.  Add comment that
28978         last instance rewrites no longer addressed locals.
28979         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
28980         initialize it.
28981         (pass_cd_dce::set_pass_param): New method.
28982         (pass_cd_dce::execute): Return TODO_update_address_taken from
28983         last cd_dce instance.
28985 2021-01-15  Carl Love  <cel@us.ibm.com>
28987         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
28988         New defines.
28989         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
28990         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
28991         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
28992         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
28993         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
28994         Add builtin define.
28995         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
28996         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
28997         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
28998         New overloaded definitions.
28999         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
29000         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
29001         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
29002         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
29003         P10V_BUILTIN_MULHU_V4SI]: Add case
29004         statement for builtins.
29005         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
29006         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
29007         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
29008         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
29009         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
29010         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
29011         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
29012         Add define_insn, mode is VIlong.
29013         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
29014         Add builtin descriptions.
29016 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29018         * final.c (final_start_function_1): Reset force_source_line.
29020 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
29022         PR tree-optimization/96669
29023         * match.pd (((1 << A) & 1) != 0 -> A == 0,
29024         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
29025         possibly different power of two constants and to right shift too.
29027 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
29029         PR tree-optimization/96681
29030         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
29031         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
29032         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
29033         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
29035 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
29037         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
29039 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
29041         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
29042         cmul<conj_op><mode>3): New.
29043         * config/aarch64/iterators.md (UNSPEC_FCMUL,
29044         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
29045         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
29046         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
29047         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
29048         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
29049         (rot_op): Renamed to conj_op.
29050         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
29051         cmul<conj_op><mode>3): New.
29052         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
29053         cmul<conj_op><mode>3): New.
29055 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
29057         PR bootstrap/98696
29058         * diagnostic.c
29059         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
29060         Escape the tempfile name when constructing the expected output.
29062 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29064         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
29065         Rename to...
29066         (aarch64_<su>mlsl_hi<mode>): ... This.
29067         (aarch64_<su>mlsl_hi<mode>): Define.
29068         (*aarch64_<su>mlsl<mode): Rename to...
29069         (aarch64_<su>mlsl<mode): ... This.
29070         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
29071         smlsl_hi, umlsl_hi): Define builtins.
29072         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
29073         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
29074         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
29075         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
29077 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
29079         * config/i386/i386-c.c (ix86_target_macros):
29080         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
29082 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29084         PR target/88836
29085         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
29086         * Makefile.in (RTL_SSA_H): New variable.
29087         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
29088         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
29089         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
29090         pass_combine.
29091         * config/aarch64/aarch64-cc-fusion.cc: New file.
29093 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29095         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
29096         calling cancel_changes for changes that no longer exist.
29098 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29100         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
29101         (function_info::reg_defs): ...this.
29102         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
29103         (function_info::reg_defs): ...this.
29105 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29107         PR target/71233
29108         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
29110 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29112         Revert:
29113         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29115         PR target/71233
29116         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
29118 2021-01-15  Richard Biener  <rguenther@suse.de>
29120         PR tree-optimization/96376
29121         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
29122         for VMAT_INVARIANT.
29124 2021-01-15  Martin Liska  <mliska@suse.cz>
29126         * doc/install.texi: Document that some tests need pytest module.
29127         * doc/sourcebuild.texi: Likewise.
29129 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29131         PR target/71233
29132         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
29134 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29136         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
29137         (mve_vshrq_n_u<mode>_imm): Likewise.
29138         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
29139         * config/arm/vec-common.md: ... here.
29141 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29143         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
29144         vec-commond.md.
29145         * config/arm/neon.md (vashl<mode>3): Delete.
29146         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
29147         (vasl<mode>3): New expander.
29149 2021-01-15  Richard Biener  <rguenther@suse.de>
29151         PR tree-optimization/98685
29152         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
29153         of vector extern defs.
29155 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
29157         PR jit/98586
29158         * diagnostic.c (diagnostic_kind_text): Break out this array
29159         from...
29160         (diagnostic_build_prefix): ...here.
29161         (fancy_abort): Detect when diagnostic_initialize has not yet been
29162         called and fall back to a minimal implementation of printing the
29163         ICE, rather than segfaulting in internal_error.
29165 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
29167         * diagnostic.c (diagnostic_initialize): Eliminate
29168         parseable_fixits_p in favor of initializing extra_output_kind from
29169         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
29170         (convert_column_unit): New function, split out from...
29171         (diagnostic_converted_column): ...this.
29172         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
29173         Use them to call convert_column_unit on the column values.
29174         (diagnostic_report_diagnostic): Eliminate conditional on
29175         parseable_fixits_p in favor of a switch statement on
29176         extra_output_kind, passing the appropriate values to the new
29177         params of print_parseable_fixits.
29178         (selftest::test_print_parseable_fixits_none): Update for new
29179         params of print_parseable_fixits.
29180         (selftest::test_print_parseable_fixits_insert): Likewise.
29181         (selftest::test_print_parseable_fixits_remove): Likewise.
29182         (selftest::test_print_parseable_fixits_replace): Likewise.
29183         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
29184         New.
29185         (selftest::diagnostic_c_tests): Call it.
29186         * diagnostic.h (enum diagnostics_extra_output_kind): New.
29187         (diagnostic_context::parseable_fixits_p): Delete field in favor
29188         of...
29189         (diagnostic_context::extra_output_kind): ...this new field.
29190         * doc/invoke.texi (Environment Variables): Add
29191         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
29192         * opts.c (common_handle_option): Update handling of
29193         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
29194         fields.
29196 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29198         * tree-vect-slp-patterns.c (class complex_operations_pattern,
29199         complex_operations_pattern::matches,
29200         complex_operations_pattern::recognize,
29201         complex_operations_pattern::build): New.
29202         (slp_patterns): Use it.
29204 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29206         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
29207         * optabs.def (cmls_optab, cmls_conj_optab): New.
29208         * doc/md.texi: Document them.
29209         * tree-vect-slp-patterns.c (class complex_fms_pattern,
29210         complex_fms_pattern::matches, complex_fms_pattern::recognize,
29211         complex_fms_pattern::build): New.
29213 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29215         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
29216         * optabs.def (cmla_optab, cmla_conj_optab): New.
29217         * doc/md.texi: Document them.
29218         * tree-vect-slp-patterns.c (vect_match_call_p,
29219         class complex_fma_pattern, vect_slp_reset_pattern,
29220         complex_fma_pattern::matches, complex_fma_pattern::recognize,
29221         complex_fma_pattern::build): New.
29223 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29225         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
29226         * optabs.def (cmul_optab, cmul_conj_optab): New.
29227         * doc/md.texi: Document them.
29228         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
29229         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
29230         vect_build_combine_node, class complex_mul_pattern,
29231         complex_mul_pattern::matches, complex_mul_pattern::recognize,
29232         complex_mul_pattern::build): New.
29234 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29236         * tree-vect-slp.c (optimize_load_redistribution_1): New.
29237         (optimize_load_redistribution, vect_is_slp_load_node): New.
29238         (vect_match_slp_patterns): Use it.
29240 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29242         * tree-vect-slp-patterns.c (complex_add_pattern::build):
29243         Elide nodes.
29245 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
29247         * config/gcn/mkoffload.c (main): Create an offload image only in
29248         64-bit configurations.
29250 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
29252         PR target/98667
29253         * config/i386/i386-options.c (ix86_option_override_internal):
29254         Issue an error for -fcf-protection with CF_BRANCH when compiling
29255         for 32-bit non-TARGET_CMOV targets.
29257 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
29259         PR target/98671
29260         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
29261         Remove declaration and initialization of shadow variable "ret".
29262         (ix86_option_override_internal): Remove delcaration of
29263         shadow variable "i".  Redeclare shadowed variable to unsigned.
29264         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
29265         * config/i386/i386-builtins.c (get_builtin_code_for_version):
29266         Update for redeclaration.
29267         * config/i386/i386.h (pta_size): Ditto.
29269 2021-01-14  Richard Biener  <rguenther@suse.de>
29271         PR tree-optimization/98674
29272         * tree-data-ref.c (base_supports_access_fn_components_p): New.
29273         (initialize_data_dependence_relation): For two bases without
29274         possible access fns resort to type size equality when determining
29275         shape compatibility.
29277 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29279         PR target/66791
29280         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
29281         <=, >= operators in vcle and vcge intrinsics respectively.
29282         * config/arm/arm_neon_builtins.def: Remove entry for
29283         vcge and vcgeu.
29285 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
29287         PR target/98671
29288         * config/i386/i386-options.c (ix86_function_specific_save):
29289         Remove redundant assignment to opts->x_ix86_branch_cost.
29290         * config/i386/i386.c (ix86_prefetch_sse):
29291         Rename from x86_prefetch_sse.  Update all uses.
29292         * config/i386/i386.h: Update for rename.
29293         * config/i386/i386-options.h: Ditto.
29295 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
29297         PR target/98670
29298         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
29299         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
29300         Use Bm instead of m for non-avx.  Add isa attribute.
29302 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
29304         PR tree-optimization/96688
29305         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
29306         ~X can be simplified.
29308 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
29310         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
29311         IFN_LOAD_LANES results.
29313 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29315         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
29316         Define.
29317         (aarch64_xtn<mode>): Likewise.
29318         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
29319         Define
29320         builtins.
29321         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
29322         builtin.
29323         (vmovl_s16): Likewise.
29324         (vmovl_s32): Likewise.
29325         (vmovl_u8): Likewise.
29326         (vmovl_u16): Likewise.
29327         (vmovl_u32): Likewise.
29328         (vmovn_s16): Likewise.
29329         (vmovn_s32): Likewise.
29330         (vmovn_s64): Likewise.
29331         (vmovn_u16): Likewise.
29332         (vmovn_u32): Likewise.
29333         (vmovn_u64): Likewise.
29335 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29337         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
29338         Define.
29339         (aarch64_<su>qxtn2<mode>_be): Likewise.
29340         (aarch64_<su>qxtn2<mode>): Likewise.
29341         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
29342         Define builtins.
29343         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
29344         (su): Handle ss_truncate and us_truncate.
29345         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
29346         builtin.
29347         (vqmovn_high_s32): Likewise.
29348         (vqmovn_high_s64): Likewise.
29349         (vqmovn_high_u16): Likewise.
29350         (vqmovn_high_u32): Likewise.
29351         (vqmovn_high_u64): Likewise.
29353 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29355         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
29356         Define.
29357         (aarch64_xtn2<mode>_be): Likewise.
29358         (aarch64_xtn2<mode>): Likewise.
29359         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
29360         builtins.
29361         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
29362         builtins.
29363         (vmovn_high_s32): Likewise.
29364         (vmovn_high_s64): Likewise.
29365         (vmovn_high_u16): Likewise.
29366         (vmovn_high_u32): Likewise.
29367         (vmovn_high_u64): Likewise.
29369 2021-01-13  Stafford Horne  <shorne@gmail.com>
29371         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
29373 2021-01-13  Stafford Horne  <shorne@gmail.com>
29375         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
29377 2021-01-13  Stafford Horne  <shorne@gmail.com>
29379         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
29380           define for __or1k_hard_float__.
29382 2021-01-13  Stafford Horne  <shorne@gmail.com>
29384         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
29385         (PROFILE_HOOK): Define to call _mcount.
29386         (FUNCTION_PROFILER): Change from abort to no-op.
29388 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
29390         PR tree-optimization/96691
29391         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
29392         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
29393         (~D ^ C) or (D ^ C) can be simplified.
29395 2021-01-13  Richard Biener  <rguenther@suse.de>
29397         PR tree-optimization/92645
29398         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
29399         until after vector lowering.
29401 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29403         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
29404         to SVE_I.
29405         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
29406         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
29408 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29410         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
29411         to SVE_I.
29412         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
29413         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
29415 2021-01-13  Richard Biener  <rguenther@suse.de>
29417         PR tree-optimization/92645
29418         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
29419         BIT_FIELD_REF argument.
29420         (vect_build_slp_tree_2): Record the desired vector type
29421         on the external vector def.
29422         (vectorizable_slp_permutation): Handle required punning
29423         of existing vector defs.
29425 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29427         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
29429 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29431         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
29433 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29435         * config.gcc [$target == *-*-gnu*]: Enable
29436         'default_gnu_indirect_function'.
29438 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
29440         PR target/95905
29441         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
29442         registers before calling targetm.vectorize.vec_perm_const, only after
29443         that.
29444         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
29445         two argument permutation when one operand is zero vector and only
29446         after that force operands into registers.
29447         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
29448         define_insn_and_split pattern.
29449         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
29450         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
29451         (*avx2_zero_extendv8hiv8si2_1): Likewise.
29452         (*avx512f_zero_extendv8siv8di2_1): Likewise.
29453         (*avx2_zero_extendv4siv4di2_1): Likewise.
29454         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
29455         into registers.
29456         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
29457         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
29458         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
29459         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
29460         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
29461         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
29463 2021-01-13  Martin Liska  <mliska@suse.cz>
29465         PR tree-optimization/98455
29466         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
29467         Record also virtual PHIs.
29468         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
29469         conditionally.
29471 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
29473         * doc/invoke.texi (C++ Modules): Fix typos.
29475 2021-01-13  Richard Biener  <rguenther@suse.de>
29477         PR tree-optimization/98640
29478         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
29479         handle plus or minus from a truncated operand to be
29480         sign-extended.
29482 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
29484         PR target/96938
29485         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
29486         define_insn_and_split patterns.
29487         (splitter after *btr<mode>_2): New splitter.
29489 2021-01-13  Martin Liska  <mliska@suse.cz>
29491         PR ipa/98652
29492         * cgraphunit.c (analyze_functions): Remove dead code.
29494 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
29496         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
29497         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
29498         (a64fx_regmove_cost, a64fx_vector_cost): New.
29499         (a64fx_tunings): Use the new added cost tables.
29501 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
29503         PR target/95905
29504         * config/i386/predicates.md (pmovzx_parallel): New predicate.
29505         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
29506         define_insn_and_split pattern.
29507         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
29508         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
29510 2021-01-13  Julian Brown  <julian@codesourcery.com>
29512         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
29513         to fix v0 register.
29515 2021-01-13  Julian Brown  <julian@codesourcery.com>
29517         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
29518         on entry to a BB.
29520 2021-01-13  Julian Brown  <julian@codesourcery.com>
29522         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
29523         for reciprocal-approximation instructions.
29524         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
29525         refinement and division result.
29526         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
29528 2021-01-13  Julian Brown  <julian@codesourcery.com>
29530         * config/gcn/gcn-valu.md (subdf): Rename to...
29531         (subdf3): This.
29533 2021-01-12  Martin Liska  <mliska@suse.cz>
29535         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
29537 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
29539         * function-abi.h: Fix typo.
29541 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
29543         PR target/97875
29544         PR target/97875
29545         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
29546         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
29547         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
29548         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
29549         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
29550         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
29551         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
29552         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
29553         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
29554         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
29555         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
29556         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
29557         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
29558         (ARM_HAVE_V2DI_LDST): Likewise.
29559         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
29560         (*movmisalign<mode>_mve_load): New pattern.
29561         * config/arm/neon.md (movmisalign<mode>): Move to ...
29562         * config/arm/vec-common.md: ... here.
29564 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
29566         PR target/97969
29567         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
29568         of pattern 'plus (plus (hard reg, const), pseudo)'.
29570 2021-01-12  Richard Biener  <rguenther@suse.de>
29572         PR tree-optimization/98550
29573         * tree-vect-slp.c (vect_record_max_nunits): Check whether
29574         the group size is a multiple of the vector element count.
29575         (vect_build_slp_tree_1): When we need to fail because
29576         the vector type choosen causes unrolling do so lazily
29577         without affecting matches only at the end to guide group splitting.
29579 2021-01-12  Martin Liska  <mliska@suse.cz>
29581         PR c++/97284
29582         * optc-save-gen.awk: Compare also n_target_save vars with
29583         strcmp.
29585 2021-01-12  Martin Liska  <mliska@suse.cz>
29587         * gcov.c (source_info::debug): New.
29588         (print_usage): Add --debug (-D) option.
29589         (process_args): Likewise.
29590         (generate_results): Call src->debug after
29591         accumulate_line_counts.
29592         (read_graph_file): Properly assign id for EXIT_BLOCK.
29593         * profile.c (branch_prob): Dump function body before it is
29594         instrumented.
29596 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
29598         PR tree-optimization/98629
29599         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
29600         unless returning non-zero.
29602 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
29604         PR tree-optimization/95731
29605         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
29606         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
29607         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
29608         only after optimize_range_tests_var_bound.
29610 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
29612         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
29613         * configure: Regenerated.
29615 2021-01-12  liuhongt  <hongtao.liu@intel.com>
29617         PR target/98612
29618         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
29619         Deleted.
29620         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
29621         dead code.
29623 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
29625         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
29626         declare.
29627         (auto_end_imm_use_stmt_traverse): New struct.
29628         (FOR_EACH_IMM_USE_STMT): Use it.
29629         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
29630         along with uses...
29631         * gimple-ssa-strength-reduction.c: ... here, ...
29632         * graphite-scop-detection.c: ... here, ...
29633         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
29634         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
29635         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
29636         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
29637         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
29638         * tree-vect-slp.c: ... and here, ...
29639         * doc/tree-ssa.texi: ... and the example here.
29641 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29643         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
29644         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
29645         (*sdiv_pow2<mode>3): New pattern.
29646         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
29647         Wrap the ASRD in an UNSPEC_PRED_X.
29648         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
29649         predicate with a constant PTRUE, if it isn't already.
29650         (*cond_<sve_int_op><mode>_z): Replace with...
29651         (*cond_<sve_int_op><mode>_any): ...this new pattern.
29653 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29655         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
29656         SVE_FULL_I to SVE_I.
29657         (*cond_bic<mode>_any): Likewise.
29659 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29661         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
29662         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
29663         to SVE_I.
29665 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29667         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
29668         SVE_FULL_I to SVE_I.
29669         (*aarch64_cond_<su>abd<mode>_2): Likewise.
29670         (*aarch64_cond_<su>abd<mode>_any): Likewise.
29671         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
29672         for the max and min but not for the minus.
29673         (*aarch64_cond_<su>abd<mode>_3): New pattern.
29675 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29677         * config/aarch64/iterators.md (SVE_24I): New iterator.
29678         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
29679         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
29681 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29683         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
29684         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
29685         to SVE_I.
29686         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
29687         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
29688         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
29689         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
29691 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29693         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
29694         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
29695         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
29696         to SVE_I.
29698 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
29700         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
29701         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
29702         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
29704 2021-01-11  Martin Liska  <mliska@suse.cz>
29706         PR jit/98615
29707         * symtab-clones.h (clone_info::release): Release
29708         symtab::m_clones with ggc_delete as it's a GGC memory.
29710 2021-01-11  Matthias Klose  <doko@ubuntu.com>
29712         * Makefile.in (LINK_PROGRESS): Show the link target.
29714 2021-01-11  Richard Biener  <rguenther@suse.de>
29716         PR tree-optimization/91403
29717         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
29718         single-element interleaving group size at 4096 elements.
29720 2021-01-11  Richard Biener  <rguenther@suse.de>
29722         PR tree-optimization/98526
29723         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
29724         of the actual reduction op for the regular case.
29725         (vectorizable_reduction): Cost the stmts
29726         vect_transform_reduction produces here.
29728 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
29730         * tree-ssa-forwprop.c (simplify_vector_constructor): For
29731         big-endian, use UNPACK[_FLOAT]_HI.
29733 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
29735         * tree-vect-slp-patterns.c (class complex_pattern,
29736         class complex_add_pattern): Add parameters to matches.
29737         (complex_add_pattern::build): Free memory.
29738         (complex_add_pattern::matches): Move validation end of match.
29739         (complex_add_pattern::recognize): Likewise.
29741 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
29743         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
29745 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
29747         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
29749 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
29751         PR tree-optimization/95867
29752         * tree-ssa-math-opts.h: New header.
29753         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
29754         (powi_as_mults): No longer static.  Use build_one_cst instead of
29755         build_real.  Formatting fix.
29756         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
29757         (attempt_builtin_powi): Handle multiplication reassociation without
29758         powi_fndecl using powi_as_mults.
29759         (reassociate_bb): For integral types don't require
29760         -funsafe-math-optimizations to call attempt_builtin_powi.
29762 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
29764         PR tree-optimization/95852
29765         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
29766         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
29767         allow in the bb any of the stmts in that vector, div_stmt and
29768         up to 3 cast stmts.
29769         (arith_cast_equal_p): New function.
29770         (arith_overflow_check_p): Add cast_stmt argument, handle signed
29771         multiply overflow checks.
29772         (match_arith_overflow): Adjust caller.  Handle signed multiply
29773         overflow checks.
29775 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
29777         PR tree-optimization/95852
29778         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
29779         (uaddsub_overflow_check_p): Renamed to ...
29780         (arith_overflow_check_p): ... this.  Handle also multiplication
29781         with overflow check.
29782         (match_uaddsub_overflow): Renamed to ...
29783         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
29784         also multiplication with overflow check.  Adjust function comment.
29785         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
29786         match_arith_overflow also for MULT_EXPR.
29788 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29790         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
29791         __builtin_convertvector.
29792         (vmovl_s16): Likewise.
29793         (vmovl_s32): Likewise.
29794         (vmovl_u8): Likewise.
29795         (vmovl_u16): Likewise.
29796         (vmovl_u32): Likewise.
29797         (vmovn_s16): Likewise.
29798         (vmovn_s32): Likewise.
29799         (vmovn_s64): Likewise.
29800         (vmovn_u16): Likewise.
29801         (vmovn_u32): Likewise.
29802         (vmovn_u64): Likewise.
29804 2021-01-11  Martin Liska  <mliska@suse.cz>
29806         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
29807         (if_chain::is_beneficial): Delete clusters
29808         (find_conditions): Make second argument of conditions_in_bbs a
29809         pointer so that we control over it's lifetime.
29810         (pass_if_to_switch::execute): Delete them.
29812 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
29814         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
29815         it isn't set.
29817 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
29819         * config/vax/vax.md (cc): Remove mode attribute.
29820         (subst_<cc>, subst_f<cc>): Rename to...
29821         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
29822         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
29823         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
29824         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
29826 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
29828         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
29829         `const_double_zero'.
29831 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
29833         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
29834         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
29835         operands.
29837 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
29839         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
29840         rtx.
29841         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
29842         with `const_double_zero'.
29843         * doc/rtl.texi (Constant Expression Types): Document it.
29845 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
29847         PR c++/98556
29848         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
29849         POINTER_DIFF_EXPR to be any integral type.
29851 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
29853         PR rtl-optimization/98603
29854         * function.c (instantiate_virtual_regs_in_insn): For asm goto
29855         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
29856         if any, set ASM_OPERANDS mode to VOIDmode and change
29857         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
29859 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
29861         PR debug/97714
29862         * final.c (notice_source_line): Narrow down the condition to
29863         skip a line-0 marker.
29865 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
29867         * ipa-modref.c (merge_call_side_effects): Fix
29868         linebreak split by reordering two print calls.
29870 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
29872         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
29873         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
29874         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
29875         consistency, fix constraint.
29877 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
29879         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
29880         callables instead of mask values.
29881         (struct target_flag_set_p): New predicate.
29882         (s390_cpu_cpp_builtins_internal): Define or undefine
29883         __LONG_DOUBLE_VX__ macro.
29885 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
29887         PR target/98482
29888         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
29889         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
29890         targets.
29892 2021-01-08  Richard Biener  <rguenther@suse.de>
29894         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
29896 2021-01-08  Richard Biener  <rguenther@suse.de>
29898         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
29899         (vect_build_slp_tree): On cache hit release the matched
29900         scalar stmts vector.
29901         * tree-vect-stmts.c (vectorizable_store): Properly free
29902         vec_oprnds before possibly gathering them again.
29904 2021-01-08  Richard Biener  <rguenther@suse.de>
29906         PR tree-optimization/98544
29907         * tree-vect-slp.c (vect_optimize_slp): Always materialize
29908         permutes at a permute node.
29910 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
29912         PR target/98482
29913         * config/i386/i386.c (x86_function_profiler): Use R10 to call
29914         mcount in large model.  Sorry for large model with PIC.
29916 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
29918         PR target/98585
29919         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
29920         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
29921         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
29922         TargetSave and initialize for variables with enum types.
29923         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
29924         mstack-protector-guard-symbol=): Add Save.
29925         * config/i386/i386-options.c (ix86_function_specific_save,
29926         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
29927         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
29928         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
29929         x_ix86_veclibabi_type.
29931 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
29933         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
29934         SVE_FULL_I to SVE_I.
29935         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
29937 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
29939         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
29940         SVE_FULL_I to SVE_I.
29941         (*cond_uxt<mode>_any): Likewise.
29943 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29945         * config/aarch64/iterators.md (Vwhalf): New iterator.
29946         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
29947         Rename to...
29948         (aarch64_<sur>adalp<mode>): ... This.  Make more
29949         builtin-friendly.
29950         (<sur>sadv16qi): Adjust callsite of the above.
29951         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
29952         builtins.
29953         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
29954         builtins.
29955         (vpadal_s16): Likewise.
29956         (vpadal_u8): Likewise.
29957         (vpadal_u16): Likewise.
29958         (vpadalq_s8): Likewise.
29959         (vpadalq_s16): Likewise.
29960         (vpadalq_s32): Likewise.
29961         (vpadalq_u8): Likewise.
29962         (vpadalq_u16): Likewise.
29963         (vpadalq_u32): Likewise.
29965 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29967         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
29968         Rename to...
29969         (aarch64_<su>abd<mode>): ... This.
29970         (<sur>sadv16qi): Adjust callsite of the above.
29971         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
29972         builtins.
29973         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
29974         builtin.
29975         (vabd_s16): Likewise.
29976         (vabd_s32): Likewise.
29977         (vabd_u8): Likewise.
29978         (vabd_u16): Likewise.
29979         (vabd_u32): Likewise.
29980         (vabdq_s8): Likewise.
29981         (vabdq_s16): Likewise.
29982         (vabdq_s32): Likewise.
29983         (vabdq_u8): Likewise.
29984         (vabdq_u16): Likewise.
29985         (vabdq_u32): Likewise.
29987 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29989         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
29990         builtins.
29991         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
29992         (vaba_s16): Likewise.
29993         (vaba_s32): Likewise.
29994         (vaba_u8): Likewise.
29995         (vaba_u16): Likewise.
29996         (vaba_u32): Likewise.
29997         (vabaq_s8): Likewise.
29998         (vabaq_s16): Likewise.
29999         (vabaq_s32): Likewise.
30000         (vabaq_u8): Likewise.
30001         (vabaq_u16): Likewise.
30002         (vabaq_u32): Likewise.
30004 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30006         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
30007         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
30008         Change RTL pattern to match.
30010 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
30012         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
30013         * config/riscv/riscv-c.c (riscv-subset.h): New.
30014         (INCLUDE_STRING): Define.
30015         (riscv_cpu_cpp_builtins): Add new style architecture extension
30016         test macros.
30017         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
30018         (riscv_subset_list::end): New.
30019         (riscv_current_subset_list): New.
30021 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
30023         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
30024         Move to riscv-subset.h.
30025         (struct riscv_subset_t): Ditto.
30026         (class riscv_subset_list): Ditto.
30027         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
30028         from riscv-common.c.
30029         (struct riscv_subset_t): Ditto.
30030         (class riscv_subset_list): Ditto.
30031         * config/riscv/t-riscv ($(common_out_file)): Add file
30032         dependency.
30034 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
30036         PR target/98567
30037         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
30038         New define_insn patterns.
30040 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30042         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
30043         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
30044         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
30046 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30048         PR tree-optimization/98560
30049         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
30050         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
30051         argument 1.
30052         (vec_cond_direct): Likewise argument 2.
30053         (vec_condu_direct, vec_condeq_direct): Delete.
30054         (expand_vect_cond_optab_fn): Rename to...
30055         (expand_vec_cond_optab_fn): ...this, replacing old macro.
30056         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
30057         (expand_vect_cond_mask_optab_fn): Rename to...
30058         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
30059         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
30060         convert optab.
30061         (direct_vec_cond_optab_supported_p): Likewise.
30062         (direct_vec_condu_optab_supported_p): Delete.
30063         (direct_vec_condeq_optab_supported_p): Delete.
30064         * gimple-isel.cc: Include internal-fn.h.
30065         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
30066         before using it.
30068 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30070         PR tree-optimization/98560
30071         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
30072         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
30074 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
30076         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
30077         rotate_insn and optab code attributes.
30078         Update all uses to merged code attribute.
30079         * config/i386/sse.md: Update all uses to merged code attribute.
30080         * config/i386/mmx.md: Update all uses to merged code attribute.
30082 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
30084         PR tree-optimization/98568
30085         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
30086         (bswap_replace): Use it.
30088 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
30090         PR rtl-optimization/97978
30091         * lra-int.h (lra_hard_reg_split_p): New external.
30092         * lra.c (lra_hard_reg_split_p): New global.
30093         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
30094         * lra-assigns.c (lra_assign): Don't check allocation correctness
30095         after hard reg splitting.
30097 2021-01-06  Martin Sebor  <msebor@redhat.com>
30099         PR c++/98305
30100         * builtins.c (new_delete_mismatch_p): New overload.
30101         (new_delete_mismatch_p (tree, tree)): Call it.
30103 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
30105         * Makefile.in (T_GLIMITS_H): New.
30106         (stmp-int-hdrs): Depend on it, use it.
30107         * config/t-vxworks (T_GLIMITS_H): Override it.
30108         (vxw-glimits.h): New.
30110 2021-01-06  Richard Biener  <rguenther@suse.de>
30112         PR tree-optimization/98513
30113         * value-range.cc (intersect_ranges): Compare the upper bounds
30114         for the expected relation.
30116 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30118         Revert:
30119         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
30121         * doc/standards.texi (HSAIL): Remove section.
30123 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30125         * configure: Re-generate.
30127 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30129         * doc/invoke.texi (-std=c++20): Adjust for the publication of
30130         ISO 14882:2020 standard.
30131         * doc/standards.texi: Likewise.
30133 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30135         PR tree-optimization/94802
30136         * expr.h (maybe_optimize_sub_cmp_0): Declare.
30137         * expr.c: Include tree-pretty-print.h and flags.h.
30138         (maybe_optimize_sub_cmp_0): New function.
30139         (do_store_flag): Use it.
30140         * cfgexpand.c (expand_gimple_cond): Likewise.
30142 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30144         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
30145         * rtlanal.c (simple_regno_set): Tweak description to clarify the
30146         RMW condition.
30148 2021-01-05  Richard Biener  <rguenther@suse.de>
30150         PR tree-optimization/98516
30151         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
30152         lanes when materializing on a VEC_PERM node.
30153         (vectorizable_slp_permutation): Dump the permute properly.
30155 2021-01-05  Richard Biener  <rguenther@suse.de>
30157         * tree-vect-slp.c (vect_slp_region): Move debug counter
30158         to cover individual subgraphs.
30160 2021-01-05  Richard Biener  <rguenther@suse.de>
30162         PR tree-optimization/98428
30163         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
30164         vector lane extracts for loop vectorization.
30166 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30168         PR tree-optimization/98514
30169         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
30170         int64_t *.
30171         (operand_rank): Change type from hash_map<tree, long> to
30172         hash_map<tree, int64_t>.
30173         (phi_rank): Change return type from long to int64_t.
30174         (loop_carried_phi): Change block_rank variable type from long to
30175         int64_t.
30176         (propagate_rank): Change return type, rank parameter type and
30177         op_rank variable type from long to int64_t.
30178         (find_operand_rank): Change return type from long to int64_t
30179         and change slot variable type from long * to int64_t *.
30180         (insert_operand_rank): Change rank parameter type from long to
30181         int64_t.
30182         (get_rank): Change return type and rank variable type from long to
30183         int64_t.  Use PRId64 instead of ld to print the rank.
30184         (init_reassoc): Change rank variable type from long to int64_t
30185         and adjust correspondingly bb_rank and operand_rank initialization.
30187 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30189         PR tree-optimization/96928
30190         * tree-ssa-phiopt.c (xor_replacement): New function.
30191         (tree_ssa_phiopt_worker): Call it.
30193 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30195         PR tree-optimization/96930
30196         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
30197         from narrower value which has the same type as 1 << B, perform
30198         the right shift on the narrower value followed by extension.
30200 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30202         PR tree-optimization/96239
30203         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
30204         function.
30205         (get_status_for_store_merging): Don't return BB_INVALID for blocks
30206         with potential bswap optimizable CONSTRUCTORs.
30207         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
30208         if possible.
30210 2021-01-05  Richard Biener  <rguenther@suse.de>
30212         PR tree-optimization/98381
30213         * tree.c (vector_element_bits): Properly compute bool vector
30214         element size.
30215         * tree-vect-loop.c (vectorizable_live_operation): Properly
30216         compute the last lane bit offset.
30218 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
30220         PR target/98522
30221         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
30222         Clear the top 64 bytes of the input XMM register.
30223         (sse_cvttps2pi): Ditto.
30225 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
30227         PR target/98521
30228         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
30230 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
30232         PR target/98495
30233         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
30234         short first.
30236 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
30238         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
30239         (umaddsidi4_split): Likewise.
30241 2021-01-05  liuhongt  <hongtao.liu@intel.com>
30243         PR target/98461
30244         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
30245         define_insn_and_split for zero_extend of subreg HI of pmovskb
30246         result.
30247         (*sse2_pmovskb_zexthisi): Add new combine splitters for
30248         zero_extend of not of subreg HI of pmovskb result.
30250 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30252         PR target/97269
30253         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
30254         nested in CONSTs.
30255         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
30256         convert_memory_address to convert symbolic immediates to ptr_mode
30257         before forcing them to memory.
30259 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30261         PR rtl-optimization/97144
30262         * recog.c (constrain_operands): Initialize matching_operand
30263         for each alternative, rather than only doing it once.
30265 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30267         PR rtl-optimization/98403
30268         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
30269         why we don't remove call clobbers.
30270         (function_info::apply_changes_to_insn): Don't attempt to add
30271         call clobbers here.
30273 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30275         PR tree-optimization/98371
30276         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
30277         (vect_analyze_loop): If an epilogue loop appears to be cheaper
30278         than the main loop, re-analyze it as a main loop before adopting
30279         it as a main loop.
30281 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30283         PR c++/98316
30284         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
30285         * aclocal.m4, configure: Regenerate.
30286         * Makefile.in (NETLIBS): Define.
30287         (BACKEND): Remove $(CODYLIB).
30289 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30291         PR rtl-optimization/98334
30292         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
30293         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
30295 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30297         * tree-inline.c (expand_call_inline): Restore input_location.
30298         Return result from recursive call.
30300 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
30302         PR tree-optimization/95401
30303         * config/aarch64/aarch64-sve-builtins.cc
30304         (gimple_folder::load_store_cookie): Use bits rather than bytes
30305         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
30306         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
30307         * tree-vect-stmts.c (vectorizable_store): Likewise.
30308         (vectorizable_load): Likewise.
30310 2021-01-04  Richard Biener  <rguenther@suse.de>
30312         PR tree-optimization/98308
30313         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
30314         SLP vectype.
30316 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
30318         PR tree-optimization/95771
30319         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
30320         with precision smaller than int's precision and types with precision
30321         twice as large as long long.  Formatting fixes.
30323 2021-01-04  Richard Biener  <rguenther@suse.de>
30325         PR tree-optimization/98464
30326         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
30327         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
30328         (process_bb): Adjust.
30330 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
30332         PR other/98437
30333         * doc/invoke.texi (-fsanitize=address): Fix wording describing
30334         clash with -fsanitize=hwaddress.
30336 2021-01-04  Richard Biener  <rguenther@suse.de>
30338         PR tree-optimization/98282
30339         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
30340         invariants as VN_NARY.
30342 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
30344         PR target/89057
30345         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
30346         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
30347         to handle zero operands.
30349 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
30351         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
30352         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
30353         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
30354         [-32, 31].
30356 2021-01-04  Richard Biener  <rguenther@suse.de>
30358         PR tree-optimization/98393
30359         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
30360         when hitting the limit.
30362 2021-01-04  Richard Biener  <rguenther@suse.de>
30364         PR tree-optimization/98291
30365         * tree-vect-loop.c (vectorizable_reduction): Bypass
30366         associativity check for SLP reductions with VF 1.
30368 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
30370         PR tree-optimization/96782
30371         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
30373 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30375         * collect-utils.c (collect_execute): Check dumppfx.
30376         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
30377         to collect_execute.
30378         (do_link): Add new parameter atsuffix.
30379         (main): Handle -dumpdir option.  Skip one argument for
30380         -o, -isystem and -B options.
30381         * gcc.c (make_at_file): New helper function.
30382         (close_at_file): Use it.
30384 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30386         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
30387         Amend handling for LD64_VERSION fallback defaults.
30389 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30391         * config.gcc: Compute default version information
30392         from the configured target.  Likewise defaults for
30393         ld64.
30394         * config/darwin10.h: Removed.
30395         * config/darwin12.h: Removed.
30396         * config/darwin9.h: Removed.
30397         * config/rs6000/darwin8.h: Removed.
30399 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30401         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
30403 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30405         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
30406         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
30408 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30410         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
30411         here...
30412         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
30414 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30416         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
30417         for the Darwin10 unwinder stub from here ...
30418         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
30420 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30422         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
30423         (ASM_DEBUG_SPEC):Only define if the assembler supports
30424         stabs.
30425         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
30426         (DARWIN_PREFER_DWARF): Define.
30427         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
30428         (DARWIN_PREFER_DWARF): Likewise
30429         (DSYMUTIL_SPEC): Likewise.
30430         (COLLECT_RUN_DSYMUTIL): Likewise.
30431         (ASM_DEBUG_SPEC): Likewise.
30432         (ASM_DEBUG_OPTION_SPEC): Likewise.
30434 2021-01-02  Jan Hubicka  <jh@suse.cz>
30436         * cfg.c (free_block): ggc_free bb.
30438 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
30440         * gcc.c (process_command): Update copyright notice dates.
30441         * gcov-dump.c (print_version): Ditto.
30442         * gcov.c (print_version): Ditto.
30443         * gcov-tool.c (print_version): Ditto.
30444         * gengtype.c (create_file): Ditto.
30445         * doc/cpp.texi: Bump @copying's copyright year.
30446         * doc/cppinternals.texi: Ditto.
30447         * doc/gcc.texi: Ditto.
30448         * doc/gccint.texi: Ditto.
30449         * doc/gcov.texi: Ditto.
30450         * doc/install.texi: Ditto.
30451         * doc/invoke.texi: Ditto.
30453 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
30455         * ChangeLog-2020: Rotate ChangeLog.  New file.
30458 Copyright (C) 2021 Free Software Foundation, Inc.
30460 Copying and distribution of this file, with or without modification,
30461 are permitted in any medium without royalty provided the copyright
30462 notice and this notice are preserved.